body {
	overflow: hidden;
	background: url(../images/background.png) #468a5d;
	min-height: 100vh;
}

body.menu-mode {
	overflow-x: hidden;
	overflow-y: auto;
}

body.playing {
	overflow: hidden;
	height: 100%;
}

html.playing-lock,
html.playing-lock body {
	overflow: hidden;
}

.lang-zh,
.lang-zh-heading,
.home-screen {
	display: none !important;
}

.wrapper {
	display: none;
	width: 1000px;
	max-width: 100%;
	margin: 0;
	position: relative;
	left: 0;
	right: 0;
	padding-top: 0;
	padding-bottom: 0;
	box-sizing: border-box;
	transform: none;
}

#game-stage {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 20;
	pointer-events: none;
}

body.playing #game-stage {
	display: block;
}

.playfield {
	position: absolute;
	left: 50%;
	top: 52px;
	width: 1000px;
	transform: translateX(-50%) scale(var(--board-scale, 1));
	transform-origin: top center;
	pointer-events: none;
}

.playfield .wrapper,
.playfield .offside {
	pointer-events: auto;
}

.columns-row {
	width: 1000px;
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
}

.columns-row::after {
	content: '';
	display: table;
	clear: both;
}

.column {
	width: 100px;
	min-height: 120px;
	padding-top: 40px;
	float: left;
	position: relative;
	box-sizing: border-box;
}

.column::before {
	content: "";
	position: absolute;
	left: 6px;
	right: 6px;
	top: 36px;
	height: 110px;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 8px;
	pointer-events: none;
	z-index: 0;
}

/* 确保牌在浅色框之上渲染 */
.column .card,
.column .card:first-child {
	position: relative;
	z-index: 1;
}

.start-form {
	width: 640px;
	max-width: calc(100vw - 24px);
	height: auto;
	min-height: 0;
	box-sizing: border-box;
	padding: 16px 18px 16px;
	background-color: #E7E7E7;
	border: 4px solid #074744;
	border-radius: 14px;
	font-family: Georgia, serif;
	box-shadow: 0 8px 28px rgba(0,0,0,0.45);
	position: relative;
	left: auto;
	top: auto;
	transform: none;
	margin: 16px auto 12px;
	display: none;
	z-index: 5;
	overflow: visible;
}

.start-form.start-form-visible {
	display: block;
}

body.playing .start-form {
	display: none !important;
}

.start-form-brand {
	text-align: center;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 28px;
	font-weight: bold;
	letter-spacing: 0.04em;
	color: #074744;
	margin: 0 0 4px;
	line-height: 1.1;
}

.start-form-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.start-form-actions-primary {
	margin-top: 14px;
	gap: 12px;
}

.start-form-actions-secondary {
	margin-top: 8px;
	gap: 8px;
}

.start-form .btn-play {
	width: 168px;
	height: 44px;
	font-size: 20px;
	cursor: pointer;
	text-align: center;
	margin: 0;
	transform: none;
	background: #021615;
	color: #E7E7E7;
	border: none;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
	font-family: Georgia, serif;
}

.start-form .btn-play:hover,
.start-form input[type="submit"]:hover {
	background: #045c58;
}

.start-form .btn-daily {
	width: 188px;
	height: 44px;
	font-size: 16px;
	cursor: pointer;
	background: #0a4f6b;
	color: #e7f6ff;
	border: none;
	border-radius: 8px;
	font-family: Georgia, serif;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
	padding: 0 12px;
}

.start-form .btn-daily:hover {
	background: #086085;
}

.start-form .btn-daily.beaten {
	background: #1a5c3a;
	color: #e8ffe8;
}

.start-form .btn-daily.beaten:hover {
	background: #147048;
}

.start-form .btn-scores {
	width: 132px;
	height: 38px;
	font-size: 14px;
	cursor: pointer;
	background: #a66428;
	color: #f6bf5b;
	border: none;
	border-radius: 6px;
	font-family: Georgia, serif;
}

.start-form .btn-scores:hover {
	background: #774218;
}

.start-form .btn-howto {
	background: #045c58;
	color: #e7e7e7;
}

.start-form .btn-howto:hover {
	background: #074744;
}

.daily-status {
	margin: 10px 0 0;
	text-align: center;
	font-size: 13px;
	color: #074744;
	line-height: 1.35;
	min-height: 1.35em;
}

