/* AionJanis. Black tie, wet floor.
   True black like his Twitch panels, caution yellow from those panels and the
   wet-floor signs in his room, his banner crew and emotes for the fun, and
   Bodoni numerals (the tie) wherever a number matters: enhancement levels,
   gear score, viewers, countdowns. Item grade colors stay on the gear. */

/* ============================================================
   Tokens
   ============================================================ */
:root {
  --black: #000;
  --white: #fff;
  --bone: #ece7dd;
  --ash: #8f897f;
  --ash-2: #5a554e;
  --line: rgba(255, 255, 255, 0.14);
  --line-2: rgba(255, 255, 255, 0.07);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.09);
  --satin: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03) 38%, rgba(255, 255, 255, 0) 64%);

  --caution: #ffc21f;   /* his panel gold, the wet-floor sign */
  --caution-2: #ffd766;
  --orange: #ff7a1a;    /* the banner lettering */

  /* Black Desert item grades */
  --g0: #e6e1d8;
  --g1: #67e07a;
  --g2: #3eb4ff;
  --g3: #f4c445;
  --g4: #ff7a1a;
  --g5: #b48dff;

  --live: #ff3b30;
  --twitch: #9147ff;

  --voice: "Fredoka", "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --display: "Bodoni Moda", "Bodoni MT", Didot, "Times New Roman", serif;
  --sans: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; } /* scrolling is eased in app.js, so no native smooth scroll here */

/* scrollbars: a caution-yellow pill on black that turns into tape when you grab it.
   Chrome, Edge and Safari use these; Firefox gets the plain colors below. */
::-webkit-scrollbar { width: 14px; height: 12px; }
::-webkit-scrollbar-track { background: var(--black); box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.06); }
::-webkit-scrollbar-thumb { background: var(--caution); border: 4px solid var(--black); border-radius: 999px; min-height: 48px; }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active {
  border-width: 3px;
  background: repeating-linear-gradient(-45deg, var(--caution) 0 7px, var(--black) 7px 12px);
}
::-webkit-scrollbar-corner { background: var(--black); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--caution) var(--black); }
  .climb { scrollbar-width: thin; scrollbar-color: var(--caution) transparent; }
}
main > section[id] { scroll-margin-top: var(--nav-h); } /* anchors land just under the sticky nav */
body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--caution); color: var(--black); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--voice); font-weight: 600; color: var(--white); line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, dt { margin: 0; }
:focus-visible { outline: 2px solid var(--caution); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--caution); color: var(--black); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 128px) 0 0; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 0.98; letter-spacing: -0.025em; }
.section-head-split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 40px; }
.section-head-split .lede { margin-top: 0; padding-bottom: 8px; }
.lede { margin-top: 14px; font-size: 1.05rem; color: var(--ash); max-width: 62ch; }
.lede b { color: var(--bone); font-weight: 500; }
.num { font-variant-numeric: tabular-nums; }

/* buttons: rounded like his panels; the main one is caution yellow */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--caution); color: var(--black); border: 1px solid var(--caution);
  font-family: var(--voice); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--white); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.92rem; }
.btn svg { width: 16px; height: 16px; }
.link-btn {
  background: none; border: 0; padding: 6px 0; color: var(--ash); cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ash-2);
}
.link-btn:hover { color: var(--white); text-decoration-color: var(--caution); }
.text-link { color: var(--bone); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ash-2); }
.text-link:hover { color: var(--white); text-decoration-color: var(--caution); }

/* panels: hairline frame with a satin sheen */
.panel { padding: 26px; border: 1px solid var(--line-2); background: var(--satin), var(--surface); }
.panel h3 { font-size: 1.5rem; }
.panel-note { margin-top: 10px; color: var(--ash); font-size: 0.95rem; }

/* ============================================================
   Nav
   ============================================================ */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { font-family: var(--voice); font-weight: 600; font-size: 1.4rem; color: var(--white); text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; align-self: stretch; align-items: center; gap: 22px; margin-left: 8px; }
/* the underline slides in from the left; .is-here marks the section you're reading */
.nav-links > a, .nav-item > a {
  color: var(--ash); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 6px 0;
  background: linear-gradient(var(--caution), var(--caution)) left bottom / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease), color 0.2s;
}
.nav-links > a:hover, .nav-item > a:hover, .nav-links a[aria-current="page"], .nav-links a.is-here { color: var(--white); background-size: 100% 2px; }

/* dropdowns: Gear opens a full-width panel with both games, Taps and The Janitors open
   short lists. They open on hover or keyboard focus, on screens with a mouse; phones get
   the gear cards inside the menu instead. A caution line runs along the top of each. */
