@charset "UTF-8";

:root {
  color-scheme: dark;
  --ink: #111827;
  --panel: #1b2235;
  --panel-deep: #151c2d;
  --plum: #29233e;
  --amber: #f3bc65;
  --teal: #65d9bd;
  --lilac: #bcacf5;
  --paper: #eee4cd;
  --text: #f4f0e7;
  --muted: #a8b0c4;
  --line: #ffffff16;
  --danger: #ffadab;
  font: 14px/1.5 "Segoe UI", "Trebuchet MS", sans-serif;
  background: var(--ink);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 60% 0, #35274080, transparent 60%), var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .43; }
button:not(:disabled):hover { filter: brightness(1.13); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
h1, h2, .story-title { font-family: Georgia, "Times New Roman", serif; }
svg { flex-shrink: 0; }
a { color: var(--teal); text-underline-offset: 4px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px; background: var(--ink); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.boot { display: grid; place-content: center; min-height: 100vh; text-align: center; gap: 12px; }
.boot h1 { font-size: 48px; }
.boot-mark { color: var(--amber); font-size: 50px; }
.icon { width: 20px; height: 20px; vertical-align: middle; }
.shell { max-width: 1576px; margin: auto; padding: 0 32px 26px; }
.topbar { height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 43px; height: 43px; }
.brand-title { font: bold 31px/1 Georgia, serif; letter-spacing: -1.2px; }
.brand-subtitle { color: var(--muted); font-size: 11px; margin-top: 5px; letter-spacing: 1.6px; }
.header-tools, .hud, .inline, .section-heading, .row-between { display: flex; align-items: center; gap: 12px; }
.header-tools { gap: 10px; }
.hud { gap: 18px; padding: 0 20px; border-right: 1px solid var(--line); }
.hud-stat { display: flex; gap: 9px; align-items: center; white-space: nowrap; }
.hud-stat strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.hud-stat small { color: var(--muted); font-size: 11px; }
.hud-stat .icon { color: var(--amber); }
.hud-stat.xp .icon { color: var(--teal); }
.button { border: 1px solid transparent; border-radius: 9px; padding: 11px 16px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 650; text-decoration: none; }
.button.primary { background: var(--amber); color: #302215; box-shadow: 0 3px 0 #a16a37; }
.button.secondary { border-color: #ffffff1e; background: #ffffff08; }
.button.teal { color: var(--teal); background: #65d9bd12; border-color: #65d9bd30; }
.button.small { padding: 8px 11px; min-height: 38px; font-size: 12px; }
.button.wide { width: 100%; }
.icon-button { width: 42px; height: 42px; padding: 9px; border: 1px solid var(--line); background: #ffffff05; border-radius: 9px; display: inline-grid; place-items: center; }
.icon-button[aria-pressed="true"] { color: var(--amber); border-color: #f3bc6544; }
.text-button { background: transparent; color: var(--muted); border: 0; padding: 6px 0; text-align: left; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.page-intro { padding: 27px 0 25px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-intro > div { min-width: 0; }
.page-intro h1 { font-size: clamp(24px, 2.2vw, 31px); letter-spacing: -.6px; margin-bottom: 6px; overflow-wrap: anywhere; }
.page-intro p { color: var(--muted); font-size: 13px; }
.connection { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.connection::before { content: ""; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 4px #65d9bd09; }
.connection.offline::before { background: var(--danger); }
.layout { display: grid; grid-template-columns: 238px minmax(0, 1fr) 250px; gap: 22px; align-items: start; }
.left-rail, .right-rail { display: grid; gap: 20px; min-width: 0; }
.section-heading { justify-content: space-between; margin-bottom: 13px; }
.section-heading h2 { font: 600 14px/1.3 "Segoe UI", sans-serif; }
.section-heading small, .muted { color: var(--muted); }
.section-heading small { font-size: 11px; }
.hero-list { display: grid; gap: 12px; }
.hero-card { position: relative; background: linear-gradient(130deg, #283347, var(--panel-deep)); border: 1px solid #ffffff16; border-radius: 12px; overflow: hidden; }
.hero-card.mage { background: linear-gradient(130deg, #37304b, #1c2135); }
.hero-card.knight { background: linear-gradient(130deg, #394254, #1c2335); }
.hero-card.druid { background: linear-gradient(130deg, #384b40, #192c30); }
.hero-owner { display: block; color: var(--teal); font-size: 9px; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 4px; }
.hero-select > div { min-width: 0; padding-right: 9px; }
.hero-role, .item-card h3, .quest h3, .map-bottom h3, .stop-label { overflow-wrap: anywhere; }
.hero-card.selected { border-color: #65d9bd77; box-shadow: 0 0 0 1px #65d9bd10, 0 8px 28px #080c131f; }
.hero-select { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; padding: 16px 13px 10px; background: transparent; text-align: left; }
.portrait { width: 62px; height: 69px; }
.hero-name { display: block; font: bold 19px/1.2 Georgia, serif; overflow-wrap: anywhere; }
.hero-role { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.hero-level { display: inline-block; color: var(--teal); font-size: 10px; margin-top: 5px; }
.mage .hero-level { color: var(--lilac); }
.active-dot { position: absolute; right: 11px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.hero-detail { padding: 0 16px 14px; }
.hp-label { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.meter { height: 5px; border-radius: 9px; background: #ffffff10; overflow: hidden; }
.meter-fill { height: 100%; background: var(--teal); border-radius: inherit; }
.meter-fill.lilac { background: var(--lilac); }
.meter-fill.amber { background: var(--amber); }
.hero-mini-stats { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 11px; }
.hero-mini-stats span { display: inline-flex; align-items: center; gap: 4px; }
.hero-mini-stats .icon { width: 13px; height: 13px; color: var(--amber); }
.hero-edit { position: absolute; right: 12px; top: 46px; width: 24px; height: 24px; background: transparent; border: 0; color: var(--muted); }
.hero-edit .icon { width: 12px; height: 12px; }
.points-panel { padding: 18px; background: #202236; border: 1px solid #f3bc6526; border-radius: 12px; }
.points-title { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.points-title .icon { color: var(--amber); }
.points-count { display: flex; align-items: baseline; gap: 5px; margin-top: 11px; }
.points-count strong { font: bold 38px/1 Georgia, serif; color: var(--amber); }
.points-count span { color: var(--muted); font-size: 14px; }
.point-slots { display: flex; gap: 5px; margin: 14px 0; }
.point-slot { height: 17px; flex: 1; border: 1px solid #f3bc6540; background: #f3bc6508; border-radius: 3px; transform: skewX(-10deg); }
.point-slot.filled { background: var(--amber); border-color: var(--amber); box-shadow: inset 0 -4px 0 #ae79433b; }
.points-panel .hint { margin-top: 10px; }
.hint { color: var(--muted); font-size: 11px; line-height: 1.55; }
.rules-card { padding: 0 4px; color: var(--muted); font-size: 11px; }
.rules-card h3 { font-size: 12px; color: var(--text); margin-bottom: 9px; }
.rules-card p + p { margin-top: 7px; }
.rules-card strong { color: #d9dfed; font-weight: 600; }
.center { min-width: 0; }
.tabs { display: flex; align-items: center; gap: 22px; height: 43px; border-bottom: 1px solid var(--line); margin-bottom: 17px; }
.tab { align-self: stretch; display: inline-flex; gap: 8px; align-items: center; background: none; border: 0; border-bottom: 2px solid transparent; padding: 0 1px 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.tab .icon { width: 16px; height: 16px; }
.tab[aria-current="page"] { color: var(--amber); border-bottom-color: var(--amber); }
.map-card { border: 1px solid #b6a8e72b; border-radius: 14px; overflow: hidden; background: #242338; }
.map-top { padding: 17px 21px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #1c2033; }
.map-top h2 { font-size: 23px; letter-spacing: -.35px; }
.map-top p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.chapter-tag { border: 1px solid #bcacf530; color: #d4c6f1; font-size: 10px; padding: 6px 9px; border-radius: 5px; white-space: nowrap; background: #bcacf50a; }
.world-map { position: relative; aspect-ratio: 3 / 2; min-height: 0; background: radial-gradient(ellipse at 32% 54%, #41797670, transparent 38%), radial-gradient(ellipse at 77% 28%, #ad77684f, transparent 28%), linear-gradient(155deg, #303454, #222b43 50%, #4b3654); isolation: isolate; }
.world-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #121c3280, transparent 20%, transparent 85%, #1c203333); pointer-events: none; z-index: 1; }
.world-art { position: absolute; width: 100%; height: 100%; object-fit: contain; inset: 0; z-index: -1; image-rendering: auto; }
.world-art[hidden] { display: none; }
.expanded-map { aspect-ratio: auto; }
.expanded-map .world-art { object-fit: cover; opacity: .52; }
.expanded-map .stop-label { max-width: 110px; }
.campaign-itinerary { margin-top: 13px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.campaign-itinerary summary { cursor: pointer; color: var(--paper); font-size: 12px; }
.campaign-itinerary ol { list-style: none; padding: 0; display: grid; gap: 6px; }
.campaign-itinerary .button { width: 100%; justify-content: flex-start; text-align: left; overflow-wrap: anywhere; }
.map-route { width: 100%; height: 100%; position: absolute; inset: 0; opacity: .65; pointer-events: none; }
.compass { position: absolute; top: 13px; left: 17px; color: #eee4cda1; width: 33px; height: 44px; text-align: center; font: 10px Georgia, serif; }
.compass svg { width: 28px; height: 28px; display: block; }
.map-caption { position: absolute; bottom: 14px; right: 16px; font: italic 12px Georgia, serif; color: #f7e7d0b0; z-index: 2; }
.map-stop { position: absolute; transform: translate(-50%, -50%); z-index: 3; padding: 0; border: 0; background: transparent; width: 44px; height: 44px; color: #f4ecd9; }
.stop-disc { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #25253deb; border: 2px solid #b6adc180; box-shadow: 0 3px 0 #10192ca8, 0 0 0 5px #10192c3b; }
.stop-disc .icon { width: 18px; height: 18px; }
.map-stop.current .stop-disc { width: 48px; height: 48px; background: var(--amber); color: #4f341b; border-color: #ffdf9b; box-shadow: 0 0 0 5px #f3bc6524, 0 5px 12px #0f132c88; }
.map-stop.done .stop-disc { background: #2c625a; color: #baf4db; border-color: var(--teal); }
.map-stop.locked { color: #d1c9d9; }
.stop-label { position: absolute; left: 50%; top: calc(50% + 25px); transform: translateX(-50%); width: max-content; background: #11182de8; border: 1px solid #b6adc124; padding: 4px 7px; font-size: 10px; font-weight: 600; border-radius: 4px; max-width: 112px; line-height: 1.35; text-align: center; box-shadow: 0 2px 6px #11182d44; }
.current .stop-label { color: var(--amber); border-color: #f3bc6566; }
.current-flag { position: absolute; left: 50%; bottom: calc(50% + 28px); transform: translateX(-50%); width: max-content; color: #f8d698; font-size: 9px; font-weight: 700; text-shadow: 0 1px 4px #000; }
.map-bottom { padding: 16px 19px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #1d2235; }
.map-bottom h3 { font: bold 17px Georgia, serif; }
.map-bottom p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.map-bottom .button { white-space: nowrap; font-size: 12px; }
.adventure-note { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 10px; margin-top: 13px; padding: 0 2px; }
.adventure-note span { display: flex; align-items: center; gap: 5px; }
.adventure-note .icon { width: 12px; height: 12px; }
.activity-banner { margin-top: 19px; display: flex; align-items: center; gap: 15px; padding: 19px; border: 1px solid #65d9bd23; background: linear-gradient(110deg, #65d9bd0c, #65d9bd02); border-radius: 10px; }
.activity-banner > .icon { width: 29px; height: 29px; color: var(--teal); }
.activity-banner h3 { font-size: 13px; margin-bottom: 4px; }
.activity-banner p { color: var(--muted); font-size: 11px; }
.activity-banner .button { margin-left: auto; flex-shrink: 0; }
.quest-panel { border: 1px solid #e0c79730; border-radius: 11px; background: linear-gradient(165deg, #393238, #282736 75%); padding: 18px; position: relative; }
.quest-panel::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; background: #d7b1746e; }
.quest-panel h2 { display: flex; gap: 9px; align-items: center; font-size: 21px; color: var(--paper); }
.quest-panel h2 .icon { color: #d5b789; width: 19px; height: 19px; }
.quest-panel > p { color: #b9afa8; font-size: 11px; margin-top: 6px; overflow-wrap: anywhere; }
.quest { border-top: 1px solid #eee4cd14; margin-top: 16px; padding-top: 15px; }
.quest-heading { display: flex; align-items: flex-start; gap: 9px; }
.quest-heading > .icon { width: 17px; height: 17px; color: #d3b98b; margin-top: 2px; }
.quest h3 { font-size: 12px; font-weight: 650; line-height: 1.4; }
.quest p { color: #b9b4bd; font-size: 11px; margin-top: 4px; }
.quest-progress { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.quest-progress .meter { flex: 1; height: 4px; }
.quest-progress span { color: var(--muted); font-size: 10px; }
.quest-reward { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; font-size: 10px; color: var(--amber); }
.quest-reward .button { font-size: 10px; padding: 5px 9px; min-height: 32px; }
.quest.claimed { opacity: .64; }
.quest.claimed h3 { color: var(--teal); }
.party-panel { padding: 1px 3px; }
.party-panel h2 { font: 600 13px "Segoe UI", sans-serif; }
.party-panel p { color: var(--muted); font-size: 11px; margin: 8px 0 12px; }
.party-panel > .button + .button { margin-top: 8px; }
.party-members { display: flex; margin: 13px 0; }
.party-avatar { width: 36px; height: 36px; border-radius: 50%; background: #324943; border: 3px solid var(--ink); display: grid; place-items: center; overflow: hidden; }
.party-avatar + .party-avatar { margin-left: -5px; background: #4a385a; }
.party-avatar .portrait { width: 37px; height: 39px; }
.party-status { font-size: 11px; color: var(--muted); align-self: center; margin-left: 9px; }
.footer { margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #828ca3; font-size: 10px; }
.footer span { display: flex; align-items: center; gap: 6px; }
.footer .icon { width: 12px; height: 12px; }
.status-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 16px; border: 1px solid #f3bc6544; background: #31293c; color: #f5d5a0; border-radius: 8px; margin-top: 16px; font-size: 12px; }
.status-banner p { flex: 1; min-width: 180px; }
.status-banner.storage { border-color: #bcacf544; color: #d9cdf7; }
.content-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.content-panel h2 { font-size: 26px; }
.content-panel > p { color: var(--muted); font-size: 12px; margin-top: 7px; }
.filter-row { display: flex; gap: 7px; margin: 18px 0; flex-wrap: wrap; }
.filter { border: 1px solid var(--line); background: transparent; border-radius: 6px; padding: 7px 11px; color: var(--muted); font-size: 12px; min-height: 36px; }
.filter[aria-pressed="true"] { background: #bcacf515; color: #d8c9ff; border-color: #bcacf540; }
.empty { text-align: center; padding: 39px 18px; border: 1px dashed #ffffff1e; border-radius: 9px; margin-top: 20px; }
.empty > .icon { color: var(--lilac); width: 35px; height: 35px; margin-bottom: 12px; }
.empty h3 { font: bold 20px Georgia, serif; margin-bottom: 8px; }
.empty p { color: var(--muted); font-size: 12px; margin: 0 auto 18px; max-width: 35ch; }
.ledger { list-style: none; padding: 0; margin: 16px 0 0; }
.ledger-entry { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.ledger-icon { display: grid; place-items: center; background: #65d9bd0e; color: var(--teal); width: 35px; height: 35px; border-radius: 8px; flex-shrink: 0; }
.ledger-entry.redeem .ledger-icon { background: #f3bc650f; color: var(--amber); }
.ledger-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ledger-text h3 { font-size: 13px; }
.ledger-text p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.ledger-gain { font-size: 11px; color: var(--teal); text-align: right; white-space: nowrap; }
.ledger-gain small { display: block; color: var(--muted); font-size: 10px; }
.inventory-balance { display: flex; align-items: center; gap: 7px; color: var(--amber); white-space: nowrap; }
.item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 20px; }
.item-card { background: #131c2a; border: 1px solid var(--line); padding: 16px; border-radius: 10px; display: flex; flex-direction: column; align-items: flex-start; }
.item-art { width: 100%; min-height: 78px; display: grid; place-items: center; background: radial-gradient(ellipse, #bcacf518, transparent 70%); margin-bottom: 12px; color: var(--amber); }
.item-art .icon { width: 43px; height: 43px; }
.item-card h3 { font: bold 18px Georgia, serif; }
.item-card p { font-size: 11px; color: var(--muted); margin: 7px 0 12px; }
.item-card .item-bonus { color: var(--teal); font-size: 11px; margin-top: auto; }
.item-card .button { margin-top: 15px; }
.item-card.equipped { border-color: #65d9bd55; }
.battle { border: 1px solid #bcacf52f; border-radius: 13px; overflow: hidden; background: #202337; }
.battle-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 19px; border-bottom: 1px solid var(--line); }
.battle-top span { color: var(--muted); font-size: 11px; }
.arena { position: relative; min-height: 333px; padding: 26px 24px; background: radial-gradient(ellipse at 50% 74%, #65758d3b, transparent 47%), linear-gradient(140deg, #232f43, #392b47); text-align: center; overflow: hidden; }
.arena::after { content: ""; position: absolute; width: 72%; height: 47px; border-radius: 50%; background: #0b132637; bottom: 20px; left: 14%; border: 1px solid #ccb1ef11; pointer-events: none; }
.arena h2 { position: relative; z-index: 1; font-size: 25px; }
.arena > p { color: #c6b9d8; font: italic 12px Georgia, serif; margin-top: 6px; }
.enemy-art { display: block; width: 190px; height: 160px; margin: 15px auto 8px; position: relative; z-index: 1; filter: drop-shadow(0 12px 0 #121a2933); }
.enemy-health { max-width: 310px; margin: 0 auto; position: relative; z-index: 2; }
.enemy-health .meter { height: 8px; background: #171b31; }
.enemy-health .meter-fill { background: #dc8eac; }
.enemy-health p { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #dccedf; margin-top: 6px; }
.intent { padding: 13px 19px; background: #bcacf50b; border-block: 1px solid #bcacf520; display: flex; align-items: center; gap: 11px; }
.intent > .icon { color: var(--lilac); }
.intent strong { display: block; font-size: 12px; }
.intent p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.battle-actions { padding: 19px; }
.battle-actions > .row-between { justify-content: space-between; font-size: 12px; margin-bottom: 12px; }
.energy-label { display: flex; gap: 5px; align-items: center; color: var(--amber); }
.energy-label .icon { width: 14px; height: 14px; }
.moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.move { display: grid; justify-items: center; text-align: center; gap: 5px; border: 1px solid #ffffff20; border-radius: 8px; padding: 13px 7px; background: #ffffff05; }
.move:first-child { background: #f3bc6513; border-color: #f3bc654f; color: var(--amber); }
.move .icon { width: 25px; height: 25px; margin-bottom: 4px; }
.move strong { font-size: 12px; }
.move small { color: var(--muted); font-size: 10px; }
.battle-footer { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-top: 15px; }
.battle-footer .hint { max-width: 35ch; }
.victory { padding: 55px 24px; text-align: center; background: radial-gradient(ellipse at 50% 20%, #f3bc6515, transparent 65%); }
.victory > .icon { color: var(--amber); width: 65px; height: 65px; margin-bottom: 24px; }
.victory h2 { font-size: 32px; }
.victory p { color: var(--muted); max-width: 42ch; margin: 16px auto 23px; font-size: 13px; }
.victory .button { margin: 5px; }
.combat-stats { margin-top: 13px; }
.admin-link { font-size: 12px; max-width: 85px; text-align: center; }
.welcome { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr); gap: 28px; padding-bottom: 25px; }
.welcome-story { position: relative; min-height: 480px; border: 1px solid #bcacf545; border-radius: 15px; overflow: hidden; background: #233d48; }
.welcome-story > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.welcome-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 17px; padding: 34px; background: linear-gradient(0deg, #101a2bef, #172b3240 65%, transparent); }
.welcome-copy h2 { color: var(--paper); font-size: clamp(32px, 3.8vw, 53px); max-width: 13ch; text-wrap: balance; }
.welcome-copy p { color: #eee4d5; font-size: 16px; }
.welcome-details { align-self: center; padding: 12px 0; }
.welcome-details > h2 { font-size: 29px; margin-bottom: 15px; overflow-wrap: anywhere; }
.welcome-details > p { color: var(--muted); font-size: 13px; }
.class-parade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 26px 0; }
.class-parade > div { display: flex; align-items: center; flex-direction: column; text-align: center; gap: 8px; }
.class-parade .portrait { width: 64px; height: 72px; max-width: 100%; }
.class-parade strong { font: bold 12px/1.4 Georgia, serif; color: var(--paper); overflow-wrap: anywhere; }
.migration-hint { margin-top: 23px; padding-top: 16px; border-top: 1px solid var(--line); }
.migration-hint .icon { margin-right: 9px; color: var(--amber); }
dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 36px); margin: auto; padding: 28px; border: 1px solid #bcacf54a; border-radius: 17px; background: linear-gradient(145deg, #282b40, #1b2335); color: var(--text); box-shadow: 0 30px 100px #050a16a8; overflow-y: auto; }
dialog::backdrop { background: #080d20b8; backdrop-filter: blur(6px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog-heading h2 { font-size: 27px; letter-spacing: -.5px; }
.dialog-heading .icon-button { margin: -9px -9px 0 0; flex-shrink: 0; width: 34px; height: 34px; border-color: transparent; }
.dialog-intro { color: var(--muted); font-size: 12px; margin-bottom: 19px; }
.dialog-art { display: flex; justify-content: center; align-items: center; gap: 23px; padding: 8px 0 20px; }
.dialog-art .portrait { width: 84px; height: 89px; }
.dialog-art > .icon { width: 30px; height: 30px; color: var(--amber); }
.onboarding .dialog-heading { justify-content: center; text-align: center; }
.onboarding .dialog-intro { text-align: center; }
.onboarding .dialog-heading h2 { font-size: 32px; }
.character-dialog { width: min(720px, calc(100% - 32px)); }
.class-grid { border: 0; padding: 0; margin: 0 0 17px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.class-grid legend { font-size: 13px; font-weight: 650; margin-bottom: 11px; }
.class-option { position: relative; min-width: 0; cursor: pointer; }
.class-option input { position: absolute; top: 13px; right: 13px; width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: var(--amber); cursor: pointer; }
.class-card { height: 100%; min-height: 224px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 17px; border: 1px solid #ffffff24; border-radius: 11px; background: linear-gradient(145deg, #34453e, #192936); }
.class-card.mage { background: linear-gradient(145deg, #4a3857, #242b40); }
.class-card.knight { background: linear-gradient(145deg, #465064, #242b40); }
.class-card.druid { background: linear-gradient(145deg, #3e513e, #233b3b); }
.class-card .portrait { width: 68px; height: 72px; filter: drop-shadow(0 6px 5px #080d2340); }
.class-card strong { color: var(--paper); font: bold 20px/1.18 Georgia, serif; overflow-wrap: anywhere; }
.class-description { color: #c6c9d4; font-size: 11px; overflow-wrap: anywhere; }
.class-bonuses { color: var(--teal); font-size: 11px; margin-top: auto; padding-top: 4px; }
.class-option input:checked + .class-card { border-color: var(--amber); box-shadow: 0 0 0 2px #f3bc6535; }
.class-option input:focus-visible + .class-card { outline: 3px solid var(--teal); outline-offset: 3px; }
.class-option input:disabled + .class-card { opacity: .55; cursor: wait; }
.auth-help { margin-top: 17px; }
.permanent-choice { margin-bottom: 18px; }
.class-notice { border-color: #bcacf54a; }
.onboarding-tabs { display: flex; background: #10192b66; border-radius: 8px; padding: 4px; margin: 18px 0; }
.onboarding-tabs .button { flex: 1; padding: 8px 12px; font-size: 12px; background: transparent; }
.onboarding-tabs .button[aria-pressed="true"] { background: #3e3d51; color: var(--amber); }
.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field > span { font-size: 12px; color: #dfdeea; font-weight: 600; }
input, textarea, select { color: var(--text); background: #111a2bee; border: 1px solid #929bbb4f; padding: 11px 12px; border-radius: 7px; width: 100%; min-height: 44px; }
input::placeholder, textarea::placeholder { color: #8994a9; }
textarea { resize: vertical; min-height: 80px; }
input[readonly], textarea[readonly] { color: var(--teal); font-size: 11px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 17px; padding: 0; border: 0; }
.category-grid legend { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.category-option { position: relative; }
.category-option input { position: absolute; opacity: 0; width: 1px; min-height: 1px; }
.category-option span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 7px; font-size: 11px; background: #ffffff03; cursor: pointer; }
.category-option input:checked + span { color: var(--amber); background: #f3bc6510; border-color: #f3bc6577; }
.category-option input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 3px; }
.reward-preview { padding: 13px; background: #65d9bd0b; border: 1px solid #65d9bd24; border-radius: 8px; margin-bottom: 19px; font-size: 12px; color: var(--teal); }
.reward-preview .hint { margin-top: 5px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.dialog-error { padding: 11px 13px; border-left: 3px solid var(--danger); color: #ffc4bd; background: #ffadab09; font-size: 12px; margin-bottom: 15px; }
.dialog-error:empty { display: none; }
.mini-rules { display: flex; gap: 10px; margin-top: 21px; padding-top: 18px; border-top: 1px solid var(--line); }
.mini-rules p { flex: 1; font-size: 10px; color: var(--muted); text-align: center; }
.mini-rules strong { display: block; font: bold 20px Georgia, serif; color: var(--amber); margin-bottom: 4px; }
.share-copy { display: grid; gap: 9px; margin-bottom: 19px; }
.share-links { display: grid; gap: 6px; overflow-wrap: anywhere; margin: 10px 0 17px; font-size: 12px; }
.notices { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 30; max-width: min(520px, calc(100% - 32px)); pointer-events: none; }
.toast { border: 1px solid #65d9bd5c; background: #233b3bf5; color: #e3fff4; padding: 14px 20px; border-radius: 9px; font-size: 13px; box-shadow: 0 12px 40px #050a1666; }
.toast.error { border-color: #ffadab60; background: #432f40f5; color: #ffdad8; }
.effects { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
.particle { position: absolute; width: 6px; height: 6px; background: var(--amber); border-radius: 2px; animation: scatter 650ms ease-out forwards; }
.damage-number { position: absolute; color: #ffe1a7; font: bold 34px Georgia, serif; text-shadow: 0 3px 0 #30203a; animation: damage 850ms ease-out forwards; }
.arena.hit .enemy-art { animation: hit 260ms ease-out; }
.noscript { padding: 24px; text-align: center; }
@keyframes scatter { to { transform: translate(var(--dx), var(--dy)) rotate(170deg); opacity: 0; } }
@keyframes damage { to { transform: translateY(-65px); opacity: 0; } }
@keyframes hit { 25% { transform: translateX(-7px); } 60% { transform: translateX(6px); } }
@media (min-width: 1500px) { .layout { grid-template-columns: 250px minmax(0, 1fr) 260px; gap: 26px; } }
@media (max-width: 1190px) { .shell { padding-inline: 22px; } .layout { grid-template-columns: 208px minmax(0, 1fr) 218px; gap: 16px; } .quest-panel { padding: 15px; } .hero-name { font-size: 17px; } .portrait { width: 53px; height: 63px; } .hero-select { gap: 9px; } .map-top { padding: 15px; } .map-top h2 { font-size: 21px; } .chapter-tag { font-size: 9px; } .activity-banner { padding: 15px; gap: 10px; } .activity-banner > .icon { display: none; } .map-bottom { padding: 14px; } .map-bottom h3 { font-size: 15px; } }
@media (max-width: 1010px) { .layout { grid-template-columns: 218px minmax(0, 1fr); gap: 20px; } .right-rail { grid-column: 2; grid-template-columns: 1fr 1fr; } .quest-panel { grid-row: span 2; } .left-rail { grid-row: span 2; } .hud { padding-right: 15px; gap: 12px; } .header-share-label { display: none; } .header-tools > .button { padding-inline: 12px; } .page-intro h1 { font-size: 27px; } }
@media (max-width: 720px) {
  .shell { padding: 0 17px 20px; }
  .topbar { min-height: 82px; height: auto; gap: 10px; padding: 14px 0; flex-wrap: wrap; }
  .brand-title { font-size: 28px; }
  .brand-icon { width: 37px; height: 37px; }
  .brand { gap: 8px; }
  .brand-subtitle { font-size: 9px; letter-spacing: 1px; }
  .header-tools { gap: 7px; }
  .hud { border: 0; gap: 12px; padding: 0; }
  .hud-stat { gap: 5px; }
  .hud-stat strong { font-size: 16px; }
  .hud-stat .icon { width: 16px; height: 16px; }
  .hud-stat small { display: none; }
  .header-tools > .button { display: none; }
  .header-tools > .account-button { display: inline-flex; }
  .header-tools { flex-wrap: wrap; }
  .welcome { grid-template-columns: 1fr; gap: 18px; }
  .welcome-story { min-height: 380px; }
  .welcome-copy { padding: 24px; }
  .welcome-copy h2 { font-size: 40px; }
  .class-parade .portrait { width: 64px; height: 72px; }
  .admin-link { max-width: none; }
  .header-tools > .icon-button { width: 33px; height: 36px; padding: 7px; }
  .page-intro { padding: 20px 0 17px; align-items: flex-start; }
  .page-intro h1 { font-size: 25px; }
  .page-intro p { font-size: 11px; max-width: 37ch; }
  .page-intro .connection { font-size: 0; margin-top: 12px; gap: 0; }
  .page-intro .button { padding: 10px 12px; font-size: 12px; flex-shrink: 0; }
  .page-intro .button .icon { width: 16px; height: 16px; }
  .layout { display: flex; flex-direction: column; gap: 20px; }
  .left-rail { display: contents; }
  .heroes { width: 100%; order: 0; }
  .heroes .section-heading { margin-bottom: 9px; }
  .hero-list { grid-template-columns: 1fr 1fr; gap: 9px; }
  .hero-select { padding: 13px 10px 8px; gap: 7px; }
  .portrait { width: 43px; height: 53px; }
  .hero-name { font-size: 16px; max-width: 95px; }
  .hero-role { font-size: 9px; }
  .hero-level { font-size: 9px; }
  .hero-detail { padding: 0 11px 11px; }
  .hero-mini-stats { font-size: 10px; margin-top: 8px; }
  .hero-edit { top: 4px; right: 3px; width: 32px; height: 32px; }
  .hero-card .active-dot { display: none; }
  .hero-owner { font-size: 8px; letter-spacing: 0; }
  .hero-card .hp-label { font-size: 9px; }
  .center { width: 100%; order: 1; }
  .tabs { gap: 0; justify-content: space-between; margin-bottom: 13px; height: 42px; }
  .tab { font-size: 12px; gap: 7px; padding: 0 7px 11px; }
  .map-top { padding: 14px; gap: 5px; }
  .map-top h2 { font-size: 21px; }
  .map-top p { font-size: 10px; }
  .chapter-tag { font-size: 9px; padding: 5px 7px; }
  .world-map { aspect-ratio: 3 / 2; }
  .world-art { object-position: center; }
  .map-stop { gap: 5px; }
  .stop-disc { width: 31px; height: 31px; }
  .map-stop.current .stop-disc { width: 40px; height: 40px; }
  .stop-label { font-size: 8px; max-width: 76px; padding: 3px 5px; top: calc(50% + 20px); }
  .current-flag, .map-stop:not(.current) .stop-label { display: none; }
  .expanded-map .stop-label { display: block; max-width: 83px; }
  .map-stop.current .stop-label { top: calc(50% + 24px); }
  .map-caption { font-size: 10px; }
  .map-bottom { gap: 9px; padding: 14px 12px; }
  .map-bottom h3 { font-size: 14px; }
  .map-bottom p { font-size: 10px; }
  .map-bottom .button { font-size: 11px; padding: 10px 11px; gap: 5px; }
  .map-bottom .button .icon { width: 15px; height: 15px; }
  .adventure-note { font-size: 9px; flex-wrap: wrap; gap: 6px; }
  .activity-banner { padding: 15px 13px; gap: 9px; margin-top: 15px; }
  .activity-banner h3 { font-size: 12px; }
  .activity-banner p { font-size: 10px; }
  .activity-banner .button { padding: 9px 10px; font-size: 11px; }
  .points-panel { width: 100%; order: 2; display: grid; grid-template-columns: 1fr 1fr; column-gap: 19px; padding: 17px; }
  .points-title { grid-column: 1; }
  .points-count { grid-column: 1; }
  .points-panel .button { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 12px; }
  .point-slots { grid-column: 1 / -1; margin: 12px 0 0; }
  .points-panel .hint { grid-column: 1 / -1; }
  .right-rail { width: 100%; order: 3; display: grid; grid-template-columns: 1fr; gap: 20px; }
  .quest-panel { padding: 20px; }
  .quest h3 { font-size: 13px; }
  .party-panel { padding: 0 4px; }
  .rules-card { width: 100%; order: 4; padding: 0 4px; }
  .footer { align-items: flex-start; font-size: 9px; }
  .footer span:first-child { max-width: 29ch; }
  .content-panel { padding: 18px 14px; }
  .content-panel h2 { font-size: 23px; }
  .item-grid { gap: 9px; }
  .item-card { padding: 13px; }
  .item-card h3 { font-size: 16px; }
  .item-card .button { font-size: 11px; padding-inline: 7px; }
  .arena { padding: 22px 14px; min-height: 320px; }
  .arena h2 { font-size: 23px; }
  .battle-actions { padding: 15px 12px; }
  .move strong { font-size: 11px; }
  .move small { font-size: 9px; }
  .battle-footer { gap: 8px; }
  .battle-footer .hint { font-size: 10px; }
  .battle-footer .button { flex-shrink: 0; font-size: 10px; }
  dialog { padding: 23px 20px; }
  .dialog-heading h2 { font-size: 25px; }
  .onboarding .dialog-heading h2 { font-size: 28px; }
  .dialog-art { padding-bottom: 14px; }
  .dialog-art .portrait { width: 66px; height: 74px; }
  .character-dialog { padding: 23px 16px; }
  .class-grid { gap: 10px; }
  .class-card { padding: 13px; }
  .class-card strong { font-size: 18px; }
  .class-card .portrait { width: 58px; height: 63px; }
  .onboarding-tabs .button { font-size: 11px; padding: 8px 6px; }
  .notices { bottom: 17px; width: calc(100% - 32px); }
  .toast { font-size: 12px; }
}
@media (max-width: 380px) {
  .shell { padding-inline: 12px; }
  .brand-subtitle { letter-spacing: .5px; }
  .header-tools { width: 100%; justify-content: space-between; }
  .hero-select { flex-direction: column; align-items: flex-start; }
  .hero-name { max-width: none; }
  .class-grid, .field-row { grid-template-columns: 1fr; }
  .class-card { min-height: 0; }
  .class-parade { grid-template-columns: 1fr 1fr; }
  .page-intro { flex-wrap: wrap; }
  .map-top { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
