:root {
  --bg: #fff8ee;
  --ink: #2a2140;
  --muted: #6b6185;
  --card: #fff;
  --pink: #ff5ea8;
  --yellow: #ffd23f;
  --gold: #ffc928;
  --blue: #3fa7ff;
  --green: #4cc38a;
  --purple: #8b6cf0;
  --orange: #ff8a3d;
  --line: 3px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --radius: 18px;
  --font: "Fredoka", "Segoe UI", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}
body.playing {
  overflow: hidden;
}
a {
  color: inherit;
}
button {
  color: inherit;
  font-family: inherit;
}
b {
  font-weight: 600;
}
code {
  background: #f1ebff;
  border-radius: 6px;
  padding: 1px 5px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88em;
}
kbd {
  border: 2px solid var(--ink);
  background: #fff;
  border-bottom-width: 3px;
  border-radius: 6px;
  padding: 0 5px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}
.btn {
  border: var(--line);
  cursor: pointer;
  background: var(--card);
  box-shadow: 3px 3px 0 var(--ink);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
  display: inline-flex;
}
.btn:hover {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-1px, -1px);
}
.btn:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}
.btn-buy {
  background: var(--yellow);
}
.btn-ghost {
  background: #fff;
}
.logo {
  align-items: center;
  gap: 10px;
  text-decoration: none;
  display: flex;
}
.logo-word {
  letter-spacing: 0.5px;
  font-size: 26px;
  font-weight: 700;
}
.logo-orb {
  border: var(--line);
  background: linear-gradient(var(--pink) 0 47%, var(--ink) 47% 53%, #fff 53%);
  border-radius: 50%;
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-block;
  position: relative;
}
.logo-orb:before,
.logo-orb:after {
  content: "";
  clip-path: polygon(
    50% 0,
    61% 39%,
    100% 50%,
    61% 61%,
    50% 100%,
    39% 61%,
    0 50%,
    39% 39%
  );
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.logo-orb:before {
  background: var(--ink);
  width: 17px;
  height: 17px;
}
.logo-orb:after {
  background: var(--yellow);
  width: 11px;
  height: 11px;
}
.ball-ico {
  border: 2.5px solid var(--ink);
  background: linear-gradient(var(--pink) 0 46%, var(--ink) 46% 54%, #fff 54%);
  border-radius: 50%;
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-block;
  position: relative;
}
.ball-ico.gold {
  background: linear-gradient(var(--gold) 0 46%, var(--ink) 46% 54%, #fff 54%);
  box-shadow: 0 0 12px 2px #ffd23fbf;
}
.ball-ico:after {
  content: "";
  clip-path: polygon(
    50% 0,
    61% 39%,
    100% 50%,
    61% 61%,
    50% 100%,
    39% 61%,
    0 50%,
    39% 39%
  );
  background: var(--yellow);
  width: 13px;
  height: 13px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.ball-ico.gold:after {
  background: var(--pink);
}
.hero {
  border-bottom: var(--line);
  -webkit-user-select: none;
  user-select: none;
  background: linear-gradient(#5fb4ff, #dff1ff 60%, #bfe9e4);
  height: 100svh;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}
#scene {
  outline: none;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}
.hero[data-state="playing"] #scene {
  cursor: crosshair;
  touch-action: none;
}
.labels {
  pointer-events: none;
  z-index: 2;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.label3d,
.nametag {
  white-space: nowrap;
  will-change: transform;
  border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  background: #fff;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 15px;
  font-weight: 600;
  position: absolute;
  top: 0;
  left: 0;
}
.label3d.caught {
  background: #d9ffe7;
}
.label3d.free {
  background: #ffe1e1;
}
.label3d.legend {
  background: var(--yellow);
  font-size: 17px;
}
.label3d.gold {
  background: var(--yellow);
}
.label3d small {
  opacity: 0.75;
  margin-left: 4px;
  font-weight: 500;
}
.nametag {
  box-shadow: none;
  background: #ffffffe6;
  align-items: center;
  gap: 5px;
  padding: 2px 9px 2px 6px;
  font-size: 13px;
  display: flex;
}
.nametag i {
  border: 2px solid var(--ink);
  border-radius: 50%;
  width: 10px;
  height: 10px;
}
.tag {
  border: 1.5px solid var(--ink);
  vertical-align: 1px;
  border-radius: 6px;
  margin-left: 4px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
}
.tag.holo {
  background: linear-gradient(90deg, #ff9ecf, #fff19c, #9cffc9, #9ce2ff);
}
.tag.prism {
  background: #fff1a8;
}
.hud {
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  position: absolute;
  inset: 0;
}
.hero[data-state="playing"] .hud,
.hero[data-state="paused"] .hud {
  opacity: 1;
}
.hero[data-state="paused"] .hud {
  filter: saturate(0.7);
}
.hud button {
  pointer-events: auto;
}
.panel {
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fffffff0;
}
.crosshair {
  width: 26px;
  height: 26px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.crosshair svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.ch-bar {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.5px;
}
.ch-dot {
  fill: var(--pink);
  stroke: var(--ink);
  stroke-width: 1.5px;
  transform-box: fill-box;
  transform-origin: 50%;
}
.crosshair.gold .ch-dot {
  fill: var(--gold);
  filter: drop-shadow(0 0 4px #ffd23ff2);
}
.crosshair.on-card .ch-dot {
  transform: scale(1.5);
}
.hud-tl {
  flex-direction: column;
  gap: 10px;
  width: 290px;
  display: flex;
  position: absolute;
  top: 16px;
  left: 16px;
}
.card-panel {
  align-items: center;
  gap: 12px;
  padding: 10px;
  display: flex;
}
.cp-img {
  border: 2.5px solid var(--ink);
  background: linear-gradient(135deg, #fff3b0, #ffd23f 50%, #e09a00);
  border-radius: 8px;
  flex: none;
  place-items: center;
  width: 62px;
  height: 92px;
  display: grid;
  overflow: hidden;
}
.cp-img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}
.cp-img img[src=""],
.cp-img img:not([src]) {
  display: none;
}
.card-panel.none .cp-img:after {
  content: "?";
  font-size: 34px;
  font-weight: 700;
}
.card-panel.none .dot-live {
  display: none;
}
.cp-body {
  min-width: 0;
}
.cp-kicker {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #b07800;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
}
.card-panel.none .cp-kicker {
  color: var(--muted);
}
.cp-name {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  display: -webkit-box;
  overflow: hidden;
}
.cp-meta {
  color: var(--muted);
  margin-top: 2px;
  font-size: 13px;
}
.cp-throws {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
}
.status-panel {
  padding: 9px 13px;
  font-size: 14px;
}
.sp-row {
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  display: flex;
}
.sp-row b {
  font-variant-numeric: tabular-nums;
  font-size: 17px;
}
.sp-label {
  color: var(--muted);
  font-weight: 500;
}
.sp-bar {
  border: 2px solid var(--ink);
  background: #f1ebff;
  border-radius: 999px;
  height: 10px;
  margin-top: 6px;
  overflow: hidden;
}
.sp-bar i {
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  width: 0;
  height: 100%;
  transition: width 0.6s;
  display: block;
}
.sp-sub {
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
}
.sp-cap {
  color: #b07800;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
}
.sp-cap:empty {
  display: none;
}
.sp-cap.migrated {
  color: #1f9d55;
}
.legend-chip {
  border: var(--line);
  box-shadow: var(--shadow);
  color: #fff;
  background: linear-gradient(135deg, #b25cff, #6d3fd1);
  border-radius: 16px;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.25;
  display: none;
}
.legend-chip.show {
  animation: 1.6s ease-in-out infinite legendpulse;
  display: block;
}
.legend-chip span {
  letter-spacing: 0.6px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  display: block;
}
.legend-chip b {
  font-size: 16px;
  display: block;
}
.legend-chip em {
  opacity: 0.9;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}
@keyframes legendpulse {
  50% {
    box-shadow:
      4px 4px 0 var(--ink),
      0 0 18px 4px #b25cffb3;
  }
}
.legend-tag {
  will-change: transform;
  white-space: nowrap;
  text-align: center;
  border: 2.5px solid var(--ink);
  color: #fff;
  box-shadow: 2px 2px 0 var(--ink);
  background: linear-gradient(135deg, #b25cff, #6d3fd1);
  border-radius: 14px;
  padding: 3px 12px 4px;
  position: absolute;
  top: 0;
  left: 0;
}
.legend-tag span {
  letter-spacing: 0.6px;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 700;
  display: block;
}
.legend-tag b {
  font-size: 14px;
}
.banner.legend {
  color: #fff;
  border: var(--line);
  box-shadow:
    4px 4px 0 var(--ink),
    0 0 30px 6px #b25cff8c;
  background: linear-gradient(135deg, #b25cff, #6d3fd1);
  font-size: 19px;
}
.events li.legend {
  background: #efe2ff;
}
.collection-chip.complete {
  background: var(--yellow);
}
.claim-pill {
  z-index: 10;
  font: inherit;
  border: var(--line);
  background: var(--yellow);
  box-shadow:
    4px 4px 0 var(--ink),
    0 0 24px 6px #ffd23fb3;
  cursor: pointer;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 17px;
  font-weight: 700;
  animation: 1.6s ease-in-out infinite hop;
  position: absolute;
  top: 74px;
  left: 50%;
  transform: translate(-50%);
}
.hero[data-state="playing"] .claim-pill {
  padding: 6px 14px;
  font-size: 14px;
  top: 54px;
}
.champions {
  z-index: 4;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 2.5px solid var(--ink);
  max-width: min(560px, 46vw);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  pointer-events: none;
  background: linear-gradient(#fff3b0, #ffd23f);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 600;
  position: absolute;
  top: 14px;
  left: 50%;
  overflow: hidden;
  transform: translate(-50%);
}
.champions .ch-k {
  margin-right: 4px;
  font-weight: 700;
}
.champions i {
  opacity: 0.55;
  margin: 0 6px;
  font-style: normal;
}
@media (width<=820px) {
  .champions {
    max-width: 44vw;
    padding: 3px 10px;
    font-size: 11px;
    top: 8px;
  }
}
.hero:not([data-state="playing"]) .champions {
  display: none;
}
.flash {
  z-index: 9;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, #fff6c8f2, #ffd23f8c 45%, #ffd23f00 75%);
  position: absolute;
  inset: 0;
}
.flash.on {
  animation: 1.1s ease-out flash;
}
@keyframes flash {
  0% {
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.arrival {
  z-index: 9;
  pointer-events: none;
  background: radial-gradient(#2a214061, #2a214014 70%);
  justify-content: center;
  align-items: center;
  display: none;
  position: absolute;
  inset: 0;
}
.arrival.show {
  animation: 3.4s ease-in-out forwards arrivalfade;
  display: flex;
}
@keyframes arrivalfade {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.arrival-card {
  text-align: center;
  background: var(--bg);
  border: var(--line);
  box-shadow:
    6px 6px 0 var(--ink),
    0 0 60px 14px #ffd23fb3;
  border-radius: 26px;
  max-width: min(380px, 86vw);
  padding: 16px 22px 18px;
  animation: 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) arrivalpop;
}
.arrival-kicker {
  letter-spacing: 1px;
  color: #b07800;
  font-size: 14px;
  font-weight: 700;
}
.arrival-card img {
  object-fit: contain;
  border-radius: 12px;
  max-width: 100%;
  height: min(46vh, 380px);
  margin: 8px auto 6px;
  animation: 0.9s ease-out flip;
  display: block;
}
.arrival-q {
  border: var(--line);
  background: linear-gradient(135deg, #fff3b0, #ffd23f 50%, #e09a00);
  border-radius: 14px;
  place-items: center;
  width: 160px;
  height: 240px;
  margin: 10px auto;
  font-size: 90px;
  font-weight: 700;
  display: grid;
}
.arrival-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}
.arrival-meta {
  color: var(--muted);
  margin-top: 2px;
  font-weight: 600;
}
.arrival-sub {
  color: var(--muted);
  margin-top: 6px;
  font-size: 13px;
}
@keyframes arrivalpop {
  0% {
    opacity: 0;
    transform: translateY(-60px) scale(0.6) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes flip {
  0% {
    transform: perspective(600px) rotateY(90deg);
  }
  to {
    transform: perspective(600px) rotateY(0);
  }
}
.hud-tr {
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  display: flex;
  position: absolute;
  top: 16px;
  right: 16px;
}
.minimap-wrap {
  border: var(--line);
  width: 180px;
  height: 180px;
  box-shadow: var(--shadow);
  background: #5fb4ff;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}
.minimap-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.mm-n {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translate(-50%);
}
.online {
  border: 2px solid var(--ink);
  background: #ffffffe6;
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 13px;
  font-weight: 600;
}
.dot-ok {
  background: var(--green);
  border: 2px solid var(--ink);
  vertical-align: 0;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  display: inline-block;
}
.dot-live {
  background: #ff4d6d;
  border-radius: 50%;
  flex: none;
  width: 9px;
  height: 9px;
  animation: 1.6s infinite pulse;
  display: inline-block;
  box-shadow: 0 0 #ff4d6d99;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px #ff4d6d00;
  }
  to {
    box-shadow: 0 0 #ff4d6d00;
  }
}
.collection-chip {
  border: 2px solid var(--ink);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  background: #fff;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 600;
}
.sound-chip {
  border: 2px solid var(--ink);
  cursor: pointer;
  width: 30px;
  height: 30px;
  box-shadow: 2px 2px 0 var(--ink);
  background: #fff;
  border-radius: 50%;
  place-items: center;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  display: grid;
}
.sound-chip[aria-pressed="false"] {
  background: #eee8dc;
}
.card-marker,
.card-arrow {
  will-change: transform;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}
.card-marker {
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}
.card-marker b {
  margin-left: 6px;
  font-weight: 600;
}
.card-marker:after {
  content: "";
  border: 7px solid #0000;
  border-top-color: var(--ink);
  border-bottom: 0;
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translate(-50%);
}
.card-arrow {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
}
.card-arrow i {
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
  position: absolute;
  inset: 0;
  box-shadow: 0 0 16px 4px #ffd23fcc;
}
.card-arrow i:after {
  content: "";
  border: 11px solid #0000;
  border-left: 15px solid var(--ink);
  border-right: 0;
  position: absolute;
  top: 50%;
  right: -15px;
  transform: translateY(-50%);
}
.card-arrow b {
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  position: absolute;
  inset: 0;
}
.events {
  flex-direction: column;
  gap: 6px;
  width: 330px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  position: absolute;
  bottom: 16px;
  left: 16px;
}
.events li {
  border: 2px solid var(--ink);
  -webkit-line-clamp: 2;
  background: #ffffffeb;
  border-radius: 12px;
  -webkit-box-orient: vertical;
  padding: 4px 10px;
  font-size: 14px;
  line-height: 1.3;
  transition: opacity 0.6s;
  animation: 0.3s ease-out slidein;
  display: -webkit-box;
  overflow: hidden;
}
.events li.gold {
  background: #fff4c7;
}
.events li.me {
  background: #ffe6f5;
}
.events li.fade {
  opacity: 0;
}
@keyframes slidein {
  0% {
    opacity: 0;
    transform: translate(-16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.inventory {
  gap: 10px;
  display: flex;
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translate(-50%);
}
.slot {
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  background: #ffffffeb;
  border-radius: 16px;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  transition: transform 0.15s;
  display: flex;
  position: relative;
}
.slot.on {
  box-shadow: 3px 7px 0 var(--ink);
  background: #fff;
  transform: translateY(-4px);
}
.slot.pink.on {
  background: #ffe6f5;
}
.slot.gold.on {
  background: #fff4c7;
}
.slot.gold.empty .ball-ico {
  filter: grayscale(0.8);
  opacity: 0.6;
  box-shadow: none;
}
.slot .key {
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  top: -9px;
  left: -7px;
}
.slot-txt {
  text-align: left;
  flex-direction: column;
  line-height: 1.05;
  display: flex;
}
.slot-txt b {
  font-size: 20px;
  font-weight: 700;
}
.slot-txt small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.slot.bump {
  animation: 0.45s bump;
}
@keyframes bump {
  30% {
    transform: translateY(-4px) scale(1.18);
  }
}
.hint {
  color: #fff;
  opacity: 0;
  white-space: nowrap;
  background: #2a2140d1;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translate(-50%);
}
.hint.show {
  opacity: 1;
}
.toast {
  background: var(--ink);
  color: #fff;
  opacity: 0;
  text-align: center;
  border-radius: 999px;
  max-width: 86vw;
  padding: 7px 18px;
  font-size: 15px;
  font-weight: 600;
  transition:
    opacity 0.2s,
    transform 0.2s;
  position: absolute;
  bottom: 132px;
  left: 50%;
  transform: translate(-50%, 10px);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%);
}
.toast.gold {
  background: var(--yellow);
  color: var(--ink);
  border: var(--line);
}
.banner {
  opacity: 0;
  z-index: 6;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  text-align: center;
  border-radius: 999px;
  max-width: min(640px, 80vw);
  padding: 10px 22px;
  font-size: 17px;
  font-weight: 600;
  transition:
    transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1),
    opacity 0.25s;
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -220%);
  box-shadow: 4px 4px #2a214059;
}
.banner.show {
  opacity: 1;
  transform: translate(-50%);
}
.banner.gold {
  background: var(--yellow);
  color: var(--ink);
  border: var(--line);
}
.hero:not([data-state="playing"]) .banner {
  font-size: 15px;
  top: 82px;
}
.touch {
  display: none;
}
.joy {
  background: #ffffff40;
  border: 3px solid #2a214099;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  display: none;
  position: absolute;
}
.joy.on {
  display: block;
}
.joy i {
  border: 3px solid var(--ink);
  background: #ffffffe6;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  position: absolute;
  top: 50%;
  left: 50%;
}
.tbtn {
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
  touch-action: none;
  background: #ffffffeb;
  border-radius: 50%;
  place-items: center;
  font-weight: 700;
  display: grid;
  position: absolute;
}
.tbtn:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}
.tbtn-pink {
  right: 18px;
  bottom: calc(26px + var(--safe-b));
  background: #ffe6f5;
  width: 84px;
  height: 84px;
}
.tbtn-pink .ball-ico,
.tbtn-gold .ball-ico {
  width: 44px;
  height: 44px;
}
.tbtn-gold {
  right: 112px;
  bottom: calc(40px + var(--safe-b));
  background: #fff4c7;
  width: 70px;
  height: 70px;
}
.tbtn-gold .ball-ico {
  width: 38px;
  height: 38px;
}
.tbtn-gold b {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 13px;
  position: absolute;
  top: -6px;
  right: -6px;
}
.tbtn-gold.empty {
  filter: grayscale(0.8);
  opacity: 0.7;
}
.tbtn-jump {
  right: 26px;
  bottom: calc(124px + var(--safe-b));
  letter-spacing: 0.5px;
  width: 58px;
  height: 58px;
  font-size: 12px;
}
.tbtn-pause {
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  display: flex;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}
.tbtn-pause i {
  background: var(--ink);
  border-radius: 2px;
  width: 5px;
  height: 15px;
}
.topbar {
  z-index: 8;
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
  transition:
    opacity 0.3s,
    transform 0.3s;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.topbar .logo {
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
  background: #fff8eeeb;
  border-radius: 999px;
  padding: 4px 14px 4px 6px;
}
.nav {
  border: 2.5px solid var(--ink);
  background: #fff8eed9;
  border-radius: 999px;
  gap: 4px;
  padding: 3px;
  display: flex;
}
.nav a {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover {
  box-shadow: inset 0 0 0 2px var(--ink);
  background: #fff;
}
.top-actions {
  align-items: center;
  gap: 10px;
  margin-left: auto;
  display: flex;
}
.ca-pill {
  border: var(--line);
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: #fff;
  border-radius: 999px;
  max-width: 230px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
}
.ca-label {
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  margin-right: 4px;
  padding: 1px 6px;
  font-size: 12px;
}
.hero[data-state="playing"] .topbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-120%);
}
.overlay {
  z-index: 7;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 16px 40px;
  display: flex;
  position: absolute;
  inset: 0;
}
.overlay.start {
  background: radial-gradient(#fff8ee40, #2a21402e);
}
.overlay.pause {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  background: #2a214061;
}
.hero[data-state="playing"] .overlay.start,
.hero[data-state="paused"] .overlay.start {
  display: none;
}
.start-card {
  border: var(--line);
  box-shadow: 6px 6px 0 var(--ink);
  text-align: center;
  background: #fff8eef5;
  border-radius: 26px;
  width: 100%;
  max-width: 560px;
  padding: 24px 28px 20px;
  animation: 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) rise;
}
@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.big-logo {
  letter-spacing: 1px;
  align-items: center;
  gap: 14px;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
}
.big-logo .logo-orb {
  border-width: 4px;
  width: 58px;
  height: 58px;
}
.big-logo .logo-orb:before {
  width: 33px;
  height: 33px;
}
.big-logo .logo-orb:after {
  width: 22px;
  height: 22px;
}
.tagline {
  max-width: 460px;
  margin: 10px auto 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}
.live-line {
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 3px 12px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
}
.live-line.card-live {
  background: #fff4c7;
}
.start-row {
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  display: flex;
}
.name-field {
  text-align: left;
  color: var(--muted);
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
}
.name-field input {
  border: var(--line);
  font: inherit;
  color: var(--ink);
  background: #fff;
  border-radius: 999px;
  width: 200px;
  padding: 10px 16px;
  font-size: 16px;
}
.btn-play {
  background: var(--pink);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 44px;
  font-size: 24px;
}
.btn-play:hover {
  box-shadow: 5px 5px 0 var(--ink);
}
.controls-help {
  color: var(--muted);
  flex-direction: column;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  font-size: 14px;
  list-style: none;
  display: flex;
}
.no-wallet {
  color: var(--muted);
  max-width: 470px;
  margin: 12px auto 0;
  font-size: 13px;
}
.only-touch {
  display: none;
}
.scroll-hint {
  border: 2.5px solid var(--ink);
  background: #ffffffe6;
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 600;
  text-decoration: none;
  animation: 2s ease-in-out infinite hop;
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translate(-50%);
}
@keyframes hop {
  50% {
    transform: translate(-50%, -5px);
  }
}
.pause-title {
  margin: 0 0 12px;
  font-size: 40px;
}
.pause-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  display: flex;
}
.victory {
  z-index: 60;
  background: radial-gradient(#ffd23f80, #2a2140d1 70%);
  justify-content: center;
  align-items: center;
  padding: 16px;
  display: flex;
  position: fixed;
  inset: 0;
  overflow: auto;
}
.victory-card {
  background: var(--bg);
  border: var(--line);
  box-shadow: 8px 8px 0 var(--ink);
  border-radius: 26px;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 760px;
  padding: 22px;
  animation: 0.6s cubic-bezier(0.2, 1.3, 0.4, 1) rise;
  display: grid;
  position: relative;
}
.victory h2 {
  margin: 0 0 6px;
  font-size: 46px;
  line-height: 1;
}
.victory .v-sub {
  color: var(--muted);
  margin: 0 0 12px;
}
.flip {
  perspective: 1200px;
  aspect-ratio: 0.62;
  width: 100%;
}
.flip-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: 2.4s cubic-bezier(0.2, 0.8, 0.25, 1) forwards flipcard;
  position: relative;
}
.flip-face {
  backface-visibility: hidden;
  border: var(--line);
  background: #fff;
  border-radius: 16px;
  position: absolute;
  inset: 0;
  overflow: hidden;
  box-shadow: 0 0 40px 8px #ffd23fb3;
}
.flip-face img {
  object-fit: contain;
  background: #f4effb;
  width: 100%;
  height: 100%;
  display: block;
}
.flip-back {
  transform: rotateY(180deg);
}
@keyframes flipcard {
  0% {
    transform: rotateY(180deg) scale(0.6);
  }
  60% {
    transform: rotateY(-20deg) scale(1.04);
  }
  to {
    transform: rotateY(0) scale(1);
  }
}
.v-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.v-meta {
  color: var(--muted);
  margin: 2px 0 14px;
  font-size: 14px;
}
.claim-box {
  border: var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 14px;
}
.claim-box h3 {
  margin: 0 0 4px;
  font-size: 20px;
}
.trust {
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 13px;
}
.claim-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}
.claim-row input {
  border: var(--line);
  min-width: 180px;
  font: inherit;
  border-radius: 999px;
  flex: 1;
  padding: 9px 14px;
  font-size: 14px;
}
.or {
  color: var(--muted);
  text-align: center;
  margin: 8px 0;
  font-size: 13px;
}
.claim-msg {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}
.claim-msg.ok {
  color: #1f9d55;
}
.claim-msg.ko {
  color: #d63a5a;
}
.v-close {
  border: var(--line);
  cursor: pointer;
  background: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  position: absolute;
  top: 10px;
  right: 12px;
}
.confetti {
  pointer-events: none;
  z-index: 61;
  position: fixed;
  inset: 0;
  overflow: hidden;
}
.confetti i {
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  width: 10px;
  height: 16px;
  animation: linear forwards fall;
  position: absolute;
  top: -20px;
}
@keyframes fall {
  to {
    transform: translate3d(var(--dx), 110vh, 0) rotate(var(--r));
  }
}
.wallet-list {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  display: flex;
}
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 22px 24px;
}
.section-title {
  margin: 0 0 6px;
  font-size: 44px;
  line-height: 1.1;
}
.section-lead {
  color: var(--muted);
  max-width: 780px;
  margin: 0 0 26px;
}
.how-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  display: grid;
}
.how-card {
  background: var(--card);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.how-card h3 {
  margin: 12px 0 6px;
  font-size: 21px;
}
.how-card p {
  color: #4a4060;
  margin: 0;
  font-size: 16px;
}
.how-icon {
  border: var(--line);
  border-radius: 14px;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 26px;
  display: grid;
}
.how-1 {
  background: #fff1a8;
}
.how-2 {
  background: #ffd6ea;
}
.how-3 {
  background: #d6ecff;
}
.how-4 {
  background: #e2f7d9;
}
.pot-rules {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
  display: grid;
}
.pot-rule {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  display: flex;
}
.pot-rule > b {
  color: var(--yellow);
  flex: none;
  font-size: 34px;
}
.pot-rule span {
  font-size: 15px;
  line-height: 1.3;
}
.pot-rule span b {
  color: var(--yellow);
}
.pink-orb-ico {
  background: linear-gradient(var(--pink) 0 46%, #fff 46% 54%, #fff 54%);
  border: 3px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  position: relative;
}
.powered {
  color: var(--muted);
  margin-top: 18px;
  font-size: 15px;
}
.powered a {
  font-weight: 600;
}
.empty {
  color: var(--muted);
  font-size: 15px;
}
.cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  display: grid;
}
.real-card {
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
  background: #fff;
  border-radius: 16px;
  flex-direction: column;
  display: flex;
  overflow: hidden;
}
.real-card .img {
  aspect-ratio: 3/4.4;
  background: linear-gradient(#f4effb, #e8e0f5);
  place-items: center;
  display: grid;
  position: relative;
  overflow: hidden;
}
.real-card .img img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.real-card .badge {
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  top: 8px;
  left: 8px;
}
.real-card .badge.live {
  background: var(--yellow);
}
.real-card .badge.claimed {
  background: #d9ffe7;
}
.real-card .info {
  padding: 8px 12px 12px;
  font-size: 13px;
}
.real-card .nm {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}
.real-card .meta {
  color: var(--muted);
  margin-top: 3px;
}
.real-card .meta a {
  font-weight: 600;
}
.pack-tag {
  border: 1.5px solid var(--ink);
  background: #fff1a8;
  border-radius: 6px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}
.verify-box {
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 18px;
  padding: 6px 20px;
}
.verify-steps {
  margin: 12px 0;
  padding-left: 22px;
}
.verify-steps li {
  margin: 4px 0;
}
.verify-list {
  gap: 12px;
  display: grid;
}
.vrow {
  border: 2.5px solid var(--ink);
  background: #fff;
  border-radius: 16px;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  display: grid;
}
.vrow img {
  object-fit: cover;
  border: 2px solid var(--ink);
  background: #f4effb;
  border-radius: 6px;
  width: 54px;
  height: 76px;
}
.vrow .t {
  font-weight: 600;
}
.vrow .h {
  color: var(--muted);
  word-break: break-all;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
}
.vrow .h b {
  color: var(--ink);
  font-family: var(--font);
  font-size: 12px;
}
.vrow button {
  border: 2px solid var(--ink);
  background: var(--yellow);
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 600;
}
.vres {
  grid-column: 1/-1;
  font-size: 14px;
}
.vres .ok {
  color: #1f9d55;
  font-weight: 700;
}
.vres .ko {
  color: #d63a5a;
  font-weight: 700;
}
.vres table {
  border-collapse: collapse;
  width: 100%;
  max-width: 640px;
  margin-top: 8px;
  font-size: 13px;
}
.vres td,
.vres th {
  text-align: left;
  font-variant-numeric: tabular-nums;
  border-bottom: 1.5px dashed #e3dcef;
  padding: 3px 8px;
}
.vres tr.win td {
  background: #fff4c7;
  font-weight: 600;
}
.footer {
  border-top: var(--line);
  text-align: center;
  color: var(--muted);
  margin-top: 60px;
  padding: 30px 22px 50px;
}
.footer-logo {
  color: var(--ink);
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  display: inline-flex;
}
.footer p {
  max-width: 640px;
  margin: 10px auto 0;
  font-size: 14px;
}
.x-link {
  width: 44px;
  height: 44px;
  padding: 0;
}
.x-link svg {
  width: 18px;
  height: 18px;
  fill: var(--ink);
}
.footer-x {
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  background: #fff;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}
.footer-x svg {
  width: 16px;
  height: 16px;
  fill: var(--ink);
}
.modal {
  z-index: 70;
  background: #2a21408c;
  place-items: center;
  padding: 16px;
  display: grid;
  position: fixed;
  inset: 0;
}
.modal-card {
  background: var(--bg);
  border: var(--line);
  box-shadow: 6px 6px 0 var(--ink);
  border-radius: 22px;
  width: 100%;
  max-width: 780px;
  max-height: 92vh;
  padding: 22px;
  position: relative;
  overflow: auto;
}
.modal-close {
  border: var(--line);
  cursor: pointer;
  background: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  position: absolute;
  top: 10px;
  right: 12px;
}
.coll-head {
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin: 6px 0 14px;
  display: flex;
}
.dex-progress {
  border: var(--line);
  background: #fff;
  border-radius: 14px;
  flex: 1;
  min-width: 220px;
  padding: 8px 14px;
}
.dex-progress b {
  font-size: 22px;
}
.dex-progress .bar {
  border: 2.5px solid var(--ink);
  background: #f1ebff;
  border-radius: 999px;
  height: 14px;
  margin-top: 4px;
  overflow: hidden;
}
.dex-progress .bar i {
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  height: 100%;
  display: block;
}
.dex-reward {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  display: flex;
}
.dex-reward .ico {
  font-size: 30px;
}
.dex-reward b {
  color: var(--yellow);
}
.dex-reward .btn {
  color: var(--ink);
  margin-left: auto;
}
.cslot {
  --rar: #c9bfdc;
}
.cslot .rbadge {
  color: #fff;
  background: var(--rar);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
  position: absolute;
  top: 4px;
  left: 6px;
}
.cslot.has {
  border-color: var(--ink);
  box-shadow: inset 0 -5px 0 var(--rar);
}
.cslot.legendary {
  background: linear-gradient(135deg, #fff4c7, #efe2ff);
  border: 3px solid #b07800;
  grid-column: span 2;
}
.cslot.legendary img {
  max-width: 120px;
  margin: 0 auto;
}
.cslot.legendary .rbadge {
  background: linear-gradient(90deg, #b25cff, #ffb020);
}
.cslot.legendary .nm.lg {
  color: #6d3fd1;
}
.stat {
  border: var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 6px 14px;
}
.stat b {
  font-size: 22px;
  line-height: 1.1;
  display: block;
}
.stat span {
  color: var(--muted);
  font-size: 13px;
}
.coll-grid {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  grid-auto-flow: dense;
  gap: 10px;
  display: grid;
}
.cslot {
  text-align: center;
  background: #fbf8ff;
  border: 2.5px dashed #c9bfdc;
  border-radius: 14px;
  padding: 6px;
  position: relative;
}
.cslot.has {
  border: var(--line);
  background: #fff;
}
.cslot img {
  aspect-ratio: 1;
  width: 100%;
  display: block;
}
.cslot .cnt {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
  position: absolute;
  top: 4px;
  right: 6px;
}
.cslot .nm {
  font-size: 12px;
  font-weight: 600;
}
.rar {
  border: 1.5px solid var(--ink);
  vertical-align: 0;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  margin-right: 3px;
  display: inline-block;
}
body:not(.wl) .wl-only,
body.wl .wl-hide,
body.wl .card-panel,
body.wl .status-panel,
body.wl .minimap-wrap,
body.wl .collection-chip,
body.wl .inventory .slot.gold,
body.wl .tbtn-gold,
body.wl .card-marker,
body.wl .card-arrow,
body.wl .claim-pill {
  display: none !important;
}
body.wl .hud-tl {
  width: 300px;
}
.t-founder {
  --tc: #ffd23f;
  --tt: var(--ink);
}
.t-pioneer {
  --tc: #ff5ea8;
  --tt: #fff;
}
.t-early {
  --tc: #3fa7ff;
  --tt: #fff;
}
.t-trainer {
  --tc: #4cc38a;
  --tt: #fff;
}
.ball-ico.mini {
  vertical-align: -2px;
  border-width: 1.5px;
  width: 15px;
  height: 15px;
  box-shadow: 0 0 6px 1px #ffd23fb3;
}
.ball-ico.mini:after {
  width: 7px;
  height: 7px;
}
.tier-badge {
  border: 2.5px solid var(--ink);
  background: var(--tc, #fff);
  color: var(--tt, var(--ink));
  box-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  padding: 1px 11px 1px 7px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
}
.tier-badge i {
  font-style: normal;
}
.wl-ticket {
  background: #fffaf2f5;
  padding: 10px 16px 11px;
}
.wt-head {
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
}
.wt-live {
  color: #d63a5a;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}
.wt-you {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}
.wt-pos {
  white-space: nowrap;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}
.wt-pos b {
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--tc, var(--yellow));
  font-size: 58px;
  font-weight: 700;
}
.wt-total {
  color: var(--muted);
  margin-top: 2px;
  font-size: 15px;
  font-weight: 500;
}
.wt-total b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin: 0 3px 0 1px;
  display: inline-block;
}
.wt-pos span {
  margin-left: 4px;
}
body.wl .hero[data-state="attract"] .nametag {
  display: none !important;
}
.wt-total b.bump,
.tbtn.bump {
  animation: 0.5s bump;
}
.wt-tier {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  margin-top: 9px;
  display: flex;
}
.wt-bonus {
  font-size: 14px;
  font-weight: 600;
}
.wt-bonus b {
  color: #b07800;
  font-size: 17px;
}
.wt-ladder {
  border-top: 2.5px dashed #2a21404d;
  gap: 3px;
  margin: 11px -16px 0;
  padding: 9px 11px 7px;
  list-style: none;
  display: grid;
}
.wt-ladder li {
  border: 2px solid #0000;
  border-radius: 10px;
  grid-template-columns: 20px 1fr auto 30px 36px;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  font-size: 13.5px;
  line-height: 1.2;
  display: grid;
}
.wt-ladder li i {
  text-align: center;
  font-style: normal;
}
.wt-ladder li .n {
  white-space: nowrap;
  font-weight: 600;
}
.wt-ladder li .r {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 12px;
}
.wt-ladder li b {
  text-align: right;
  color: #b07800;
  font-weight: 700;
}
.wt-ladder li em {
  text-transform: uppercase;
  text-align: center;
  border-radius: 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 15px;
}
.wt-ladder li em.full {
  color: var(--muted);
  box-shadow: inset 0 0 0 1.5px #6b618599;
}
.wt-ladder li.full:not(.on) {
  opacity: 0.6;
}
.wt-ladder li.on {
  background: var(--tc);
  color: var(--tt);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.wt-ladder li.on .r,
.wt-ladder li.on b {
  color: inherit;
}
.wt-ladder li.on em {
  background: var(--ink);
  color: #fff;
}
.wt-foot {
  border-top: 2.5px dashed #2a21404d;
  margin: 6px -16px 0;
  padding: 8px 16px 0;
}
.wt-launch {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}
.wt-launch.countdown {
  font-variant-numeric: tabular-nums;
}
.wt-saved {
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.3;
}
.start-tiers {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 2px 0 16px;
  display: grid;
}
.tier-chip {
  border: 2.5px solid var(--ink);
  background: #fff;
  border-radius: 14px;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px 5px;
  line-height: 1.15;
  transition: transform 0.2s;
  display: flex;
  position: relative;
}
.tier-chip > i {
  font-size: 19px;
  font-style: normal;
}
.tier-chip b {
  white-space: nowrap;
  font-size: 14px;
}
.tier-chip small {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 11px;
}
.tier-chip span {
  color: #b07800;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
}
.tier-chip.full:not(.on) {
  opacity: 0.55;
}
.tier-chip.on {
  background: var(--tc);
  color: var(--tt);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translateY(-3px);
}
.tier-chip.on small,
.tier-chip.on span {
  color: inherit;
}
.tier-chip em {
  background: var(--ink);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translate(-50%);
}
.play-wl {
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
  display: flex;
}
.play-wl small {
  opacity: 0.95;
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 600;
}
body.wl .btn-play {
  padding: 8px 30px 9px;
  font-size: 22px;
}
.soon-tag {
  vertical-align: middle;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-radius: 999px;
  margin-left: 6px;
  padding: 2px 12px;
  font-size: 14px;
  font-weight: 700;
}
.early-facts {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 26px;
  display: grid;
}
.early-fact {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 20px;
}
.early-fact b {
  font-variant-numeric: tabular-nums;
  color: var(--yellow);
  font-size: 42px;
  line-height: 1.05;
  display: block;
}
.early-fact span {
  opacity: 0.9;
  font-size: 15px;
}
.tier-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  display: grid;
}
.tier-card {
  background: var(--card);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  transition: transform 0.2s;
  position: relative;
}
.tier-ico {
  border: var(--line);
  background: var(--tc);
  border-radius: 14px;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 26px;
  display: grid;
}
.tier-card h3 {
  margin: 12px 0 0;
  font-size: 23px;
}
.tier-range {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.tier-balls {
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-weight: 600;
  display: flex;
}
.tier-balls .ball-ico.mini {
  border-width: 2.5px;
  width: 24px;
  height: 24px;
}
.tier-balls .ball-ico.mini:after {
  width: 11px;
  height: 11px;
}
.tier-balls b {
  color: #b07800;
  font-size: 26px;
}
.tier-state {
  border: 2px solid var(--ink);
  background: #f1ebff;
  border-radius: 999px;
  margin-top: 10px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
}
.tier-card.full .tier-state {
  color: var(--muted);
  background: #f2eff6;
  border-color: #b9b1c9;
}
.tier-card.filling .tier-state {
  background: #fff4c7;
}
.tier-card.full:not(.on) {
  opacity: 0.7;
}
.tier-card.on .tier-state {
  background: var(--tc);
  color: var(--tt);
  border-color: var(--ink);
}
.tier-card.on {
  box-shadow:
    6px 6px 0 var(--ink),
    0 0 0 5px var(--tc);
  transform: translateY(-4px);
}
.tier-you {
  background: var(--ink);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 999px;
  padding: 1px 11px;
  font-size: 12px;
  font-weight: 700;
  position: absolute;
  top: -14px;
  right: 14px;
}
.early-rules .pot-rule > b {
  background: var(--yellow);
  width: 46px;
  height: 46px;
  color: var(--ink);
  border-radius: 50%;
  place-items: center;
  font-size: 24px;
  display: grid;
}
.bonus {
  z-index: 12;
  background: radial-gradient(#ffd23f73, #2a2140b8 70%);
  justify-content: center;
  align-items: center;
  padding: 16px;
  display: flex;
  position: absolute;
  inset: 0;
}
.bonus-card {
  text-align: center;
  background: var(--bg);
  border: var(--line);
  box-shadow:
    6px 6px 0 var(--ink),
    0 0 60px 14px #ffd23f99;
  border-radius: 26px;
  width: 100%;
  max-width: 450px;
  padding: 14px 26px 22px;
  animation: 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) arrivalpop;
  position: relative;
}
.bonus-burst {
  height: 150px;
  position: relative;
}
.bonus-burst .ball-ico {
  animation: ballout 0.9s cubic-bezier(0.2, 1.3, 0.4, 1) var(--d) both;
  margin: -15px 0 0 -15px;
  position: absolute;
  top: 50%;
  left: 50%;
}
.bonus-burst .ball-ico.big {
  z-index: 1;
  border-width: 4px;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  animation:
    0.8s cubic-bezier(0.2, 1.5, 0.4, 1) both bigpop,
    1.8s ease-in-out 0.8s infinite bob;
  box-shadow: 0 0 30px 8px #ffd23fcc;
}
@keyframes bob {
  50% {
    transform: translateY(-6px);
  }
}
.bonus-burst .ball-ico.big:after {
  width: 36px;
  height: 36px;
}
@keyframes ballout {
  0% {
    opacity: 0;
    transform: translate(0) scale(0.2);
  }
  to {
    transform: translate(var(--x), var(--y)) scale(1);
    opacity: 1;
  }
}
@keyframes bigpop {
  0% {
    transform: scale(0) rotate(-120deg);
  }
  to {
    transform: none;
  }
}
.bonus-kicker {
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #b07800;
  font-size: 13px;
  font-weight: 700;
}
.bonus-card h2 {
  margin: 2px 0 8px;
  font-size: 42px;
  line-height: 1.05;
}
.bonus-line {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.5;
}
.bonus-line b.gold {
  background: var(--yellow);
  border: 2px solid var(--ink);
  white-space: nowrap;
  border-radius: 8px;
  padding: 0 6px;
}
.bonus-inv {
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
  background: #fff4c7;
  border-radius: 16px;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 5px 14px 5px 8px;
  display: inline-flex;
}
.bonus-inv b {
  font-size: 24px;
  line-height: 1;
}
.bonus-inv span {
  font-size: 14px;
  font-weight: 600;
}
.bonus-sub {
  color: var(--muted);
  max-width: 340px;
  margin: 0 auto 14px;
  font-size: 14px;
}
@media (width<=1100px) {
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav {
    display: none;
  }
}
@media (pointer: coarse) {
  .only-desktop {
    display: none;
  }
  .only-touch {
    display: flex;
  }
  .hero[data-state="playing"] .touch,
  .hero[data-state="paused"] .touch {
    display: block;
  }
  .touch {
    pointer-events: none;
    position: absolute;
    inset: 0;
  }
  .touch .tbtn {
    pointer-events: auto;
  }
  .inventory .slot .key {
    display: none;
  }
}
@media (width<=820px), (height<=520px) {
  body {
    font-size: 16px;
  }
  .topbar {
    gap: 8px;
    padding: 10px 12px;
  }
  .topbar .logo-word {
    font-size: 20px;
  }
  .topbar .logo-orb {
    width: 26px;
    height: 26px;
  }
  .ca-pill {
    display: none;
  }
  .hud-tl {
    gap: 6px;
    width: min(230px, 56vw);
    top: 10px;
    left: 10px;
  }
  .card-panel {
    box-shadow: 3px 3px 0 var(--ink);
    border-radius: 14px;
    gap: 8px;
    padding: 6px;
  }
  .cp-img {
    border-radius: 6px;
    width: 40px;
    height: 58px;
  }
  .cp-name {
    font-size: 13px;
  }
  .cp-kicker {
    font-size: 10px;
  }
  .cp-meta {
    display: none;
  }
  .cp-throws {
    font-size: 12px;
  }
  .status-panel {
    box-shadow: 3px 3px 0 var(--ink);
    border-radius: 14px;
    padding: 5px 10px;
    font-size: 12px;
  }
  .sp-row b {
    font-size: 14px;
  }
  .sp-bar,
  .sp-sub {
    display: none;
  }
  .sp-cap {
    font-size: 10.5px;
  }
  .hud-tr {
    gap: 6px;
    top: 10px;
    right: 10px;
  }
  .minimap-wrap {
    width: 112px;
    height: 112px;
    box-shadow: 3px 3px 0 var(--ink);
  }
  .online {
    padding: 0 8px;
    font-size: 11px;
  }
  .collection-chip {
    padding: 1px 8px;
    font-size: 11px;
  }
  .sound-chip {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
  .events {
    gap: 4px;
    width: min(250px, 60vw);
    top: 158px;
    bottom: auto;
    left: 10px;
  }
  .events li {
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
  }
  .events li:nth-child(n + 4) {
    display: none;
  }
  .inventory {
    bottom: calc(12px + var(--safe-b));
    gap: 6px;
    left: 12px;
    transform: none;
  }
  .slot {
    box-shadow: 2px 2px 0 var(--ink);
    border-radius: 12px;
    gap: 5px;
    padding: 3px 9px 3px 5px;
  }
  .slot.on {
    box-shadow: 2px 4px 0 var(--ink);
    transform: translateY(-2px);
  }
  .slot .ball-ico {
    width: 22px;
    height: 22px;
  }
  .slot .ball-ico:after {
    width: 10px;
    height: 10px;
  }
  .slot-txt b {
    font-size: 15px;
  }
  .slot-txt small {
    display: none;
  }
  .toast {
    font-size: 13px;
    bottom: 140px;
  }
  .hint {
    font-size: 12px;
    top: calc(50% + 40px);
    bottom: auto;
  }
  .banner {
    padding: 7px 14px;
    font-size: 14px;
    top: auto;
    bottom: 200px;
    transform: translate(-50%, 260%);
  }
  .banner.show {
    transform: translate(-50%);
  }
  .label3d {
    font-size: 13px;
  }
  .start-card {
    border-radius: 22px;
    padding: 18px 16px 16px;
  }
  .big-logo {
    font-size: 46px;
  }
  .big-logo .logo-orb {
    width: 44px;
    height: 44px;
  }
  .big-logo .logo-orb:before {
    width: 25px;
    height: 25px;
  }
  .big-logo .logo-orb:after {
    width: 16px;
    height: 16px;
  }
  .tagline {
    font-size: 17px;
  }
  .name-field input {
    width: 100%;
  }
  .name-field {
    flex: 1;
    min-width: 160px;
  }
  .btn-play {
    padding: 9px 34px;
    font-size: 21px;
  }
  .section {
    padding: 54px 16px 16px;
  }
  .section-title {
    font-size: 34px;
  }
  .how-grid,
  .pot-rules {
    grid-template-columns: 1fr;
  }
  .victory-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .victory h2 {
    text-align: center;
    font-size: 36px;
  }
  .victory .v-sub {
    text-align: center;
  }
  .flip {
    max-width: 210px;
    margin: 0 auto;
  }
  .vrow {
    grid-template-columns: 44px 1fr;
  }
  .vrow img {
    width: 44px;
    height: 62px;
  }
  .vrow .vbtn {
    grid-column: 1/-1;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (height<=520px) {
  .overlay {
    padding-top: 60px;
  }
  .tbtn-pink {
    width: 70px;
    height: 70px;
    bottom: calc(14px + var(--safe-b));
  }
  .tbtn-gold {
    width: 60px;
    height: 60px;
    right: 98px;
    bottom: calc(20px + var(--safe-b));
  }
  .tbtn-jump {
    width: 50px;
    height: 50px;
    bottom: calc(96px + var(--safe-b));
    right: 22px;
  }
  .hud-tl {
    width: 220px;
  }
  .events {
    top: 128px;
  }
  .events li:nth-child(n + 3) {
    display: none;
  }
  .tagline {
    margin: 6px auto 8px;
  }
  .controls-help,
  .no-wallet {
    display: none;
  }
}
@media (width<=820px), (height<=520px) {
  body.wl .hud-tl {
    width: min(330px, 100vw - 20px);
  }
  body.wl .events {
    display: none;
  }
  .wl-ticket {
    box-shadow: 3px 3px 0 var(--ink);
    border-radius: 16px;
    grid-template-columns: auto 1fr;
    grid-template-areas: "head head" "main tier" "ladder ladder" "foot foot";
    column-gap: 12px;
    padding: 7px 12px 8px;
    display: grid;
  }
  .wt-head {
    grid-area: head;
    font-size: 10px;
  }
  .wt-main {
    grid-area: main;
  }
  .wt-you {
    margin-top: 2px;
    font-size: 13px;
  }
  .wt-pos {
    font-size: 14px;
  }
  .wt-pos b {
    text-shadow: 2px 2px 0 var(--tc, var(--yellow));
    font-size: 40px;
  }
  .wt-total {
    margin-top: 0;
    font-size: 12.5px;
  }
  .wt-tier {
    text-align: right;
    flex-direction: column;
    grid-area: tier;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    margin: 0;
  }
  .tier-badge {
    padding: 0 9px 0 6px;
    font-size: 13px;
  }
  .wt-bonus {
    font-size: 12px;
    line-height: 1.2;
  }
  .wt-bonus b {
    font-size: 15px;
    display: block;
  }
  .wt-ladder {
    grid-area: ladder;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin: 7px -12px 0;
    padding: 7px 10px 2px;
  }
  .wt-ladder li {
    border-color: #2a21402e;
    border-radius: 9px;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 2px 1px 1px;
    font-size: 11px;
    line-height: 1.15;
    display: flex;
  }
  .wt-ladder li i {
    font-size: 13px;
  }
  .wt-ladder li .n {
    font-size: 10.5px;
  }
  .wt-ladder li .r,
  .wt-ladder li em {
    display: none;
  }
  .wt-ladder li b {
    font-size: 12px;
  }
  .wt-foot {
    grid-area: foot;
    margin: 5px -12px 0;
    padding: 5px 12px 0;
  }
  .wt-launch {
    font-size: 12.5px;
  }
  .wt-saved {
    margin-top: 1px;
    font-size: 10.5px;
  }
  .start-tiers {
    gap: 5px;
    margin-bottom: 12px;
  }
  .tier-chip {
    border-width: 2px;
    border-radius: 12px;
    padding: 5px 2px 4px;
  }
  .tier-chip > i {
    font-size: 16px;
  }
  .tier-chip b {
    font-size: 12px;
  }
  .tier-chip small {
    font-size: 9.5px;
  }
  .tier-chip span {
    font-size: 12.5px;
  }
  .tier-chip em {
    font-size: 9px;
    top: -10px;
  }
  body.wl .btn-play {
    padding: 7px 22px 8px;
    font-size: 19px;
  }
  .play-wl small {
    font-size: 12px;
  }
  body.wl .tagline {
    font-size: 15.5px;
  }
  body.wl .live-line {
    padding: 2px 10px;
    font-size: 12.5px;
  }
  .early-facts {
    gap: 8px;
  }
  .early-fact {
    border-radius: 14px;
    padding: 10px;
  }
  .early-fact b {
    font-size: 26px;
  }
  .early-fact span {
    font-size: 12px;
    line-height: 1.25;
    display: block;
  }
  .tier-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .tier-card {
    padding: 14px 12px 12px;
  }
  .tier-ico {
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 21px;
  }
  .tier-card h3 {
    margin-top: 8px;
    font-size: 19px;
  }
  .tier-range {
    font-size: 14px;
  }
  .tier-balls {
    gap: 5px;
    font-size: 14px;
  }
  .tier-balls b {
    font-size: 21px;
  }
  .tier-state {
    padding: 0 8px;
    font-size: 11.5px;
  }
  .bonus-card {
    border-radius: 22px;
    padding: 10px 16px 18px;
  }
  .bonus-burst {
    height: 140px;
  }
  .bonus-card h2 {
    font-size: 32px;
  }
  .bonus-line {
    font-size: 16px;
  }
}
@media (width<=820px) and (orientation: portrait) {
  body.wl .hud-tr {
    display: none;
  }
  body.wl .hud-tl {
    width: calc(100vw - 20px);
    max-width: 420px;
  }
}
@media (height<=520px) {
  body.wl .hud-tl {
    width: min(470px, 58vw);
  }
  .wl-ticket {
    grid-template-areas: "head head" "main ladder" "tier ladder" "foot foot";
    column-gap: 12px;
  }
  .wt-you {
    display: none;
  }
  .wt-pos b {
    font-size: 34px;
  }
  .wt-tier {
    text-align: left;
    flex-flow: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 2px 6px;
    margin-top: 4px;
  }
  .wt-bonus b {
    font-size: 13px;
    display: inline;
  }
  .wt-ladder {
    border-top: 0;
    border-left: 2.5px dashed #2a21404d;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 2px;
    margin: 0;
    padding: 0 0 0 10px;
  }
  .wt-ladder li {
    border-color: #0000;
    grid-template-columns: 16px 1fr auto;
    column-gap: 5px;
    padding: 1px 7px;
    font-size: 11.5px;
    display: grid;
  }
  .wt-ladder li i {
    font-size: 11px;
  }
  .wt-ladder li .n {
    text-align: left;
    font-size: 11.5px;
  }
  .wt-ladder li.on {
    border-color: var(--ink);
  }
  .wt-foot {
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    display: flex;
  }
  .bonus-burst {
    height: 70px;
  }
  .bonus-burst .ball-ico:not(.big) {
    display: none;
  }
  .bonus-burst .ball-ico.big {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
  }
  .bonus-sub {
    display: none;
  }
  .bonus-card h2 {
    font-size: 28px;
  }
}
.wl-joined,
.wj-start {
  display: none;
}
.wl-joined.show,
.wj-start.show {
  display: block;
}
.wj-title {
  letter-spacing: 0.2px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.05;
  display: flex;
}
.wj-check {
  width: 44px;
  height: 44px;
  color: var(--green);
  border: var(--line);
  box-shadow: 2px 2px 0 var(--ink);
  background: #fff;
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-size: 27px;
  font-weight: 800;
  display: grid;
}
.wj-sub {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}
.wj-sub b {
  color: var(--yellow);
  text-shadow: 1.5px 1.5px 0 var(--ink);
  white-space: nowrap;
  font-weight: 700;
}
.wl-joined {
  z-index: 5;
  pointer-events: none;
  text-align: center;
  color: #fff;
  border: var(--line);
  width: 560px;
  box-shadow:
    var(--shadow),
    0 0 34px 4px #4cc38a73;
  text-shadow: 2px 2px #2a21408c;
  background: linear-gradient(135deg, #5fd69b, #2fa36d);
  border-radius: 22px;
  padding: 12px 22px 14px;
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translate(-50%);
}
.wl-joined.show {
  animation: 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both wj-in;
}
.wl-joined.show .wj-check {
  animation: 0.5s cubic-bezier(0.2, 1.8, 0.4, 1) 0.45s both wj-pop;
}
@keyframes wj-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -160%);
  }
  to {
    opacity: 1;
    transform: translate(-50%);
  }
}
@keyframes wj-pop {
  0% {
    transform: scale(0) rotate(-40deg);
  }
  to {
    transform: scale(1) rotate(0);
  }
}
.wl-joined .wj-check {
  text-shadow: none;
}
body.wl.playing .banner {
  top: calc(var(--wj-h, 0px) + 28px);
}
@media (width<=820px), (height<=520px) {
  body.wl.playing .banner {
    top: auto;
  }
}
.wj-start {
  border: var(--line);
  color: #fff;
  max-width: 470px;
  box-shadow: 3px 3px 0 var(--ink);
  text-shadow: 2px 2px #2a214080;
  background: linear-gradient(135deg, #5fd69b, #2fa36d);
  border-radius: 18px;
  margin: 12px auto 10px;
  padding: 10px 16px 12px;
}
.wj-start .wj-title {
  font-size: 30px;
}
.wj-start .wj-check {
  width: 36px;
  height: 36px;
  text-shadow: none;
  font-size: 22px;
}
.wj-start .wj-sub {
  font-size: 16px;
}
.tagline.joined {
  display: none !important;
}
@media (width<=1179px) {
  .wl-joined {
    width: auto;
    left: 340px;
    right: 16px;
    transform: none;
  }
  @keyframes wj-in {
    0% {
      opacity: 0;
      transform: translateY(-160%);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  .wj-title {
    font-size: 30px;
  }
  .wj-check {
    width: 38px;
    height: 38px;
    font-size: 23px;
  }
  .wj-sub {
    font-size: 15px;
  }
  body.wl .hud-tr {
    display: none;
  }
}
@media (width<=820px) and (orientation: portrait) {
  .wl-joined {
    box-shadow:
      3px 3px 0 var(--ink),
      0 0 22px 2px #4cc38a66;
    border-radius: 16px;
    padding: 7px 12px 9px;
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .wj-title {
    gap: 8px;
    font-size: 23px;
  }
  .wj-check {
    border-width: 2.5px;
    width: 28px;
    height: 28px;
    font-size: 17px;
  }
  .wj-sub {
    margin-top: 3px;
    font-size: 12.5px;
  }
  body.wl .hud-tl {
    top: calc(var(--wj-h, 0px) + 18px);
  }
  .wj-start {
    margin: 8px auto;
    padding: 7px 10px 9px;
  }
  .wj-start .wj-title {
    font-size: 23px;
  }
  .wj-start .wj-check {
    width: 28px;
    height: 28px;
    font-size: 17px;
  }
  .wj-start .wj-sub {
    font-size: 13.5px;
  }
}
@media (height<=520px) {
  .wl-joined {
    border-radius: 14px;
    padding: 6px 10px 8px;
    top: 10px;
    left: calc(min(470px, 58vw) + 20px);
    right: 10px;
  }
  .wj-title {
    gap: 7px;
    font-size: 19px;
  }
  .wj-check {
    border-width: 2.5px;
    width: 24px;
    height: 24px;
    font-size: 15px;
  }
  .wj-sub {
    margin-top: 2px;
    font-size: 11.5px;
  }
  .wj-start {
    margin: 4px auto 6px;
    padding: 5px 10px 6px;
  }
  .wj-start .wj-title {
    font-size: 19px;
  }
  .wj-start .wj-check {
    width: 24px;
    height: 24px;
    font-size: 15px;
  }
  .wj-start .wj-sub {
    font-size: 12px;
  }
}
.chat {
  border: 3px solid #0000;
  border-radius: 18px;
  flex-direction: column;
  gap: 5px;
  width: 344px;
  margin: -11px;
  padding: 8px;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  display: flex;
  position: absolute;
  bottom: 16px;
  left: 16px;
}
.chat.open {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  background: #fff8eee6;
}
.chat-log {
  scrollbar-width: thin;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}
.chat .chat-log {
  max-height: clamp(64px, 100svh - 520px, 216px);
  overflow: hidden;
}
.chat:not(.open) .chat-log.over {
  -webkit-mask-image: linear-gradient(#0000, #000 30px);
  mask-image: linear-gradient(#0000, #000 30px);
}
.chat.open .chat-log {
  max-height: clamp(120px, 100svh - 540px, 300px);
  padding-right: 2px;
  overflow-y: auto;
}
body:not(.wl) .chat .chat-log {
  max-height: clamp(64px, 100svh - 330px, 216px);
}
body:not(.wl) .chat.open .chat-log {
  max-height: clamp(120px, 100svh - 360px, 300px);
}
.chat.open .chat-log:empty:before {
  content: "No messages yet. Say hi!";
  color: var(--muted);
  padding: 4px 6px;
  font-size: 13px;
  font-weight: 500;
}
.cm {
  border: 2px solid var(--ink);
  overflow-wrap: anywhere;
  pointer-events: auto;
  background: #ffffffeb;
  border-radius: 12px;
  flex: none;
  align-self: flex-start;
  max-width: 100%;
  padding: 2px 9px 3px;
  font-size: 14px;
  line-height: 1.3;
  transition: opacity 0.3s;
  animation: 0.25s ease-out slidein;
}
.cm.old {
  transition: opacity 1.6s;
}
.chat:not(.open) .cm.old {
  opacity: 0;
  pointer-events: none;
}
.cm-dot {
  border: 2px solid var(--ink);
  vertical-align: 0;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  display: inline-block;
}
.cm-tier {
  border: 1.5px solid var(--ink);
  background: var(--tc, #fff);
  color: var(--tt, var(--ink));
  vertical-align: 1px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  margin-right: 5px;
  padding: 0 6px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 15px;
  display: inline-block;
}
.cm-name {
  margin-right: 5px;
  font-weight: 700;
}
.cm-name:after {
  content: ":";
}
.cm.mine {
  box-shadow: inset 4px 0 0 var(--pink);
  background: #ffe6f5;
  padding-left: 11px;
}
.cm.sys {
  color: #4a4060;
  border-color: #2a214066;
  font-size: 13px;
}
.cm.sys.gold {
  background: #fff4c7;
}
.cm.sys.me {
  background: #ffe6f5;
}
.cm.sys.legend {
  background: #efe2ff;
}
.chat-meta {
  min-height: 16px;
  color: var(--muted);
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
}
.chat:not(.open):not(.has-err) .chat-meta,
.chat:not(.open) .chat-keys {
  display: none;
}
.chat-err {
  color: #d63a5a;
  flex: 1;
  min-width: 0;
  display: none;
}
.has-err .chat-err {
  animation: 0.2s ease-out slidein;
  display: block;
}
.chat:not(.open) .chat-err {
  background: #fff;
  border: 2px solid #d63a5a;
  border-radius: 999px;
  flex: none;
  padding: 0 9px;
}
.chat-count {
  font-variant-numeric: tabular-nums;
}
.chat-count:empty {
  display: none;
}
.chat-count.low {
  color: #d63a5a;
}
.chat-keys {
  white-space: nowrap;
  margin-left: auto;
}
.chat-keys kbd {
  border-width: 1.5px 1.5px 2.5px;
  padding: 0 4px;
  font-size: 10.5px;
}
.chat-form {
  gap: 8px;
  margin: 0;
  display: flex;
}
.chat-input {
  border: 2.5px solid var(--ink);
  min-width: 0;
  font: inherit;
  color: var(--ink);
  pointer-events: auto;
  -webkit-user-select: text;
  user-select: text;
  background: #fff;
  border-radius: 999px;
  outline: none;
  flex: 1;
  padding: 5px 14px;
  font-size: 14px;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.chat-input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.chat:not(.open) .chat-input {
  cursor: pointer;
  background: #ffffffb8;
  flex: 0 auto;
  width: 176px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 600;
}
.chat:not(.open) .chat-input::placeholder {
  color: #2a2140bf;
}
.chat.open .chat-input {
  box-shadow: 0 0 0 3px #ff5ea873;
}
@media (width<=820px), (height<=520px) {
  .chat {
    left: 10px;
    bottom: calc(58px + var(--safe-b));
    width: min(300px, 62vw);
  }
  .cm {
    padding: 1px 8px 2px;
    font-size: 12.5px;
  }
  .chat .chat-log,
  body:not(.wl) .chat .chat-log {
    max-height: clamp(48px, 100svh - 350px, 160px);
  }
  .chat.open .chat-log,
  body:not(.wl) .chat.open .chat-log {
    max-height: clamp(80px, 100svh - 380px, 220px);
  }
}
.bubble {
  pointer-events: none;
  will-change: transform;
  margin-top: -31px;
  position: absolute;
  top: 0;
  left: 0;
}
.bubble span {
  -webkit-line-clamp: 4;
  border: 2.5px solid var(--ink);
  width: max-content;
  max-width: 220px;
  box-shadow: 2px 2px 0 var(--ink);
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transform-origin: 50% 100%;
  background: #fff;
  border-radius: 14px;
  -webkit-box-orient: vertical;
  padding: 4px 11px 5px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  animation: 0.3s cubic-bezier(0.2, 1.5, 0.4, 1) bubblepop;
  display: -webkit-box;
  overflow: hidden;
}
.bubble:before,
.bubble:after {
  content: "";
  border-style: solid;
  border-color: #0000;
  position: absolute;
  left: 50%;
  transform: translate(-50%);
}
.bubble:before {
  border-width: 9px 8px 0;
  border-top-color: var(--ink);
  bottom: -9px;
}
.bubble:after {
  border-width: 6px 5px 0;
  border-top-color: #fff;
  bottom: -5px;
}
@keyframes bubblepop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
body.wl .hero[data-state="attract"] .bubble {
  display: none !important;
}
.tbtn-chat,
.chat-peek {
  display: none;
}
@media (pointer: coarse) {
  .tbtn-chat {
    background: #fff;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    display: grid;
    top: calc(50% - 74px);
    right: 12px;
  }
  .chat-badge {
    border: 2px solid var(--ink);
    background: var(--pink);
    color: #fff;
    text-align: center;
    border-radius: 999px;
    min-width: 21px;
    padding: 0 5px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 17px;
    animation: 0.45s bump;
    position: absolute;
    top: -8px;
    right: -8px;
  }
  .chat-peek {
    left: 10px;
    bottom: calc(60px + var(--safe-b));
    pointer-events: none;
    flex-direction: column;
    gap: 3px;
    width: min(260px, 62vw);
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    position: absolute;
  }
  .chat-peek li {
    border: 2px solid var(--ink);
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    background: #fffc;
    border-radius: 10px;
    -webkit-box-orient: vertical;
    align-self: flex-start;
    max-width: 100%;
    padding: 1px 8px 2px;
    font-size: 12px;
    line-height: 1.25;
    transition: opacity 0.4s;
    animation: 0.25s ease-out slidein;
    display: -webkit-box;
    overflow: hidden;
  }
  .chat-peek li.out {
    opacity: 0;
  }
  body:not(.wl) .chat-peek {
    width: min(260px, 100vw - 196px);
  }
  .chat-peek .cm-dot {
    width: 8px;
    height: 8px;
    margin-right: 4px;
  }
  .chat-peek b {
    margin-right: 4px;
  }
  .chat-peek b:after {
    content: ":";
  }
  body.chat-open .chat-peek {
    display: none;
  }
}
@media (pointer: coarse) and (height<=520px) {
  .tbtn-chat {
    top: calc(50% - 6px);
    right: 62px;
  }
  body:not(.wl) .chat-peek {
    width: min(260px, 40vw);
  }
}
.chat-sheet {
  z-index: 11;
  position: fixed;
  inset: 0;
}
.cs-backdrop {
  background: #2a21404d;
  position: absolute;
  inset: 0;
}
.cs-panel {
  left: 0;
  right: 0;
  bottom: var(--kb, 0px);
  max-width: 560px;
  height: clamp(
    min(170px, calc(var(--vvh, 100svh) - 10px)),
    calc(var(--vvh, 100svh) * 0.6),
    440px
  );
  background: var(--bg);
  border: var(--line);
  padding: 8px 10px calc(10px + var(--safe-b));
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  flex-direction: column;
  margin: 0 auto;
  animation: 0.22s ease-out sheetup;
  display: flex;
  position: absolute;
  box-shadow: 0 -3px #2a21402e;
}
.chat-sheet.kb .cs-panel {
  padding-bottom: 8px;
}
@keyframes sheetup {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cs-head {
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 0 2px 6px;
  display: flex;
}
.cs-title {
  font-size: 18px;
  font-weight: 700;
}
.cs-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.cs-close {
  border: var(--line);
  cursor: pointer;
  background: #fff;
  border-radius: 50%;
  flex: none;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}
.chat-sheet .chat-log {
  overscroll-behavior: contain;
  touch-action: pan-y;
  flex: auto;
  min-height: 0;
  padding: 2px;
  overflow-y: auto;
}
.chat-sheet .chat-log:empty:before {
  content: "No messages yet. Say hi!";
  color: var(--muted);
  margin: auto;
  font-size: 14px;
  font-weight: 500;
}
.chat-sheet .chat-meta {
  min-height: 0;
  padding: 3px 4px 0;
}
.chat-sheet .chat-form {
  flex: none;
  margin-top: 5px;
}
.chat-sheet .chat-input {
  padding: 8px 14px;
  font-size: 16px;
}
.cs-send {
  border: var(--line);
  background: var(--pink);
  color: #fff;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  border-radius: 999px;
  flex: none;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 700;
}
.cs-send:active {
  box-shadow: none;
  transform: translate(2px, 2px);
}
.chat-sheet.kb .cs-sub {
  display: none;
}
@media (height<=520px) {
  .cs-sub {
    display: none;
  }
  .cs-head {
    padding-bottom: 4px;
  }
  .cs-title {
    font-size: 16px;
  }
  .cs-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}
b.dev,
.cm-name.dev {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  text-shadow: none;
  background: linear-gradient(#fff3b0, #ffd23f 50%, #ff9a2e);
  border-radius: 6px;
  padding: 0 6px;
  display: inline-block;
  box-shadow: 0 0 8px #ffd23fcc;
}
.cm-name.dev:after {
  content: "";
}
.cm-name.dev {
  margin-right: 7px;
}
.nametag.dev {
  border-color: var(--ink);
  background: linear-gradient(#fff3b0, #ffd23f 50%, #ff9a2e);
  box-shadow: 0 0 12px #ffd23fe6;
}
.nametag.dev b {
  box-shadow: none;
  background: 0 0;
  border: 0;
  padding: 0;
}