.nav-item { position: relative; align-self: stretch; display: flex; align-items: center; }
.nav-item-mega { position: static; } /* its panel spans the whole nav bar */
.nav-item > a::after {
  content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 1px 0 8px; vertical-align: 3px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: 0.6; transition: transform 0.2s var(--ease);
}
.nav-drop {
  position: absolute; top: 100%; left: -18px; width: 330px; padding: 8px;
  background: var(--black); border: 1px solid var(--line); border-top: 0;
  box-shadow: inset 0 2px 0 var(--caution), 0 26px 60px rgba(0, 0, 0, 0.75);
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.16s 0.1s, transform 0.2s var(--ease) 0.1s, visibility 0s 0.3s;
}
.nav-drop:empty { display: none; }
.nav-drop-mega { left: 0; right: 0; width: auto; padding: 26px 0 30px; border-width: 0 0 1px; }
@media (hover: hover) and (min-width: 761px) {
  .nav-item:hover > a, .nav-item:focus-within > a { color: var(--white); background-size: 100% 2px; }
  .nav-item:hover > a::after, .nav-item:focus-within > a::after { transform: translateY(3px) rotate(-135deg); }
  .nav-item:hover > .nav-drop, .nav-item:focus-within > .nav-drop {
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    transition: opacity 0.16s 0.06s, transform 0.22s var(--ease) 0.06s, visibility 0s 0.06s;
  }
  /* closed by a click inside it or by Escape, until the pointer or focus leaves */
  .nav-item.is-shut > .nav-drop { opacity: 0; visibility: hidden; pointer-events: none; transition: none; }
}
.drop-row {
  width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px;
  border: 0; background: none; color: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background 0.15s;
}
.drop-row:hover, .drop-row:focus-visible { background: var(--surface-2); }
.drop-row b { display: block; font-family: var(--voice); font-weight: 600; font-size: 1rem; line-height: 1.2; color: var(--white); }
.drop-row small { display: block; margin-top: 1px; color: var(--ash); font-size: 0.82rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-ic { width: 36px; height: 36px; }
.drop-svg, .drop-play { display: grid; place-items: center; border-radius: 50%; }
.drop-svg { border: 1px solid var(--line); color: var(--white); }
.drop-svg svg { width: 18px; height: 18px; }
.drop-play { background: var(--caution); color: var(--black); }
.drop-play svg { width: 14px; height: 14px; margin-left: 2px; }
.drop-row:hover .drop-svg { border-color: var(--caution); }

.drop-mega { display: grid; grid-template-columns: minmax(200px, 0.75fr) repeat(2, minmax(0, 1fr)); gap: 2px; }
.drop-intro { padding: 6px 32px 6px 0; }
.drop-title { font-family: var(--voice); font-weight: 600; font-size: 1.6rem; line-height: 1.1; color: var(--white); }
.drop-intro p:not(.drop-title) { margin-top: 8px; max-width: 30ch; color: var(--ash); font-size: 0.95rem; }
.drop-intro .text-link { display: inline-block; margin-top: 14px; font-size: 0.92rem; }
.drop-game {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 206px; padding: 20px 22px;
  border: 1px solid var(--line-2); background: var(--satin), var(--surface); color: inherit; text-decoration: none; transition: border-color 0.2s;
}
.drop-game:hover, .drop-game:focus-visible { border-color: var(--caution); }
.drop-art {
  position: absolute; right: 0; top: 0; width: 58%; height: 100%; object-fit: cover; object-position: 50% 18%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 65%); mask-image: linear-gradient(90deg, transparent, #000 65%);
  transition: transform 0.5s var(--ease);
}
.drop-game:hover .drop-art { transform: scale(1.04); }
.drop-game-text { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.drop-game-text > b { font-family: var(--voice); font-weight: 600; font-size: 1.5rem; line-height: 1.05; color: var(--white); }
.drop-game-text > small { color: var(--ash); font-size: 0.88rem; }
.drop-icons { display: flex; gap: 10px; margin: 12px 0 2px; }
.drop-icon {
  --g: var(--g0); position: relative; width: 44px; height: 44px; display: grid; place-items: center; background: var(--black);
  border: 1px solid var(--g); box-shadow: 0 0 14px color-mix(in srgb, var(--g) 35%, transparent);
}
.drop-icon img { width: 34px; height: 34px; }
.drop-icon .xc-corner { right: -7px; bottom: -7px; width: 20px; height: 20px; }
.drop-icon .xc-corner b { font-size: 11px; }
.drop-cta {
  margin-top: 10px; display: inline-flex; align-items: center; min-height: 34px; padding: 0 15px; border-radius: 999px;
  background: var(--caution); color: var(--black); font-family: var(--voice); font-weight: 600; font-size: 0.9rem; transition: background 0.2s;
}
.drop-game:hover .drop-cta { background: var(--white); }
@media (max-width: 1000px) {
  .drop-mega { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drop-intro { display: none; }
}
/* the menu's links land below the sticky nav */
#tapper, .panel[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ash); text-decoration: none; font-size: 0.85rem; font-weight: 600;
}
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ash-2); }
.live-pill.is-live { color: var(--white); border-color: var(--white); }
.live-pill.is-live .dot { background: var(--live); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: none; border-radius: 50%; position: relative; }
.menu-btn::before, .menu-btn::after { content: ""; position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--white); transition: transform 0.25s, top 0.25s; }
.menu-btn::before { top: 15px; }
.menu-btn::after { top: 22px; }
.nav.is-open .menu-btn::before { top: 18.5px; transform: rotate(45deg); }
.nav.is-open .menu-btn::after { top: 18.5px; transform: rotate(-45deg); }

/* ============================================================
   Hero: his banner crew standing on top of the stream
   ============================================================ */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(1200px, 100%); height: 560px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(42% 52% at 50% 62%, rgba(255, 194, 31, 0.13), transparent 72%);
}
.hero-top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px) minmax(0, 1fr); align-items: end; gap: 0 clamp(16px, 3vw, 40px); }
.hero-status { grid-column: 1; grid-row: 1; position: relative; z-index: 2; padding-bottom: 30px; }
.hero-about { grid-column: 3; grid-row: 1; position: relative; z-index: 2; padding-bottom: 30px; }
.hero-art { grid-column: 2; grid-row: 1; position: relative; z-index: 1; margin: 0; line-height: 0; align-self: end; }
.hero-art img { width: 100%; height: auto; animation: rise 0.9s var(--ease) 0.1s both; }
@keyframes rise { from { transform: translateY(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero > .wrap:not(.hero-top) { position: relative; z-index: 3; } /* the player's yellow edge stays on top: the crew stands on it */
/* a straight strip of caution tape right under the nav */
.hero-tape { position: relative; z-index: 3; }
.hero .tape-hero { width: 100%; margin: 0 0 clamp(20px, 3vw, 36px); padding: 14px 0; transform: none; }
.hero .tape-hero .tape-track span { font-size: 1.05rem; }

.hs-pill { display: inline-flex; align-items: center; gap: 10px; font-family: var(--voice); font-weight: 600; font-size: 1.55rem; color: var(--white); line-height: 1.1; }
.hs-pill i { width: 12px; height: 12px; border-radius: 50%; background: var(--ash-2); flex: none; }
.hero-status.is-live .hs-pill i { background: var(--live); animation: pulse 1.8s infinite; }
.hs-line { margin-top: 10px; color: var(--bone); font-size: 1.05rem; }
.hs-big { margin-top: 4px; display: flex; align-items: baseline; gap: 10px; }
.hs-big b { font-family: var(--display); font-weight: 500; font-size: clamp(2.8rem, 4.4vw, 4rem); line-height: 1; color: var(--white); letter-spacing: -0.02em; white-space: nowrap; }
.hs-big span { color: var(--ash); }
.hs-sub { margin-top: 6px; color: var(--ash); font-size: 0.95rem; }

.hero-about .intro { font-size: 1.08rem; color: var(--bone); max-width: 38ch; }
.hero-meta { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.hero-meta p { color: var(--ash); font-size: 0.9rem; line-height: 1.45; }
.hero-meta .followers { color: var(--bone); }
.hero-face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); }
.hero.is-live .hero-face { border-color: var(--live); box-shadow: 0 0 18px rgba(255, 59, 48, 0.35); }
.hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Road to 100K: his follower goal as a strip of caution tape filling up */
.goal { margin-top: 18px; max-width: 380px; }
.goal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--ash); font-size: 0.9rem; }
.goal-head span:first-child { font-family: var(--voice); font-weight: 600; font-size: 1.02rem; color: var(--white); }
.goal-head b { color: var(--bone); font-weight: 600; }
.goal-bar { margin-top: 8px; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.goal-bar i {
  display: block; height: 100%; border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--caution) 0 7px, var(--black) 7px 11px);
  box-shadow: 0 0 16px rgba(255, 194, 31, 0.35);
  animation: goal-fill 1.6s var(--ease) 0.6s both; /* fills once, on load */
}
@keyframes goal-fill { from { width: 0; } }

/* ============================================================
   Stage: player + side (chat when live, next stream when not)
   ============================================================ */
.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2px; box-shadow: 0 -3px 0 var(--caution); }
.stage.is-theater { grid-template-columns: minmax(0, 1fr); }
.stage.is-theater .side { display: none; }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--satin), var(--surface); overflow: hidden; }
.player iframe, .side iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.side { position: relative; min-height: 0; background: var(--satin), var(--surface); border: 1px solid var(--line-2); border-top: 0; }
.side[data-mode="chat"] { border: 0; }
.embed-note { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 24px; color: var(--ash); }
.embed-note strong { color: var(--white); font-family: var(--voice); font-weight: 600; font-size: 1.25rem; }
.embed-note span { max-width: 46ch; }

