:root {
  --club-ink:#173c37; --club-teal:#1c574c; --club-clay:#a93f2b; --club-gold:#f1bb56;
  --club-paper:#f9f5e9; --club-rule:#c7beaa; --ink:var(--club-ink); --bg:var(--club-paper); --paper:#fffaf0;
}
body {background:radial-gradient(ellipse at 86% 8%,#f3e9d163,transparent 48%),#f9f5e9;color:var(--club-ink)}
.app-shell {max-width:1300px;padding-inline:clamp(16px,4.8vw,72px)}
.site-header {min-height:77px;gap:16px;border-bottom:1px solid #b8b09a}
.brand {gap:8px;color:var(--club-ink)}
.club-mark {width:48px;height:48px;object-fit:contain}
#school-brand {font:bold 1.22rem/1.1 Georgia,'Times New Roman',serif;letter-spacing:-.035em;max-width:none}
.language-switch {background:transparent;border:1px solid #bfb8a5;border-radius:30px;padding:2px}
.language-switch button {border-radius:28px;min-height:36px;font-size:.875rem}
.language-switch button[aria-pressed=true]{background:var(--club-ink)}
.site-header nav {gap:9px}
.site-header .outline-button {background:transparent;border:1px solid #bfb8a5;border-radius:24px;min-height:42px;padding:8px 13px;color:var(--club-ink);font-weight:bold}
.site-header .rules-entry {background:transparent}
.site-header .rules-entry .rules-label {font:700 .9rem/1.4 InkSans,Arial,sans-serif}
.site-header .help-icon {font-size:.78rem}
#sound-button {min-width:42px}
.site-header .outline-button:hover,.language-switch button:not([aria-pressed=true]):hover {background:#ede7d6}
.club-hero {position:relative;display:grid;grid-template-columns:minmax(0, .92fr) minmax(0,1.08fr);align-items:center;gap:clamp(20px,4vw,64px);padding:clamp(34px,4vw,62px) 0 34px}
.origin {display:flex;align-items:center;gap:9px;margin:0 0 16px;color:#885526;text-transform:uppercase;letter-spacing:.12em;font-weight:700;font-size:.77rem}
.origin i {width:24px;height:2px;background:var(--club-clay)}
#school-home-title {font:700 clamp(4.2rem,6.65vw,6.25rem)/.93 Georgia,'Times New Roman',serif;letter-spacing:-.072em;margin:0;color:var(--club-ink)}
#school-home-title span,#school-home-title em {display:block}
#school-home-title em {font-weight:bold;color:var(--club-clay);letter-spacing:-.075em}
.hero-description {max-width:35ch;font-size:clamp(1.06rem,1.38vw,1.3rem);line-height:1.5;color:#43554a;margin:21px 0 24px}
.hero-buttons,.tile-links {display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.club-primary,.club-secondary,.tile-play {display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:8px;padding:12px 21px;min-height:48px;font:700 1rem/1.24 InkSans,Arial,sans-serif;text-decoration:none}
.club-primary,.tile-play {background:var(--club-teal);border:1px solid var(--club-ink);box-shadow:0 2px 0 #103a32;color:white}
.club-primary:hover,.tile-play:hover {background:#123e35}
.club-secondary {background:#fff9ed;color:var(--club-ink);border:1px solid #acae98}
.club-secondary:hover {background:#f1ead9}
.club-secondary img {width:26px;height:24px}
.play-shape {display:block;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:10px solid #fbd987}
.hero-print {min-width:0;position:relative;isolation:isolate;background:#fff9e9;padding:8px 8px 0;border:1px solid #a69b7c;border-radius:7px;box-shadow:4px 5px 0 #dcd2b9;transform:rotate(.7deg)}
.hero-print:before,.hero-print:after {content:"";width:16%;height:17px;position:absolute;z-index:2;background:#e6c274cb;box-shadow:inset 0 -1px #9b682330;clip-path:polygon(1% 5%,97% 0,100% 93%,2% 100%,4% 80%,0 65%,3% 44%,0 25%);top:-5px}
.hero-print:before {left:3%;transform:rotate(-14deg)}.hero-print:after {right:2%;transform:rotate(15deg)}
.cover-art {display:block;width:100%;height:auto;aspect-ratio:1.57;object-fit:cover;object-position:48% 53%;border-radius:3px}
.print-caption {display:flex;align-items:center;justify-content:center;gap:9px;padding:5px 4px 6px;color:#626d57;font:italic .86rem/1.3 Georgia,serif}
.print-caption i {height:1px;width:19px;background:#b6b295}
.choices-heading {display:flex;align-items:center;gap:22px;margin:7px 0 17px}
.choices-heading h2 {font:700 clamp(1.75rem,2.6vw,2.4rem)/1.1 Georgia,serif;letter-spacing:-.045em;margin:0}
.choices-heading>span {flex:1;height:5px;border-block:1px solid #c1b9a3}
.club-cards,.entry-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.club-game {padding:clamp(17px,2.1vw,28px);border:1px solid #9faa90;border-radius:14px;background:#e7edde;position:relative;overflow:hidden}
.cup-tile {background:#f8eaca;border-color:#c4ac7c}
.tile-main {display:flex;gap:18px;align-items:center}
.tile-main img {width:clamp(54px,6vw,84px);height:clamp(54px,6vw,80px);object-fit:contain;flex:none}
.tile-main small {display:block;font-size:.78rem;font-weight:700;color:#426450;letter-spacing:.045em;text-transform:uppercase;margin-bottom:5px}
.cup-tile small {color:#775319}
.club-game h3 {font:bold clamp(1.65rem,2.6vw,2.35rem)/1.13 Georgia,serif;letter-spacing:-.046em;margin:0}
.club-game p {margin:14px 0 16px;font-size:1.025rem;line-height:1.45;color:#344f41;max-width:46ch}
.tile-play {min-height:43px;padding:9px 17px;font-size:.94rem}
.cup-tile .tile-play {background:#80502a;border-color:#654220;box-shadow:0 2px 0 #573b21}
.cup-tile .tile-play:hover {background:#693e20}
.tile-links button,.field-detail {min-height:44px;background:transparent;font-size:.95rem;font-weight:700;color:var(--club-ink);text-decoration:underline;text-underline-offset:4px}
#home-extras {margin:18px auto 0;gap:24px}
#home-extras .text-button {font-size:1rem;color:#485d4b;min-height:44px}
.site-footer {color:#516355;gap:16px;border-top:1px solid var(--club-rule);margin-top:16px}
.site-footer>* {min-height:36px;align-content:center}
.memory-print {width:100%;height:auto;display:block;border-radius:7px;margin-block:16px}
/* The same editorial hierarchy follows the player through the mode shelf and the board. */
html :is(.school-launch,.school-launch:not([hidden]):has(.entry-grid)),html[lang=en] .school-launch:not([hidden]):has(.entry-grid){border:0;box-shadow:none;background:transparent;color:var(--club-ink);max-width:1000px;padding:clamp(16px,2.4vw,33px) 0;margin:0 auto}
.school-launch h1 {font:700 clamp(2.05rem,4.1vw,3.6rem)/1.07 Georgia,serif;letter-spacing:-.055em;max-width:26ch}
.school-back,.shelf-switch {color:var(--club-teal);border-color:#a8b29b;font-weight:bold}
.mode-example {color:var(--club-ink);background:#edf0e2;border:1px solid #bcc7ac;border-left:4px solid #458273;border-radius:7px;padding:15px 17px;margin:0 0 18px}
.mode-example b {color:var(--club-ink);font-size:1.06rem}.mode-example p{color:#455548;line-height:1.5}
.game-entry {background:#fffaf0;border:1px solid #b5bdab;border-radius:11px;box-shadow:none;padding:20px;text-align:left}
.game-entry:hover {background:#eaf0e1;border-color:#557663}
.game-entry strong {font:700 1.55rem/1.2 Georgia,serif;color:var(--club-ink)}
.game-entry small {color:var(--club-clay);padding-top:7px}
.game-entry span {color:#48574b;line-height:1.5}
#school-home:has(#cup-home:not([hidden])) .school-launch {border-bottom:1px solid var(--club-rule);padding:16px 0;min-width:0}
#school-home:has(#cup-home:not([hidden])) .school-launch h1 {font-size:1.5rem}
.intro {background:#1d493c;border:1px solid #214d40;box-shadow:none;border-radius:13px;color:#fff5d6}
.intro h1,.turn-card h2,#result-content h3,.dialog-inner>h2,.arena-section .section-label h2 {font-family:Georgia,serif;letter-spacing:-.035em}
.notebook,.turn-card,.result-card,.build-guide {border-radius:12px}
.turn-card,.result-card,.build-guide {box-shadow:none;border:1px solid #babea9}
.result-card {background:#f0eddd}
.dialog-inner {padding:clamp(20px,3vw,32px)}
dialog {background:#fffaf0;color:var(--club-ink);border:1px solid #667d69;border-radius:14px;box-shadow:0 14px 60px #15372b40}
dialog::backdrop {background:#142e26a8}
dialog .dialog-close {width:43px;height:43px;display:grid;place-items:center;font-size:1.4rem;color:var(--club-ink);border:1px solid #b2b8a5;background:#fffaf0;border-radius:50%}
.practice-notebook {background:#fff9e9}
.practice-meta,.practice-recap {font-size:.95rem}
.practice-cell strong,.practice-cell small {font-size:.76rem}
#club-guide {padding:0;width:min(640px,calc(100vw - 22px));max-height:91dvh;overflow:auto}
.field-mast {display:flex;align-items:center;gap:12px;padding:15px 24px;background:#e9eddf;border-bottom:1px solid #b8c3ad}
.field-mast>img {width:46px;height:42px;object-fit:contain}
.field-mast h2 {font:700 1.6rem/1.18 Georgia,serif;letter-spacing:-.04em;margin:0}
.field-mast .dialog-close {position:static;flex:none;margin-left:auto}
#field-body {padding:20px clamp(16px,3.5vw,30px) 24px}
.field-pickers {display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.family-tabs {display:inline-flex;align-self:flex-end;background:#eee9d9;border-radius:8px;padding:3px}
.family-tabs button {min-height:41px;font-size:.87rem;padding:7px 11px;background:transparent;color:var(--club-ink);border-radius:6px;font-weight:bold}
.family-tabs button[aria-pressed=true]{background:var(--club-teal);color:white}
.field-pickers label {display:grid;gap:3px;font-size:.8rem;font-weight:bold;flex:1;min-width:140px;color:#49604d}
.field-pickers select {font:inherit;font-size:.94rem;min-height:42px;padding:6px 8px;border:1px solid #adb8a4;border-radius:6px;background:#fffaf0;color:var(--club-ink)}
.field-current {font-weight:bold;margin:0;color:var(--club-teal)}
.field-lesson {margin-top:22px}
.field-counter {font-weight:bold;letter-spacing:.08em;font-size:.8rem;color:#995336;text-transform:uppercase}
.field-lesson h3 {font:700 clamp(1.7rem,4vw,2.45rem)/1.14 Georgia,serif;letter-spacing:-.04em;margin:6px 0}
.field-lesson h3:focus {outline:none}
.field-lesson>p {font-size:1.04rem;line-height:1.5;margin:8px 0 14px}
.exhibit {margin:0;border-radius:10px;overflow:hidden;border:1px solid #b9b99f;background:#f3efdf}
.exhibit-art {background:repeating-linear-gradient(0deg,transparent 0 24px,#95b2a655 24px 25px),#fff9e8;padding:15px clamp(8px,2.5vw,22px)}
.exhibit figcaption {font:italic 1rem/1.4 Georgia,serif;padding:10px 15px;border-top:1px solid #c5ccb3;color:#435340}
.diagram-row {display:flex;align-items:center;gap:12px;margin:5px 0}.diagram-row>span {min-width:54px;font-weight:bold}
.field-digits {display:flex;justify-content:center;gap:6px;flex:1}
.field-digits b {display:grid;place-items:center;flex:1;max-width:60px;border:1px solid #a7ac95;border-radius:4px;background:#fdf9e9;min-height:38px}
.field-digits .marked {background:#f4c362;color:#423017;border:2px solid #936026}
.field-sequence {display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px}
.field-sequence.growth {gap:2px}
.field-fighter {min-width:0;flex:1;text-align:center;max-width:119px;font-size:.88rem}
.field-fighter svg {display:block;width:100%;height:70px}.field-fighter b {display:block;line-height:1.3}
.field-burst {font-size:2.8rem;color:var(--club-clay)}
.page-sample {display:grid;justify-items:center;background:#fffcf2;border:1px solid #b6ab83;border-left:6px solid var(--club-teal);box-shadow:2px 3px #d9c99c;padding:5px 17px;transform:rotate(-3deg);margin:5px 14px 10px}
.page-sample span {font-size:.72rem;letter-spacing:.12em}.page-sample b {font:bold 2.5rem Georgia,serif}.page-sample em {color:var(--club-clay);text-decoration:underline}
.register-line {display:flex;justify-content:space-between;align-items:center;padding:9px 4px;border-bottom:1px solid #bac2a7;gap:12px}
.field-nav {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:20px}
.field-nav>button:first-child {background:transparent;border:1px solid #a6b398;border-radius:6px;padding:9px 14px;min-height:44px;color:var(--club-ink)}
.field-nav>button:disabled {opacity:.43;cursor:default}
.field-nav>span {display:flex;gap:5px}.field-nav i {width:7px;height:7px;border-radius:8px;background:#cbc8b8}.field-nav i.on {width:20px;background:var(--club-clay)}
.field-detail {display:block;margin:10px auto 0}
html[lang=ta] :is(#school-home-title,#school-home-title em,.club-game h3,.choices-heading h2,.field-lesson h3,.field-mast h2,.game-entry strong,#school-brand) {letter-spacing:0;line-height:1.4}
html[lang=ta] #school-home-title {font-size:clamp(2.8rem,5vw,4.8rem)}
html[lang=ta] :is(.origin,.tile-main small,.field-counter){letter-spacing:0}
@media(max-width:820px){
 .site-header{flex-wrap:wrap;padding:10px 0;gap:8px}.site-header nav{flex:0 1 auto;justify-content:flex-end}.club-hero{gap:20px}
 #school-home-title{font-size:clamp(3.4rem,7.5vw,4.5rem)}.hero-buttons{gap:8px}.hero-buttons button{padding:11px 14px}
 .club-cards{gap:12px}.tile-main{gap:10px}
}
@media(max-width:650px){
 .app-shell{max-width:100%;padding-inline:16px}.site-header{min-height:62px}.club-mark{width:36px;height:36px}#school-brand{font-size:1rem;max-width:7em}.brand{gap:4px}
 .site-header nav{gap:5px}.site-header .outline-button{min-height:40px;padding:6px 10px}.site-header .rules-entry .rules-label{font-size:.8rem}
 .site-header .help-icon{display:none}.language-switch button{min-height:36px;padding:4px 9px}.site-header #sound-button{font-size:0;min-width:40px;gap:0}.site-header #sound-button span{font-size:0}
 .club-hero{grid-template-columns:1fr;padding:27px 0 21px;gap:21px}.origin{margin-bottom:12px;font-size:.72rem}.hero-description{margin:11px 0 15px;max-width:42ch;font-size:1.03rem}
 #school-home-title{font-size:clamp(2.65rem,9.4vw,3.8rem);line-height:1}.hero-copy #school-home-title span,.hero-copy #school-home-title em{display:inline}
 .hero-print{margin:0 3px;transform:rotate(.45deg);padding:5px 5px 0}.cover-art{aspect-ratio:2.05;object-position:50% 59%}.print-caption{font-size:.76rem;padding:3px}
 .choices-heading{margin:10px 0 13px;gap:13px}.club-cards,.entry-grid{grid-template-columns:1fr}.club-game{padding:16px 18px}.tile-main img{width:64px;height:56px}
 .club-game p{margin:8px 0 10px}.tile-main small{font-size:.74rem}
 html[lang=ta] #school-home-title{font-size:clamp(2rem,6.8vw,2.9rem)}
 .site-footer {flex-wrap:wrap;justify-content:center;gap:3px 15px}
 .field-mast{padding:10px 14px}.field-lesson{margin-top:17px}.field-nav{margin-top:12px}
}
@media(max-width:470px){
 .site-header nav{flex:0 1 auto}.site-header:has(#online-button:not([hidden])){row-gap:8px}
 body:has(#school-game[hidden]) .site-header .rules-entry{display:none}
 body:has(#school-game[hidden]):has(#school-cover[hidden]) .site-header .rules-entry{display:flex}
 .site-header .brand{flex-shrink:1}
 .hero-buttons button{min-height:45px}
 .field-fighter svg{height:54px}.field-fighter b{font-size:.75rem}.field-pickers{gap:6px}.field-pickers label{min-width:115px}
}
@media(prefers-reduced-motion:reduce){.hero-print{transform:none}}
.field-lesson>.field-quip {font:italic 1rem/1.45 Georgia,serif;color:#526247;margin:12px 0 0}
.field-quip b {font:700 .85rem InkSans,Arial,sans-serif;color:#854e27}
:is(#setup-dialog,#lesson-dialog,#score-dialog,#memory-dialog,#history-dialog) .dialog-inner>h2 {padding-right:30px}
:is(#setup-dialog,#lesson-dialog) .dialog-inner>h2:before {content:"";display:inline-block;vertical-align:middle;width:45px;height:41px;margin-right:9px;background:url('./club-icons/notebook.svg') center/contain no-repeat}
#lesson-dialog .dialog-inner>h2:before {background-image:url('./club-icons/guide.svg')}
.home-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:#224d42;background:#fff9e9;border:1px solid #a7b59e;border-radius:7px;min-height:42px;padding:5px 11px;font:700 .91rem/1.3 InkSans,system-ui;cursor:pointer}
.dialog-inner>.home-link{margin-bottom:9px}.field-mast>.home-link{order:-1}.field-mast{gap:8px;flex-wrap:wrap}
#invite-reminder{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px 0;padding:12px 16px;background:#edf2de;border:1px solid #91a986;border-radius:9px}
#friend-invite form input{display:block;width:100%;min-height:46px;border:1px solid #9cae9c;border-radius:6px;font:inherit;padding:7px 12px;margin:7px 0 15px}
#invite-status:empty{display:none}#invite-status{color:#863c29}#invite-kept{font-size:.95rem;color:#475b4c}#invite-learn{margin-top:12px}
#school-tour{position:fixed;left:50%;transform:translateX(-50%);z-index:45;width:min(390px,calc(100% - 22px));padding:16px 19px;max-height:75dvh;overflow:auto;border:2px solid #385f4b;border-top:5px solid #dfad48;border-radius:12px;background:#fffbed;box-shadow:0 8px 32px #173c3745}
#school-tour h2{font:bold 1.45rem/1.28 Georgia,serif;margin:5px 0;color:#234b3d}#school-tour small{font-weight:bold;color:#78502e}#school-tour p{margin:5px 0 12px;line-height:1.45}#school-tour>div{display:flex;align-items:center;justify-content:flex-end;gap:6px}#school-tour button{font:700 .92rem InkSans,sans-serif;min-height:42px;padding:7px 12px;border-radius:6px}#school-tour button:first-child{margin-right:auto;background:transparent;text-decoration:underline}
.tour-highlight{outline:4px solid #d19122!important;outline-offset:3px}
.cup-dictionary{display:grid;gap:9px}.cup-dictionary>div{padding:9px 12px;border-radius:7px;background:#f1efdd}.cup-dictionary b,.cup-dictionary span{display:block}
@media(max-width:530px){.site-header nav{flex-wrap:wrap}.site-header #nav-home{font-size:.84rem}.field-mast>img{display:none}}