.start-form-scroll-hint {
	margin: 8px 0 0;
	text-align: center;
	font-size: 12px;
	color: #555;
}

.victory-daily-note {
	margin: 0 0 12px;
	font-size: 15px;
	color: #045c58;
	font-weight: bold;
}

.mode-badge.daily-badge {
	border-color: #7ec8e3;
	background: rgba(10, 79, 107, 0.55);
}

input[type=radio] {
	border: 0;
	width: 18px;
	height: 18px;
	vertical-align: middle;
	margin-right: 6px;
}

.start-form .title {
	margin: 2px 0 10px;
	font-size: 22px;
	text-align: center;
	font-weight: bold;
}

.start-form .game-option {
	display: block;
	margin: 0 0 4px 8px;
	padding: 0 8px;
	font-size: 18px;
	height: 40px;
	line-height: 40px;
	cursor: pointer;
	border-radius: 6px;
	overflow: hidden;
	white-space: nowrap;
	box-sizing: border-box;
}

.start-form .game-option:hover,
.start-form .game-option:active,
.start-form .game-option.selected {
	background: #045c58;
	color: #e7e7e7;
}

/* Sprite clipped by width: 1 / 2 / 4 suit icons */
.start-form .suit {
	display: inline-block;
	vertical-align: middle;
	background-image: url('../images/card-shapes.png');
	background-repeat: no-repeat;
	background-position: 150px 50%;
	background-size: 170px 68px;
	height: 40px;
	line-height: 40px;
}

.start-form .suit.one {
	width: 200px;
}

.start-form .suit.two {
	width: 235px;
}

.start-form .suit.four {
	width: 320px;
}

.game-topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 70;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 14px;
	box-sizing: border-box;
	background: linear-gradient(180deg, rgba(0, 20, 14, 0.72), rgba(0, 20, 14, 0.22) 70%, transparent);
	pointer-events: none;
	transform: scale(var(--ui-scale, 1));
	transform-origin: top center;
}

.game-topbar > * {
	pointer-events: auto;
}

.topbar-left {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.timer,
.score {
	font-size: 13px;
	font-weight: bold;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.85);
	padding: 5px 10px;
	background: rgba(0, 0, 0, 0.35);
	border-radius: 6px;
	white-space: nowrap;
	position: static;
	display: block;
	transform: none;
}

.btn-pause {
	font-size: 13px;
	font-weight: bold;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.85);
	padding: 5px 12px;
	background: rgba(0, 0, 0, 0.35);
	border-radius: 6px;
	cursor: pointer;
	font-family: Georgia, serif;
}

.btn-pause:hover {
	background: rgba(255, 255, 255, 0.14);
}

.pause-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.55);
}

.pause-box {
	text-align: center;
	padding: 28px 36px;
	background: #e7e7e7;
	border: 4px solid #074744;
	border-radius: 10px;
	box-shadow: 0 0 16px rgba(0, 0, 0, 0.45);
	min-width: 240px;
}

.pause-title {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: bold;
	color: #074744;
	font-family: Georgia, serif;
}

.pause-hint {
	margin: 0 0 18px;
	font-size: 14px;
	color: #074744;
}

.control-panel {
	position: fixed;
	left: 50%;
	bottom: 10px;
	transform: translate(-50%, 0) scale(var(--ui-scale, 1));
	transform-origin: bottom center;
	border: 1px solid rgba(0, 0, 0, 0.35);
	border-bottom: 0;
	padding: 10px 18px;
	background-color: rgba(231, 231, 231, 0.92);
	opacity: 0.55;
	transition: opacity 0.2s ease 0s;
	text-align: center;
	border-radius: 14px 14px 0 0;
	display: none;
	z-index: 50;
	backdrop-filter: blur(2px);
}

.control-panel:hover,
.control-panel:active {
	opacity: 1;
}

.opaque {
	opacity: 1;
}

.control-panel button {
	display: inline-block;
	width: 88px;
	height: 40px;
	font-size: 14px;
	outline: 1px solid grey;
	outline-offset: -4px;
	cursor: pointer;
	margin: 0 2px;
}

.control-panel button:disabled {
	opacity: 0.45;
	cursor: default;
}

.control-panel button:hover{
	background: #074744;
	color: #e7e7e7;
}