/* offline panel inside the side column: "Back soon" and his top clips */
.next-panel { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 26px; overflow: auto; }
.np-emote { position: absolute; right: 22px; top: 22px; width: 64px; height: 64px; }
.next-panel .np-label { color: var(--ash); font-size: 0.95rem; }
.next-panel .np-count { font-family: var(--display); font-weight: 500; font-size: clamp(2.8rem, 4.4vw, 3.8rem); line-height: 1; color: var(--white); margin: 6px 0 10px; letter-spacing: -0.02em; }
.next-panel .np-when { font-size: 1.02rem; color: var(--bone); }
.next-panel .np-when { max-width: 30ch; }
.np-sub { margin-top: 22px; color: var(--ash); font-size: 0.9rem; }
.np-clips { margin-top: 8px; display: grid; gap: 2px; }
.np-clip {
  width: 100%; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 10px 6px 6px;
  border: 1px solid var(--line-2); background: var(--black); color: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s;
}
.np-clip:hover { border-color: var(--caution); }
.np-clip img { width: 96px; height: 54px; object-fit: cover; }
.np-clip b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--voice); font-weight: 600; font-size: 0.95rem; line-height: 1.2; color: var(--white); }
.np-clip small { display: block; margin-top: 2px; color: var(--ash); font-size: 0.8rem; }
.next-panel .np-foot { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }

.stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 14px 0 0; }
.stage-title { flex: 1; min-width: 0; color: var(--ash); font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-tools { display: flex; gap: 20px; flex: none; }

/* ============================================================
   Gear (home): a banner per game, the weapons large, the rack
   ============================================================ */
.game-block { margin-top: clamp(44px, 5vw, 72px); }
.game-block:first-child { margin-top: 0; }
.game-banner {
  position: relative; overflow: hidden; min-height: 290px; display: flex; align-items: flex-end;
  padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line-2); background: var(--satin), var(--surface);
}
.game-art {
  position: absolute; right: 0; top: 0; height: 100%; width: min(58%, 640px); object-fit: cover; object-position: 50% 22%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 48%); mask-image: linear-gradient(90deg, transparent 0%, #000 48%);
}
.game-banner-text { position: relative; max-width: 640px; }
.game-banner h3 { font-size: clamp(2.1rem, 3.8vw, 3rem); letter-spacing: -0.02em; }
.game-who { margin-top: 6px; color: var(--ash); max-width: 52ch; }
.game-who b { color: var(--white); font-weight: 600; }
.game-lead { margin-top: 20px; display: flex; align-items: baseline; gap: 12px; }
.game-lead b { font-family: var(--display); font-weight: 500; font-size: clamp(3.4rem, 6.4vw, 5.4rem); line-height: 0.88; color: var(--white); letter-spacing: -0.03em; }
.game-lead span { color: var(--ash); }
.game-stats { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.game-stats div { display: flex; align-items: baseline; gap: 8px; }
.game-stats dt { order: 2; color: var(--ash); font-size: 0.9rem; }
.game-stats dd { font-family: var(--display); font-weight: 500; font-size: 1.75rem; line-height: 1; color: var(--white); }
.game-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; }
.game-src { color: var(--ash-2); font-size: 0.85rem; }

.jewels { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 2px; margin-top: 2px; }
.jewel {
  --g: var(--g0);
  position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 26px;
  border: 1px solid var(--line-2); background: var(--satin), var(--surface); color: inherit; text-decoration: none; overflow: hidden;
  transition: border-color 0.3s;
}
.jewel:hover { border-color: var(--line); }
.jewel .numeral {
  position: absolute; right: 18px; top: 2px; font-family: var(--display); font-weight: 500; font-size: 9rem; line-height: 1;
  font-variation-settings: "opsz" 10; /* low optical size keeps Bodoni's hairline visible at this opacity */
  color: color-mix(in srgb, var(--g) 36%, transparent); pointer-events: none; letter-spacing: -0.04em;
  transition: color 0.8s var(--ease);
}
.jewel-icon { position: relative; width: 84px; height: 84px; display: grid; place-items: center; background: var(--black); border: 1px solid color-mix(in srgb, var(--g) 70%, transparent); transition: box-shadow 0.9s var(--ease), border-color 0.9s; }
.jewel-icon img { width: 58px; height: 58px; }
.lit .jewel-icon { border-color: var(--g); box-shadow: 0 0 34px color-mix(in srgb, var(--g) 45%, transparent), inset 0 0 16px color-mix(in srgb, var(--g) 22%, transparent); }
.jewel .enh { margin-top: 26px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--g); }
.jewel .name { margin-top: 4px; font-size: 1.55rem; line-height: 1.08; }
.jewel .slot { margin-top: 6px; color: var(--ash); font-size: 0.95rem; }
.jewel .stats { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.95rem; }
.jewel .stats span { color: var(--ash); }
.jewel .stats b { color: var(--white); font-weight: 600; }
.jewel-foot { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }

