:root {
  --bg: #0b1010;
  --panel: #121a18;
  --panel2: #18221e;
  --gold: #d9b36c;
  --cream: #f2e1bb;
  --green: #7f9b55;
  --red: #a94739;
  --blue: #334f63;
  --muted: #9ca9a0;
  --line: rgba(217,179,108,.22);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--cream); }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at 20% 10%, #1b2a22 0, transparent 38%), #0b1010; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.loading { min-height: 100vh; display: grid; place-items: center; }
.topbar { height: 70px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(8,13,12,.88); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.brand { background: none; color: var(--gold); border: 0; font-family: Georgia, serif; font-weight: 900; font-size: 24px; letter-spacing: 2px; }
.top-stats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.top-stats span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; font-size: 12px; color: #d6d8d2; background: rgba(255,255,255,.025); }
.hero-screen { width: min(1180px, 92vw); min-height: calc(100vh - 70px); margin: auto; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; padding: 60px 0; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: 1.8px; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(44px, 5.4vw, 76px); line-height: .98; margin: 16px 0 24px; }
h2 { font-size: clamp(34px, 4vw, 52px); margin: 10px 0 24px; }
h3 { font-size: 24px; margin: 10px 0 15px; }
.hero-copy p { color: #b8c1bb; max-width: 700px; line-height: 1.65; font-size: 17px; }
.button-row { display: flex; gap: 12px; margin-top: 32px; }
.primary, .secondary { border-radius: 10px; padding: 13px 19px; font-weight: 800; border: 1px solid transparent; }
.primary { color: #14110a; background: linear-gradient(#e2c681, #bb9250); box-shadow: 0 7px 28px rgba(217,179,108,.13); }
.primary:hover { filter: brightness(1.08); }
.secondary { color: var(--cream); background: #151d1b; border-color: var(--line); }
.secondary:hover { background: #1c2723; }
.compact { padding: 9px 12px; font-size: 13px; }
.prototype-note { margin-top: 25px; color: #718078; font-size: 12px; }
.hero-art-card { min-height: 560px; border: 1px solid var(--line); border-radius: 26px; position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(circle at 50% 28%, #415446 0, #1a2921 40%, #0c1210 72%); box-shadow: 0 40px 80px rgba(0,0,0,.36); }
.hero-art-card:before { content: ''; position: absolute; inset: 16px; border: 1px solid rgba(217,179,108,.16); border-radius: 18px; }
.hero-sprite { width: min(76%, 390px); max-height: 78%; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 25px 25px rgba(0,0,0,.5)); z-index: 2; }
.hero-name { position: absolute; left: 28px; top: 28px; font-family: Georgia, serif; font-size: 30px; font-weight: bold; }
.hero-mini-stats { position: absolute; bottom: 20px; right: 20px; z-index: 3; display: flex; gap: 6px; }
.hero-mini-stats span { padding: 7px 9px; background: rgba(10,14,12,.82); border: 1px solid var(--line); border-radius: 7px; font-size: 11px; }
.panel { width: min(1180px, 92vw); margin: 30px auto 70px; background: rgba(18,26,24,.92); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 25px 70px rgba(0,0,0,.28); }
.screen-panel { padding: 34px; }
.back { border: 0; background: transparent; color: #aeb8b2; padding: 0; margin-bottom: 30px; }
.back:hover { color: var(--gold); }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mode-card { min-height: 235px; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: #111917; color: var(--cream); text-align: left; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.mode-card strong { font-family: Georgia, serif; font-size: 25px; }
.mode-card span { color: var(--gold); }
.mode-card small { color: #88958e; line-height: 1.4; }
.mode-card.active:hover { transform: translateY(-3px); border-color: rgba(217,179,108,.55); background: #16211d; }
.mode-card.locked { opacity: .58; cursor: default; }
.profile-header { display: flex; gap: 24px; align-items: center; margin-bottom: 28px; }
.profile-header img { width: 120px; height: 120px; object-fit: contain; background: #0c1210; border: 1px solid var(--line); border-radius: 18px; }
.profile-header p { margin: 8px 0 0; color: #8f9c95; }
.name-input { width: min(450px, 70vw); color: var(--cream); border: 0; border-bottom: 1px solid var(--line); background: transparent; font-family: Georgia, serif; font-size: 40px; font-weight: bold; padding: 5px 0 7px; outline: none; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 20px 0; }
.stat-card { background: #0f1715; border: 1px solid var(--line); border-radius: 13px; padding: 15px; }
.stat-card span { display: block; color: #89968f; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.stat-card strong { display: block; margin-top: 8px; font-size: 22px; color: var(--gold); }
.profile-columns { display: grid; grid-template-columns: .85fr 1.15fr; gap: 16px; margin-top: 16px; }
.subpanel { background: #0f1715; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.subpanel p { color: #aab5ae; }
.progress-row { margin-bottom: 15px; }
.progress-row > div:first-child { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.progress-row b { color: var(--gold); }
.progress-track { height: 8px; background: #1d2924; border-radius: 10px; overflow: hidden; }
.progress-track i { display: block; height: 100%; background: linear-gradient(90deg, #648249, #b49c58); border-radius: inherit; }
.question-demo { margin-top: 16px; padding: 21px; border-radius: 16px; border: 1px dashed rgba(217,179,108,.34); display: flex; align-items: center; justify-content: space-between; gap: 25px; background: rgba(217,179,108,.035); }
.question-demo h3, .question-demo p { margin-bottom: 0; }
.question-demo p { color: #99a69f; }
.danger-link { margin-top: 22px; border: 0; background: transparent; color: #97675f; padding: 0; font-size: 12px; }
.map-screen { width: min(1500px, 97vw); margin: 20px auto 60px; }
.map-toolbar { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 16px; background: #111917; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; }
.map-toolbar .back { margin: 0; }
.map-toolbar > div:nth-child(2) { text-align: center; }
.map-toolbar b, .map-toolbar span { display: block; }
.map-toolbar span { color: #89968f; font-size: 12px; margin-top: 3px; }
.toolbar-actions { display: flex; justify-content: flex-end; gap: 8px; }
.map-frame { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #111; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.global-map { display: block; width: 100%; height: auto; }
.map-player { position: absolute; left: 22%; bottom: 6%; width: clamp(65px, 7vw, 110px); display: grid; justify-items: center; filter: drop-shadow(0 12px 12px rgba(0,0,0,.6)); animation: float 2.3s ease-in-out infinite; }
.map-player img { width: 100%; max-height: 120px; object-fit: contain; }
.map-player span { background: rgba(8,12,10,.9); border: 1px solid rgba(217,179,108,.5); padding: 4px 8px; border-radius: 999px; font-size: 10px; white-space: nowrap; }
.coming-chip { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(8,12,10,.9); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; color: #d9d8cf; font-size: 12px; white-space: nowrap; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.76); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(6px); }
.question-modal { width: min(650px, 96vw); background: #141d1a; border: 1px solid rgba(217,179,108,.36); border-radius: 22px; padding: 30px; position: relative; box-shadow: 0 35px 100px rgba(0,0,0,.65); }
.close { position: absolute; right: 16px; top: 12px; border: 0; background: none; color: #849089; font-size: 30px; }
.question-goblin { position: absolute; width: 120px; right: 50px; top: -70px; filter: drop-shadow(0 14px 14px rgba(0,0,0,.6)); }
.question-modal h2 { font-size: 36px; margin-right: 110px; }
.question-modal h2 span { color: var(--gold); }
.answers { display: grid; gap: 9px; margin-top: 25px; }
.answers button { text-align: left; border: 1px solid var(--line); background: #0e1513; color: var(--cream); padding: 14px 16px; border-radius: 10px; }
.answers button:hover:not(:disabled) { border-color: rgba(217,179,108,.7); background: #17231e; }
.answers button:disabled { cursor: default; opacity: .6; }
.feedback { padding: 13px 15px; margin-top: 14px; border-radius: 10px; font-weight: 700; }
.feedback.correct { background: rgba(92,130,72,.18); color: #b8d6a4; border: 1px solid rgba(92,130,72,.42); }
.feedback.wrong { background: rgba(169,71,57,.15); color: #dda9a1; border: 1px solid rgba(169,71,57,.36); }
.next-question { margin-top: 12px; width: 100%; }
@media (max-width: 900px) {
  .hero-screen { grid-template-columns: 1fr; gap: 28px; }
  .hero-art-card { min-height: 430px; }
  .mode-grid, .profile-columns { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .top-stats span:nth-child(-n+3) { display: none; }
  .map-toolbar { grid-template-columns: 1fr 1fr; }
  .map-toolbar > div:nth-child(2) { display: none; }
  .coming-chip { white-space: normal; width: calc(100% - 24px); text-align: center; }
}
@media (max-width: 560px) {
  .screen-panel { padding: 22px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .question-demo { align-items: stretch; flex-direction: column; }
  .name-input { font-size: 30px; }
  .question-goblin { width: 85px; right: 24px; top: -48px; }
  .question-modal h2 { margin-right: 60px; font-size: 30px; }
}

/* GameDay 0.2 — Global Map interaction */
.rule-strip { margin: -2px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(17,25,23,.92); padding: 9px 14px; color: #8f9b94; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.rule-strip b { color: var(--gold); }
.rule-strip i { width: 1px; height: 13px; background: var(--line); }
.dice-button { min-width: 150px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 9px 12px; font-weight: 900; color: #14110a; background: linear-gradient(#e2c681, #bb9250); border: 1px solid rgba(255,255,255,.1); }
.dice-button:disabled { cursor: default; opacity: .55; }
.dice-face { min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 6px; background: rgba(20,17,10,.16); font-size: 17px; }
.route-layer { position: absolute; inset: 0; pointer-events: none; }
.route-dot { position: absolute; width: clamp(5px,.65vw,10px); aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; border: 1px solid rgba(255,239,190,.42); background: rgba(22,31,26,.55); box-shadow: 0 0 0 2px rgba(0,0,0,.14); }
.route-dot.passed { background: rgba(217,179,108,.48); }
.route-dot.current { background: #f3d78f; box-shadow: 0 0 0 4px rgba(217,179,108,.24), 0 0 18px rgba(240,207,126,.8); }
.map-player { bottom: auto; width: clamp(46px,5vw,78px); transform: translate(-50%,-78%); transition: left .55s ease, top .55s ease; animation: none; z-index: 5; }
.map-player img { max-height: 85px; }
.map-player span { font-size: 9px; }
.map-version-note { position: absolute; left: 14px; bottom: 12px; background: rgba(8,12,10,.88); border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; color: #b6beb9; font-size: 10px; }
.event-modal { width: min(560px,95vw); background: #141d1a; border: 1px solid rgba(217,179,108,.36); border-radius: 22px; padding: 30px; position: relative; box-shadow: 0 35px 100px rgba(0,0,0,.65); }
.event-modal h2 { margin-bottom: 12px; }
.event-modal p { color: #aeb8b2; line-height: 1.6; margin: 0 0 22px; max-width: 470px; }
.event-goblin { position: absolute; width: 130px; right: 28px; top: -70px; filter: drop-shadow(0 14px 14px rgba(0,0,0,.6)); }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 11px 16px; border-radius: 999px; border: 1px solid rgba(217,179,108,.4); background: rgba(12,18,16,.95); color: #f0e7d4; box-shadow: 0 18px 45px rgba(0,0,0,.4); font-size: 13px; }
@media (max-width: 650px) { .rule-strip { flex-wrap: wrap; } .map-version-note { border-radius: 8px; max-width: calc(100% - 28px); } .dice-button { min-width: 120px; } }

/* GameDay 0.3 — free path selection on Global Map */
.global-move-cell {
  position: absolute;
  z-index: 7;
  width: clamp(22px, 2.7vw, 44px);
  aspect-ratio: 1.65 / 1;
  transform: translate(-50%, -50%) rotate(30deg);
  border: 2px solid rgba(255, 231, 150, .95);
  background: rgba(234, 194, 91, .42);
  box-shadow: 0 0 0 6px rgba(234,194,91,.12), 0 0 26px rgba(255,213,102,.75);
  border-radius: 4px;
  animation: pulseCell 1.05s ease-in-out infinite;
}
.global-move-cell:hover { background: rgba(255, 220, 112, .72); transform: translate(-50%, -50%) rotate(30deg) scale(1.12); }
@keyframes pulseCell { 0%,100% { opacity: .68; } 50% { opacity: 1; } }

/* GameDay 0.3 — battle screen */
.battle-screen { width: min(1680px, 98vw); margin: 18px auto 60px; }
.battle-toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; background: #111917; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; }
.battle-toolbar b, .battle-toolbar span { display: block; }
.battle-toolbar > div:first-child span { color: #89968f; font-size: 12px; margin-top: 3px; }
.battle-pills { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.battle-pills span { border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 999px; padding: 7px 10px; font-size: 12px; }
.battle-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 12px; align-items: flex-start; }
.battle-map-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #111; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.battle-map { display: block; width: 100%; height: auto; }
.battle-panel { background: #111917; border: 1px solid var(--line); border-radius: 18px; padding: 20px; position: sticky; top: 84px; }
.battle-panel p { color: #a9b4ae; line-height: 1.55; font-size: 13px; }
.battle-action { width: 100%; margin-top: 9px; }
.battle-action:disabled { cursor: default; opacity: .4; filter: none; }
.battle-tip { margin-top: 15px; padding: 11px; border-radius: 10px; background: rgba(217,179,108,.07); border: 1px solid rgba(217,179,108,.18); color: #c7c4b8; font-size: 11px; line-height: 1.5; }
.battle-log { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 15px; display: grid; gap: 8px; }
.battle-log b { color: var(--gold); font-size: 12px; }
.battle-log span { color: #87958e; font-size: 11px; line-height: 1.35; }
.battle-move-cell {
  position: absolute;
  z-index: 6;
  width: clamp(32px, 5.4vw, 90px);
  aspect-ratio: 1.72 / 1;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
  border: 0;
  background: rgba(235, 205, 105, .5);
  box-shadow: 0 0 28px rgba(255,222,112,.85);
  animation: battleCellPulse 1s ease-in-out infinite;
}
.battle-move-cell:hover { background: rgba(255, 228, 122, .78); }
@keyframes battleCellPulse { 0%,100% { opacity: .58; } 50% { opacity: .95; } }
.battle-unit { position: absolute; z-index: 10; transform: translate(-50%, -75%); display: grid; justify-items: center; pointer-events: none; filter: drop-shadow(0 13px 12px rgba(0,0,0,.55)); transition: left .35s ease, top .35s ease; }
.battle-unit img { width: clamp(52px, 6.8vw, 108px); max-height: 118px; object-fit: contain; }
.battle-unit span { margin-top: -8px; padding: 4px 7px; border-radius: 999px; background: rgba(8,12,10,.9); border: 1px solid rgba(217,179,108,.48); font-size: 9px; }
.goblin-unit img { width: clamp(58px, 7.3vw, 116px); }
.goblin-unit span { border-color: rgba(102,162,82,.48); }
.battle-result { position: absolute; z-index: 30; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 30px; background: rgba(6,10,8,.82); backdrop-filter: blur(5px); }
.battle-result h2 { margin-bottom: 10px; }
.battle-result p { max-width: 560px; color: #b3bdb7; line-height: 1.55; }
.result-secondary { margin-top: 9px; }

@media (max-width: 980px) {
  .battle-layout { grid-template-columns: 1fr; }
  .battle-panel { position: static; }
  .battle-toolbar { align-items: flex-start; flex-direction: column; }
  .battle-pills { justify-content: flex-start; }
}

/* GameDay 0.4 — terrain + local 4-player battle */
.party-mode { border-color: rgba(113, 174, 121, .42); }
.terrain-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 0 0 12px; padding: 9px 12px;
  background: #111917; border: 1px solid var(--line); border-radius: 12px;
  color: #9ba8a0; font-size: 11px;
}
.terrain-strip > span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); }
.terrain-toggle { margin-left: auto; border: 1px solid var(--line); background: transparent; color: #d8d5c8; border-radius: 8px; padding: 6px 9px; font-size: 10px; }
.terrain-marker {
  position: absolute; z-index: 4; transform: translate(-50%,-50%);
  min-width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 999px; font-size: 13px; pointer-events: none;
  background: rgba(10,14,12,.82); border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 5px 15px rgba(0,0,0,.35);
}
.terrain-plant { border-color: rgba(119, 176, 90, .72); }
.terrain-ruins { border-color: rgba(196, 155, 96, .82); }
.terrain-hill { border-color: rgba(151, 159, 171, .9); }
.battle-move-cell { display: grid; place-items: center; }
.battle-move-cell span {
  display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 999px; background: rgba(20,17,10,.8); color: #fff0bd;
  font-size: 10px; font-weight: 900; transform: rotate(0deg);
}
.battle-move-cell.cost-two { background: rgba(111, 161, 78, .58); box-shadow: 0 0 28px rgba(125,190,90,.8); }
.battle-unit.active-unit img { filter: drop-shadow(0 0 14px rgba(255, 224, 116, .95)); }
.clickable-unit {
  pointer-events: auto; border: 0; padding: 0; background: transparent; cursor: pointer;
  font: inherit; color: inherit;
}
.goblin-unit.attackable-enemy img { filter: drop-shadow(0 0 14px rgba(103, 201, 90, .95)) drop-shadow(0 13px 12px rgba(0,0,0,.55)); }
.goblin-unit.selected-enemy img { filter: drop-shadow(0 0 18px rgba(243, 210, 108, 1)) drop-shadow(0 13px 12px rgba(0,0,0,.55)); }
.goblin-unit.selected-enemy span { border-color: rgba(243, 210, 108, .9); color: #f5df9e; }
.active-hero-card {
  display: grid; grid-template-columns: 66px 1fr; gap: 10px; align-items: center;
  padding: 10px; border: 1px solid rgba(217,179,108,.25); border-radius: 12px;
  background: rgba(217,179,108,.055); margin: 8px 0 12px;
}
.active-hero-card img { width: 62px; height: 72px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); }
.active-hero-card b, .active-hero-card span, .active-hero-card small { display: block; }
.active-hero-card span { color: #d8d5c8; font-size: 11px; margin-top: 2px; }
.active-hero-card small { color: #8d9a92; font-size: 10px; margin-top: 5px; line-height: 1.35; }
.turn-order { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.turn-order b { color: var(--gold); font-size: 11px; margin-bottom: 2px; }
.turn-order span { font-size: 10px; color: #85928b; border-radius: 7px; padding: 5px 7px; border: 1px solid transparent; }
.turn-order span.turn-active { color: #f0dfad; background: rgba(217,179,108,.08); border-color: rgba(217,179,108,.26); }
.reward-grid { width: min(480px, 90vw); display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 12px 0; }
.reward-grid span { padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.03); font-size: 11px; }
.reward-grid b { display: block; color: #f0dfad; margin-bottom: 3px; }
.test-note { color: #8c9991; margin: 0 0 16px; max-width: 520px; line-height: 1.45; }
@media (max-width: 680px) {
  .terrain-toggle { margin-left: 0; }
  .reward-grid { grid-template-columns: 1fr; }
}

/* GameDay 0.6 — complete Field plants + ruins range bonus + wrong-answer turn pass */
.navigator-strip {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  margin: 0 0 12px; padding: 11px 14px;
  border: 1px solid rgba(113,174,121,.38); border-radius: 12px;
  background: rgba(74,117,79,.10);
}
.navigator-strip > div { min-width: 190px; }
.navigator-strip span { display: block; color: #7f9b85; font-size: 9px; font-weight: 900; letter-spacing: 1.1px; }
.navigator-strip b { display: block; color: #e9d69e; font-family: Georgia, serif; font-size: 20px; margin-top: 3px; }
.navigator-strip p { margin: 0; color: #a5b1aa; font-size: 11px; line-height: 1.5; }
.map-party {
  position: absolute; z-index: 9; transform: translate(-50%,-74%);
  display: grid; justify-items: center; transition: left .55s ease, top .55s ease;
  filter: drop-shadow(0 11px 12px rgba(0,0,0,.58));
}
.map-party-sprites { position: relative; width: clamp(72px,7vw,112px); height: clamp(56px,6vw,92px); }
.map-party-sprites img {
  position: absolute; width: 54%; max-height: 84px; object-fit: contain;
  transform-origin: bottom center; transition: filter .2s ease, transform .2s ease;
}
.map-party-sprites img:nth-child(1) { left: 0; bottom: 0; }
.map-party-sprites img:nth-child(2) { right: 0; bottom: 0; }
.map-party-sprites img:nth-child(3) { left: 18%; bottom: 18%; }
.map-party-sprites img:nth-child(4) { right: 18%; bottom: 18%; }
.map-party-sprites img.navigator-sprite { z-index: 3; filter: drop-shadow(0 0 9px rgba(242,207,111,.95)); transform: scale(1.08); }
.map-party > span {
  margin-top: -5px; padding: 4px 8px; border-radius: 999px; white-space: nowrap;
  background: rgba(8,12,10,.91); border: 1px solid rgba(113,174,121,.58);
  color: #e5dcc3; font-size: 9px;
}
.terrain-note { color: #8f9b94; font-style: italic; }
@media (max-width: 720px) {
  .navigator-strip { grid-template-columns: 1fr; gap: 6px; }
  .navigator-strip > div { min-width: 0; }
}

.auto-pass-turn{margin-top:14px;padding:12px 14px;border-radius:12px;background:rgba(255,184,77,.12);border:1px solid rgba(255,184,77,.35);font-weight:700;text-align:center}


/* GameDay 0.7 — real Supabase online lobby */
.online-mode { border-color: rgba(91, 160, 222, .45); }
.online-screen { max-width: 1180px; }
.online-intro { color: #aab5af; line-height: 1.6; max-width: 800px; }
.online-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.online-card { display: flex; flex-direction: column; gap: 10px; }
.online-card p { color: #99a69f; line-height: 1.5; min-height: 46px; }
.online-card label { color: #d9d4c6; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.online-input { width: 100%; box-sizing: border-box; margin: 0 0 5px; font-size: 16px; }
.room-code-input { text-transform: uppercase; letter-spacing: .18em; font-weight: 900; }
.full-button { width: 100%; margin-top: 6px; }
.online-error { margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(219,94,80,.45); background: rgba(219,94,80,.09); border-radius: 10px; color: #f0aaa1; }
.lobby-wrap { margin-top: 22px; }
.room-code-box { display: grid; justify-items: center; padding: 24px; border: 1px solid rgba(217,179,108,.4); border-radius: 18px; background: rgba(217,179,108,.055); }
.room-code-box span { font-size: 10px; letter-spacing: .18em; color: #9da9a1; font-weight: 800; }
.room-code-box strong { font-size: clamp(38px,7vw,74px); letter-spacing: .14em; color: #efd58c; line-height: 1.1; }
.room-code-box small { color: #8f9c94; }
.lobby-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0; color: #9eaaa3; font-size: 12px; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: #6cc77d; box-shadow: 0 0 15px rgba(108,199,125,.8); }
.member-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin: 18px 0; }
.member-card { min-height: 105px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); display: flex; flex-direction: column; justify-content: center; }
.member-card .member-slot { color: #87948d; font-size: 10px; text-transform: uppercase; font-weight: 900; }
.member-card strong { color: #e5e1d5; margin: 7px 0; font-size: 14px; overflow-wrap: anywhere; }
.member-card small { color: #6f7d75; font-size: 10px; }
.member-card.connected { border-color: rgba(97,186,112,.38); background: rgba(97,186,112,.055); }
.member-card.connected small { color: #74c783; }
.teacher-member { border-color: rgba(217,179,108,.4); background: rgba(217,179,108,.06); }
.lobby-next { margin: 18px 0; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.lobby-next b { color: #ead28e; }
.lobby-next p { color: #98a59e; line-height: 1.5; }
@media (max-width: 900px) { .member-grid { grid-template-columns: 1fr 1fr; } .online-columns { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .member-grid { grid-template-columns: 1fr; } }

/* GameDay 0.7.2 — lobby presence */
.online-dot.offline-dot { background: #d96f61; box-shadow: 0 0 10px rgba(217,111,97,.8); }

/* GameDay 0.9 — shared online Global Map + synchronized battle */
.online-game-screen { padding: 14px 18px 24px; }
.online-game-toolbar { display:grid; grid-template-columns:auto 1fr auto; gap:16px; align-items:center; margin-bottom:12px; }
.online-game-toolbar > div:nth-child(2) b { color:#ddd6c4; font-family:Georgia,serif; font-size:17px; }
.online-turn-pill { min-width:210px; padding:10px 13px; border:1px solid rgba(230,193,105,.38); border-radius:12px; background:rgba(230,193,105,.06); }
.online-turn-pill span { display:block; color:#8e9a92; font-size:9px; font-weight:900; letter-spacing:1px; }
.online-turn-pill strong { display:block; margin-top:3px; color:#efd58c; font-size:17px; }
.online-player-strip { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.online-player-chip, .teacher-watch-chip { display:flex; align-items:center; gap:8px; min-height:50px; padding:8px 10px; border:1px solid var(--line); border-radius:11px; background:rgba(255,255,255,.025); }
.online-player-chip img { width:34px; height:38px; object-fit:contain; }
.online-player-chip div { display:grid; }
.online-player-chip b, .teacher-watch-chip b { color:#e6e0d0; font-size:12px; }
.online-player-chip small, .teacher-watch-chip small { color:#849188; font-size:9px; margin-top:2px; }
.online-player-chip.active-turn { border-color:rgba(234,204,112,.72); background:rgba(234,204,112,.09); box-shadow:0 0 0 1px rgba(234,204,112,.13),0 0 22px rgba(234,204,112,.07); }
.online-player-chip.inactive { opacity:.5; }
.teacher-watch-chip { margin-left:auto; max-width:300px; align-items:flex-start; flex-direction:column; gap:2px; border-color:rgba(88,157,216,.35); }
.online-status-message { display:flex; align-items:center; gap:9px; padding:9px 12px; margin-bottom:10px; border:1px solid rgba(93,150,105,.28); border-radius:10px; background:rgba(73,119,80,.075); color:#aab6ae; font-size:11px; }
.online-status-message b { color:#cfd5cc; font-weight:650; }
.online-dice-mini { margin-left:auto; color:#efd58c; font-weight:900; }
.online-map-layout { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:12px; align-items:flex-start; }
.online-map-frame { position:relative; overflow:hidden; border:1px solid rgba(112,132,118,.35); border-radius:15px; background:#111713; }
.online-map-frame .global-map { display:block; width:100%; height:auto; }
.online-map-party { z-index:12; }
.online-move-cell { z-index:15; }
.spectator-move { cursor:default; opacity:.5; pointer-events:none; }
.online-action-panel { position:sticky; top:12px; padding:16px; border:1px solid var(--line); border-radius:14px; background:linear-gradient(180deg,rgba(24,31,27,.98),rgba(14,19,16,.98)); min-height:260px; }
.online-action-panel h3 { color:#eee4c8; font-family:Georgia,serif; font-size:20px; margin:12px 0 8px; }
.online-action-panel p { color:#9ca9a1; line-height:1.5; font-size:12px; }
.phase-badge { display:inline-block; padding:5px 8px; border-radius:999px; background:rgba(92,145,103,.12); border:1px solid rgba(92,145,103,.3); color:#91aa96; font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.7px; }
.online-main-action { width:100%; justify-content:center; margin-top:12px; }
.online-question-prompt { margin:12px 0; padding:15px 12px; border-radius:12px; background:rgba(230,198,108,.07); border:1px solid rgba(230,198,108,.25); color:#f0dfad; font-size:21px; font-weight:800; text-align:center; }
.online-answer-list { display:grid; gap:8px; }
.online-answer-list button { padding:11px 10px; border-radius:10px; border:1px solid rgba(111,139,119,.35); background:rgba(255,255,255,.035); color:#dbe0d8; cursor:pointer; font-weight:700; }
.online-answer-list button:hover:not(:disabled) { border-color:rgba(224,191,103,.62); background:rgba(224,191,103,.08); }
.online-answer-list button:disabled { opacity:.5; cursor:not-allowed; }
.spectator-note { display:block; margin-top:10px; color:#7f8d84; line-height:1.4; }
.encounter-online-icon { font-size:42px; text-align:center; margin-top:10px; }
.online-answer-result { margin-top:12px; padding:10px; border-radius:10px; text-align:center; font-weight:900; }
.online-answer-result.correct { border:1px solid rgba(90,184,105,.42); background:rgba(90,184,105,.1); color:#85d492; }
.online-answer-result.wrong { border:1px solid rgba(213,102,88,.42); background:rgba(213,102,88,.1); color:#e58f84; }
.online-rule-mini { margin-top:16px; padding-top:12px; border-top:1px solid var(--line); color:#748178; font-size:9px; line-height:1.55; }
.online-rule-mini b { color:#b1b9b2; }
.online-game-error { margin:12px 0 0; }
@media (max-width: 1050px) { .online-map-layout { grid-template-columns:1fr; } .online-action-panel { position:relative; top:auto; } .teacher-watch-chip { margin-left:0; } }
@media (max-width: 760px) { .online-game-toolbar { grid-template-columns:1fr; } .online-turn-pill { min-width:0; } .online-game-screen { padding:10px; } }

/* GameDay 0.9 — synchronized online battle */
.online-battle-screen { width: min(1720px, 98vw); }
.online-battle-toolbar > div:first-child span { color: #9aa69f; font-size: 12px; margin-top: 4px; max-width: 760px; }
.online-sync-badge { margin-left: auto; color: #a9d7af !important; border-color: rgba(100,190,120,.32) !important; }
.enemy-move-cell { background: rgba(172, 82, 69, .58); box-shadow: 0 0 28px rgba(220,92,72,.72); }
.enemy-move-cell:hover { background: rgba(205, 99, 78, .82); }
.hero-unit.attackable-hero img { filter: drop-shadow(0 0 16px rgba(219, 94, 74, .96)) drop-shadow(0 13px 12px rgba(0,0,0,.55)); }
.hero-unit.selected-hero img { filter: drop-shadow(0 0 20px rgba(255, 214, 109, 1)) drop-shadow(0 13px 12px rgba(0,0,0,.55)); }
.hero-unit.selected-hero span { border-color: rgba(243,210,108,.9); color: #f5df9e; }
.goblin-unit.active-enemy img { filter: drop-shadow(0 0 18px rgba(215, 91, 70, 1)) drop-shadow(0 13px 12px rgba(0,0,0,.55)); }
.goblin-unit.active-enemy span { border-color: rgba(215,91,70,.85); color: #f0b4a8; }
.teacher-phase { border-color: rgba(206,95,75,.35) !important; color: #efb4a8 !important; background: rgba(206,95,75,.08) !important; }
.online-battle-panel .spectator-note { display:block; margin-top: 12px; color:#91a099; line-height:1.5; }
.online-battle-panel .online-question-prompt { margin-top: 12px; }
.online-battle-panel .online-answer-list { margin-top: 10px; }
.online-battle-panel .online-answer-result { margin-top: 12px; }
@media (max-width: 980px) { .online-sync-badge { margin-left: 0; } }

/* GameDay 0.10 — city checkpoints */
.city-checkpoint-card{padding:18px;border-radius:18px;background:rgba(34,45,29,.74);border:1px solid rgba(190,222,132,.34);box-shadow:inset 0 0 30px rgba(149,190,90,.08);margin-bottom:14px}
.city-checkpoint-card h3{margin:5px 0 8px;font-size:24px}.city-checkpoint-card p{margin:0 0 12px;line-height:1.45;color:#d8dfd0}.city-icon{font-size:38px;margin-bottom:4px}.city-gift{padding:10px 12px;border-radius:12px;background:rgba(213,176,81,.12);border:1px solid rgba(235,199,105,.28);margin:10px 0}.checkpoint-note{font-size:13px;color:#cbd7be;padding-top:8px;border-top:1px solid rgba(255,255,255,.08)}

/* GameDay 0.11 — developer test panel */
.dev-panel-wrap{margin:18px auto 0;max-width:1500px;padding:0 18px 18px}.dev-panel-toggle{border:1px solid rgba(176,255,82,.35);background:rgba(17,26,25,.94);color:#dfff9b;padding:10px 14px;border-radius:12px;font-weight:800;cursor:pointer}.dev-panel{margin-top:8px;background:rgba(10,17,18,.97);border:1px solid rgba(176,255,82,.26);border-radius:16px;padding:14px;box-shadow:0 18px 50px rgba(0,0,0,.32)}.dev-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.dev-panel-head>div{display:flex;flex-direction:column;gap:2px}.dev-panel-head small{color:#8fa19d}.dev-mini,.dev-group button,.dev-current button{border:1px solid rgba(255,255,255,.14);background:#172322;color:#eaffdf;padding:7px 10px;border-radius:9px;cursor:pointer;font:inherit}.dev-mini:hover,.dev-group button:hover,.dev-current button:hover{border-color:rgba(176,255,82,.55);background:#20312c}.dev-group button:disabled,.dev-mini:disabled{opacity:.38;cursor:not-allowed}.dev-current{display:flex;flex-wrap:wrap;gap:8px 16px;padding:9px 10px;margin-bottom:10px;border-radius:10px;background:rgba(255,255,255,.035);font-size:13px;color:#b8c7c2}.dev-current button{padding:2px 6px;font-size:12px}.dev-group{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:8px 0;border-top:1px solid rgba(255,255,255,.065)}.dev-group>b{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#93a7a0;margin-right:3px}.dev-group .dev-danger{border-color:rgba(255,100,100,.38);color:#ffb0b0}.dev-group .dev-success{border-color:rgba(111,255,156,.38);color:#a9ffc4}.dev-group .dev-active{background:#294130;border-color:#b0ff52;color:#dfff9b}.dev-result{margin-top:8px;padding:9px 11px;border-radius:10px;background:rgba(176,255,82,.08);color:#dfff9b;font-size:13px}.battle-dev-wrap{max-width:none;padding:0;margin-top:12px}.debug-coordinate{position:absolute;transform:translate(-50%,-50%);z-index:38;border:1px solid rgba(255,221,72,.85);background:rgba(0,0,0,.78);color:#ffe85d;border-radius:5px;padding:1px 3px;font-size:8px;line-height:1.1;cursor:pointer}.global-debug-coordinate{z-index:21}.battle-debug-coordinate{z-index:35}.debug-coordinate:hover{z-index:90;transform:translate(-50%,-50%) scale(1.45);background:#000}.dev-cities button{min-width:72px}@media(max-width:800px){.dev-panel-head{align-items:flex-start;flex-direction:column}.dev-panel-wrap{padding-left:8px;padding-right:8px}.dev-group{align-items:flex-start}.debug-coordinate{font-size:6px}}

/* GameDay 0.11.2 — optional site entry / pass-through structures */
.site-pass-cell {
  width: 34px;
  height: 34px;
  border-width: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
}
.site-pass-cell::after {
  content: '';
  position: absolute;
  inset: -7px;
  border: 2px dashed rgba(255,255,255,.72);
  border-radius: 50%;
  pointer-events: none;
}
.site-pass-icon {
  font-size: 17px;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.75));
  pointer-events: none;
}
.pass-through-site-card {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin: 12px 0 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
}
.pass-through-site-card.lair { background: rgba(133,53,28,.13); }
.pass-through-site-card.city { background: rgba(77,105,156,.12); }
.pass-through-site-icon { font-size: 30px; line-height: 1; }
.pass-through-site-card h3 { margin: 2px 0 5px; }
.pass-through-site-card p { margin: 0; opacity: .86; line-height: 1.4; }
.enter-site-button { margin-bottom: 12px; }

/* GameDay 0.11.3 — Global Map click-through fix + smaller party avatars */
/* Movement targets must always stay above the visual party marker. */
.online-map-frame .online-move-cell,
.online-map-frame .site-pass-cell {
  z-index: 30;
  pointer-events: auto;
}

/* The party marker is visual only: it must never intercept map clicks. */
.online-map-party,
.online-map-party *,
.map-frame .map-party,
.map-frame .map-party * {
  pointer-events: none !important;
}

/* Make the party compact enough to see roads/cells around structures. */
.online-map-party .map-party-sprites,
.map-frame .map-party .map-party-sprites {
  width: clamp(46px, 4.7vw, 74px);
  height: clamp(38px, 4.1vw, 62px);
}

.online-map-party .map-party-sprites img,
.map-frame .map-party .map-party-sprites img {
  width: 48%;
  max-height: 55px;
}

.online-map-party,
.map-frame .map-party {
  transform: translate(-50%, -66%);
}

.online-map-party > span,
.map-frame .map-party > span {
  margin-top: -3px;
  padding: 3px 6px;
  font-size: 8px;
  opacity: .9;
}

/* Site targets are a little larger than road targets, but no longer hidden by avatars. */
.online-map-frame .site-pass-cell {
  width: clamp(30px, 2.5vw, 38px);
  height: clamp(30px, 2.5vw, 38px);
}

/* When coordinate-debug is enabled, it should not steal normal movement clicks. */
.online-map-frame .global-debug-coordinate {
  z-index: 22;
}


/* GameDay 0.12 — first educational Vocabulary settlement */
.vocab-settlement { display:grid; gap:14px; }
.vocab-settlement-head { display:flex; gap:14px; align-items:center; padding:16px; border:1px solid rgba(217,179,108,.28); border-radius:16px; background:linear-gradient(135deg,rgba(217,179,108,.10),rgba(62,111,76,.10)); }
.vocab-settlement-icon { width:58px; height:58px; display:grid; place-items:center; border-radius:16px; font-size:30px; background:rgba(217,179,108,.12); border:1px solid rgba(217,179,108,.28); }
.vocab-settlement-head h2 { margin:2px 0 4px; font-size:25px; }
.vocab-settlement-head p { margin:0; color:#9eaaa3; }
.lesson-banner { display:grid; gap:4px; padding:12px 14px; border-radius:12px; background:rgba(75,128,88,.10); border:1px solid rgba(92,155,106,.28); }
.lesson-banner b { color:#dfe8d7; }
.lesson-banner span { color:#96a59d; font-size:12px; line-height:1.5; }
.lesson-banner.danger { background:rgba(137,82,48,.10); border-color:rgba(202,135,77,.32); }
.vocab-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; max-height:500px; overflow:auto; padding-right:4px; }
.vocab-group { border:1px solid var(--line); border-radius:13px; background:rgba(255,255,255,.02); overflow:hidden; }
.vocab-group h4 { margin:0; padding:10px 12px; color:#e0d5b5; border-bottom:1px solid var(--line); font-size:12px; }
.vocab-word-list { display:grid; }
.vocab-word { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:8px; padding:7px 10px; border-bottom:1px solid rgba(255,255,255,.035); font-size:11px; }
.vocab-word:last-child { border-bottom:0; }
.vocab-word b { color:#d8dfd8; }
.vocab-word span { color:#89978f; }
.settlement-students { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.settlement-student { padding:10px; border:1px solid var(--line); border-radius:11px; background:rgba(255,255,255,.02); }
.settlement-student.active { border-color:rgba(217,179,108,.55); box-shadow:0 0 18px rgba(217,179,108,.08); }
.settlement-student b,.settlement-student span { display:block; font-size:11px; }
.settlement-student span { margin-top:4px; color:#93a198; }
.mini-progress,.quest-hp { height:7px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.06); margin-top:8px; }
.mini-progress i,.quest-hp i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#6f9c70,#d9b36c); transition:width .35s ease; }
.settlement-question-card { padding:16px; border-radius:14px; border:1px solid rgba(217,179,108,.24); background:rgba(217,179,108,.045); }
.settlement-question-card h3 { margin:7px 0 12px; font-size:22px; }
.settlement-question-category { display:inline-block; margin-top:5px; padding:4px 7px; border-radius:999px; color:#95a69c; background:rgba(255,255,255,.04); font-size:10px; }
.quest-ready-card,.settlement-complete-card { display:grid; grid-template-columns:105px 1fr; gap:16px; align-items:center; padding:18px; border:1px solid rgba(217,179,108,.28); border-radius:16px; background:rgba(217,179,108,.05); }
.quest-goblin { display:grid; place-items:center; }
.quest-goblin img { width:90px; height:100px; object-fit:contain; filter:drop-shadow(0 10px 12px rgba(0,0,0,.45)); }
.quest-ready-card h3,.settlement-complete-card h3 { margin:4px 0 7px; }
.quest-ready-card p,.settlement-complete-card p { color:#9aa79f; font-size:12px; line-height:1.55; }
.vocab-quest-battle { display:grid; grid-template-columns:170px 1fr; gap:12px; align-items:stretch; }
.quest-enemy { display:grid; align-content:center; justify-items:center; padding:14px; border-radius:14px; border:1px solid rgba(159,91,65,.32); background:rgba(126,62,43,.08); text-align:center; }
.quest-enemy img { width:105px; height:116px; object-fit:contain; }
.quest-enemy b { margin-top:-5px; color:#e4d4bf; font-size:12px; }
.quest-enemy span { margin-top:5px; color:#d9a49a; font-size:11px; }
.quest-hp { width:100%; background:rgba(255,255,255,.07); }
.quest-hp i { background:linear-gradient(90deg,#854b3f,#d26e5a); }
.complete-seal { width:82px; height:82px; display:grid; place-items:center; border-radius:50%; font-size:40px; color:#d7e8c8; background:rgba(80,135,84,.15); border:1px solid rgba(108,173,109,.38); }
.dev-vocab { border-color:rgba(126,171,104,.25); }
@media(max-width:720px){ .vocab-groups,.settlement-students{grid-template-columns:1fr}.vocab-quest-battle{grid-template-columns:1fr}.quest-ready-card,.settlement-complete-card{grid-template-columns:1fr}.vocab-settlement-head{align-items:flex-start}.vocab-word{grid-template-columns:1fr} }

.story-quest-lock{display:grid;gap:4px;padding:12px 14px;border-radius:12px;background:rgba(173,112,59,.10);border:1px solid rgba(211,143,75,.30)}.story-quest-lock b{color:#e8c38e}.story-quest-lock span{color:#9f9a8e;font-size:11px;line-height:1.5}

/* GameDay 0.12.1 — dynamic curriculum order */
.city-learning-topic{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;padding:10px 12px;border-radius:11px;border:1px solid rgba(217,179,108,.24);background:rgba(217,179,108,.05)}
.city-learning-topic b{font-size:11px;color:#d9cba5}.city-learning-topic span{font-size:12px;font-weight:700;color:#dfe7dd}
.curriculum-mini{line-height:1.5}

/* GameDay 0.13.1 — story quest passability */
.story-quest-ready,.story-quest-done{display:grid;grid-template-columns:64px 1fr;gap:14px;align-items:flex-start;padding:16px;border-radius:16px;border:1px solid rgba(212,168,88,.30);background:linear-gradient(135deg,rgba(99,73,38,.20),rgba(36,71,47,.16))}.story-quest-ready-icon{width:58px;height:58px;border-radius:15px;display:grid;place-items:center;font-size:32px;background:rgba(214,177,99,.12);border:1px solid rgba(214,177,99,.25)}.story-quest-ready h3,.story-quest-done h3{margin:2px 0 7px}.story-quest-ready p,.story-quest-done p{color:#aeb7b1;line-height:1.55}.story-reward{margin:10px 0;padding:9px 11px;border-radius:10px;background:rgba(190,145,68,.10);color:#e6c98f}.caravan-screen{width:min(1760px,99vw)}.caravan-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:14px}.caravan-map-frame{position:relative;overflow:hidden;border-radius:18px;border:1px solid rgba(214,177,99,.28);background:#111;aspect-ratio:3/2}.caravan-map{display:block;width:100%;height:100%;object-fit:cover}.quest-fog{position:absolute;inset:0;width:100%;height:100%;z-index:20;pointer-events:none}.caravan-move-cell{position:absolute;z-index:32;transform:translate(-50%,-50%);width:30px;height:30px;border-radius:50%;border:2px solid #e7cc83;background:rgba(45,108,69,.78);box-shadow:0 0 0 6px rgba(68,159,96,.17),0 0 22px rgba(73,182,105,.6);cursor:pointer}.caravan-move-cell.spectator-move{pointer-events:none;opacity:.6}.caravan-party{position:absolute;z-index:35;transform:translate(-50%,-58%);display:flex;align-items:flex-end;gap:2px;pointer-events:none}.caravan-party .wagon{font-size:30px;filter:drop-shadow(0 3px 2px #000)}.caravan-party-sprites{display:flex;margin-left:-8px}.caravan-party-sprites img{width:34px;height:48px;object-fit:contain;margin-left:-14px;filter:drop-shadow(0 3px 2px rgba(0,0,0,.9))}.caravan-camp{position:absolute;z-index:25;transform:translate(-50%,-50%);display:grid;place-items:center;pointer-events:none}.caravan-camp>span{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:rgba(102,23,20,.88);border:1px solid rgba(255,162,111,.65);box-shadow:0 0 18px rgba(186,59,40,.45)}.caravan-camp small{margin-top:2px;padding:2px 5px;border-radius:7px;background:rgba(0,0,0,.7);font-size:9px}.caravan-camp.cleared>span{background:rgba(34,103,57,.9);border-color:#72ca87}.caravan-destination{position:absolute;z-index:28;transform:translate(-50%,-50%);display:grid;place-items:center;font-size:28px;pointer-events:none}.caravan-destination span{font-size:9px;background:rgba(0,0,0,.75);padding:2px 5px;border-radius:6px}.caravan-panel h2{margin:7px 0}.caravan-objectives{display:grid;gap:7px;margin:14px 0}.caravan-objectives span{padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}.quest-rule-note{margin-top:14px;padding:10px;border-radius:10px;background:rgba(75,115,91,.12);border:1px solid rgba(96,156,115,.22);font-size:11px;line-height:1.5;color:#a8b8ad}@media(max-width:980px){.caravan-layout{grid-template-columns:1fr}.caravan-panel{order:-1}}@media(max-width:720px){.story-quest-ready,.story-quest-done{grid-template-columns:1fr}.caravan-party-sprites img{width:26px;height:38px}.caravan-party .wagon{font-size:24px}}

/* 0.14 Grammar settlement */
.grammar-settlement .vocab-settlement-icon { font-size: 34px; }
.grammar-theory-card p { margin: 8px 0 12px; opacity: .88; line-height: 1.45; }
.grammar-example-list { display: grid; gap: 7px; }
.grammar-example { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); font-size: 13px; }

/* GameDay 0.15 — universal map catalog */
.map-catalog-screen{width:min(1500px,96vw)}
.catalog-intro{max-width:900px;color:#a8b3ac;line-height:1.6}
.catalog-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
.catalog-summary span{display:grid;gap:2px;padding:13px 14px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.025)}
.catalog-summary b{font-size:22px;color:#e0d2ac}.catalog-summary small{color:#89978f}
.catalog-filters{display:grid;gap:10px;margin:16px 0}.catalog-filters>div{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.catalog-filters b{width:70px;color:#aab5ae;font-size:11px}
.catalog-filters button{padding:7px 10px;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.025);color:#aab5ae;cursor:pointer}.catalog-filters button.active{border-color:rgba(217,179,108,.55);background:rgba(217,179,108,.12);color:#eadcb6}.catalog-filters button small{opacity:.6;margin-left:3px}
.catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}.catalog-card{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.02)}.catalog-card.ready{border-color:rgba(92,155,106,.38)}
.catalog-thumb{position:relative;aspect-ratio:3/2;background:#0d120f;overflow:hidden}.catalog-thumb img{width:100%;height:100%;display:block;object-fit:cover}.catalog-placeholder{width:100%;height:100%;display:grid;place-items:center;color:#718079;text-align:center;background:radial-gradient(circle at center,rgba(88,120,96,.14),transparent 60%)}.catalog-placeholder small{display:block;font-size:9px;opacity:.6}.catalog-status{position:absolute;right:7px;top:7px;padding:4px 7px;border-radius:999px;background:rgba(18,22,19,.84);border:1px solid rgba(255,255,255,.12);font-size:9px;color:#9ca8a1}.catalog-status.ready{color:#cbe4c3;border-color:rgba(96,169,101,.45);background:rgba(37,92,48,.82)}
.catalog-card-copy{display:grid;gap:3px;padding:10px 11px}.catalog-card-copy b{font-size:12px;color:#d9dfd8}.catalog-card-copy span{font-size:10px;color:#a0ada5}.catalog-card-copy small{font-size:9px;color:#68766f}.catalog-note{margin-top:15px;padding:11px 13px;border-radius:11px;border:1px solid rgba(217,179,108,.22);background:rgba(217,179,108,.055);color:#a9b3ad;font-size:11px;line-height:1.55}
@media(max-width:1100px){.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:780px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.catalog-grid{grid-template-columns:1fr}.catalog-filters b{width:100%}}

/* GameDay 0.16 — auto-calibrated Field battle maps */
.terrain-water { border-color: rgba(93, 168, 211, .9); background: rgba(17, 68, 96, .88); }
.catalog-terrain-counts { display:flex; flex-wrap:wrap; gap:5px; margin-top:6px; }
.catalog-terrain-counts span { padding:3px 6px; border-radius:8px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06); font-size:9px; color:#aeb8b1; }
.catalog-check { margin-top:6px; padding:7px 9px; border-radius:9px; border:1px solid rgba(217,179,108,.3); background:rgba(217,179,108,.08); color:#e2d4ae; cursor:pointer; font-size:10px; }
.catalog-check:hover { background:rgba(217,179,108,.14); }
.catalog-preview-backdrop { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:24px; background:rgba(4,7,5,.88); backdrop-filter:blur(8px); }
.catalog-preview { position:relative; width:min(1220px,96vw); max-height:94vh; overflow:auto; padding:18px; border-radius:18px; border:1px solid rgba(217,179,108,.28); background:#101512; box-shadow:0 30px 90px rgba(0,0,0,.65); }
.catalog-preview h3 { margin:4px 0 6px; }
.catalog-preview p { margin:0 42px 14px 0; color:#9eaaa3; font-size:11px; }
.catalog-preview-close { position:absolute; right:14px; top:12px; width:34px; height:34px; border-radius:50%; border:1px solid var(--line); background:#171d19; color:#ddd7c6; font-size:22px; cursor:pointer; z-index:5; }
.catalog-preview-map { position:relative; overflow:hidden; width:100%; aspect-ratio:4/3; border-radius:15px; border:1px solid rgba(255,255,255,.1); background:#090c0a; }
.catalog-preview-map>img { width:100%; height:100%; display:block; object-fit:cover; }
.catalog-preview-marker { z-index:6; min-width:30px; height:30px; grid-template-rows:16px 9px; font-size:12px; }
.catalog-preview-marker span { line-height:14px; }
.catalog-preview-marker small { font-size:6px; line-height:7px; color:#e8e7df; }
.catalog-preview-legend { margin-top:10px; margin-bottom:0; }


/* GameDay 0.17.1 — Quest Director */
.quest-map-name{display:block;margin:6px 0;color:#aab7ae}
.quest-director-panel h2{margin:7px 0 10px}
.quest-map-frame.setup-mode{outline:1px solid rgba(231,204,131,.25)}
.quest-setup-cell{position:absolute;z-index:30;transform:translate(-50%,-50%);width:22px;height:22px;border-radius:50%;border:1px solid rgba(231,204,131,.72);background:rgba(38,92,62,.36);box-shadow:0 0 0 3px rgba(68,159,96,.10);cursor:crosshair}
.quest-setup-cell:hover{background:rgba(65,153,94,.72);box-shadow:0 0 0 5px rgba(68,159,96,.18),0 0 16px rgba(73,182,105,.5)}
.quest-object-marker{position:absolute;z-index:36;transform:translate(-50%,-50%);display:grid;place-items:center;border:0;background:transparent;color:#fff;pointer-events:none}
.quest-object-marker>span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:rgba(74,38,26,.91);border:1px solid rgba(238,178,103,.70);box-shadow:0 0 16px rgba(0,0,0,.55);font-size:20px}
.quest-object-marker small{margin-top:2px;padding:2px 5px;border-radius:7px;background:rgba(0,0,0,.78);font-size:9px;white-space:nowrap}
.quest-object-marker.cleared>span{background:rgba(34,103,57,.92);border-color:#72ca87}
.quest-object-marker.removable{pointer-events:auto;cursor:pointer}.quest-object-marker.removable:hover>span{outline:3px solid rgba(220,93,76,.65)}
.quest-setup-panel{display:grid;gap:10px;margin-top:14px;padding:13px;border:1px solid rgba(214,177,99,.25);border-radius:13px;background:rgba(99,73,38,.13)}
.quest-setup-panel h3{margin:0}.quest-setup-panel p{margin:0;color:#aeb7b1;line-height:1.5}
.quest-setup-kind-row{display:flex;gap:7px;flex-wrap:wrap}.quest-setup-kind-row button{padding:8px 10px;border-radius:10px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:#d9dedb;cursor:pointer}.quest-setup-kind-row button.active{border-color:#d8bd77;background:rgba(216,189,119,.16);color:#f5ddb0}
.quest-setup-counts{display:flex;gap:8px;flex-wrap:wrap}.quest-setup-counts span{font-size:11px;padding:6px 8px;border-radius:8px;background:rgba(0,0,0,.22)}
.quest-wait-card,.quest-danger-note{display:block;margin-top:12px;padding:10px;border-radius:10px;background:rgba(112,78,43,.13);border:1px solid rgba(214,177,99,.20);color:#c8c2b2;line-height:1.45}
.quest-danger-note{background:rgba(145,61,48,.12);border-color:rgba(207,90,71,.25);color:#dfb1a6}
.quest-setup-wait-overlay{position:absolute;inset:0;z-index:50;background:rgba(7,10,8,.93);display:grid;place-content:center;text-align:center;gap:7px;padding:30px}.quest-setup-wait-overlay>div{font-size:42px}.quest-setup-wait-overlay b{font-size:20px}.quest-setup-wait-overlay span{color:#98a39d;max-width:420px}
.dev-quest-types button{max-width:240px;text-align:left}
.npc-escort-progress{margin:12px 0;padding:12px;border-radius:12px;background:rgba(70,111,83,.14);border:1px solid rgba(100,165,119,.25);display:grid;gap:8px}.npc-escort-progress>div:first-child{display:flex;justify-content:space-between;gap:12px}.npc-escort-progress small{color:#9faea5;line-height:1.45}

/* GameDay 0.18 · Potion shop + inventory */
.shop-access-card{display:flex;gap:14px;align-items:center;padding:14px;border:1px solid rgba(105,211,131,.28);background:linear-gradient(135deg,rgba(55,112,70,.18),rgba(26,36,31,.82));border-radius:16px;margin-bottom:14px}.shop-access-art{width:70px;height:70px;display:grid;place-items:center;background:rgba(0,0,0,.22);border-radius:14px;flex:0 0 auto}.shop-access-art img{max-width:58px;max-height:58px;object-fit:contain}.shop-access-card h3{margin:2px 0 5px}.shop-access-card p{font-size:12px;margin:0 0 9px;color:#aeb8b2}.shop-access-card button{padding:8px 12px}
.inventory-city-card{padding:13px;border:1px solid rgba(217,179,108,.22);background:rgba(15,21,18,.78);border-radius:15px;margin-bottom:14px}.inventory-city-card>div:first-child{display:flex;justify-content:space-between;gap:10px;align-items:center}.inventory-city-card small{color:#91a097;font-size:11px}.inventory-potion-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.inventory-potion-row button,.battle-potion-buttons button{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:7px;text-align:left;background:rgba(31,44,37,.85);border:1px solid rgba(217,179,108,.2);border-radius:10px;padding:7px;color:#e7eee9}.inventory-potion-row button:hover,.battle-potion-buttons button:hover{border-color:rgba(105,211,131,.55);background:rgba(43,64,52,.9)}.inventory-potion-row img,.battle-potion-buttons img{width:34px;height:34px;object-fit:contain}.inventory-potion-row span,.battle-potion-buttons span{font-size:11px;line-height:1.15}.inventory-potion-row b,.battle-potion-buttons b{font-size:11px;color:var(--gold)}
.potion-shop-modal{width:min(900px,96vw);max-height:92vh;overflow:auto;background:#111916;border:1px solid rgba(217,179,108,.4);border-radius:22px;padding:22px;position:relative;box-shadow:0 35px 100px rgba(0,0,0,.7)}.potion-shop-modal>.close{position:absolute;right:14px;top:12px;z-index:3;width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:rgba(0,0,0,.55);color:#fff;font-size:25px}.potion-shop-hero{position:relative;min-height:210px;border-radius:17px;overflow:hidden;display:flex;align-items:flex-end;padding:22px;margin-bottom:16px}.potion-shop-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,9,7,.94) 0%,rgba(5,9,7,.72) 48%,rgba(5,9,7,.2) 100%)}.potion-shop-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.potion-shop-hero>div{position:relative;z-index:1;max-width:540px}.potion-shop-hero h2{font-size:32px;margin:2px 0 6px}.potion-shop-hero p{color:#bac4be;margin:0 0 10px}.potion-shop-hero strong{color:var(--gold)}.potion-shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.potion-shop-item{display:grid;grid-template-columns:74px 1fr auto;gap:12px;align-items:center;background:rgba(24,34,29,.92);border:1px solid rgba(255,255,255,.08);border-radius:15px;padding:12px}.potion-shop-item>img{width:68px;height:68px;object-fit:contain;background:rgba(0,0,0,.2);border-radius:12px}.potion-shop-item h3{font-size:15px;margin:0 0 4px}.potion-shop-item p{font-size:12px;color:#aeb8b2;margin:0 0 4px}.potion-shop-item small{font-size:10px;color:#77857d}.potion-buy-box{display:grid;gap:7px;justify-items:center}.potion-buy-box b{color:var(--gold);white-space:nowrap}.potion-buy-box button{padding:7px 11px;background:#294a34;border:1px solid rgba(105,211,131,.4);color:#fff;border-radius:9px}.potion-buy-box button:disabled{opacity:.36}.shop-rule-note{margin-top:14px;padding:11px;border-radius:11px;background:rgba(217,179,108,.08);border:1px solid rgba(217,179,108,.18);font-size:12px;color:#c9d0cc}
.battle-potion-box{padding:12px;border-radius:14px;background:rgba(32,42,37,.85);border:1px solid rgba(92,181,116,.28);margin:10px 0}.battle-potion-box>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:10px}.battle-potion-box small{font-size:10px;color:#8e9d95}.battle-potion-buttons{display:grid;gap:6px;margin-top:8px}.battle-potion-buttons button{grid-template-columns:31px 1fr auto;padding:6px}.battle-potion-buttons img{width:29px;height:29px}.active-effects{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.active-effects span{font-size:10px;padding:5px 7px;border-radius:8px;background:rgba(98,184,117,.12);border:1px solid rgba(98,184,117,.2)}
.potion-question-modal>p{color:#aeb8b2;margin:0 0 15px}.potion-feedback-toast{position:fixed;z-index:180;left:50%;bottom:26px;transform:translateX(-50%);max-width:min(620px,92vw);background:#18251e;border:1px solid rgba(105,211,131,.4);box-shadow:0 18px 50px rgba(0,0,0,.55);padding:12px 18px;border-radius:13px;color:#eaf3ed;text-align:center;font-weight:700}
@media(max-width:760px){.potion-shop-grid{grid-template-columns:1fr}.potion-shop-item{grid-template-columns:58px 1fr auto}.potion-shop-item>img{width:54px;height:54px}.potion-shop-hero{min-height:180px}.potion-shop-hero h2{font-size:26px}.inventory-potion-row{grid-template-columns:1fr}}

/* GameDay 0.19 · Speaking + armor + potion capacity */
.speaking-settlement{--speaking:#78b8d7}.speaking-settlement .vocab-settlement-head{border-color:rgba(120,184,215,.3);background:linear-gradient(135deg,rgba(64,118,151,.13),rgba(62,111,76,.08))}.speaking-settlement .vocab-settlement-icon{background:rgba(71,139,178,.13);border-color:rgba(120,184,215,.3)}
.speaking-theory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.speaking-theory-card{display:grid;gap:5px;padding:12px;border-radius:12px;border:1px solid rgba(120,184,215,.2);background:rgba(54,91,112,.09)}.speaking-theory-card h4{margin:0 0 3px;color:#d6e7ef;font-size:13px}.speaking-theory-card>b{font-size:12px;color:#a8d1e6}.speaking-theory-card span{font-size:11px;color:#97a79f;line-height:1.4}.speaking-question-card{border-color:rgba(120,184,215,.28);background:rgba(65,117,145,.065)}
.teacher-speaking-hint{display:grid;gap:4px;margin:12px 0;padding:10px 12px;border-radius:10px;border:1px dashed rgba(217,179,108,.34);background:rgba(217,179,108,.065)}.teacher-speaking-hint b{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#d9c797}.teacher-speaking-hint span{font-size:11px;line-height:1.5;color:#b8c2bc}.teacher-review-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.teacher-review-buttons button{flex:1;min-width:150px}.speaking-ally-icon{font-size:54px;min-height:95px;align-content:center}.speaking-battle-review{display:grid;gap:8px;margin-top:12px}
.armor-access-card{border-color:rgba(120,184,215,.28);background:linear-gradient(135deg,rgba(52,89,111,.2),rgba(26,36,31,.82))}.armor-shop-modal{border-color:rgba(120,184,215,.38)}.armor-shop-hero{background:radial-gradient(circle at 78% 50%,rgba(119,166,193,.22),transparent 45%),linear-gradient(135deg,#1a2529,#111816)}.armor-shop-hero:after{background:linear-gradient(90deg,rgba(5,9,9,.97) 0%,rgba(5,9,9,.8) 56%,rgba(5,9,9,.16) 100%)}.armor-shop-hero>img{left:auto;right:5%;top:7%;width:38%;height:86%;object-fit:contain;opacity:.82;filter:drop-shadow(0 18px 22px rgba(0,0,0,.65))}.armor-shop-item.equipped{border-color:rgba(105,211,131,.48);box-shadow:0 0 0 1px rgba(105,211,131,.08) inset}.armor-shop-item>img{object-fit:contain}.equipped-button{background:rgba(62,119,79,.55)!important;border-color:rgba(105,211,131,.65)!important;color:#dff0e4!important}.quest-rule-note{margin-top:10px;padding:9px 10px;border-radius:10px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.065);color:#aeb8b1;font-size:11px;line-height:1.45}
@media(max-width:760px){.speaking-theory-grid{grid-template-columns:1fr}.teacher-review-buttons{display:grid;grid-template-columns:1fr}.teacher-review-buttons button{min-width:0}.armor-shop-hero>img{opacity:.35;width:55%;right:-4%}}

/* GameDay 0.20 · Reading + weapon shop + encounter continuation */
.reading-settlement{--reading:#caa66d}.reading-settlement .vocab-settlement-head{border-color:rgba(202,166,109,.34);background:linear-gradient(135deg,rgba(135,94,47,.14),rgba(62,111,76,.08))}.reading-settlement .vocab-settlement-icon{background:rgba(202,166,109,.13);border-color:rgba(202,166,109,.32)}
.reading-theory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.reading-theory-card{padding:12px;border-radius:12px;border:1px solid rgba(202,166,109,.22);background:rgba(112,79,40,.08)}.reading-theory-card h4{margin:0 0 5px;color:#ead9b8;font-size:13px}.reading-theory-card p{margin:0;color:#9faaa4;font-size:11px;line-height:1.45}.reading-question-card{border-color:rgba(202,166,109,.30);background:rgba(116,83,43,.07)}.reading-question-card h3,.online-question-prompt{white-space:pre-line;line-height:1.55}.reading-book-icon,.reading-scroll>span:first-child{font-size:48px}.reading-scroll{min-height:180px}.reading-scroll>span:first-child{margin-bottom:8px}.reading-check .quest-hp i{background:linear-gradient(90deg,#8b6d41,#d4b16e)}
.weapon-access-card{border-color:rgba(222,168,91,.32);background:linear-gradient(135deg,rgba(112,75,35,.20),rgba(26,36,31,.82))}.weapon-shop-modal{width:min(1040px,96vw);border-color:rgba(222,168,91,.42)}.weapon-shop-hero{background:radial-gradient(circle at 78% 50%,rgba(217,179,108,.20),transparent 45%),linear-gradient(135deg,#282018,#111816)}.weapon-shop-hero:after{background:linear-gradient(90deg,rgba(8,8,6,.97) 0%,rgba(8,8,6,.78) 58%,rgba(8,8,6,.12) 100%)}.weapon-shop-hero>img{left:auto;right:5%;top:6%;width:40%;height:88%;object-fit:contain;filter:drop-shadow(0 18px 24px rgba(0,0,0,.7));opacity:.85}
.weapon-shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.weapon-shop-item{display:grid;grid-template-columns:84px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px;border-radius:15px;border:1px solid rgba(255,255,255,.08);background:rgba(31,29,24,.9)}.weapon-shop-item.equipped{border-color:rgba(217,179,108,.5);box-shadow:0 0 0 1px rgba(217,179,108,.08) inset}.weapon-shop-item>img{width:78px;height:78px;object-fit:contain;background:rgba(0,0,0,.22);border-radius:12px}.weapon-shop-info h3{margin:0 0 4px;font-size:15px}.weapon-shop-info p{margin:0 0 8px;color:#aeb8b2;font-size:11px}.weapon-level-stats{display:grid;gap:3px}.weapon-level-stats span{font-size:10px;color:#89978f}.weapon-level-stats b{color:#d9c99e}.weapon-owned-levels{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.weapon-owned-levels button,.weapon-owned-levels>span{font-size:9px;padding:5px 7px;border-radius:8px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);color:#aeb8b2}.weapon-owned-levels button{cursor:pointer;color:#e6ece8}.weapon-owned-levels button:hover{border-color:rgba(217,179,108,.45)}
@media(max-width:800px){.reading-theory-grid,.weapon-shop-grid{grid-template-columns:1fr}.weapon-shop-item{grid-template-columns:64px minmax(0,1fr) auto}.weapon-shop-item>img{width:58px;height:58px}.weapon-shop-hero>img{width:55%;right:-5%;opacity:.38}}

/* GameDay 0.21 · Sentence Building / Writing + modifiers */
.sentence-settlement .vocab-settlement-icon{font-size:42px}
.writing-response{width:100%;resize:vertical;min-height:180px;margin:14px 0;padding:14px 16px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(5,10,8,.78);color:inherit;font:inherit;line-height:1.55;box-sizing:border-box}
.writing-response:focus{outline:2px solid rgba(255,255,255,.2);outline-offset:2px}
.writing-submission-text{white-space:pre-wrap;line-height:1.6;padding:16px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);margin:12px 0 16px}
.modifier-access-icon{font-size:44px;display:grid;place-items:center}
.modifier-shop-hero,.modifier-big-icon{font-size:52px;display:grid;place-items:center;min-width:82px}
.modifier-shop-item .modifier-big-icon{min-height:92px;border-radius:16px;background:rgba(255,255,255,.055)}
.modifier-equipped-row{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 16px}
.modifier-shop-grid .weapon-shop-item{align-items:stretch}
@media(max-width:720px){.modifier-shop-hero,.modifier-big-icon{font-size:38px;min-width:58px}.writing-response{min-height:150px}}

/* GameDay 0.21.1 — parallel Final RPG Writing Quest */
.writing-review-list{display:grid;gap:14px;margin-top:16px}
.writing-review-card{padding:16px;border-radius:16px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.1)}
.writing-review-card.submitted{border-color:rgba(255,255,255,.22)}
.writing-review-card.approved{opacity:.82}
.writing-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.writing-review-head h3{margin:3px 0 0}
.writing-status-pill{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:800;background:rgba(255,255,255,.08);white-space:nowrap}
.writing-status{display:grid;gap:6px;margin:14px 0;padding:13px 15px;border-radius:14px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.1)}
.writing-status span{opacity:.78;line-height:1.45}
@media(max-width:720px){.writing-review-head{flex-direction:column}.writing-status-pill{white-space:normal}}

/* GameDay 0.22 — Module Boss / Final Control + module arrival */
.module-boss-ready-card{display:grid;grid-template-columns:64px 1fr;gap:14px;align-items:center;margin:12px 0 16px;padding:15px;border-radius:16px;border:1px solid rgba(207,117,85,.35);background:linear-gradient(135deg,rgba(111,47,36,.22),rgba(45,31,25,.68))}.module-boss-ready-icon{font-size:40px;width:64px;height:64px;display:grid;place-items:center;border-radius:14px;background:rgba(0,0,0,.24)}.module-boss-ready-card h3{margin:3px 0 5px}.module-boss-ready-card p{margin:0 0 10px;color:#aeb8b2;font-size:12px;line-height:1.45}.module-boss-ready-card small{color:#b6a99c}
.module-boss-screen{max-width:1240px;margin:0 auto}.boss-toolbar{border-color:rgba(195,84,68,.25)}.module-boss-hero{display:grid;grid-template-columns:220px 1fr;gap:24px;align-items:center;padding:25px;margin:12px 0 15px;border:1px solid rgba(196,87,68,.28);border-radius:22px;background:radial-gradient(circle at 14% 42%,rgba(168,56,43,.2),transparent 35%),linear-gradient(135deg,rgba(54,27,24,.94),rgba(17,24,20,.96));overflow:hidden}.boss-avatar{width:180px;height:180px;display:grid;place-items:center;position:relative;margin:auto;border-radius:50%;background:radial-gradient(circle,rgba(181,72,49,.34),rgba(52,24,21,.5) 58%,rgba(0,0,0,.1));border:1px solid rgba(219,119,86,.3);font-size:54px;box-shadow:0 0 50px rgba(155,48,35,.2)}.boss-avatar>span{position:absolute;font-size:94px;filter:drop-shadow(0 12px 18px rgba(0,0,0,.48))}.boss-avatar.defeated{filter:grayscale(.8);opacity:.68;transform:rotate(-5deg)}.boss-health-area h1{font-size:34px;margin:4px 0 6px}.boss-health-area>p{color:#aeb7b1;line-height:1.55;max-width:720px}.boss-hp-label{display:flex;justify-content:space-between;gap:14px;margin-top:18px}.boss-hp-label strong{color:#efb0a0}.boss-hp-track{height:18px;margin-top:7px;border-radius:999px;overflow:hidden;background:rgba(0,0,0,.4);border:1px solid rgba(255,255,255,.08)}.boss-hp-track i{height:100%;display:block;background:linear-gradient(90deg,#843629,#d4674f);transition:width .35s ease}.boss-progress-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:14px}.boss-student-card{display:grid;grid-template-columns:48px 1fr;gap:9px;align-items:center;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(18,27,22,.85)}.boss-student-card.complete{border-color:rgba(91,188,112,.37);background:rgba(54,104,67,.16)}.boss-student-card img{width:45px;height:45px;object-fit:contain}.boss-student-card div{display:grid;gap:2px}.boss-student-card span,.boss-student-card small{font-size:10px;color:#92a097}.boss-student-card.complete span{color:#8fcca0}
.boss-task-panel,.boss-teacher-panel,.boss-victory-card{padding:20px;border-radius:19px;border:1px solid rgba(255,255,255,.09);background:rgba(15,22,18,.9);margin:14px 0}.boss-task-head,.boss-teacher-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:13px}.boss-task-head h2,.boss-teacher-head h2{margin:3px 0 0}.boss-personal-progress,.boss-teacher-head>span{padding:7px 10px;border-radius:999px;background:rgba(91,188,112,.12);border:1px solid rgba(91,188,112,.22);font-size:11px;color:#b9dfc2}.boss-question-card{padding:18px;border-radius:16px;border:1px solid rgba(217,179,108,.18);background:rgba(30,32,26,.72)}.boss-question-card h3{white-space:pre-line;line-height:1.55;margin:9px 0 15px;font-size:18px}.boss-kind-pill{display:inline-flex;padding:5px 8px;border-radius:999px;background:rgba(217,179,108,.1);border:1px solid rgba(217,179,108,.19);color:#d9c38b;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.boss-answer-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.boss-answer-options button{padding:12px 13px;border-radius:11px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.045);color:#e3e8e5;text-align:left;cursor:pointer}.boss-answer-options button:hover{border-color:rgba(217,179,108,.45);background:rgba(217,179,108,.08)}.boss-text-answer{display:flex;gap:8px}.boss-text-answer input{flex:1;min-width:0;padding:11px 12px;border:1px solid rgba(255,255,255,.13);border-radius:10px;background:rgba(0,0,0,.25);color:#fff}.boss-feedback{padding:9px 11px;border-radius:10px;margin:8px 0 12px;font-size:11px}.boss-feedback.bad{background:rgba(172,67,52,.12);border:1px solid rgba(200,84,65,.22);color:#dda99e}.boss-feedback.good{background:rgba(64,137,82,.13);border:1px solid rgba(82,176,103,.22);color:#a8d4b3}.boss-speaking-submit{padding:12px;border-radius:12px;background:rgba(78,113,137,.09);border:1px solid rgba(112,174,209,.18)}.boss-speaking-submit p{margin:0 0 10px;color:#aeb8b2;font-size:12px}.boss-writing-response{min-height:220px}.boss-empty-review{padding:18px;border-radius:14px;background:rgba(255,255,255,.035);color:#909e96;text-align:center}.boss-review-list{display:grid;gap:10px}.boss-review-card{padding:15px;border-radius:15px;border:1px solid rgba(255,255,255,.09);background:rgba(23,31,27,.8)}.boss-review-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.boss-review-card-head h3{margin:6px 0 0}.boss-review-card-head small{color:#839087}.boss-review-prompt{white-space:pre-line;color:#abb5af;font-size:12px;line-height:1.5}.boss-review-response{white-space:pre-wrap;padding:13px;border-radius:11px;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.2);line-height:1.55;color:#dde4df}.boss-victory-card{text-align:center;padding:34px 22px;border-color:rgba(102,195,125,.3);background:radial-gradient(circle at 50% 15%,rgba(89,175,110,.16),transparent 42%),rgba(14,25,18,.92)}.boss-victory-card>div{font-size:66px}.boss-victory-card h2{font-size:31px;margin:8px 0}.boss-victory-card p{max-width:620px;margin:0 auto 18px;color:#abb7b0;line-height:1.55}.boss-transition-button{padding:13px 20px;font-size:14px}.boss-dev-wrap{margin-top:14px}.dev-boss-tools{border-color:rgba(198,83,65,.22)!important}
.module-arrival-screen{max-width:1160px;margin:0 auto}.arrival-toolbar{border-color:rgba(103,151,190,.23)}.arrival-hero-card{display:grid;grid-template-columns:120px 1fr;align-items:center;gap:20px;margin:15px 0;padding:25px;border-radius:20px;border:1px solid rgba(102,156,193,.25);background:radial-gradient(circle at 10% 50%,rgba(79,137,177,.2),transparent 36%),rgba(16,25,26,.92)}.arrival-compass{font-size:70px;text-align:center}.arrival-hero-card h1{font-size:32px;margin:4px 0 7px}.arrival-hero-card p{margin:0;color:#aeb8b2;line-height:1.55}.arrival-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.arrival-rule-card{display:grid;grid-template-columns:44px 1fr;gap:9px;padding:14px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(19,28,24,.86)}.arrival-rule-card>span{font-size:29px}.arrival-rule-card b{display:block;margin-bottom:4px}.arrival-rule-card p{font-size:11px;line-height:1.45;color:#96a39b;margin:0}.arrival-map-placeholder{min-height:300px;position:relative;overflow:hidden;display:grid;place-items:center;margin:14px 0;border-radius:20px;border:1px dashed rgba(114,166,198,.3);background:linear-gradient(135deg,rgba(21,37,38,.95),rgba(15,23,20,.95));background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:32px 32px}.arrival-map-placeholder:after{content:"";position:absolute;left:0;bottom:18%;width:55%;height:14px;background:rgba(173,145,96,.19);border-top:1px dashed rgba(214,183,125,.36);border-bottom:1px dashed rgba(214,183,125,.36);transform:rotate(-8deg)}.arrival-road-mark{position:absolute;z-index:2;left:16px;bottom:24%;font-size:9px;letter-spacing:.12em;padding:5px 7px;border-radius:7px;background:rgba(0,0,0,.5);color:#c8b58e}.arrival-map-copy{position:relative;z-index:3;max-width:620px;text-align:center;padding:28px}.arrival-map-copy>span{font-size:56px}.arrival-map-copy h2{margin:8px 0}.arrival-map-copy p{color:#9ba8a0;line-height:1.55}.arrival-player-strip{margin-top:14px}.arrival-state-note{margin-top:12px;padding:11px 13px;border-radius:11px;background:rgba(79,137,177,.08);border:1px solid rgba(79,137,177,.16);font-size:11px;color:#9ca9a2;text-align:center}
@media(max-width:850px){.module-boss-hero{grid-template-columns:1fr;text-align:center}.boss-progress-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.boss-hp-label{text-align:left}.arrival-rule-grid{grid-template-columns:1fr}.arrival-hero-card{grid-template-columns:1fr;text-align:center}.boss-answer-options{grid-template-columns:1fr}}
@media(max-width:560px){.boss-progress-grid{grid-template-columns:1fr}.boss-task-head,.boss-teacher-head{flex-direction:column}.module-boss-ready-card{grid-template-columns:1fr}.boss-text-answer{display:grid}.module-boss-hero{padding:17px}.boss-avatar{width:140px;height:140px}.boss-avatar>span{font-size:76px}}
/* 0.23.2: real inter-module global map arrival */
.arrival-real-map{position:relative;overflow:hidden;margin:14px 0;border-radius:20px;border:1px solid rgba(114,166,198,.3);background:#111}.arrival-real-map .global-map{display:block;width:100%;height:auto}.arrival-real-map .arrival-road-mark{left:auto;bottom:auto;transform:translate(-50%,-50%);background:rgba(12,18,17,.82);border:1px solid rgba(214,183,125,.55);color:#f2d49c;font-weight:800;box-shadow:0 0 0 5px rgba(214,183,125,.12)}.arrival-next-module-note{display:flex;gap:8px;flex-direction:column;margin-top:12px;padding:14px 16px;border-radius:12px;border:1px solid rgba(118,164,196,.22);background:rgba(48,82,104,.1);color:#aebbb4}.arrival-next-module-note b{color:#e8f0ec}.arrival-next-module-note span{font-size:12px;line-height:1.5}

/* GameDay 0.23.4 — Snow terrain + always-available teacher map jump */
.terrain-ice {
  border-color: rgba(105, 207, 238, .95);
  background: rgba(73, 157, 190, .72);
  box-shadow: 0 0 0 3px rgba(120, 220, 245, .12), 0 0 16px rgba(104, 209, 239, .25);
}
.teacher-quick-map-jump {
  position: fixed;
  right: 18px;
  top: 72px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(226, 194, 104, .42);
  border-radius: 12px;
  background: rgba(12, 18, 16, .96);
  box-shadow: 0 16px 45px rgba(0,0,0,.38);
  color: #d9d5c6;
  font-size: 11px;
}
.teacher-quick-map-jump span { white-space: nowrap; }
.teacher-quick-map-jump button,
.teacher-quick-map-jump select {
  min-height: 32px;
  border: 1px solid rgba(226, 194, 104, .3);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  color: #eee4c8;
  padding: 6px 9px;
  font: inherit;
}
.teacher-quick-map-jump button { cursor: pointer; font-weight: 800; }
.teacher-quick-map-jump button:disabled { opacity: .45; cursor: default; }
.teacher-quick-map-jump select { cursor: pointer; }
.teacher-quick-map-jump option { background: #141b18; color: #eee4c8; }
@media (max-width: 760px) {
  .teacher-quick-map-jump { left: 10px; right: 10px; top: auto; bottom: 10px; justify-content: space-between; flex-wrap: wrap; }
}

/* GameDay 0.24 · enemy special targeting */
.goblin-unit.support-target { box-shadow: 0 0 0 3px rgba(78, 220, 146, .9), 0 0 24px rgba(78, 220, 146, .55); }
.goblin-unit.revivable-enemy { opacity: .48; filter: grayscale(.55); box-shadow: 0 0 0 3px rgba(174, 114, 255, .75); }
.goblin-unit.revivable-enemy.selected-enemy { opacity: .78; filter: grayscale(.15); box-shadow: 0 0 0 4px rgba(201, 153, 255, 1), 0 0 28px rgba(174, 114, 255, .7); }
.enemy-special-box { display:flex; flex-direction:column; gap:7px; padding:10px 12px; margin:8px 0 10px; border:1px solid rgba(255,255,255,.14); border-radius:12px; background:rgba(255,255,255,.045); }
.enemy-special-box small { opacity:.78; line-height:1.35; }


/* GameDay 0.25.1 — stable lobby/rejoin */
.modifier-shop-modal{width:min(1040px,96vw);max-height:92vh;overflow-y:auto;overscroll-behavior:contain;border-color:rgba(190,150,235,.38);background:#111916;border-radius:22px;padding:22px;position:relative;box-shadow:0 35px 100px rgba(0,0,0,.7)}
.modifier-shop-modal .shop-header{position:relative;padding-right:44px}
.modifier-shop-grid{padding-bottom:8px}
.teacher-rejoin-box{display:grid;gap:7px;margin-top:14px;padding-top:13px;border-top:1px solid rgba(255,255,255,.08)}
.teacher-rejoin-box>span{font-size:11px;color:#aeb8b2;font-weight:700}.teacher-rejoin-box label{font-size:10px;color:#819087}

/* 0.26.1: room grade selection */
.grade-select-card { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:16px 0; padding:16px 18px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.025); }
.grade-select-card > div { display:grid; gap:3px; }
.grade-select-card span { font-size:10px; letter-spacing:.14em; color:#9da9a1; font-weight:800; }
.grade-select-card strong { color:#efd58c; font-size:22px; }
.grade-select-card small { color:#8f9c94; }
.grade-select { min-width:150px; padding:11px 38px 11px 12px; border-radius:10px; border:1px solid var(--line); background:#101713; color:#edf3ef; font:inherit; font-weight:800; }
.grade-locked { letter-spacing:0 !important; font-size:12px !important; color:#8f9c94 !important; }
@media (max-width:650px){ .grade-select-card{align-items:stretch;flex-direction:column}.grade-select{width:100%} }

/* GameDay 0.27.1 — student account, Solo AI Director, theory library */
.top-theory-button{border:1px solid rgba(217,179,108,.28);border-radius:999px;padding:7px 11px;background:rgba(217,179,108,.07);color:#ead6a0;font-size:12px;font-weight:800;cursor:pointer}.top-theory-button:hover{background:rgba(217,179,108,.13)}
.solo-top-badge{border-color:rgba(86,177,136,.35)!important;background:rgba(70,155,116,.1)!important;color:#a7d4b8!important;font-weight:900}
.auth-screen{width:min(1180px,92vw);min-height:calc(100vh - 70px);margin:auto;display:grid;grid-template-columns:1fr minmax(360px,470px);align-items:center;gap:70px;padding:55px 0}.auth-intro h1{font-size:clamp(46px,6vw,78px);margin:14px 0 22px}.auth-intro>p{max-width:650px;color:#aeb9b2;font-size:17px;line-height:1.65}.auth-feature-row{display:flex;gap:9px;flex-wrap:wrap;margin-top:24px}.auth-feature-row span{padding:8px 11px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.025);color:#c8d0cb;font-size:12px}.auth-card{width:100%;margin:0;padding:28px}.auth-card h2{font-size:35px;margin:18px 0 24px}.auth-card label{display:block;margin:13px 0 6px;color:#98a59d;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.auth-card .name-input{width:100%;font-family:inherit;font-size:15px;font-weight:600;padding:12px 13px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(0,0,0,.2)}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;border-radius:12px;background:rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.06)}.auth-tabs button{padding:9px;border:0;border-radius:8px;background:transparent;color:#89958e;font-weight:800}.auth-tabs button.active{background:rgba(217,179,108,.13);color:#efd99f}.auth-submit{margin-top:20px}.auth-error{margin-top:13px}.test-account-hint{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:16px;padding:12px 13px;border-radius:12px;border:1px dashed rgba(217,179,108,.29);background:rgba(217,179,108,.04);color:#aeb8b2;font-size:12px}.test-account-hint b{width:100%;color:#dcc78e}.test-account-hint code{padding:4px 7px;border-radius:6px;background:#0b1210;color:#f1dda5}.test-account-hint small{width:100%;color:#7f8d85}.teacher-entry{margin-top:20px;padding-top:18px;border-top:1px solid rgba(255,255,255,.07);display:grid;gap:9px}.teacher-entry span{font-size:11px;color:#849188}
.student-dashboard{width:min(1180px,92vw);margin:34px auto 70px}.student-dashboard-head{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:24px;padding:8px 4px}.student-dashboard-head h1{font-size:clamp(42px,5vw,64px);margin:9px 0 10px}.student-dashboard-head p{color:#8f9c95;margin:0}.student-avatar{width:120px;height:120px;position:relative;display:grid;place-items:center;border-radius:24px;border:1px solid var(--line);background:radial-gradient(circle,#33483b,#101814)}.student-avatar img{max-width:78%;max-height:88%;object-fit:contain}.student-avatar span{position:absolute;right:-7px;bottom:-7px;padding:5px 8px;border-radius:999px;background:#342a17;border:1px solid rgba(225,190,99,.45);font-size:10px;font-weight:900}.student-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.dashboard-card{min-height:245px;padding:23px;border-radius:19px;border:1px solid var(--line);background:linear-gradient(145deg,rgba(22,32,28,.96),rgba(13,20,18,.96));display:grid;grid-template-columns:52px 1fr;gap:14px;align-content:start}.dashboard-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:14px;background:rgba(217,179,108,.08);border:1px solid rgba(217,179,108,.16);font-size:24px}.dashboard-card h2{font-size:28px;margin:4px 0 8px}.dashboard-card p{margin:0;color:#9aa69f;line-height:1.5;font-size:13px}.dashboard-card small{display:block;margin-top:8px;color:#718078}.dashboard-label{font-size:10px;font-weight:900;letter-spacing:.13em;color:#c9ad6a}.dashboard-card>.grade-select,.dashboard-card>button{grid-column:1/-1;margin-top:auto}.student-grade-select{width:100%;max-width:none}.save-card{border-color:rgba(217,179,108,.31);background:radial-gradient(circle at 15% 5%,rgba(217,179,108,.1),transparent 36%),linear-gradient(145deg,#18221e,#0d1512)}.theory-card{border-color:rgba(103,151,190,.26)}.online-link-card{border-color:rgba(110,150,115,.23)}.test-solo-note{margin-top:14px;padding:15px 18px;border-radius:14px;border:1px dashed rgba(217,179,108,.32);background:rgba(217,179,108,.04);display:flex;gap:11px;align-items:center;color:#9eaaa3;font-size:12px}.test-solo-note b{color:#e1cb94;white-space:nowrap}.dashboard-footer{display:flex;align-items:center;justify-content:space-between;margin-top:18px}.ghost-link{border:0;background:transparent;color:#8e9c94;text-decoration:underline;text-underline-offset:4px}.ai-director-chip{border-color:rgba(84,184,140,.3)!important;background:rgba(59,146,108,.08)!important}.ai-director-chip b{color:#b8dcc5!important}.solo-speaking-action{display:grid;gap:10px;margin-top:10px}.solo-mode{border-color:rgba(91,175,134,.28)!important}
.theory-library-backdrop,.theory-reader-backdrop{z-index:900}.theory-library-modal,.theory-reader-modal{position:relative;width:min(1050px,96vw);max-height:92vh;overflow:auto;border:1px solid rgba(217,179,108,.34);border-radius:23px;background:linear-gradient(165deg,#16201c,#0c1311);box-shadow:0 35px 110px rgba(0,0,0,.7);padding:28px}.theory-close{position:absolute;right:17px;top:13px;width:36px;height:36px;border:1px solid rgba(255,255,255,.09);border-radius:999px;background:rgba(0,0,0,.22);color:#a7b1ab;font-size:25px;line-height:1}.theory-library-modal>h2{font-size:39px;margin:8px 0}.theory-library-modal>p{color:#9ca8a1;max-width:760px;line-height:1.55}.theory-library-modules{display:grid;gap:13px;margin-top:20px}.theory-library-module{padding:17px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.025)}.theory-library-module>div:first-child{display:grid;gap:3px;margin-bottom:12px}.theory-library-module>div:first-child span{font-size:9px;letter-spacing:.13em;color:#b99e60}.theory-library-module>div:first-child b{font-family:Georgia,serif;font-size:20px}.theory-library-lessons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.theory-library-lessons button,.theory-locked{min-height:88px;padding:10px;border-radius:11px;border:1px solid rgba(255,255,255,.08);background:rgba(18,28,24,.86);color:#e4e8e5;display:grid;justify-items:start;align-content:center;gap:3px;text-align:left}.theory-library-lessons button:hover{border-color:rgba(217,179,108,.4);background:rgba(217,179,108,.07)}.theory-library-lessons button>span,.theory-locked>span{font-size:20px}.theory-library-lessons button>b,.theory-locked>b{font-size:11px}.theory-library-lessons button>small{color:#88b49a}.theory-locked{opacity:.38}.theory-locked small{color:#7d8881}.theory-empty-library{margin-top:20px;padding:24px;border-radius:15px;border:1px dashed rgba(255,255,255,.12);display:grid;gap:6px;color:#8d9992}.theory-empty-library b{color:#d8ded9}.theory-reader-modal{width:min(980px,96vw);overflow:hidden;padding:0}.theory-reader-head{padding:27px 70px 18px 27px;border-bottom:1px solid rgba(255,255,255,.07);display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.theory-reader-head h2{font-size:37px;margin:7px 0 5px}.theory-reader-head p{margin:0;color:#8f9c95}.theory-summary{max-width:330px;padding:9px 11px;border-radius:10px;background:rgba(217,179,108,.07);border:1px solid rgba(217,179,108,.13);color:#c9b783;font-size:11px;line-height:1.4}.theory-reader-scroll{max-height:64vh;overflow:auto;padding:22px 27px}.theory-block-list,.theory-vocab-grid{display:grid;gap:11px}.theory-vocab-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theory-block{padding:17px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.025)}.theory-block h3{font-size:20px;margin:0 0 9px}.theory-block p{margin:0;color:#b3bdb7;line-height:1.65;white-space:pre-line}.theory-question{margin:4px 0 11px;padding:9px 11px;border-radius:9px;background:rgba(76,124,153,.09);color:#c5d5df;font-weight:700;white-space:pre-line}.theory-examples{display:grid;gap:6px;margin-top:11px}.theory-examples span{padding:7px 9px;border-radius:8px;background:rgba(0,0,0,.18);color:#d5ddd8;font-size:12px;white-space:pre-line}.theory-word-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.theory-word{padding:8px 9px;border-radius:8px;background:rgba(0,0,0,.18);display:grid;gap:2px}.theory-word b{font-size:13px;color:#f1e1b9}.theory-word span{font-size:11px;color:#97a49c}.theory-reader-footer{padding:14px 27px 20px;border-top:1px solid rgba(255,255,255,.07);display:flex;align-items:center;justify-content:space-between;gap:16px}.theory-reader-footer small{color:#7f8c84;line-height:1.4}
@media(max-width:850px){.auth-screen{grid-template-columns:1fr;gap:24px;padding:30px 0}.auth-intro h1{font-size:48px}.student-dashboard-grid{grid-template-columns:1fr}.student-dashboard-head{align-items:flex-start}.theory-library-lessons{grid-template-columns:repeat(2,minmax(0,1fr))}.theory-reader-head{display:grid}.theory-summary{max-width:none}.theory-vocab-grid{grid-template-columns:1fr}}
@media(max-width:560px){.student-avatar{width:86px;height:86px}.student-dashboard-head h1{font-size:38px}.test-solo-note{align-items:flex-start;flex-direction:column}.dashboard-footer{align-items:stretch;flex-direction:column;gap:10px}.theory-library-lessons{grid-template-columns:1fr}.theory-reader-footer{align-items:stretch;flex-direction:column}.theory-reader-footer button{width:100%}.theory-word-grid{grid-template-columns:1fr}.top-theory-button{padding:6px 8px;font-size:10px}}

/* GameDay 0.27.2 — lightweight battle feedback. No extra image assets: the
   existing sprites animate when authoritative server state changes. */
.battle-unit.battle-fx-strike img { animation: battle-strike .42s cubic-bezier(.2,.8,.25,1); }
.battle-unit.battle-fx-hit img { animation: battle-hit .52s ease-out; }
.battle-unit.battle-fx-heal img { animation: battle-heal .65s ease-out; }
.battle-unit.battle-fx-special img { animation: battle-special .7s ease-out; }
.battle-unit.battle-fx-revive img { animation: battle-revive .75s ease-out; }
.battle-unit.battle-fx-move img { animation: battle-hop .42s ease-out; }
.battle-fx-number,
.battle-fx-symbol {
  position: absolute;
  z-index: 30;
  left: 50%;
  top: -22px;
  transform: translateX(-50%);
  pointer-events: none;
  font-style: normal;
  font-weight: 900;
  font-size: clamp(17px, 1.6vw, 24px);
  color: #ffb0a3;
  text-shadow: 0 2px 8px rgba(0,0,0,.9);
  animation: battle-float-number .76s ease-out forwards;
}
.battle-fx-number.positive { color: #bff5b5; }
.battle-fx-symbol { top: -42px; font-size: clamp(22px, 2vw, 30px); }

@keyframes battle-strike {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-8px) scale(1.13) rotate(-3deg); }
  70% { transform: translateY(2px) scale(.97) rotate(2deg); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes battle-hit {
  0% { transform: translateX(0) scale(1); filter: brightness(1); }
  18% { transform: translateX(-7px) scale(.96); filter: brightness(1.7); }
  38% { transform: translateX(7px) scale(.96); }
  58% { transform: translateX(-4px); }
  78% { transform: translateX(3px); }
  100% { transform: translateX(0) scale(1); filter: brightness(1); }
}
@keyframes battle-heal {
  0% { transform: scale(1); filter: brightness(1); }
  45% { transform: scale(1.12); filter: brightness(1.45); }
  100% { transform: scale(1); filter: brightness(1); }
}
@keyframes battle-special {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.12) rotate(-4deg); filter: brightness(1.45); }
  70% { transform: scale(1.06) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
}
@keyframes battle-revive {
  0% { transform: translateY(10px) scale(.65); opacity: .25; filter: brightness(2); }
  55% { transform: translateY(-5px) scale(1.13); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; filter: brightness(1); }
}
@keyframes battle-hop {
  0% { transform: translateY(0); }
  45% { transform: translateY(-7px) scale(1.05); }
  100% { transform: translateY(0); }
}
@keyframes battle-float-number {
  0% { opacity: 0; transform: translate(-50%,8px) scale(.8); }
  18% { opacity: 1; transform: translate(-50%,0) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%,-28px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .battle-unit.battle-fx-strike img,
  .battle-unit.battle-fx-hit img,
  .battle-unit.battle-fx-heal img,
  .battle-unit.battle-fx-special img,
  .battle-unit.battle-fx-revive img,
  .battle-unit.battle-fx-move img,
  .battle-fx-number,
  .battle-fx-symbol { animation: none !important; }
}

/* 0.27.4: startup/auth recovery */
.auth-error .auth-retry{margin-top:10px;max-width:360px}

/* GameDay 0.28.0 — account tracks, school roles, linked Solo and admin */
.registration-track{display:grid;gap:9px;margin-top:14px;padding:14px;border:1px solid rgba(217,179,108,.16);border-radius:14px;background:rgba(217,179,108,.035)}
.registration-track>label{margin:0!important}.registration-track>small{color:#849188;line-height:1.45}.registration-track-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.registration-track-buttons button{min-height:46px;padding:10px 12px;border:1px solid rgba(255,255,255,.09);border-radius:10px;background:rgba(0,0,0,.2);color:#9ca8a1;font-weight:800;cursor:pointer}.registration-track-buttons button.active{border-color:rgba(217,179,108,.42);background:rgba(217,179,108,.11);color:#f0ddb0}.registration-program-select{width:100%;max-width:none}
.school-progress-note{display:grid;gap:4px;margin-top:11px;padding:10px 12px;border-radius:10px;border:1px solid rgba(94,164,126,.2);background:rgba(67,145,106,.06);color:#96a89e;font-size:12px}.school-progress-note b{color:#b9ddc6}.program-advance-button{grid-column:1/-1;margin-top:auto}.program-locked-pill{grid-column:1/-1;margin-top:auto;padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(0,0,0,.17);color:#7e8b84;font-size:12px;line-height:1.45}.account-role-card{border-color:rgba(91,159,131,.24)}
.school-solo-choice-card{padding:24px;border:1px solid rgba(94,164,126,.3);border-radius:18px;background:radial-gradient(circle at 0 0,rgba(82,166,123,.1),transparent 42%),linear-gradient(145deg,rgba(20,32,27,.98),rgba(12,20,17,.98));box-shadow:0 18px 48px rgba(0,0,0,.2)}.school-solo-choice-card h2{margin:8px 0 9px;font-size:30px}.school-solo-choice-card p{max-width:760px;color:#a4b0a9;line-height:1.55}.school-solo-choice-card>small{display:block;margin-top:12px;color:#7f9087}.school-solo-choice-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.school-solo-choice-buttons button{min-width:220px}
.admin-screen{width:min(1180px,92vw);margin:34px auto 70px}.admin-screen>h1{font-size:clamp(40px,5vw,60px);margin:8px 0}.admin-screen>p{max-width:800px;color:#96a29b;line-height:1.55}.admin-toolbar{display:flex;align-items:center;gap:10px;margin:22px 0}.admin-toolbar .name-input{flex:1;min-width:180px}.admin-account-list{display:grid;gap:12px}.admin-account-card{display:grid;gap:15px;padding:18px;border:1px solid rgba(255,255,255,.09);border-radius:16px;background:linear-gradient(145deg,rgba(22,32,28,.96),rgba(13,20,18,.96))}.admin-account-card.owner{border-color:rgba(217,179,108,.4);background:radial-gradient(circle at 0 0,rgba(217,179,108,.1),transparent 38%),linear-gradient(145deg,#1c251f,#0d1512)}.admin-account-main{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.admin-account-main h3{margin:5px 0 3px;font-size:23px}.admin-account-main small{color:#839087}.admin-role-badge{display:inline-flex;padding:4px 7px;border:1px solid rgba(217,179,108,.22);border-radius:999px;background:rgba(217,179,108,.06);color:#d7c18a;font-size:9px;font-weight:900;letter-spacing:.1em}.admin-progress-pill{max-width:360px;padding:8px 10px;border:1px solid rgba(94,164,126,.2);border-radius:9px;background:rgba(67,145,106,.06);color:#9fc3ad;font-size:11px}.admin-account-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.admin-account-controls label{display:grid;gap:5px;color:#89968e;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.admin-account-controls select{width:100%;padding:10px 11px;border:1px solid rgba(255,255,255,.1);border-radius:9px;background:#0f1713;color:#e4e8e5;font:inherit;text-transform:none;letter-spacing:normal}.admin-account-controls select:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:760px){.registration-track-buttons{grid-template-columns:1fr}.school-solo-choice-buttons{display:grid}.school-solo-choice-buttons button{width:100%;min-width:0}.admin-toolbar{align-items:stretch;flex-direction:column}.admin-account-main{display:grid}.admin-account-controls{grid-template-columns:1fr}.admin-progress-pill{max-width:none}}

/* GameDay 0.28.1 · persistent rooms, account profile and admin controls */
.student-avatar-button{font:inherit;color:inherit;cursor:pointer;appearance:none;padding:0}.student-avatar-button:hover{transform:translateY(-2px);border-color:rgba(217,179,108,.42);box-shadow:0 14px 38px rgba(0,0,0,.22)}.student-avatar-button small{position:absolute;left:50%;bottom:-22px;transform:translateX(-50%);white-space:nowrap;color:#849189;font-size:9px;text-transform:uppercase;letter-spacing:.08em;font-weight:900}
.persistent-room-section{margin:18px 0;padding:18px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:linear-gradient(145deg,rgba(20,29,25,.94),rgba(11,18,15,.94))}.persistent-room-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.persistent-room-head h3{margin:4px 0 0;font-size:22px}.persistent-room-empty{padding:16px;border:1px dashed rgba(255,255,255,.1);border-radius:12px;color:#829087;font-size:12px}.teacher-room-list{display:grid;gap:10px}.teacher-room-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(255,255,255,.025)}.teacher-room-card h4{margin:5px 0;font-size:18px}.teacher-room-card p{margin:0 0 4px;color:#abb5af;font-size:12px}.teacher-room-card small{color:#75847b}.teacher-room-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.room-status-pill{display:inline-flex;padding:3px 7px;border-radius:999px;border:1px solid rgba(166,177,170,.2);color:#9ba79f;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.room-status-pill.playing{border-color:rgba(86,170,122,.3);background:rgba(86,170,122,.08);color:#9fd0b0}.student-known-rooms{border-color:rgba(88,141,184,.22)}
.member-card{position:relative}.member-avatar{width:38px;height:38px;object-fit:contain;position:absolute;right:9px;top:9px}.member-card.member-offline{border-color:rgba(255,255,255,.08);background:rgba(255,255,255,.018);opacity:.72}.member-card.member-offline small{color:#7c8981}.teacher-member small{color:#849188}
.admin-account-summary{display:grid;gap:6px;justify-items:end}.admin-account-controls{grid-template-columns:repeat(4,minmax(0,1fr))}.admin-gold-control{display:flex;gap:6px}.admin-gold-control input{min-width:0;width:100%;padding:10px 11px;border:1px solid rgba(255,255,255,.1);border-radius:9px;background:#0f1713;color:#e4e8e5;font:inherit}.admin-gold-control .secondary{padding:8px 10px;font-size:10px}.admin-danger-zone{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:13px;border-top:1px solid rgba(160,78,69,.18)}.admin-danger-zone small{max-width:720px;color:#8d7772;line-height:1.45}.danger-button{border:1px solid rgba(176,78,69,.35);background:rgba(137,55,49,.09);color:#c78d84;border-radius:9px;padding:9px 12px;font-weight:800;cursor:pointer}.danger-button:hover:not(:disabled){background:rgba(137,55,49,.17);border-color:rgba(193,91,80,.52)}.danger-button:disabled{opacity:.45;cursor:not-allowed}
.student-account-profile{width:min(1100px,92vw);margin:34px auto 70px}.account-profile-header h1{margin:4px 0 6px;font-size:clamp(36px,5vw,58px)}.profile-badges{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}.profile-badges span{padding:5px 8px;border-radius:999px;border:1px solid rgba(217,179,108,.2);background:rgba(217,179,108,.05);color:#cdbb90;font-size:9px;font-weight:900}.profile-avatar-picker{display:grid;grid-template-columns:minmax(220px,.7fr) 1.3fr;gap:20px;align-items:center;margin:20px 0;padding:19px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.018)}.profile-avatar-picker h3{margin:0 0 6px;font-size:22px}.profile-avatar-picker p{margin:0;color:#8c9991;line-height:1.5;font-size:12px}.avatar-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.avatar-choice{display:grid;place-items:center;gap:7px;min-height:122px;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:#101814;color:#849189;cursor:pointer}.avatar-choice img{width:68px;height:75px;object-fit:contain}.avatar-choice span{font-size:9px;font-weight:900}.avatar-choice.active{border-color:rgba(217,179,108,.45);background:rgba(217,179,108,.06);color:#dfc98f}.avatar-choice:hover:not(:disabled){transform:translateY(-2px);border-color:rgba(217,179,108,.32)}.account-profile-columns .subpanel small{display:block;margin-top:10px;color:#7f8d84;line-height:1.45}.profile-teacher-rooms{margin-top:18px}.profile-empty{text-align:center;padding:60px 20px}.profile-empty p{color:#8d9a92}.profile-empty .primary{margin-top:14px}
@media(max-width:900px){.admin-account-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-avatar-picker{grid-template-columns:1fr}.avatar-choice-grid{grid-template-columns:repeat(4,minmax(70px,1fr))}}
@media(max-width:620px){.teacher-room-card{align-items:stretch;flex-direction:column}.teacher-room-actions{justify-content:stretch}.teacher-room-actions button{flex:1}.admin-account-summary{justify-items:start}.admin-account-controls{grid-template-columns:1fr}.admin-danger-zone{align-items:stretch;flex-direction:column}.avatar-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.persistent-room-head{align-items:flex-start;flex-direction:column}.student-avatar-button small{display:none}}

/* 0.28.1 persistent teacher roster management */
.teacher-room-main{min-width:0;flex:1}.room-roster-mini{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.room-roster-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 7px;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:rgba(255,255,255,.03);font-size:10px}.room-roster-chip img{width:25px;height:29px;object-fit:contain}.room-roster-chip b{font-size:10px}.room-roster-chip i{font-style:normal;color:#75847b;font-size:8px;text-transform:uppercase}.room-roster-chip button{display:grid;place-items:center;width:20px;height:20px;padding:0;border:1px solid rgba(199,92,92,.24);border-radius:50%;background:rgba(199,92,92,.08);color:#c98d8d;cursor:pointer}.room-roster-chip button:hover:not(:disabled){background:rgba(199,92,92,.16);color:#efb2b2}.member-remove-button{margin-top:8px;padding:5px 8px;border:1px solid rgba(199,92,92,.22);border-radius:8px;background:rgba(199,92,92,.06);color:#c99191;font-size:9px;font-weight:800;cursor:pointer}.member-remove-button:hover:not(:disabled){background:rgba(199,92,92,.14);color:#efb2b2}.teacher-roster-manager{display:grid;grid-template-columns:minmax(220px,1fr) minmax(300px,1.2fr);gap:18px;align-items:end;margin:15px 0;padding:16px;border:1px solid rgba(217,179,108,.16);border-radius:14px;background:rgba(217,179,108,.035)}.teacher-roster-manager b{font-size:15px}.teacher-roster-manager p{margin:5px 0 0;color:#87958c;font-size:11px;line-height:1.45}.teacher-add-student-row{display:flex;gap:8px;align-items:center}.teacher-add-student-row .online-input{margin:0;flex:1}.continuing-room{border-color:rgba(86,170,122,.18);background:rgba(86,170,122,.035)}
@media(max-width:760px){.teacher-roster-manager{grid-template-columns:1fr}.teacher-add-student-row{align-items:stretch;flex-direction:column}.room-roster-chip{max-width:100%}.teacher-room-main{width:100%}}

/* GameDay 0.28.2 · rich curriculum theory */
.curriculum-v2-theory{display:flex;flex-direction:column;gap:14px;min-width:0}
.curriculum-v2-topic{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.035)}
.curriculum-v2-topic span{font-size:11px;letter-spacing:.12em;opacity:.62;font-weight:800}
.curriculum-v2-topic b{font-size:16px;line-height:1.4}
.curriculum-v2-goals,.curriculum-v2-intro,.curriculum-v2-section{padding:16px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(9,15,29,.52)}
.curriculum-v2-goals h3,.curriculum-v2-section h3{margin:0 0 10px;font-size:16px}
.curriculum-v2-goals ul{margin:0;padding-left:22px;display:grid;gap:6px}
.curriculum-v2-goals li,.curriculum-v2-text,.curriculum-v2-intro p{line-height:1.55}
.curriculum-v2-intro p,.curriculum-v2-text{margin:0}
.curriculum-v2-sections{display:flex;flex-direction:column;gap:12px}
.curriculum-v2-section-body{display:flex;flex-direction:column;gap:10px;min-width:0}
.curriculum-v2-table-wrap{overflow:auto;border-radius:12px;border:1px solid rgba(255,255,255,.09)}
.curriculum-v2-table{width:100%;border-collapse:collapse;min-width:420px;font-size:13px}
.curriculum-v2-table th,.curriculum-v2-table td{padding:8px 10px;text-align:left;vertical-align:top;border-bottom:1px solid rgba(255,255,255,.07);white-space:normal}
.curriculum-v2-table th{font-size:11px;letter-spacing:.05em;text-transform:uppercase;background:rgba(255,255,255,.055)}
.curriculum-v2-table tr:last-child td,.curriculum-v2-table tr:last-child th{border-bottom:0}
.settlement-rich-theory{max-height:560px;overflow:auto;padding:2px 4px 10px;margin:4px 0 14px}
.solo-writing-mcq{max-width:760px}
.curriculum-sync-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;padding:13px 16px;border-radius:14px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04)}
.curriculum-sync-banner>div{display:flex;flex-direction:column;gap:4px}
.curriculum-sync-banner span{font-size:13px;opacity:.78;line-height:1.4}
.curriculum-sync-banner.active:before{content:'⟳';font-size:20px}
.curriculum-sync-banner.error:before{content:'⚠️';font-size:18px}
@media(max-width:720px){.curriculum-v2-table{min-width:340px}.settlement-rich-theory{max-height:480px}.curriculum-sync-banner{align-items:flex-start;flex-direction:column}}
