/* ═══════════════════════════════════════════════════════════════
   PAGES — title · name · story · armory · guild hall · forge · raid ·
           campfire · recruiting · oath · calculating · result
════════════════════════════════════════════════════════════════ */

/* ── Title ─────────────────────────────────────────────────── */
.title-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; gap: clamp(6px, 1.4dvh, 14px); padding: 14px 8px 16px; min-height: 100%; position: relative; }
.title-logo { height: 30px; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); }
.title-logo img { height: 30px; width: auto; }
.title-logo { display: flex; justify-content: center; }
.title-heroes { position: relative; width: min(72cqw, 320px, 36dvh); aspect-ratio: 1; margin-top: 40px; flex: 0 1 auto; }
.title-hero { position: absolute; inset: 0; opacity: 0; transform: translateY(12px) scale(.96); transition: opacity 1s var(--ease), transform 1s var(--ease); filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
.title-hero.is-active { opacity: 1; transform: none; }
.title-hero::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -6%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, var(--accent), transparent); opacity: .35; filter: blur(6px); }
.title-h1 { font-size: clamp(26px, min(9cqw, 4.6dvh), 46px); line-height: 1.05; }
.title-sub { color: var(--fg-dim); font-size: clamp(13px, min(4cqw, 2.1dvh), 17px); max-width: 34ch; margin: 6px auto 0; }
@media (max-height: 700px) { .title-sub { max-width: 40ch; } .title-party .asset { width: 40px; } }
.title-party { display: flex; justify-content: center; gap: 10px; margin-top: -6px; }
.title-party .asset { width: clamp(44px, 12cqw, 56px); aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--accent) 18%, transparent); transition: transform .3s var(--ease), border-color .3s; }
.title-party .asset.is-active { transform: translateY(-4px) scale(1.08); border-color: var(--accent); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent); }
.title-actions { display: flex; flex-direction: column; gap: 10px; width: min(100%, 320px); }
.title-actions .btn { width: 100%; }
.title-meta { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); }
.title-disclaimer { display: none; }
/* ── Info screen ── */
.info-win { width: 100%; max-width: 440px; }
.info-win .fwin-body { display: flex; flex-direction: column; gap: 12px; }
.info-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; }
.info-art { width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--cyan-300) 12%, transparent); display: grid; place-items: center; overflow: hidden; padding: 4px; }
.info-art-img { width: 100%; height: 100%; }
.info-art--grid { grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; }
.info-art-cell { width: 100%; height: 100%; }
.info-ai { grid-template-columns: 44px 1fr; align-items: center; }
.info-ai .info-ai-badge { width: 44px; height: 28px; font-size: 12px; }
.info-ai-art { position: relative; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); padding: 4px; }
.info-ai-art .info-ai-badge { position: absolute; right: 2px; bottom: 2px; width: auto; height: 16px; padding: 0 5px; font-size: 9px; }
@media (max-height: 720px) {
  .info-win .fwin-body { gap: 8px; padding: 10px 12px 12px; }
  .info-item { grid-template-columns: 44px 1fr; gap: 10px; }
  .info-art, .info-ai-art { width: 44px; height: 44px; }
  .info-ai { padding: 8px 10px; }
  .info-item-text, .info-ai p { font-size: 12px; line-height: 1.4; }
  .info-item-title { font-size: 13px; }
  .center-wrap { padding: 4px 0; align-items: flex-start; }
}
.info-icon { width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--cyan-300) 18%, transparent); border: 1px solid var(--line-strong); display: grid; place-items: center; position: relative; }
.info-icon::before { content: ''; width: 12px; height: 12px; background: var(--cyan-300); transform: rotate(45deg); box-shadow: 0 0 10px var(--cyan-300); }
.info-icon[data-icon="result"]::before { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.info-icon[data-icon="time"]::before { background: var(--violet-200); box-shadow: 0 0 10px var(--violet-200); border-radius: 50%; transform: none; }
.info-item-title { font-family: var(--font-head); font-size: 14px; margin-bottom: 2px; }
.info-item-text { font-size: 13px; color: var(--fg-dim); line-height: 1.5; }
.info-ai { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-strong); background: rgba(255,255,255,.03); }
.info-ai p { font-size: 12px; color: var(--fg-dim); line-height: 1.45; }
.info-ai-badge { width: 34px; height: 24px; display: grid; place-items: center; font-family: var(--font-head); font-size: 11px; letter-spacing: .1em; border-radius: 6px; background: var(--violet-700); color: #fff; }

/* ── Name ──────────────────────────────────────────────────── */
.name-win { width: 100%; max-width: 420px; }
.name-input { width: 100%; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); color: #fff; font-size: 18px; outline: none; transition: border-color .2s, box-shadow .2s; }
.name-input:focus { border-color: var(--cyan-300); box-shadow: 0 0 0 4px rgba(95,163,198,.2); }
.name-input::placeholder { color: var(--fg-faint); }

/* ── Story ─────────────────────────────────────────────────── */
.story-wrap { flex: 1; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.story-art { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.story-illu { position: absolute; inset: 0; }
.story-illu.illu-in { animation: illuIn 1s var(--ease) both; }
.story-illu.illu-out { animation: illuOut .9s var(--ease) both; }
@keyframes illuIn { from { opacity: 0; transform: translateX(40px) scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes illuOut { to { opacity: 0; transform: translateX(-40px) scale(.98); } }
.story-text { font-size: clamp(16px, 4.6cqw, 20px); line-height: 1.5; min-height: 5.6em; }
.story-dots { display: flex; gap: 8px; margin: 12px 0 8px; }
.story-dots i { width: 22px; height: 4px; background: rgba(255,255,255,.12); border-radius: 2px; transition: background .3s; }
.story-dots i.is-on { background: var(--cyan-300); }
.story-cta { align-self: flex-end; margin-top: 4px; }
.story-win .fwin-body { display: flex; flex-direction: column; }

/* ── Chapter 1 · Armory (loadout) ──────────────────────────── */
.lo-wrap { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.lo-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 6px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(5,10,26,.4); transition: box-shadow .3s; }
.lo-slots.is-full { box-shadow: 0 0 0 1px var(--cyan-300), 0 0 24px rgba(95,163,198,.35); }
.lo-slots.is-locked { box-shadow: 0 0 0 1px var(--yellow), 0 0 30px rgba(247,200,39,.4); }
.lo-slot { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; border: 1.5px dashed var(--line-strong); background: rgba(255,255,255,.03); display: grid; place-items: center; overflow: hidden; touch-action: none; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.lo-slot:first-child { border-color: rgba(247,200,39,.7); }
.lo-slot.is-armed { border-color: var(--yellow); background: rgba(247,200,39,.14); transform: scale(1.06); border-style: solid; }
.lo-slot.is-filled { border-style: solid; border-color: var(--cyan-300); background: linear-gradient(180deg, rgba(32,127,173,.28), rgba(11,23,59,.4)); }
.lo-slot-frame { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--fg-faint); }
.lo-slot-num { font-family: var(--font-head); font-size: 20px; color: var(--fg-dim); }
.lo-slot-label { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.lo-slot-item { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; animation: dropIn .35s var(--ease); }
@keyframes dropIn { from { transform: scale(1.25); opacity: 0; } to { transform: none; opacity: 1; } }
.lo-slot-art { width: 60%; aspect-ratio: 1; }
.lo-slot-name { font-size: 10px; font-weight: 700; text-align: center; line-height: 1.1; }
.lo-detail { min-height: 40px; display: flex; align-items: center; padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border-left: 3px solid var(--line-strong); font-size: 13px; color: var(--fg-dim); transition: border-color .2s; }
.lo-detail.is-eq { border-color: var(--yellow); color: #fff; font-style: italic; }
.lo-pool { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@container app (min-width: 420px) { .lo-pool { grid-template-columns: repeat(4, 1fr); } }
.lo-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(50,72,117,.55), rgba(11,23,59,.6)); touch-action: none; user-select: none; transition: transform .2s var(--ease), border-color .2s, opacity .2s, box-shadow .2s; }
.lo-card::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; background: var(--navy-950); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.lo-card:active { transform: scale(.96); }
.lo-card.is-selected { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(247,200,39,.5), 0 6px 20px rgba(0,0,0,.4); transform: translateY(-3px); }
.lo-card.is-used { opacity: .28; filter: grayscale(.6); pointer-events: none; }
.lo-card.is-dragging { opacity: .25; }
.lo-card-art { width: 68%; aspect-ratio: 1; }
.lo-card-name { font-size: 10px; font-weight: 700; text-align: center; line-height: 1.15; }
.lo-ghost { position: fixed; left: 0; top: 0; z-index: 100; width: 96px; padding: 8px 6px; border-radius: 10px; background: var(--win-bg-solid); border: 1px solid var(--yellow); box-shadow: 0 20px 40px rgba(0,0,0,.6); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; will-change: transform; }
.lo-wrap.is-dragging .lo-slots { box-shadow: 0 0 0 1px var(--yellow); }

/* ── Chapter 2 · Guild hall (scene) ─────────────────────────── */
.sc-wrap { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.sc-title { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-200); text-align: center; }
.sc-frame { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 62cqh; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: var(--navy-900); box-shadow: var(--shadow); }
.sc-art { position: absolute; inset: 0; }
.sc-art img { object-fit: cover; }
.sc-art .ph { border-radius: 0; }
.sc-hotspot { position: absolute; transform: translate(-50%,-50%); width: 44px; height: 44px; display: grid; place-items: center; z-index: 2; touch-action: manipulation; --hs: var(--yellow); }
.sc-hs-core { width: 12px; height: 12px; background: var(--hs); transform: rotate(45deg); box-shadow: 0 0 12px var(--hs); transition: transform .2s; }
.sc-hs-ring { position: absolute; inset: 6px; border: 2px solid var(--hs); transform: rotate(45deg); opacity: .8; animation: ring 1.8s var(--delay, 0s) ease-out infinite; }
@keyframes ring { 0% { transform: rotate(45deg) scale(.5); opacity: .9; } 100% { transform: rotate(45deg) scale(1.5); opacity: 0; } }
.sc-hs-label { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 2px); white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; background: rgba(5,10,26,.8); border: 1px solid var(--line); opacity: .8; transition: opacity .2s, border-color .2s; pointer-events: none; }
.sc-hotspot:hover .sc-hs-label, .sc-hotspot.is-active .sc-hs-label { opacity: 1; border-color: var(--yellow); }
.sc-hotspot.edge-r .sc-hs-label { left: auto; right: -4px; transform: translate(0, 2px); }
.sc-hotspot.edge-l .sc-hs-label { left: -4px; transform: translate(0, 2px); }
.sc-hotspot.is-active { --hs: #fff; }
.sc-hotspot.is-active .sc-hs-core { transform: rotate(45deg) scale(1.5); }
.sc-hotspot.is-active .sc-hs-ring { animation-duration: .9s; }
.sc-hotspot.is-gone { opacity: 0; transition: opacity .4s; pointer-events: none; }
.sc-hotspot.is-chosen { --hs: var(--yellow); pointer-events: none; }
.sc-hotspot.is-chosen .sc-hs-ring { animation: none; opacity: 0; }
.sc-hint { text-align: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); animation: pulse 1.8s infinite; }
.sc-card-host { margin-top: auto; }
.sc-card { --accent: var(--yellow); }
.sc-card-in { animation: pageIn .35s var(--ease) both; }
.sc-card-out { animation: fadeOut .3s both; }
.sc-action { font-size: clamp(15px, 4.2cqw, 17px); font-weight: 600; line-height: 1.4; }

/* ── Chapter 3 · Forge (dials) ──────────────────────────────── */
.dl-wrap { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.dl-stage { flex: 1; display: flex; flex-direction: column; }
.dl-panel { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.dl-in { animation: pageIn .4s var(--ease) both; }
.dl-out { animation: fadeOut .3s both; }
.dl-facets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-facet { --w: .5; position: relative; padding: 12px 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-size: clamp(13px, 3.6cqw, 15px); line-height: 1.4; transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s; transform: scale(calc(.94 + var(--w) * .12)); cursor: pointer; }
.dl-facet--l { --c: var(--cyan-300); }
.dl-facet--r { --c: var(--violet-200); }
.dl-facet.is-lead { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.dl-facet-tag { display: block; font-family: var(--font-head); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--c); margin-bottom: 6px; }
.dl-slant { position: relative; padding: 26px 8px; margin: 4px 0; }
.dl-slant::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(95,163,198,.12), rgba(181,173,224,.12)); border: 1px solid var(--line); clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%); border-radius: 8px; }
.dl-track { position: relative; height: 22px; border-radius: 11px; background: rgba(5,10,26,.8); border: 1px solid var(--line-strong); touch-action: none; cursor: grab; }
.dl-track:active { cursor: grabbing; }
.dl-ticks i { position: absolute; top: 50%; width: 2px; height: 10px; background: var(--line-strong); transform: translate(-50%,-50%); }
.dl-ticks i:nth-child(3) { height: 16px; background: var(--fg-dim); }
.dl-fill { position: absolute; top: 3px; bottom: 3px; border-radius: 8px; background: linear-gradient(90deg, var(--cyan-300), var(--violet-200)); opacity: .75; }
.dl-gem { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%,-50%); display: grid; place-items: center; transition: transform .1s; }
.dl-gem i { width: 26px; height: 26px; transform: rotate(45deg); background: linear-gradient(135deg, #fff, var(--violet-200) 50%, var(--purple)); box-shadow: 0 0 18px rgba(181,173,224,.8), 0 4px 10px rgba(0,0,0,.5); border: 2px solid #fff; transition: transform .15s; }
.dl-gem.is-drag i { transform: rotate(45deg) scale(1.2); }
.dl-art { width: 70%; margin: 6px auto 0; opacity: .85; }
.dl-readout { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-family: var(--font-head); font-size: 15px; }
.dl-ro-l { color: var(--cyan-300); }
.dl-ro-r { color: var(--violet-200); text-align: right; }
.dl-ro-hint { font-family: var(--font-body); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); animation: pulse 1.6s infinite; }
.dl-readout.is-touched .dl-ro-hint { animation: none; opacity: .5; }

/* ── Chapter 4 · Raid (boss) ────────────────────────────────── */
.boss-arena { flex: 1; display: flex; flex-direction: column; gap: 10px; position: relative; --cast: var(--red); }
.boss-arena::before { content: ''; position: absolute; inset: -14px -14px 0 -14px; z-index: 0; pointer-events: none; opacity: 0; background: radial-gradient(60% 40% at 50% 30%, var(--cast), transparent 70%); transition: opacity .3s; }
.boss-arena.is-casting::before { opacity: .55; }
.boss-box { position: relative; z-index: 1; border-radius: var(--radius); border: 1px solid rgba(216,71,103,.5); background: linear-gradient(180deg, rgba(216,71,103,.12), rgba(5,10,26,.5)); padding: 10px 12px 8px; overflow: hidden; }
.boss-box.is-attacking { animation: bossAttack .6s var(--ease); }
.boss-box.is-hit { animation: bossHit .5s var(--ease); }
@keyframes bossAttack { 0% { transform: none; } 30% { transform: scale(1.04) translateY(6px); box-shadow: 0 0 40px rgba(216,71,103,.6); } 100% { transform: none; } }
@keyframes bossHit { 0%,100% { transform: none; filter: none; } 20% { transform: translateX(-8px); filter: brightness(1.8); } 40% { transform: translateX(8px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.boss-name { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: clamp(16px, 5cqw, 20px); color: #fff; }
.boss-skull { width: 12px; height: 12px; background: var(--red); transform: rotate(45deg); box-shadow: 0 0 10px var(--red); }
.boss-rank { margin-left: auto; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); border: 1px solid rgba(216,71,103,.6); padding: 2px 8px; border-radius: 6px; font-family: var(--font-body); font-weight: 700; }
.boss-hp { position: relative; height: 16px; border-radius: 8px; background: rgba(0,0,0,.5); border: 1px solid rgba(216,71,103,.5); margin: 8px 0 8px; overflow: hidden; }
.boss-hp-fill { height: 100%; background: linear-gradient(90deg, #ff7a95, var(--red)); transition: width .6s var(--ease); box-shadow: 0 0 12px var(--red); }
.boss-hp.is-low .boss-hp-fill { animation: pulse .7s infinite; }
.boss-hp-text { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.boss-art { width: min(52%, 220px); max-height: 18dvh; margin: 0 auto; }
.boss-art .ph { --ph-tint: var(--red); }
.boss-round { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-faint); text-align: center; z-index: 1; }
.boss-prompt { z-index: 1; --accent: var(--red); }
.hotbar { z-index: 1; display: flex; flex-direction: column; gap: 8px; margin-top: auto; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s var(--ease); pointer-events: none; }
.hotbar.is-open { opacity: 1; transform: none; pointer-events: auto; }
.skill { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; text-align: left; padding: 8px 10px 8px 8px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), rgba(11,23,59,.6)); transition: transform .2s var(--ease), border-color .2s, opacity .3s, box-shadow .2s; animation: skillIn .4s calc(var(--i) * 70ms) var(--ease) both; touch-action: manipulation; }
@keyframes skillIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.skill:hover:not(:disabled) { border-color: var(--accent); transform: translateX(4px); }
.skill:active:not(:disabled) { transform: scale(.98); }
.skill.is-cast { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 30px color-mix(in srgb, var(--accent) 60%, transparent); }
.skill.is-dim { opacity: .3; }
.skill-icon { width: 52px; height: 52px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 22%, transparent); border: 1px solid var(--accent); display: grid; place-items: center; overflow: hidden; }
.skill-icon-img { width: 100%; height: 100%; }
.skill-icon-img .ph { --ph-tint: var(--accent); border: 0; background: none; }
.skill-icon-img .ph .ph-key, .skill-icon-img .ph .ph-size, .skill-icon-img .ph .ph-dots { display: none; }
.skill-icon-img .ph .ph-label { font-size: 11px; }
.skill-name { font-family: var(--font-head); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.skill-class { font-family: var(--font-body); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.skill-text { font-size: 13px; color: var(--fg-dim); line-height: 1.35; }
.boss-arena.is-victory .boss-box { border-color: var(--yellow); background: linear-gradient(180deg, rgba(247,200,39,.14), rgba(5,10,26,.5)); }
.boss-arena.is-victory .boss-art { filter: grayscale(1) brightness(.5); transition: filter 1s; }

/* ── Chapter 5 · Campfire (swipe) ───────────────────────────── */
.sw-wrap { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.sw-fire { position: absolute; left: 50%; bottom: 96px; width: 40%; transform: translateX(-50%); opacity: .95; z-index: 0; pointer-events: none; }
.sw-fire .ph { border-style: dotted; opacity: .25; }
.sw-deck { position: relative; flex: 1; min-height: 300px; display: grid; place-items: center; z-index: 1; }
.sw-wrap { position: relative; }
.sw-controls { position: relative; z-index: 2; }
.sw-card { position: absolute; width: min(86%, 380px); aspect-ratio: 5 / 6; max-height: 100%; border-radius: 18px; padding: 24px 22px 20px; display: flex; flex-direction: column; background: linear-gradient(160deg, var(--navy-500), var(--navy-800) 60%, var(--navy-900)); border: 1px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0,0,0,.6); touch-action: none; user-select: none; will-change: transform;
  --depth: 0; transform: translateY(calc(var(--depth) * 18px)) scale(calc(1 - var(--depth) * .04)); transition: transform .3s var(--ease); z-index: calc(3 - var(--depth)); opacity: calc(1 - var(--depth) * .25); }
.sw-card::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 22px; height: 22px; background: var(--navy-950); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
/* generated card frame (assets/img/ui/card-frame.png) */
.sw-card--art { aspect-ratio: 3 / 4; background-color: transparent; background-repeat: no-repeat; background-size: 100% 100%; background-position: center; border: 0; box-shadow: none; padding: 9% 9% 10%; filter: drop-shadow(0 22px 40px rgba(0,0,0,.6)); }
.sw-card--art::after { display: none; }
.sw-emblem { position: absolute; top: 9%; left: 50%; transform: translateX(-50%); width: 20%; aspect-ratio: 1; opacity: .95; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.sw-emblem-art { width: 100%; height: 100%; }
.sw-emblem-art .ph { border: 0; background: none; }
.sw-card--art .sw-quote { margin-top: 24%; }
.sw-card--art .sw-text { font-size: clamp(16px, 4.6cqw, 20px); }
.sw-card.is-drag { transition: none; cursor: grabbing; }
.sw-card.is-fly { transition: transform .35s ease-in, opacity .35s; opacity: 0; }
.sw-quote { font-family: var(--font-head); font-size: 64px; line-height: .6; color: var(--cyan-300); opacity: .6; }
.sw-text { flex: 1; display: flex; align-items: center; font-size: clamp(17px, 5cqw, 21px); font-weight: 600; line-height: 1.4; }
.sw-foot { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); }
.sw-stamp { position: absolute; top: 22px; padding: 6px 12px; border: 3px solid; border-radius: 8px; font-family: var(--font-head); font-size: 20px; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transform: rotate(-12deg); pointer-events: none; }
.sw-stamp--yes { left: 18px; color: var(--green); border-color: var(--green); }
.sw-stamp--no { right: 18px; color: var(--red); border-color: var(--red); transform: rotate(12deg); }
.sw-controls { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 4px 0 6px; }
.sw-btn { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 2px solid; display: grid; place-items: center; font-size: 26px; font-weight: 800; transition: transform .15s var(--ease), box-shadow .2s; background: rgba(5,10,26,.6); margin-bottom: 16px; }
.sw-btn small { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.sw-btn--yes { color: var(--green); border-color: var(--green); }
.sw-btn--no { color: var(--red); border-color: var(--red); }
.sw-btn:active, .sw-btn.is-pulse { transform: scale(1.12); box-shadow: 0 0 22px currentColor; }
.sw-hint { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); }
.sw-done { width: 100%; }

/* ── Chapter 6 · Recruiting board (party) ───────────────────── */
.pt-wrap { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.pt-gems-wrap { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5,10,26,.4); }
.pt-gems-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); font-weight: 700; }
.pt-gems { display: flex; gap: 10px; flex-wrap: wrap; }
.pt-gem { width: 14px; height: 14px; transform: rotate(45deg); background: linear-gradient(135deg, #fff, var(--cyan-300) 55%, var(--cyan-600)); box-shadow: 0 0 10px rgba(95,163,198,.7); transition: all .3s; }
.pt-gem.is-spent { background: rgba(255,255,255,.08); box-shadow: none; border: 1px solid var(--line); }
.pt-board { display: flex; flex-direction: column; gap: 8px; }
.pt-board.is-locked .pt-row { pointer-events: none; }
.pt-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), rgba(11,23,59,.5)); transition: border-color .2s, box-shadow .2s; }
.pt-row.is-active { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.pt-icon { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 20%, transparent); }
.pt-icon-img { width: 100%; height: 100%; }
.pt-icon-img .ph { --ph-tint: var(--accent); border: 0; background: none; }
.pt-icon-img .ph .ph-key, .pt-icon-img .ph .ph-size, .pt-icon-img .ph .ph-dots { display: none; }
.pt-icon-img .ph .ph-label { font-size: 10px; }
.pt-name { font-family: var(--font-head); font-size: 15px; }
.pt-tag { font-size: 11px; color: var(--fg-faint); }
.pt-pips { display: flex; gap: 5px; margin-top: 4px; min-height: 10px; }
.pt-pip { width: 9px; height: 9px; transform: rotate(45deg); background: var(--accent); box-shadow: 0 0 6px var(--accent); animation: dropIn .25s var(--ease); }
.pt-ctrl { display: flex; align-items: center; gap: 6px; }
.pt-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.06); font-size: 20px; font-weight: 700; display: grid; place-items: center; transition: transform .1s, background .2s; touch-action: manipulation; }
.pt-btn:active:not(:disabled) { transform: scale(.92); background: color-mix(in srgb, var(--accent) 30%, transparent); }
.pt-btn:disabled { opacity: .3; }
.pt-count { font-family: var(--font-head); font-size: 18px; min-width: 20px; text-align: center; }
.pt-hint { text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); }

/* ── Chapter 7 · Oath ───────────────────────────────────────── */
.oa-wrap { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.oa-hall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-items: end; padding: 16px 4px 0; min-height: 230px; }
.oa-banner { position: relative; display: flex; flex-direction: column; align-items: center; transform: translateY(0); transition: transform .45s var(--ease), filter .3s; animation: pageIn .5s calc(var(--i) * 80ms) var(--ease) both; touch-action: manipulation; }
.oa-pole { width: 4px; height: 26px; background: linear-gradient(180deg, var(--yellow), var(--navy-300)); border-radius: 2px; }
.oa-cloth { position: relative; width: 100%; aspect-ratio: 2 / 3.6; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--violet-600), var(--violet-800)); border: 1px solid var(--line-strong); clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%); overflow: hidden; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.oa-art { flex: 1; min-height: 0; }
.oa-art .ph { border: 0; background: none; --ph-tint: var(--violet-200); }
.oa-art .ph .ph-key, .oa-art .ph .ph-size, .oa-art .ph .ph-dots, .oa-art .ph .ph-label { display: none; }
.oa-name { font-size: 9px; font-weight: 800; line-height: 1.15; text-align: center; padding: 8px 3px 4px; }
.oa-hall.has-choice .oa-banner:not(.is-hoisted) { filter: brightness(.55) saturate(.6); }
.oa-banner.is-hoisted { transform: translateY(-14px) scale(1.08); z-index: 2; }
.oa-banner.is-hoisted .oa-cloth { border-color: var(--yellow); box-shadow: 0 0 22px rgba(247,200,39,.45); background: linear-gradient(180deg, var(--purple), var(--violet-700)); }
.oa-detail { min-height: 100px; opacity: 0; transition: opacity .3s; }
.oa-detail.is-on { opacity: 1; }
.oa-card { --accent: var(--violet-200); }
.oa-motto { font-family: var(--font-head); font-size: 17px; color: var(--violet-200); margin-bottom: 6px; }
.oa-desc { font-size: 13.5px; color: var(--fg-dim); line-height: 1.45; }
.oa-hint { text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); }

