@font-face {
  font-family: Cinzel;
  src: url('assets/cinzel.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('assets/inter.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #0b0e1e;
  --panel: #141a33;
  --line: #343a61;
  --paper: #fbefd9;
  --muted: #b0b1cc;
  --gold: #ffda91;
  --font-title: Cinzel, Georgia, serif;
  --font-body: Inter, system-ui, sans-serif;
  font-family: var(--font-body);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--paper); background: #070a17; }
button { font: inherit; cursor: pointer; color: inherit; touch-action: manipulation; }
button:disabled { cursor: default; }
button:focus-visible { outline: 2px solid #fff1b3; outline-offset: 3px; }
h1:focus { outline: none; }
#app { min-height: 100dvh; }
h1, h2, p { margin: 0; }
h1, h2, h3, .primary, .world-enter, .quiet, .mode button, .command, .level-choice strong {
  font-family: var(--font-title);
}
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow, .screen-bar > span { color: var(--gold); font: 700 11px/1.4 var(--font-title); letter-spacing: .2em; }
.primary, .world-enter {
  --action-fill: #f3c97d;
  --action-darker: #deb466;
  min-height: 52px;
  max-width: 100%;
  padding: 10px 20px;
  border: 0;
  border-radius: 16px;
  background: var(--action-fill);
  color: #22152b;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}
.primary:not([hidden]), .world-enter:not([hidden]) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
@media (hover: hover) {
  :is(.primary, .world-enter):hover:not(:disabled) { background: var(--action-darker); }
}
:is(.primary, .world-enter):active:not(:disabled) { background: var(--action-darker); }
.primary:disabled { opacity: .45; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; vertical-align: middle; }
.icon-button { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; border-radius: 10px; background: #252239; color: #ffdb9a; }
.icon-button:hover:not(:disabled) { background: #42314a; }
.icon-button:disabled { opacity: .38; }
.quiet { background: transparent; border: 0; font-weight: 700; color: var(--muted); padding: 8px 3px; min-height: 40px; }
.quiet:hover { color: white; }
.screen-bar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(4px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 4px max(12px, env(safe-area-inset-left)); }
.draft, .battle { min-height: 100dvh; background: radial-gradient(ellipse at 50% 0%, #332341, var(--ink) 68%); }
.draft-heading { text-align: center; padding: 5px 14px 14px; }
.draft-heading h1 { font: 700 clamp(35px, 5vw, 60px)/1.05 var(--font-title); padding: 6px 0 8px; letter-spacing: -.02em; }
.draft-heading p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.mode { display: inline-flex; margin-top: 7px; gap: 4px; padding: 4px; border-radius: 14px; background: #111225b0; }
.mode button { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; border-radius: 10px; padding: 6px 10px; color: var(--muted); min-height: 40px; font-size: 13px; }
.mode button[aria-pressed=true] { background: #403047; color: #ffe7b9; }
.draft-heading .draft-turn { padding-top: 10px; color: #ffda91; font-weight: 700; }
.roster { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; max-width: 900px; margin: auto; padding: 0 14px; }
.wizard-card { text-align: center; position: relative; display: grid; align-content: start; gap: 4px; min-width: 0; padding: 9px; background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 72%); border: 0; border-radius: 14px; }
.wizard-card:disabled:not(.claimed) { opacity: .55; }
.wizard-card.claimed { background: transparent; color: #bfc0cd; }
.wizard-card.claimed img { filter: grayscale(1); opacity: .53; }
.wizard-card.claimed .spell-name, .wizard-card.claimed .wizard-detail { color: #9b9aac; }
.wizard-card img { justify-self: center; width: 100%; height: clamp(75px, 14vw, 125px); object-fit: contain; image-rendering: pixelated; }
.wizard-card strong { font: 700 23px/1 var(--font-title); }
.spell-name { color: var(--accent); font: 700 11px/1.3 var(--font-body); }
.wizard-detail { color: var(--muted); font-size: 11px; line-height: 1.35; }
.pick-number { position: absolute; top: 8px; right: 8px; color: #ffdc99; font: 700 11px var(--font-body); }
.draft-footer { padding: 15px 14px 23px; max-width: 900px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.arena { position: relative; overflow: hidden; height: clamp(266px, calc(100dvh - 265px), 850px); background: #181736 url('assets/arena.webp') center 60% / cover; isolation: isolate; }
.arena::before { position: absolute; inset: 0; content: ''; z-index: -1; background: linear-gradient(0deg,#080b2360, transparent 60%); }
.combatant { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -100%); width: clamp(67px, 13.5vw, 163px); aspect-ratio: 1 / 1; border: 0; background: transparent; padding: 0; isolation: isolate; }
.unit-art, .unit-art img { display: block; width: 100%; height: 100%; }
.unit-art img { transform: scaleX(var(--face)); object-fit: contain; object-position: center bottom; image-rendering: pixelated; filter: drop-shadow(0 1px 0 #17172d); }
.shadow { position: absolute; z-index: -1; bottom: 1%; left: 17%; width: 66%; height: 10%; background: #080a1699; border-radius: 50%; }
.unit-name { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); font: 700 11px/1 var(--font-title); text-shadow: 0 1px #121123, 1px 1px #121123, -1px -1px #121123; }
.combatant.active .unit-name, .combatant.targetable .unit-name { color: #fff4ae; }
.combatant.active .shadow {
  background: radial-gradient(ellipse, var(--accent) 0%, transparent 72%);
  outline: 2px solid var(--accent);
  box-shadow: 0 0 7px 2px var(--accent), inset 0 0 4px #fff9df;
  animation: turn-glow .95s ease-in-out infinite alternate;
}
.combatant.targetable { outline: 1px dashed #f6d4fe99; background: #b88de415; z-index: 2; }
.combatant.targetable:hover { background: #b88de451; }
.combatant.defeated .unit-art { opacity: .3; filter: grayscale(); transform: translateY(5%) scaleY(.83); }
.combatant.defeated .unit-name { opacity: .48; }
.shield, .weak { position: absolute; bottom: 10px; right: 3px; font-size: 12px; color: #9dfbff; text-shadow: 1px 1px #111; }
.weak { left: 3px; right: auto; color: #ffc872; }
.casting .unit-art { animation: cast .72s ease-out both; }
.hit .unit-art { animation: hit .46s steps(1) both; }
.boost .unit-art, .bracing .unit-art { animation: boost .51s ease-out both; }
.effects { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
.battle-note { display: flex; align-items: baseline; justify-content: space-between; gap: 7px 14px; flex-wrap: wrap; padding: 9px 14px; border-block: 1px solid #776587; background: #18152d; }
.battle-note h2 { font: 700 14px/1.3 var(--font-title); color: var(--gold); }
.battle-note p { color: var(--muted); font-size: 13px; }
.hud {
  display: grid;
  grid-template-columns: clamp(132px, 22%, 203px) minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  padding: 8px;
}
.hud-panel {
  min-width: 0;
  border: 2px solid #e9dfc2;
  border-radius: 6px;
  background: linear-gradient(180deg, #353e95, #19286b 42%, #0a153d 100%);
  box-shadow: inset 0 0 0 2px #7783bc, inset 0 0 0 4px #142454, 0 3px #040818;
  color: #fffaf0;
  font: 500 16px/1.1 var(--font-body);
  text-transform: uppercase;
  text-shadow: 2px 2px #070b20;
}
.actions { display: grid; gap: 1px; align-content: start; padding: 9px 9px 8px; }
.turn-clock { height: 8px; margin: 2px 2px 5px; overflow: hidden; border: 1px solid #a9b5eb; border-radius: 2px; background: #080f34; }
.turn-clock > span { display: block; height: 100%; background: #ffdc83; transform: scaleX(var(--remaining)); transform-origin: left; }
.turn-clock.urgent > span { background: #ff796f; }
.turn-clock[aria-hidden=true] { visibility: hidden; }
.command {
  position: relative;
  text-align: left;
  text-transform: inherit;
  border: 0;
  border-radius: 10px;
  background: #29366e;
  text-shadow: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 3px 4px 8px;
  min-height: 44px;
}
.command .icon { width: 15px; height: 15px; }
@media (hover: hover) {
  .command:hover:not(:disabled) { background: #212c5c; }
}
.command:active:not(:disabled), .command[aria-pressed=true] { background: #171f4d; color: #ffdc83; }
.command:disabled { color: #b1b7dd; opacity: .62; }
.party-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 11px; }
.status { min-width: 0; padding: 0 9px; }
.status + .status { border-left: 1px solid #c3caff5c; }
.status-heading, .status-unit { display: grid; grid-template-columns: minmax(58px, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 8px; padding-inline: 3px; }
.status-heading { color: #e0e5ff; font-size: 12px; padding-block: 3px 6px; }
.status-heading h2 { font-size: inherit; overflow-wrap: anywhere; }
.status-unit strong { font: inherit; }
.status-unit { min-height: 26px; padding-block: 4px; font-size: 14px; }
.status-unit.current { background: #080c359e; color: #ffdc83; }
.status-unit.knocked-out { color: #bbc0d9; }
.meter { display: grid; grid-template-columns: minmax(3ch, max-content) minmax(0, 1fr); gap: 4px; align-items: center; }
.meter-value { text-align: right; font-variant-numeric: tabular-nums; }
.track { height: 10px; padding: 1px; background: #060f2e; border: 1px solid #afafd4; border-radius: 3px; box-shadow: 0 1px #060c2b; overflow: hidden; }
.track i { display: block; height: 100%; background: linear-gradient(#c2ffad, #5cc575); }
.track.mp i { background: linear-gradient(#c2ecff, #639deb); }
.end { position: fixed; z-index: 10; inset: 0; display: flex; overflow: auto; padding: 60px 14px max(14px, env(safe-area-inset-bottom)); background: radial-gradient(ellipse at center, #27154f66, #080617e8); }
.duel-result { position: relative; isolation: isolate; width: min(100%, 620px); margin: auto; padding: clamp(12px, 3vw, 24px); text-align: center; border: 1px solid #d8ac766e; border-radius: 14px; background: radial-gradient(ellipse at 50% 0%, #5b3558, #25162f 53%, #141022); box-shadow: 0 0 65px #ac67ce3d, inset 0 0 0 3px #fcd39e10; animation: duel-arrive .45s ease-out both; }
.duel-portrait { height: clamp(50px, 16dvh, 113px); display: grid; place-items: center; background: radial-gradient(ellipse at 50% 87%, #ffdc8859, transparent 49%); }
.duel-portrait img { height: 100%; min-height: 0; max-width: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 0 10px #f6cb85a0); animation: duel-rise 1.65s cubic-bezier(.18,.72,.24,1) both; }
.duel-defeat .duel-portrait img { animation: none; filter: drop-shadow(0 0 8px #8e75c6a2); }
.duel-result h1 { color: #ffe6b0; font: 700 clamp(27px, 6vw, 52px)/1 var(--font-title); margin: 5px 0 12px; text-shadow: 0 2px 15px #d08bb84a; }
.duel-prizes { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; text-align: left; }
.duel-relic, .duel-xp { flex: 1 1 195px; border: 1px solid #e5b97942; border-radius: 8px; padding: 8px 10px; background: #110d20d4; }
.duel-relic { display: flex; align-items: center; gap: 10px; }
.duel-prizes h2 { font: 700 clamp(17px, 3vw, 22px)/1.13 var(--font-title); color: #ffe1a9; margin: 1px 0 3px; }
.duel-prizes p { color: #e4d4e8; font-size: 11px; }
.duel-prizes .prize-label { color: #ffcb87; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.relic-glyph { flex: 0 0 42px; display: grid; place-items: center; height: 42px; border: 1px solid #ffd99585; border-radius: 50%; background: radial-gradient(#886044, #362236); color: #ffe2a3; box-shadow: 0 0 13px #fdb56852; animation: relic-flight 1s .2s cubic-bezier(.13,.75,.2,1) both; }
.relic-glyph .icon { width: 24px; height: 24px; }
.xp-track { margin: 6px 0 4px; height: 7px; background: #090718; border: 1px solid #e5b97955; border-radius: 8px; overflow: hidden; }
.xp-track i { display: block; height: 100%; background: linear-gradient(90deg,#bc85eb,#ffcf7a,#fff3b6); transform: scaleX(var(--xp-to)); transform-origin: left; animation: duel-xp-fill 1s .48s ease-out both; }
.leveled { box-shadow: inset 0 0 16px #fab66e39; border-color: #e5b97991; }
.leveled .xp-track i { animation-name: duel-xp-level; }
.duel-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 10px; margin-top: 11px; }
.duel-sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; border-radius: inherit; }
.duel-sparks i, .castle-sparks i { position: absolute; left: var(--x); bottom: 5%; width: 5px; height: 5px; background: #ffe1a2; box-shadow: 0 0 8px #fcbf72; opacity: 0; transform: rotate(45deg); animation: rise-spark 1.6s var(--delay) ease-out both; }
@keyframes duel-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes duel-rise { 0% { opacity: 0; transform: translateY(20px); } 54% { transform: translateY(-9px); } 100% { opacity: 1; transform: none; } }
@keyframes relic-flight { 0% { opacity: 0; transform: translate(22px, 36px) scale(.48) rotate(28deg); } 65% { transform: translate(-3px, -6px) scale(1.12) rotate(-8deg); } 100% { opacity: 1; transform: none; } }
@keyframes duel-xp-fill { from { transform: scaleX(var(--xp-from)); } to { transform: scaleX(var(--xp-to)); } }
@keyframes duel-xp-level { 0% { transform: scaleX(var(--xp-from)); } 57% { transform: scaleX(1); } 58% { transform: scaleX(0); } 100% { transform: scaleX(var(--xp-to)); } }
@keyframes rise-spark { 0% { opacity: 0; } 23% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--sway), -155px) rotate(158deg); } }
@media (max-height: 450px) and (orientation: landscape) {
  .duel-result { padding: 10px 13px; }
  .duel-portrait { height: 55px; }
  .duel-result h1 { font-size: 32px; margin-bottom: 8px; }
  .duel-buttons { margin-top: 7px; }
}
dialog::backdrop { background: #060713b5; }
.game-nav {
  position: fixed;
  z-index: 12;
  top: max(4px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 2px 4px;
  background: #160f24e8;
  border: 1px solid #cfa66d67;
  border-radius: 13px;
  box-shadow: 0 3px 15px #080514a0;
}
.game-nav .nav-icon { position: relative; background: transparent; }
.nav-icon > span { display: none; }
.game-exit {
  position: fixed;
  z-index: 12;
  top: max(6px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  background: transparent;
  color: #fff4d9;
}
.game-exit[hidden] { display: none; }
.game-exit:hover:not(:disabled), .game-exit:focus-visible { background: #15122466; }
.game-nav .nav-icon:hover, .game-nav .nav-icon:focus-visible { background: #493149; }
.nav-icon[aria-current=page] { color: #fff0c4; background: #3a2941; }
.nav-icon.connected { color: #9ef5bd; }
.nav-icon::after {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  color: #ffe4ac;
  background: #1e152deb;
  border: 1px solid #927151;
  padding: 4px 7px;
  border-radius: 5px;
  font: 700 11px/1.2 var(--font-title);
  white-space: nowrap;
  content: attr(data-tooltip);
  pointer-events: none;
  opacity: 0;
}
.nav-icon:last-child::after { left: auto; right: 0; transform: none; }
.nav-icon:hover::after, .nav-icon:focus-visible::after { opacity: 1; }
.game-panel {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(100%, 420px);
  height: 100%;
  max-width: none;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid #927151;
  color: var(--paper);
  background: #1d172b;
  font: 14px/1.45 var(--font-body);
  overflow: auto;
  overscroll-behavior: contain;
}
.game-panel[open] { animation: menu-from-right .24s ease-out both; }
.game-panel header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 11px max(14px, env(safe-area-inset-left));
  background: #1d172b;
  border-bottom: 1px solid #a880604f;
}
.game-panel h2 { font: 700 clamp(18px, 5vw, 24px)/1.1 var(--font-title); color: #ffe0a0; }
.game-panel header button { background: transparent; }
.game-panel header button:hover { background: #34283f; }
.panel-content { display: grid; gap: 12px; padding: 16px max(14px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.panel-glyph { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: #ffe0a0; background: #372a43; }
.game-panel a { color: #ffda91; display: inline-block; margin-top: 7px; }
.game-panel [data-wallet-message]:empty { display: none; }
.game-panel [hidden] { display: none; }
.panel-identity { background: #292138; border-radius: 12px; padding: 11px 12px; }
.panel-account { color: #f4dba7; overflow-wrap: anywhere; font: 700 13px/1.4 var(--font-body); }
.panel-records { display: grid; gap: 7px; }
.panel-records p { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.panel-records .icon { width: 16px; height: 16px; margin-inline-end: 3px; color: var(--gold); }
.panel-records strong { color: var(--paper); }
.profile-relics { padding: 7px 0; border-bottom: 1px solid #e0b7a244; }
.profile-relics h3 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 6px; margin: 0; font-size: 14px; color: #ffe1a9; }
.profile-relics h3 span, .profile-relics p { font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.profile-relics ul { display: grid; gap: 4px; list-style: none; padding: 3px 0 0; margin: 0; }
.profile-relics li { display: flex; align-items: center; gap: 6px; }
.profile-relics li strong { margin-inline-start: auto; }
.profile-relics .icon { width: 15px; height: 15px; color: #ffcb87; }
.panel-sound::after { content: 'Off'; display: inline-block; margin-left: 6px; font-size: 12px; }
.panel-sound[aria-pressed=true]::after { content: 'On'; color: var(--gold); }
.panel-sound { justify-self: start; padding-inline: 9px; }
.help-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.help-steps li { display: flex; align-items: start; gap: 10px; padding: 9px; border-radius: 12px; background: #292138; }
.help-steps h3 { margin: 0 0 2px; color: #ffe0a0; font-size: 14px; }
.help-steps p { color: var(--muted); font-size: 13px; }
@keyframes menu-from-right { from { transform: translateX(100%); } }
@keyframes menu-from-bottom { from { transform: translateY(100%); } }
@media (max-width: 650px), (orientation: landscape) and (max-height: 520px) {
  .game-panel {
    inset: auto 0 0;
    width: 100%;
    height: auto;
    max-height: 86dvh;
    border: 0;
    border-top: 1px solid #927151;
    border-radius: 19px 19px 0 0;
  }
  .game-panel[open] { animation-name: menu-from-bottom; }
  .game-nav .nav-icon { min-width: 46px; min-height: 44px; align-content: center; gap: 3px; padding: 3px; }
  .nav-icon > .icon { width: 17px; height: 17px; }
  .nav-icon > span { display: block; font: 700 9px/1 var(--font-title); }
  .nav-icon::after { display: none; }
}
.battle .screen-bar { justify-content: flex-end; padding-inline-end: calc(max(8px, env(safe-area-inset-right)) + 52px); }
.rotate { color: var(--paper); background: #211c36; border: 0; border-radius: 16px; text-align: center; min-width: min(280px, 88vw); padding: 25px 18px 15px; }
.rotate > .icon { width: 43px; height: 43px; color: var(--gold); margin-bottom: 12px; }
.rotate p { font-size: 13px; color: var(--muted); margin: 8px 0; }
@media (max-width: 650px) {
  .rotate { position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: none; border-radius: 19px 19px 0 0; padding-bottom: max(15px, env(safe-area-inset-bottom)); }
  .rotate[open] { animation: menu-from-bottom .24s ease-out both; }
}
@keyframes turn-glow { from { opacity: .68; } to { opacity: 1; } }
@keyframes cast { 30% { transform: translate(calc(var(--face) * 9%), -7%) scale(1.06); filter: brightness(1.32); } }
@keyframes hit { 0%, 55% { transform: translateX(calc(var(--face) * -7%)); filter: brightness(1.5); } 25%, 80% { transform: translateX(0); filter: brightness(.9); } }
@keyframes boost { 45% { transform: translateY(-5%); filter: brightness(1.4); } }
@media (max-width: 740px) {
  .hud { grid-template-columns: clamp(104px, 29%, 145px) minmax(0, 1fr); gap: 5px; padding: 6px; }
  .actions { padding: 8px 5px; }
  .command { padding-left: 3px; gap: 4px; min-height: 44px; font-size: 13px; }
  .party-panel { grid-template-columns: minmax(0, 1fr); padding: 7px 6px; }
  .status { padding: 0; }
  .status + .status { border-left: 0; border-top: 1px solid #c3caff5c; padding-top: 4px; margin-top: 3px; }
  .status-heading, .status-unit { grid-template-columns: minmax(49px, .95fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 5px; }
  .status-unit { font-size: 12px; min-height: 19px; padding-block: 2px; }
  .status-heading { font-size: 10px; padding-bottom: 4px; }
  .meter { gap: 3px; }
  .track { height: 8px; }
}
@media (max-width: 475px) {
  .battle .screen-bar { min-height: 66px; align-items: end; justify-content: flex-start; }
  .screen-bar > span { font-size: 9px; letter-spacing: .09em; }
  .roster { grid-template-columns: 1fr 1fr; }
  .wizard-card { padding-inline: 8px; min-height: 135px; }
  .wizard-card strong { font-size: 21px; }
  .draft-footer .primary { padding-inline: 10px; gap: 7px; }
}
@media (max-width: 360px) {
  .game-exit { top: calc(max(4px, env(safe-area-inset-top)) + 52px); }
}
@media (max-width: 340px) {
  .hud { grid-template-columns: 99px minmax(0, 1fr); }
  .command { font-size: 12px; }
  .status-heading, .status-unit { gap: 3px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .draft-heading { padding-block: 0 4px; }
  .draft-heading h1 { font-size: clamp(27px, 5vh, 38px); padding: 0; }
  .draft-heading .draft-turn { padding-top: 4px; }
  .roster { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
  .wizard-card { padding: 5px 2px; }
  .wizard-card img { height: clamp(56px, 22dvh, 104px); }
  .wizard-card strong { font-size: 16px; }
  .wizard-detail { display: none; }
  .draft-footer { padding-block: 5px 10px; }
  .battle { display: flex; flex-direction: column; height: 100dvh; }
  .arena { flex: 1 0 124px; height: auto; min-height: 124px; container-type: size; }
  .combatant { width: clamp(43px, 47cqh, 118px); }
  .battle-note { padding-block: 4px; }
  .battle-note, .hud { flex: none; }
  .hud { grid-template-columns: clamp(168px, 31%, 240px) minmax(0, 1fr); padding: 5px; gap: 5px; }
  .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px 6px; }
  .actions .turn-clock { grid-column: 1 / -1; }
  .command { font-size: 12px; padding: 3px 6px; }
  .party-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px; }
  .status { padding: 0 4px; }
  .status + .status { border: 0; border-left: 1px solid #c3caff5c; margin: 0; }
  .status-heading, .status-unit { grid-template-columns: minmax(43px, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 3px; }
  .status-heading { font-size: 9px; }
  .status-unit { min-height: 18px; font-size: 10px; padding-block: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

.overworld {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: radial-gradient(ellipse at 52% 40%, #28362c, #0b101b 68%);
}
.world-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: max(5px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 5px max(12px, env(safe-area-inset-left));
}
.world-header h1 {
  text-align: center;
  color: #ffe0a0;
  font: 700 clamp(18px, 3vw, 27px)/1.1 var(--font-title);
}
.world-field { position: relative; display: grid; place-items: center; align-content: center; gap: 8px; padding-inline: 6px; padding-bottom: 18px; }
.world-map {
  position: relative;
  width: min(100%, 1160px, calc((100dvh - 98px) * 1.5));
  aspect-ratio: 3 / 2;
  isolation: isolate;
  overflow: hidden;
  background: #263e2e;
  border-radius: 5px;
  box-shadow: 0 12px 44px #050811b0;
}
.world-landscape { width: 100%; height: 100%; display: block; object-fit: fill; pointer-events: none; }
.world-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.world-castle { position: absolute; left: var(--map-x); top: var(--map-y); width: 9.4%; height: 22%; transform: translate(-50%, -100%); pointer-events: none; }
.world-castle img { display: block; width: 100%; height: 100%; image-rendering: pixelated; filter: brightness(.80) saturate(.82) drop-shadow(0 4px 6px #080611c2); transition: filter 1.1s ease; }
.castle-fog, .castle-sparks { position: absolute; inset: 0; }
.castle-fog { transition: opacity 1.3s ease, transform 1.5s ease; }
.castle-fog::before, .castle-fog::after { content: ''; position: absolute; inset: 25% -48% -2%; background: radial-gradient(ellipse 48% 25% at 50% 60%, #c8c7e79e, transparent), radial-gradient(ellipse 40% 23% at 34% 82%, #a28ec48c, transparent), radial-gradient(ellipse 38% 19% at 78% 83%, #b4a9cf9c, transparent); animation: castle-mist 6s ease-in-out infinite alternate; }
.castle-fog::after { transform: translateY(-17%); animation-delay: -3s; opacity: .68; }
.castle-sparks { display: none; }
.world-castle.revealed .castle-fog { opacity: 0; transform: translate(-47%, -10%) scale(1.5); }
.world-castle.revealed img { filter: brightness(1.26) saturate(1.12) drop-shadow(0 0 10px #ffd88e9c); }
.world-castle.revealed .castle-sparks { display: block; }
@keyframes castle-mist { from { translate: -13% 0; } to { translate: 14% 5%; } }
.world-clouds { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.world-cloud {
  --cloud-edge: polygon(0 61%, 7% 61%, 7% 45%, 16% 45%, 16% 29%, 25% 29%, 25% 14%, 38% 14%, 38% 4%, 51% 4%, 51% 12%, 61% 12%, 61% 25%, 73% 25%, 73% 38%, 84% 38%, 84% 49%, 94% 49%, 94% 63%, 100% 63%, 100% 82%, 91% 82%, 91% 92%, 74% 92%, 74% 100%, 42% 100%, 42% 92%, 18% 92%, 18% 84%, 6% 84%, 6% 76%, 0 76%);
  position: absolute;
  top: var(--cloud-top, 13%);
  left: -41%;
  width: 34%;
  height: 15%;
  animation: cloud-drift var(--cloud-time, 54s) var(--cloud-delay, -24s) linear infinite;
  filter: blur(.7px);
}
.world-cloud::before, .world-cloud::after {
  content: '';
  position: absolute;
  clip-path: var(--cloud-edge);
}
.world-cloud::before {
  inset: 0;
  background: linear-gradient(165deg, #f8eee9a0, #e3e2ef68 51%, #b2aed64b 88%, transparent);
}
.world-cloud::after {
  inset: 13% 11% 22% 8%;
  background: linear-gradient(160deg, #fff4ed45, transparent 78%);
}
.world-cloud:nth-child(2) { --cloud-top: 45%; --cloud-time: 69s; --cloud-delay: -58s; width: 26%; height: 12%; opacity: .77; }
.world-cloud:nth-child(3) { --cloud-top: 71%; --cloud-time: 82s; --cloud-delay: -33s; width: 37%; height: 12%; opacity: .66; }
@keyframes cloud-drift { from { left: -41%; } to { left: 106%; } }
@media (prefers-reduced-motion: reduce) {
  .world-cloud { left: 14%; }
  .world-cloud:nth-child(2) { left: 69%; }
  .world-cloud:nth-child(3) { left: 6%; }
}
.world-hero {
  position: absolute;
  left: var(--map-x);
  top: var(--map-y);
  z-index: 2;
  width: clamp(25px, 6%, 67px);
  transform: translate(-50%, -91%);
  pointer-events: none;
}
.world-hero::before { content: ''; position: absolute; inset: auto 14% 5%; height: 15%; background: #0b1219ae; border-radius: 50%; }
.world-hero img { position: relative; display: block; width: 100%; image-rendering: pixelated; transform: scaleX(var(--walk-face, 1)); }
.world-hero.walking img { animation: wizard-step .28s steps(2, jump-none) infinite; }
@keyframes wizard-step { 50% { transform: scaleX(var(--walk-face, 1)) translateY(-6%) rotate(4deg); } }
.world-enter { --action-fill: #ffdc8c; --action-darker: #eac576; }
.world-hero, .world-enter, .world-dpad { -webkit-user-select: none; user-select: none; }
.world-dpad { -webkit-user-select: none; user-select: none; }
.world-dpad { display: none; grid-template: repeat(2, 42px) / repeat(3, 42px); gap: 3px; touch-action: none; }
.world-dpad .icon-button { min-height: 42px; min-width: 42px; touch-action: none; background: #292541ed; }
.world-dpad .icon-button:active { background: #5b4568; }
.world-dpad [data-direction="up"] { grid-column: 2; }
.world-dpad [data-direction="left"] { grid-column: 1; grid-row: 2; }
.world-dpad [data-direction="down"] { grid-column: 2; grid-row: 2; }
.world-dpad [data-direction="right"] { grid-column: 3; grid-row: 2; }
.world-dpad [data-direction="up"] .icon { transform: rotate(-90deg); }
.world-dpad [data-direction="left"] .icon { transform: rotate(180deg); }
.world-dpad [data-direction="down"] .icon { transform: rotate(90deg); }
.world-help { margin: 0; color: #fff0c9; font-size: 12px; text-shadow: 0 1px 3px #080710; }
.world-notice {
  position: absolute;
  z-index: 4;
  bottom: max(15px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 440px);
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}
.arena-enter, .intro-enter { width: min(232px, calc(100% - 24px)); min-height: 56px; }
.arena-enter { position: absolute; z-index: 4; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.world-field:has(> .arena-enter:not([hidden])) .world-help,
.world-notice:has(.world-message:not([hidden])) .world-help { display: none; }
.world-message {
  background: #21142de8;
  color: #ffe4f8;
  border: 1px solid #bc93d7a0;
  box-shadow: 0 3px 16px #0b0716b0;
  border-radius: 8px;
  padding: 7px 13px;
}
.world-message strong { display: block; font: 700 clamp(16px, 3vw, 24px)/1.12 var(--font-title); color: #f0caff; }
.world-message span { display: block; margin-top: 3px; font-size: clamp(10px, 1.65vw, 14px); }
.castle-engage { margin-top: 7px; }
@media (prefers-reduced-motion: reduce) {
  .world-castle img, .castle-fog { transition: none; }
}
.overworld { display: block; height: 100dvh; overflow: hidden; }
.world-header { position: absolute; inset: 0 0 auto; z-index: 5; pointer-events: none; }
.world-header h1 { text-shadow: 0 2px 8px #080811, 0 1px 2px #080811; }
.world-field { position: absolute; inset: 0; display: block; padding: 0; }
.world-map { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.world-landscape { image-rendering: auto; }
.lore-overlay {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  justify-items: center;
  gap: clamp(10px, 2.6dvh, 24px);
  text-align: center;
  background: linear-gradient(0deg, #080610ef, #110a1ac2 45%, #0d08178c);
}
.has-lore .world-map { animation: glade-arrival 1.5s cubic-bezier(.2,.7,.3,1) both; }
.lore-heading { align-self: end; padding-inline: 12px; animation: lore-reveal .9s .4s ease-out both; }
.lore-heading h1 { color: #ffe0a0; font: 700 clamp(27px, 8.2vw, 108px)/.98 var(--font-title); letter-spacing: -.02em; text-shadow: 0 3px #392012, 0 8px 26px #08050c; }
.lore-heading > p { margin-top: 6px; color: #f9d68e; font: 700 clamp(12px, 2.6vw, 23px)/1.2 var(--font-title); letter-spacing: .13em; }
.lore-scroll {
  align-self: start;
  width: min(92%, 620px);
  color: #f9e6ca;
  font: 400 clamp(12px, 2.4vw, 20px)/1.45 var(--font-body);
  text-shadow: 0 2px 4px #080611;
  padding: 6px 4px;
  animation: lore-reveal 3.4s .8s cubic-bezier(.18,.7,.3,1) both;
}
.lore-scroll p + p { margin-top: .39em; }
@keyframes glade-arrival { from { transform: scale(1.07); opacity: .35; } to { transform: scale(1); opacity: 1; } }
@keyframes lore-reveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@media (orientation: portrait) {
  .world-field { background: linear-gradient(#0d0c1db0,#130c1ecf), url('assets/wizard-glade.webp') center / cover; }
  .world-map { position: absolute; top: 50%; transform: translateY(-50%); height: auto; aspect-ratio: 3 / 2; }
  .has-lore .world-map { animation: none; }
}
@media (any-pointer: coarse) {
  .world-dpad { position: absolute; display: grid; left: max(10px, env(safe-area-inset-left)); bottom: max(13px, env(safe-area-inset-bottom)); z-index: 5; }
  .world-help { display: none; }
  .world-notice { bottom: max(15px, env(safe-area-inset-bottom)); }
}
@media (orientation: portrait) and (any-pointer: coarse) {
  .world-notice { bottom: max(113px, calc(env(safe-area-inset-bottom) + 100px)); }
}
@media (orientation: landscape) and (any-pointer: coarse) {
  .world-notice { width: min(440px, calc(100% - 300px)); }
}
.hud { grid-template-columns: minmax(0, 1fr) clamp(120px, 20%, 213px); grid-template-areas: "party commands"; }
.hud:has(.action-choice) { grid-template-columns: minmax(0, 1fr) clamp(120px, 20%, 213px) clamp(150px, 24%, 244px); grid-template-areas: "party commands choice"; }
.actions { grid-area: commands; }
.party-panel { grid-area: party; }
.action-choice { grid-area: choice; padding: 8px; display: grid; align-content: center; gap: 5px; min-width: 0; animation: battle-menu-in .18s ease-out both; }
@keyframes battle-menu-in { from { opacity: 0; transform: translateY(8px); } }
.level-choice { display: grid; align-content: center; gap: 3px; min-height: 48px; padding: 5px 9px; text-align: left; border-radius: 10px; background: #29366e; border: 0; color: #ffe0a8; font: 700 12px/1.1 var(--font-body); text-shadow: none; }
.level-choice span { color: #e3e5fc; font-size: 10px; }
.level-choice:disabled { opacity: .45; }
@media (hover: hover) {
  .level-choice:hover:not(:disabled) { background: #212c5c; }
}
.level-choice:active:not(:disabled) { background: #171f4d; }
.action-choice .cancel { min-height: 29px; font: 700 12px var(--font-title); padding: 3px; }
.target-label { color: #ffe0a8; text-transform: none; text-align: center; font: 700 13px var(--font-body); }
.spell-glow img { filter: drop-shadow(0 0 5px var(--spell-glow)) drop-shadow(0 0 12px var(--spell-glow)); }
.boost img { filter: drop-shadow(0 0 8px #8affb7) drop-shadow(0 0 13px #b2ffcb); }
.hit img { filter: drop-shadow(0 0 7px #ecf1ff); }
@media (max-width: 650px) and (orientation: portrait) {
  .hud, .hud:has(.action-choice) { grid-template-columns: minmax(0, 1fr) clamp(101px, 30%, 155px); grid-template-areas: "party commands"; }
}
@media (max-width: 650px) and (orientation: portrait), (orientation: landscape) and (max-height: 520px) {
  .hud:has(.action-choice) { grid-template-columns: minmax(0, 1fr) clamp(101px, 30%, 213px); grid-template-areas: "party commands" "choice choice"; }
  .action-choice { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: center; }
  .action-choice .cancel { min-height: 44px; padding-inline: 7px; }
  .target-label { grid-column: span 2; }
}

.world-message.holder-message {
  background: #2e2016f2;
  border-color: #ffe093;
  box-shadow: 0 0 22px #ffcc5f70;
  color: #fff1d2;
}
.holder-message strong { color: #ffe093; }
.wizard-card.holder-wizard:not(.claimed) { background: radial-gradient(ellipse at 50% 45%, #ffc65e39, transparent 70%); }
.game-panel [data-holder-status] { margin-top: 4px; color: #ffe0a0; }

.castle-message .castle-engage span { display: inline; margin: 0; font-size: inherit; }
.castle-interior {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 38%, #2d1b39, #100b19 62%, #07060c);
}
.castle-heading { position: absolute; z-index: 4; top: 60px; inset-inline: 12px; text-align: center; pointer-events: none; }
.castle-heading h1 { font: 700 clamp(19px, 3.4vw, 34px)/1.05 var(--font-title); color: #f5d49c; text-shadow: 0 2px #1b0b19, 0 0 15px #100915; }
.castle-floor {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, calc(100dvh * 1.5), 1440px);
  aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%);
  isolation: isolate;
}
.castle-floor canvas { position: absolute; width: 100%; height: 100%; image-rendering: pixelated; }
.castle-floor::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 6vw 3vw #0a0813; }
.castle-floor .world-hero, .castle-keeper { width: 4.8%; }
.castle-decor { position: absolute; inset: 0; pointer-events: none; }
.castle-torch, .castle-marker, .castle-keeper, .castle-dial, .castle-ferry, .castle-lantern {
  position: absolute;
  left: var(--map-x);
  top: var(--map-y);
  transform: translate(-50%, -50%);
}
.castle-keeper { transform: translate(-50%, -89%); animation: keeper-breathe 3s ease-in-out infinite; }
.castle-keeper img { display: block; width: 100%; image-rendering: pixelated; filter: drop-shadow(0 0 6px #d1854ba8); }
.castle-torch { width: 10%; height: 14%; background: radial-gradient(ellipse, #ffb25b52, #ec8a3030 29%, transparent 70%); animation: castle-torch 2.8s var(--flicker) ease-in-out infinite alternate; mix-blend-mode: screen; }
.castle-marker { z-index: 4; color: #ffe1a6; filter: drop-shadow(0 0 4px #100916); animation: castle-marker 1.5s ease-in-out infinite alternate; pointer-events: none; }
.castle-marker .icon { width: clamp(12px, 2.6vw, 22px); height: auto; }
.castle-dial, .castle-lantern { width: 9%; height: 13%; border-radius: 50%; background: radial-gradient(ellipse, #e2bbf655, transparent 68%); }
.castle-dial.lit { background: conic-gradient(from 0deg, transparent, #b9d9fa76, transparent, #b9d9fa76, transparent); animation: dial-spin 8s linear infinite; }
.castle-lantern { width: 7%; height: 12%; opacity: 0; }
.castle-lantern.lit { opacity: 1; background: radial-gradient(ellipse, #ffe49cc0, #f2a84a59 35%, transparent 67%); animation: castle-torch 1.8s ease-in-out infinite alternate; }
.castle-water { position: absolute; inset: 21% 30%; background: repeating-linear-gradient(177deg, transparent 0 14px, #84c8e115 16px, transparent 19px 26px); animation: cistern-ripples 5s ease-in-out infinite alternate; mask-image: radial-gradient(ellipse, #000 45%, transparent 78%); }
.castle-ferry { width: 8%; height: 5%; border: 2px solid #ba9068; border-radius: 60% 55% 50% 60%; background: repeating-linear-gradient(0deg, #4e2c38 0 3px, #785447 4px 5px); box-shadow: inset 0 0 0 2px #412c3a, 0 4px 9px #061021; transition: left .72s ease-in-out; }
.castle-ferry::after { content: ''; position: absolute; top: 50%; left: 25%; width: 50%; height: 2px; background: #d29b68; transform: rotate(-18deg); }
.castle-floor .ferry-rider { transition: left .72s ease-in-out; }
.castle-hint {
  position: absolute; z-index: 5; inset: auto 12px max(12px, env(safe-area-inset-bottom));
  width: fit-content; max-width: min(78%, 600px); min-height: 46px;
  margin-inline: auto; padding: 8px 13px; text-align: center;
  color: #f5e7d5; background: #21152cec; border: 1px solid #b18a8b83; border-radius: 8px;
  box-shadow: 0 5px 22px #070510ac; font-size: clamp(12px, 2vw, 15px);
}
.castle-hint button { margin-top: 7px; }
@keyframes castle-torch { from { opacity: .55; } to { opacity: .96; transform: translate(-50%, -50%) scale(1.15); } }
@keyframes castle-marker { from { translate: 0 -26px; } to { translate: 0 -19px; } }
@keyframes keeper-breathe { 50% { translate: 0 2px; } }
@keyframes dial-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes cistern-ripples { to { translate: 0 5px; opacity: .45; } }
@media (any-pointer: coarse) and (orientation: landscape) {
  .castle-hint { max-width: min(calc(100% - 158px), 550px); margin-left: max(138px, calc((100% - 550px) / 2 - 12px)); }
}
@media (any-pointer: coarse) and (orientation: portrait) {
  .castle-hint { bottom: max(111px, calc(env(safe-area-inset-bottom) + 100px)); max-width: 92%; }
}
@media (max-height: 475px) and (orientation: landscape) {
  .castle-heading { top: 53px; text-align: left; }
  .castle-heading h1 { font-size: clamp(14px, 2.8vw, 19px); }
  .castle-floor { width: min(100%, calc((100dvh - 96px) * 1.5)); }
}
@media (prefers-reduced-motion: reduce) {
  .castle-ferry, .castle-floor .ferry-rider { transition: none; }
  .castle-marker { translate: 0 -22px; }
}

.world-library {
  position: absolute;
  left: var(--map-x);
  top: var(--map-y);
  width: 13%;
  height: 18%;
  transform: translate(-50%, -100%);
  pointer-events: none;
}
.world-library img { position: relative; display: block; width: 100%; height: 100%; object-fit: fill; image-rendering: pixelated; filter: drop-shadow(0 4px 4px #06111b9e); }
.library-ring {
  position: absolute; inset: auto -12% -10%; height: 38%; border: 1px solid #8df6f3b0; border-radius: 50%;
  background: radial-gradient(ellipse, #a0f7f240, #51d4ec30 45%, transparent 73%);
  box-shadow: 0 0 16px #4bdfe978, inset 0 0 9px #dbc37c55;
  animation: library-glow 3s ease-in-out infinite alternate;
}
.library-motes { position: absolute; inset: 0 -10%; }
.library-motes i {
  position: absolute; left: var(--mote-x); bottom: 14%; width: 4px; height: 4px;
  background: #b6fff3; box-shadow: 0 0 7px #71eaff; rotate: 45deg;
  animation: library-mote 4.2s var(--mote-delay) ease-in-out infinite;
}
.library-motes i:nth-child(2n) { background: #ffe2a0; box-shadow: 0 0 7px #ffbe63; }
@keyframes library-mote { 0%, 100% { opacity: 0; } 35% { opacity: 1; } 100% { translate: 9px -46px; } }
@keyframes library-glow { from { opacity: .55; } to { opacity: 1; } }
.library-interior { background: radial-gradient(ellipse at 50% 45%, #213b4a, #101625 64%, #090d16); }
.library-light {
  position: absolute; left: var(--map-x); top: var(--map-y); width: 20%; height: 25%;
  transform: translate(-50%, -50%); background: radial-gradient(ellipse, #45e3ee4d, transparent 70%);
  animation: library-glow 3s ease-in-out infinite alternate; pointer-events: none;
}
.library-folio { width: 10%; height: 13%; }
.library-runes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.library-runes button { display: grid; justify-items: center; gap: 6px; min-height: 64px; padding: 8px 3px; border-radius: 10px; background: #302840; color: var(--gold); }
.library-runes button:hover:not(:disabled) { background: #403653; }
.library-status { color: #a4faf4; }

.mode button:disabled { opacity: .48; }
.draft-heading .pvp-hint { margin-top: 5px; font-size: 12px; }
.panel-guide > h3 { margin: 0; color: var(--gold); }
.rankings { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.rankings li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; background: #292138; }
.rankings .ranking-you { background: #3b3047; }
.ranking-number { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: #44334d; color: var(--gold); }
.rankings small { display: block; color: var(--muted); }
.practice-result { color: var(--muted); margin: 8px 0; }
