:root { --ink: #20283a; --muted: #697286; --paper: #f6f7fb; --line: #e6e8ef; --green: #6f9276; --yellow: #c9b458; }
* { box-sizing: border-box; }
body.mini-game-page { min-height: 100vh; margin: 0; padding: 0 18px; display: flex; flex-direction: column; align-items: center; background: var(--paper); color: var(--ink); font-family: 'DM Sans', 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.game-header { width: min(760px, 100%); min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.back-link { color: #596477; font-size: .88rem; font-weight: 700; text-decoration: none; }
.back-link:hover, .text-link:hover { color: var(--green); }
.small-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: 'Manrope', sans-serif; font-size: .93rem; font-weight: 800; }
.small-brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: white; font-size: .84rem; letter-spacing: -.08em; padding-right: 2px; }
.game-main { width: min(460px, 100%); flex: 1; padding: 32px 0 28px; display: flex; flex-direction: column; align-items: center; }
.game-heading { text-align: center; margin-bottom: 22px; }
.game-kicker { color: #7a8798; font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
.game-heading h1 { margin: 9px 0 7px; font-family: 'Manrope', sans-serif; font-size: clamp(2.3rem, 8vw, 3rem); line-height: 1.1; letter-spacing: -.065em; }
.game-heading h1 span { color: var(--green); }
.game-heading p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.status-box { width: 100%; min-height: 46px; display: grid; place-items: center; padding: 10px 12px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; color: #525d71; font-size: .92rem; font-weight: 700; text-align: center; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; width: min(100%, 344px); aspect-ratio: 1; margin-bottom: 22px; }
.cell { display: grid; place-items: center; min-width: 0; border: 1px solid #e2e5ed; border-radius: 17px; background: white; color: var(--ink); font-family: 'Manrope', sans-serif; font-size: clamp(2.6rem, 13vw, 4.2rem); font-weight: 800; cursor: pointer; box-shadow: 0 5px 14px rgba(32, 40, 58, .035); transition: transform 140ms ease, background 140ms ease, border-color 140ms ease; }
.cell:hover:not(:disabled) { transform: translateY(-2px); border-color: #cfd6df; background: #fcfcff; }
.cell:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #a1bca5; outline-offset: 3px; }
.cell:disabled { cursor: default; }
.cell.x { color: var(--green); }
.cell.o { color: #bd9870; }
.cell.winner { background: #e5eee5; border-color: #b9cfbc; }
.primary-button { min-height: 45px; padding: 0 20px; border: 0; border-radius: 11px; background: var(--ink); color: white; font: inherit; font-size: .91rem; font-weight: 800; cursor: pointer; transition: opacity 150ms ease, transform 150ms ease; }
.primary-button:hover { opacity: .9; transform: translateY(-1px); }
.text-link { margin-top: 20px; color: #68758a; font-size: .83rem; font-weight: 700; text-decoration: none; }
.game-footer { width: min(760px, 100%); padding: 19px 0 23px; border-top: 1px solid var(--line); color: #8a91a1; font-size: .79rem; text-align: center; }
@media (max-width: 430px) { .game-header { min-height: 65px; } .game-main { padding-top: 26px; } .board { gap: 7px; } .cell { border-radius: 13px; } }