.rack { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: 2px; }
.rack-item {
  --g: var(--g0);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px 16px; text-decoration: none; color: inherit;
  border: 1px solid var(--line-2); background: var(--surface); transition: background 0.2s, border-color 0.2s;
}
.rack-item:hover { background: var(--surface-2); border-color: var(--line); }
.slot-ic { position: relative; width: 56px; height: 56px; display: grid; place-items: center; background: var(--black); border: 1px solid color-mix(in srgb, var(--g) 65%, transparent); transition: box-shadow 0.8s var(--ease), border-color 0.8s; }
.slot-ic img { width: 44px; height: 44px; }
.lit .slot-ic, .slot-ic.lit { border-color: var(--g); box-shadow: 0 0 20px color-mix(in srgb, var(--g) 40%, transparent), inset 0 0 10px color-mix(in srgb, var(--g) 18%, transparent); }
.rack-item .enh { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--g); line-height: 1; }
.rack-item .enh:empty { display: none; }
.rack-item .name { font-size: 0.88rem; line-height: 1.3; color: var(--bone); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rack-item .slot { font-size: 0.78rem; color: var(--ash); }

/* Aion 2 exceed (the levels past +15): a teal diamond with the count, like the game's badge.
   Inline after the enhancement text, and in the corner of the item icon. */
.xc { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 6px; vertical-align: -5px; }
.xc::before {
  content: ""; position: absolute; inset: 3px; transform: rotate(45deg); border-radius: 2px;
  background: linear-gradient(135deg, #b4f7f5 0%, #43d3d6 45%, #138c97 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 10px rgba(67, 211, 214, 0.5);
}
.xc b { position: relative; font: 700 11px/1 var(--sans); color: var(--white); letter-spacing: 0; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75), 0 0 2px rgba(0, 0, 0, 0.6); }
.xc-corner { position: absolute; right: -9px; bottom: -9px; margin: 0; width: 24px; height: 24px; }
.xc-corner b { font-size: 12px; }
.look-icon { position: relative; }
.rack-nav .xc-corner { right: -6px; bottom: -6px; width: 20px; height: 20px; }
.rack-nav .xc-corner b { font-size: 11px; }

/* staggered reveal */
.will-light .jewel-icon, .will-light .slot-ic { border-color: var(--line); }
.will-light .jewel .numeral { color: transparent; }
.lit .jewel-icon, .lit .slot-ic { transition-delay: calc(var(--i, 0) * 60ms); }

/* ============================================================
   Taps: the reel, and the tap game beside the heading
   ============================================================ */
.taps-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: 24px clamp(24px, 4vw, 56px); align-items: end; margin-bottom: clamp(26px, 3.4vw, 40px); }
.taps-top .section-head { margin-bottom: 0; }
.wrap-reel { width: min(var(--wrap), 100% - var(--gutter) * 2); }
.climb { display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 14px; }
.climb::-webkit-scrollbar-track { background: transparent; box-shadow: none; }
.climb::-webkit-scrollbar-thumb { border-width: 3px; }
.climb-group { display: flex; gap: 2px; flex: none; }
.climb-level { flex: none; width: 104px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 18px 14px; border: 1px solid var(--line-2); scroll-snap-align: start; }
.climb-level b { font-family: var(--display); font-weight: 500; font-size: 3.4rem; line-height: 0.9; color: var(--caution); letter-spacing: -0.03em; }
.climb-level img { width: 64px; height: 64px; }
.climb-level span { margin-top: 10px; color: var(--ash); font-size: 0.85rem; font-weight: 600; }
.tap {
  --g: var(--g0);
  flex: none; width: 300px; display: flex; flex-direction: column; padding: 0; text-align: left; color: inherit;
  border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; scroll-snap-align: start; overflow: hidden;
  transition: border-color 0.2s;
}
.tap:hover { border-color: var(--caution); }
.tap-shot { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--black); overflow: hidden; }
.tap-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.tap:hover .tap-shot img { transform: scale(1.04); }
.tap-shot.no-shot { background: radial-gradient(60% 80% at 30% 60%, color-mix(in srgb, var(--g) 26%, transparent), transparent 70%), var(--black); }
.tap-ic { position: absolute; left: 10px; bottom: 10px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--black); border: 1px solid color-mix(in srgb, var(--g) 70%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--g) 35%, transparent); }
.tap-ic img { width: 34px; height: 34px; }
.tap-play { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.4); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.tap-play svg { width: 16px; height: 16px; margin-left: 2px; }
.tap:hover .tap-play { background: var(--caution); color: var(--black); border-color: var(--caution); }
.tap-text { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; }
.tap-title { font-family: var(--voice); font-weight: 600; color: var(--white); font-size: 1.12rem; line-height: 1.2; }
.tap-quote { color: var(--bone); font-size: 0.92rem; line-height: 1.35; }
.tap-cmd { margin-top: 2px; color: var(--ash); font-size: 0.82rem; }

/* the tap game */
.tapper { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; padding: 22px; border: 1px solid var(--line); background: var(--satin), var(--surface); }
.tapper.is-done { border-color: var(--caution); }
.tapper-art { position: relative; width: 132px; height: 132px; display: grid; place-items: center; background: var(--black); border: 1px solid var(--line-2); }
.tapper-emote { width: 112px; height: 112px; }
.tapper-item { --g: var(--g5); position: absolute; right: -10px; bottom: -10px; width: 52px; height: 52px; display: grid; place-items: center; background: var(--black); border: 1px solid var(--g); box-shadow: 0 0 18px color-mix(in srgb, var(--g) 45%, transparent); }
.tapper-item img { width: 40px; height: 40px; }
.tapper h3 { font-size: 1.6rem; }
.tapper-goal { margin-top: 4px; color: var(--ash); font-size: 0.94rem; }
.tapper-stats { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.tapper-stats div { display: flex; align-items: baseline; gap: 6px; }
.tapper-stats dt { color: var(--ash); font-size: 0.85rem; }
.tapper-stats dd { font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.tapper-msg { margin-top: 10px; min-height: 1.55em; color: var(--bone); }
.tapper-foot { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.tapper-btn { min-width: 150px; }
.tapper-best { color: var(--ash); font-size: 0.88rem; }
.tapper.is-win { animation: flash 0.8s ease-out; }
.tapper.is-win .tapper-emote { animation: pop 0.45s var(--ease); }
.tapper.is-fail .tapper-emote { animation: shake 0.35s; }
@keyframes pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(255, 194, 31, 0.6), inset 0 0 44px rgba(255, 194, 31, 0.28); } 100% { box-shadow: 0 0 0 18px rgba(255, 194, 31, 0), inset 0 0 0 rgba(255, 194, 31, 0); } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px) rotate(-4deg); } 75% { transform: translateX(5px) rotate(4deg); } }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1040px, 96vw); width: 100%; color: var(--bone); }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.86); backdrop-filter: blur(6px); }
.lightbox-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 12px; }
.lightbox-head h3 { font-size: 1.4rem; }
.lightbox-head span { color: var(--ash); font-family: var(--sans); font-weight: 400; font-size: 0.95rem; margin-left: 10px; }
.lightbox-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; flex: none; }
.lightbox-close:hover { background: var(--white); color: var(--black); }
.lightbox-close svg { width: 18px; height: 18px; }
.frame-16 { position: relative; aspect-ratio: 16 / 9; background: var(--surface); }
.frame-9 { position: relative; aspect-ratio: 9 / 16; max-height: 78vh; margin-inline: auto; background: var(--surface); }
.frame-16 iframe, .frame-9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================================
   Clipped by chat: one large, then rows of four
   ============================================================ */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.clip { position: relative; display: block; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden; background: var(--surface); cursor: pointer; color: inherit; text-align: left; }
.clip-lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.88)); pointer-events: none; }
.clip:hover img { transform: scale(1.04); }
.clip-text { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; }
.clip-title { font-family: var(--voice); font-weight: 600; color: var(--white); font-size: 1rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clip-lead .clip-text { left: 22px; right: 22px; bottom: 20px; }
.clip-lead .clip-title { font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.1; }
.clip-meta { color: rgba(236, 231, 221, 0.75); font-size: 0.8rem; }
.clip-play { position: absolute; z-index: 1; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.4); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.clip-play svg { width: 15px; height: 15px; margin-left: 2px; }
.clip-lead .clip-play { width: 56px; height: 56px; right: 20px; top: 20px; }
.clip-lead .clip-play svg { width: 20px; height: 20px; }
.clip:hover .clip-play, .clip:focus-visible .clip-play { background: var(--caution); color: var(--black); border-color: var(--caution); }

/* ============================================================
   Tools
   ============================================================ */
.tool-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 2px; }
.tool-copy { padding: 30px; border: 1px solid var(--line-2); background: var(--satin), var(--surface); display: flex; flex-direction: column; }
.tool-brand { display: flex; align-items: center; gap: 16px; }
.tool-brand img { width: 52px; height: 52px; border-radius: 12px; }
.tool-brand h3 { font-size: 1.8rem; }
.tool-brand .game { display: block; color: var(--ash); font-size: 0.9rem; margin-top: 2px; }
.tool-copy > p { margin-top: 18px; font-size: 1.05rem; max-width: 52ch; }
.tool-features { margin-top: 18px; border-top: 1px solid var(--line-2); }
.tool-features li { padding: 10px 0; border-bottom: 1px solid var(--line-2); color: var(--bone); font-size: 0.97rem; }
.tool-foot { margin-top: auto; padding-top: 24px; }
.tool-shot { position: relative; border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; min-height: 320px; }
.tool-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tool-list { margin-top: 2px; display: grid; gap: 2px; }
.tool-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 22px 30px; border: 1px solid var(--line-2); background: var(--surface); }
.tool-card h3 { font-size: 1.4rem; }
.tool-card p { color: var(--ash); margin-top: 4px; }
.soon { color: var(--ash); font-size: 0.92rem; padding: 10px 16px; border: 1px dashed var(--line); border-radius: 999px; }