.message {
	display: inline-block;
	position: fixed;
	background: rgba(7, 71, 68, 0.94);
	color: #fff;
	border: none;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 15px;
	font-family: Georgia, serif;
	z-index: 220;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.faq, .faq-shadow {
	position: fixed;
	top: 0;
	bottom: 0;
}

.faq {
	z-index: 30;
	width: min(640px, 92vw);
	left: -100%;
	box-sizing: border-box;
	padding: 16px 3% 40px;
	background-color: #E7E7E7;
	font-family: Georgia, serif;
	font-size: 15px;
	line-height: 1.45;
	text-align: justify;
	box-shadow: 0 0 12px 6px rgba(0,0,0,0.8);
	overflow: auto;
	transition: left 0.35s ease;
}

.faq.open {
	left: 0;
}

.faq-shadow {
	z-index: 35;
	width: 50%;
	left: -50%;
	background-color: transparent;
	transition-delay: 0s;
	pointer-events: none;
}

.faq-shadow.visible {
	left: 50%;
	background-color: rgba(0, 0, 0, 0.4);
	cursor: pointer;
	pointer-events: auto;
}

.faq.open + .faq-shadow {
	left: 50%;
	background-color: rgba(0,0,0,0.4);
	transition: background 0.2s linear 0.4s;
	pointer-events: auto;
}

.faq-close{
	cursor: pointer;
}

.faq-close::after {
	content: '+';
	position: absolute;
	top: 0;
	right: 15px;
	padding: 10px;
	font-family: Arial, sans-serif;
	font-size: 36px;
	transform: rotate(45deg);	
}

.faq h1, 
.faq h2 {
	font-style: italic;
	margin-bottom: 0.25em;
}

.faq h1 {
	font-size: 32px;
}

.faq-intro,
.faq-footer-note {
	font-size: 14px;
	line-height: 1.5;
	color: #333;
}

.faq-footer-note {
	margin-top: 1.5em;
	padding-top: 0.75em;
	border-top: 1px solid #ccc;
}

.faq h2 {
	font-size: 18px;
	margin-top: 1.1em;
}


.faq p {
	margin-top: 0;
	text-align: left; /* 添加左对齐 */
}

.faq ol {
	list-style-type: disc;
}

.game-title {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -62%);
	width: 600px;
	height: 500px;
	border: 5px solid #065B23;
	font-family: Georgia, serif;
	color: #E7E7E7;
	text-align: center;
	box-shadow: 0 0 12px 5px rgba(0,0,0,0.6);
	display: none;
}


/*Cards style*/
.card {
	display: block;
	width: 82px;
	height: 119px;
	margin: 0 auto;
	border: 1px solid #000;
	border-radius: 5px;
}

.card:first-child {
	margin-top: 0 !important;
}

.column .card,
.drag-el .card {
	margin-top: -95px;
}

.drag-el {
	z-index: 100;
	position: absolute;
}

/* Face-up runs: default spacing; compress when the column is tall */
.column .open {
	margin-top: -95px;
}

.column .open + .open {
	margin-top: -95px;
}

.column[data-height="1"] .open + .open {
	margin-top: -99px;
}

.column[data-height="2"] .open + .open {
	margin-top: -103px;
}

.column[data-height="3"] .open + .open {
	margin-top: -106px;
}

.column[data-height="4"] .open + .open {
	margin-top: -109px;
}

.column[data-height="5"] .open + .open {
	margin-top: -111px;
}

.column[data-height="6"] .open + .open {
	margin-top: -113px;
}

/* Face-down backs: keep stacks compact */
.column .closed {
	margin-top: -113px;
}

/* Transition from last back to first face-up: almost as tight as backs */
.column .closed + .open {
	margin-top: -111px;
}

.column[data-height="1"] .closed + .open,
.column[data-height="2"] .closed + .open,
.column[data-height="3"] .closed + .open,
.column[data-height="4"] .closed + .open,
.column[data-height="5"] .closed + .open,
.column[data-height="6"] .closed + .open {
	margin-top: -111px;
}

.card.closed {
	background-image: 
		linear-gradient(45deg, rgba(0,0,0,0) 48%, rgba(255,255,255,0.30) 60%, rgba(0,0,0,0) 52%),
		linear-gradient(-45deg, rgba(0,0,0,0) 48%, rgba(255,255,255,0.25) 60%, rgba(0,0,0,0) 52%);
	background-size: 13px 17px;
	background-color: #a83345;
}