/* ── Calculating ────────────────────────────────────────────── */
.calc { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.calc-spinner { position: relative; width: 84px; height: 84px; }
.calc-spinner i { position: absolute; width: 16px; height: 16px; background: var(--cyan-300); transform: rotate(45deg); box-shadow: 0 0 12px var(--cyan-300); animation: orbit 1.6s var(--d, 0s) ease-in-out infinite; }
.calc-spinner i:nth-child(1) { top: 0; left: 34px; --d: 0s; background: var(--yellow); }
.calc-spinner i:nth-child(2) { top: 34px; right: 0; --d: .2s; background: var(--green); }
.calc-spinner i:nth-child(3) { bottom: 0; left: 34px; --d: .4s; background: var(--cyan-300); }
.calc-spinner i:nth-child(4) { top: 34px; left: 0; --d: .6s; background: var(--orange); }
@keyframes orbit { 0%,100% { transform: rotate(45deg) scale(1); opacity: 1; } 50% { transform: rotate(225deg) scale(.4); opacity: .4; } }
.calc-text { font-family: var(--font-head); font-size: 18px; color: var(--fg-dim); }

/* ── Result ─────────────────────────────────────────────────── */
.rs-wrap { display: flex; flex-direction: column; gap: 12px; }
.rs-hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 10px 6px; opacity: 0; transform: scale(.94); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rs-hero.is-in { opacity: 1; transform: none; }
.rs-aura { position: absolute; top: 0; left: 50%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -30%); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); pointer-events: none; z-index: 0; animation: auraPulse 4s ease-in-out infinite; }
@keyframes auraPulse { 50% { opacity: .6; transform: translate(-50%, -30%) scale(1.06); } }
.rs-hero-art { position: relative; z-index: 1; width: min(60%, 260px); filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
.rs-hero-copy { position: relative; z-index: 1; margin-top: 8px; }
.rs-class { font-size: clamp(28px, 8.6cqw, 40px); color: var(--accent); text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 60%, transparent); }
.rs-tagline { font-family: var(--font-head); font-weight: 300; font-size: 15px; color: var(--fg-dim); margin-top: 4px; }
.rs-sheet { display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease) .1s, transform .7s var(--ease) .1s; }
.rs-sheet.is-in { opacity: 1; transform: none; }
.rs-win { }
.rs-build-row { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; margin-bottom: 10px; }
.rs-sig-art { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.rs-build-name { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint); font-weight: 700; }
.rs-build-title { font-family: var(--font-head); font-size: clamp(16px, 4.6cqw, 19px); color: #fff; }
.rs-desc { font-size: 14.5px; line-height: 1.55; color: var(--fg-dim); }
.rs-radar { width: 100%; height: auto; display: block; }
.rs-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 6px; }
.rs-leg { display: grid; grid-template-columns: 10px 1fr auto; gap: 6px; align-items: center; font-size: 12px; }
.rs-leg i { width: 8px; height: 8px; transform: rotate(45deg); background: var(--accent); }
.rs-leg-name { font-weight: 700; }
.rs-leg-pct { color: var(--fg-dim); }
.rs-leg-bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.rs-leg-bar b { display: block; height: 100%; background: var(--accent); }
.rs-gear { display: flex; flex-direction: column; gap: 10px; }
.rs-gear-item { display: grid; grid-template-columns: 22px 46px 1fr; gap: 10px; align-items: start; }
.rs-gear-rank { position: relative; width: 22px; height: 22px; display: grid; place-items: center; font-family: var(--font-head); font-size: 12px; color: var(--navy-950); margin-top: 12px; z-index: 0; }
.rs-gear-rank::before { content: ''; position: absolute; inset: 2px; background: var(--accent); transform: rotate(45deg); z-index: -1; }
.rs-gear-art { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); }
.rs-gear-name { font-family: var(--font-head); font-size: 15px; display: flex; gap: 8px; align-items: baseline; }
.rs-gear-class { font-family: var(--font-body); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.rs-gear-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); margin: 5px 0 5px; overflow: hidden; }
.rs-gear-bar b { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.rs-gear-flavor { font-size: 12.5px; color: var(--fg-dim); font-style: italic; }
.rs-conducts, .rs-all { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.rs-conducts summary, .rs-all summary { cursor: pointer; font-family: var(--font-head); font-size: 13px; color: var(--cyan-300); list-style: none; display: flex; align-items: center; gap: 8px; }
.rs-conducts summary::before, .rs-all summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.rs-conducts[open] summary::before, .rs-all[open] summary::before { transform: rotate(45deg); }
.rs-conducts ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--fg-dim); line-height: 1.5; }
.rs-note { padding: 8px 0; border-top: 1px solid var(--line); }
.rs-note:first-child { border-top: 0; padding-top: 0; }
.rs-note h4 { font-size: 13px; color: var(--accent); margin-bottom: 4px; }
.rs-note p { font-size: 14px; color: var(--fg-dim); line-height: 1.5; }
.rs-oath-row { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: start; }
.rs-oath-art { width: 54px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-strong); }
.rs-oath-name { font-family: var(--font-head); font-size: 16px; }
.rs-oath-motto { color: var(--violet-200); font-family: var(--font-head); font-weight: 300; font-size: 14px; margin: 2px 0 6px; }
.rs-oath p { font-size: 13.5px; color: var(--fg-dim); line-height: 1.5; }
.rs-all { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(5,10,26,.35); }
.rs-all-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.rs-all-card { padding: 10px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.rs-all-icon { width: 34px; height: 34px; margin-bottom: 6px; }
.rs-all-icon .ph { border: 0; background: none; --ph-tint: var(--accent); }
.rs-all-icon .ph .ph-key, .rs-all-icon .ph .ph-size, .rs-all-icon .ph .ph-dots { display: none; }
.rs-all-card h4 { font-size: 13px; color: var(--accent); }
.rs-all-card p { font-size: 12px; color: var(--fg-dim); margin: 2px 0 6px; }
.rs-all-card small { font-size: 10.5px; color: var(--fg-faint); line-height: 1.3; display: block; }
.rs-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.rs-actions .btn { width: 100%; }
.rs-footer { text-align: center; font-size: 11px; color: var(--fg-faint); padding: 8px 0 20px; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE OPTIMISATION — short / narrow viewports
════════════════════════════════════════════════════════════════ */
/* Sticky primary CTA on chapters whose content can outgrow the fold */
.page[data-page="loadout"] .cta-bar, .page[data-page="party"] .cta-bar, .page[data-page="oath"] .cta-bar, .page[data-page="swipe"] .sw-done .cta-bar {
  position: sticky; bottom: -1px; z-index: 6; margin: 0 -14px; padding: 12px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(5,10,26,0), rgba(5,10,26,.92) 40%);
}
.page[data-page="loadout"] .cta-bar .btn, .page[data-page="party"] .cta-bar .btn, .page[data-page="oath"] .cta-bar .btn { width: min(100%, 360px); }
.hotbar .cta-bar { position: sticky; bottom: -1px; z-index: 6; margin: 0 -14px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(5,10,26,0), rgba(5,10,26,.92) 40%); }