/* ============================================================
   The Janitors: one strip of caution tape, then the community
   ============================================================ */
.tape {
  width: 104%; margin: 0 0 clamp(44px, 5.5vw, 72px) -2%; overflow: hidden; transform: rotate(-1.5deg);
  padding: 20px 0; color: var(--black);
  background:
    repeating-linear-gradient(-45deg, var(--black) 0 14px, var(--caution) 14px 28px) top / 100% 7px no-repeat,
    repeating-linear-gradient(-45deg, var(--black) 0 14px, var(--caution) 14px 28px) bottom / 100% 7px no-repeat,
    var(--caution);
}
.tape-track { display: flex; white-space: nowrap; }
.tape-track span { flex: none; padding: 0 20px; font-family: var(--voice); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.1em; text-transform: uppercase; }
.tape-track span:nth-child(3n) { font-weight: 600; letter-spacing: 0.04em; text-transform: none; font-size: 1.25rem; }

.community { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; }
.panel-discord { grid-column: span 5; }
.panel-chips { grid-column: span 7; }
.panel-emotes { grid-column: span 12; }
.panel-commands { grid-column: span 7; }
.panel-code { grid-column: span 5; display: flex; flex-direction: column; }
.panel-discord { display: flex; flex-direction: column; }
.panel-discord .btn { align-self: flex-start; }
.discord-else { margin-top: auto; padding-top: 28px; }
.discord-else h4 { font-size: 1.15rem; margin-bottom: 4px; }
.discord-count { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 1rem; min-height: 1.5em; }
.discord-count b { font-family: var(--display); font-weight: 500; font-size: 1.9rem; color: var(--white); margin-right: 6px; line-height: 1; }
.discord-count .online i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--g1); margin-right: 8px; }
.panel-discord .panel-note { margin-bottom: 22px; }

.chips-form { margin-top: 18px; display: flex; gap: 8px; }
.chips-form input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--black); color: var(--white); font: inherit;
}
.chips-form input::placeholder { color: var(--ash-2); }
.chips-form input:focus { outline: none; border-color: var(--caution); }
.chips-result { margin-top: 16px; min-height: 1.5em; }
.chips-result .big { display: block; font-family: var(--display); font-weight: 500; font-size: 3rem; line-height: 1; color: var(--caution); letter-spacing: -0.02em; }
.chips-result .meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; color: var(--ash); font-size: 0.95rem; }
.chips-result .err { color: var(--bone); }
.chips-result .muted { color: var(--ash); }
.chips-top-wrap { margin-top: 22px; }
.chips-top-head { color: var(--ash); font-size: 0.9rem; margin-bottom: 6px; }
.chips-top { counter-reset: rank; }
.chips-top li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 0.95rem; }
.chips-top li::before { counter-increment: rank; content: counter(rank); width: 1.4em; color: var(--ash); font-family: var(--display); font-size: 1.1rem; }
.chips-top li b { margin-left: auto; color: var(--caution); font-weight: 600; font-variant-numeric: tabular-nums; }
.chips-store { margin-top: 20px; color: var(--ash); font-size: 0.95rem; }
.chips-store strong { display: block; color: var(--white); font-weight: 600; margin-bottom: 6px; }
.chips-store ul li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line-2); color: var(--bone); }
.chips-store ul li b { color: var(--caution); }
.chips-store .btn { margin-top: 14px; }

.emotes-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
/* 27 emotes sit as three even rows of nine on desktop */
.emote-wall { margin-top: 18px; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 2px; }
.emote { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 4px 12px; background: var(--black); border: 1px solid var(--line-2); cursor: pointer; color: var(--ash); font-size: 0.8rem; transition: border-color 0.15s, color 0.15s; }
.emote img { width: 64px; height: 64px; transition: transform 0.25s var(--ease); }
.emote:hover { border-color: var(--caution); color: var(--white); }
.emote:hover img { transform: translateY(-3px) scale(1.06); }

.socials li a { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line-2); text-decoration: none; color: var(--bone); }
.socials li:first-child a { border-top: 0; }
.socials li a:hover { color: var(--white); }
.socials svg { width: 20px; height: 20px; flex: none; }
.socials .handle { margin-left: auto; color: var(--ash); font-size: 0.9rem; }

.commands { margin-top: 14px; }
.commands li { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 0.95rem; }
.cmd { flex: none; font: inherit; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--white); cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.cmd:hover, .cmd.copied { background: var(--caution); border-color: var(--caution); color: var(--black); }
.commands li span { color: var(--ash); }