.card.open,
.source .card:last-child {
	cursor: pointer;
	/* see bg style in cards.css */
}


.offside {
	display: none;
	position: relative;
	left: auto;
	right: auto;
	top: auto;
	bottom: auto;
	width: 1000px;
	height: 132px;
	margin: 0 0 6px;
	z-index: 25;
	pointer-events: none;
	box-sizing: border-box;
	transform: none;
}

.offside .source,
.offside .dropout {
	pointer-events: auto;
}

.foundation-area {
	pointer-events: none;
}

.foundation-area .dropout {
	pointer-events: auto;
}

.source {
	position: absolute;
	left: 18px;
	top: 22px;
	right: auto;
	bottom: auto;
	width: 130px;
	height: 119px;
}

.source .card,
.dropout .card {
	position: absolute;
	top: 0;
	bottom: auto;
}

.source .card {
	left: 0;
	right: auto;
}

.dropout .card {
	left: 0;
	cursor: default;
}

.source .card:nth-child(n+11) {
	left: 10px;
	right: auto;
}

.source .card:nth-child(n+21) {
	left: 20px;
	right: auto;
}

.source .card:nth-child(n+31) {
	left: 30px;
	right: auto;
}

.source .card:nth-child(n+41) {
	left: 40px;
	right: auto;
}

.dropout {
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	right: auto;
	bottom: auto;
	width: 100%;
	height: 119px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dropout .card {
	position: absolute;
	left: 0;
	top: 0;
	bottom: auto;
	cursor: default;
}

/* Eight completed stacks align to foundation slots (81px card + 8px gap) */
.dropout .card:nth-child(n+14) {
	left: 89px;
}

.dropout .card:nth-child(n+27) {
	left: 178px;
}

.dropout .card:nth-child(n+40) {
	left: 267px;
}

.dropout .card:nth-child(n+53) {
	left: 356px;
}

.dropout .card:nth-child(n+66) {
	left: 445px;
}

.dropout .card:nth-child(n+79) {
	left: 534px;
}

.dropout .card:nth-child(n+92) {
	left: 623px;
}

.dropout::after {
	content: none;
}

.foundation-area {
	position: absolute;
	left: 156px;
	top: 18px;
	width: 720px;
	height: 120px;
}

.foundation-slots {
	display: flex;
	gap: 8px;
	pointer-events: none;
}

.foundation-slots span {
	display: block;
	width: 81px;
	height: 114px;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.38);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.07);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.stock-label {
	position: absolute;
	top: 2px;
	left: 18px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.85);
	font-family: Georgia, serif;
	letter-spacing: 0.02em;
}

.columns-spacer {
	/* reserved for future layout helpers */
}


.backlight {
	box-shadow: 0 0 20px 5px yellow;
}

.ghost {
	z-index: 100;
	position: fixed;
	transition-property: top, left;
	transition-duration: 0.3s;
	transition-timing-function: linear;
	transition-delay: 0s;
}

.congratulation {
	width: 100%;
	height: 100%;
	display: none;
	position: fixed;
	inset: 0;
	z-index: 200;
}

.victory-panel {
	position: absolute;
	left: 50%;
	top: 58%;
	transform: translate(-50%, -50%);
	z-index: 210;
	text-align: center;
	min-width: 320px;
	padding: 24px 28px;
	background: rgba(7, 71, 68, 0.92);
	border: 3px solid #f6bf5b;
	border-radius: 16px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
	color: #fff;
	font-family: Georgia, serif;
}

.victory-title {
	margin: 0 0 10px;
	font-size: 36px;
	color: #f6bf5b;
}

.victory-stats {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.5;
	color: #e7e7e7;
}

.victory-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.victory-btn {
	min-width: 120px;
	height: 42px;
	padding: 0 16px;
	font-size: 15px;
	cursor: pointer;
	color: #f6bf5b;
	background: #a66428;
	border: none;
	border-radius: 10px;
	font-family: Georgia, serif;
}

.victory-btn:hover {
	background: #774218;
}

.victory-btn-secondary {
	background: #045c58;
	color: #e7e7e7;
}

.victory-btn-secondary:hover {
	background: #074744;
}

.game-hud {
	position: static;
	top: auto;
	right: auto;
	z-index: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	transform: none;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.mode-badge {
	padding: 4px 9px;
	font-size: 12px;
	font-weight: bold;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.85);
	background: rgba(0, 0, 0, 0.35);
	border-radius: 6px;
}

