/* ═══════════════════════════════════════════════════════════════
   SPIN CLASH — standalone "night stadium" look: a broadcast-style
   scoreboard, neon hexagon controls and angular cards. It shares
   nothing with the arcade's comic theme on purpose.
   ═══════════════════════════════════════════════════════════════ */

@font-face { font-family: "Anton"; src: url("/fonts/anton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/fonts/rubik.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #07060f;
  --panel: rgba(12, 11, 26, 0.78);
  --edge: rgba(120, 220, 255, 0.35);
  --cyan: #2ee6ff;
  --pink: #ff2e88;
  --gold: #ffd23f;
  --text: #f4f6ff;
  --dim: rgba(220, 228, 255, 0.62);
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Rubik", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--body); }
button, a { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
img { -webkit-user-drag: none; user-select: none; }

.arena {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  background:
    radial-gradient(60% 45% at 50% 52%, rgba(46, 230, 255, 0.12), transparent 70%),
    radial-gradient(90% 60% at 50% 110%, rgba(255, 46, 136, 0.16), transparent 70%),
    linear-gradient(#0c0a1f, #05040b);
}
#board { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* ── Hexagon buttons ───────────────────────────────────────── */

.hex {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: url("/assets/ui/button_hexagon.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 4px rgba(46, 230, 255, 0.55));
  cursor: pointer;
  transition: transform 0.1s, filter 0.15s;
}
.hex img { width: 52%; height: 52%; object-fit: contain; pointer-events: none; }
.hex:active { transform: scale(0.9); }
.hex:hover { filter: drop-shadow(0 0 7px rgba(46, 230, 255, 0.9)); }
.hex--lg { width: 54px; height: 54px; }

/* ── Top HUD ───────────────────────────────────────────────── */

.hud {
  position: absolute;
  top: calc(var(--safe-top) + 8px);
  left: 8px;
  right: 8px;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}
.hud-side { display: flex; gap: 4px; pointer-events: auto; }

/* Broadcast scoreboard. */
.board {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2px;
  pointer-events: none;
}
.board-time {
  padding: 2px 16px 0;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(90deg, transparent, var(--panel) 18%, var(--panel) 82%, transparent);
  border-top: 2px solid var(--cyan);
  text-shadow: 0 0 12px rgba(46, 230, 255, 0.6);
  font-variant-numeric: tabular-nums;
}
.board-row {
  display: flex;
  gap: 1px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.board-row > span { padding: 2px 8px; background: var(--panel); }
.board-left { color: #fff; border-bottom: 2px solid var(--pink); }
.board-left b { color: var(--pink); font-weight: 400; }
.board-best { color: var(--dim); border-bottom: 2px solid rgba(255, 210, 63, 0.7); }
.board-best b { color: var(--gold); font-weight: 400; }

/* ── Tags over the tops ────────────────────────────────────── */

.tags { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.tag {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 6px;
  margin-left: -17px;
  background: rgba(5, 4, 12, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
  transform: skewX(-20deg);
  will-change: transform;
}
.tag i { display: block; height: 3px; background: var(--c, #fff); box-shadow: 0 0 6px var(--c, #fff); }
/* Ultimate charge: a thinner gold bar under the spin bar. */
.tag b { display: block; width: 0; height: 2px; margin-top: 1px; background: linear-gradient(90deg, #fff1a8, #ffd23f); box-shadow: 0 0 5px rgba(255, 210, 63, 0.9); }
.tag.is-ult { animation: ult-pop 0.6s ease-out; }
@keyframes ult-pop { from { filter: brightness(3) drop-shadow(0 0 6px #ffd23f); } }
.tag.is-me { width: 42px; margin-left: -21px; box-shadow: 0 0 0 1px #fff, 0 0 8px rgba(255, 255, 255, 0.6); }
.tag.is-me::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  width: 0;
  height: 0;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #fff;
  transform: skewX(20deg);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
}

/* ── Your spin meter ───────────────────────────────────────── */

.meter {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 226px);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}
.meter[hidden] { display: none; }
.meter-fx { display: flex; gap: 3px; min-width: 44px; }
.meter-fx i { width: 20px; height: 20px; }

/* Power-up glyphs (HUD + help). */
.pu { display: inline-block; width: 20px; height: 20px; background: var(--pc) center / 64% no-repeat; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.pu--giant { --pc: #ff8a1f; background-image: url("/assets/ui/icon_size_larger.png"); background-color: #ff8a1f; }
.pu--shield { background-image: url("/assets/ui/icon_shield.png"); background-color: #3aa0ff; }
.pu--heal { background-image: url("/assets/ui/icon_arrow_rotate.png"); background-color: #2fcf6a; }
.meter-fx .pu { animation: fx-pulse 0.8s ease-in-out infinite alternate; }
.meter-fx em { font-style: normal; font-family: var(--display); font-size: 13px; color: #ff8a1f; margin: 0 4px 0 1px; align-self: center; }
@keyframes fx-pulse { to { filter: brightness(1.35); } }

/* ── Callouts ──────────────────────────────────────────────── */

.callout {
  position: absolute;
  left: 0;
  right: 0;
  top: 34%;
  z-index: 8;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.callout[hidden] { display: none; }
.callout span {
  padding: 4px 26px;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(40px, 13vw, 76px);
  line-height: 1;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(90deg, transparent, rgba(255, 46, 136, 0.85) 20%, rgba(255, 46, 136, 0.85) 80%, transparent);
  text-shadow: 3px 3px 0 rgba(7, 6, 15, 0.85), 0 0 20px rgba(255, 255, 255, 0.35);
  transform: skewX(-8deg);
  animation: callout-in 0.42s cubic-bezier(0.2, 1.5, 0.35, 1);
  white-space: nowrap;
}
.callout.is-small span { font-size: clamp(22px, 7vw, 38px); padding: 3px 18px; }
.callout.is-cyan span { background: linear-gradient(90deg, transparent, rgba(0, 150, 190, 0.85) 20%, rgba(0, 150, 190, 0.85) 80%, transparent); }
.callout.is-gold span { background: linear-gradient(90deg, transparent, rgba(220, 160, 0, 0.9) 20%, rgba(220, 160, 0, 0.9) 80%, transparent); }
@keyframes callout-in {
  from { transform: skewX(-8deg) translateX(-40px) scale(1.4); opacity: 0; letter-spacing: 0.3em; }
  to { transform: skewX(-8deg); opacity: 1; }
}

/* ── Joystick ──────────────────────────────────────────────── */

.stick {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 34px);
  z-index: 6;
  width: 172px;
  height: 172px;
  margin-left: -86px;
  background: url("/assets/ui/joystick_hexagon_pad_a.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 6px rgba(46, 230, 255, 0.55));
  opacity: 0.7;
  touch-action: none;
}
/* Invisible slack around the pad so a thumb that lands a little off still grabs it. */
.stick::before { content: ""; position: absolute; inset: -36px; }
.stick-nub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  background: url("/assets/ui/joystick_hexagon_nub_a.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 6px rgba(255, 46, 136, 0.8));
  pointer-events: none;
  transition: transform 0.09s ease;
}
.stick.active { opacity: 1; }
.stick.active .stick-nub { transition: none; }
@media (hover: hover) and (pointer: fine) { .stick { display: none; } .meter { bottom: 34px; } }

.loading {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--display);
  letter-spacing: 0.2em;
  color: var(--dim);
  background: var(--bg);
  transition: opacity 0.4s;
}
.loading span {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(46, 230, 255, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading[hidden] { display: none; }

/* ── Cards ─────────────────────────────────────────────────── */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 2, 8, 0.66);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sheet[hidden] { display: none; }
.card {
  position: relative;
  width: min(360px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 22px 22px 20px;
  text-align: center;
  background: linear-gradient(160deg, rgba(26, 22, 56, 0.97), rgba(10, 8, 24, 0.97));
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  box-shadow: inset 0 0 0 1px var(--edge);
  animation: card-in 0.28s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 22px;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
}
@keyframes card-in { from { transform: translateY(14px) scale(0.96); opacity: 0; } }
.card-kicker { font-family: var(--display); font-size: 12px; letter-spacing: 0.3em; color: var(--cyan); }
.card-title {
  margin: 2px 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(255, 46, 136, 0.45);
}
.card--result.is-win .card-title { color: var(--gold); text-shadow: 0 0 22px rgba(255, 210, 63, 0.55); }
.card--result.is-win .card-kicker { color: var(--gold); }
.card-note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--dim); }
.card-note b { color: var(--text); }
.card-actions { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 16px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 6px; }
.stats div { padding: 8px 4px 6px; background: rgba(255, 255, 255, 0.05); }
.stats span { display: block; font-family: var(--display); font-size: 10px; letter-spacing: 0.2em; color: var(--dim); }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; }
#result-points { color: var(--gold); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: #07060f;
  background: linear-gradient(90deg, var(--cyan), #9af8ff);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}
.pill:hover { filter: brightness(1.12); }
.pill:active { transform: scale(0.96); }
.pill--ghost { color: var(--text); background: rgba(255, 255, 255, 0.1); }

.how { margin: 4px 0 0; padding: 0; list-style: none; text-align: left; }
.how li { position: relative; margin: 0 0 8px; padding-left: 16px; font-size: 13px; line-height: 1.45; color: var(--dim); }
.how li::before { content: ""; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; background: var(--pink); transform: skewX(-20deg); }
.how b { color: var(--text); }
.pu-key { display: grid; gap: 6px; margin: 10px 0 0; text-align: left; font-size: 12px; color: var(--dim); }
.pu-key span { display: flex; align-items: center; gap: 8px; }
.pu-key b { font-family: var(--display); font-weight: 400; letter-spacing: 0.08em; color: var(--text); }
.credits { margin: 12px 0 0; font-size: 10px; line-height: 1.4; color: rgba(220, 228, 255, 0.4); }

.name-input {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border: 0;
  font: 600 16px var(--body);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -2px 0 var(--cyan);
  outline: none;
}
.name-error { margin: 8px 0 0; font-size: 12px; color: #ff7ab5; }
.name-error[hidden] { display: none; }

/* ── Landscape phones ──────────────────────────────────────── */
@media (max-height: 500px) {
  .hud { top: 6px; }
  .hud-side { flex-direction: column; }
  .board-time { font-size: 24px; }
  .stick { left: calc(env(safe-area-inset-left, 0px) + 62px); bottom: 14px; margin-left: 0; width: 148px; height: 148px; }
  .meter { left: auto; right: 60px; bottom: 16px; transform: none; }
  .callout { top: 40%; }
  .card { padding: 16px 18px; }
  .card-title { font-size: 30px; }
}

/* Control icons (Mobile Controls pack, Kenney CC0) are masked rather than
   pasted in, so each one takes the colour and the box this skin already
   gives its own icons — the chrome still looks like this game's chrome. */
.tico { display: block; width: 14px; height: 14px; background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }

/* ═══════════════════════════════════════════════════════════════
   OPEN ARENA additions
   ═══════════════════════════════════════════════════════════════ */

body:not([data-state="playing"]) .play-only { display: none !important; }
#hud-main { white-space: nowrap; }
.meter { bottom: calc(var(--safe-bottom) + 220px); }

/* Name over each top's spin bar. */
.tag-name {
  position: absolute;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%) skewX(20deg);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 10px/1 var(--body);
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 2px #000, 0 0 4px rgba(0, 0, 0, 0.9);
  opacity: 0.85;
}
.tag.is-bot .tag-name { opacity: 0.55; font-weight: 500; }
.tag.is-me .tag-name { bottom: 15px; color: var(--gold); opacity: 1; font-size: 11px; }

/* Live board + kill feed, top right. */
.side {
  position: absolute;
  top: calc(var(--safe-top) + 66px);
  right: 8px;
  z-index: 9;
  width: 168px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.live-box { background: var(--panel); border-top: 2px solid var(--cyan); padding: 4px 0 3px; }
.live-head { display: flex; justify-content: space-between; padding: 0 8px 2px; font-family: var(--display); font-size: 10px; letter-spacing: 0.2em; color: var(--dim); }
.live-head span { letter-spacing: 0.05em; opacity: 0.7; }
.live { margin: 0; padding: 0; list-style: none; font-size: 11px; }
.live li { display: flex; align-items: center; gap: 6px; padding: 1px 8px; }
.live li span { width: 12px; color: var(--dim); font-family: var(--display); font-size: 10px; }
.live li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.live li em { font-style: normal; font-family: var(--display); color: var(--gold); }
.live li.is-me { background: rgba(255, 210, 63, 0.16); }
.live li.is-me b { color: var(--gold); }
.live li.is-out { opacity: 0.45; }
.bot-chip { margin-left: 4px; padding: 0 3px; font: 700 8px/12px var(--body); letter-spacing: 0.1em; color: var(--dim); border: 1px solid rgba(255, 255, 255, 0.25); vertical-align: 1px; }

.feed { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.feed-row {
  display: flex; gap: 5px; align-items: center; max-width: 100%;
  padding: 2px 7px; font-size: 11px; background: rgba(5, 4, 12, 0.7);
  animation: feed-in 0.25s ease-out; transition: opacity 0.6s;
}
.feed-row b { color: var(--c, #fff); font-weight: 700; max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row em { font-style: normal; font-family: var(--display); font-size: 9px; letter-spacing: 0.12em; color: var(--pink); }
.feed-row.is-me { box-shadow: inset 2px 0 0 var(--gold); }
.feed-row.is-old { opacity: 0; }
@keyframes feed-in { from { transform: translateX(20px); opacity: 0; } }

.pc-hint {
  position: absolute; left: 50%; bottom: 12px; z-index: 5; transform: translateX(-50%);
  font-family: var(--display); font-size: 11px; letter-spacing: 0.18em; color: var(--dim); opacity: 0.6;
  pointer-events: none; white-space: nowrap;
}
@media (hover: none), (pointer: coarse) { .pc-hint { display: none; } }

.conn {
  position: absolute; left: 50%; top: 40%; z-index: 11; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 10px 18px;
  font-family: var(--display); letter-spacing: 0.16em; font-size: 13px; color: var(--text);
  background: var(--panel); border-top: 2px solid var(--pink); white-space: nowrap;
}
.conn[hidden] { display: none; }
.conn span { width: 16px; height: 16px; border: 2px solid rgba(46, 230, 255, 0.2); border-top-color: var(--cyan); border-radius: 50%; animation: spin 0.6s linear infinite; }

/* ── Menu ──────────────────────────────────────────────────── */
.sheet--menu { background: rgba(3, 2, 8, 0.42); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.sheet--top { z-index: 40; }
.card--menu {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  text-align: left;
  padding: 20px 20px 18px;
}
@media (min-width: 720px) { .card--menu { grid-template-columns: 1.15fr 1fr; } }
.menu-col { min-width: 0; display: flex; flex-direction: column; }
.logo { font-size: 46px; margin-bottom: 2px; background: linear-gradient(90deg, #fff, #9af8ff 60%, #ff7ab5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-note.tight { margin: 0 0 4px; }
.field-label { margin: 14px 0 6px; font-family: var(--display); font-size: 11px; letter-spacing: 0.24em; color: var(--cyan); }
.name-input { margin-top: 0; }

.picker { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.preview-wrap { position: relative; background: radial-gradient(circle at 50% 60%, rgba(46, 230, 255, 0.14), rgba(255, 255, 255, 0.03) 70%); }
#preview { display: block; width: 100%; height: 100%; min-height: 128px; }
#model-blurb { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 10px; line-height: 1.2; color: var(--dim); padding: 0 4px; }
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.model {
  display: flex; flex-direction: column; gap: 2px; padding: 6px 7px 7px; border: 0; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: background 0.15s, box-shadow 0.15s;
}
.model:hover { background: rgba(255, 255, 255, 0.09); }
.model.is-on { background: rgba(46, 230, 255, 0.14); box-shadow: inset 0 0 0 2px var(--cyan); }
.model > b { font-family: var(--display); font-weight: 400; font-size: 14px; letter-spacing: 0.08em; margin-bottom: 1px; }
.stat { display: flex; align-items: center; gap: 5px; }
.stat small { width: 22px; font: 600 8px/1 var(--body); letter-spacing: 0.08em; color: var(--dim); }
.stat i { flex: 1; height: 4px; background: rgba(255, 255, 255, 0.1); position: relative; }
.stat i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: linear-gradient(90deg, var(--pink), var(--gold)); }
.swatches { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border: 0; padding: 0; cursor: pointer; background: var(--c); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); opacity: 0.7; transition: transform 0.12s, opacity 0.12s; }
.swatch:hover { opacity: 1; }
.swatch.is-on { opacity: 1; transform: scale(1.18); filter: drop-shadow(0 0 6px var(--c)); }
.pill--big { margin-top: 14px; min-height: 54px; font-size: 20px; width: 100%; background: linear-gradient(90deg, var(--pink), #ff7ab5); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.pill:disabled { filter: grayscale(0.6) brightness(0.7); cursor: wait; }

.lb { width: 100%; border-collapse: collapse; font-size: 13px; }
.lb th { font-family: var(--display); font-weight: 400; font-size: 10px; letter-spacing: 0.2em; color: var(--dim); text-align: left; padding: 4px 6px; }
.lb td { padding: 5px 6px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.lb td:first-child { width: 24px; font-family: var(--display); color: var(--dim); }
.lb td:nth-child(2) { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lb td:nth-child(3) { font-family: var(--display); color: var(--gold); font-size: 15px; }
.lb td:nth-child(4) { font-family: var(--display); color: var(--cyan); }
.lb th:nth-child(n+3), .lb td:nth-child(n+3) { text-align: right; width: 44px; }
.lb tbody tr:nth-child(1) td:first-child { color: var(--gold); }
.lb tbody tr:nth-child(2) td:first-child { color: #d9e2ff; }
.lb tbody tr:nth-child(3) td:first-child { color: #ff9a5a; }
.lb tr.is-me td { background: rgba(255, 210, 63, 0.12); }
.lb td.empty { text-align: center; color: var(--dim); font-size: 12px; padding: 18px 6px; }
.lb--small { margin-top: 14px; font-size: 12px; text-align: left; }
.lb--small td { padding: 3px 6px; }
.menu-col--board .credits { margin-top: auto; padding-top: 12px; }

.sheet--dead { background: rgba(3, 2, 8, 0.5); }
.card--result .card-note b { color: var(--gold); }

@media (max-width: 719px) {
  .menu-col--board { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 4px; }
  .logo { font-size: 40px; }
}
@media (max-width: 520px) {
  .side { width: 128px; top: calc(var(--safe-top) + 62px); }
  .live li:nth-child(n+6) { display: none; }
  .feed-row b { max-width: 44px; }
  .board-time { font-size: 24px; padding: 2px 10px 0; }
  .hex { width: 36px; height: 36px; }
}
@media (max-height: 500px) {
  .side { top: 8px; right: 54px; width: 150px; }
  .live li:nth-child(n+5) { display: none; }
  .meter { bottom: 16px; }
}
@media (hover: hover) and (pointer: fine) { .meter { bottom: 40px; } }