.code-label { margin-top: 20px; color: var(--bone); font-size: 0.9rem; }
.support-links { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.code-btn { margin-top: 8px; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); background: var(--black); cursor: pointer; text-align: left; transition: border-color 0.2s; }
.code-btn:hover { border-color: var(--caution); }
.code-btn b { font-family: var(--voice); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--white); }
.code-btn span { color: var(--ash); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Footer (the crew stands on its top line), toast, live bar
   ============================================================ */
.footer { margin-top: clamp(150px, 16vw, 220px); border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ash); font-size: 0.9rem; }
.footer-inner { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; }
.footer-crew { position: absolute; right: 0; bottom: calc(100% + 29px); width: clamp(120px, 14vw, 170px); height: auto; pointer-events: none; }
.footer-inner p { max-width: 70ch; }
.footer-socials { display: flex; gap: 6px; }
.footer-socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ash); transition: color 0.2s, border-color 0.2s; }
.footer-socials a:hover { color: var(--white); border-color: var(--caution); }
.footer-socials svg { width: 17px; height: 17px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); z-index: 90; padding: 12px 20px; background: var(--caution); color: var(--black); font-weight: 600; font-size: 0.95rem; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.live-bar {
  position: fixed; left: 50%; bottom: calc(20px + var(--lift, 0px)); transform: translate(-50%, 90px); z-index: 80;
  display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--white); color: var(--black);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); max-width: calc(100vw - 32px);
  /* hidden for real while tucked away, since near the footer it's lifted and could peek out */
  opacity: 0; visibility: hidden; transition: transform 0.35s var(--ease), opacity 0.25s, visibility 0s 0.35s;
}
.live-bar.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform 0.35s var(--ease), opacity 0.25s; }
.live-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--live); margin-right: 10px; animation: pulse 1.8s infinite; }
.live-bar span { font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.live-bar a { padding: 10px 18px; border-radius: 999px; background: var(--black); color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.9rem; }

/* ============================================================
   Gear page
   ============================================================ */
.gear-top { padding: clamp(36px, 6vw, 72px) 0 0; }
.gear-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }
.gear-title { font-size: clamp(3.2rem, 9vw, 6.6rem); line-height: 0.9; letter-spacing: -0.035em; margin-left: -0.03em; }
.tabs { display: flex; gap: 4px; }
.tabs button { background: none; border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; color: var(--ash); font-family: var(--voice); font-weight: 600; font-size: 1rem; cursor: pointer; }
.tabs button:hover { color: var(--white); }
.tabs button[aria-selected="true"] { color: var(--black); background: var(--caution); border-color: var(--caution); }
.who { margin-top: 22px; font-size: 1.1rem; color: var(--ash); }
.who b { color: var(--white); font-weight: 500; }
/* a wrapping row of content-sized cells, so two Aion stats and eight Black Desert stats both sit well */
.sheet { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 0 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sheet > div { flex: 1 1 auto; max-width: 320px; padding: 18px 0 16px; }
.sheet dt { color: var(--ash); font-size: 0.86rem; }
.sheet dd { margin-top: 4px; font-family: var(--display); font-weight: 500; font-size: 2rem; line-height: 1; color: var(--white); letter-spacing: -0.02em; }
.sheet .lead dd { font-size: 3.2rem; }
.sheet:empty { display: none; }

.gear-body { padding-top: clamp(28px, 4vw, 48px); }
.gear-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.model { position: sticky; top: calc(var(--nav-h) + 16px); }
.model-art { position: relative; aspect-ratio: 3 / 4; border: 1px solid var(--line-2); background: var(--satin), var(--surface); overflow: hidden; }
.model-art img { width: 100%; height: 100%; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
.model-art .model-score { position: absolute; left: 18px; bottom: 16px; }
.model-art .model-score b { display: block; font-family: var(--display); font-weight: 500; font-size: 3.4rem; line-height: 1; color: var(--white); letter-spacing: -0.03em; }
.model-art .model-score span { color: var(--ash); font-size: 0.9rem; }
.rack-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rack-nav .rack-item { padding: 10px; align-items: center; gap: 0; }
.rack-nav .rack-item.is-current { background: var(--surface-2); border-color: var(--caution); }
.rack-nav .slot-ic { width: 50px; height: 50px; }
.rack-nav .slot-ic img { width: 40px; height: 40px; }

.looks { min-width: 0; }
.look-group { margin-bottom: clamp(36px, 5vw, 56px); }
.look-group h2 { font-size: 2.1rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.look {
  --g: var(--g0);
  display: grid; grid-template-columns: 128px 112px minmax(0, 1fr); gap: 0 20px; padding: 30px 0 32px; border-bottom: 1px solid var(--line-2);
  scroll-margin-top: calc(var(--nav-h) + 20px); transition: background 0.5s;
}
.look.is-target { background: linear-gradient(90deg, var(--surface-2), transparent 70%); }
.look-num { font-family: var(--display); font-weight: 500; font-size: 5.2rem; line-height: 0.8; color: color-mix(in srgb, var(--g) 70%, var(--white)); letter-spacing: -0.04em; padding-top: 6px; }
.look-num[data-len="3"] { font-size: 4.4rem; }
.look-num[data-len="4"] { font-size: 3.8rem; padding-top: 12px; }
.look-num:empty::before { content: "·"; color: var(--ash-2); }
.look-icon { width: 96px; height: 96px; display: grid; place-items: center; background: var(--black); border: 1px solid var(--g); box-shadow: 0 0 34px color-mix(in srgb, var(--g) 40%, transparent), inset 0 0 16px color-mix(in srgb, var(--g) 20%, transparent); }
.look-icon img { width: 64px; height: 64px; }
.look-body { min-width: 0; }
.look-enh { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--g); }
.look-name { font-size: 1.9rem; line-height: 1.05; margin-top: 2px; }
.look-sub { margin-top: 8px; color: var(--ash); }
.look-stats { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.look-stats div { display: flex; align-items: baseline; gap: 8px; }
.look-stats dt { color: var(--ash); font-size: 0.9rem; }
.look-stats dd { font-family: var(--display); font-weight: 500; font-size: 1.55rem; line-height: 1; color: var(--white); }
.look-stats dd small { font-family: var(--sans); font-weight: 400; font-size: 0.82rem; color: var(--ash); margin-left: 5px; }
.look-sockets { margin-top: 20px; }
.look-sockets p { color: var(--ash); font-size: 0.9rem; margin-bottom: 8px; }
.look-sockets ul { display: flex; flex-wrap: wrap; gap: 6px; }
.look-sockets li { --g: var(--g0); display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.88rem; }
.look-sockets li img { width: 26px; height: 26px; border: 1px solid color-mix(in srgb, var(--g) 70%, transparent); background: var(--black); }
.look-taps { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.play-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 18px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--white); font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.play-btn i { width: 30px; height: 30px; border-radius: 50%; background: var(--caution); color: var(--black); display: grid; place-items: center; transition: background 0.15s, color 0.15s; }
.play-btn i svg { width: 12px; height: 12px; margin-left: 1px; }
.play-btn:hover, .play-btn.is-on { background: var(--caution); border-color: var(--caution); color: var(--black); }
.play-btn:hover i, .play-btn.is-on i { background: var(--black); color: var(--caution); }
.play-btn small { color: inherit; opacity: 0.6; font-weight: 500; }
.look-player { margin-top: 16px; }
.look-player[hidden] { display: none; }
.look-player .pl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 8px; font-size: 0.92rem; color: var(--ash); }
.look-player .frame-9 { max-height: 560px; margin-inline: 0; }
.look-fx { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 32px; max-width: 760px; }
.look-fx h4 { font-family: var(--sans); font-weight: 600; font-size: 0.9rem; color: var(--ash); margin-bottom: 6px; }
.look-fx li { font-size: 0.95rem; color: var(--bone); padding: 2px 0; }
.look-sets { margin-top: 16px; max-width: 760px; }
.look-sets summary { cursor: pointer; color: var(--ash); font-size: 0.92rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ash-2); list-style: none; display: inline-block; }
.look-sets summary::-webkit-details-marker { display: none; }
.look-sets summary:hover { color: var(--white); }
.look-sets .look-fx { margin-top: 12px; }
.look-desc { margin-top: 22px; max-width: 64ch; color: var(--ash); font-family: var(--display); font-style: italic; font-size: 1.08rem; line-height: 1.5; }
.look-foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }

.armory-empty { padding: 56px 32px; border: 1px solid var(--line-2); background: var(--satin), var(--surface); text-align: center; }
.armory-empty h2 { font-size: 2.2rem; }
.armory-empty p { margin: 12px auto 22px; color: var(--ash); max-width: 46ch; }

/* ============================================================
   Item tooltips: hover a piece of gear and its card opens beside
   it, the way it does in game. Name in its grade colour, the
   stats, effects, stones, his flavour text, and if the tap is on video.
   ============================================================ */