.sound-control {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 2px 8px 2px 2px;
	border: 1px solid rgba(255, 255, 255, 0.85);
	background: rgba(0, 0, 0, 0.35);
	border-radius: 6px;
}

.sound-toggle {
	width: 28px;
	height: 28px;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	border: none;
	background: transparent;
	border-radius: 6px;
	color: #fff;
	flex-shrink: 0;
}

.sound-toggle:hover {
	background: rgba(255, 255, 255, 0.12);
}

.volume-slider {
	width: 88px;
	height: 6px;
	cursor: pointer;
	accent-color: #f6bf5b;
	vertical-align: middle;
}

.volume-slider:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

@media (max-width: 640px) {
	.volume-slider {
		width: 64px;
	}
}

.site-footer {
	position: fixed;
	left: 12px;
	bottom: 10px;
	z-index: 45;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
	font-family: Georgia, serif;
	pointer-events: none;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
	letter-spacing: 0.02em;
}

body.playing .site-footer {
	bottom: 56px;
	opacity: 0.7;
}

.site-footer .footer-brand {
	font-weight: bold;
	color: rgba(246, 191, 91, 0.9);
}

.site-footer .footer-sep {
	margin: 0 4px;
	opacity: 0.7;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	pointer-events: auto;
}

.site-footer a:hover {
	color: #f6bf5b;
	text-decoration: underline;
}

.victory-btn.copied {
	background: #1a5c3a;
	color: #e8ffe8;
}

.score-board-note {
	text-align: center;
	margin: 0 0 12px;
	font-size: 14px;
	color: #555;
}

.score-tabs {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-bottom: 14px;
}

.score-tab {
	padding: 6px 14px;
	font-size: 14px;
	cursor: pointer;
	border: 1px solid #074744;
	background: #fff;
	color: #074744;
	border-radius: 8px;
}

.score-tab.active,
.score-tab:hover {
	background: #074744;
	color: #e7e7e7;
}

.score-board-header {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	font-size: 16px;
	margin-bottom: 10px;
	padding: 0 10px;
	text-align: center;
}

canvas {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

/**/

/*
.input {
display: none;
position: absolute;
top: 18em;
left: 0;
right: 0;
text-align: center;
}
.input input {
width: 5em;
padding-left: 0.2em;
border: 0.08em solid #333;
background: none;
border-radius: 5px;
font-size: 3em;
}
.input input:focus { outline: none; }
.input input::-webkit-input-placeholder { 
color: #666;
text-shadow: none;
}
.input input:-moz-placeholder {
color: #666;
text-shadow: none;
}

.restart {
position: absolute;
top: 2.5em;
left: 0;
right: 0;
text-align: center;
}
*/

.score-board {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 500px;
	max-width: 90vw;
	max-height: 90vh;
	overflow-x: hidden;
	overflow-y: auto;
	color: #074744;
	background: #e7e7e7;
	border-radius: 20px;
	border: 5px solid #074744;
	display: none;
	padding: 20px;
	z-index: 120;
	box-sizing: border-box;
}

.score-board h2 {
	text-align: center;
	font-size: 20px;
	margin-bottom: 6px;
}

ol#high-scores {
	font-size: 18px;
	padding: 0 10px 0 28px;
	max-height: 320px;
	overflow-x: hidden;
	overflow-y: auto;
	counter-reset: list;
}

ol#high-scores li {
	list-style-type: none;
	counter-increment: list;
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	padding: 10px 0;
	text-align: center;
	border-bottom: 1px solid #ccc;
}

ol#high-scores li:after {
	content: counter(list) ".";
	position: absolute;
	left: -1.4em;
	color: #074744;
	font-weight: bold;
}

.stats-board {
	overflow-x: hidden;
}

