/* World screens: District, City and the Hunt. Uses only the palette variables from app.css
   so everything here dims with the player's own lamp. Prefixes: w- shared, bh- Beacon hero,
   bc- building card, gd- garden, sq- squads, cm- city map, hu- hunt, ring- the battle ring. */

/* ================================================================ shared bits */
.w-avph { display: inline-block; background: var(--raised); }
.w-face { background: none; border: 0; padding: 0; display: inline-flex; border-radius: 50%; }
.w-faces { display: inline-flex; flex: none; }
.w-faces .w-face + .w-face { margin-left: -9px; }
.w-faces .av { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px var(--gold); }

.w-step { display: flex; align-items: center; gap: 10px; }
.w-step-b { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--raised); display: grid; place-items: center; color: var(--text); flex: none; }
.w-step-b:active { filter: brightness(1.2); }
.w-step-b[disabled] { opacity: .35; }
.w-step-v { flex: 1; text-align: center; font-size: 40px; line-height: 1; }
.w-step-max { flex: none; }

.w-range { width: 100%; height: 44px; accent-color: var(--gold); background: transparent; }
.w-feed { text-align: center; }
.w-feed-n { font: 700 44px/1 var(--display); }
.w-sheet-art { width: 64px; height: 64px; }

/* ================================================================ district */
.w-district { display: flex; flex-direction: column; gap: 12px; }

/* The Beacon hero: a night sky with a light that grows with the tank. */
.bh { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-soft); background: linear-gradient(180deg, #0a1222 0%, #0b1120 52%, var(--panel) 100%); margin: -2px 0 0; isolation: isolate; }
.bh-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bh-halo { position: absolute; left: 50%; top: 92px; width: 360px; height: 300px; margin-left: -180px; margin-top: -150px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 130, .55), rgba(255, 170, 70, .18) 45%, transparent 75%);
  opacity: var(--glow-a, .5); transform: scale(calc(.65 + var(--fill, .5) * .45)); transition: opacity .8s ease, transform .8s ease; animation: bh-breathe 5s ease-in-out infinite; }
.bh-beam { position: absolute; left: 50%; top: -40px; width: 140px; height: 150px; margin-left: -70px;
  background: linear-gradient(180deg, transparent, rgba(255, 223, 138, .14) 70%, rgba(255, 223, 138, .22));
  clip-path: polygon(30% 0, 70% 0, 58% 100%, 42% 100%); opacity: var(--glow-a, .5); }
