:root{--ink:#193c35;--muted:#587168;--green:#236c57;--cream:#f7f7ef;--line:#dce6dc;--gold:#f3cf75}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:17px/1.65 system-ui,-apple-system,'PingFang SC',sans-serif}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:14px;background:white;color:var(--ink);padding:11px 19px;min-height:48px}button:hover{border-color:var(--green);background:#edf4eb}button:disabled{opacity:.5;cursor:default}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#175240;color:white}.soft{background:#eaf1e5}.danger{color:#9a3e2f}a{color:var(--green)}header{max-width:1180px;margin:auto;padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font-weight:850;text-decoration:none;font-size:23px}nav{display:flex;gap:10px;align-items:center}nav a{font-size:14px;margin-right:10px}nav button{font-size:14px;padding:7px 13px}main{max-width:1132px;margin:8px auto 60px;padding:0 24px}h1{font-size:clamp(29px,4vw,48px);line-height:1.25;letter-spacing:-1px;margin:14px 0}h2{font-size:25px;line-height:1.4}h3{margin:8px 0;font-size:21px}p{margin:10px 0}.eyebrow{font-size:13px;letter-spacing:2px;font-weight:750;color:var(--green)}.muted,small{color:var(--muted)}.hero{border-radius:30px;background:#e6efdf;display:grid;grid-template-columns:1fr 1.06fr;overflow:hidden;min-height:330px}.hero-copy{padding:38px}.hero img{width:100%;height:100%;object-fit:cover;min-height:280px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.spread{justify-content:space-between}.section{margin-top:32px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.theme,.game{padding:0;overflow:hidden;text-align:left;border:1px solid var(--line);border-radius:22px;background:white}.theme[aria-pressed=true]{outline:3px solid var(--green);outline-offset:3px}.theme-art{height:220px;background-image:url('./assets/partners.png');background-size:210% auto;background-repeat:no-repeat;background-position-y:45%}.theme-copy,.game{padding:20px}.theme-copy strong{font-size:20px}.game{min-height:215px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between}.game .icon{font-size:34px}.game p{font-size:15px;color:var(--muted)}.pill{display:inline-block;border-radius:30px;background:#e9efe3;padding:4px 12px;font-size:13px}.box{background:white;border:1px solid var(--line);border-radius:24px;padding:28px;margin:20px 0}.note{background:#eef2e7;padding:16px 20px;border-radius:15px;font-size:15px}details{margin:20px 0}summary{cursor:pointer;font-weight:650}label{display:flex;flex-direction:column;gap:6px;font-size:15px}input,select{padding:12px;border:1px solid #b8c9bb;border-radius:12px;background:white;color:var(--ink);width:100%}.fields{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:20px 0}.fields input[type=checkbox]{width:auto}.check{flex-direction:row;align-items:center;gap:9px}.task-layout{display:grid;grid-template-columns:1fr 1.15fr;gap:22px}.scene{border-radius:25px;background:#e8f0df;padding:26px;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;min-height:380px}.scene img{width:100%;border-radius:18px;max-height:245px;object-fit:cover}.scene .big-icon{font-size:76px}.task-title{font-size:32px}.guide{font-size:19px;padding:20px;background:#f3f5ed;border-radius:16px}.timer{font-size:36px;font-weight:800;font-variant-numeric:tabular-nums}.status{min-height:30px;color:var(--green)}.outcomes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0}.outcomes button{text-align:left;padding:15px}.outcomes small{display:block;font-size:12px}.progress{height:9px;background:#e0e6db;border-radius:9px;overflow:hidden;margin:18px 0}.progress span{display:block;height:100%;background:var(--green);transition:width .2s}.reward{font-size:24px;color:var(--green);font-weight:750}.stars{font-size:35px;color:#a97412;letter-spacing:8px;overflow-wrap:anywhere}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat{background:#edf2e7;border-radius:16px;padding:18px}.stat strong{display:block;font-size:29px}.scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}td,th{padding:12px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}footer{text-align:center;font-size:13px;color:var(--muted);padding:20px}.banner{padding:18px;background:#fff1d5;border-radius:16px;margin:12px 0}.hidden{display:none!important}:focus-visible{outline:3px solid #c37e13;outline-offset:4px}button:active{transform:translateY(1px)}@media(max-width:760px){header{padding:16px;align-items:flex-start}.brand{font-size:19px}nav{gap:5px;flex-wrap:wrap;justify-content:flex-end}nav a{display:none}main{padding:0 16px}.hero{grid-template-columns:1fr}.hero-copy{padding:25px}.hero img{height:240px;min-height:0}.grid{grid-template-columns:1fr 1fr}.grid.themes{grid-template-columns:1fr 1fr 1fr;gap:9px}.theme-art{height:95px}.theme-copy{padding:10px}.theme-copy strong{font-size:15px}.theme-copy small{display:none}.game{padding:17px;min-height:220px}.game h3{font-size:19px}.fields{grid-template-columns:1fr 1fr}.task-layout{grid-template-columns:1fr}.scene{min-height:0;padding:20px}.scene img{max-height:170px}.scene .task-title{font-size:25px}.box{padding:20px}.stat-grid{grid-template-columns:1fr 1fr}.task-title{font-size:27px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
/* Keep intrinsic control and grid widths from stretching narrow screens. */
.hero,.grid,.fields,.task-layout,.outcomes,.stat-grid{min-width:0}
.hero>*,.grid>*,.fields>*,.task-layout>*,.outcomes>*,.stat-grid>*{min-width:0}
.grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.fields{grid-template-columns:repeat(3,minmax(0,1fr))}
.task-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}
input,select{min-width:0;max-width:100%}
input[type=checkbox]{width:22px;height:22px;flex:0 0 22px;padding:0;margin:3px 0;accent-color:var(--green)}
.check{align-items:flex-start;margin:14px 0;line-height:1.65}
button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
img{max-width:100%}.box,.note,.guide{overflow-wrap:anywhere}
@media(max-width:760px){
 header{flex-wrap:wrap;gap:10px;padding:16px}
 header .brand{white-space:nowrap}nav{margin-left:auto}
 .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .grid.themes{grid-template-columns:repeat(3,minmax(0,1fr))}
 .fields,.task-layout,.outcomes{grid-template-columns:minmax(0,1fr)}
 .fields{gap:14px}input,select{font-size:16px;min-height:48px}
 input[type=checkbox]{min-height:22px}
 .outcomes button{min-height:76px}
 .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .row>button{flex:1 1 140px}
 .scene{gap:6px;padding:16px}.scene img{height:auto;max-height:150px;object-fit:contain}
 .scene .big-icon{font-size:44px;line-height:1.2}.scene h2{margin:8px 0}
 .box{padding:18px}.note,.guide{padding:14px}
 .theme-copy{padding:10px 7px}.theme-copy strong{font-size:14px}
 .scroll{max-width:100%;overscroll-behavior-x:contain}
 footer{padding-bottom:max(20px,env(safe-area-inset-bottom))}
}
@media(max-width:360px){
 header{display:block}nav{margin-top:10px;justify-content:flex-start}
 .grid:not(.themes){grid-template-columns:minmax(0,1fr)}
 .game{min-height:170px}.theme-copy strong{font-size:13px}
 main{padding:0 12px}.hero-copy{padding:22px}.hero img{height:auto}
 .stat{padding:12px}.stat strong{font-size:25px}
}