.seo-content {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: min(760px, calc(100% - 32px));
	margin: 0 auto 64px;
	padding: 22px 24px 28px;
	background: rgba(231, 231, 231, 0.96);
	border: 4px solid #074744;
	border-radius: 16px;
	color: #074744;
	font-family: Georgia, serif;
	line-height: 1.55;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.seo-content h1 {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.25;
	text-align: center;
}

.seo-content h2 {
	margin: 22px 0 10px;
	font-size: 20px;
}

.seo-content p,
.seo-content li {
	font-size: 15px;
}

.seo-content ol,
.seo-content ul {
	margin: 0 0 12px;
	padding-left: 1.4em;
}

.seo-content li {
	margin-bottom: 6px;
}

.seo-shortcuts {
	padding: 10px 12px;
	background: rgba(7, 71, 68, 0.08);
	border-radius: 8px;
}

.seo-features {
	margin: 12px 0;
}

.seo-back {
	color: #074744;
	font-weight: bold;
	text-decoration: underline;
}

.seo-back:hover {
	color: #045c58;
}

body.playing .seo-content {
	display: none !important;
}

.faq-quickstart {
	margin: 0 0 22px;
	padding: 14px 16px;
	background: rgba(7, 71, 68, 0.08);
	border-radius: 10px;
}

.faq-quickstart h2 {
	margin: 0 0 10px;
	font-size: 20px;
}

.faq-quickstart ol {
	margin: 0;
	padding-left: 1.3em;
}

.faq-quickstart li {
	margin-bottom: 6px;
}

.progress-badges {
	display: none;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.progress-badges span {
	padding: 4px 9px;
	font-size: 12px;
	font-weight: bold;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.85);
	background: rgba(0, 0, 0, 0.35);
	border-radius: 6px;
	white-space: nowrap;
}

.modal-shadow {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 115;
	cursor: pointer;
}

.modal-shadow.visible {
	display: block;
}

.app-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 200;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
}

.app-modal-box {
	width: 420px;
	max-width: 90vw;
	padding: 24px 22px 18px;
	background: #e7e7e7;
	border: 5px solid #074744;
	border-radius: 16px;
	box-sizing: border-box;
	text-align: center;
}

#app-modal-text {
	margin: 0 0 18px;
	font-size: 18px;
	line-height: 1.45;
	color: #074744;
	font-family: Georgia, serif;
}

.app-modal-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.card.card-selected {
	box-shadow: 0 0 0 3px #f6bf5b, 0 0 14px rgba(246, 191, 91, 0.7);
	z-index: 5;
}

.column.drop-target {
	outline: 2px dashed rgba(246, 191, 91, 0.85);
	outline-offset: 2px;
	background: rgba(246, 191, 91, 0.12);
	border-radius: 6px;
}

.stats-body {
	padding: 6px 10px 12px;
	overflow-x: hidden;
}

.stats-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 4px;
	border-bottom: 1px solid #ccc;
	font-size: 16px;
	color: #074744;
}

.stats-row strong {
	font-size: 18px;
}

.stats-tab {
	padding: 6px 14px;
	font-size: 14px;
	cursor: pointer;
	border: 1px solid #074744;
	background: #fff;
	color: #074744;
	border-radius: 8px;
}

.stats-tab.active,
.stats-tab:hover {
	background: #074744;
	color: #e7e7e7;
}

.start-form .btn-resume {
	background: #045c58;
	color: #e7e7e7;
}

.start-form .btn-resume:hover {
	background: #074744;
}

.stuck-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: bold;
	color: #074744;
	font-family: Georgia, serif;
}

#stuck-modal-text {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.45;
	color: #074744;
}

body.compact-ui .timer,
body.compact-ui .score,
body.compact-ui .btn-pause {
	padding: 4px 8px;
	font-size: 12px;
}

body.compact-ui .game-topbar {
	padding: 6px 8px;
}

body.compact-ui .offside {
	height: 120px;
	margin-bottom: 4px;
}

body.compact-ui .playfield {
	top: 48px;
}

body.compact-ui .control-panel {
	bottom: 4px;
	padding: 8px 10px;
}

body.compact-ui .control-panel button {
	width: 72px;
	height: 34px;
	font-size: 12px;
	margin: 0 1px;
}

body.compact-ui .site-footer {
	font-size: 11px;
	bottom: 52px;
	opacity: 0.55;
}

@media (max-width: 720px) {
	.progress-badges span {
		font-size: 11px;
		padding: 4px 8px;
	}

	.mode-badge {
		font-size: 12px;
		padding: 4px 8px;
	}

	.game-hud {
		gap: 6px;
		max-width: 100%;
	}

	.game-topbar {
		flex-direction: column;
		align-items: stretch;
		transform-origin: top center;
	}

	.topbar-left,
	.game-hud {
		justify-content: center;
	}

	body.playing .playfield {
		top: 92px;
	}
}

