:root{--green:#123f32;--forest:#0d3025;--paper:#fffcf3;--gold:#edc569;--ink:#20342b;--muted:#486055;--line:#d9ded1}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 system-ui,sans-serif}
html{scroll-behavior:smooth} button{font:inherit;cursor:pointer} a{color:inherit} :focus-visible{outline:3px solid #a86413;outline-offset:4px}
.shell{width:min(1160px,calc(100% - 64px));margin-inline:auto}
.skip{position:absolute;left:1rem;top:-6rem;z-index:4;background:white;padding:1rem}.skip:focus{top:1rem}
.site-header{border-bottom:1px solid var(--line)}
.header-inner,.footer-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.wordmark{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-weight:850;white-space:nowrap;letter-spacing:-.035em;font-size:1.2rem}
.mark{display:grid;place-items:center;background:var(--green);color:#fff7dc;width:35px;height:41px;border-radius:7px;transform:rotate(-9deg)}.bang{color:#99701b}
nav{display:flex;gap:30px}nav a{text-decoration:none;font-weight:680}nav a:hover,.text-link:hover{text-decoration:underline}
.language{display:flex;border:1px solid var(--line);border-radius:40px;padding:3px;gap:2px}
.language button{border:0;background:none;color:var(--green);font-weight:800;font-size:.88rem;border-radius:40px;min-width:39px;min-height:34px}
.language button[aria-pressed=true]{background:var(--green);color:white}
.hero{display:grid;grid-template-columns:1fr 1fr;gap:54px;align-items:center;padding-block:65px 70px}
.eyebrow{font-size:.875rem;font-weight:800;letter-spacing:.11em;line-height:1.4;margin:0 0 13px}
.hero-label{color:var(--green)}.hero-label>span:first-child{color:#996b17;margin-right:4px}
h1,h2,h3{font-family:Georgia,serif;line-height:1.04;letter-spacing:-.048em;color:var(--green);margin:0}
h1{font-size:clamp(75px,9.6vw,145px);line-height:.81;margin:22px 0 24px}
h1 em{color:#267757;font-weight:normal}
.hero-subtitle{font-size:clamp(1.25rem,2.3vw,1.62rem);font-weight:750;margin:0 0 8px}
.hero-description,.section-intro{font-size:1.12rem;max-width:620px;color:var(--muted);margin:12px 0 24px}
.hero-description{max-width:420px}
.actions{display:flex;gap:12px;flex-wrap:wrap}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:.65rem 1.12rem;min-height:46px;border-radius:7px;border:1px solid var(--green);text-decoration:none;font-weight:760}
.primary{background:var(--green);color:white}.primary:hover{background:#20624c}.outline{color:var(--green);background:transparent}.outline:hover{background:#edf1e7}
main{overflow:clip}
.hero{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);padding-block:78px 80px}
.hero-art{position:relative;min-width:0;aspect-ratio:1.22;border-radius:20px;background:#d5d9c9;transform:rotate(2deg);border:8px solid #fffdf8;box-shadow:0 18px 45px #123f322c}
.hero-art img{width:100%;height:100%;object-fit:cover;object-position:center 47%;display:block;border-radius:12px}
.hero-math{position:absolute;right:-16px;bottom:19px;display:flex;align-items:center;gap:9px;padding:11px 13px;border-radius:9px;background:#efc96e;color:var(--green);transform:rotate(-6deg);box-shadow:0 5px 15px #15281f33;font:700 1.55rem/1 Georgia,serif}
.hero-math span{padding:6px 8px;border-radius:5px;background:#fffaf0}.hero-math span:last-child b{color:#982837}.hero-math i{font-style:normal}
.section{padding-block:76px;scroll-margin-top:20px}
.overline{color:#397052}
h2{font-size:clamp(2.6rem,6vw,4.65rem)}
.game-grid,.gallery{display:grid;gap:16px}.game-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin:28px 0 22px}
.game-tile{border:1px solid var(--line);border-radius:13px;background:#fffdf7;color:var(--green);text-align:left;padding:9px 9px 14px;transition:transform .15s}
.game-tile:hover{transform:translateY(-3px)}.game-tile[aria-pressed=true]{border-color:var(--green);box-shadow:0 0 0 2px var(--green)}
.tile-art{display:flex;align-items:center;justify-content:center;gap:6px;min-height:105px;border-radius:8px;background:#d2e7d4}
.theme-golf .tile-art{background:#f4e1aa}.theme-war .tile-art{background:#ecd7d3}.theme-fish .tile-art{background:#d7eaf0}
.mini-card{display:grid;place-items:center;flex:none;width:22%;max-width:42px;height:54px;border-radius:6px;background:#fffcf3;font:700 clamp(1.1rem,2.7vw,1.65rem)/1 Georgia;box-shadow:0 2px 4px #20352b38;transform:rotate(-10deg)}
.mini-card:nth-child(2){transform:translateY(-5px);color:#9e3d3b}.mini-card:nth-child(3){transform:rotate(10deg)}
.tile-title,.tile-skill{display:block;margin-inline:6px}.tile-title{font:700 1.6rem/1.2 Georgia;margin-top:9px}.tile-skill{font-size:.9rem;color:var(--muted)}
.game-guide{background:#fffdf9;border:1px solid var(--line);border-radius:15px;padding:clamp(19px,3.5vw,38px)}
.guide-header{display:flex;align-items:start;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.guide-header .eyebrow{color:#486055}
h3{font-size:clamp(1.65rem,3.1vw,2.65rem)} h4{font-size:1.13rem;color:var(--green);margin:0} .guide-content{display:grid;grid-template-columns:1fr 1.5fr;gap:32px;margin:22px 0}
.guide-content p,.guide-content ol,.math-prompt p{margin:5px 0 0}.guide-content ol{padding-inline-start:1.35rem}.guide-content li+li{margin-top:6px}
.math-prompt{padding:14px 18px;background:#edf3e7;border-radius:8px}
.teachers-section{background:#eaf1e4}.teacher-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}
.teacher-art{position:relative}.teacher-art img{width:100%;height:auto;aspect-ratio:1.18;object-fit:cover;display:block;border-radius:17px}.teacher-image-tag{position:absolute;bottom:14px;left:14px;max-width:calc(100% - 28px);padding:5px 10px;background:#fff8df;border-radius:5px;font-size:.88rem;font-weight:760}
.teacher-steps{padding-inline-start:1.35rem;margin-bottom:24px}.teacher-steps li+li{margin-top:8px}
.gallery{grid-template-columns:repeat(3,1fr);margin-top:28px}.gallery figure{margin:0}.gallery img{display:block;width:100%;aspect-ratio:4/4.4;object-fit:cover;object-position:center 60%;border-radius:13px}.gallery figcaption{margin-top:7px;font-weight:670}
.project-section{background:var(--forest);color:#fff9e8}.project-section h2,.project-section .overline{color:#f6d47e}.project-section .section-intro{color:#e2eee3}
.project-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.project-card{background:#fff9e8;color:var(--ink);border-radius:13px;padding:24px}.partner-card{background:#e2ecdc}.text-link{font-weight:750;text-underline-offset:4px}
.site-footer p{margin:0;color:var(--muted)}
@media(max-width:850px){.hero{gap:25px}.teacher-grid{gap:26px}.section{padding-block:54px}}
@media(max-width:650px){.shell{width:calc(100% - 34px)}.header-inner{min-height:0;padding-block:12px;flex-wrap:wrap;gap:7px}.header-inner nav{order:3;width:100%;justify-content:center;gap:19px;padding-top:6px}.hero{grid-template-columns:1fr;padding-block:40px;gap:25px}.hero-art{aspect-ratio:1.24}.playing-card b{font-size:clamp(52px,17vw,105px)}.playing-card small{font-size:20px}.ribbon-inner{justify-content:center;padding-block:10px;font-size:.88rem}.section{padding-block:42px}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tile-art{min-height:70px}.mini-card{height:35px}.tile-title{font-size:1.22rem}.tile-skill{font-size:.81rem}.game-tile{padding:5px 4px 9px}.guide-content,.teacher-grid,.project-grid{grid-template-columns:1fr;gap:15px}.guide-header{flex-wrap:wrap;padding-bottom:14px}.teacher-art{order:1}.gallery{gap:8px}.gallery figcaption{font-size:.88rem}.footer-inner{padding-block:16px;flex-wrap:wrap;gap:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.game-tile{transition:none}}
@media print{body{background:white;color:black;font-size:12pt}.site-header,.hero,.ribbon,.games-section>p,.games-section>h2,.game-grid,.section:not(.games-section),.site-footer,.skip,#print-guide{display:none!important}.shell{width:100%}.games-section{padding:0}.game-guide{padding:0;border:0}.guide-content{display:block}.guide-content>div{margin-bottom:15px}.math-prompt{padding-left:0;background:none}.guide-header{display:block}}

.games-section{border-top:1px solid var(--line)}
.game-tile{background:#fffdf8;padding-bottom:17px}
.tile-art{min-height:118px}
.game-tile[aria-pressed=true]{box-shadow:0 0 0 2px var(--green);background:#f0f5e9}
.teacher-art img{object-position:center 65%}
.gallery figure{background:#fffef8;border:1px solid var(--line);border-radius:13px;overflow:hidden}
.gallery img{border-radius:0}
.gallery figcaption{margin:0;padding:10px 12px}
@media(max-width:950px){h1{font-size:clamp(62px,10vw,110px)}}
@media(max-width:650px){.hero{grid-template-columns:1fr;gap:28px;padding-block:39px 39px}.hero-art{transform:none;border-width:5px}.hero-math{right:3px;bottom:10px;font-size:1.15rem}.header-inner nav{gap:15px;font-size:.9rem}.tile-art{min-height:70px}.gallery figcaption{padding:7px;line-height:1.3}}
@media(max-width:345px){.header-inner nav{gap:9px}.hero-label{letter-spacing:.07em}}

.video-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:28px}
.video-card{display:flex;flex-direction:column;height:100%;text-decoration:none;background:#fffef8;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 2px 5px #15362b0a}
.video-poster{position:relative;aspect-ratio:16/10;display:block;overflow:hidden;background:var(--forest)}
.video-poster::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,transparent 45%,#111e17a6)}
.video-poster img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease}
.video-card:hover .video-poster img{transform:scale(1.045)}
.play-chip,.video-time{position:absolute;z-index:1;bottom:13px}
.play-chip{display:grid;place-items:center;left:13px;width:47px;height:47px;border-radius:50%;background:var(--gold);color:var(--forest);box-shadow:0 3px 9px #0005}
.play-chip svg{width:21px;height:21px;margin-left:2px}
.video-time{right:13px;padding:2px 8px;border-radius:4px;background:#0e271de6;color:white;font-weight:700;font-size:.9rem;font-variant-numeric:tabular-nums}
.video-info{display:grid;align-content:start;gap:5px;padding:15px 17px 19px}
.video-language{color:var(--muted);font-size:.88rem;font-weight:750}
.video-name{color:var(--forest);font:700 clamp(1.18rem,2.2vw,1.6rem)/1.2 Georgia,serif}
.video-card:hover .video-name{text-decoration:underline;text-underline-offset:3px}
.gallery-title{margin-top:38px;font-size:clamp(1.65rem,3vw,2.25rem)}
.gallery-title+.gallery{margin-top:16px}
.watch-dialog{width:min(760px,calc(100% - 24px));max-height:calc(100% - 24px);padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);overscroll-behavior:contain}
.watch-dialog::backdrop{background:#071910dc}
.watch-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.watch-header h3{font-size:clamp(1.2rem,3vw,1.85rem)}
.watch-header .button{padding-inline:.72rem}
.watch-dialog video{display:block;width:100%;height:min(63vh,540px);height:min(63dvh,540px);background:#0e1f18;border-radius:8px}
.watch-direct{display:inline-block;margin:9px 0 0}
@media(max-width:900px){.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:690px){.video-grid{grid-template-columns:1fr;gap:12px}.video-card{display:grid;grid-template-columns:minmax(0,47%) minmax(0,1fr)}.video-info{align-content:center;padding:10px 12px}.play-chip,.video-time{bottom:7px}.play-chip{left:7px;width:34px;height:34px}.play-chip svg{width:16px;height:16px}.video-time{right:7px;font-size:.76rem}}
@media(prefers-reduced-motion:reduce){.video-poster img{transition:none}}

.guide-resources{border-top:1px solid var(--line);margin-top:25px;padding-top:19px}
.guide-resources h4{margin-bottom:10px}
.guide-illustrations,.guide-videos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,212px),1fr));gap:12px}
.guide-illustrations{margin-bottom:23px}
.guide-illustration,.guide-video{border:1px solid var(--line);border-radius:10px;color:var(--green);text-decoration:none;background:#fffef9;overflow:hidden}
.guide-illustration:hover,.guide-video:hover{border-color:var(--green);background:#f4f7ed}
.guide-illustration img{display:block;width:100%;height:165px;object-fit:contain;background:#f5f2e7;padding:8px;border-bottom:1px solid var(--line)}
.guide-illustration strong,.guide-illustration span{display:block;margin-inline:10px}
.guide-illustration strong{margin-top:7px}
.guide-illustration span,.guide-video-detail{display:block;color:var(--muted);font-size:.88rem}
.guide-illustration span{margin-bottom:9px;text-decoration:underline;text-underline-offset:2px}
.guide-video{display:grid;grid-template-columns:76px 1fr;align-items:center;gap:8px;min-height:65px;padding:6px}
.guide-video .video-name{font:700 .96rem/1.3 system-ui,sans-serif}
.guide-video-poster{position:relative}
.guide-video-poster img{display:block;width:100%;aspect-ratio:8/5;object-fit:cover;border-radius:6px}
.guide-video-poster::after{content:"▶";display:grid;place-items:center;position:absolute;left:4px;bottom:4px;width:23px;height:23px;border-radius:50%;font-size:10px;background:var(--gold);color:var(--forest)}
.guide-resources[hidden]{display:none}
@media print{.guide-resources{display:none}}
