/* ================= RUGSWEEPER: main menu hub, post-match, chapter card, skins ================= */

/* ---------- Skins (body classes from js/save.js; .prev-* for store previews) ---------- */

:is(.skin-tiles-matrix, .prev-tiles-matrix) .cell {
  background: #0d2416;
  border-color: #3dff8f #06331a #06331a #3dff8f;
}
:is(.skin-tiles-matrix, .prev-tiles-matrix) .cell.open,
:is(.skin-tiles-matrix, .prev-tiles-matrix) .cell.pressed {
  background: #03100a;
  border-color: #0f3d22;
}
:is(.skin-tiles-matrix, .prev-tiles-matrix) .cell.open:not(.hit) svg path { fill: #2fe07a; }
:is(.skin-tiles-matrix, .prev-tiles-matrix) .cell.hit { background: #ff0000; }
.skin-tiles-matrix .game { background: #0a1a10; border-color: #3dff8f #06331a #06331a #3dff8f; }
.skin-tiles-matrix .header,
.skin-tiles-matrix .board-wrap { border-color: #06331a #3dff8f #3dff8f #06331a; }

:is(.skin-tiles-gold, .prev-tiles-gold) .cell {
  background: linear-gradient(135deg, #ffe680, #e0a800);
  border-color: #fff6c2 #8a6400 #8a6400 #fff6c2;
}
:is(.skin-tiles-gold, .prev-tiles-gold) .cell.open,
:is(.skin-tiles-gold, .prev-tiles-gold) .cell.pressed {
  background: #f3e2a4;
  border-color: #b48f1e;
}
:is(.skin-tiles-gold, .prev-tiles-gold) .cell.hit { background: #ff0000; }
.skin-tiles-gold .game { background: #e8c24a; border-color: #fff6c2 #8a6400 #8a6400 #fff6c2; }
.skin-tiles-gold .header,
.skin-tiles-gold .board-wrap { border-color: #8a6400 #fff6c2 #fff6c2 #8a6400; }

.prev-tiles-diamond .cell {
  background: linear-gradient(135deg, #e8fbff, #8fd8f0);
  border-color: #fff #3d8fb0 #3d8fb0 #fff;
}
.prev-tiles-diamond .cell.open { background: #d9f4fb; border-color: #5aa9c4; }

/* Flags: closed cells only, so the red "3" stays red. */
:is(.skin-flag-green, .prev-flag-green) .cell:not(.open) svg path[fill="#ff0000"] { fill: #19d35a; }
:is(.skin-flag-pirate, .prev-flag-pirate) .cell:not(.open) svg path[fill="#ff0000"] { fill: #111; }
:is(.skin-flag-pirate, .prev-flag-pirate) .cell:not(.open):has(svg)::after {
  content: "";
  position: absolute;
  inset: calc(var(--u) * -2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath fill='white' d='M5 4h1v1H5zM8 4h1v1H8zM6 5h2v1H6zM5 6h1v1H5zM8 6h1v1H8z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* Big boards (chapter 2+): keep the comms flyout readable on small cells.
   (Subtitle size comes from --sub-font, set in js/main.js fitBoard.) */
.board-big.hud-board .comms { width: max(150px, calc(var(--u) * 60)); }
.board-big.hud-board .comms-name { font-size: max(9px, calc(var(--u) * 5.5)); }

/* ---------- Shared bits ---------- */

.hub-btn,
.pm-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #06140b;
  background: linear-gradient(180deg, #5effa0, #1fc061);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  cursor: pointer;
  touch-action: manipulation;
  transition: filter 0.15s, transform 0.15s;
}

.hub-btn:hover:not(:disabled),
.pm-continue:hover { filter: brightness(1.12); }
.hub-btn:active:not(:disabled) { transform: scale(0.97); }
.hub-btn:focus-visible,
.pm-continue:focus-visible,
.hm-item:focus-visible,
.hp-back:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.hub-btn.ghost {
  color: #dfe9e3;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hub-btn:disabled { cursor: default; opacity: 0.6; filter: grayscale(0.5); }
.hub-btn.small { min-height: 34px; padding: 6px 12px; font-size: 10px; }
.hub-btn small { display: block; font-size: 7.5px; letter-spacing: 0.16em; opacity: 0.8; }

.hub kbd,
.pm kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  margin: 0 2px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.pm-continue kbd { color: #06140b; border-color: rgba(0, 0, 0, 0.4); background: rgba(255, 255, 255, 0.25); }

/* ---------- Hub ---------- */

.hub {
  position: fixed;
  inset: 0;
  z-index: 44;
  overflow: hidden;
  background: #040607;
  color: #e9f3ee;
  user-select: none;
  -webkit-user-select: none;
}

.hub[hidden] { display: none; }

.hub-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 1000px;
  background: radial-gradient(ellipse at 60% 40%, #0f1a16, #040607 70%);
}

.hub-plane {
  --cell: 56px;
  --u: calc(var(--cell) / 16);
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(24 * var(--cell));
  height: calc(16 * var(--cell));
  margin: calc(-8 * var(--cell)) 0 0 calc(-12 * var(--cell));
  box-sizing: content-box;
  border: calc(var(--u) * 3) solid;
  border-color: #808080 #fff #fff #808080;
  box-shadow: 0 0 120px rgba(47, 224, 122, 0.18);
  will-change: transform;
  animation: hub-pan 46s ease-in-out infinite alternate;
}

@keyframes hub-pan {
  from { transform: translate3d(-6%, 7%, 0) rotateX(56deg) rotateZ(-31deg) scale(1.15); }
  to { transform: translate3d(6%, -5%, 0) rotateX(53deg) rotateZ(-22deg) scale(1.32); }
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 24), var(--cell));
  grid-auto-rows: var(--cell);
}

.hub-grid .cell { overflow: visible; }

.hb-pop {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: calc(var(--cell) * 0.42);
  color: var(--pump);
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(47, 224, 122, 0.8), 0 2px 0 #000;
  pointer-events: none;
  animation: hb-pop 1.8s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.hb-pop.big { color: var(--gold); font-size: calc(var(--cell) * 0.6); text-shadow: 0 0 14px rgba(255, 210, 26, 0.8), 0 2px 0 #000; }

@keyframes hb-pop {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.6); }
  15% { opacity: 1; transform: translate(-50%, -40%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -260%) scale(1); }
}

.hub-candles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.hc {
  position: absolute;
  bottom: -140px;
  left: var(--x);
  width: 9px;
  height: var(--h);
  opacity: 0.4;
  will-change: transform;
  animation: hc-rise var(--d) linear var(--delay) infinite;
}

.hc::before {
  content: "";
  position: absolute;
  left: 4px;
  width: 1px;
  top: -14px;
  bottom: -14px;
  background: inherit;
}

.hc.up { background: var(--pump); box-shadow: 0 0 12px rgba(47, 224, 122, 0.6); }
.hc.down { background: var(--dump); box-shadow: 0 0 12px rgba(255, 59, 74, 0.5); opacity: 0.28; }

@keyframes hc-rise {
  from { transform: translate3d(0, 0, 0) scale(var(--s)); }
  to { transform: translate3d(0, calc(-100vh - 280px), 0) scale(var(--s)); }
}

.hub-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 5, 6, 0.94) 0%, rgba(3, 5, 6, 0.7) 30%, rgba(3, 5, 6, 0.08) 62%),
    linear-gradient(180deg, rgba(3, 5, 6, 0.85) 0%, rgba(3, 5, 6, 0) 26%, rgba(3, 5, 6, 0) 70%, rgba(3, 5, 6, 0.9) 100%),
    radial-gradient(ellipse at 65% 45%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.75) 100%);
}

.hub-ui {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(290px, 380px) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas:
    "brand player"
    "menu panel"
    "hint panel"
    "hints panel";
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: 18px;
  padding: max(28px, env(safe-area-inset-top)) max(40px, env(safe-area-inset-right)) calc(52px + env(safe-area-inset-bottom)) max(40px, env(safe-area-inset-left));
}

.hub.intro .hub-brand { animation: hub-in 0.9s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hub.intro .hub-menu { animation: hub-in 0.9s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hub.intro .hub-top { animation: hub-in-r 0.9s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

@keyframes hub-in { from { opacity: 0; transform: translateX(-36px); } }
@keyframes hub-in-r { from { opacity: 0; transform: translateX(36px); } }

/* Brand */

.hub-brand { grid-area: brand; align-self: end; }

.hub-season {
  font-family: "Michroma", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--gold);
}

.hub-season b { font-weight: 400; color: var(--pump); margin-right: 6px; }

.hub-title {
  width: max-content;
  max-width: calc(100vw - 48px);
  white-space: nowrap;
  margin: 6px 0 4px;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: #eef4f0;
  background: linear-gradient(100deg, #e9f0eb 0%, #e9f0eb 42%, #ffffff 47%, #2fe07a 50%, #ffffff 53%, #e9f0eb 58%, #c9d6cf 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.55));
  animation: title-sheen 7s ease-in-out infinite;
}

@keyframes title-sheen {
  0%, 70% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.hub-goty {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.42em;
  color: #c8d4ce;
}

.hub-goty::after {
  content: "";
  flex: 1;
  height: 1px;
  max-width: 120px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* Top bar: the RTX switch (docked by js/hub.js, see css/rtx.css) and the player card */

.hub-top {
  grid-area: player;
  justify-self: end;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}

.hub-top .rtx-toggle { order: -1; }

/* In an open panel the switch sits at the right end of the header. */
.hp-head .rtx-toggle { margin-left: auto; margin-right: 4px; }

/* Player card */

.hub-player {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  padding: 10px 16px 10px 10px;
  background: linear-gradient(90deg, rgba(10, 16, 20, 0.85), rgba(10, 16, 20, 0.6));
  border-left: 3px solid var(--gold);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.pc-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 50% 40%, #1c2a24, #070b0a);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 26, 0.4);
  overflow: hidden;
}

.pc-avatar svg { width: 36px; height: 36px; overflow: visible; }
.pc-avatar svg rect { fill: #000; }
.pc-avatar.laser { box-shadow: inset 0 0 0 1px rgba(255, 40, 40, 0.7), 0 0 18px rgba(255, 30, 30, 0.35); }
.av-beam { filter: drop-shadow(0 0 1px #f00); animation: beam 0.12s steps(2) infinite; }

.pc-name { font-family: "Michroma", Arial, sans-serif; font-size: 12px; letter-spacing: 0.14em; }
.pc-name span { color: #6f8279; font-size: 9px; }
.pc-row { display: flex; align-items: center; gap: 8px; margin: 5px 0 4px; }

.pc-lv {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px 1px 2px;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #120d00;
  background: linear-gradient(180deg, #ffe680, var(--gold));
}

.pc-bar,
.cp-meter,
.bp-bar,
.ac-bar,
.cx-bar,
.pm-bar {
  position: relative;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  transform: skewX(-20deg);
  overflow: hidden;
}

.pc-bar { width: 130px; }

.pc-bar i,
.cp-meter i,
.bp-bar i,
.ac-bar i,
.cx-bar i,
.pm-bar i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #16b85c, var(--pump));
  transform-origin: left;
}

.pc-lv-ico { width: 20px; height: 20px; margin: -3px 0 -3px -2px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5)); }
.pc-sub { font-family: "Michroma", Arial, sans-serif; font-size: 8.5px; letter-spacing: 0.16em; color: #9fb3a8; }
.pc-diff { margin-top: 3px; font-family: "Michroma", Arial, sans-serif; font-size: 7.5px; letter-spacing: 0.16em; color: #6f8279; }
.pc-diff b { font-weight: 400; color: var(--gold); }

/* Menu */

.hub-menu { grid-area: menu; display: flex; flex-direction: column; transition: opacity 0.3s, transform 0.3s; }
.hub.panel-open .hub-menu { opacity: 0.38; transform: translateX(-8px); }

.hm-item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 7px 14px 7px 22px;
  border: 0;
  background: none;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.15;
  letter-spacing: 0.08em;
  color: rgba(232, 240, 236, 0.55);
  text-align: left;
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
  transition: color 0.15s;
}

.hm-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(47, 224, 122, 0.24), rgba(47, 224, 122, 0.06) 60%, rgba(47, 224, 122, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hm-mark {
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 4px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 210, 26, 0.8);
  transform: scaleY(0);
  transition: transform 0.2s;
}

.hm-label { position: relative; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }

.hm-sub {
  position: relative;
  margin-left: auto;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: rgba(255, 210, 26, 0.55);
  white-space: nowrap;
}

.hm-item.sel { color: #fff; }
.hm-item.sel::before { transform: scaleX(1); }
.hm-item.sel .hm-mark { transform: scaleY(1); }
.hm-item.sel .hm-label { transform: translateX(8px); text-shadow: 0 0 18px rgba(47, 224, 122, 0.45); }
.hm-item.sel .hm-sub { color: var(--gold); }
.hm-item.quit { margin-top: 10px; font-size: clamp(16px, 1.5vw, 20px); }
.hm-item.quit.sel::before { background: linear-gradient(90deg, rgba(255, 59, 74, 0.25), rgba(255, 59, 74, 0)); }
.hm-item.quit .hm-mark { background: var(--dump); box-shadow: 0 0 12px rgba(255, 59, 74, 0.8); }

/* DAILY RUG #N: status + countdown on a line of their own under the label, the daily
   cover art (images/chapters/daily.webp) faded in behind the right side. */
.hm-item.daily { overflow: hidden; }
.hm-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  background: url("../images/chapters/daily.webp") center 60% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
  mask-image: linear-gradient(90deg, transparent, #000 70%);
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.25s;
}
.hm-item.daily.sel .hm-art { opacity: 0.75; }
.hm-item.daily .hm-label,
.hm-item.daily .hm-sub { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85); }
.hm-item.daily { flex-wrap: wrap; row-gap: 2px; margin-bottom: 8px; }
.hm-item.daily .hm-label { color: #fff; }
.hm-item.daily:not(.played) .hm-label::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 10px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: daily-dot 1.4s ease-in-out infinite;
}
@keyframes daily-dot { 50% { opacity: 0.35; } }
.hm-item.daily .hm-sub {
  flex-basis: 100%;
  margin-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  white-space: normal;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hm-item.daily.sel .hm-sub { transform: translateX(8px); }
.hm-item.daily .hm-sub > * { white-space: nowrap; }
.hd-status { font-weight: 400; color: var(--pump); }
.hd-status.new { color: var(--gold); }
.hd-practice { color: #9fb3a8; }
.hd-streak { color: #ffb36b; }
.hd-next { color: #74867d; }
.hd-cleared { color: #7fe0a7; }

/* Ten menu items: tighten them on shorter desktop windows so the menu never runs off. */
@media (min-width: 861px) and (max-height: 940px) {
  .hm-item { min-height: 38px; padding-top: 4px; padding-bottom: 4px; }
  .hm-item.daily { margin-bottom: 4px; }
}

.hub-hint {
  grid-area: hint;
  align-self: start;
  max-width: 340px;
  min-height: 3em;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 210, 26, 0.45);
  font-family: "Michroma", Arial, sans-serif;
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #9fb3a8;
  transition: opacity 0.3s;
}

.hub.panel-open .hub-hint { opacity: 0; }

.hub-hints {
  grid-area: hints;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #9fb3a8;
}

/* Ticker */

.hub-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(28px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.72);
  border-top: 1px solid rgba(47, 224, 122, 0.3);
}

.ht-track {
  display: flex;
  width: max-content;
  height: 28px;
  align-items: center;
  will-change: transform;
  animation: ticker 70s linear infinite;
}

.ht-track > div { display: flex; gap: 44px; padding-right: 44px; }

.ht-track span {
  font-family: "Michroma", Arial, sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #cfe0d7;
  white-space: nowrap;
}

.ht-track span::first-letter { color: var(--pump); }

@keyframes ticker { to { transform: translateX(-50%); } }

/* Panel */

.hub-panel {
  grid-area: panel;
  justify-self: end;
  align-self: stretch;
  width: min(100%, 960px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(14, 20, 24, 0.9), rgba(5, 8, 10, 0.94));
  border-top: 2px solid var(--pump);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hub-panel[hidden] { display: none; }
.hub-panel.in { animation: panel-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

@keyframes panel-in { from { opacity: 0; transform: translateX(48px); } }

.hp-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hp-back {
  flex: none;
  min-height: 40px;
  padding: 6px 12px 6px 6px;
  border: 0;
  background: rgba(255, 255, 255, 0.05);
  font-family: "Michroma", Arial, sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: #cfe0d7;
  cursor: pointer;
}

.hp-back:hover { background: rgba(255, 255, 255, 0.1); }
.hp-kicker { font-family: "Michroma", Arial, sans-serif; font-size: 9px; letter-spacing: 0.3em; color: var(--gold); }

.hp-title {
  margin: 2px 0 0;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1;
}

.hp-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 224, 122, 0.5) transparent;
  user-select: text;
  -webkit-user-select: text;
}

.hp-note {
  margin: 16px 0 0;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 9.5px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: #74867d;
}

/* Confirm */

.hub-confirm {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
}

.hub-confirm[hidden] { display: none; }

.hc-box {
  width: min(420px, 100%);
  padding: 24px;
  text-align: center;
  background: linear-gradient(160deg, #141c20, #07090b);
  border-top: 2px solid var(--dump);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: toast-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.hc-title { font-family: "Archivo Black", "Arial Black", sans-serif; font-size: 24px; }
.hc-box p { margin: 10px 0 18px; font-size: 14px; color: #b9c6bf; }
.hc-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Campaign ---------- */

.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 14px; }

.cp-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cp-card.playable:not(.done) { box-shadow: inset 0 0 0 1px rgba(255, 210, 26, 0.55), 0 0 30px rgba(255, 210, 26, 0.08); }

.cp-card { overflow: hidden; transition: box-shadow 0.3s; }
.cp-card.done { box-shadow: inset 0 0 0 1px rgba(47, 224, 122, 0.55), 0 0 26px rgba(47, 224, 122, 0.16); }

/* Cover art (images/chapters/): cover-cropped, a dark gradient under the title, locked
   chapters desaturated and darker under a lock, a slow zoom on hover. */
.cp-art {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 140px;
  overflow: hidden;
  background: #0b0f10;
}

.cp-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s;
}

.cp-card:hover .cp-img,
.cp-card:focus-within .cp-img { transform: scale(1.04); }
.cp-card.locked .cp-img { filter: grayscale(0.9) brightness(0.42) contrast(1.05); }
.cp-card.done .cp-img { filter: saturate(1.05); }

.cp-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 5, 6, 0.55) 0%, rgba(3, 5, 6, 0) 26%, rgba(3, 5, 6, 0) 45%, rgba(3, 5, 6, 0.92) 100%);
  pointer-events: none;
}

.cp-card.done .cp-art::after {
  background:
    linear-gradient(180deg, rgba(3, 5, 6, 0.55) 0%, rgba(3, 5, 6, 0) 26%, rgba(3, 5, 6, 0) 45%, rgba(3, 5, 6, 0.92) 100%),
    radial-gradient(ellipse at 50% 120%, rgba(47, 224, 122, 0.28), transparent 65%);
}

.cp-lock {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 2;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  line-height: 0;
}

.cp-lock .ico { width: 100%; height: 100%; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8)); }

.cp-cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 11px;
  z-index: 2;
}

.cp-n {
  position: absolute;
  right: 10px;
  bottom: -14px;
  z-index: 1;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: 96px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
}

.cp-size {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 2;
  padding: 2px 6px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #e3eee8;
  background: rgba(0, 0, 0, 0.45);
}

.cp-text { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 12px 14px 14px; }
.cp-k { font-family: "Michroma", Arial, sans-serif; font-size: 9px; letter-spacing: 0.24em; color: var(--gold); }
.cp-cap h3 { margin: 3px 0 0; font-family: "Archivo Black", "Arial Black", sans-serif; font-weight: 400; font-size: 21px; line-height: 1.05; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); overflow-wrap: anywhere; }
.cp-cap .cp-k { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); }
.cp-meta { font-family: "Oswald", sans-serif; font-size: 13px; letter-spacing: 0.06em; color: #9fb3a8; }
.cp-text p { margin: 0; font-size: 13px; line-height: 1.45; color: #c5d0ca; }
.cp-status { margin-top: auto; padding-top: 4px; font-family: "Michroma", Arial, sans-serif; font-size: 9.5px; letter-spacing: 0.12em; }
.cp-status.ok { color: var(--pump); }
.cp-pure { color: var(--pump); white-space: nowrap; }
.cp-ast { color: var(--gold); white-space: nowrap; }
.cp-status.new { color: var(--gold); }
.cp-status.lock { color: #ff7b86; }
.cp-meter i { background: linear-gradient(90deg, #b3001b, var(--dump)); }
.cp-mcap { font-family: "Oswald", sans-serif; font-size: 12px; color: #8a9a92; }
.cp-text .hub-btn { margin-top: 6px; }

/* ---------- Battle pass ---------- */

.bp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.bp-tier { display: flex; align-items: baseline; gap: 6px; font-family: "Michroma", Arial, sans-serif; font-size: 10px; letter-spacing: 0.2em; color: #9fb3a8; }
.bp-tier b { font-family: "Oswald", sans-serif; font-size: 44px; line-height: 1; color: #fff; letter-spacing: 0; }
.bp-prog { flex: 1; min-width: 200px; }
.bp-bar { height: 8px; }
.bp-num { margin-top: 6px; font-family: "Michroma", Arial, sans-serif; font-size: 9px; letter-spacing: 0.14em; color: #9fb3a8; }

.bp-prem {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #d9c8ff;
  background: rgba(130, 90, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(160, 120, 255, 0.45);
}

/* The tier scroller runs to the panel's edges, but its cards snap to the same inset as the
   rest of the panel's content (scroll-padding = the panel padding), and the edges fade out,
   so a card is never cut off against the panel border at rest. */
.bp-scroll {
  --bp-pad: 18px;
  position: relative;
  margin: 16px calc(var(--bp-pad) * -1) 0;
  padding: 8px var(--bp-pad) 16px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--bp-pad);
  cursor: grab;
  touch-action: pan-x pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 224, 122, 0.5) transparent;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 6px, #000 var(--bp-pad), #000 calc(100% - var(--bp-pad)), transparent calc(100% - 6px));
  mask-image: linear-gradient(90deg, transparent 0, transparent 6px, #000 var(--bp-pad), #000 calc(100% - var(--bp-pad)), transparent calc(100% - 6px));
}

.bp-scroll.dragging,
.bp-scroll.free { scroll-snap-type: none; }
.bp-scroll.dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.bp-track { display: flex; align-items: stretch; gap: 12px; width: max-content; }
.bp-col { flex: none; width: 168px; display: flex; flex-direction: column; gap: 8px; scroll-snap-align: start; }

.bp-t {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  color: #74867d;
}

.bp-col.got .bp-t { color: var(--pump); }
.bp-col.cur .bp-t { color: var(--gold); }

.bp-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 12px 12px 11px;
  overflow: hidden;
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0.72;
}

/* Every free card as tall as the tallest one in the row. */
.bp-card.free { flex: 1 1 auto; min-height: 196px; }

.bp-col.got .bp-card.free { opacity: 1; background: rgba(47, 224, 122, 0.07); box-shadow: inset 0 0 0 1px rgba(47, 224, 122, 0.35); }
.bp-col.notable .bp-card.free { box-shadow: inset 0 0 0 1px rgba(255, 210, 26, 0.6), 0 0 18px rgba(255, 210, 26, 0.12); }
.bp-col.cur .bp-card.free { opacity: 1; box-shadow: inset 0 0 0 2px var(--gold), 0 0 26px rgba(255, 210, 26, 0.3); }

.bp-card.prem {
  flex: none;
  height: 112px;
  background: linear-gradient(160deg, rgba(130, 90, 255, 0.18), rgba(30, 20, 60, 0.35));
  box-shadow: inset 0 0 0 1px rgba(160, 120, 255, 0.35);
  opacity: 0.7;
}

.bp-ico { position: relative; flex: none; width: 44px; height: 44px; line-height: 0; }
.bp-ico .ico { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)); }
.bp-col:not(.got) .bp-card.free .bp-ico .ico { filter: saturate(0.55) brightness(0.85) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)); }
.bp-card.prem .bp-ico { width: 34px; height: 34px; }
.bp-card.prem .bp-ico .ico { filter: saturate(0.4) brightness(0.7); }
.bp-lock { position: absolute; right: -8px; bottom: -4px; width: 18px; height: 18px; }
.bp-lock .ico { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)) !important; }
.bp-name { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 15px; line-height: 1.15; color: #fff; }
.bp-desc { font-size: 11px; line-height: 1.35; color: #9fb3a8; }
.bp-state { display: flex; align-items: center; margin-top: auto; padding-top: 4px; font-family: "Michroma", Arial, sans-serif; font-size: 8.5px; letter-spacing: 0.16em; color: #74867d; }
.bp-col.got .bp-card.free .bp-state { color: var(--pump); }
.bp-card.prem .bp-state { color: #b9a4ff; }

/* ---------- Codex ---------- */

.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }

.cx-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cx-card.tx-on { box-shadow: inset 0 0 0 1px rgba(47, 224, 122, 0.55), 0 0 30px rgba(47, 224, 122, 0.1); }

.cx-portrait {
  position: relative;
  width: 120px;
  height: 150px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #1b2a24, #070b0a);
  box-shadow: inset 0 0 0 1px rgba(47, 224, 122, 0.3);
}

.cx-sil,
.cx-portrait img,
.cx-scan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cx-portrait img { object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.cx-card.has-portrait img { opacity: 1; }
.cx-card.has-portrait .cx-sil { visibility: hidden; }
.cx-scan { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px); pointer-events: none; }
.cx-card.tx-on .cx-portrait { box-shadow: inset 0 0 0 2px var(--pump); }

.cx-role { font-family: "Michroma", Arial, sans-serif; font-size: 8.5px; letter-spacing: 0.14em; color: var(--gold); }
.cx-text h3 { margin: 3px 0 6px; font-family: "Archivo Black", "Arial Black", sans-serif; font-weight: 400; font-size: 20px; line-height: 1.05; }
.cx-text p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; color: #c5d0ca; }
.cx-stats { display: grid; gap: 5px; margin-bottom: 10px; }
.cx-stat { display: grid; grid-template-columns: 58px 1fr 26px; align-items: center; gap: 8px; }
.cx-stat span { font-family: "Michroma", Arial, sans-serif; font-size: 8px; letter-spacing: 0.14em; color: #9fb3a8; }
.cx-stat b { font-family: "Oswald", sans-serif; font-size: 13px; text-align: right; }
.cx-play { width: 100%; }
.cx-wave { display: none; width: 100%; height: 34px; margin-top: 8px; }
.cx-card.tx-on .cx-wave { display: block; }

.cx-sub {
  margin-top: 8px;
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  line-height: 1.35;
  color: var(--comms-accent, #9fd8ff);
}

.cx-sub:empty { display: none; }

/* ---------- Achievements ---------- */

.ac-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 16px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #9fb3a8;
}

.ac-head b { font-family: "Oswald", sans-serif; font-size: 40px; line-height: 1; color: #fff; letter-spacing: 0; }
.ac-bar { flex: 1 1 160px; height: 7px; align-self: center; }
.ac-head em { font-style: normal; color: var(--gold); }

.ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 10px; }

.ac-card {
  --rar: #b8c4be;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  border-left: 3px solid var(--rar);
  opacity: 0.55;
}

.ac-card.on { opacity: 1; background: linear-gradient(90deg, color-mix(in srgb, var(--rar) 16%, transparent), rgba(255, 255, 255, 0.03)); }
.ac-card.r-rare { --rar: #4aa8ff; }
.ac-card.r-epic { --rar: #b06bff; }
.ac-card.r-legendary { --rar: var(--gold); }

.ac-ico {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.ac-ico > .ico { width: 46px; height: 46px; filter: grayscale(1) brightness(0.6); }
.ac-card.on .ac-ico { background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--rar) 35%, transparent), transparent 70%); }
.ac-card.on .ac-ico > .ico { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.ac-lock { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; line-height: 0; }
.ac-lock .ico { width: 100%; height: 100%; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9)); }
.ac-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ac-name { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 16px; }
.ac-desc { font-size: 12px; color: #9fb3a8; }
.ac-rar { font-family: "Michroma", Arial, sans-serif; font-size: 8px; letter-spacing: 0.16em; color: var(--rar); }

/* ---------- Store ---------- */

.st-h {
  margin: 0 0 10px;
  font-family: "Michroma", Arial, sans-serif;
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; margin-bottom: 22px; }

.st-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.st-card.equipped { box-shadow: inset 0 0 0 2px var(--gold), 0 0 24px rgba(255, 210, 26, 0.12); }
.st-card.locked .st-art { filter: saturate(0.7) brightness(0.8); }

.st-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 112px;
  background: radial-gradient(circle, rgba(255, 210, 26, 0.12), transparent 70%), #0a0f11;
}

.st-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 7.5px;
  letter-spacing: 0.14em;
  color: #120d00;
  background: var(--gold);
}

.skin-prev {
  --cell: 28px;
  --u: calc(var(--cell) / 16);
  display: grid;
  grid-template-columns: repeat(3, var(--cell));
  grid-auto-rows: var(--cell);
  border: 3px solid;
  border-color: #808080 #fff #fff #808080;
}

.st-name { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 17px; }
.st-desc { font-size: 12px; line-height: 1.4; color: #9fb3a8; }
.st-price { font-family: "Oswald", sans-serif; font-size: 13px; color: var(--pump); }
.st-card .hub-btn { margin-top: auto; }

/* ---------- $TOKEN loot card ---------- */

.tk-card {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  padding: 24px 20px;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 210, 26, 0.22), transparent 60%), linear-gradient(170deg, #241c06, #0d0a03 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 26, 0.6), inset 0 0 50px rgba(255, 210, 26, 0.1), 0 0 50px rgba(255, 210, 26, 0.12);
}

.tk-card::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(0) skewX(-20deg);
  pointer-events: none;
  animation: tk-sheen 5s ease-in-out infinite;
}

@keyframes tk-sheen {
  0%, 60% { transform: translateX(0) skewX(-20deg); }
  100% { transform: translateX(450%) skewX(-20deg); }
}

.tk-rar { font-family: "Michroma", Arial, sans-serif; font-size: 10px; letter-spacing: 0.42em; color: var(--gold); }
.tk-art { display: grid; place-items: center; height: 140px; perspective: 600px; }

.tk-coin {
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff2b0, #f5c518 40%, #a87b00 100%);
  box-shadow: 0 0 40px rgba(255, 210, 26, 0.45), inset 0 0 0 6px rgba(120, 85, 0, 0.5);
  animation: coin-spin 6s linear infinite;
}

.tk-coin span { font-family: "Archivo Black", "Arial Black", sans-serif; font-size: 58px; color: #6b4d00; }

@keyframes coin-spin { to { transform: rotateY(360deg); } }

.tk-ticker {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255, 210, 26, 0.4);
}

.tk-chain { margin-top: 6px; font-family: "Michroma", Arial, sans-serif; font-size: 9.5px; letter-spacing: 0.28em; color: #c9b77a; }

.tk-ca {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  padding: 8px 8px 8px 12px;
  text-align: left;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 26, 0.25);
}

.tk-ca-k { font-family: "Michroma", Arial, sans-serif; font-size: 9px; letter-spacing: 0.2em; color: var(--gold); }
.tk-ca code { flex: 1; min-width: 0; font-family: "Courier New", monospace; font-size: 12px; color: #fff; word-break: break-all; }
.tk-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tk-links .hub-btn { flex-direction: column; gap: 2px; padding: 8px 6px; }

.tk-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 18px 0 14px;
  background: rgba(255, 210, 26, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 210, 26, 0.18);
}

.tk-stats div { padding: 10px 6px; background: #120e04; }
.tk-stats span { display: block; font-family: "Michroma", Arial, sans-serif; font-size: 8px; letter-spacing: 0.18em; color: #9b8c5c; }
.tk-stats b { font-family: "Oswald", sans-serif; font-size: 18px; color: var(--pump); }
.tk-flav { font-size: 12.5px; font-style: italic; color: #d9c27a; }
.tk-disc { margin-top: 10px; font-family: "Michroma", Arial, sans-serif; font-size: 9px; letter-spacing: 0.12em; color: #7d7a6c; }

/* ---------- Hub on phones and narrow windows ---------- */

@media (max-width: 860px) {
  .hub-plane { --cell: 42px; }

  .hub-shade {
    background:
      linear-gradient(180deg, rgba(3, 5, 6, 0.9) 0%, rgba(3, 5, 6, 0.55) 40%, rgba(3, 5, 6, 0.75) 100%),
      radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.8) 100%);
  }

  .hub-ui {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .hub-top { order: -1; align-self: stretch; justify-self: auto; gap: 10px; }
  .hub-player { flex: 1; min-width: 0; padding: 8px 12px 8px 8px; }
  .pc-avatar { width: 42px; height: 42px; }
  .pc-avatar svg { width: 30px; height: 30px; }
  .pc-bar { width: auto; flex: 1; }
  .pc-info { flex: 1; min-width: 0; }
  .hub-title { font-size: clamp(30px, 10.8vw, 64px); } /* 11.5vw clipped the last R at 375px */
  .hub-menu { flex: none; }
  .hm-item { font-size: 21px; padding: 9px 12px 9px 20px; }
  .hub.panel-open .hub-menu { opacity: 1; transform: none; }
  .hub-hint { max-width: none; }
  .hub-hints { display: none; }

  .hub-panel {
    position: fixed;
    inset: 0;
    z-index: 4;
    /* Chrome applies justify-self to fixed boxes: 'end' (wide layout) would shrink-wrap the
       panel to its content, e.g. the whole 100-tier battle pass track. */
    justify-self: stretch;
    width: auto;
    border-top: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    background: linear-gradient(170deg, #0d1418, #040607);
  }

  .hub-panel.in { animation-name: panel-up; }
  .hp-head { padding: 10px 14px; border-bottom-color: rgba(47, 224, 122, 0.35); }
  .hp-body { padding: 14px 16px 24px; }
  .bp-scroll { --bp-pad: 16px; margin-top: 14px; }
  .bp-col { width: 156px; }
  .cx-card { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .cx-portrait { width: 92px; height: 118px; }
  .tk-links { grid-template-columns: repeat(2, 1fr); }
  .tk-stats { grid-template-columns: repeat(2, 1fr); }
}

@keyframes panel-up { from { opacity: 0; transform: translateY(36px); } }

/* Phones: the panel header holds BACK, the title and the RTX switch on one line. */
.hp-titles { min-width: 0; }
@media (max-width: 600px) {
  .hp-head { gap: 10px; }
  .hp-back { padding-right: 8px; }
  .hp-title { font-size: 19px; overflow-wrap: anywhere; }
}

@media (max-width: 860px) and (min-height: 760px) {
  .hub-brand { margin-top: 2vh; }
}

/* ---------- Settings ---------- */

.se-list { display: flex; flex-direction: column; gap: 6px; outline: none; }

.se-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 8px 10px 8px 18px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s, box-shadow 0.15s;
}

.se-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 210, 26, 0.8);
  transform: scaleY(0);
  transition: transform 0.2s;
}

.se-row.sel { background: linear-gradient(90deg, rgba(47, 224, 122, 0.16), rgba(47, 224, 122, 0.03)); box-shadow: inset 0 0 0 1px rgba(47, 224, 122, 0.4); }
.se-row.sel::before { transform: scaleY(1); }
.se-text { flex: 1; min-width: 0; }
.se-label { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 17px; letter-spacing: 0.08em; color: #fff; }
.se-desc { margin-top: 2px; font-size: 11.5px; line-height: 1.4; color: #8a9a92; }
.se-ctl { flex: none; display: flex; align-items: center; gap: 4px; }

.se-arrow {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.05);
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  line-height: 1;
  color: #cfe0d7;
  cursor: pointer;
  touch-action: manipulation;
}

.se-arrow:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.se-val {
  min-width: 132px;
  text-align: center;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--pump);
  white-space: nowrap;
}

.se-row.off .se-val { color: #ff7b86; }
.se-row.locked .se-val { color: #9fb3a8; }
.se-row.locked .se-arrow { opacity: 0.35; }
.se-row.nope { animation: se-nope 0.35s ease; }
.se-row.nope .se-val { color: var(--dump); }

@keyframes se-nope {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

@media (max-width: 600px) {
  .se-row { flex-wrap: wrap; gap: 6px 10px; padding-left: 14px; }
  .se-text { flex-basis: 100%; }
  .se-ctl { margin-left: auto; }
  .se-val { min-width: 120px; }
}

/* ---------- Post-match ---------- */

.pm {
  position: fixed;
  inset: 0;
  z-index: 46;
  color: #e9f3ee;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(47, 224, 122, 0.16), transparent 60%),
    linear-gradient(180deg, #06090b, #020304);
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
}

.pm[hidden] { display: none; }

.pm-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.pm-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 6vh, 56px) 16px 48px;
}

.pm-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.42em;
  color: var(--gold);
}

.pm-kicker::before,
.pm-kicker::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 210, 26, 0.6), transparent); }

.pm-title {
  margin: 0;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 7vw, 66px);
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 40px rgba(47, 224, 122, 0.35);
  animation: pm-title 0.9s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes pm-title { from { opacity: 0; transform: scale(1.15); letter-spacing: 0.08em; } }

.pm-sub {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--pump);
}

.pm-sub i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--pump), transparent); }

.pm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.pm-stat {
  position: relative;
  padding: 12px 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: pm-up 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.pm-stat:nth-child(1) { animation-delay: 0.5s; }
.pm-stat:nth-child(2) { animation-delay: 0.6s; }
.pm-stat:nth-child(3) { animation-delay: 0.7s; }
.pm-stat:nth-child(4) { animation-delay: 0.8s; }

@keyframes pm-up { from { opacity: 0; transform: translateY(14px); } }

.pm-stat-ico { display: block; width: 30px; height: 30px; margin: 0 auto 4px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); }
.pm-stat b { display: block; font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(22px, 4vw, 32px); line-height: 1.1; }
.pm-stat span { font-family: "Michroma", Arial, sans-serif; font-size: 8.5px; letter-spacing: 0.18em; color: #9fb3a8; }

.pm-stat em {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 6px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 7.5px;
  font-style: normal;
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: #120d00;
  background: var(--gold);
}

.pm-xp { padding: 6px 14px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.pm-lines { list-style: none; margin: 0; padding: 0; max-height: 36vh; overflow-y: auto; scrollbar-width: thin; }

.pm-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  animation: pm-line 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes pm-line { from { opacity: 0; transform: translateX(-16px); } }

.pl-label { font-family: "Michroma", Arial, sans-serif; font-size: 10px; letter-spacing: 0.12em; }
.pl-sub { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "Oswald", sans-serif; font-size: 13px; color: #9fb3a8; }
.pl-xp { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 18px; color: var(--pump); }
.pm-line.gold .pl-label,
.pm-line.gold .pl-xp { color: var(--gold); }
.pm-line { align-items: center; }
.pl-ico { flex: none; width: 34px; height: 34px; margin: -4px 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 8px rgba(255, 210, 26, 0.25)); }
.pm-line.ach .pl-label { color: var(--gold); }

.pm-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0 6px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
}

.pm-total b { font-family: "Oswald", sans-serif; font-size: 34px; letter-spacing: 0; color: #fff; }
.pm-total.pop b { animation: pm-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4); color: var(--pump); }

@keyframes pm-pop { 40% { transform: scale(1.25); } }

.pm-level { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px 14px; background: rgba(255, 255, 255, 0.03); }

.pm-level::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 210, 26, 0.5), transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.pm-level.flash::after { animation: pm-flash 0.9s ease-out; }

@keyframes pm-flash { 0% { opacity: 1; } 100% { opacity: 0; } }

.pm-badge {
  flex: none;
  display: grid;
  place-items: center;
  align-content: center;
  width: 64px;
  height: 72px;
  color: #120d00;
  background: linear-gradient(180deg, #ffe680, var(--gold) 60%, #b38f00);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.pm-badge small { font-family: "Michroma", Arial, sans-serif; font-size: 8px; letter-spacing: 0.2em; }
.pm-badge b { font-family: "Oswald", sans-serif; font-size: 28px; line-height: 1; }
.pm-meter { flex: 1; min-width: 0; }
.pm-bar { height: 12px; }
.pm-bar i { box-shadow: 0 0 14px rgba(47, 224, 122, 0.6); }

.pm-barnum {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #9fb3a8;
}

.pm-xpnow { color: #fff; }

.pm-levelup {
  position: fixed;
  inset: 0;
  z-index: 100002;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0) 70%);
  display: grid;
  place-items: center;
  align-content: center;
  pointer-events: none;
  opacity: 0;
}

.pm-levelup.go { animation: pm-lu 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

@keyframes pm-lu {
  0% { opacity: 0; transform: scale(1.8); }
  18% { opacity: 1; transform: scale(1); }
  70% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 0; transform: scale(1.1); }
}

.pm-lu-word {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(48px, 12vw, 120px);
  line-height: 1;
  color: var(--gold);
  -webkit-text-stroke: 2px #000;
  text-shadow: 0 0 40px rgba(255, 210, 26, 0.7), 0 6px 0 #000;
}

.pm-lu-num { margin-top: 8px; font-family: "Michroma", Arial, sans-serif; font-size: 14px; letter-spacing: 0.4em; color: #fff; text-shadow: 0 2px 0 #000; }

.pm-callouts { display: flex; flex-direction: column; gap: 8px; }

.pm-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(47, 224, 122, 0.14), rgba(47, 224, 122, 0.02));
  border-left: 3px solid var(--pump);
  animation: pm-line 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.pc-ico { flex: none; align-self: center; width: 36px; height: 36px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.pm-callout.notable { background: linear-gradient(90deg, rgba(255, 210, 26, 0.16), rgba(255, 210, 26, 0.02)); border-left-color: var(--gold); }
.pc-k { font-family: "Michroma", Arial, sans-serif; font-size: 8.5px; letter-spacing: 0.2em; color: #9fb3a8; }
.pm-callout b { font-family: "Oswald", sans-serif; font-size: 18px; letter-spacing: 0.04em; }
.pc-r { font-family: "Oswald", sans-serif; font-size: 15px; color: var(--gold); }

.pm-actions { display: grid; place-items: center; min-height: 64px; }
.pm-continue { grid-area: 1 / 1; min-width: 220px; font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 0.35s, transform 0.35s; }
.pm.ready .pm-continue { opacity: 1; pointer-events: auto; transform: none; }

/* Run badge: ASSISTED (hints were on) or PURE SWEEP. */
.pm-run {
  align-self: center;
  display: inline-flex;
  align-items: center;
  padding: 5px 14px 5px 8px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: pm-up 0.5s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.pm-run[hidden] { display: none; }
.pm-run.pure { color: #06140b; background: linear-gradient(180deg, #5effa0, #1fc061); box-shadow: 0 0 24px rgba(47, 224, 122, 0.35); }
.pm-run.assisted { color: var(--gold); background: rgba(255, 210, 26, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 210, 26, 0.5); }

/* Daily share block: the Wordle-style text, copy and post. */
.pm-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(47, 224, 122, 0.3);
  animation: pm-up 0.5s 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  user-select: text;
  -webkit-user-select: text;
}
.pm-share[hidden] { display: none; }
.pm-share-k { font-family: "Michroma", Arial, sans-serif; font-size: 8.5px; letter-spacing: 0.24em; color: var(--gold); }
.pm-share-text {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.55;
  color: #fff;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: center;
}
.pm-share-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pm-share-btns .hub-btn { min-width: 168px; }

@media (max-width: 600px) {
  .pm-stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .pm-lines { max-height: none; }
  .pl-label { font-size: 9px; }
}

/* ---------- Chapter title card ---------- */

.ccard {
  position: fixed;
  inset: 0;
  z-index: 47;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 50%, #0c1512, #000 70%);
  color: #ece9e2;
  opacity: 0;
  pointer-events: none;
}

.ccard[hidden] { display: none; }

/* The chapter's cover art behind the title, dark and slowly pushing in. */
.cc-art {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0.32;
  filter: saturate(0.85);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
}
.ccard.go .cc-art { animation: cc-push 4s ease-out both; }
@keyframes cc-push { from { transform: scale(1.08); } to { transform: scale(1); } }

.cc-num {
  font-family: "Michroma", Arial, sans-serif;
  font-size: clamp(11px, 2vw, 15px);
  letter-spacing: 0.6em;
  color: var(--gold);
  opacity: 0;
}

.cc-name {
  margin: 10px 0;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(44px, 11vw, 136px);
  line-height: 1;
  opacity: 0;
}

.cc-band { position: relative; }

.cc-band::after {
  content: "";
  display: block;
  height: 1px;
  margin: 12px auto 0;
  width: min(520px, 80vw);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
}

.ccard.daily .cc-name { font-size: clamp(30px, 8.5vw, 112px); }

.cc-meta { font-family: "Michroma", Arial, sans-serif; font-size: 11px; letter-spacing: 0.3em; color: #9fb3a8; opacity: 0; }

.cc-tip {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: max(9vh, calc(env(safe-area-inset-bottom) + 24px));
  max-width: 560px;
  margin: 0 auto;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: #74867d;
  opacity: 0;
}

.ccard.go .cc-num { animation: cc-fade 0.8s 0.1s ease-out forwards; }
.ccard.go .cc-name { animation: cc-name 2.6s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.ccard.go .cc-band::after { animation: cc-line 1.2s 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.ccard.go .cc-meta { animation: cc-fade 0.8s 0.9s ease-out forwards; }
.ccard.go .cc-tip { animation: cc-fade 0.8s 1.3s ease-out forwards; }

@keyframes cc-fade { to { opacity: 1; } }
@keyframes cc-name { from { opacity: 0; transform: scale(1.12); } 30% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
@keyframes cc-line { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .hub-plane,
  .hc,
  .ht-track,
  .tk-coin,
  .tk-card::after,
  .hub-title { animation: none; }
}

/* ==========================================================================
   Integration: grouped menu (PLAY / MORE), LIVE BOARD item, wallet on the player
   card, hub toast, achievement cards, post-match SWEEP POINTS + card reveal.
   ========================================================================== */

.hm-group { display: flex; flex-direction: column; }
.hm-group-k {
  margin: 0 0 4px 22px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.42em;
  color: rgba(255, 210, 26, 0.6);
}
.hm-group.meta { margin-top: 12px; }
.hm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4px; }

/* MORE: compact two-column items, the sub line under the label. */
.hm-item.meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-height: 0;
  padding: 5px 8px 5px 22px;
  font-size: clamp(14px, 1.15vw, 16px);
  letter-spacing: 0.07em;
}
.hm-item.meta .hm-sub { margin-left: 0; font-size: 7.5px; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hm-item.meta .hm-sub:empty { display: none; }
.hm-item.meta.sel .hm-sub { transform: translateX(8px); }
.hm-item.meta.quit { margin-top: 0; font-size: clamp(14px, 1.15vw, 16px); color: rgba(255, 140, 150, 0.6); }
.hm-item.meta.quit.sel { color: #fff; }
.hm-item.radio .hm-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 7px 2px 0;
  vertical-align: middle;
  border-radius: 50%;
  background: #ff2a3a;
  box-shadow: 0 0 8px #ff2a3a;
  animation: daily-dot 1.2s steps(2) infinite;
}

/* LIVE BOARD: like the daily (two lines), a sparkline of the window's candles on the right. */
.hm-item.live { overflow: hidden; flex-wrap: wrap; row-gap: 2px; margin-bottom: 8px; }
.hm-item.live .hm-label { color: #fff; }
.hm-item.live .hm-label,
.hm-item.live .hm-sub { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85); }
.hm-item.live .hm-sub {
  flex-basis: 100%;
  margin-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  white-space: normal;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hm-item.live.sel .hm-sub { transform: translateX(8px); }
.hm-item.live .hm-sub > * { white-space: nowrap; }
.hm-spark {
  position: absolute;
  top: 6px;
  right: 6px;
  bottom: 6px;
  width: 46%;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
  mask-image: linear-gradient(90deg, transparent, #000 45%);
  transition: opacity 0.25s;
}
.hm-item.live.sel .hm-spark { opacity: 0.85; }
.lv-spark { display: block; width: 100%; height: 100%; }
.lv-spark .u { fill: var(--pump); }
.lv-spark .d { fill: var(--dump); }
.lv-spark .f { fill: #5d6863; }
.lv-demo {
  margin-left: 8px;
  padding: 1px 5px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.18em;
  vertical-align: middle;
  color: #9fb3a8;
  box-shadow: inset 0 0 0 1px rgba(159, 179, 168, 0.5);
}
.lv-mood { font-weight: 400; color: var(--gold); }
.lv-mood.bull { color: var(--pump); }
.lv-mood.bear { color: #ff6b75; }
.lv-status { color: var(--pump); }
.lv-clock { color: #74867d; }
.lv-clock i { font-style: normal; color: #b8c8bf; }
.lv-how { color: #9fb3a8; }
.cp-how { flex-basis: 100%; }

/* Player card: wallet + Sweep Points (signed in), or the sign-in nudge. Opens the profile. */
.hub-player { cursor: pointer; outline: none; transition: background 0.2s; }
.hub-player:hover { background: linear-gradient(90deg, rgba(16, 26, 30, 0.92), rgba(10, 16, 20, 0.7)); }
.hub-player:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pc-wallet {
  margin-top: 3px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 7.5px;
  letter-spacing: 0.16em;
  color: #9fb3a8;
}
.pc-wallet b { font-weight: 400; color: var(--gold); }
.pc-wallet.off { color: var(--pump); }
.pc-addr { margin-right: 8px; color: #dfe9e3; }
.pc-avatar.holder { box-shadow: inset 0 0 0 1px rgba(255, 40, 40, 0.9), 0 0 22px rgba(255, 30, 30, 0.55); }

/* Toast (arcade XP / points on return). */
.hub-toast {
  position: absolute;
  left: 50%;
  bottom: calc(64px + env(safe-area-inset-bottom));
  z-index: 6;
  padding: 10px 18px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #eaf5ef;
  background: rgba(8, 14, 12, 0.92);
  box-shadow: inset 0 0 0 1px rgba(47, 224, 122, 0.45), 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
}
.hub-toast[hidden] { display: none; }
.hub-toast b { font-weight: 400; color: var(--gold); margin-right: 6px; }
.hub-toast.go { animation: hub-toast 3.2s ease both; }
@keyframes hub-toast {
  0% { opacity: 0; transform: translate(-50%, 12px); }
  10%, 85% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -6px); }
}

/* Achievements: COLLECTION / PLAYER CARD, unlocked achievements open their card. */
.ac-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -4px 0 14px; }
.ac-tools span { font-family: "Michroma", Arial, sans-serif; font-size: 8.5px; letter-spacing: 0.14em; color: #6f8279; }
button.ac-card {
  width: 100%;
  border: 0;
  border-left: 3px solid var(--rar);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}
button.ac-card:hover { filter: brightness(1.18); }
button.ac-card:active { transform: scale(0.99); }
button.ac-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (min-width: 861px) and (max-height: 940px) {
  .hm-item.live { margin-bottom: 4px; }
  .hm-item.meta { padding-top: 3px; padding-bottom: 3px; }
  .hm-group.meta { margin-top: 8px; }
}
@media (min-width: 861px) and (max-height: 820px) {
  .hub-title { font-size: clamp(36px, 4.6vw, 64px); }
  .hm-item.play { min-height: 34px; padding-top: 2px; padding-bottom: 2px; }
  .hm-item.meta .hm-sub { display: none; }
}
@media (max-width: 860px) {
  .hm-item.meta { font-size: 16px; padding: 7px 8px 7px 20px; }
  .hm-item.meta.quit { font-size: 16px; }
}

/* ---------- Post-match: SWEEP POINTS ---------- */

.pm-points {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 210, 26, 0.08), rgba(255, 210, 26, 0.02));
  box-shadow: inset 0 0 0 1px rgba(255, 210, 26, 0.35);
  animation: pm-up 0.5s 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.pm-points[hidden] { display: none; }
.pp-k { font-family: "Michroma", Arial, sans-serif; font-size: 8.5px; letter-spacing: 0.3em; color: #9fb3a8; }
.pp-main { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 26px; letter-spacing: 0.06em; color: var(--gold); }
.pm-points.wait .pp-main { font-size: 15px; color: #9fb3a8; animation: pp-blink 1s steps(2) infinite; }
@keyframes pp-blink { 50% { opacity: 0.4; } }
.pm-points.ok .pp-main { font-size: clamp(28px, 5vw, 40px); text-shadow: 0 0 24px rgba(255, 210, 26, 0.45); animation: pm-title 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.pm-points.zero .pp-main,
.pm-points.off .pp-main { color: #cfd9d4; font-size: 20px; }
.pm-points.bad .pp-main { color: #ff6b75; font-size: 20px; }
.pm-points.cta { background: linear-gradient(180deg, rgba(47, 224, 122, 0.1), rgba(47, 224, 122, 0.02)); box-shadow: inset 0 0 0 1px rgba(47, 224, 122, 0.4); }
.pm-points.cta .pp-main { color: var(--pump); font-size: 20px; }
.pp-sub { font-family: "Michroma", Arial, sans-serif; font-size: 9px; line-height: 1.6; letter-spacing: 0.1em; color: #9fb3a8; }
.pp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 2px; }
.pp-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 8px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.05);
}
.pp-chip i { font-style: normal; color: #8a9c93; }
.pp-chip b { font-weight: 400; color: #fff; }
.pp-total { font-family: "Michroma", Arial, sans-serif; font-size: 8.5px; letter-spacing: 0.2em; color: #74867d; }

/* REVEAL YOUR CARD: in the share block (daily, live), or its own row after the XP (chapters). */
.pm-share-btns .pm-card { min-width: 200px; }
.pm-share-note { font-family: "Michroma", Arial, sans-serif; font-size: 8.5px; letter-spacing: 0.12em; color: #9fb3a8; text-align: center; }
.pm-share-note[hidden] { display: none; }
.pm-cardrow { display: flex; justify-content: center; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 0.35s, transform 0.35s; }
.pm.ready .pm-cardrow { opacity: 1; pointer-events: auto; transform: none; }
.pm.has-share .pm-cardrow,
.pm:not(.ready) .pm-cardrow { min-height: 0; }
.pm.has-share .pm-cardrow { display: none; }
.pm-cardrow .pm-card { min-width: 240px; background: linear-gradient(180deg, #ffe680, #f2b600); }

/* LIVE title card */
.ccard.live .cc-num { color: var(--pump); }

/* RADIO · LIVE (top of PLAY): ON AIR + the market cap. */
.hm-item.radio .hm-label::before { width: 8px; height: 8px; margin-right: 10px; }
.hm-item.radio .hm-sub { display: flex; gap: 10px; }
.rd-air { color: #ff5a64; }
.rd-cap { color: var(--gold); }
.rd-lis { color: #7dffb0; }
.hm-item.radio { flex-wrap: wrap; row-gap: 0; }
.hm-item.radio .hm-label { white-space: nowrap; }
.hm-item.radio .hm-sub { flex-basis: 100%; margin-left: 0; padding-left: 18px; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hm-item.radio.sel .hm-sub { transform: translateX(8px); }

/* Campaign extras */
.cp-secret {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  padding: 2px 6px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #fff;
  background: var(--dump);
}

/* CHAPTER N UNLOCKED BY THE COMMUNITY */
.hub-unlock {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.78);
}
.hub-unlock[hidden] { display: none; }
.hu-box {
  position: relative;
  width: min(560px, 100%);
  padding: 26px 24px 22px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(160deg, #141c20, #07090b);
  border-top: 2px solid var(--gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 210, 26, 0.3), 0 0 60px rgba(255, 210, 26, 0.15);
}
.hub-unlock.go .hu-box { animation: hu-in 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
@keyframes hu-in { from { opacity: 0; transform: scale(0.8); } }
.hu-art {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}
.hu-k { position: relative; font-family: "Michroma", Arial, sans-serif; font-size: 10px; letter-spacing: 0.4em; color: var(--pump); }
.hu-title {
  position: relative;
  margin: 10px 0 8px;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 4.4vw, 38px);
  line-height: 1.05;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255, 210, 26, 0.45);
}
.hub-unlock.go .hu-title { animation: pm-title 0.9s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hu-p { position: relative; margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: #c5d0ca; }
.hu-box .hc-btns { position: relative; }

/* PLAY ARCADE NEXT (post-match) */
.pm-arcrow { display: flex; justify-content: center; margin-top: -6px; opacity: 0; pointer-events: none; transition: opacity 0.35s 0.15s; }
.pm.ready .pm-arcrow { opacity: 1; pointer-events: auto; }

/* compete.css has its own .cp-status; keep the campaign card's. */
.cp-card .cp-status { display: block; flex: initial; padding-top: 4px; font-size: 9.5px; }
.cp-card .cp-status > span { flex: initial; padding: 0; box-shadow: none; overflow: visible; }

/* ==========================================================================
   Main menu extras: ARCADE logo thumb, PLAY THE CHART sparkline, LEADERBOARD
   quest dots, and the compact $SWEEP LIVE widget (js/hubHero.js) on the right.
   ========================================================================== */

/* PLAY: the six items share the radio/daily look (label + a sub line under it). */
.hm-item.play.arcade,
.hm-item.play.leaderboard,
.hm-item.play.story,
.hm-item.play.live { overflow: hidden; flex-wrap: wrap; row-gap: 0; }
.hm-item.play.arcade .hm-sub,
.hm-item.play.leaderboard .hm-sub,
.hm-item.play.story .hm-sub {
  flex-basis: 100%;
  margin-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  white-space: normal;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hm-item.play.arcade.sel .hm-sub,
.hm-item.play.leaderboard.sel .hm-sub,
.hm-item.play.story.sel .hm-sub { transform: translateX(8px); }
.hm-item.play.live { margin-bottom: 0; }
.hm-item.play.daily { margin-bottom: 0; }

/* ARCADE: a small cycling thumb of the cabinet logos on the right */
.arc-logos { position: absolute; top: 2px; right: 6px; bottom: 2px; width: 30%; max-width: 120px; pointer-events: none; opacity: 0.7; transition: opacity 0.25s; }
.hm-item.arcade.sel .arc-logos { opacity: 1; }
.arc-logos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: right center; opacity: 0; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.8)); animation: arc-cycle 12s infinite; }
.arc-logos img:nth-child(2) { animation-delay: 2s; }
.arc-logos img:nth-child(3) { animation-delay: 4s; }
.arc-logos img:nth-child(4) { animation-delay: 6s; }
.arc-logos img:nth-child(5) { animation-delay: 8s; }
.arc-logos img:nth-child(6) { animation-delay: 10s; }
@keyframes arc-cycle {
  0% { opacity: 0; transform: scale(0.8) rotate(-4deg); }
  3%, 14% { opacity: 1; transform: scale(1) rotate(0); }
  17%, 100% { opacity: 0; transform: scale(1.06); }
}
.arc-top { color: var(--gold); }

/* PLAY THE CHART: a narrower sparkline so the label never runs under it */
.hm-item.play.live .hm-spark { width: 30%; max-width: 130px; top: 8px; bottom: 8px; }
.lv-badge { padding: 0 5px; color: #120d00; background: var(--gold); animation: badge-pulse 1s ease-in-out infinite; }
.lv-badge.blood { color: #fff; background: var(--dump); animation-delay: 0.5s; }
@keyframes badge-pulse { 50% { opacity: 0.55; } }

/* LEADERBOARD / DAILY QUESTS: quest dots */
.q-dots { display: inline-flex; gap: 3px; margin-left: 4px; vertical-align: middle; }
.q-dots i { width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--pump); }
.q-dots i.on { background: var(--pump); box-shadow: 0 0 6px rgba(47, 224, 122, 0.7); }

/* $SWEEP LIVE: a glass panel under the player card */
.hub-live {
  grid-area: panel;
  justify-self: end;
  align-self: start;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  background: linear-gradient(160deg, rgba(14, 22, 24, 0.86), rgba(5, 8, 10, 0.9));
  border-top: 2px solid var(--pump);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hub.intro .hub-live { animation: hub-in-r 0.9s 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hub.panel-open .hub-live { display: none; }
.hh-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hh-k { display: flex; align-items: center; gap: 7px; font-family: "Michroma", Arial, sans-serif; font-size: 9px; letter-spacing: 0.3em; color: var(--pump); }
.hh-k i { width: 7px; height: 7px; border-radius: 50%; background: #ff2a3a; box-shadow: 0 0 8px #ff2a3a; animation: daily-dot 1.2s steps(2) infinite; }
.hh-mode { font-family: "Michroma", Arial, sans-serif; font-size: 7px; letter-spacing: 0.14em; color: #74867d; white-space: nowrap; }
.hh-mode.live { color: var(--pump); }
.hh-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hh-cap { display: flex; align-items: baseline; gap: 6px; }
.hh-cap b { font-family: "Archivo Black", "Arial Black", sans-serif; font-weight: 400; font-size: 30px; line-height: 1; color: #fff; }
.hh-cap span { font-family: "Michroma", Arial, sans-serif; font-size: 8px; letter-spacing: 0.2em; color: #9fb3a8; }
.hh-chg { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 13px; text-align: right; }
.hh-chg.up { color: var(--pump); }
.hh-chg.down { color: #ff6b75; }
.hh-chart { position: relative; height: 112px; margin: 0 -4px; }
.hh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-live.no-chart .hh-chart { display: none; }
.hh-air { display: flex; gap: 8px; align-items: center; padding: 6px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 59, 74, 0.22); }
.hh-air img { flex: none; width: 34px; height: 40px; object-fit: cover; object-position: 50% 18%; }
.hh-air-t { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hh-onair { align-self: flex-start; padding: 0 5px; font-family: "Michroma", Arial, sans-serif; font-size: 7px; letter-spacing: 0.22em; color: #fff; background: #d8132a; animation: badge-pulse 1.2s ease-in-out infinite; }
.hh-buys { font-family: "Oswald", sans-serif; font-size: 12.5px; color: #c5d0ca; }
.hh-buy { display: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hh-buy:first-child { display: block; }
.hh-buy.new { animation: buy-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hh-buy i { font-style: normal; margin-right: 5px; color: #74867d; }
.hh-buy b { font-weight: 500; color: #dfe9e3; }
.hh-buy em { font-style: normal; color: var(--pump); }
@keyframes buy-in { from { opacity: 0; transform: translateX(-8px); } }
.hh-ath { font-family: "Michroma", Arial, sans-serif; font-size: 7.5px; letter-spacing: 0.18em; color: var(--gold); }
.hh-ath:empty { display: none; }
.hh-whale { font-family: "Michroma", Arial, sans-serif; font-size: 7.5px; letter-spacing: 0.14em; color: #9fb3a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hh-whale b { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 0.04em; color: var(--gold); }
.hh-whale[hidden] { display: none; }
.hh-buy-btn { width: 100%; min-height: 38px; }
.hh-compete:empty { display: none; }
.hub .cpw { gap: 5px; font-family: "Michroma", Arial, sans-serif; }
.hub .cpw-pill { min-height: 24px; padding: 2px 8px; font-family: "Michroma", Arial, sans-serif; font-size: 8px; letter-spacing: 0.1em; color: #dfe9e3; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.hub .cpw-dots i { width: 8px; height: 8px; border: 1.5px solid var(--pump); border-radius: 50%; }
.hub .cpw-dots i.on { background: var(--pump); }
.hub .cpw-crate,
.hub .cpw-happy.on { color: #120d00; background: var(--gold); border: 0; }
.hub .cpw-ticker { height: 22px; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 1px rgba(47, 224, 122, 0.22); color: var(--pump); }
.hub .cpw-ev { font-family: "Oswald", sans-serif; font-size: 12px; letter-spacing: 0.03em; }
.hub .cpw-ev small { color: #74867d; }

/* Short desktop windows: a slimmer widget */
@media (min-width: 861px) and (max-height: 820px) {
  .hh-chart { height: 80px; }
  .hh-ath { display: none; }
}

/* Phones: a slim strip under the title (no chart, no ticker) */
@media (max-width: 860px) {
  .hub-live {
    width: auto;
    align-self: stretch;
    justify-self: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "top top" "row btn" "air air";
    gap: 6px 10px;
    padding: 10px 12px;
  }
  .hh-top { grid-area: top; }
  .hh-row { grid-area: row; justify-content: flex-start; gap: 10px; }
  .hh-air { grid-area: air; }
  .hh-buy-btn { grid-area: btn; width: auto; min-height: 34px; padding: 6px 12px; }
  .hh-cap b { font-size: 24px; }
  .hh-chart,
  .hh-ath,
  .hh-compete { display: none; }
  .arc-logos { width: 34%; }
}
.hh-k { white-space: nowrap; }
.hh-row { flex-direction: column; align-items: flex-start; gap: 2px; }
.hh-chg { text-align: left; }
@media (max-width: 860px) {
  .hh-buy-btn { align-self: center; }
  .hh-row { gap: 0; }
}

/* ---------- token achievements (token panel) ---------- */
.ta-sec { max-width: 540px; margin: 18px auto 0; padding: 16px; background: linear-gradient(170deg, #12100a, #090806 70%); box-shadow: inset 0 0 0 1px rgba(255, 210, 26, 0.22); }
.ta-head { display: flex; align-items: baseline; gap: 10px; }
.ta-head h3 { margin: 0; font-family: "Michroma", Arial, sans-serif; font-size: 11px; letter-spacing: 0.26em; color: var(--gold); font-weight: 400; }
.ta-head b { margin-left: auto; font-family: "Oswald", sans-serif; font-size: 22px; color: #fff; }
.ta-head small { font-size: 14px; color: #8b8572; }
.ta-head em { font-style: normal; font-family: "Michroma", Arial, sans-serif; font-size: 8px; letter-spacing: 0.14em; color: #1a1300; background: var(--gold); padding: 3px 5px; }
.ta-sub { margin: 6px 0 12px; font-size: 12px; color: #9b927a; }
.ta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.ta-it { display: flex; gap: 10px; align-items: flex-start; padding: 8px; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); min-width: 0; }
.ta-it img { flex: none; filter: grayscale(1) brightness(0.5); opacity: 0.55; }
.ta-it div { min-width: 0; flex: 1; }
.ta-it b { display: block; font-family: "Oswald", sans-serif; font-size: 14px; color: #8d877a; letter-spacing: 0.02em; }
.ta-it span { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.3; color: #77725f; }
.ta-it em { display: block; margin-top: 5px; font-style: normal; font-family: "Michroma", Arial, sans-serif; font-size: 7.5px; letter-spacing: 0.14em; color: #6d6856; }
.ta-bar { display: block; height: 3px; margin-top: 6px; background: rgba(255, 255, 255, 0.07); }
.ta-bar i { display: block; height: 100%; background: #8b7a3a; }
.ta-it.on { --c: var(--gold); background: rgba(255, 210, 26, 0.06); box-shadow: inset 0 0 0 1px var(--c), inset 0 0 22px rgba(255, 210, 26, 0.07); }
.ta-it.t-bronze { --c: #d58a4a; } .ta-it.t-silver { --c: #cfe3ff; } .ta-it.t-legendary { --c: #ff5cf0; }
.ta-it.on img { filter: none; opacity: 1; }
.ta-it.on b { color: #fff; }
.ta-it.on span { color: #c9bf9f; }
.ta-it.on em { color: var(--c); }
@media (max-width: 560px) { .ta-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- top whales (token panel) ---------- */
.tw-sec { max-width: 540px; margin: 12px auto 0; padding: 14px 16px; background: linear-gradient(170deg, #0a1012, #06090a 70%); box-shadow: inset 0 0 0 1px rgba(255, 210, 26, 0.18); }
.tw-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
.tw-it { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px; background: rgba(255, 255, 255, 0.035); }
.tw-it.r1 { background: linear-gradient(90deg, rgba(255, 210, 26, 0.13), rgba(255, 210, 26, 0.02)); }
.tw-rk { font-family: "Archivo Black", "Arial Black", sans-serif; font-size: 16px; text-align: center; color: #8b8572; }
.tw-it.r1 .tw-rk { color: var(--gold); }
.tw-it.r2 .tw-rk { color: #cfe3ff; }
.tw-it.r3 .tw-rk { color: #d58a4a; }
.tw-who { min-width: 0; }
.tw-who b { display: block; font-family: "Oswald", sans-serif; font-weight: 500; font-size: 14px; color: #fff; letter-spacing: 0.03em; }
.tw-who small { display: block; font-size: 11px; color: #8d9a93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-sol { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 16px; color: var(--gold); white-space: nowrap; }
.tw-rec { margin: 8px 0 0; font-family: "Michroma", Arial, sans-serif; font-size: 8px; letter-spacing: 0.14em; color: #9b927a; }
.tw-rec b { font-family: "Oswald", sans-serif; font-size: 12px; letter-spacing: 0.03em; color: var(--gold); }
@media (max-width: 860px) { .hh-whale { display: none; } }

/* While the hub is up (and during its fades) the game board underneath stays hidden. */
body.hub-up #game-frame { visibility: hidden; }

/* ---------- launch kit: next-chapter bar + CA line in the $SWEEP LIVE widget ---------- */
.hh-next { display: flex; flex-direction: column; gap: 5px; padding: 7px 8px; background: rgba(255, 210, 26, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 210, 26, 0.28); }
.hh-next[hidden] { display: none; }
.hh-next-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: "Michroma", Arial, sans-serif; font-size: 8px; letter-spacing: 0.12em; color: #e9dfbf; }
.hh-next-t b { color: var(--gold); font-size: 10px; }
.hh-next-t em { font-style: normal; color: #9fb3a8; white-space: nowrap; }
.hh-next-bar { height: 8px; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); overflow: hidden; }
.hh-next-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1fa85a, var(--pump), var(--gold)); transform-origin: left; transform: scaleX(0); transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 0 10px rgba(47, 224, 122, 0.6); }
.hh-ca:empty { display: none; }
.hh-ca .lk-ca { font-size: 9px; }
.hh-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hh-act .lk-lastbuy { flex-basis: 100%; margin-top: 0; text-align: center; }
@media (max-width: 860px) {
  .hub-live { grid-template-areas: "top top" "row btn" "next next" "ca ca" "air air"; }
  .hh-next { grid-area: next; }
  .hh-ca { grid-area: ca; }
  .hh-act { grid-area: btn; flex-direction: column; align-items: stretch; gap: 2px; }
  .hh-act .hh-soc { display: none; }
  .hh-act .lk-lastbuy { font-size: 8px; }
}
.pm-ca { display: flex; justify-content: center; margin-top: 12px; }

/* THE LOOP (token panel) + prize pool line on the LEADERBOARD item */
.tl-sec { max-width: 540px; margin: 18px auto 0; padding: 16px; background: linear-gradient(170deg, #12100a, #090806 70%); box-shadow: inset 0 0 0 1px rgba(255, 210, 26, 0.32); }
.tl-list { margin: 10px 0 0; padding: 0 0 0 20px; color: #e8e2cc; font-size: 13px; line-height: 1.7; }
.tl-prize { margin: 12px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #9b927a; }
.tl-pz { font-family: "Oswald", sans-serif; font-size: 18px; color: var(--gold); letter-spacing: 0.04em; }
.pz-proofs { font-size: 11px; color: #9b927a; overflow-wrap: anywhere; }
.pz-proofs a { color: var(--gold); }
.hm-prize { color: var(--gold); }
