.mttt-game {
	--mttt-ink: #172033;
	--mttt-muted: #758098;
	--mttt-primary: #6558e8;
	--mttt-primary-dark: #5144d2;
	--mttt-line: #e8eaf2;
	--mttt-surface: #ffffff;
	--mttt-bg: #f7f8fc;
	box-sizing: border-box;
	width: 100%;
	margin: 24px auto;
	color: var(--mttt-ink);
	font-family: inherit;
}
.mttt-game *, .mttt-game *::before, .mttt-game *::after { box-sizing: border-box; }
.mttt-game .mttt-card {
	width: min(100%, 560px);
	margin: 0 auto;
	padding: clamp(20px, 4vw, 34px);
	border: 1px solid rgba(225, 228, 239, .9);
	border-radius: 24px;
	background: var(--mttt-surface);
	box-shadow: 0 18px 55px rgba(34, 42, 75, .10);
}
.mttt-game .mttt-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mttt-game .mttt-eyebrow { margin: 0 0 7px; color: var(--mttt-primary); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.mttt-game .mttt-header h2 { margin: 0; color: var(--mttt-ink); font-size: clamp(25px, 5vw, 34px); line-height: 1.15; font-weight: 800; }
.mttt-game .mttt-subtitle { margin: 8px 0 0; color: var(--mttt-muted); font-size: 14px; }
.mttt-game .mttt-mark { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: #f0efff; color: var(--mttt-primary); font-size: 24px; }
.mttt-game .mttt-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: 26px; }
.mttt-game .mttt-mode-label { display: grid; gap: 7px; min-width: 0; color: var(--mttt-muted); font-size: 12px; font-weight: 700; }
.mttt-game .mttt-mode { width: 190px; max-width: 100%; min-height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--mttt-line); border-radius: 10px; background-color: #fff; color: var(--mttt-ink); font: inherit; font-size: 13px; }
.mttt-game .mttt-scoreboard { display: flex; gap: 8px; }
.mttt-game .mttt-score { display: grid; min-width: 58px; padding: 8px 10px; border: 1px solid var(--mttt-line); border-radius: 11px; text-align: center; }
.mttt-game .mttt-score-name { color: var(--mttt-muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.mttt-game .mttt-score strong { margin-top: 2px; font-size: 19px; line-height: 1.2; }
.mttt-game .mttt-score-x strong { color: var(--mttt-primary); }
.mttt-game .mttt-score-o strong { color: #ec8b52; }
.mttt-game .mttt-score-draw strong { color: #64748b; }
.mttt-game .mttt-status { display: flex; min-height: 44px; align-items: center; justify-content: center; margin: 20px 0 13px; padding: 10px 14px; border-radius: 11px; background: var(--mttt-bg); color: #4e5870; font-size: 13px; font-weight: 700; text-align: center; }
.mttt-game .mttt-status.is-win { background: #eefbf4; color: #16834c; }
.mttt-game .mttt-status.is-draw { background: #fff8e9; color: #9a6a13; }
.mttt-game .mttt-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(100%, 390px); margin: 0 auto; }
.mttt-game .mttt-cell { display: grid; aspect-ratio: 1; min-width: 0; place-items: center; padding: 0; border: 1px solid #e7e9f2; border-radius: 16px; background: #fafbfe; color: var(--mttt-primary); cursor: pointer; font-family: inherit; font-size: clamp(42px, 10vw, 66px); font-weight: 800; line-height: 1; transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.mttt-game .mttt-cell:hover:not(:disabled) { transform: translateY(-2px); border-color: #bcb6ff; background: #f4f2ff; box-shadow: 0 7px 18px rgba(101, 88, 232, .09); }
.mttt-game .mttt-cell:focus-visible, .mttt-game button:focus-visible, .mttt-game select:focus-visible { outline: 3px solid rgba(101, 88, 232, .35); outline-offset: 3px; }
.mttt-game .mttt-cell.is-o { color: #ec8b52; }
.mttt-game .mttt-cell.is-winning { border-color: #7bd5a6; background: #edfbf3; }
.mttt-game .mttt-cell:disabled { cursor: default; opacity: 1; }
.mttt-game .mttt-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.mttt-game .mttt-actions button { min-height: 43px; padding: 0 17px; border: 0; border-radius: 11px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; transition: background .15s ease, transform .15s ease; }
.mttt-game .mttt-actions button:hover { transform: translateY(-1px); }
.mttt-game .mttt-reset { background: var(--mttt-primary); color: #fff; }
.mttt-game .mttt-reset:hover { background: var(--mttt-primary-dark); }
.mttt-game .mttt-reset span { margin-right: 5px; font-size: 17px; vertical-align: -1px; }
.mttt-game .mttt-clear { background: #f0f1f6; color: #59647b; }
.mttt-game .mttt-clear:hover { background: #e6e8f0; }
.mttt-game .mttt-hint { margin: 16px 0 0; color: #9299aa; font-size: 11px; text-align: center; }
@media (max-width: 480px) {
	.mttt-game .mttt-card { padding: 19px 15px; border-radius: 18px; }
	.mttt-game .mttt-toolbar { align-items: stretch; flex-direction: column; }
	.mttt-game .mttt-mode { width: 100%; }
	.mttt-game .mttt-scoreboard { display: grid; grid-template-columns: repeat(3, 1fr); }
	.mttt-game .mttt-score { min-width: 0; }
	.mttt-game .mttt-board { gap: 7px; }
	.mttt-game .mttt-cell { border-radius: 12px; }
	.mttt-game .mttt-actions { gap: 8px; }
	.mttt-game .mttt-actions button { flex: 1; padding: 0 10px; }
}
