/* ---------------- console skins ---------------- */
.skin-classic { --shell-a: #262b33; --shell-b: #171b21; --shell-c: #0b0e13; --shell-d: #080b0f; }
.skin-red { --shell-a: #7c3030; --shell-b: #4a1a1a; --shell-c: #2a0d0d; --shell-d: #1c0707; }
.skin-blue { --shell-a: #2f4f86; --shell-b: #1a2f55; --shell-c: #0e1b33; --shell-d: #081020; }
.skin-green { --shell-a: #2f6b45; --shell-b: #1b4429; --shell-c: #0f2a19; --shell-d: #08180f; }
.skin-white { --shell-a: #eef3f7; --shell-b: #d6dee5; --shell-c: #bcc6cf; --shell-d: #a6b1bb; }
.skin-pink { --shell-a: #7a3a58; --shell-b: #4f2138; --shell-c: #2d1020; --shell-d: #1d0a14; }
.skin-orange { --shell-a: #8a4a1f; --shell-b: #5a2c10; --shell-c: #351807; --shell-d: #220f04; }
.skin-iceblue { --shell-a: #3a6f8a; --shell-b: #22485c; --shell-c: #102a38; --shell-d: #0a1a24; }
.skin-purple { --shell-a: #5b3a86; --shell-b: #3a225c; --shell-c: #201238; --shell-d: #140b24; }
.skin-gray { --shell-a: #5a6068; --shell-b: #3a3f45; --shell-c: #22252a; --shell-d: #15181c; }
.skin-glass-purple { --shell-a: rgba(112, 72, 160, .5); --shell-b: rgba(70, 42, 108, .44); --shell-c: rgba(38, 22, 58, .38); --shell-d: rgba(24, 14, 38, .34); }
.skin-glass-white { --shell-a: rgba(230, 240, 246, .5); --shell-b: rgba(190, 205, 214, .42); --shell-c: rgba(150, 168, 180, .36); --shell-d: rgba(120, 138, 150, .32); }
.skin-glass-red { --shell-a: rgba(160, 56, 56, .5); --shell-b: rgba(110, 32, 32, .44); --shell-c: rgba(60, 16, 16, .38); --shell-d: rgba(40, 10, 10, .34); }
.skin-glass-blue { --shell-a: rgba(62, 112, 190, .5); --shell-b: rgba(34, 68, 128, .44); --shell-c: rgba(18, 36, 74, .38); --shell-d: rgba(10, 22, 46, .34); }
.skin-glass-pink { --shell-a: rgba(190, 92, 140, .5); --shell-b: rgba(132, 52, 92, .44); --shell-c: rgba(72, 24, 48, .38); --shell-d: rgba(46, 14, 30, .34); }
.skin-glass-circuit-green {
  --shell-a: rgba(48, 96, 72, .34); --shell-b: rgba(30, 66, 48, .3); --shell-c: rgba(16, 40, 28, .26); --shell-d: rgba(10, 26, 18, .22);
  --circuit: rgba(80, 255, 150, .55);
}
.skin-glass-circuit-purple {
  --shell-a: rgba(92, 52, 132, .34); --shell-b: rgba(62, 34, 94, .3); --shell-c: rgba(36, 18, 60, .26); --shell-d: rgba(22, 10, 38, .22);
  --circuit: rgba(196, 120, 255, .6);
}
.skin-matte-pink { --shell-a: #7a4a5c; --shell-b: #54303e; --shell-c: #331c26; --shell-d: #24131a; }
.skin-matte-yellow { --shell-a: #8a7a3a; --shell-b: #5e5120; --shell-c: #3a3011; --shell-d: #272008; }
.skin-matte-green { --shell-a: #4a6e52; --shell-b: #2e4a34; --shell-c: #1a2c1e; --shell-d: #101d13; }
.skin-matte-purple { --shell-a: #5e4a72; --shell-b: #3e2e4e; --shell-c: #251a30; --shell-d: #17101e; }
.skin-metal-silver { --shell-a: #f0f4f8; --shell-b: #c3ccd6; --shell-c: #7d8895; --shell-d: #3c454f; }
.skin-metal-gold { --shell-a: #f8e6a8; --shell-b: #d8b45e; --shell-c: #8d6a22; --shell-d: #43310d; }
.skin-metal-copper { --shell-a: #f2c3a0; --shell-b: #c97a4c; --shell-c: #7c3f22; --shell-d: #3c1d0e; }
.skin-metal-crimson { --shell-a: #e8a0a8; --shell-b: #a83f4e; --shell-c: #5e1c26; --shell-d: #2c0b12; }
.skin-metal-ocean { --shell-a: #a8d8ec; --shell-b: #4a8fb5; --shell-c: #1f4a66; --shell-d: #0b2233; }
.skin-metal-violet { --shell-a: #d8b8f0; --shell-b: #8a5ab8; --shell-c: #4a2a6e; --shell-d: #231134; }
.skin-metal-emerald { --shell-a: #a8e8cc; --shell-b: #3f9a72; --shell-c: #1a5238; --shell-d: #082418; }

body[class*="skin-metal"] .device::before {
  background-image:
    repeating-linear-gradient(105deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 4px),
    linear-gradient(115deg, transparent 24%, rgba(255, 255, 255, .28) 42%, transparent 58%);
  opacity: .45;
}
body[class*="skin-metal"] .device { border-color: rgba(255, 255, 255, .26); }
body.skin-metal-silver .device-top, body.skin-metal-silver .hard-btn,
body.skin-metal-silver .sys-btn, body.skin-metal-silver .speaker,
body.skin-metal-silver .ab-hint, body.skin-metal-silver .screen-bezel,
body.skin-metal-gold .device-top, body.skin-metal-gold .hard-btn,
body.skin-metal-gold .sys-btn, body.skin-metal-gold .speaker,
body.skin-metal-gold .ab-hint, body.skin-metal-gold .screen-bezel,
body.skin-metal-copper .device-top, body.skin-metal-copper .hard-btn,
body.skin-metal-copper .sys-btn, body.skin-metal-copper .speaker,
body.skin-metal-copper .ab-hint, body.skin-metal-copper .screen-bezel { color: rgba(24, 32, 40, .55); }
body.skin-metal-silver .device-brand, body.skin-metal-gold .device-brand,
body.skin-metal-copper .device-brand { color: #1b232b; }
body.skin-metal-silver .device-brand b, body.skin-metal-gold .device-brand b,
body.skin-metal-copper .device-brand b { color: #0a7d94; }
body.skin-metal-silver .dp-btn, body.skin-metal-gold .dp-btn,
body.skin-metal-copper .dp-btn { color: #46525e; }
.skin-metal-silver .skin-swatch::before, .skin-metal-gold .skin-swatch::before,
.skin-metal-copper .skin-swatch::before, .skin-metal-crimson .skin-swatch::before,
.skin-metal-ocean .skin-swatch::before, .skin-metal-violet .skin-swatch::before,
.skin-metal-emerald .skin-swatch::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    repeating-linear-gradient(105deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 4px),
    linear-gradient(115deg, transparent 24%, rgba(255, 255, 255, .35) 42%, transparent 58%);
}

body[class*="skin-glass"] .device { backdrop-filter: blur(14px); border-color: rgba(140, 245, 255, .22); }
body[class*="skin-glass"] .device::before {
  background-image:
    radial-gradient(circle at 9px 9px, var(--circuit, rgba(120, 245, 255, .55)) 1.4px, transparent 2px),
    linear-gradient(90deg, transparent 46%, var(--circuit, rgba(120, 245, 255, .22)) 47% 53%, transparent 54%),
    linear-gradient(0deg, transparent 46%, var(--circuit, rgba(120, 245, 255, .22)) 47% 53%, transparent 54%);
  background-size: 38px 38px, 38px 38px, 38px 38px;
  opacity: .55;
}
body.skin-white .device-top, body.skin-white .hard-btn, body.skin-white .sys-btn,
body.skin-white .speaker, body.skin-white .ab-hint, body.skin-white .screen-bezel { color: rgba(24, 32, 40, .55); }
body.skin-white .device-brand { color: #1b232b; }
body.skin-white .device-brand b { color: #0a7d94; }
body.skin-white .dp-btn { color: #46525e; }

/* ---------------- themes ---------------- */
body.theme-tech { --cyan: #59ffc8; --gold: #ffd166; }
body.theme-tech .device { box-shadow: 0 0 0 1px rgba(89, 255, 200, .25), 0 30px 70px -40px #000; }
body.theme-tech .modal-card, body.theme-tech .ed-sheet {
  background: #06110d; border-color: rgba(89, 255, 200, .35); backdrop-filter: none;
}
body.theme-tech .btn.primary { background: #59ffc8; color: #04120c; }
body.theme-pixel { font-family: 'Courier New', ui-monospace, monospace; }
body.theme-pixel .device { box-shadow: 0 0 0 4px #000, inset 0 0 0 2px #3a4a52; }
body.theme-pixel .screen { border-radius: 0; box-shadow: inset 0 0 0 3px #000; }
body.theme-pixel canvas { image-rendering: pixelated; }
body.theme-pixel .modal-card, body.theme-pixel .ed-sheet { border-radius: 0; border: 3px solid #000; background: #071219; backdrop-filter: none; }
body.theme-pixel .btn { border-radius: 0; }
body.theme-pixel .menu-title { letter-spacing: 0; }

/* ---------------- account / shop / community ---------------- */
.account .field, .auth-form .field { display: flex; flex-direction: column; gap: 4px; font-size: 10px; color: var(--ink-3); margin-bottom: 8px; }
/* Author-level `display:flex` above beats the UA `[hidden]` rule. Keep the
   display-name field truly gone in sign-in mode. */
.auth-form .field[hidden], .account .field[hidden] { display: none; }
.auth-form .auth-link[hidden] { display: none; }
.auth-tabs { display: flex; gap: 6px; margin: 10px 0; }
.auth-tabs button {
  flex: 1; padding: 7px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); color: var(--ink-2); font-size: 10px; cursor: pointer;
}
.auth-tabs button.on { border-color: var(--cyan); color: var(--cyan); background: rgba(94, 231, 255, .1); }
.auth-link {
  display: inline-block; margin: 2px 0 8px; padding: 0; border: 0; background: none;
  color: var(--ink-3); font: inherit; font-size: 10px; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer;
}
.auth-link:hover { color: var(--cyan); }
.google-btn { width: 100%; justify-content: center; margin-top: 8px; }
.account-coins { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.account-battle {
  margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
}
.ab-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.ab-head b { color: var(--ink-2); font-size: 10px; letter-spacing: .16em; }
.ab-stats { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.ab-stats span { display: flex; flex-direction: column; gap: 2px; font-size: 9px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.ab-stats b { font-family: var(--display); font-size: 15px; color: var(--ink); letter-spacing: 0; }
.ab-recent { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.ab-match { display: flex; align-items: baseline; gap: 8px; font-size: 10px; color: var(--ink-3); }
.ab-match .ab-when { width: 54px; flex: none; font-size: 8.5px; letter-spacing: .04em; }
.ab-match .ab-vs { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.ab-match b { font-family: var(--display); font-size: 11px; color: var(--ink); }
.ab-match em { font-style: normal; font-size: 9px; min-width: 28px; text-align: right; color: var(--ink-3); }
.ab-match.won em { color: var(--green); }
.ab-match.lost em { color: var(--red); }
.ab-match i { font-style: normal; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ab-none { margin: 8px 0 0; }
.coin-chip { font-family: var(--display); font-size: 12px; color: var(--gold); }
#auth-note { min-height: 14px; color: var(--red); font-size: 9px; }
.small { font-size: 9px; }
.sign-gate { text-align: center; padding: 40px 16px; }
.sign-gate .modal-actions { justify-content: center; margin-top: 18px; }

.menu-wallet { display: flex; align-items: center; gap: 10px; font-size: 9px; color: var(--ink-3); margin: 2px 0 8px; cursor: pointer; }
.menu-wallet:hover { color: var(--ink-2); }
.menu-wallet b { color: var(--gold); font-family: var(--display); font-size: 11px; }
.menu-who { margin-left: auto; letter-spacing: .06em; }

.shop-section { margin-bottom: 20px; }
.shop-section > h2 { margin: 0 0 9px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 9px; }

/* Wallet: the number people need before they tap a price, kept on the page
   (sticky on tall views) and given a shake when a purchase falls short. */
.shop-wallet {
  display: inline-flex; align-items: baseline; gap: 6px;
  margin: 2px 0 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 194, 75, .45);
  background: linear-gradient(140deg, rgba(255, 194, 75, .16), rgba(12, 18, 24, .9));
  font-variant-numeric: tabular-nums;
}
.shop-wallet .wallet-coin { color: var(--gold); font-size: 13px; }
.shop-wallet b { font-family: var(--display); font-size: 20px; color: var(--gold); letter-spacing: -.01em; }
.shop-wallet em { font-style: normal; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.shop-wallet.short { animation: walletShake .45s var(--ease, ease); border-color: var(--red, #FF7B72); }
@keyframes walletShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  45% { transform: translateX(4px); }
  70% { transform: translateX(-2px); }
}

/* A price you cannot afford: still tappable, visibly short. */
.shop-card .btn.cant {
  border-color: rgba(255, 123, 114, .5); color: #FFB4AE;
  background: rgba(255, 123, 114, .1);
}
.shop-sentinel { grid-column: 1 / -1; height: 1px; }
.shop-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; display: flex; flex-direction: column; gap: 5px;
}
.shop-card.on { border-color: rgba(94, 231, 255, .55); }
.shop-card b { font-family: var(--display); font-size: 12px; letter-spacing: .01em; }
.shop-desc { font-size: 9.5px; color: var(--ink-3); line-height: 1.4; min-height: 20px; }
.shop-card .btn { padding: 5px 8px; font-size: 9px; justify-content: center; }
.shop-tag { font-size: 9px; color: var(--cyan); align-self: flex-start; }
.skin-swatch {
  width: 100%; aspect-ratio: 16 / 10; border-radius: 10px 10px 6px 6px; position: relative; overflow: hidden;
  background: linear-gradient(158deg, var(--shell-a), var(--shell-b) 34%, var(--shell-c) 74%, var(--shell-d));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.skin-swatch::after {
  content: ""; position: absolute; inset: 20% 24%; border-radius: 4px; background: #041018;
  box-shadow: inset 0 0 0 1px rgba(94, 231, 255, .3);
}
.skin-glass-purple .skin-swatch::before, .skin-glass-white .skin-swatch::before,
.skin-glass-red .skin-swatch::before, .skin-glass-blue .skin-swatch::before,
.skin-glass-pink .skin-swatch::before, .skin-glass-circuit-green .skin-swatch::before,
.skin-glass-circuit-purple .skin-swatch::before {
  content: ""; position: absolute; inset: 0; opacity: .7;
  background-image:
    radial-gradient(circle at 7px 7px, var(--circuit, rgba(120, 245, 255, .5)) 1.2px, transparent 1.8px),
    linear-gradient(90deg, transparent 46%, var(--circuit, rgba(120, 245, 255, .2)) 47% 53%, transparent 54%);
  background-size: 24px 24px, 24px 24px;
}
.theme-swatch { height: 54px; border-radius: 9px; border: 1px solid var(--line); background: linear-gradient(160deg, #0a3344, #05131c); }
.theme-pixel .theme-swatch { background: #0b1a22; image-rendering: pixelated; background-image: linear-gradient(90deg, rgba(124, 243, 255, .18) 1px, transparent 1px), linear-gradient(rgba(124, 243, 255, .18) 1px, transparent 1px); background-size: 9px 9px; }
.theme-tech .theme-swatch { background: #03110c; box-shadow: inset 0 0 0 2px #59ffc8; }
.layer-swatch { height: 54px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.layer-swatch i { display: block; height: 10px; border-radius: 3px; background: linear-gradient(160deg, #2a5a4a, #102a20); border: 1px solid rgba(94, 231, 255, .25); }
.layer-swatch i:nth-child(2) { margin-left: 10%; margin-right: 10%; }
.layer-swatch i:nth-child(3) { margin-left: 20%; margin-right: 20%; }

.post-box { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.post-input {
  width: 100%; min-height: 64px; resize: vertical; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, .03); color: var(--ink); padding: 9px 11px; font-family: inherit; font-size: 11px;
}
.post-list { display: flex; flex-direction: column; gap: 8px; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; position: relative; }
.post header { display: flex; gap: 8px; align-items: baseline; font-size: 10px; }
.post header b { font-family: var(--display); }
.post header em { font-style: normal; color: var(--ink-3); font-size: 8px; margin-left: auto; }
.post p { margin: 5px 0 0; font-size: 10.5px; color: var(--ink-2); line-height: 1.5; white-space: pre-wrap; }
.post-report { position: absolute; right: 8px; bottom: 6px; font-size: 7px; color: var(--ink-3); background: none; border: 0; cursor: pointer; }
.admin-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.admin-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.admin-row { display: flex; gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; }
.admin-row > div:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.admin-row b { font-size: 10px; }
.admin-row span { font-size: 8.5px; color: var(--ink-3); }
.admin-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.admin-actions .btn { font-size: 7px; padding: 4px 6px; }

/* player directory rows: identity on the left, a dense stat strip on the right */
.player-row { align-items: flex-start; }
.admin-row.player-row > div:first-child { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 6px; min-width: 150px; }
.player-id .avatar { width: 20px; height: 20px; font-size: 8px; }
.player-tags { font-size: 8px; color: var(--ink-3); white-space: nowrap; }
.player-stats {
  flex: 1; display: flex; flex-wrap: wrap; gap: 4px 10px;
  justify-content: flex-end; text-align: right;
}
.player-stats span { font-size: 8.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.admin-pager { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 4px 0 18px; }
.admin-pager .btn { font-size: 8px; padding: 5px 9px; }
@media (max-width: 560px) {
  .admin-row.player-row { flex-direction: column; align-items: stretch; }
  .admin-row.player-row > div:first-child { min-width: 0; }
  .player-stats { justify-content: flex-start; text-align: left; }
}
.admin-compose { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 10px; margin-bottom: 16px; }
.admin-compose textarea {
  width: 100%; min-height: 64px; resize: vertical; border: 1px solid var(--line);
  border-radius: 8px; background: rgba(255, 255, 255, .04); color: var(--ink);
  padding: 8px 9px; font: inherit; font-size: 11px; outline: none;
}
.admin-compose textarea:focus { border-color: rgba(94, 231, 255, .45); }
.admin-compose-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.admin-compose-row select {
  border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px;
  background: rgba(255, 255, 255, .05); color: var(--ink); font: inherit; font-size: 10px;
}
.admin-check { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: var(--ink-2); }
.admin-note { margin: 8px 0 0; font-size: 8px; color: var(--ink-3); }
.pause-list { margin-top: 10px; }
.reward-line { color: var(--gold); font-size: 11px; text-align: center; margin: 8px 0 0; }

.pack-swatch { height: 54px; border-radius: 9px; background: #0a1118; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 4px; }
.pack-swatch i { width: 22%; aspect-ratio: 1; border-radius: 4px; background: linear-gradient(160deg, #2a5a4a, #102a20); box-shadow: inset 0 0 0 1px rgba(94, 231, 255, .3); }
.pack-swatch i:nth-child(2) { background: linear-gradient(160deg, #5a4a86, #2a1e46); }
.pack-swatch i:nth-child(3) { background: linear-gradient(160deg, #8a6a2a, #4a3410); }

/* ---------------- boot logo + sky intro ---------------- */
.boot-screen {
  position: absolute; inset: 0; z-index: 30; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(90% 70% at 50% 45%, rgba(16, 70, 88, .55), transparent 70%),
    linear-gradient(180deg, #05131c, #02070b 80%);
  transition: opacity .55s ease;
}
.boot-screen.off { opacity: 0; }
.boot-logo {
  font-family: var(--display); font-size: clamp(30px, 12vw, 62px); font-weight: 600;
  letter-spacing: -.06em; color: #eafcff;
  text-shadow: 0 0 26px rgba(94, 231, 255, .55), 0 8px 30px rgba(0, 0, 0, .8);
  animation: bootLogoIn .95s cubic-bezier(.18, .9, .22, 1) both;
}
@keyframes bootLogoIn {
  0% { opacity: 0; transform: translateY(14px) scale(.82); letter-spacing: .22em; filter: blur(6px); }
  100% { opacity: 1; transform: none; letter-spacing: -.06em; filter: blur(0); }
}
.boot-sub {
  margin-top: 7px; font-size: 7px; letter-spacing: .52em; color: rgba(190, 235, 245, .55);
  animation: bootFade .8s .55s both;
}
.boot-bars { display: flex; gap: 4px; margin-top: 16px; animation: bootFade .6s .9s both; }
.boot-bars i { width: 9px; height: 2px; background: var(--cyan); opacity: .55; animation: bootBar .9s infinite alternate; }
.boot-bars i:nth-child(2) { animation-delay: .18s; }
.boot-bars i:nth-child(3) { animation-delay: .36s; }
@keyframes bootBar { to { opacity: 1; transform: scaleX(1.5); } }
@keyframes bootFade { from { opacity: 0; } to { opacity: 1; } }
.boot-sweep {
  position: absolute; inset: -30% -60%; pointer-events: none;
  background: linear-gradient(115deg, transparent 43%, rgba(180, 250, 255, .38) 50%, transparent 57%);
  transform: translateX(-45%);
  animation: bootSweep 1.5s .35s cubic-bezier(.2, .8, .2, 1) both;
  mix-blend-mode: screen;
}
@keyframes bootSweep { to { transform: translateX(38%); } }

.intro-screen {
  position: absolute; inset: 0; z-index: 24; background: #041018;
  transition: opacity .5s ease;
}
.intro-screen.out { opacity: 0; pointer-events: none; }
.intro-screen .intro-canvas { width: 100% !important; height: 100% !important; display: block; }
.intro-skip {
  position: absolute; left: 0; right: 0; bottom: 7px; text-align: center;
  font-size: 7px; letter-spacing: .24em; color: rgba(255, 255, 255, .35); pointer-events: none;
}

/* ---------------- campaign grid, avatars, official mark ---------------- */
.chapter-block { margin: 0 0 15px; }
.chapter-block header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.chapter-no { font-size: 7px; letter-spacing: .22em; color: var(--cyan); }
.chapter-block h2 { font-size: 16px; letter-spacing: -.02em; }
.chapter-block em { font-style: normal; font-size: 9px; color: var(--ink-3); margin-left: auto; }
.chapter-meta { display: flex; align-items: center; gap: 5px; font-size: 9px; color: var(--ink-3); margin: 6px 0 9px; }
.level-chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.level-chip {
  display: flex; flex-direction: column; gap: 1px; padding: 7px 8px; min-height: 62px;
  border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
  text-decoration: none; transition: border-color .15s, transform .15s;
}
.level-chip:hover { border-color: rgba(94, 231, 255, .4); transform: translateY(-1px); }
.chip-no { font-family: var(--display); font-size: 13px; color: var(--ink); }
.chip-title { font-size: 9px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-meta { margin-top: auto; display: flex; align-items: center; gap: 3px; font-size: 7.5px; color: var(--ink-3); }
.level-chip.cleared { border-color: rgba(94, 231, 255, .35); background: linear-gradient(160deg, rgba(94, 231, 255, .12), rgba(94, 231, 255, .03)); }
.level-chip.cleared .chip-no { color: var(--cyan); }
.level-chip.next { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(94, 231, 255, .18); }
.official-mark {
  display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF3C8, #FFC24B 60%, #9A6210);
  color: #3a2600; font-size: 8px; line-height: 1; box-shadow: 0 0 6px rgba(255, 194, 75, .5);
  vertical-align: middle; flex: none;
}
.avatar {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  font-size: 7px; font-weight: 700; color: #06121a;
  background: hsl(var(--h, 190) 72% 64%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  vertical-align: middle; flex: none;
}
.by { display: flex; align-items: center; gap: 5px; }
.by .badge { margin-left: 2px; }

/* Floor marker for multi-storey rooms: bottom-left of the board, away from the
   coin/move HUD, and it pulses when the cube drops to another floor. */
.floor-badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 6;
  display: flex; align-items: baseline; gap: 2px;
  padding: 6px 11px; border-radius: 11px;
  background: rgba(6, 12, 18, .84); border: 1px solid rgba(94, 231, 255, .38);
  backdrop-filter: blur(6px); pointer-events: none;
}
.floor-badge[hidden] { display: none; }
.floor-badge span { font-size: 6.5px; letter-spacing: .18em; color: var(--ink-3); margin-right: 5px; }
.floor-badge b { font-family: var(--display); font-size: 17px; line-height: 1; color: var(--cyan); }
.floor-badge em { font-style: normal; font-size: 10px; color: var(--ink-3); }
.floor-badge.pop { animation: floorPop .5s var(--ease, ease); }
@keyframes floorPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.14); border-color: var(--cyan); }
  100% { transform: scale(1); }
}
.screen .floor-badge { left: 8px; bottom: 8px; padding: 4px 8px; }
.screen .floor-badge b { font-size: 14px; }

/* Uploaded profile pictures replace the initial-letter chip. The ::after ring
   used for the letter version has to go, otherwise it punches a hole in the
   photo. */
.avatar.has-img { overflow: hidden; background: #0b141c; }
.avatar.has-img::after { display: none; }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* account sheet: picture row */
.account-avatar { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.account-avatar > .avatar { width: 54px; height: 54px; border-radius: 15px; font-size: 17px; }
.account-avatar-side { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.account-avatar-side b { font-size: 12.5px; }
.avatar-actions { display: flex; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.avatar-actions .btn { padding: 5px 10px; font-size: 10px; cursor: pointer; }

/* ---------------- revive ---------------- */
.modal.revive { z-index: 40; }
.revive-wallet { font-family: var(--display); font-size: 13px; color: var(--gold); margin: 10px 0 2px; }
.revive-wallet b { font-size: 16px; }
.revive-card .btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ---------------- editor floor bar ---------------- */
.ed-floorbar {
  position: absolute; left: 8px; top: 40px; z-index: 5; display: flex; gap: 4px; align-items: center;
  padding: 4px 6px; border-radius: 10px; background: rgba(4, 10, 14, .62); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .08);
}
.ed-floorbar button {
  pointer-events: auto; min-width: 32px; padding: 4px 7px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(4, 10, 14, .82);
  color: var(--ink-2); font-size: 9.5px; font-weight: 600; letter-spacing: .03em; cursor: pointer;
  backdrop-filter: blur(6px);
}
.ed-floorbar button.on { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 0 1px rgba(94, 231, 255, .25); }
.ed-floorbar button:disabled { opacity: .28; cursor: default; }
.ed-floor-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .16); margin: 0 2px; }

/* ---------------- editor floors ---------------- */
.ed-floorbar .ed-floor-cap {
  font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(220, 240, 245, .75);
  margin: 0 2px 0 3px;
}
.ed-layer {
  margin: 10px 0 6px; padding: 8px 9px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(94, 231, 255, .05);
}
.ed-layer-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.ed-layer-head b { font-family: var(--display); font-size: 13px; letter-spacing: .02em; }
.ed-layer-hint { font-size: 9.5px; line-height: 1.45; color: var(--ink-3); margin: 0 0 5px; }
.ed-layer-row { display: flex; align-items: center; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.ed-layer-cap {
  min-width: 36px; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.ed-layer-row .btn { font-size: 9.5px; padding: 5px 8px; }

/* ---------------- linear campaign route ---------------- */
.route { position: relative; }
.route-chapter { margin-bottom: 8px; }
.route-chapter header { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 6px; flex-wrap: wrap; }
.route-rows { position: relative; display: flex; flex-direction: column; gap: 7px; }
.route-rows::before {
  content: ""; position: absolute; left: 19px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, rgba(94, 231, 255, .55), rgba(94, 231, 255, .18));
  border-radius: 2px;
}
.route-row { display: flex; align-items: center; gap: 9px; padding: 6px 8px 6px 0; text-decoration: none; position: relative; }
.route-node {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; position: relative; z-index: 1;
  border-radius: 12px; border: 1px solid var(--line-strong); background: #0a1118;
  font-family: var(--display); font-size: 13px; color: var(--ink-2);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.route-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.route-body b {
  font-family: var(--display); font-size: 11.5px; font-weight: 500; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.route-body em {
  font-style: normal; font-size: 8.5px; color: var(--ink-3);
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.route-flag { width: 18px; flex: none; text-align: center; color: var(--green); font-size: 12px; }
.route-row.cleared .route-node {
  background: linear-gradient(160deg, #7CF3FF, #2AB6D4); border-color: transparent;
  color: #04131A; font-weight: 600; box-shadow: 0 0 18px -8px rgba(94, 231, 255, .8);
}
.route-row.cleared .route-body b { color: var(--ink-2); }
.route-row.next .route-node { border-color: var(--cyan); color: var(--cyan); animation: nodePulse 2.2s ease-in-out infinite; }
.route-row:hover .route-node { border-color: rgba(94, 231, 255, .6); transform: translateY(-1px); }
body.theme-pixel .route-node { border-radius: 0; }

.ed-sheet.ed-menu { max-height: 58%; }

.node-label .node-creator {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  font-size: 7.5px; color: var(--ink-3); margin-top: 1px;
}
.node-label .node-creator .official-mark { width: 11px; height: 11px; font-size: 6px; }
.node-label i { display: block; font-style: normal; font-size: 7.5px; color: var(--ink-3); opacity: .85; }
.screen .node-label .node-creator { font-size: 6.8px; }
.screen .node-label i { font-size: 6.8px; }
.intro-screen { transition: opacity .12s ease; }

/* ---------------- step palette ---------------- */
.pal-tile.me-step1 { background: linear-gradient(180deg, #F4FCFE 0 58%, #A9C6CE 58% 62%, #0B1419 62%); }
.pal-tile.me-step2 { background: linear-gradient(180deg, #EAF6F9 0 38%, #A9C6CE 38% 42%, #0B1419 42%); }
.pal-tile.me-step3 { background: linear-gradient(180deg, #DEEDF1 0 18%, #A9C6CE 18% 22%, #0B1419 22%); }

/* ---------------- battle ---------------- */
.board-wrap { position: relative; }
.battle-status { min-height: 1.2em; font-size: 9px; }
.battle-tabs button.on { border-color: var(--cyan); color: var(--cyan); }
.battle-card .btn.primary { width: 100%; }
.battle-mode-note { font-size: 9.5px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.room-code { color: var(--cyan); font-family: var(--display); letter-spacing: .14em; }
.room-label { font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.room-invite { display: flex; gap: 6px; }
.room-invite input { flex: 1; min-width: 0; padding: 7px 9px; font-size: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.room-hint { font-size: 9px; color: var(--ink-3); margin: 0; }
.room-players { display: flex; flex-direction: column; gap: 4px; }
.room-player { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; font-size: 10px; }
.room-player.ready { border-color: rgba(94, 231, 255, .5); background: rgba(94, 231, 255, .06); }
.room-player.empty { border-style: dashed; color: var(--ink-3); }
.room-player .rp-name { flex: 1; }
.room-player .rp-name em { font-style: normal; font-size: 7px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.room-player .rp-rating { color: var(--ink-3); font-size: 9px; }
.room-player .rp-ready { font-size: 8px; letter-spacing: .12em; color: var(--ink-3); }
.room-player.ready .rp-ready { color: var(--cyan); }
.series-row button:disabled { opacity: .35; cursor: default; }
.friend-box[hidden] { display: none; }
.battle-card {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
}
.battle-rating { display: flex; align-items: baseline; gap: 8px; }
.battle-rating span { font-size: 8px; letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; }
.battle-rating b { font-family: var(--display); font-size: 24px; color: var(--gold); }
.battle-rating em { font-style: normal; font-size: 9px; color: var(--ink-2); margin-left: auto; }
.battle-tabs { margin: 0; }
.series-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.series-row > span { font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-right: 3px; }
.series-row button {
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--ink-2);
  border-radius: 999px; padding: 5px 9px; font-size: 8.5px; cursor: pointer;
}
.series-row button.on { border-color: var(--cyan); color: var(--cyan); }
.friend-box { display: flex; gap: 6px; }
.friend-box .search { flex: 1; min-width: 0; padding: 7px 9px; font-size: 11px; }
.battle-board { margin-top: 14px; }
.battle-board h2 { font-size: 12px; margin-bottom: 6px; }
.battle-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 10px; }
.battle-row b { font-family: var(--display); width: 22px; color: var(--ink-3); }
.battle-row span { flex: 1; }
.battle-row em { font-style: normal; color: var(--gold); }
.battle-strip { display: flex; align-items: center; gap: 8px; font-size: 9px; color: var(--ink-2); margin-left: auto; }
.battle-strip b { font-family: var(--display); font-size: 13px; color: var(--ink); }
.battle-strip .vs { color: var(--ink-3); font-size: 7px; letter-spacing: .2em; }
/* ---------------- live opponent HUD ---------------- */
.opp-thumb {
  position: absolute; right: 8px; bottom: 8px; z-index: 4;
  width: 216px; padding: 7px 8px 8px; border-radius: 12px;
  /* Keep CJK labels legible even when the shell runs the pixel theme. */
  font-family: var(--sans);
  border: 1px solid rgba(94, 231, 255, .34);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(94, 231, 255, .09), transparent 62%),
    linear-gradient(155deg, rgba(8, 22, 30, .95), rgba(3, 9, 14, .95));
  box-shadow: 0 14px 32px -14px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.opp-head { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
.opp-head b {
  font-family: var(--display); font-size: 11px; color: var(--ink);
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.opp-live-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: #55E3A8; box-shadow: 0 0 8px rgba(85, 227, 168, .9);
  animation: oppPulse 1.4s ease-in-out infinite;
}
.opp-badge {
  flex: none; font-size: 9px; letter-spacing: .08em; color: #A9F6FF;
  padding: 2px 5px; border-radius: 999px;
  border: 1px solid rgba(94, 231, 255, .32); background: rgba(94, 231, 255, .1);
}
.opp-level {
  display: flex; align-items: center; gap: 5px; margin-bottom: 6px;
  padding: 4px 6px; border-radius: 6px;
  border: 1px solid rgba(94, 231, 255, .16); background: rgba(94, 231, 255, .07);
}
.opp-level b { font-family: var(--display); font-size: 11px; color: #A9F6FF; white-space: nowrap; letter-spacing: .02em; }
.opp-level span {
  font-size: 9px; color: var(--ink-3); min-width: 0; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.opp-body { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: start; }
.opp-body canvas {
  width: 96px; display: block; border-radius: 6px;
  border: 1px solid rgba(94, 231, 255, .18); background: #06120e;
}
.opp-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 2px; }
.opp-row { display: flex; align-items: center; gap: 4px; }
.opp-row > span { width: 22px; flex: none; font-size: 9px; letter-spacing: .02em; color: var(--ink-3); }
.opp-bar { flex: 1; min-width: 0; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.opp-bar > i { display: block; width: 0; height: 100%; border-radius: 99px; transition: width .22s ease; }
.opp-bar.me > i { background: linear-gradient(90deg, #2AB6D4, #5EE7FF); }
.opp-bar.op > i { background: linear-gradient(90deg, #C04BA8, #FF6BD6); }
.opp-row > b { width: 24px; flex: none; text-align: right; font-family: var(--display); font-size: 10px; color: var(--ink-2); }
.opp-sync { margin-top: 2px; font-size: 9px; letter-spacing: .02em; color: #55E3A8; white-space: nowrap; }
.opp-sync.off { color: var(--ink-3); }
.opp-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  margin-top: 6px; padding-top: 5px; border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 9px; color: var(--ink-3);
}
.opp-gap {
  font-style: normal; font-family: var(--sans); font-size: 9px; letter-spacing: .02em;
  padding: 2px 6px; border-radius: 999px; white-space: nowrap;
}
.opp-gap.lead { color: #55E3A8; background: rgba(85, 227, 168, .13); }
.opp-gap.behind { color: #FF8A9C; background: rgba(255, 90, 110, .13); }
.opp-gap.even { color: var(--ink-3); background: rgba(255, 255, 255, .06); }
@keyframes oppPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.75); }
}
@media (max-height: 640px) {
  .screen .opp-thumb { width: 190px; padding: 5px 6px 6px; }
  .screen .opp-body { grid-template-columns: 76px minmax(0, 1fr); gap: 6px; }
  .screen .opp-body canvas { width: 76px; }
  .screen .opp-level { margin-bottom: 4px; }
  .screen .opp-foot { margin-top: 4px; }
}
.battle-banner {
  position: absolute; left: 50%; top: 16%; transform: translateX(-50%); z-index: 6;
  padding: 8px 16px; border-radius: 999px; background: rgba(4, 10, 14, .9);
  border: 1px solid var(--cyan); color: var(--cyan); font-family: var(--display); font-size: 14px;
  white-space: nowrap;
}

/* ---------------- battle v2 ---------------- */
.b-avatar {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: hsl(var(--h, 190) 68% 58%); color: #05131a;
  font-weight: 800; font-size: 12px; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), 0 8px 20px -10px rgba(94, 231, 255, .7);
  flex: none; vertical-align: middle;
}
.b-avatar.lg { width: 52px; height: 52px; border-radius: 16px; font-size: 18px; }
.b-avatar.xl { width: 66px; height: 66px; border-radius: 20px; font-size: 22px; }
.b-avatar.xs { width: 20px; height: 20px; border-radius: 6px; font-size: 8px; }
.battle-notice {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 14;
  padding: 5px 12px; border-radius: 999px; background: rgba(4, 10, 14, .92);
  border: 1px solid var(--red); color: var(--red); font-size: 9px; letter-spacing: .05em;
  white-space: nowrap; pointer-events: none;
}
.opp-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #55E3A8;
  box-shadow: 0 0 6px rgba(85, 227, 168, .85); display: inline-block; flex: none;
}
.opp-dot.off { background: var(--red); box-shadow: 0 0 6px rgba(255, 90, 110, .8); }
.opp-thumb.offline { border-color: rgba(255, 90, 110, .55); }
.opp-thumb.offline canvas { filter: grayscale(1) brightness(.6); }
.opp-thumb.offline .opp-live-dot { background: var(--red); box-shadow: 0 0 8px rgba(255, 90, 110, .8); animation: none; }
.opp-thumb.offline .opp-badge { color: var(--red); border-color: rgba(255, 90, 110, .4); background: rgba(255, 90, 110, .1); }
.opp-thumb.opp-cleared { border-color: rgba(255, 107, 214, .6); box-shadow: 0 0 22px -8px rgba(255, 107, 214, .55); }
.opp-thumb.opp-cleared .opp-badge { color: #FF9AE4; border-color: rgba(255, 107, 214, .4); background: rgba(255, 107, 214, .1); }

/* searching */
.search-scene { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 18px 6px 8px; }
.search-radar { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: 4px; }
.search-radar i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(94, 231, 255, .55); animation: radarPing 2.2s ease-out infinite;
}
.search-radar i:nth-child(2) { animation-delay: .72s; }
.search-radar i:nth-child(3) { animation-delay: 1.44s; }
.search-avatar { position: relative; z-index: 2; animation: searchFloat 2.4s ease-in-out infinite; }
.search-title { font-family: var(--display); font-size: 14px; letter-spacing: .02em; margin: 0; }
.search-sub { font-size: 9px; color: var(--ink-2); margin: 0; min-height: 1.2em; text-align: center; }
.search-timer { font-family: var(--display); font-size: 17px; color: var(--cyan); letter-spacing: .12em; margin: 2px 0 4px; }
@keyframes radarPing {
  0% { transform: scale(.36); opacity: .95; }
  80% { opacity: .12; }
  100% { transform: scale(1.18); opacity: 0; }
}
@keyframes searchFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* vs intro */
.vs-screen {
  position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column;
  align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(10, 34, 42, .78), rgba(3, 8, 12, .96));
}
.vs-screen.out { opacity: 0; transition: opacity .26s ease; }
.vs-flash {
  position: absolute; left: 50%; top: 42%; width: 260px; height: 260px; margin: -130px 0 0 -130px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 243, 204, .85), rgba(94, 231, 255, .25) 45%, transparent 70%);
  opacity: 0; transform: scale(.3);
}
.vs-screen.show .vs-flash { animation: vsFlash .5s ease-out .52s forwards; }
.vs-fighters {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; position: relative; z-index: 2;
}
.vs-fighter {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 36%; min-width: 0; opacity: 0;
}
.vs-fighter b {
  font-family: var(--display); font-size: 12px; color: var(--ink);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vs-fighter span { font-size: 9px; color: var(--gold); letter-spacing: .08em; }
.vs-fighter.left { transform: translate(-240%, -18px) scale(.7); }
.vs-fighter.right { transform: translate(240%, 18px) scale(.7); }
.vs-screen.show .vs-fighter.left { animation: vsInLeft .66s cubic-bezier(.2, .8, .2, 1) .08s forwards; }
.vs-screen.show .vs-fighter.right { animation: vsInRight .66s cubic-bezier(.2, .8, .2, 1) .08s forwards; }
.vs-mark {
  font-family: var(--display); font-size: 30px; color: var(--gold);
  text-shadow: 0 0 18px rgba(255, 211, 110, .65);
  opacity: 0; transform: scale(.2) rotate(-14deg); z-index: 3;
}
.vs-screen.show .vs-mark { animation: vsMark .46s cubic-bezier(.2, 1.5, .4, 1) .56s forwards; }
.vs-screen.show { animation: vsShake .32s .56s; }
.vs-loading { margin-top: 20px; width: 68%; text-align: center; opacity: 0; animation: vsLoadIn .3s ease .95s forwards; }
.vs-loading p { font-size: 9px; color: var(--ink-2); margin: 7px 0 0; letter-spacing: .04em; }
.vs-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.vs-bar i {
  display: block; height: 100%; width: 34%; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: vsBar 1.15s ease-in-out infinite;
}
@keyframes vsInLeft {
  0% { transform: translate(-240%, -18px) scale(.7); opacity: 0; }
  62% { transform: translate(10%, -22px) scale(1.06); opacity: 1; }
  78% { transform: translate(-4%, -15px) scale(.98); }
  100% { transform: translate(0, -16px) scale(1); opacity: 1; }
}
@keyframes vsInRight {
  0% { transform: translate(240%, 18px) scale(.7); opacity: 0; }
  62% { transform: translate(-10%, 22px) scale(1.06); opacity: 1; }
  78% { transform: translate(4%, 15px) scale(.98); }
  100% { transform: translate(0, 16px) scale(1); opacity: 1; }
}
@keyframes vsMark {
  to { opacity: 1; transform: scale(1) rotate(-6deg); }
}
@keyframes vsFlash {
  0% { opacity: 0; transform: scale(.3); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.25); }
}
@keyframes vsLoadIn { to { opacity: 1; } }
@keyframes vsBar {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(330%); }
}
@keyframes vsShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  55% { transform: translateX(3px); }
  80% { transform: translateX(-2px); }
}

/* room */
.room-duel { display: flex; align-items: stretch; gap: 6px; }
.room-player-card {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 7px 10px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .02); text-align: center; transition: border-color .2s, box-shadow .2s;
}
.room-player-card.ready { border-color: rgba(94, 231, 255, .55); background: rgba(94, 231, 255, .07); box-shadow: 0 0 22px -12px rgba(94, 231, 255, .9); }
.room-player-card.offline { opacity: .55; }
.room-player-card.empty { border-style: dashed; color: var(--ink-3); }
.room-player-card b { font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-player-card b em { font-style: normal; font-size: 7px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.room-player-card .rp-rating { font-size: 8px; color: var(--ink-3); }
.room-player-card .rp-ready { font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.room-player-card.ready .rp-ready { color: var(--cyan); }
.room-vs { align-self: center; font-family: var(--display); font-size: 13px; color: var(--gold); flex: none; }
.room-actions { display: flex; gap: 6px; }
.room-actions .btn { flex: 1; }
.room-chat { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.chat-log {
  height: 108px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px;
  padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0, 0, 0, .18);
}
.chat-line { display: flex; gap: 5px; align-items: flex-start; font-size: 9.5px; line-height: 1.35; }
.chat-line .chat-body { flex: 1; min-width: 0; color: var(--ink-2); word-break: break-word; }
.chat-line .chat-body b { display: block; font-size: 8px; color: var(--cyan); letter-spacing: .04em; }
.chat-line.me .chat-body b { color: var(--gold); }
.chat-empty { font-size: 9px; color: var(--ink-3); margin: auto; }
.chat-compose { display: flex; gap: 6px; }
.chat-compose input {
  flex: 1; min-width: 0; padding: 7px 9px; font-size: 10px; color: var(--ink);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 8px;
}

/* ---------------- languages ---------------- */
.lang-list { display: flex; flex-direction: column; gap: 5px; margin: 10px 0 4px; max-height: 320px; overflow-y: auto; }
.lang-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); color: var(--ink); font-size: 12px;
  cursor: pointer; text-align: start;
}
.lang-btn em { font-style: normal; font-size: 8px; color: var(--ink-3); letter-spacing: .08em; }
.lang-btn.on { border-color: var(--cyan); color: var(--cyan); }
.lang-btn.on em { color: var(--cyan); }

/* RTL inside the screen only (the handheld shell stays LTR) */
.screen[dir="rtl"] .page-head, .screen[dir="rtl"] h1, .screen[dir="rtl"] h2,
.screen[dir="rtl"] p, .screen[dir="rtl"] .muted, .screen[dir="rtl"] .lede { text-align: right; }
.screen[dir="rtl"] .opp-thumb { right: auto; left: 8px; }
.screen[dir="rtl"] .battle-notice { left: auto; right: 50%; transform: translateX(50%); }
.screen[dir="rtl"] .play-top { flex-direction: row-reverse; }

/* ---------------- coin celebration ---------------- */
.coin-flash {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 42%, rgba(255, 238, 168, .6), rgba(255, 198, 72, .18) 36%, transparent 66%);
}
.coin-flash.on { animation: coinFlash .62s ease-out; }
@keyframes coinFlash {
  0% { opacity: 0; transform: scale(.92); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.1); }
}

/* ---------------- cat skins shop ---------------- */
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.cat-card { padding: 7px; gap: 6px; }
.cat-card b { font-size: 9px; line-height: 1.2; text-align: center; }
.cat-swatch {
  position: relative; width: 100%; aspect-ratio: 1.12; border-radius: 13px;
  background: var(--cat-base); overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.cat-swatch .cat-ear {
  position: absolute; top: 2%; width: 30%; height: 27%; background: var(--cat-base);
  clip-path: polygon(50% 0, 100% 100%, 0 100%); z-index: 1;
}
.cat-swatch .cat-ear.left { left: 12%; transform: rotate(-8deg); }
.cat-swatch .cat-ear.right { right: 12%; transform: rotate(8deg); }
.cat-swatch .cat-eye {
  position: absolute; top: 42%; width: 9%; height: 16%; border-radius: 50%;
  background: var(--cat-eye); z-index: 3;
}
.cat-swatch .cat-eye.left { left: 33%; }
.cat-swatch .cat-eye.right { right: 33%; }
.cat-swatch .cat-muzzle {
  position: absolute; left: 50%; top: 55%; width: 38%; height: 25%;
  transform: translateX(-50%); background: var(--cat-muzzle); border-radius: 50%;
  opacity: .95; z-index: 1;
}
.cat-swatch .cat-nose {
  position: absolute; left: 50%; top: 57%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 7px solid var(--cat-nose); z-index: 3;
}
.cat-swatch.pat-spots {
  background-image:
    radial-gradient(circle at 24% 32%, var(--cat-accent) 0 7%, transparent 8%),
    radial-gradient(circle at 72% 26%, var(--cat-accent) 0 5%, transparent 6%),
    radial-gradient(circle at 62% 64%, var(--cat-accent) 0 6%, transparent 7%),
    radial-gradient(circle at 80% 76%, var(--cat-accent) 0 7%, transparent 8%),
    radial-gradient(circle at 18% 72%, var(--cat-accent) 0 5%, transparent 6%);
}
.cat-swatch.pat-stripes {
  background-image: repeating-linear-gradient(112deg, transparent 0 10%, var(--cat-accent) 10% 14%);
}
.cat-swatch.pat-faint {
  background-image: repeating-linear-gradient(112deg, transparent 0 12%, color-mix(in srgb, var(--cat-accent) 50%, transparent) 12% 16%);
}
.cat-swatch.pat-patches {
  background-image:
    radial-gradient(ellipse at 28% 30%, var(--cat-accent) 0 18%, transparent 19%),
    radial-gradient(ellipse at 72% 68%, var(--cat-accent2) 0 20%, transparent 21%),
    radial-gradient(ellipse at 78% 24%, var(--cat-accent2) 0 10%, transparent 11%);
}
.cat-swatch.pat-points {
  background-image: radial-gradient(ellipse at 50% 58%, var(--cat-accent) 0 30%, transparent 31%);
}
.cat-swatch.pat-points .cat-ear { background: var(--cat-accent); }
.cat-swatch.pat-tuxedo {
  background-image: radial-gradient(ellipse at 50% 72%, var(--cat-muzzle) 0 26%, transparent 27%);
}

/* ---------------- arena redesign ---------------- */
.arena-view {
  position: relative; min-height: 100%; padding-bottom: 10px;
  background:
    radial-gradient(70% 42% at 78% 2%, rgba(94, 231, 255, .10), transparent 70%),
    radial-gradient(60% 40% at 6% 34%, rgba(255, 194, 75, .06), transparent 72%);
}
.arena-view::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(94, 231, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 231, 255, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}
.arena-view > * { position: relative; }
.screen .arena-view .page-head { padding: 16px 14px 10px; }
.screen .arena-view .page-head h1 {
  font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -.04em;
  background: linear-gradient(92deg, #FFF 8%, #A9EEFF 58%, #5EE7FF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.screen .arena-view .page-head .lede { font-size: 10.5px; max-width: 58ch; color: var(--ink-2); }

.battle-card {
  gap: 11px; padding: 14px; border-radius: 15px;
  border: 1px solid rgba(94, 231, 255, .16);
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(94, 231, 255, .07), transparent 58%),
    linear-gradient(160deg, rgba(10, 22, 30, .94), rgba(4, 10, 15, .9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 40px -30px #000;
}
.battle-rating {
  position: relative; overflow: hidden; align-items: center; justify-content: space-between;
  gap: 10px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 194, 75, .24);
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(255, 194, 75, .17), transparent 62%),
    linear-gradient(135deg, rgba(255, 194, 75, .07), rgba(6, 14, 20, .5));
}
.battle-rating::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(115deg, transparent 0 9px, rgba(255, 194, 75, .07) 9px 10px);
}
.rating-copy { min-width: 0; }
.rating-season { margin: 0 0 6px; font-size: 7.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.rating-rank { margin: 0; font-size: 9px; line-height: 1.45; color: var(--ink-2); }
.rating-ring { position: relative; flex: none; width: 72px; height: 72px; display: grid; place-items: center; }
.rating-ring i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 194, 75, .34); }
.rating-ring i:nth-child(2) {
  inset: 9px; border-style: dashed; border-color: rgba(255, 194, 75, .28);
  animation: rating-spin 16s linear infinite;
}
.rating-ring b { font-family: var(--display); font-size: 22px; line-height: 1; color: #FFE3A1; }
.rating-ring b small { display: block; margin-top: 2px; font-size: 6px; letter-spacing: .22em; text-align: center; color: var(--ink-3); }
@keyframes rating-spin { to { transform: rotate(360deg); } }

/* Segmented mode switch: two equal, tactile keys. */
.battle-tabs {
  gap: 4px; padding: 4px; margin: 2px 0 0; border-radius: 11px;
  background: rgba(3, 9, 14, .72); border: 1px solid rgba(94, 231, 255, .14);
}
.battle-tabs button {
  position: relative; flex: 1; padding: 9px 8px 9px 24px;
  border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--ink-3);
  font-size: 10px; font-weight: 600; letter-spacing: .06em; text-align: center;
  transition: color .18s, background .18s, border-color .18s, box-shadow .18s;
}
.battle-tabs .tab-dot {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 2px; background: rgba(255, 255, 255, .2);
  transition: transform .18s, background .18s;
}
.battle-tabs button:not(.on):hover { color: var(--cyan); background: rgba(94, 231, 255, .06); }
.battle-tabs button.on {
  color: #04141A; border-color: rgba(160, 248, 255, .5);
  background: linear-gradient(135deg, #A9F6FF, #5EE7FF 55%, #2AB6D4);
  box-shadow: 0 7px 18px -9px rgba(94, 231, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.battle-tabs button.on .tab-dot { background: #0B4F60; transform: translateY(-50%) rotate(45deg); }
.screen[dir="rtl"] .battle-tabs button { padding: 9px 24px 9px 8px; }
.screen[dir="rtl"] .battle-tabs .tab-dot { left: auto; right: 12px; }

.battle-pane { display: flex; flex-direction: column; gap: 9px; }
.battle-pane[hidden] { display: none; }
.battle-mode-note {
  margin: 0; padding: 8px 10px; border-left: 2px solid rgba(94, 231, 255, .5);
  border-radius: 0 8px 8px 0; background: rgba(94, 231, 255, .05);
  font-size: 9.5px; line-height: 1.55; color: var(--ink-2);
}
.battle-card .btn.primary.arena-cta {
  position: relative; width: 100%; min-height: 38px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(160, 248, 255, .5); border-radius: 10px;
  background: linear-gradient(100deg, #0E4A5A, #1C8FA8 48%, #5EE7FF);
  color: #F2FEFF; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  box-shadow: 0 10px 24px -14px rgba(94, 231, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.battle-card .btn.primary.arena-cta::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .26) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .55s ease;
}
.battle-card .btn.primary.arena-cta:hover::before,
.battle-card .btn.primary.arena-cta.console-focus::before { transform: translateX(120%); }
.battle-card .btn.primary.arena-cta::after { content: "\203A"; margin-left: 9px; font-size: 17px; line-height: 1; }
.friend-box { gap: 6px; }
.friend-box .search {
  flex: 1; min-width: 0; padding: 8px 10px; font-size: 10px;
  background: rgba(3, 9, 14, .7); border: 1px solid rgba(94, 231, 255, .18);
  border-radius: 9px; color: var(--ink);
}
.friend-box .search::placeholder { color: rgba(255, 255, 255, .28); }
.friend-box .btn.ghost { padding: 8px 12px; border-radius: 9px; font-size: 10px; }
.battle-status { margin: 0; }

.battle-board {
  margin-top: 14px; padding: 12px 14px 10px; border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(160deg, rgba(9, 20, 27, .75), rgba(4, 10, 15, .6));
}
.board-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.board-head h2 { margin: 0; font-size: 10px; }
.board-cap { padding: 3px 8px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 99px; font-size: 7px; letter-spacing: .24em; color: var(--ink-3); }
.board-list { display: flex; flex-direction: column; }
.battle-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 9px;
  border: 1px solid transparent; border-bottom-color: rgba(255, 255, 255, .05);
  border-radius: 8px; font-size: 10px;
}
.battle-row:hover { background: rgba(94, 231, 255, .05); border-color: rgba(94, 231, 255, .14); }
.battle-row b { width: 26px; font-family: var(--display); font-size: 11px; color: var(--cyan); }
.battle-row:first-child b { color: var(--gold); }
.battle-row span { flex: 1; }
.battle-row em { font-style: normal; font-family: var(--display); font-size: 12px; color: var(--gold); }
.board-empty { display: flex; align-items: center; gap: 12px; padding: 12px 4px 6px; }
.board-empty .muted { margin: 0; font-size: 9.5px; line-height: 1.5; }
.empty-ring {
  position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(94, 231, 255, .25);
  background: radial-gradient(circle, rgba(94, 231, 255, .18), transparent 65%);
}
.empty-ring::before, .empty-ring::after { content: ""; position: absolute; border-radius: 50%; }
.empty-ring::before { inset: 7px; border: 1px solid rgba(94, 231, 255, .3); }
.empty-ring::after { inset: 15px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ---------------- season rankings ---------------- */
.ranks-view .page-head { padding-bottom: 8px; }
.rank-me {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(255, 194, 75, .26);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 194, 75, .10), transparent 62%),
    linear-gradient(160deg, rgba(10, 22, 30, .94), rgba(4, 10, 15, .9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.rank-me-copy { flex: 1; min-width: 0; }
.ranks-view .rank-me { cursor: pointer; }
.rank-me-label {
  margin: 0 0 3px; font-size: 7.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
}
.rank-me-pos {
  display: block; font-family: var(--display); font-size: 32px; line-height: 1;
  color: var(--gold); text-shadow: 0 0 22px rgba(255, 194, 75, .35);
}
.rank-me-sub { margin: 4px 0 0; font-size: 10px; color: var(--ink-2); }
.rank-me .rating-ring { width: 62px; height: 62px; }
.rank-me .rating-ring b { font-size: 17px; }
.rank-me.is-guest { border-color: var(--line); }
.rank-me.is-guest .rank-me-pos { color: var(--ink-3); text-shadow: none; }
.rank-me-cta { flex: none; }

.rank-board { margin-top: 12px; }
.rank-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: rgba(255, 255, 255, .02);
}
.rank-row {
  position: relative; display: flex; align-items: center; gap: 9px;
  padding: 7px 10px 7px 9px; font-size: 10.5px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.rank-row:last-child { border-bottom: 0; }
.rank-row .rank-no {
  flex: none; width: 20px; text-align: right;
  font-family: var(--display); font-size: 11px; color: var(--ink-3);
}
.rank-row .rank-name {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-row .rank-wl { flex: none; font-size: 8.5px; color: var(--ink-3); letter-spacing: .02em; }
.rank-row .rank-rp {
  flex: none; min-width: 34px; text-align: right;
  font-style: normal; font-family: var(--display); font-size: 11px; color: var(--gold);
}
.rank-row.gold { background: linear-gradient(90deg, rgba(255, 194, 75, .13), rgba(255, 194, 75, .02) 62%, transparent); }
.rank-row.silver { background: linear-gradient(90deg, rgba(201, 214, 227, .10), transparent 62%); }
.rank-row.bronze { background: linear-gradient(90deg, rgba(208, 139, 91, .10), transparent 62%); }
.rank-row.gold .rank-no { color: #FFC24B; }
.rank-row.silver .rank-no { color: #C9D6E3; }
.rank-row.bronze .rank-no { color: #D08B5B; }
.rank-row.gold .rank-no::after,
.rank-row.silver .rank-no::after,
.rank-row.bronze .rank-no::after {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px;
}
.rank-row.gold .rank-no::after { background: #FFC24B; }
.rank-row.silver .rank-no::after { background: #C9D6E3; }
.rank-row.bronze .rank-no::after { background: #D08B5B; }
.rank-row.me {
  background: rgba(94, 231, 255, .09);
  box-shadow: inset 2px 0 0 var(--cyan);
}
.rank-row.me .rank-name { color: var(--cyan); font-weight: 600; }
.rank-you {
  margin-left: 4px; padding: 0 3px; border-radius: 4px;
  border: 1px solid rgba(94, 231, 255, .3);
  font-style: normal; font-size: 6.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cyan); vertical-align: 1px;
}
/* Pinned to the bottom of the LCD: the table can outgrow a short screen, and
   the two actions should never be the thing that falls below the fold. */
.rank-foot {
  position: sticky; bottom: 0; z-index: 2;
  display: flex; gap: 8px; margin-top: 10px; padding: 8px 0 4px;
  background: linear-gradient(180deg, rgba(4, 16, 24, 0) 0%, rgba(4, 16, 24, .96) 26%, #041018 100%);
}
.rank-foot::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .09), transparent);
}
.rank-foot .btn { flex: 1; }
/* Separator shown when your own row has to be appended below the visible top N. */
.rank-gap { display: flex; align-items: center; justify-content: center; padding: 3px 10px; }
.rank-gap span {
  display: block; width: 100%; height: 0;
  border-top: 1px dashed rgba(94, 231, 255, .22);
}
.board-more {
  appearance: none; cursor: pointer;
  padding: 3px 9px; border-radius: 99px;
  border: 1px solid rgba(94, 231, 255, .3);
  background: rgba(94, 231, 255, .06);
  color: var(--cyan); font-size: 7.5px; letter-spacing: .16em; text-transform: uppercase;
  font-family: var(--sans);
}
.board-more:hover { background: rgba(94, 231, 255, .12); }
/* Short handheld screens: shrink the podium card so the table still fits. */
@media (max-height: 700px) {
  .ranks-view .page-head .lede { display: none; }
  .ranks-view .page-head { padding-bottom: 6px; }
}
@media (max-height: 620px) {
  .rank-me { padding: 9px 12px; }
  .rank-me-pos { font-size: 26px; }
  .rank-me .rating-ring { width: 52px; height: 52px; }
  .rank-row { padding: 5px 9px; font-size: 10px; }
  .rank-foot { margin-top: 9px; }
}
