* {
	box-sizing: border-box;
}

.minesweeper-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	background-color: #c0c0c0;
	border: 3px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	margin-bottom: 10px;
}

.mines-counter, .timer {
	background-color: #000;
	color: #ff0000;
	font-family: 'Courier New', monospace;
	font-size: 24px;
	font-weight: bold;
	padding: 5px 10px;
	border: 2px solid;
	border-color: #808080 #ffffff #ffffff #808080;
}

.reset-btn {
	width: 40px;
	height: 40px;
	font-size: 24px;
	background-color: #c0c0c0;
	border: 3px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.reset-btn:active {
	border-color: #808080 #ffffff #ffffff #808080;
}

.minesweeper-board {
	display: inline-grid;
	gap: 0;
	background-color: #c0c0c0;
	border: 3px solid;
	border-color: #808080 #ffffff #ffffff #808080;
	padding: 5px;
}

.mine-cell {
	width: 30px;
	height: 30px;
	background-color: #c0c0c0;
	border: 2px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 16px;
	cursor: pointer;
	user-select: none;
}

.mine-cell:active {
	border-color: #808080 #ffffff #ffffff #808080;
}

.mine-cell.revealed {
	background-color: #bfbfbf;
	border: 1px solid #7b7b7b;
	cursor: default;
}

.mine-cell.revealed.mine {
	background-color: #ff0000;
}

.mine-cell.num-1 { color: #0000ff; }
.mine-cell.num-2 { color: #008000; }
.mine-cell.num-3 { color: #ff0000; }
.mine-cell.num-4 { color: #000080; }
.mine-cell.num-5 { color: #800000; }
.mine-cell.num-6 { color: #008080; }
.mine-cell.num-7 { color: #000000; }
.mine-cell.num-8 { color: #808080; }

.snake-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	padding: 10px;
	background-color: #c0c0c0;
	border: 2px solid;
	border-color: #ffffff #000000 #000000 #ffffff;
}

.snake-score, .snake-high-score {
	font-weight: bold;
	font-size: 14px;
}

.snake-start-btn {
	padding: 5px 15px;
	background-color: #c0c0c0;
	border: 2px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	font-weight: bold;
	cursor: pointer;
}

.snake-start-btn:active {
	border-color: #808080 #ffffff #ffffff #808080;
}

.snake-instructions {
	margin-top: 10px;
	font-size: 12px;
	color: #666;
}

.snake-game-over {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.snake-game-over-content {
	background-color: #c0c0c0;
	padding: 30px;
	border: 3px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	text-align: center;
}

.snake-game-over-content h2 {
	margin: 0 0 20px 0;
	color: #000;
	font-size: 24px;
}

.snake-game-over-content p {
	margin: 10px 0;
	font-size: 16px;
	font-weight: bold;
	color: #000;
}

.snake-restart-btn {
	margin-top: 20px;
	padding: 10px 30px;
	background-color: #c0c0c0;
	border: 3px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	font-weight: bold;
	font-size: 14px;
	cursor: pointer;
}

.snake-restart-btn:active {
	border-color: #808080 #ffffff #ffffff #808080;
}

.chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	background: linear-gradient(to bottom, #e8eaf6 0%, #f5f7fa 100%);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.chat-message {
	max-width: 75%;
	padding: 12px 16px;
	border-radius: 18px;
	word-wrap: break-word;
	font-size: 15px;
	line-height: 1.4;
	position: relative;
	animation: messageSlide 0.3s ease-out;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

@keyframes messageSlide {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.chat-message.user {
	align-self: flex-end;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-bottom-right-radius: 4px;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.chat-message.bot {
	align-self: flex-start;
	background-color: #ffffff;
	color: #2c3e50;
	border-bottom-left-radius: 4px;
	border: 1px solid #e0e0e0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.chat-message.bot::before {
	content: '🤖';
	font-size: 16px;
	margin-right: 6px;
}

.chat-message-time {
	font-size: 11px;
	opacity: 0.7;
	margin-top: 5px;
}

.chat-input-container {
	display: flex;
	padding: 15px 20px;
	background: linear-gradient(to top, #ffffff 0%, #fafbfc 100%);
	border-top: 2px solid #e1e8ed;
	gap: 12px;
	align-items: center;
}

.chat-input {
	flex: 1;
	padding: 12px 18px;
	border: 2px solid #e1e8ed;
	border-radius: 24px;
	outline: none;
	font-size: 15px;
	transition: all 0.3s ease;
	background-color: #f7f9fa;
}

.chat-input:focus {
	border-color: #667eea;
	background-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-send-btn {
	padding: 12px 24px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	border-radius: 24px;
	cursor: pointer;
	font-weight: 600;
	font-size: 15px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
	min-width: 80px;
}

.chat-send-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.chat-send-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.icon-chat {
	font-size: 48px;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.dark-theme .chat-messages {
	background: linear-gradient(to bottom, #1a1d29 0%, #252a3a 100%);
}

body.dark-theme .chat-message.bot {
	background-color: #2d3748;
	color: #e2e8f0;
	border-color: #4a5568;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-theme .chat-message.user {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

body.dark-theme .chat-input-container {
	background: linear-gradient(to top, #1a202c 0%, #2d3748 100%);
	border-top-color: #4a5568;
}

body.dark-theme .chat-input {
	background-color: #2d3748;
	color: #e2e8f0;
	border-color: #4a5568;
}

body.dark-theme .chat-input::placeholder {
	color: #a0aec0;
}

body.dark-theme .chat-input:focus {
	border-color: #667eea;
	background-color: #374151;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

@media (max-width: 768px) {
	.chat-messages {
		padding: 15px 10px;
	}
	
	.chat-message {
		max-width: 85%;
		font-size: 14px;
		padding: 10px 14px;
	}
	
	.chat-input-container {
		padding: 12px 15px;
	}
	
	.chat-input {
		font-size: 16px;
		padding: 10px 16px;
	}
	
	.chat-send-btn {
		padding: 10px 20px;
		min-width: 70px;
		font-size: 14px;
	}
}

@media (min-width: 769px) and (max-width: 1180px) {
	.chat-message {
		font-size: 16px;
	}
}

.chat-messages::-webkit-scrollbar {
	width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
	background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.3);
}

body.dark-theme .chat-messages::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
}

body.dark-theme .chat-messages::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.3);
}

.chat-input::placeholder {
	color: #999;
	transition: color 0.3s;
}

.chat-input:focus::placeholder {
	color: #bbb;
}

.tetris-header {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 15px;
	padding: 10px;
	background-color: #c0c0c0;
	border: 2px solid;
	border-color: #ffffff #000000 #000000 #ffffff;
}

.tetris-info {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	gap: 10px;
}

.tetris-stat {
	font-weight: bold;
	font-size: 14px;
	color: #000;
}

.tetris-start-btn {
	padding: 8px 20px;
	background-color: #c0c0c0;
	border: 2px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	font-weight: bold;
	cursor: pointer;
	font-size: 14px;
	align-self: center;
}

.tetris-start-btn:active {
	border-color: #808080 #ffffff #ffffff #808080;
}

.tetris-instructions {
	margin-top: 10px;
	font-size: 12px;
	color: #666;
}

.tetris-sidebar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 120px;
}

.tetris-stat-box {
	background-color: #c0c0c0;
	border: 2px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	padding: 8px 12px;
	text-align: center;
}

.tetris-stat-label {
	font-size: 11px;
	color: #666;
	margin-bottom: 4px;
	font-weight: bold;
}

.tetris-stat-value {
	font-size: 18px;
	font-weight: bold;
	color: #000;
	font-family: 'Courier New', monospace;
}

.tetris-controls {
	margin-top: 15px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
}

.tetris-control-row {
	display: flex;
	gap: 8px;
	justify-content: center;
}

.tetris-control-btn {
	width: 50px;
	height: 50px;
	background-color: #c0c0c0;
	border: 2px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
}

.tetris-control-btn:active {
	border-color: #808080 #ffffff #ffffff #808080;
}

.tetris-drop-btn {
	width: 110px;
	font-weight: bold;
}

.tetris-game-over {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.tetris-game-over-content {
	background-color: #c0c0c0;
	padding: 30px;
	border: 3px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	text-align: center;
}

.tetris-game-over-content h2 {
	margin: 0 0 20px 0;
	color: #000;
	font-size: 24px;
}

.tetris-game-over-content p {
	margin: 10px 0;
	font-size: 16px;
	font-weight: bold;
	color: #000;
}

.tetris-restart-btn {
	margin-top: 20px;
	padding: 10px 30px;
	background-color: #c0c0c0;
	border: 3px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	font-weight: bold;
	font-size: 14px;
	cursor: pointer;
}

.tetris-restart-btn:active {
	border-color: #808080 #ffffff #ffffff #808080;
}

.icon-tetris {
	font-size: 48px;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.dark-theme .tetris-header {
	background-color: #2d3748;
	border-color: #4a5568 #1a202c #1a202c #4a5568;
}

body.dark-theme .tetris-stat {
	color: #e2e8f0;
}

body.dark-theme .tetris-start-btn {
	background-color: #2d3748;
	border-color: #4a5568 #1a202c #1a202c #4a5568;
	color: #e2e8f0;
}

body.dark-theme .tetris-stat-box {
	background-color: #2d3748;
	border-color: #4a5568 #1a202c #1a202c #4a5568;
}

body.dark-theme .tetris-stat-label {
	color: #a0aec0;
}

body.dark-theme .tetris-stat-value {
	color: #e2e8f0;
}

body.dark-theme .tetris-instructions {
	color: #a0aec0;
}

.tetris-touch-hint {
	margin-top: 10px;
	font-size: 12px;
	color: #666;
}

body.dark-theme .tetris-touch-hint {
	color: #a0aec0;
}

body.dark-theme .tetris-control-btn {
	background-color: #2d3748;
	border-color: #4a5568 #1a202c #1a202c #4a5568;
	color: #e2e8f0;
}

body.dark-theme .tetris-game-over-content {
	background-color: #2d3748;
	border-color: #4a5568 #1a202c #1a202c #4a5568;
}

body.dark-theme .tetris-game-over-content h2,
body.dark-theme .tetris-game-over-content p {
	color: #e2e8f0;
}

body.dark-theme .tetris-restart-btn {
	background-color: #2d3748;
	border-color: #4a5568 #1a202c #1a202c #4a5568;
	color: #e2e8f0;
}