.bh::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1px 1px at 12% 18%, #cfe3ff 50%, transparent 51%), radial-gradient(1px 1px at 82% 12%, #cfe3ff 50%, transparent 51%), radial-gradient(1px 1px at 66% 30%, #93a4bf 50%, transparent 51%), radial-gradient(1px 1px at 24% 36%, #93a4bf 50%, transparent 51%), radial-gradient(1.5px 1.5px at 90% 40%, #cfe3ff 50%, transparent 51%); }
@keyframes bh-breathe { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
.bh-top { position: relative; height: 178px; display: flex; justify-content: center; }
.bh-art { position: relative; width: 196px; height: 196px; margin-top: -6px; }
.bh-pic { width: 100%; height: 100%; filter: drop-shadow(0 0 calc(4px + var(--glow-a, .5) * 18px) rgba(255, 194, 71, calc(var(--glow-a, .5) * .55))); }
.bh-lv { position: absolute; top: 12px; left: 14px; display: flex; flex-direction: column; gap: 2px; }
.bh-lvn { font-size: 34px; line-height: .9; color: var(--gold-pale); }
.bh-body { position: relative; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.bh-state { text-align: center; font-size: 30px; color: var(--gold-pale); text-shadow: 0 0 18px var(--glow); }
.bh-count { text-align: center; margin-top: -8px; display: flex; justify-content: center; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bh-big { font-size: 26px; color: var(--text); }
.bh-tank { display: flex; flex-direction: column; gap: 6px; }
.bh-meter { height: 12px; }
.bh-meter > i { background: linear-gradient(90deg, var(--ember), var(--gold) 60%, var(--gold-pale)); box-shadow: 0 0 14px var(--glow); }
.bh-burn { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }
.bh-burn .ic { color: var(--ember); }
.bh-watch { min-width: 0; text-align: right; font-size: 12px; line-height: 1.25; }
.bh-actions { display: flex; gap: 8px; }
.bh-more { width: 52px; padding: 0; flex: none; }
.bh-plus { font-weight: 600; opacity: .7; }
.bh-rule { text-align: center; color: var(--muted); font-size: 14px; max-width: 300px; margin: 0 auto; }

/* dim: an ember that will not hold */
.bh-dim { border-color: rgba(255, 138, 60, .35); background: linear-gradient(180deg, #170d10 0%, #100b14 50%, var(--panel) 100%); }
.bh-dim .bh-halo { background: radial-gradient(closest-side, rgba(255, 120, 50, .5), rgba(255, 46, 136, .12) 50%, transparent 75%); opacity: .55; animation: gutter 2.6s infinite; }
.bh-dim .bh-beam { opacity: 0; }
.bh-dim .bh-pic { filter: drop-shadow(0 0 8px rgba(255, 120, 50, .5)) saturate(.8); animation: gutter 3.1s infinite; }
.bh-dim .bh-state, .bh-ember { color: var(--ember); text-shadow: 0 0 16px rgba(255, 120, 50, .45); }
.bh-dim .bh-big { color: #ffb38a; font-size: 30px; }
.bh-dim .bh-count { flex-direction: column; align-items: center; gap: 0; }
.bh-dim .bh-lvn { color: var(--ember); }

/* dark: the hero goes cold */
.bh-dark { background: linear-gradient(180deg, #080c15 0%, #0a0f19 60%, var(--panel) 100%); border-color: var(--line); }
.bh-dark .bh-halo { background: radial-gradient(closest-side, rgba(120, 140, 180, .14), transparent 70%); opacity: 1; animation: none; }
.bh-dark .bh-beam { opacity: 0; }
.bh-dark .bh-pic { filter: none; opacity: .85; }
.bh-dark .bh-state { color: var(--text); text-shadow: none; }
.bh-dark .bh-lvn { color: var(--muted); }
.bh-walk { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(255, 194, 71, .06); border: 1px solid rgba(255, 194, 71, .25); }
.bh-walking .bh-halo { background: radial-gradient(closest-side, rgba(255, 214, 130, .18), transparent 70%); animation: bh-breathe 2.4s ease-in-out infinite; }

.w-ceil { display: flex; align-items: center; gap: 8px; padding: 2px 4px; flex-wrap: wrap; }
.w-ceil > .ic { color: var(--gold); align-self: flex-start; margin-top: 2px; }
.w-cu { margin-top: 6px; }
.w-darknote { display: flex; gap: 8px; align-items: flex-start; }

/* buildings */
.bcs { display: flex; flex-direction: column; gap: 8px; }
.bc { display: flex; gap: 12px; padding: 10px 12px 10px 6px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); }
.bc-run { border-color: rgba(255, 194, 71, .35); background: linear-gradient(90deg, rgba(255, 194, 71, .07), transparent 55%), var(--panel); }
.bc-art { width: 76px; flex: none; display: grid; place-items: center; }
.bc-pic { width: 84px; height: 84px; margin: -6px -4px; }
.bc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bc-lv { flex: none; font-size: 14px; color: var(--gold); padding: 2px 8px; border-radius: 6px; background: rgba(255, 194, 71, .1); }
.bc-blurb { font-size: 13px; color: var(--muted); line-height: 1.3; }
.bc-up { margin-top: 4px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 9px;
  background: rgba(255, 194, 71, .1); border: 1px solid rgba(255, 194, 71, .45); color: var(--gold-pale); text-align: left; }
.bc-up:active { filter: brightness(1.2); }
.bc-up.off { background: var(--deep); border-color: var(--line-soft); color: var(--faint); }
.bc-up-l { font: 700 14px/1.1 var(--display); letter-spacing: .03em; }
.bc-up-c { display: flex; gap: 8px; font: 600 12px/1 var(--display); color: var(--muted); flex-wrap: wrap; justify-content: flex-end; }
.bc-up-c > span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.bc-up-c .ic { width: 13px; height: 13px; }
.bc-up-c .short { color: #ff7fb5; }
.bc-prog { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.bc-runrow { gap: 8px; }
.bc-short { color: #ff7fb5; padding-left: 2px; }

/* sub cards */
.w-sub { display: flex; flex-direction: column; gap: 6px; }
.w-subhead { display: flex; align-items: center; gap: 10px; }
.w-subart { width: 52px; height: 52px; margin: -6px -2px -6px -6px; }

/* garden */
.gd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.gd-4 { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gd-2 { grid-template-columns: repeat(2, 1fr); }
.gd-tray { position: relative; min-height: 124px; border-radius: 12px; background: linear-gradient(180deg, #0a1020, #0d1726 70%, #142033); border: 1px solid var(--line-soft); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 6px 4px 8px; gap: 2px; overflow: hidden; }
.gd-tray::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 8px; border-radius: 6px 6px 0 0; background: #1b2840; }
.gd-pic { width: 64px; height: 64px; margin-bottom: auto; margin-top: 2px; }
.gd-name { font: 700 13px/1.1 var(--display); }
.gd-time { font-size: 13px; color: var(--muted); }
.gd-btn { width: 100%; position: relative; z-index: 1; min-height: 34px; }
.gd-tend { position: absolute; top: 6px; right: 6px; font: 700 11px/1 var(--display); color: var(--moss); background: rgba(123, 216, 143, .1); border-radius: 6px; padding: 3px 5px; }
.gd-ready { border-color: rgba(255, 194, 71, .45); box-shadow: inset 0 -30px 40px -30px var(--glow); }
.gd-ready .gd-pic { filter: drop-shadow(0 0 8px var(--glow)); }
.gd-empty { color: var(--faint); justify-content: center; border-style: dashed; border-color: var(--line); background: transparent; font: 700 13px/1 var(--display); gap: 6px; }
.gd-empty .ic { color: var(--moss); opacity: .7; }
.gd-empty[disabled] { opacity: .4; }
.w-plantrow[disabled] { opacity: .5; }
.w-plantpic { width: 48px; height: 48px; flex: none; }

/* squads */
.sq { display: flex; gap: 6px; margin-top: 2px; }
.sq-n { flex: 1; display: flex; flex-direction: column; }
.sq-n .num { font-size: 24px; line-height: 1.1; }
.sq-w { color: var(--ember); }
.sq-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--deep); gap: 2px; }
.sq-bar > i { display: block; min-width: 0; }
.sq-r { background: var(--gold); } .sq-a { background: var(--cyan); } .sq-wb { background: var(--ember); opacity: .8; } .sq-e { background: var(--line-soft); }
.sq-train { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }

/* watch */
.w-slots { display: flex; gap: 5px; }
.w-slots > i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); background: var(--deep); transform: rotate(45deg); }
.w-slots > i.on { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 8px rgba(92, 225, 255, .5); }

/* ================================================================ city */
.cm-pad { padding: 12px 12px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; }
.cm-head { padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.cm-name { color: var(--gold-pale); }
.cm-ceil { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cm-ceil .num { font-size: 22px; color: var(--gold); }
.cm-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.cm-stat { display: inline-flex; align-items: center; gap: 5px; }
.cm-stat b { color: var(--text); font-size: 15px; }
.cm-stat-on { margin-left: auto; }
.cm-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.cm-dot-lit { background: var(--gold); box-shadow: 0 0 8px var(--glow); }
.cm-dot-dim { background: var(--ember); opacity: .7; }
.cm-dot-dark { background: var(--line); }
.cm-dot-on { background: var(--moss); box-shadow: 0 0 6px var(--moss); animation: gutter 4s infinite; }

.cm-wrap { position: relative; height: min(58vh, 470px); min-height: 320px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); overflow: hidden; background: #060a13; }
.cm-map { position: absolute; inset: 0; touch-action: none; }
.cm-cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.cm-ov { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cm-ov > div { position: absolute; left: 0; top: 0; will-change: transform; transform-origin: 0 0; }
.cm-relay { display: flex; flex-direction: column; align-items: center; }
.cm-relay-pic { width: 34px; height: 68px; margin: -64px 0 0 -17px; filter: drop-shadow(0 0 12px rgba(255, 194, 71, .7)); }
.cm-relay span, .cm-sl-name { font: 700 11px/1 var(--display); letter-spacing: .04em; white-space: nowrap; margin-left: -50%; }
.cm-relay span { position: absolute; top: -84px; left: 0; transform: translateX(-50%); margin: 0; color: var(--gold-pale); text-shadow: 0 0 6px #000, 0 0 2px #000; }
.cm-sl-pic { width: 40px; height: 40px; margin: -36px 0 0 -20px; opacity: .9; }
.cm-sl-name { position: absolute; top: 8px; left: 0; transform: translateX(-50%); margin: 0; color: #c9b8ff; text-shadow: 0 0 6px #000, 0 0 2px #000; }
.cm-sl-stirring .cm-sl-pic { animation: cm-stir 3.2s ease-in-out infinite; }
.cm-sl-awake .cm-sl-pic { filter: drop-shadow(0 0 10px rgba(255, 46, 136, .8)); animation: cm-stir 1.6s ease-in-out infinite; }
.cm-sl-awake .cm-sl-name { color: #ff7fb5; }
@keyframes cm-stir { 0%, 100% { opacity: .75; filter: drop-shadow(0 0 2px rgba(92, 225, 255, .2)); } 50% { opacity: 1; filter: drop-shadow(0 0 12px rgba(92, 225, 255, .75)); } }
.cm-me span { position: absolute; top: -32px; left: 0; transform: translateX(-50%); padding: 3px 7px; border-radius: 6px; background: var(--gold); color: #1a1204; font: 700 11px/1 var(--display); letter-spacing: .04em; box-shadow: 0 0 12px var(--glow); }
.cm-me span::after { content: ""; position: absolute; left: 50%; bottom: -4px; margin-left: -4px; border: 4px solid transparent; border-bottom: 0; border-top-color: var(--gold); }
.cm-me-side span { top: -9px; left: auto; right: 12px; transform: none; }
.cm-me-side span::after { left: auto; right: -7px; bottom: auto; top: 50%; margin: -4px 0 0; border: 4px solid transparent; border-right: 0; border-left-color: var(--gold); }
.cm-me-dark span { background: var(--raised); color: var(--muted); box-shadow: none; }
.cm-me-dark span::after { border-top-color: var(--raised); }

.cm-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.cm-zb { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(16, 24, 39, .86); color: var(--text); display: grid; place-items: center; backdrop-filter: blur(4px); }
.cm-zb:active { background: var(--raised); }
.cm-zb:last-child { color: var(--gold); margin-top: 4px; }
.cm-legend { position: absolute; left: 10px; top: 10px; display: flex; gap: 10px; padding: 6px 9px; border-radius: 8px; background: rgba(7, 11, 20, .72); color: var(--muted); pointer-events: none; }
.cm-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cm-leg-sl .ic { color: #c9b8ff; }

.cm-card { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 14px; background: rgba(16, 24, 39, .95); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .55); animation: toast-in .18s ease; }
.cm-card-ic { width: 44px; height: 44px; display: grid; place-items: center; color: var(--gold); flex: none; }
.cm-card-sl { width: 48px; height: 48px; flex: none; }

.cm-relay-card .cm-rt { width: 30px; height: 60px; flex: none; filter: drop-shadow(0 0 10px var(--glow)); }
.cm-brow { gap: 10px; }
.cm-rank { width: 20px; text-align: center; color: var(--faint); font-size: 15px; flex: none; }
.cm-val { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.cm-val .num { font-size: 18px; line-height: 1.1; }
.cm-mine { background: linear-gradient(90deg, rgba(255, 194, 71, .08), transparent); }

/* ================================================================ hunt */
.hu-sl { position: relative; aspect-ratio: 1; }
.hu-sl > .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hu-sl-eyes { mix-blend-mode: screen; }
.hu-none, .hu-vote, .hu-sched, .hu-done, .hu-live { display: flex; flex-direction: column; gap: 12px; }

/* banner: the Sleeper looming behind the title */
.hu-banner { position: relative; height: 200px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-soft); background: #0a1120; display: flex; align-items: flex-end; }
.hu-banner .hu-sl-banner { position: absolute; width: 330px; right: -40px; top: -30px; opacity: .95; }
.hu-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 11, 20, .92) 0%, rgba(7, 11, 20, .55) 50%, transparent 80%), linear-gradient(0deg, rgba(7, 11, 20, .85), transparent 55%); }
.hu-banner-t { position: relative; z-index: 1; padding: 14px; display: flex; flex-direction: column; gap: 4px; max-width: 72%; }
.hu-banner-s { height: 176px; }
.hu-bigcount { font-size: 46px; line-height: .95; color: var(--gold-pale); text-shadow: 0 0 22px var(--glow); }
.hu-what { display: flex; flex-direction: column; gap: 8px; }
.hu-what b { font-family: var(--display); font-size: 16px; letter-spacing: .01em; }

.hu-call { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid rgba(255, 194, 71, .3); }
.hu-pace { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hu-pace-b { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--deep); display: flex; flex-direction: column; gap: 4px; min-height: 84px; }
.hu-pace-b b { font: 700 17px/1 var(--display); }
.hu-pace-b span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.hu-pace-b.on { border-color: var(--gold); background: rgba(255, 194, 71, .08); box-shadow: 0 0 0 1px var(--gold) inset; }
.hu-pace-b.on b { color: var(--gold); }
.hu-cool { text-align: center; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }

/* voting */
.hu-vstat { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.hu-vstat .right { text-align: right; }
.hu-slots { display: flex; flex-direction: column; gap: 8px; }
.hu-slot { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 10px 14px 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); text-align: left; transition: border-color .15s ease, background .15s ease; }
.hu-slot:active { transform: scale(.99); }
.hu-slot-chk { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: #1a1204; }
.hu-slot-chk .ic { width: 18px; height: 18px; }
.hu-slot-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hu-slot-clock { font-size: 28px; line-height: 1; }
.hu-slot-v { width: 64px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.hu-slot-v .num { font-size: 20px; line-height: 1; }
.hu-slot-bar { width: 100%; height: 5px; border-radius: 3px; background: var(--deep); overflow: hidden; }
.hu-slot-bar i { display: block; height: 100%; background: var(--cyan); border-radius: 3px; }
.hu-slot.on { border-color: var(--gold); background: linear-gradient(90deg, rgba(255, 194, 71, .12), rgba(255, 194, 71, .02)), var(--panel); }
.hu-slot.on .hu-slot-chk { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px var(--glow); }
.hu-slot.on .hu-slot-clock { color: var(--gold-pale); }

/* pledging */
.hu-pledge { display: flex; flex-direction: column; gap: 10px; }
.hu-stance { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hu-st { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--deep); text-align: left; min-height: 104px; }
.hu-st b { font: 700 17px/1 var(--display); }
.hu-st span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.hu-st .ic { color: var(--muted); }
.hu-st.on { border-color: var(--gold); background: rgba(255, 194, 71, .08); box-shadow: 0 0 0 1px var(--gold) inset; }
.hu-st.on .ic, .hu-st.on b { color: var(--gold); }
.hu-st-strike.on { border-color: var(--ember); background: rgba(255, 138, 60, .08); box-shadow: 0 0 0 1px var(--ember) inset; }
.hu-st-strike.on .ic, .hu-st-strike.on b { color: var(--ember); }
.hu-draught { padding: 10px 12px; border-radius: 10px; background: var(--deep); border: 1px solid var(--line-soft); }
.hu-cost { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; opacity: .75; margin-left: 2px; }
.hu-faces { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hu-more { color: var(--muted); font-size: 14px; padding-left: 4px; }
.hu-note { display: flex; gap: 6px; justify-content: center; align-items: center; }
.hu-pledge-c .hu-st { min-height: 0; }
.hu-pledge-c .hu-st span { display: none; }

/* live: the top strip */
.hu-live { gap: 8px; }
.hu-top { display: flex; align-items: center; gap: 12px; }
.hu-round { display: flex; flex-direction: column; flex: none; }
.hu-round .num { font-size: 18px; line-height: 1; } .hu-round b { font-size: 28px; }
.hu-hp { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hu-hp-l { color: #ff7fb5; font-family: var(--display); font-weight: 700; letter-spacing: .04em; }
.hu-hp-m { height: 12px; border-radius: 6px; }
.hu-hp-m > i { border-radius: 6px; box-shadow: 0 0 14px rgba(255, 46, 136, .55); }
.hu-clock { flex: none; width: 66px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.hu-clock .num { font-size: 22px; }
.hu-rt { height: 3px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.hu-rt > i { display: block; height: 100%; background: var(--muted); transition: width 1s linear; }
.hu-ringinfo { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }

/* the ring */
.ring { position: relative; width: 100%; max-width: 304px; margin: -2px auto 0; aspect-ratio: 1; }
.ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-w { stroke: #070b14; stroke-width: 2; }
.ring-w.none { fill: #121b2c; }
.ring-w.part { fill: url(#ring-part); }
.ring-w.fresh { fill: url(#ring-lit); filter: drop-shadow(0 0 10px rgba(255, 194, 71, .55)); }
.ring-w.still { fill: url(#ring-lit); fill-opacity: .42; }
.ring-w.mine { stroke: var(--text); stroke-width: 2.5; }
.ring-w.dest { stroke: var(--cyan); stroke-width: 2.5; stroke-dasharray: 6 5; }
.ring-w[data-act] { cursor: pointer; }
.ring-tgt { fill: var(--magenta); animation: ring-pulse 1.1s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(255, 46, 136, .9)); }
.ring-mine { fill: var(--text); opacity: .85; }
.ring-beam { animation: ring-pulse 1.6s ease-in-out infinite; }
@keyframes ring-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.ring-v { font: 700 12px/1 var(--display); fill: var(--muted); text-anchor: middle; }
.ring-v.fresh { fill: #3a2600; }
.ring-v.still { fill: var(--gold-pale); }
.ring-core { fill: #0a1120; stroke: #070b14; stroke-width: 4; }
.ring-core-edge { fill: none; stroke: rgba(92, 225, 255, .18); stroke-width: 1.5; }
.ring-core-edge.eyes-3 { stroke: rgba(255, 46, 136, .5); stroke-width: 2; }
.ring-pin { position: absolute; transform: translate(-50%, -50%); display: flex; pointer-events: none; }
.ring-p { position: relative; display: inline-flex; border-radius: 50%; }
.ring-p + .ring-p { margin-left: -10px; }
.ring-p .av { width: 30px; height: 30px; box-shadow: 0 0 0 2px #070b14; }
.ring-p.me .av { box-shadow: 0 0 0 2px var(--text), 0 0 10px rgba(255, 255, 255, .4); width: 34px; height: 34px; }
.ring-p.away .av { filter: grayscale(.7) brightness(.6); }
.ring-p.acted::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px #070b14; }
.ring-aux { width: 30px; height: 30px; border-radius: 50%; background: #16213a; box-shadow: 0 0 0 2px #070b14; display: grid; place-items: center; color: var(--cyan); }
.ring-aux .ic { width: 20px; height: 20px; }
.ring-more { width: 26px; height: 26px; border-radius: 50%; background: var(--raised); box-shadow: 0 0 0 2px #070b14; font-size: 11px; display: grid; place-items: center; align-self: center; }
.ring-you { position: absolute; transform: translate(-50%, 0); font: 700 11px/1 var(--display); letter-spacing: .06em; color: var(--text); padding: 3px 7px; border-radius: 5px; background: rgba(7, 11, 20, .8); pointer-events: none; }
.ring-tlabel { position: absolute; transform: translate(-50%, -50%); font: 700 11px/1 var(--display); color: #ff7fb5; white-space: nowrap; padding: 3px 6px; border-radius: 5px; background: rgba(7, 11, 20, .85); border: 1px solid rgba(255, 46, 136, .5); pointer-events: none; animation: ring-pulse 1.1s ease-in-out infinite; }

/* orders */
.hu-orders { display: flex; flex-direction: column; gap: 8px; }
.hu-mv { display: flex; gap: 6px; }
.hu-mv-b { flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: flex; align-items: center; justify-content: center; gap: 4px; font: 700 15px/1 var(--display); }
.hu-mv-b.on { border-color: var(--cyan); color: var(--cyan); background: rgba(92, 225, 255, .1); }
.hu-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hu-act { min-height: 70px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 4px; }
.hu-act b { font: 700 17px/1 var(--display); letter-spacing: .02em; }
.hu-act span { font-size: 11px; color: var(--muted); line-height: 1.15; text-align: center; }
.hu-act .ic { color: var(--muted); }
.hu-act[disabled] { opacity: .4; }
.hu-act:active { transform: scale(.97); }
.hu-act-light.on { border-color: var(--gold); background: linear-gradient(180deg, rgba(255, 194, 71, .22), rgba(255, 194, 71, .06)); box-shadow: 0 0 18px -4px var(--glow); }
.hu-act-light.on .ic, .hu-act-light.on b { color: var(--gold); }
.hu-act-strike.on { border-color: var(--ember); background: linear-gradient(180deg, rgba(255, 138, 60, .22), rgba(255, 138, 60, .06)); }
.hu-act-strike.on .ic, .hu-act-strike.on b { color: var(--ember); }
.hu-act-brace.on { border-color: var(--cyan); background: linear-gradient(180deg, rgba(92, 225, 255, .18), rgba(92, 225, 255, .05)); }
.hu-act-brace.on .ic, .hu-act-brace.on b { color: var(--cyan); }
.hu-ab { display: flex; align-items: center; gap: 12px; text-align: left; padding: 7px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); min-height: 56px; line-height: 1.3; }
.hu-ab b { font: 700 15px/1 var(--display); }
.hu-ab-sw { width: 40px; height: 24px; border-radius: 12px; background: var(--deep); border: 1px solid var(--line); position: relative; flex: none; transition: background .15s ease; }
.hu-ab-sw i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .15s ease, background .15s ease; }
.hu-ab.on { border-color: var(--violet); background: rgba(157, 134, 214, .1); }
.hu-ab.on .hu-ab-sw { background: rgba(157, 134, 214, .35); border-color: var(--violet); }
.hu-ab.on .hu-ab-sw i { transform: translateX(16px); background: #fff; }
.hu-ab.cd { opacity: .55; }
.hu-sent { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-size: 13px; background: var(--deep); border: 1px solid var(--line-soft); }
.hu-sent .num { font-size: 16px; }
.hu-sent.ok { border-color: rgba(255, 194, 71, .35); }
.hu-sent.ok .ic { color: var(--gold); vertical-align: -3px; display: inline-block; }
.hu-sent.none { color: var(--muted); }

/* log */
.hu-log { margin-top: 14px; }
.hu-lg { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.hu-lg-r { width: 28px; flex: none; color: var(--faint); font-size: 14px; padding-top: 1px; }
.hu-lg-b { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.hu-l { font-size: 13px; color: var(--muted); line-height: 1.4; }
.hu-l-round { color: var(--text); }
.hu-l-lunge { color: #ff9cc4; }
.hu-l-ring { color: var(--gold-pale); }
.hu-l-flare { color: #c9b8ff; }
.hu-l-win { color: var(--gold); font-weight: 600; }
.hu-l-loss { color: var(--text); font-weight: 600; }
.hu-l-start { color: var(--text); }

/* done */
.hu-res { position: relative; height: 236px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-soft); background: #0a1120; display: flex; align-items: flex-end; }
.hu-res .hu-sl-banner { position: absolute; width: 380px; left: 50%; margin-left: -190px; top: -50px; }
.hu-res::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 11, 20, .96) 18%, rgba(7, 11, 20, .3) 60%, transparent); }
.hu-res-t { position: relative; z-index: 1; padding: 14px; display: flex; flex-direction: column; gap: 3px; }
.hu-res.won { border-color: rgba(255, 194, 71, .45); box-shadow: 0 0 30px -10px var(--glow); }
.hu-res.won .h1 { color: var(--gold-pale); text-shadow: 0 0 20px var(--glow); }
.hu-facts, .hu-mystats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hu-mystats { grid-template-columns: repeat(4, 1fr); margin: 6px 0; }
.hu-facts > div, .hu-mystats > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.hu-facts > div { padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-soft); }
.hu-facts .num, .hu-mystats .num { font-size: 26px; line-height: 1; }
.hu-wd { color: var(--ember); }
.hu-mineres { display: flex; flex-direction: column; gap: 6px; }
.hu-got { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; border-top: 1px solid var(--line-soft); }

.hu-ab-t { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.hu-ab-on { color: var(--violet); font-weight: 700; }
.ring-fade { fill: none; stroke: var(--gold-pale); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .9; animation: gutter 2.6s infinite; }
.hu-fade { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); line-height: 1.35; margin-top: -4px; }
.hu-fade-sw { flex: none; width: 18px; height: 10px; margin-top: 4px; border-radius: 3px; background: rgba(255, 194, 71, .35); border: 1.5px dashed var(--gold-pale); }
.gold-pale { color: var(--gold-pale); }
.hu-tw { color: #ff7fb5; text-align: right; }
.hu-tw.hot { color: var(--magenta); font-weight: 700; animation: ring-pulse 1.1s ease-in-out infinite; }
.hu-how { display: flex; flex-direction: column; gap: 10px; }
.hu-how-r { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.35; }
.hu-how-r .ic { color: var(--gold); margin-top: 1px; }
.hu-how-r b { color: var(--text); }
