:root{--cream:#f6f5ee;--green:#224f43;--ink:#243e36}body{background:var(--cream)}header{max-width:1350px;min-height:100px;padding:23px 38px;border-bottom:1px solid #e3e7dd}.brand{font-size:17px;letter-spacing:.8px}.brand small{letter-spacing:1px;font-size:9px}.quest-mark{font-size:39px;color:#d28d4d}nav{gap:22px}nav button{font-size:13px}.wallet{display:flex;gap:12px;align-items:center}.wallet span{font-size:12px;font-weight:700;background:#eee8d5;border-radius:22px;padding:9px 13px}.wallet span:last-child{background:#e4eadb;color:#61734d}.local-tag{font-size:11px;color:#7d8a7a}main{max-width:1240px;padding-top:33px}.game-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:28px;gap:18px}.game-heading h1{font-size:30px;margin:8px 0 7px;line-height:1.5}.game-heading h1 span{color:#d39b53}.game-heading p{font-size:12px;color:var(--muted);margin:0;line-height:1.8}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#7f937a}.chapter{font-size:11px;border:1px solid #d9dfd1;padding:9px 15px;border-radius:20px;color:#71846c;white-space:nowrap}.dashboard{display:grid;grid-template-columns:1fr 285px;gap:23px;margin-bottom:36px}.map-panel{padding:21px;background:#e9eee0;border:1px solid #dce4d1;border-radius:23px;align-self:stretch;display:flex;flex-direction:column}.map-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;font-weight:600;font-size:14px}.map-title small{font-size:10px;font-weight:400;color:#72816a}.world{width:100%;margin:auto 0;border-radius:18px}.map-caption{display:flex;justify-content:space-between;margin-top:18px;font-size:10px;color:#79846d}.hero-panel{background:#224f43;color:#fbf7e6;padding:20px 24px;border-radius:23px;text-align:center;position:relative;overflow:hidden}.hero-panel:before{content:'✦';position:absolute;font-size:200px;top:50px;left:18px;color:#ffffff05}.hero-panel-top{display:flex;justify-content:space-between;align-items:center;font-size:11px;position:relative}.level-badge{background:#426655;color:#f2d88e;padding:5px 10px;border-radius:7px;font-size:11px;font-weight:700}.avatar{width:240px;max-width:100%;display:block}.hero-panel>.avatar{height:170px;width:170px;margin:4px auto -1px;filter:drop-shadow(0 10px 8px #102d281c)}.hero-panel h2{font-size:19px;margin:2px 0 3px}.hero-panel p{font-size:10px;color:#b5c7b4;margin:0 0 17px}.hero-panel .bar{background:#426556;height:5px}.hero-panel .bar span{background:#edc06b}.xp-label{display:flex;justify-content:space-between;font-size:9px;color:#c5d0ba;margin-bottom:7px}.hero-attributes{display:flex;justify-content:space-between;font-size:11px;margin:17px 0}.hero-panel .secondary{width:100%;background:#365e50;border:1px solid #527363;color:#efeecf;padding:10px;font-size:11px}.section-title{margin-bottom:19px}.section-title h2{font-size:22px}.mission-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.panel{background:#fffefa;border:1px solid #e0e5d8;border-radius:18px;padding:24px}.mission{position:relative}.mission .symbol{height:47px;width:47px;font-size:29px;margin:23px 0 18px;border-radius:12px}.mission-num{font-size:9px;letter-spacing:1.8px;color:#929c87}.mission h3{font-size:17px;margin:0 0 7px}.mission p{font-size:11px;color:#7c8675;margin:0}.reward-line{display:flex;flex-wrap:wrap;gap:9px;font-size:9px;color:#8b865e;margin:18px 0}.mission .primary{width:100%;font-size:11px;border-radius:9px;padding:11px 9px;box-shadow:none;background:var(--tint);color:var(--tone)}.mission .primary:disabled{opacity:.45}.boss-banner{display:flex;align-items:center;gap:24px;padding:26px 30px;margin-top:23px;background:#ebe7dc;border:1px solid #dfdbce;border-radius:18px}.boss-icon{font-size:52px}.boss-banner h2{font-size:20px;margin:7px 0}.boss-banner p{font-size:11px;margin:0;color:#7c7f72}.boss-banner .eyebrow{font-size:9px;letter-spacing:1px;color:#a08669}.boss-banner .primary{margin-left:auto;font-size:12px;white-space:nowrap}.prototype-note{font-size:10px;color:#8c9384;line-height:1.9;margin-top:20px}.create-intro{text-align:center;margin:10px 0 35px}.create-intro .eyebrow{justify-content:center}.create-intro h1{font-size:34px;line-height:1.5;margin:14px 0}.create-intro em{font-style:normal;color:#79916b}.create-intro p{font-size:13px;color:var(--muted)}.creator-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:25px;max-width:950px;margin:auto}.character-stage{background:#e6ecdc;border-radius:23px;padding:38px 25px;text-align:center;display:flex;align-items:center;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.character-stage:before{content:'✧';position:absolute;top:30px;right:35px;font-size:80px;color:#d0d9b8}.character-stage>.avatar{width:280px;margin:15px auto}.character-stage h2{font-size:22px;margin:5px 0}.character-stage p{font-size:12px;color:#75836c}.stage-stats{display:flex;gap:20px;font-size:11px;margin:20px 0 0;color:#6f7c60}.create-form{padding:30px}.create-form h2{font-size:22px;margin:0 0 20px}.create-form label{display:block;font-size:12px;font-weight:600;margin:18px 0 9px}.create-form input,.create-form select{font:inherit;border:1px solid #dce1d4;background:#fafaf5;border-radius:10px;padding:11px 13px;width:100%;color:var(--ink);font-size:13px}.race-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.race-option{background:#f4f5ee;border:2px solid transparent;border-radius:13px;padding:8px 4px;color:var(--ink)}.race-option .avatar{width:78px;margin:auto}.race-option span{font-size:9px;white-space:nowrap}.race-option.chosen{border-color:#52745a;background:#ecf2df}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:15px}.swatches{display:flex;gap:12px;margin:12px 0 25px}.swatches button{background:var(--swatch);width:33px;height:33px;border:4px solid #fffefa;border-radius:50%;outline:1px solid #dde0d3}.swatches button.chosen{outline:2px solid #325e4e}.create-form>.primary{width:100%;font-size:14px}.create-form>small{display:block;text-align:center;font-size:9px;color:#8a9380;margin-top:17px;line-height:1.8}.form-error{font-size:12px;color:#ad6951}.coin-badge{background:#eee5cb;color:#92773b;padding:12px 20px;border-radius:14px;font-size:14px;font-weight:600;white-space:nowrap}.shop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.shop-item{position:relative}.item-display{display:grid;place-items:center;font-size:62px;background:#f0f0e6;border-radius:13px;min-height:145px}.shop-item:nth-child(2n) .item-display{background:#eee9ef}.shop-item:nth-child(3n) .item-display{background:#e7eeea}.shop-item h3{font-size:17px;margin:20px 0 7px}.shop-item p{font-size:11px;color:#83907a;min-height:35px;line-height:1.8}.shop-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:20px}.shop-bottom strong{font-size:15px;color:#9a8046}.shop-bottom button{font-size:11px;padding:10px 16px;box-shadow:none}.owned{position:absolute;top:34px;right:34px;background:#fff9e8;color:#7a8f59;padding:4px 9px;border-radius:8px;font-size:9px}.wardrobe h2{margin:0;font-size:21px}.wardrobe>p{font-size:12px;color:var(--muted)}.inventory{margin:25px 0}.inventory-row{display:flex;align-items:center;gap:13px;padding:16px 0;border-bottom:1px solid #e4e7dc}.item-icon{font-size:32px}.inventory-row strong{font-size:13px}.inventory-row small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.inventory-row button{margin-left:auto;font-size:11px;padding:9px 13px;white-space:nowrap}.skill-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.skill-card{padding:30px}.skill-card .item-display{margin-bottom:22px}.skill-card h2{font-size:22px}.skill-card p{font-size:13px;color:var(--muted);line-height:1.9;min-height:50px}.skill-card .primary{font-size:13px}.skill-free{display:flex;gap:20px;margin-top:25px}.skill-free>span{font-size:40px}.skill-free h3{font-size:17px;margin:0 0 7px}.skill-free p{font-size:12px;color:var(--muted);margin:0;line-height:1.9}.toast{background:#f8ebc7;border:1px solid #ead7a1;border-radius:12px;padding:15px 20px;font-size:13px;margin-bottom:20px}.battle-layout{max-width:820px;margin:auto}.battle-heading{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted)}.arena{display:flex;justify-content:space-around;align-items:center;background:#e4ebdc;border:1px solid #d8e0cd;border-radius:22px;padding:16px 28px}.fighter{width:180px;display:flex;align-items:center;flex-direction:column}.fighter .avatar{width:150px;height:150px}.fighter strong{font-size:13px;margin-bottom:7px}.fighter>span{color:#cf816c;font-size:18px;letter-spacing:4px}.versus{font-size:27px;font-weight:800;color:#ab9d7a;text-align:center}.versus span{display:block;font-size:9px;font-weight:500;margin-top:10px}.cloud-face{font-size:100px;height:150px;display:grid;place-items:center;filter:drop-shadow(0 8px 2px #6a777c22)}.boss-health{width:140px;height:8px}.boss-health span{background:#b18b87}.cloud small{font-size:9px;color:#8c8474;margin-top:5px}.quest-mini{display:flex;justify-content:space-between;padding:15px 0;font-size:12px}.battle-layout .question-card{margin-top:20px;padding:27px 32px}.battle-layout .question-card h1{font-size:26px;margin:14px 0 24px}.battle-skills{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.battle-skills button{background:#f4f3e9;border:1px solid #e3e3d3;color:#6b785f;border-radius:9px;padding:9px 13px;font-size:11px}.battle-skills button:disabled{opacity:.45}.hint-box{margin-top:16px;background:#f7efda;padding:15px;border-radius:10px;font-size:13px;line-height:1.9;color:#8c7e55}.game-result{max-width:750px;margin:20px auto}.loot{display:flex;justify-content:center;gap:25px;margin:30px 0}.loot>div{display:flex;align-items:center;flex-direction:column;background:#f0f2e5;padding:20px 38px;border-radius:18px;font-size:26px}.loot strong{font-size:35px}.loot span{font-size:11px;color:var(--muted)}.level-up{background:#fff0c4;padding:16px;border-radius:12px;color:#9c7a32;font-size:15px;font-weight:600}.resume{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:-10px 0 30px;font-size:13px}.resume .primary{padding:10px 17px;font-size:12px}footer{max-width:1192px;font-size:9px}.hit{animation:bounce .4s ease}@keyframes bounce{50%{transform:translateX(10px)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-width:1000px){header{padding:18px 24px;flex-wrap:wrap;gap:12px}.brand{font-size:15px}nav{gap:17px}nav button{font-size:12px}.wallet{gap:6px}.wallet span{font-size:10px;padding:7px 9px}.dashboard{grid-template-columns:1fr 235px;gap:17px}.hero-panel{padding:18px}.mission{padding:19px 15px}.reward-line{font-size:8px;gap:5px}.creator-layout{grid-template-columns:.8fr 1.2fr}.create-form{padding:22px}.race-grid{gap:5px}.race-option span{font-size:8px}.mission-grid{gap:12px}}@media(max-width:750px){header{padding:15px 20px}.brand{font-size:14px}.brand small{font-size:8px}.quest-mark{font-size:31px}nav{order:3;width:100%;justify-content:space-between;gap:10px}nav button{font-size:12px;padding:9px 0}.wallet{margin-left:auto}main{padding-top:23px}.game-heading{align-items:start;margin-bottom:22px}.game-heading h1{font-size:26px}.game-heading p{font-size:11px}.chapter{display:none}.dashboard{grid-template-columns:1fr;gap:16px}.map-panel{padding:16px}.hero-panel{display:grid;grid-template-columns:100px 1fr;column-gap:18px;text-align:left;padding:19px}.hero-panel-top{grid-column:2;grid-row:1}.hero-panel>.avatar{grid-column:1;grid-row:1/6;width:100px;height:120px;margin:auto}.hero-panel h2{font-size:18px;margin-top:6px}.hero-panel p{margin-bottom:9px}.hero-panel .xp-label{grid-column:2}.hero-panel .bar{grid-column:2}.hero-attributes{grid-column:2;margin:12px 0;font-size:10px}.hero-panel .secondary{grid-column:1/3;margin-top:5px}.mission-grid{grid-template-columns:1fr 1fr;gap:13px}.mission .symbol{margin-top:17px}.mission h3{font-size:16px}.mission .primary{font-size:12px;padding:12px}.reward-line{font-size:9px}.boss-banner{flex-wrap:wrap;gap:15px;padding:22px}.boss-icon{font-size:38px}.boss-banner h2{font-size:17px}.boss-banner>div:nth-child(2){flex:1}.boss-banner .primary{width:100%;margin:5px 0 0}.boss-banner .eyebrow{font-size:8px}.boss-banner p{font-size:10px;line-height:1.9}.creator-layout{grid-template-columns:1fr}.create-intro h1{font-size:28px}.create-intro p{font-size:11px}.character-stage{padding:22px}.character-stage>.avatar{width:190px;margin:10px auto}.character-stage h2{font-size:20px}.stage-stats{margin-top:10px}.create-form{padding:24px}.race-option .avatar{width:70px}.race-option span{font-size:8px}.shop-grid{grid-template-columns:1fr 1fr;gap:12px}.shop-item{padding:15px}.item-display{min-height:120px;font-size:48px}.shop-item h3{font-size:14px}.shop-item p{font-size:10px;min-height:39px}.shop-bottom{align-items:start;flex-direction:column;gap:12px}.shop-bottom button{width:100%}.shop-bottom strong{font-size:13px}.owned{top:23px;right:23px}.coin-badge{font-size:11px;padding:10px 12px}.skill-grid{grid-template-columns:1fr;gap:17px}.skill-card{padding:23px}.skill-card .item-display{min-height:110px}.skill-free{padding:20px;gap:14px}.skill-free h3{font-size:14px}.skill-free p{font-size:11px}.battle-heading{font-size:9px}.battle-heading .back{font-size:11px}.arena{padding:14px 10px}.fighter{width:115px}.fighter .avatar{width:110px;height:115px}.fighter strong{font-size:11px}.cloud-face{font-size:75px;height:115px}.boss-health{width:100px}.versus{font-size:20px}.versus span{font-size:8px;max-width:65px}.battle-layout .question-card{padding:23px 18px}.battle-layout .question-card h1{font-size:23px}.battle-skills{gap:7px}.battle-skills button{font-size:10px;padding:9px}.battle-layout .feedback{font-size:13px}.loot{gap:15px}.loot>div{padding:18px 28px}.level-up{font-size:13px}.inventory-row{gap:9px}.inventory-row strong{font-size:12px}.inventory-row small{font-size:9px}.inventory-row button{font-size:10px;padding:8px}.history-row{font-size:10px}.prototype-note{font-size:9px}footer{flex-direction:column;gap:8px}.section-title>.subtle{display:none}}
:root .battle-layout .question-label{line-height:1.8}
@media(max-width:540px){.game-heading{flex-wrap:wrap}.game-heading>div{flex:1 1 100%}.game-heading .coin-badge{padding:8px 12px}.game-heading h1{overflow-wrap:anywhere}.race-option:focus-visible{outline-offset:2px}}
/* Keep practice controls ahead of the decorative map. */
.practice-intro {
    align-items: center;
    background: #e8eee0;
    border-radius: 22px;
    padding: 20px 24px;
}
.practice-intro h1 { margin-top: 0; }
.practice-intro p, .practice-picker .section-title p, .create-intro p {
    font-size: 16px;
}
.practice-picker { margin-bottom: 26px; }
.practice-picker .mission {
    display: grid;
    gap: 8px;
    justify-items: start;
    min-height: 126px;
    padding: 16px;
    color: var(--ink);
    background: var(--tint);
    text-align: left;
}
.practice-picker .mission:hover { border-color: var(--green); }
.practice-picker .symbol {
    width: 38px;
    height: 38px;
    margin: 0;
    background: #fff;
    color: var(--green);
    font-size: 27px;
}
.practice-picker .mission strong { font-size: 18px; }
.practice-picker .mission > span:last-child { font-size: 14px; }
.practice-picker ~ .dashboard { margin-top: 26px; }
.quick-create { max-width: 760px; margin-inline: auto; }
.quick-create fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.quick-create legend { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.quick-create .race-grid { gap: 10px; }
.quick-create .race-option span { font-size: 14px; }
.quick-create label, .quick-create input, .quick-create p { font-size: 16px; }
.quick-create label span, .quick-create p { color: var(--muted); }
.quick-create input { min-height: 48px; }
.quick-create .primary { width: 100%; }
.quick-create p { margin: 12px 0 0; text-align: center; }
.appearance { margin-bottom: 24px; }
.appearance summary { cursor: pointer; font-weight: 700; padding-block: 14px; }
.appearance .create-form { padding: 0; }
.practice-intro .primary, .quick-create .primary, .battle-layout .primary,
.battle-layout .back, .battle-skills button, .game-result button, header nav button {
    min-height: 48px;
}
.practice-intro .primary, .quick-create .primary, .battle-layout .primary,
.game-result button { font-size: 16px; }
.battle-heading, .battle-heading .back, .battle-skills button { font-size: 14px; }
.battle-layout .question-label, .battle-layout .feedback, .battle-layout .hint-box {
    font-size: 16px;
    color: var(--ink);
}
.battle-layout .answer { flex-wrap: wrap; gap: 6px 10px; min-height: 54px; }
.battle-layout .answer-mark { font-size: 14px; margin-inline-start: auto; }
.battle-layout .feedback:focus { outline: 2px solid var(--green); outline-offset: 3px; }
.answer-steps { padding-inline-start: 24px; margin: 6px 0 0; }
@media (max-width: 540px) {
    .practice-intro { padding: 16px; }
    .practice-intro .primary, .game-result button { width: 100%; }
    .quick-create .race-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .battle-layout .quiz-actions { flex-direction: column; align-items: stretch; }
    .battle-layout .answer-mark { flex-basis: 100%; }
}
.quick-create .profile-fields { gap: 12px; margin-bottom: 12px; }
.quick-create select { font-size: 16px; min-height: 48px; }
.quick-create .form-error { color: #913828; text-align: left; margin: 0 0 12px; }
.quick-create .form-error:empty { display: none; }
.quick-create fieldset { margin-bottom: 16px; }
@media (max-width: 540px) {
    .quick-create .profile-fields { grid-template-columns: 1fr; }
}

.account-panel { max-width: 760px; margin: 24px auto 0; }
.account-panel h2 { margin-top: 0; }
.account-panel summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.account-panel .create-form { padding: 0; margin: 0 0 12px; }
.account-panel .form-error { color: #913828; }
.account-panel .form-error:empty, #quest-sync-status:empty { display: none; }