.tip {
  --g: var(--g0);
  position: fixed; left: 0; top: 0; z-index: 95; width: 320px; max-width: calc(100vw - 24px);
  padding: 16px 18px 15px; pointer-events: none; color: var(--bone); font-size: 0.88rem; line-height: 1.4;
  background: linear-gradient(180deg, color-mix(in srgb, var(--g) 13%, #060606), #060606 96px);
  border: 1px solid color-mix(in srgb, var(--g) 55%, transparent);
  box-shadow: 0 0 0 1px var(--black), 0 26px 60px rgba(0, 0, 0, 0.8), 0 0 34px color-mix(in srgb, var(--g) 16%, transparent);
  opacity: 0; transform: translateY(4px); transition: opacity 0.14s, transform 0.16s var(--ease);
}
.tip.show { opacity: 1; transform: none; }
.tip-head { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; }
.tip-ic {
  position: relative; width: 56px; height: 56px; display: grid; place-items: center; background: var(--black);
  border: 1px solid var(--g); box-shadow: 0 0 18px color-mix(in srgb, var(--g) 40%, transparent), inset 0 0 10px color-mix(in srgb, var(--g) 20%, transparent);
}
.tip-ic img { width: 44px; height: 44px; }
.tip-ic .xc-corner { right: -8px; bottom: -8px; width: 22px; height: 22px; }
.tip-enh { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--g); line-height: 1.2; }
.tip-enh .xc { width: 18px; height: 18px; margin-left: 5px; vertical-align: -5px; }
.tip-enh .xc b { font-size: 10px; }
.tip-name { margin-top: 1px; font-family: var(--voice); font-weight: 600; font-size: 1.14rem; line-height: 1.15; color: color-mix(in srgb, var(--g) 55%, var(--white)); }
.tip-sub { margin-top: 3px; color: var(--ash); font-size: 0.8rem; line-height: 1.3; }
.tip-stats { margin-top: 13px; padding-top: 10px; border-top: 1px solid var(--line-2); display: grid; gap: 3px; }
.tip-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.tip-stats dt { color: var(--ash); }
.tip-stats dd { color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tip-stats dd small { margin-left: 4px; color: var(--ash-2); font-weight: 400; font-size: 0.8rem; }
.tip-fx { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line-2); }
.tip-fx p { margin-bottom: 2px; color: var(--g); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.02em; }
.tip-fx li { color: var(--bone); }
.tip-socks { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 4px; }
.tip-socks li { --g: var(--g0); width: 26px; height: 26px; display: grid; place-items: center; background: var(--black); border: 1px solid color-mix(in srgb, var(--g) 70%, transparent); }
.tip-socks img { width: 22px; height: 22px; }
.tip-desc {
  margin-top: 11px; color: var(--ash); font-family: var(--display); font-style: italic; font-size: 0.88rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tip-tap { margin-top: 11px; display: flex; align-items: center; gap: 8px; color: var(--caution); font-weight: 600; font-size: 0.82rem; }
.tip-tap svg { width: 10px; height: 10px; flex: none; }
.tip-foot { margin-top: 9px; color: var(--ash-2); font-size: 0.76rem; }
.jewel-icon[data-tip] { cursor: help; }

/* ============================================================
   Motion and polish. Small, and mostly in answer to the viewer:
   hovers, presses, copies. The only things that move on their own
   are the live indicators and the slow crawl of the caution tape.
   prefers-reduced-motion (bottom of the file) turns all of it off.
   ============================================================ */

/* live: a soft red breath on the nav pill, his photo ring and the hero dot,
   and a live dot inside "Watch on Twitch" */
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } 50% { box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.16), 0 0 20px rgba(255, 59, 48, 0.4); } }
@keyframes ripple { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.55); } 75%, 100% { box-shadow: 0 0 0 12px rgba(255, 59, 48, 0); } }
.live-pill.is-live { border-color: rgba(255, 59, 48, 0.75); animation: breathe 2.6s ease-in-out infinite; }
.hero.is-live .hero-face { animation: breathe 2.6s ease-in-out infinite; }
.hero-status.is-live .hs-pill i { animation: ripple 1.8s ease-out infinite; }
.hero.is-live .hero-actions .btn:first-child::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--live); flex: none;
  animation: ripple 1.8s ease-out infinite;
}

/* buttons lift a touch on hover and press in on click */
.btn, .cmd, .play-btn, .tabs button, .code-btn { transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.25s; }
.btn:hover, .cmd:hover, .play-btn:hover { transform: translateY(-1px); }
.btn:not(.btn-ghost):hover { box-shadow: 0 8px 24px rgba(255, 194, 31, 0.25); }
.btn:active, .cmd:active, .play-btn:active, .tabs button:active, .code-btn:active, .emote:active { transform: translateY(0) scale(0.97); }

/* cards: the play button grows, items lift */
.tap-play, .clip-play { transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease); }
.tap:hover .tap-play, .clip:hover .clip-play { transform: scale(1.1); }
.rack-item, .jewel { transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease); }
.rack-item:hover { transform: translateY(-2px); }
.lit .rack-item:hover .slot-ic { box-shadow: 0 0 28px color-mix(in srgb, var(--g) 60%, transparent), inset 0 0 12px color-mix(in srgb, var(--g) 25%, transparent); }
.lit-done .jewel-icon, .lit-done .slot-ic { transition-delay: 0s; }

/* the crew is clickable (it rains emotes, see home.js), so it leans in a touch on hover */
.hero-art { cursor: pointer; transition: transform 0.35s var(--ease); }
.hero-art:hover { transform: translateY(-3px); }
/* the emote rain sits above the page (z 2) but under the stream and chat (z 3),
   because Twitch pauses its player when anything covers it */
.rain { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.rain img { position: absolute; top: 0; will-change: transform; }

/* moving between the homepage and the gear page: a band of caution tape wipes
   across and the new page comes in behind it, while the nav stays put.
   Browsers that don't do cross-page transitions (Firefox for now) just load the page. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .nav { view-transition-name: nav; }
  ::view-transition-group(root) {
    background: repeating-linear-gradient(-45deg, var(--caution) 0 26px, var(--black) 26px 46px);
    animation-duration: 0.75s;
  }
  ::view-transition-old(root), ::view-transition-new(root) {
    mix-blend-mode: normal; animation-duration: 0.75s; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); animation-fill-mode: both;
  }
  /* the old page is cut away from the left, the new one follows 140px behind: the gap is the tape */
  ::view-transition-old(root) { animation-name: wipe-old; }
  ::view-transition-new(root) { animation-name: wipe-new; }
}
@keyframes wipe-old { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 calc(100% + 140px)); } }
@keyframes wipe-new { from { clip-path: inset(0 calc(100% + 140px) 0 0); } to { clip-path: inset(0 0 0 0); } }

/* a copied emote pops */
@keyframes pop-emote { 0% { transform: scale(1); } 40% { transform: scale(1.3) rotate(-6deg); } 100% { transform: scale(1); } }
.emote.is-copied img { animation: pop-emote 0.45s var(--ease); }

/* the caution tape crawls, very slowly, and stops while you point at it.
   The track holds two identical halves, so sliding it by half loops cleanly. */
