/* Shared arcade, home and Toothball layout. All artwork is local SVG or canvas. */
[hidden] { display:none !important; }
a { color:inherit; text-decoration:none; }
.arcade-page .site-header { max-width:1440px; margin:auto; }
.arcade-main { max-width:1210px; }
.arcade-intro { display:flex; align-items:center; justify-content:space-between; padding:52px 0 36px; }
.arcade-intro h1 { font-size:78px; line-height:1.04; letter-spacing:-4px; margin:20px 0; }
.arcade-intro p:not(.eyebrow) { color:#68796d; font-size:15px; line-height:1.75; }
.arcade-intro h1 .home-sparkle { display:inline-block; vertical-align:top; font-size:54px; color:#e69872; margin-left:22px; transform:rotate(12deg); }
.hello-note { text-align:center; padding:20px 48px 0; transform:rotate(7deg); }
.hello-note>span { font-size:100px; font-weight:400; color:#639375; }
.hello-note p { margin:0; }
.game-cards { display:grid; grid-template-columns:1fr 1fr; gap:26px; }
.game-choice { display:block; border:1px solid #dfe6d9; border-radius:25px; background:#fff; overflow:hidden; box-shadow:0 4px 15px #334e3406; transition:transform .2s,box-shadow .2s; }
.game-choice:hover { transform:translateY(-4px); box-shadow:0 10px 28px #334e3412; }
.choice-art { height:250px; position:relative; overflow:hidden; }
.crush-art { background:#edf0e0; }
.football-art { background:repeating-linear-gradient(0deg,#9dbd91 0px,#9dbd91 52px,#a7c498 52px,#a7c498 104px); }
.game-tag { position:absolute; z-index:1; top:20px; left:22px; background:#ffffffde; color:#476549; padding:8px 11px; font-size:9px; font-weight:700; letter-spacing:1.2px; border-radius:6px; }
.match-preview { position:absolute; width:216px; height:216px; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; top:35px; left:calc(50% - 108px); transform:rotate(-10deg); }
.match-preview>span { display:flex; align-items:center; justify-content:center; background:#f4dcd3; border:1px solid #d7bcb1; border-radius:14px; font-size:37px; color:#c07e79; box-shadow:0 4px 0 #acbd9924; }
.match-preview>span:nth-child(3n + 1) { background:#fff1cc; color:#d2a748; border-color:#e1d2a7; }
.match-preview>span.tooth-tile { background:#f6fae9; border-color:#c2d1ad; }
.match-preview .matched { outline:2px solid #6e9b62; outline-offset:0; }
.match-preview svg { width:52px; height:52px; }
.preview-points { position:absolute; left:calc(50% + 80px); top:97px; color:#4b7c43; background:white; border-radius:12px; font-weight:750; font-size:22px; padding:8px 12px; transform:rotate(9deg); }
.art-doodle { position:absolute; top:100px; left:48px; color:#a4b78a; font-size:65px; }
.pitch-preview { width:100%; height:100%; }
.choice-body { padding:26px 28px 23px; }
.choice-meta { display:flex; justify-content:space-between; gap:8px; font-size:8px; letter-spacing:1.4px; color:#778470; font-weight:650; }
.choice-body h2 { font-size:43px; letter-spacing:-2px; margin:12px 0 8px; }
.choice-body h2>span:not(.new-badge) { color:var(--green); }
.choice-body p { font-size:13px; line-height:1.8; color:#6c7d6e; max-width:370px; margin:0 0 22px; }
.new-badge { display:inline-block; color:#6a5c87; background:#efebf7; border-radius:5px; font-size:9px; letter-spacing:1px; padding:5px 7px; vertical-align:middle; margin-left:15px; }
.choice-bottom { display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid var(--line); padding-top:19px; }
.choice-detail { font-size:10px; color:#72816e; }
.play-link { display:flex; align-items:center; gap:13px; font-size:12px; font-weight:650; color:var(--green); }
.play-link b { display:grid; place-items:center; border-radius:50%; width:32px; height:32px; background:#edf2e6; font-size:18px; }
.arcade-notes { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin:38px 0 16px; }
.arcade-notes>div { display:flex; align-items:center; gap:13px; }
.arcade-notes>div>span { font-size:25px; color:#7b9972; }
.arcade-notes p { font-size:10px; line-height:1.8; color:#778471; }
.arcade-notes strong { display:block; font-size:12px; font-weight:600; color:#52674f; }
/* Toothball */
.toothball-main { max-width:1150px; }
.football-intro { padding:28px 0 22px; }
.football-intro h1 { font-size:58px; margin-top:8px; letter-spacing:-3px; }
.back-link { font-size:12px; color:var(--green); }
.toothball-layout { display:grid; grid-template-columns:minmax(0,660px) minmax(220px,280px); gap:30px; align-items:start; justify-content:center; }
.match-shell { min-width:0; border:1px solid #dce5d5; border-radius:22px; padding:15px; background:#fff; box-shadow:var(--shadow); }
.match-scoreboard { display:grid; grid-template-columns:1fr 145px 1fr; align-items:center; gap:8px; padding:1px 8px 13px; }
.team-label { min-width:0; display:flex; align-items:center; gap:8px; font-size:12px; font-weight:650; }
.team-label:last-child { justify-content:flex-end; }
.team-label .team-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.team-dot { width:10px; height:10px; background:#75a16b; border-radius:50%; flex-shrink:0; }
.team-dot.cpu { background:#a394c3; }
.score-center { text-align:center; }
.score-center strong { display:block; font-size:30px; letter-spacing:4px; line-height:1.2; }
.match-clock { font-size:11px; color:#5f7359; font-variant-numeric:tabular-nums; }
.pitch-wrap { position:relative; border-radius:12px; overflow:hidden; background:#99b789; }
#toothball-canvas { display:block; width:100%; height:auto; aspect-ratio:720/840; touch-action:none; user-select:none; }
.pitch-overlay { position:absolute; inset:0; background:#254d3638; backdrop-filter:blur(3px); display:grid; place-items:center; padding:16px; }
.kickoff-card { border:1px solid #e7ecde; background:#fffef7f5; border-radius:18px; width:min(100%,330px); padding:25px; box-shadow:0 8px 36px #27442320; }
.kickoff-card h2 { font-size:30px; letter-spacing:-1px; line-height:1.15; margin:10px 0; }
.kickoff-card>p { color:#687760; font-size:12px; line-height:1.7; margin:0 0 17px; }
.setup-field { display:block; font-size:11px; font-weight:600; margin:0 0 14px; }
.setup-field input[type=text],.setup-field select { display:block; width:100%; border:1px solid #d7dfcb; border-radius:8px; padding:10px 11px; margin-top:5px; background:#fff; color:var(--ink); font:inherit; font-size:13px; }
.setup-field input[type=range] { width:100%; accent-color:var(--green); display:block; margin:10px 0; }
.setup-field input:focus-visible,.setup-field select:focus-visible { outline:3px solid #4f957c; outline-offset:2px; }
.level-label { display:flex; justify-content:space-between; }
.range-ends { display:flex; justify-content:space-between; color:#78876a; font-weight:400; font-size:9px; }
.kickoff-card .primary-button { width:100%; margin-top:3px; }
.turn-strip { padding:12px 8px 0; text-align:center; font-size:12px; font-weight:600; min-height:31px; }
.football-toolbar { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:13px 4px 0; }
.football-toolbar .tool-button { min-height:38px; }
.football-toolbar>span { font-size:10px; color:#7a876e; }
.football-sidebar { display:flex; flex-direction:column; gap:18px; }
.football-guide { padding:25px 23px; background:#edf2e5; border:1px solid #dde6d2; border-radius:20px; }
.football-guide h2 { font-size:26px; line-height:1.2; letter-spacing:-1px; margin:11px 0 22px; }
.football-step { display:flex; gap:12px; margin:20px 0; }
.football-step>b { display:grid; place-items:center; width:24px; height:24px; border:1px solid #c1d0b3; border-radius:50%; color:#57724d; font-size:11px; flex-shrink:0; }
.football-step strong { font-size:12px; }
.football-step p { font-size:11px; line-height:1.8; color:#687b60; margin:5px 0 0; }
.football-guide .keyboard-note { font-size:10px; margin:0; }
.football-pause-note { display:flex; align-items:center; gap:12px; padding:0 7px; }
.football-pause-note>span { color:#94a782; font-size:27px; }
.football-pause-note p { font-size:11px; line-height:1.8; color:#76856b; }
.football-pause-note strong { display:block; color:#5e7357; }
.football-result-score { text-align:center; font-size:55px; color:var(--green); font-weight:750; letter-spacing:5px; margin:15px 0; }
.result-service { border-top:1px solid var(--line); padding-top:14px; margin:20px 0; }
.result-service p { font-size:12px; line-height:1.7; color:#687963; }
.toothball-page dialog { max-height:90dvh; }
.toothball-page .modal-inner .secondary-button { width:100%; text-align:center; display:block; }
@media(min-width:1100px) { .toothball-layout { grid-template-columns:minmax(0,560px) 280px; } }
@media(max-width:900px) {
  .arcade-intro h1 { font-size:67px; }
  .hello-note { padding-right:15px; }
  .toothball-layout { grid-template-columns:minmax(0,1fr) 235px; gap:20px; }
  .football-guide { padding:20px 16px; }
  .choice-body { padding:22px; }
  .choice-bottom { align-items:flex-start; }
  .choice-detail { max-width:150px; line-height:1.6; }
}
@media(max-width:700px) {
  .arcade-page .site-header { padding:18px 22px; }
  .arcade-page .site-header .navigation { display:flex; gap:18px; }
  .arcade-page .site-header>.waiting-label { display:none; }
  .arcade-main,.toothball-main { padding:0 22px; }
  .arcade-intro { padding:32px 0 28px; }
  .arcade-intro h1 { font-size:62px; white-space:normal; }
  .arcade-intro .eyebrow { font-size:8px; letter-spacing:1px; }
  .arcade-intro p:not(.eyebrow) { font-size:12px; }
  .hello-note { display:none; }
  .game-cards { grid-template-columns:1fr; gap:22px; }
  .choice-art { height:230px; }
  .choice-detail { max-width:none; }
  .arcade-notes { grid-template-columns:1fr; gap:0; margin:22px 0; }
  .arcade-notes p { font-size:11px; }
  .arcade-page footer { gap:12px; }
  .toothball-layout { grid-template-columns:1fr; }
  .football-sidebar { display:none; }
  .football-intro { padding:21px 0 17px; }
  .football-intro h1 { font-size:44px; }
  .football-intro .eyebrow { font-size:8px; letter-spacing:1.4px; }
  .football-intro .intro-copy { font-size:11px; }
  .match-shell { padding:10px; border-radius:17px; }
  .match-scoreboard { grid-template-columns:1fr 110px 1fr; padding:0 2px 10px; }
  .score-center strong { font-size:25px; }
  .team-label { font-size:10px; gap:5px; }
  .kickoff-card { padding:18px; max-width:290px; }
  .kickoff-card h2 { font-size:25px; margin:7px 0; }
  .kickoff-card>p { font-size:11px; margin-bottom:12px; }
  .setup-field { margin-bottom:10px; }
  .setup-field input[type=text],.setup-field select { padding:8px 10px; font-size:16px; }
  .pitch-overlay { padding:10px; }
  .toothball-page .site-header { padding:15px 22px; gap:10px; }
  .toothball-page .brand-name strong { font-size:12px; }
  .toothball-page .brand-name>span { font-size:14px; }
  .toothball-page .header-tools { gap:5px; }
  .toothball-page .brand { gap:8px; }
  .toothball-page .brand-mark { width:33px; height:36px; line-height:35px; font-size:24px; }
  .turn-strip { font-size:11px; }
}
@media(max-width:360px) {
  .arcade-page .site-header,.toothball-page .site-header { padding-left:14px; padding-right:14px; }
  .arcade-page .navigation { gap:10px !important; }
  .arcade-page .nav-item { font-size:10px; }
  .arcade-main,.toothball-main { padding:0 14px; }
  .arcade-intro h1 { font-size:56px; }
  .choice-body { padding:20px; }
  .choice-body h2 { font-size:37px; }
  .choice-meta { font-size:7px; }
  .choice-detail { max-width:145px; font-size:9px; }
  .kickoff-card { padding:13px; }
  .kickoff-card .mini-label { font-size:7px; }
  .kickoff-card h2 { font-size:21px; }
  .kickoff-card>p { font-size:10px; margin-bottom:7px; }
  .setup-field { font-size:10px; margin-bottom:7px; }
  .setup-field input[type=text],.setup-field select { padding:5px 8px; margin-top:3px; }
  .setup-field input[type=range] { margin:6px 0; }
  .kickoff-card .primary-button { padding:9px 12px; }
}
/* Let the setup form define its own height on narrow screens. */
.pitch-wrap { display:grid; }
#toothball-canvas { grid-area:1 / 1; align-self:center; min-width:0; }
.pitch-overlay { grid-area:1 / 1; position:relative; min-width:0; }
.preview-points { white-space:nowrap; }
#football-sound[aria-pressed=true] { background:#deebd4; border-color:#85a575; }
@media(max-width:700px) {
  .arcade-page .navigation .nav-item { display:flex; }
  .toothball-page .navigation { display:none; }
  .football-intro { display:block; text-align:left; }
  .football-intro .eyebrow { justify-content:flex-start; }
  .football-intro .intro-copy { margin:0; }
  .football-intro .back-link { display:inline-block; margin-top:12px; font-size:11px; }
  .preview-points { left:auto; right:18px; font-size:19px; }
}
