:root{--paper:#faf7ef;--ink:#2f4438;--muted:#5f685c;--green:#52735c;--green-dark:#3f6049;--line:#e7e9df;--white:#fffefa;--shadow:0 12px 36px #344b3810}*{box-sizing:border-box}body{margin:0;font-family:'PingFang SC','Microsoft YaHei',system-ui,sans-serif;font-size:15px;line-height:1.65;color:var(--ink);background:var(--paper);-webkit-font-smoothing:antialiased}a{color:var(--green);text-decoration:none}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a5bf9e;outline-offset:4px}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.site-header{max-width:1240px;margin:auto;min-height:100px;padding:24px 40px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:750;letter-spacing:1px;color:var(--ink);white-space:nowrap}.brand-icon{width:44px;height:44px;border-radius:14px;background:var(--green);color:#fff;display:grid;place-items:center}.brand small{display:block;font-size:13px;letter-spacing:2px;color:var(--muted);font-weight:400;margin-top:1px}.header-note{font-size:13px;color:var(--muted);display:flex;gap:9px;align-items:center}.status-dot{width:7px;height:7px;border-radius:50%;background:#8fa482}.student-main{max-width:1180px;margin:auto;padding:12px 30px 45px}.hero{display:grid;grid-template-columns:1fr 1.04fr;align-items:center;gap:36px;min-height:510px}.hero-art{height:490px;background:none center bottom/contain no-repeat;mix-blend-mode:normal;position:relative}.art-note{position:absolute;top:26px;left:38px;font-size:13px;letter-spacing:3px;color:var(--muted)}.hero-copy{padding:24px 6px}.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:14px;letter-spacing:2px;color:var(--green);margin-bottom:17px}.eyebrow::before{content:'';width:22px;height:1px;background:#8ba182}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(32px,3.5vw,46px);letter-spacing:1px;line-height:1.4;margin-bottom:16px;font-weight:750}.hero-copy h1 em{font-style:normal;color:#75916a}.intro{font-size:16px;line-height:1.9;color:var(--muted);margin-bottom:24px}.activate-panel{border:1px solid #fff;background:#fffefaed;box-shadow:var(--shadow);border-radius:20px;padding:24px}.activate-panel label{margin:0 0 10px;font-size:15px;font-weight:650}.license-who{display:flex;align-items:center;gap:14px;color:var(--ink);margin-bottom:6px}.license-who .av{--av:56px}.license-name{display:flex;flex-direction:column;gap:4px;min-width:0}.license-name strong{font-size:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.license-badges{display:flex;gap:6px;flex-wrap:wrap}.license-ok{display:inline-flex;padding:1px 9px;border-radius:999px;background:#e3f2dc;color:var(--green-dark);font-size:12px;font-weight:800;line-height:1.5}.license-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.license-links .button{flex:1;min-width:0;gap:5px;white-space:nowrap;padding-left:8px;padding-right:8px}.license-switch{flex:1}.license-switch summary{cursor:pointer;color:var(--green);font-weight:650;font-size:13px}.license-switch[open] summary{margin-bottom:10px}.license-switch form{margin:0}.activate-row{display:flex;gap:10px}.activate-row input{min-width:0;flex:1;width:100%;letter-spacing:1px}.activate-row button{white-space:nowrap}.hint{font-size:14px;line-height:1.8;color:var(--muted);margin:12px 0 0}.activation-state{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px;border-top:1px solid var(--line);margin-top:18px;padding-top:14px}.activation-state p{margin:0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:25px 0 20px}.section-heading h2{font-size:22px;margin:0}.section-heading p{color:var(--muted);font-size:14px;margin:0}.section-heading .count-label{font-size:14px;color:var(--muted)}.game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.game-card{position:relative;background:var(--white);border:1px solid #eeede4;border-radius:22px;padding:25px 23px;transition:transform .18s,box-shadow .18s}.game-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.game-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.game-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;font-size:23px;font-weight:650;background:#edf1e3;color:#789067}.game-card:nth-child(2) .game-icon{background:#faf0db;color:#b49b52}.game-card:nth-child(3) .game-icon{background:#e8eff5;color:#6c8fa7}.game-card:nth-child(4) .game-icon{background:#f5e9e1;color:#af866b}.game-icon svg{width:26px;height:26px}.game-number{font-size:13px;color:var(--muted);letter-spacing:2px}.game-card h3{font-size:19px;margin:0 0 9px}.game-card p{font-size:14px;color:var(--muted);line-height:1.8;min-height:47px;margin-bottom:23px}.card-bottom{border-top:1px solid var(--line);padding-top:15px;font-size:15px;gap:10px;display:flex;align-items:center;justify-content:space-between}.locked{color:var(--muted);display:inline-flex;align-items:center}.locked svg{width:15px;height:15px;margin-right:5px}.game-link{font-weight:650;width:100%;display:flex;justify-content:space-between;align-items:center}.game-link svg{width:19px;height:19px}.site-footer{color:var(--muted);font-size:13px;text-align:center;letter-spacing:1px;padding:25px 20px 32px}.site-footer span{margin:0 10px}.site-footer a{margin-left:22px;color:var(--muted);font-size:13px}button,.button{border:1px solid transparent;background:var(--green);color:white;border-radius:10px;padding:10px 19px;min-height:44px;font-weight:550;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;line-height:1.5;transition:background .15s}button:hover,.button:hover{background:var(--green-dark);color:white}button:disabled{opacity:.6;cursor:wait}.button.secondary,button.secondary{background:#fff;color:var(--green);border-color:var(--line)}.button.secondary:hover,button.secondary:hover{background:#f1f5ee}.text-button{background:transparent;color:var(--muted);border:0;padding:0;min-height:28px;font-weight:400;font-size:14px}.text-button:hover{background:transparent;color:var(--green-dark)}.danger{color:#a45d52!important;background:#fbefeb!important;border-color:#f1dcd6!important}input,select{background:#fffefa;color:var(--ink);border:1px solid #dde3d7;border-radius:9px;padding:10px 12px;min-height:44px;max-width:100%}input::placeholder{color:#7d8475;font-size:14px}label{display:block;font-weight:550;margin-bottom:8px}input[type=checkbox]{min-height:0;accent-color:var(--green);width:18px;height:18px;flex-shrink:0}.muted{color:var(--muted)}.error{color:#a74f45}.success{color:#486c4c}.notice{border-radius:12px;padding:13px 18px;background:#edf4e9;margin-bottom:20px;font-size:14px;border:1px solid #d9e7d1}.notice.error{background:#fcf0ed;border-color:#f0d9d3}.notice:empty,#message:empty{display:none}#message{font-size:14px;margin:12px 0 0}.admin-body{background:#f5f7f2}.admin-body .site-header{max-width:none;background:#fffefa;border-bottom:1px solid var(--line);min-height:88px;padding:19px max(30px,calc((100vw - 1160px)/2))}.site-header nav{display:flex;gap:25px;align-items:center;font-size:13px;flex-wrap:wrap}.site-header nav form{margin:0}.site-header nav a{color:var(--muted)}.admin-main{max-width:1220px;padding:38px 30px 20px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}.page-heading h1{font-size:28px;letter-spacing:.5px;margin:0 0 5px}.page-heading p{font-size:13px;color:var(--muted);margin:0}.page-heading .eyebrow{margin:0 0 8px;font-size:11px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.stat{border:1px solid var(--line);background:var(--white);border-radius:16px;padding:20px 23px}.stat span{display:block;font-size:12px;color:var(--muted)}.stat strong{display:block;font-size:30px;line-height:1.5;font-weight:600;margin-top:5px}.stat.highlight{background:#eaf0e4;border-color:#e0e8d9}.panel{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:26px;margin-bottom:22px;min-width:0}.panel h2{font-size:18px;margin:0 0 18px}.filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.filter{flex:1;min-width:140px}.filter.search{flex:1.5;min-width:200px}.filter label{font-size:12px;color:var(--muted);font-weight:400}.filter input,.filter select{width:100%;font-size:13px}.filter.combo{flex:1.7}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;flex-wrap:wrap}.toolbar h2{margin:0}.toolbar p{margin:0;font-size:13px;color:var(--muted)}.toolbar .button{font-size:13px;min-height:38px;padding:8px 14px}.scroll{overflow:auto;max-width:100%}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;color:#7c8776;font-weight:500;font-size:12px;background:#f5f7f0;white-space:nowrap}td,th{padding:15px 13px;border-bottom:1px solid #edf0e7;vertical-align:middle}td:first-child{color:#8e9787;font-size:12px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafbf7}code{font:13px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.5px;white-space:nowrap;color:#4d644c}.tag{display:inline-block;font-size:11px;line-height:1.5;padding:4px 9px;background:#eef3e9;color:#657e59;border-radius:6px;margin:2px 4px 2px 0;white-space:nowrap}.tag.off{background:#f7ece7;color:#ad7868}.buyer{display:block;max-width:155px;overflow-wrap:anywhere;color:var(--muted);font-size:12px;margin-top:5px}.row-action{font-size:12px;font-weight:600;white-space:nowrap}.pagination{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:18px;margin-top:16px}.pagination nav{display:flex;gap:12px;align-items:center}.pagination a{border:1px solid var(--line);padding:6px 12px;border-radius:7px}.empty{text-align:center;padding:40px;color:var(--muted)}.back{font-size:13px;display:inline-block;margin-bottom:20px}.form-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr);gap:24px}.form-field{margin-bottom:23px}.form-field>label{font-size:14px}.form-field>input{width:100%}.form-field small{display:block;font-size:12px;color:var(--muted);margin-top:7px}.checkbox-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.game-choice{display:flex;align-items:center;gap:10px;border:1px solid var(--line);padding:15px;border-radius:10px;font-size:14px;cursor:pointer;margin:0}.game-choice:has(input:checked){background:#eff4e9;border-color:#8ba17d}.fields-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-actions{display:flex;gap:12px;align-items:center;margin-top:26px}.side-note{background:#edf2e7;border:1px solid #e0e8d6;border-radius:18px;padding:26px;height:fit-content}.side-note h2{font-size:17px}.side-note p{font-size:13px;color:#708069;line-height:1.9}.side-note .big-icon{width:48px;height:48px;background:#dfe9d5;border-radius:14px;display:grid;place-items:center;margin-bottom:20px;color:#719263}.detail-code{display:flex;align-items:center;flex-wrap:wrap;gap:15px;background:#f3f6ee;padding:20px;border-radius:12px;margin-bottom:20px}.detail-code code{font-size:21px;letter-spacing:2px}.detail-columns{display:grid;grid-template-columns:1.4fr 1fr;gap:24px}.device{border:1px solid var(--line);border-radius:12px;padding:16px;margin:12px 0;overflow-wrap:anywhere}.device p{font-size:12px;margin:6px 0;color:var(--muted)}.device .device-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.device button{font-size:12px;min-height:34px;padding:7px 12px}.audit-item{border-bottom:1px solid var(--line);padding:12px 0;font-size:13px;overflow-wrap:anywhere}.audit-item:last-child{border:0}.audit-item time{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.auth-panel{max-width:440px;margin:38px auto;padding:34px;box-shadow:var(--shadow)}.auth-panel h1{font-size:25px;margin:14px 0 10px}.auth-panel>p{font-size:13px;color:var(--muted);margin-bottom:26px}.auth-panel .button,.auth-panel form>button{width:100%}.auth-icon{width:50px;height:50px;background:#eaf0e3;color:var(--green);border-radius:16px;display:grid;place-items:center}.auth-panel input{width:100%}.batch-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;background:#edf3e6;border:1px solid #dfe8d6;border-radius:14px;padding:19px 23px;margin-bottom:22px}.batch-banner p{margin:0;font-size:13px}.batch-banner strong{display:block;font-size:15px;margin-bottom:4px}
@media(min-width:1400px){.hero{min-height:540px}.hero-art{height:520px}}@media(max-width:950px){.hero{gap:18px;min-height:440px}.hero-art{height:400px}.hero-copy{padding:10px 0}h1{font-size:33px}.activate-panel{padding:18px}.activate-row{flex-wrap:wrap}.activate-row button{width:100%}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-card p{min-height:0}.form-layout,.detail-columns{grid-template-columns:1fr}.stats{gap:12px}.stat{padding:16px}.site-header nav{gap:15px}}@media(max-width:600px){.site-header{padding:20px;min-height:85px}.brand{font-size:18px;gap:10px}.brand small{font-size:12px;letter-spacing:1px}.brand-icon{width:39px;height:39px}.header-note{font-size:11px;max-width:75px;line-height:1.8}.student-main{padding:0 20px 20px}.hero{display:flex;flex-direction:column;gap:0;min-height:0}.hero-art{height:285px;width:100%;background-position:center bottom}.art-note{top:15px;left:18px;font-size:12px}.hero-copy{width:100%;padding:15px 0 8px}.hero-copy .eyebrow{margin-bottom:10px}h1{font-size:32px;line-height:1.45;margin-bottom:12px}.intro{font-size:15px;margin-bottom:20px}.activate-panel{padding:20px;border-radius:18px}.activate-row{flex-wrap:nowrap}.activate-row button{width:auto;padding:10px 13px;font-size:15px}.activate-row input{font-size:16px}.section-heading{margin:25px 0 15px}.section-heading h2{font-size:20px}.section-heading p{font-size:14px}.game-grid{grid-template-columns:1fr;gap:14px}.game-card{padding:22px;border-radius:18px}.game-top{margin-bottom:16px}.game-card p{margin-bottom:18px}.site-footer{font-size:13px;padding:20px 12px;letter-spacing:0}.site-footer a{display:block;margin:12px 0 0}.admin-body .site-header{padding:17px 20px;flex-wrap:wrap;gap:13px}.site-header nav{font-size:12px;gap:18px;width:100%;justify-content:flex-end}.text-button{font-size:14px}.admin-main{padding:26px 16px 12px}.page-heading{align-items:flex-start;gap:12px}.page-heading h1{font-size:25px}.page-heading .button{font-size:12px;padding:9px 12px;white-space:nowrap;margin-top:6px}.page-heading p{font-size:12px}.stats{grid-template-columns:1fr 1fr;gap:12px}.stat{padding:15px 18px}.stat strong{font-size:26px}.panel{padding:20px 16px;border-radius:15px}.filters{gap:14px}.filter,.filter.search,.filter.combo{flex:1 1 100%;min-width:0}.filters button{flex:1}.toolbar{gap:14px}.toolbar h2{font-size:16px}.checkbox-grid,.fields-row{grid-template-columns:1fr}.checkbox-grid{gap:10px}.fields-row{gap:0}.form-actions{flex-wrap:wrap}.form-actions .button,.form-actions button{flex:1}.side-note{padding:22px}.detail-code{padding:16px;gap:12px}.detail-code code{font-size:18px;letter-spacing:1px}.pagination{align-items:flex-start;flex-wrap:wrap}.auth-panel{padding:25px;margin:18px auto}.auth-panel h1{font-size:24px}.device-head{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.game-card:hover{transform:none}}
.grade-picker{display:flex;align-items:end;gap:16px;background:#fffefa;border:1px solid var(--line);padding:18px 22px;border-radius:16px;margin:18px 0 24px}.grade-picker label{font-size:14px;color:var(--muted);margin-bottom:5px}.grade-picker select{min-width:145px}.grade-empty{padding:48px 24px;text-align:center;border:1px dashed #ced9c4;border-radius:20px;background:#f3f5eb}.grade-empty .game-icon{margin:0 auto 18px}.grade-empty h3{font-size:20px;margin-bottom:12px}.grade-empty p{font-size:15px;color:var(--muted)}.heading-actions{display:flex;gap:10px;flex-wrap:wrap}.grade-checkbox-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.grade-group{border:1px solid var(--line);border-radius:12px;padding:10px 12px 12px;min-width:0;margin:0}.grade-group legend{font-size:13px;padding:0 6px;color:var(--green)}.grade-group .game-choice{margin:6px 0;padding:10px;font-size:13px}.grade-group small{display:block;font-size:11px;font-weight:400;color:var(--muted)}.directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.directory-term{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.directory-term a,.directory-term p{font-size:13px}.directory-term .toolbar{margin-bottom:10px}.directory-game{display:flex;gap:10px;align-items:center}.directory-game svg{width:18px;height:18px}.directory-grid .panel{margin:0}@media(max-width:600px){.grade-picker{gap:12px;flex-wrap:wrap;padding:16px}.grade-picker>div{flex:1}.grade-picker select{width:100%;min-width:0}.grade-picker button{width:100%}.heading-actions{flex-direction:column}.heading-actions .button{margin-top:0}.grade-checkbox-grid,.directory-grid{grid-template-columns:1fr}.admin-body .site-header nav{gap:10px;justify-content:flex-start}.page-heading{flex-wrap:wrap}}

/* Responsive high-quality artwork; JPEG remains the fallback. */

/* Responsive high-quality artwork; JPEG remains the fallback. */
.header-actions{display:flex;gap:18px;align-items:center}.header-link{font-size:14px;font-weight:650;padding:7px 16px;border:1px solid var(--line);border-radius:999px;background:var(--white);white-space:nowrap}.mistake-book .section-heading .secondary{white-space:nowrap}.mistake-game{margin:0 0 18px}.mistake-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.mistake-head h3{margin:0}.mistake-actions{display:flex;gap:14px;align-items:center;white-space:nowrap}.mistake-actions .text-button{white-space:nowrap}.mistake-items{margin:12px 0 0;padding-left:22px}.mistake-items li{padding:8px 0;border-top:1px solid var(--line)}.mistake-game p.mistake-text{margin:0;min-height:0;color:var(--ink);font-size:14px}.mistake-game p.hint{min-height:0;margin:2px 0 0}.mistake-items .hint{margin:2px 0 0;padding:0;min-height:0}@media(max-width:600px){.header-actions .header-note{display:none}}

/* whole card is the link; trial and contact */
.game-card .game-link::after{content:'';position:absolute;inset:0;border-radius:inherit}
.game-card:has(.game-link):hover{border-color:#d9e2cf}
.trial-link{color:#9a6a12}
.inline-link{color:var(--green);font-weight:650;text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:0 4px;font-size:inherit}
.inline-link:hover{color:var(--green-dark)}
.hint .inline-link{min-height:0;padding:0 0 0 6px}
button.header-contact{background:var(--green);color:#fff;border-color:var(--green);min-height:0;font-weight:650}
button.header-contact:hover{background:var(--green-dark)}
.contact-dialog{border:0;border-radius:22px;padding:28px 28px 22px;width:min(380px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;text-align:center;color:var(--ink);background:var(--white);box-shadow:0 24px 80px #172d2340}
.contact-dialog::backdrop{background:#172d2366}
.contact-dialog h2{font-size:22px;margin:0 0 8px}
.contact-dialog p{color:var(--muted);font-size:15px;margin:0 0 14px}
.contact-dialog img,.denied-qr{display:block;width:auto;max-width:min(100%,300px);max-height:55vh;height:auto;margin:0 auto;border-radius:14px;border:1px solid var(--line)}
.contact-dialog form{position:absolute;top:10px;right:10px;margin:0}
.contact-close{background:transparent;color:var(--muted);font-size:26px;padding:0;width:44px;height:44px;font-weight:400}
.contact-close:hover{background:#f1f5ee;color:var(--ink)}
.denied-panel{max-width:520px;margin:20px auto;text-align:center}
.denied-panel .game-icon{margin:0 auto 16px}
.denied-panel h2{font-size:24px;margin-bottom:10px}
.denied-panel p{color:var(--muted);font-size:15px}
.denied-qr{max-width:260px;margin:18px auto 22px}
/* projectors and large screens: readable from the back of the classroom */
@media(min-width:1400px){body{font-size:16px}
.student-main{max-width:1320px}
.site-header{max-width:1380px}
.game-card h3{font-size:22px}
.game-card p{font-size:15px}
.card-bottom{font-size:17px}
.hint{font-size:15px}
.intro{font-size:18px}
.section-heading h2{font-size:26px}
}
@media(max-width:600px){.header-actions{gap:8px}
.header-link{padding:7px 12px}
.card-bottom{font-size:16px}
}
/* the note sits centred over the artwork, which is centred in its box */
.art-note{left:50%;transform:translateX(-50%);white-space:nowrap}
/* five games per row on both sites; narrower side margins keep each card roomy */
.student-main{max-width:1520px;padding-left:24px;padding-right:24px}
.student-body .site-header{max-width:1520px;padding-left:24px;padding-right:24px}
.hero{max-width:1240px;margin:0 auto}
.game-grid,.game-grid.math-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.game-card,.math-grid .game-card{padding:22px 20px}
.game-card h3,.math-grid .game-card h3{font-size:19px}
.game-card p,.math-grid .game-card p{min-height:51px}
.card-bottom .locked,.card-bottom .inline-link{font-size:14px;white-space:nowrap}
.card-bottom .inline-link{min-height:0;padding:0}
.locked svg{flex-shrink:0}
@media(min-width:1400px){.game-card h3,.math-grid .game-card h3{font-size:21px}
.card-bottom .locked,.card-bottom .inline-link{font-size:15px}
}
@media(max-width:1199px){.game-grid,.game-grid.math-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:949px){.game-grid,.game-grid.math-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.game-card p,.math-grid .game-card p{min-height:0}
}
@media(max-width:600px){.game-grid,.game-grid.math-grid{grid-template-columns:1fr}
.student-main{padding-left:20px;padding-right:20px}
.student-body .site-header{padding-left:20px;padding-right:20px}
.art-note{top:15px}
}
@media(max-width:600px){.student-body .site-header{gap:10px}
.header-actions{gap:6px}
.header-link{padding:6px 10px;font-size:13px}
}
@media(max-width:420px){.brand small{display:none}
.brand{font-size:17px;gap:8px}
}
.game-card{display:flex;flex-direction:column}
.game-card .card-bottom{margin-top:auto}

/* The caption sits in its own band above the picture, never half on it: the picture is drawn only inside the content box. */
.hero-art{padding-top:34px;background-origin:content-box;background-clip:content-box}
.art-note{position:static;display:block;height:24px;line-height:24px;margin:-34px 0 0;transform:none;text-align:center;white-space:nowrap}
.footer-cross{margin-left:22px;white-space:nowrap}
.site-footer .footer-cross a{margin-left:12px;display:inline}
.site-footer .footer-cross a:hover{color:var(--ink);text-decoration:underline}
@media(max-width:600px){.footer-cross{display:block;margin:12px 0 0;white-space:normal}.footer-cross a{margin:0 6px;white-space:nowrap}}

/* 模型设置 (admin) */
.provider{border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin:10px 0;background:#fff}
.provider>summary{cursor:pointer;line-height:1.8}
.provider[open]>summary{margin-bottom:12px}
.provider form{margin:8px 0}
.step-slots{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.step-form{border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:#fff}
.step-form h3{margin:0 0 8px}
.test-result{font-size:14px;margin-left:8px;white-space:normal}
.stat small{display:block;color:var(--muted);font-size:12px}
@media(max-width:900px){.step-slots{grid-template-columns:1fr}}
.check-inline{display:flex;align-items:center;gap:8px;font-weight:500}.alert-text{color:#b5483c}
/* admin: features on a license */
.feature-table{margin-bottom:18px}
.feature-form{margin-top:14px;border-top:1px solid var(--line);padding-top:14px}
.feature-choice{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:8px}
.feature-choice .years{display:flex;align-items:center;gap:8px;font-size:14px}
.feature-choice .years input{width:90px;min-height:38px}
.feature-choice .years button{min-height:34px;padding:4px 10px;width:auto;flex:none}