@keyframes crawl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tape-track { width: max-content; animation: crawl 90s linear infinite; }
.section-janitors .tape-track { animation-direction: reverse; animation-duration: 110s; }
.tape:hover .tape-track { animation-play-state: paused; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .side { min-height: 460px; border-top: 1px solid var(--line-2); }
  .side[data-mode="chat"] { height: 460px; }
  .rack { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gear-grid { grid-template-columns: 240px minmax(0, 1fr); }
  .rack-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .taps-top { grid-template-columns: minmax(0, 1fr); }
  .taps-top .tapper { max-width: 640px; }
}

/* the hero reorders: crew, then the stream it stands on, then status and intro.
   Below about 1180px the side columns get too narrow for the intro and buttons. */
@media (max-width: 1180px) {
  .hero { display: flex; flex-direction: column; }
  .hero-top { display: contents; }
  .hero-top > * { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
  .hero-art { order: 1; max-width: 560px; }
  /* a zero-height row at the crew's feet; the tape hangs just above it, behind the crew */
  .hero > .wrap:last-child { order: 2; }
  .hero-status { order: 3; padding: 22px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
  .hero-status .hs-line, .hero-status .hs-big, .hero-status .hs-sub { margin-top: 0; }
  .hs-pill { font-size: 1.3rem; }
  .hs-big b { font-size: 2.2rem; }
  .hero-about { order: 4; padding: 14px 0 0; }
  .hero-about .intro { max-width: 60ch; }
}

@media (max-width: 1000px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .community > .panel { grid-column: span 6; }
  .community > .panel-chips, .community > .panel-emotes, .community > .panel-commands, .community > .panel-code { grid-column: span 12; }
  .emote-wall { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .emote img { width: 56px; height: 56px; }
  .tool-main { grid-template-columns: minmax(0, 1fr); }
  .tool-shot { min-height: 240px; max-height: 360px; }
  .jewels { grid-template-columns: minmax(0, 1fr); }
  .jewel { min-height: 0; }
  .jewel .numeral { font-size: 7rem; }
  .game-banner { min-height: 0; padding-top: 150px; }
  .game-art { width: 100%; height: 100%; object-position: 50% 15%; -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 72%); mask-image: linear-gradient(180deg, #000 10%, transparent 72%); }

  /* gear page: the rack becomes a sticky strip under the nav. The model
     column dissolves (display: contents) so the strip can stick for the
     whole list instead of only inside its own box. */
  .gear-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .model { position: static; display: contents; }
  .model[hidden] { display: none; }
  .model-art { aspect-ratio: auto; height: 260px; }
  .model-art img { object-position: 50% 18%; }
  .rack-nav { position: sticky; top: var(--nav-h); z-index: 20; display: flex; overflow-x: auto; gap: 2px; margin: 2px calc(var(--gutter) * -1) 24px; padding: 8px var(--gutter); background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); scrollbar-width: none; }
  .rack-nav::-webkit-scrollbar { display: none; }
  .rack-nav .rack-item { flex: none; padding: 6px; border-color: transparent; background: none; }
  .rack-nav .rack-item.is-current { background: var(--surface-2); border-color: var(--caution); }
  .rack-nav .slot-ic { width: 46px; height: 46px; }
  .rack-nav .slot-ic img { width: 36px; height: 36px; }
  .look { grid-template-columns: 72px minmax(0, 1fr); gap: 0 18px; padding: 24px 0 26px; scroll-margin-top: calc(var(--nav-h) + 76px); }
  .look-num { grid-column: 2; grid-row: 1; font-size: 3.4rem; padding-top: 0; justify-self: end; }
  .look-num[data-len="3"] { font-size: 3rem; }
  .look-num[data-len="4"] { font-size: 2.6rem; padding-top: 0; }
  .look-icon { grid-column: 1; grid-row: 1 / span 2; width: 72px; height: 72px; }
  .look-icon img { width: 52px; height: 52px; }
  .look-body { grid-column: 1 / -1; margin-top: 14px; }
  .look-name { font-size: 1.55rem; }
}

@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: var(--nav-h); flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; padding: 8px var(--gutter) 16px; background: var(--black); border-bottom: 1px solid var(--line-2);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links > a, .nav-item > a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 1.05rem; }
  .nav-links > a, .nav-item > a, .nav-links > a:hover, .nav-item > a:hover, .nav-links a[aria-current="page"], .nav-links a.is-here { background-size: 0 2px; }
  .nav-links > a:hover, .nav-item > a:hover, .nav-links a[aria-current="page"], .nav-links a.is-here { border-bottom-color: var(--line-2); color: var(--caution); }
  /* in the phone menu, Gear shows both games as two small cards under it; the short lists stay desktop-only */
  .nav-item { display: block; }
  .nav-item > a::after { display: none; }
  .nav-drop:not(.nav-drop-mega) { display: none; }
  .nav-drop-mega {
    position: static; padding: 10px 0 12px; background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: none;
  }
  .drop-mega.wrap { width: auto; }
  .drop-mega { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drop-intro, .drop-icons, .drop-game-text > small { display: none; }
  .drop-game { min-height: 118px; padding: 12px 14px; }
  .drop-art { width: 70%; }
  .drop-game-text > b { font-size: 1.2rem; }
  .drop-cta { min-height: 28px; padding: 0 11px; font-size: 0.8rem; }
  .menu-btn { display: block; }
  .live-pill .label { display: none; }
  .live-pill { padding: 0 11px; }
  .side { min-height: 380px; }
  .side[data-mode="chat"] { height: 380px; }
  .stage-foot { flex-direction: column; align-items: flex-start; }
  .stage-title { white-space: normal; }
  .rack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .climb-level { width: 78px; padding: 14px 10px; }
  .climb-level b { font-size: 2.6rem; }
  .climb-level img { width: 52px; height: 52px; }
  .tap { width: 250px; }
  .tapper { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 18px; }
  .tapper-art { width: 96px; height: 96px; }
  .tapper-emote { width: 80px; height: 80px; }
  .tapper-item { width: 42px; height: 42px; right: -8px; bottom: -8px; }
  .tapper-item img { width: 32px; height: 32px; }
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  .clip-lead { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
  .clip-lead .clip-title { font-size: 1.3rem; }
  .sheet { gap: 0 28px; }
  .sheet > div { padding: 14px 0 12px; }
  .sheet dd { font-size: 1.6rem; }
  .sheet .lead dd { font-size: 2.4rem; }
  .look-stats dd { font-size: 1.35rem; }
  .look-player .frame-9 { max-height: 70vh; }
  .panel { padding: 20px; }
  .community > .panel { grid-column: span 12; }
  .chips-form { flex-direction: column; }
  .chips-form .btn { width: 100%; }
  .emote-wall { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .emote img { width: 48px; height: 48px; }
  .tape-track span { font-size: 1rem; padding: 0 14px; }
  .hero .tape-hero { padding: 10px 0; background-size: 100% 5px, 100% 5px, auto; }
  .hero .tape-hero .tape-track span { font-size: 0.82rem; padding: 0 10px; }
}

@media (max-width: 480px) {
  .rack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tapper { grid-template-columns: minmax(0, 1fr); }
  .tapper-art { margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .will-light .jewel-icon, .will-light .slot-ic { border-color: var(--g); }
  .will-light .jewel .numeral { color: color-mix(in srgb, var(--g) 36%, transparent); }
}
