.game1to64 .body {
	padding: 0 10px;
	font-size: 1.1em;
}
.game1to64 .info {
	text-align: center;
	margin: 1em auto;
}
.game1to64 .game-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 160px;
}
.game1to64 .oneTo64 {
	display: grid;
	grid-template-columns: repeat(8, minmax(11.875vmin, 1fr));
	grid-template-rows: repeat(8, minmax(11.875vmin, 1fr));
	gap: 1px;
	font-size: 1.2em;
}
.game1to64 .oneTo64>div {
	border: 1px solid #ccc;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	cursor: pointer;

	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.game1to64 .bang {
	background-color: red;
	color: white;
	border-color: white;
	border-radius: 5px;
	box-shadow: 0 0 5px 5px red;
	font-weight: bold;
	text-shadow: 0 0 5px black;
	transition: all 0.5s;
	transform: scale(1.2);
	transform-origin: center;
	cursor: default;
}
.game1to64 .scores {
	display: grid;
	grid-template-columns: 1fr auto auto 1fr;
	margin: 10px 0;
	gap: 5px;
	align-items: center;
}
.game1to64 .timer {
	text-align: right;
}
.game1to64 .scores span {
	font-size: 1.2em;
	font-weight: bold;
}
.game1to64 .blink {
	animation: blink 1s linear 10;
}
.game1to64 .button {
	cursor: pointer;
	padding: 8px 16px;
	border: 1px solid #ccc;
	background: #f5f5f5;
	border-radius: 4px;
	font-size: 0.9em;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #333;
	transition: background-color 0.2s, border-color 0.2s;
}
.game1to64 .button:hover {
	background: #e5e5e5;
}
.game1to64 .settingsBtn {
	padding: 8px 12px;
	min-width: 36px;
}
body.dark .game1to64 .button {
	background: #444;
	border-color: #666;
	color: #ccc;
}
body.dark .game1to64 .button:hover {
	background: #555;
	border-color: #777;
}
.game1to64 #settingsModal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1001;
}
.game1to64 #settingsModal.hidden {
	display: none;
}
.game1to64 .settings-content {
	background: #fff;
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	text-align: center;
	min-width: 300px;
	max-width: 400px;
}
body.dark .game1to64 .settings-content {
	background: #2a2a2a;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.game1to64 .settings-content h3 {
	margin: 0 0 20px 0;
	color: #333;
	font-size: 24px;
	font-weight: bold;
}
body.dark .game1to64 .settings-content h3 {
	color: #68A5FF;
}
.game1to64 .setting-item {
	margin: 15px 0;
}
.game1to64 .setting-item label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	padding: 10px;
	color: #333;
	font-size: 16px;
}
body.dark .game1to64 .setting-item label {
	color: #ccc;
}
.game1to64 .setting-item input[type="checkbox"] {
	width: 40px;
	height: 20px;
	cursor: pointer;
}
.game1to64 .setting-item button {
	background-color: #DC2626;
	color: white;
	border: none;
	padding: 12px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	transition: background-color 0.2s;
	width: 100%;
}
.game1to64 .setting-item button:hover {
	background-color: #B91C1C;
}
.game1to64 .setting-item button:active {
	background-color: #991B1B;
}
body.dark .game1to64 .setting-item button {
	background-color: #DC2626;
}
body.dark .game1to64 .setting-item button:hover {
	background-color: #B91C1C;
}
body.dark .game1to64 .setting-item button:active {
	background-color: #991B1B;
}
.game1to64 .settings-close {
	margin-top: 25px;
	border-top: 1px solid #e5e5e5;
	padding-top: 15px;
}
body.dark .game1to64 .settings-close {
	border-top-color: #444;
}
.game1to64 .settings-close button {
	background-color: #6B7280;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
	transition: background-color 0.2s;
}
.game1to64 .settings-close button:hover {
	background-color: #4B5563;
}
.game1to64 .settings-close button:active {
	background-color: #374151;
}
body.dark .game1to64 .settings-close button {
	background-color: #555;
}
body.dark .game1to64 .settings-close button:hover {
	background-color: #666;
}
body.dark .game1to64 .settings-close button:active {
	background-color: #444;
}
@media (min-width: 768px) {
	.game1to64 .oneTo64 {
		font-size: 2em;
		grid-template-columns: repeat(8, minmax(82.5px, 1fr));
		grid-template-rows: repeat(8, minmax(82.5px, 1fr));
	}
}