@media (max-height: 780px) {
  .page { padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
  .prompt-win .fwin-body { padding: 8px 12px 10px; }
  .prompt-text { font-size: 15px; min-height: 2.5em; line-height: 1.35; }
  .fwin-bar { padding: 6px 12px 4px 14px; }
  /* Armory */
  .lo-slot { aspect-ratio: 1 / 1; max-height: 11dvh; }
  .lo-slot-num { font-size: 16px; }
  .lo-detail { min-height: 34px; font-size: 12px; padding: 4px 10px; }
  .lo-pool { gap: 6px; }
  .lo-card { padding: 6px 3px 5px; gap: 2px; }
  .lo-card-art { width: 56%; max-height: 6.5dvh; }
  .lo-card-name { font-size: 9.5px; }
  /* Guild hall */
  .sc-frame { max-height: 50cqh; }
  .sc-title { font-size: 12px; }
  /* Forge */
  .dl-art { display: none; }
  .dl-facet { padding: 10px; font-size: 13px; }
  /* Raid */
  .boss-box { padding: 8px 10px 6px; }
  .boss-art { width: 30%; }
  .boss-hp { height: 12px; margin: 6px 0; }
  .boss-name { font-size: 15px; }
  .skill { padding: 6px 8px 6px 6px; grid-template-columns: 42px 1fr; gap: 8px; }
  .skill-icon { width: 42px; height: 42px; }
  .skill-name { font-size: 14px; }
  .skill-text { font-size: 12px; }
  /* Campfire */
  .sw-deck { min-height: 240px; }
  .sw-card { aspect-ratio: 5 / 5.2; padding: 18px 18px 14px; }
  .sw-text { font-size: 17px; }
  .sw-btn { width: 54px; height: 54px; font-size: 22px; margin-bottom: 14px; }
  /* Recruiting */
  .pt-row { padding: 6px 8px; grid-template-columns: 40px 1fr auto; gap: 8px; }
  .pt-icon { width: 40px; height: 40px; }
  .pt-name { font-size: 14px; }
  .pt-tag { display: none; }
  .pt-btn { width: 32px; height: 32px; }
  /* Oath */
  .oa-hall { min-height: 170px; padding-top: 10px; }
  .oa-detail { min-height: 70px; }
  /* Result */
  .rs-hero-art { width: min(48%, 200px); }
  .rs-class { font-size: 26px; }
  /* Intro overlay */
  .intro-text { font-size: 15px; min-height: 3.5em; }
}
@media (max-width: 380px) {
  .title-h1 { font-size: 28px; }
  .btn { min-height: 44px; font-size: 15px; padding: 0 16px; }
  .btn--xl { min-height: 52px; font-size: 17px; }
  .tb-chapter { display: none; }
  .lo-card-name { font-size: 9px; }
  .rs-legend { grid-template-columns: 1fr; }
}

/* ── Result: compact, visual-first ── */
.rs-legend--row { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rs-legend--row .rs-leg { grid-template-columns: 8px 1fr; grid-template-rows: auto auto; font-size: 11px; text-align: left; }
.rs-legend--row .rs-leg-pct { grid-column: 2; font-family: var(--font-head); font-size: 15px; color: #fff; }
.rs-gear-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rs-gear-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 10px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); text-align: center; }
.rs-gear-tile .rs-gear-rank { position: absolute; top: 6px; left: 6px; margin: 0; width: 20px; height: 20px; font-size: 11px; }
.rs-gear-tile-art { width: 60%; aspect-ratio: 1; }
.rs-gear-tile-name { font-family: var(--font-head); font-size: 12px; line-height: 1.2; }
.rs-notes .fwin-body { display: flex; flex-direction: column; gap: 8px; }
.rs-note-line { font-size: 13.5px; line-height: 1.45; color: var(--fg-dim); }
.rs-note-line b { color: var(--accent); font-family: var(--font-head); font-weight: 600; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rs-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); font-size: 12px; font-weight: 700; }
.rs-chip-icon { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; }
.rs-full h4 { font-size: 13px; color: var(--cyan-300); margin: 14px 0 4px; }
.rs-full p, .rs-full li { font-size: 13.5px; color: var(--fg-dim); line-height: 1.5; }
.rs-full ul { margin: 4px 0 0; padding-left: 18px; }

/* very short phones (≤ 660px): info screen + boss hotbar */
@media (max-height: 660px) {
  .info-item-text, .info-ai p { font-size: 11.5px; line-height: 1.35; }
  .info-item { grid-template-columns: 38px 1fr; gap: 8px; }
  .info-art, .info-ai-art { width: 38px; height: 38px; }
  .info-win .fwin-body { gap: 6px; }
  .info-win .row-actions { margin-top: 6px; }
  .info-win .btn { min-height: 42px; }
}
@media (max-height: 780px) {
  .hotbar { gap: 6px; }
  .skill { padding: 5px 8px 5px 6px; }
  .boss-round { font-size: 10px; }
  .boss-arena { gap: 8px; }
}
