:root {
  color-scheme: dark;
  --bg: #101a29;
  --panel: #192638;
  --line: #ffffff18;
  --muted: #9caabd;
  --yellow: #f4d043;
  --red: #ed3b42;
  --blue: #2687de;
  --green: #47b660;
  font-family: Arial, Helvetica, sans-serif;
  color: #f7f8fc;
  background: #080e17;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #f4d043;
  outline-offset: 4px;
}
button:active {
  transform: scale(0.98);
}
.hidden {
  display: none !important;
}
.arcade {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cabinet {
  width: 420px;
  min-height: 780px;
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff1a;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 70% 24%, #1d3450 0, transparent 55%), var(--bg);
  box-shadow: 0 28px 100px #0008;
}
.cabinet:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff03 1px, transparent 1px),
    linear-gradient(90deg, #ffffff03 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.topbar {
  height: 83px;
  padding: 23px 25px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.topbar a {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.brand-logo {
  height: 28px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
}
.brand-dot {
  display: none;
}
.event {
  font-size: 8px;
  letter-spacing: 1.4px;
  line-height: 1.7;
  margin-left: auto;
  color: #afbdce;
}
.event b {
  font-size: 12px;
  color: #fff;
}
.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff08;
  font-size: 19px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.screen {
  position: relative;
  min-height: 690px;
}
.home-heading {
  padding: 12px 28px 0;
}
.pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.7px;
  border: 1px solid #ffffff22;
  border-radius: 30px;
  padding: 9px 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px #47b66088;
}
h1 {
  font-size: 70px;
  letter-spacing: -4px;
  line-height: 0.92;
  margin: 22px 0 14px;
  font-weight: 900;
}
h1 em {
  font-style: normal;
  color: var(--yellow);
}
.spark {
  font-size: 31px;
  vertical-align: top;
  display: inline-block;
  transform: translate(9px, 4px);
}
p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
h2 {
  font-size: 32px;
  letter-spacing: -1.3px;
  margin: 12px 0;
}
.home-heading p {
  margin: 0;
}
.home-heading h1 {
  white-space: nowrap;
  font-size: clamp(46px, 12.5vw, 56px);
}
.hero-art {
  height: 285px;
  position: relative;
  margin: 0 18px;
}
.hero-bag {
  height: 196px;
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) rotate(-7deg);
  filter: drop-shadow(0 14px 14px #0009);
  z-index: 2;
}
.hero-product {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 8px 5px #0008);
  animation: float 4s ease-in-out infinite;
}
.hp1 {
  width: 91px;
  height: 90px;
  left: 5px;
  top: 30px;
  transform: rotate(-17deg);
}
.hp2 {
  width: 100px;
  height: 80px;
  right: 6px;
  top: 32px;
  transform: rotate(24deg);
  animation-delay: -1.5s;
}
.hp3 {
  width: 65px;
  height: 84px;
  left: 46%;
  top: 0;
  transform: rotate(18deg);
  animation-delay: -2.4s;
}
.point {
  position: absolute;
  font-size: 13px;
  font-weight: 800;
  color: var(--yellow);
  background: #26383b;
  border: 1px solid #75814370;
  border-radius: 20px;
  padding: 5px 9px;
  z-index: 3;
}
.p1 {
  left: 70px;
  top: 97px;
  transform: rotate(-12deg);
}
.p2 {
  right: 13px;
  top: 105px;
  transform: rotate(10deg);
}
.orbit {
  position: absolute;
  border: 1px solid #7094bc22;
  border-radius: 50%;
  width: 290px;
  height: 200px;
  left: 40px;
  top: 43px;
  transform: rotate(-24deg);
}
.orbit.two {
  width: 335px;
  height: 260px;
  left: 10px;
  top: 12px;
  transform: rotate(22deg);
}
.star {
  position: absolute;
  color: var(--yellow);
}
.s1 {
  left: 48px;
  bottom: 70px;
  font-size: 32px;
}
.s2 {
  right: 49px;
  bottom: 52px;
  font-size: 20px;
  color: #519bdc;
}
.drag-hint {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: #a9b6c7;
  font-size: 9px;
  letter-spacing: 2px;
}
.home-actions {
  padding: 21px 25px 0;
}
.primary {
  background: var(--yellow);
  color: #14202c;
  width: 100%;
  padding: 18px 20px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 5px 0 #b69b2d;
}
.primary span {
  font-size: 20px;
  line-height: 14px;
}
.split {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.split > * {
  flex: 1;
}
.secondary {
  background: #ffffff06;
  border: 1px solid #ffffff1c;
  padding: 14px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.best-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 1.2px;
  margin-top: 23px;
  color: var(--muted);
}
.best-line b {
  font-size: 14px;
  color: var(--yellow);
}
.best-line span {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0;
}
.home-top-scores {
  margin: 14px 25px 0;
  padding: 10px 12px 8px;
  border: 1px solid #ffffff12;
  border-radius: 10px;
  background: #ffffff04;
}
.home-top-scores-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.1px;
}
.home-top-scores-link {
  padding: 0;
  background: none;
  color: var(--yellow);
  font-size: 8px;
  font-weight: 700;
}
.home-top-scores-list {
  list-style: none;
  padding: 0;
  margin: 5px 0 0;
}
.home-top-scores-list li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  border-top: 1px solid #ffffff08;
  color: #dce5f0;
  font-size: 10px;
}
.home-top-scores-list li > span {
  color: var(--yellow);
  font-weight: 900;
}
.home-top-scores-list li b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}
.home-top-scores-list li strong {
  color: var(--yellow);
  font-size: 10px;
}
.demo-footer {
  text-align: center;
  font-size: 7px;
  letter-spacing: 1.3px;
  margin: 17px 0 20px;
  color: #76879c;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--yellow);
}
.padded {
  padding: 24px 26px;
}
.padded > .primary {
  margin-top: 22px;
}
.text-button {
  width: 100%;
  background: none;
  padding: 19px;
  font-size: 12px;
  color: var(--muted);
}
.instructions {
  list-style: none;
  padding: 12px 0;
  margin: 0;
}
.instructions li {
  display: flex;
  gap: 14px;
  margin: 22px 0;
}
.instructions li > span {
  background: #253447;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--yellow);
  font-size: 22px;
  flex-shrink: 0;
}
.instructions b {
  font-size: 13px;
}
.instructions p {
  font-size: 12px;
  margin: 5px 0 0;
}
.bonus-guide {
  font-size: 11px;
  line-height: 2;
  color: #bcc9d8;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 22px 12px;
  height: 85px;
}
.hud small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-bottom: 5px;
}
.hud strong {
  font-size: 30px;
  line-height: 1;
}
.hud strong small {
  display: inline;
  font-size: 10px;
  letter-spacing: 0;
}
.timer {
  text-align: center;
}
.lives-box {
  display: flex;
  align-items: center;
  gap: 9px;
}
.lives-box > span {
  font-size: 17px;
  color: #f36776;
  letter-spacing: 2px;
}
.time-track {
  height: 3px;
  background: #ffffff0c;
  margin: 0 22px;
}
.time-track > div {
  height: 100%;
  width: 100%;
  background: var(--yellow);
}
.arena {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
}
.play {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 83px);
  min-height: 540px;
  max-height: 740px;
}
.arena canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  user-select: none;
}
.stage {
  position: absolute;
  top: 20px;
  left: 22px;
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #6e8ba7;
  pointer-events: none;
}
.effects {
  position: absolute;
  right: 18px;
  top: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}
.effects span {
  border-radius: 20px;
  background: #223a4b;
  padding: 6px 10px;
  font-size: 9px;
  color: var(--yellow);
}
.play-footer {
  text-align: center;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #788ca4;
  padding: 13px 0 18px;
}
.urgent strong {
  color: #ff7886;
}
.overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #07101ccc;
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 25px;
}
.modal {
  padding: 28px 22px;
  background: #192638;
  border: 1px solid #ffffff24;
  border-radius: 20px;
  width: 100%;
  text-align: center;
}
.modal h2 {
  font-size: 26px;
}
.modal .primary {
  margin-top: 28px;
}
.modal .secondary {
  width: 100%;
  margin-top: 17px;
}
.announcement {
  position: absolute;
  top: 33%;
  width: 100%;
  text-align: center;
  color: var(--yellow);
  font-size: 30px;
  font-weight: 900;
  text-shadow: 0 4px 15px #000;
  pointer-events: none;
}
.result-symbol {
  font-size: 42px;
  color: var(--yellow);
  margin: 0 0 14px;
}
.score-card {
  text-align: center;
  background: linear-gradient(135deg, #26384b, #172536);
  border: 1px solid #ffffff18;
  border-radius: 18px;
  padding: 22px;
  margin-top: 24px;
}
.score-card > small {
  letter-spacing: 2px;
  font-size: 9px;
  color: var(--muted);
}
.score-card > strong {
  display: block;
  font-size: 72px;
  letter-spacing: -4px;
  color: var(--yellow);
  line-height: 1.2;
}
.score-card > span {
  font-size: 10px;
  color: #93d9ad;
}
.score-card > div {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 15px;
  font-size: 10px;
  color: var(--muted);
}
.score-card b {
  display: block;
  font-size: 16px;
  color: white;
  margin-top: 5px;
}
.reward-preview {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}
.reward-preview > span {
  color: var(--yellow);
  font-size: 32px;
}
.reward-preview small {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.reward-preview b {
  font-size: 14px;
}
label {
  font-size: 10px;
  color: var(--muted);
}
.name-entry {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
input {
  min-width: 0;
  flex: 1;
  background: #080f19;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  color: white;
  font: inherit;
  font-size: 12px;
}
#save-status {
  font-size: 10px;
  color: #9dd5ac;
  display: block;
  min-height: 14px;
  margin-top: 6px;
}
.leader-row,
.prize-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.leader-row > span {
  color: var(--yellow);
  font-size: 20px;
  width: 27px;
}
.leader-row div {
  flex: 1;
}
.leader-row b {
  font-size: 13px;
}
.leader-row small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.leader-row > strong {
  font-size: 20px;
}
.prize-row span {
  width: 64px;
  color: var(--yellow);
  font-size: 15px;
}
.prize-row b {
  font-size: 13px;
}
.notice {
  background: #ffffff06;
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  padding: 18px;
  margin: 25px 0;
}
#leaderboard-list {
  max-height: 420px;
  overflow: auto;
}
.center {
  text-align: center;
  padding: 150px 20px;
}
.center h1 {
  font-size: 45px;
}
progress {
  accent-color: var(--yellow);
  width: 80%;
  height: 6px;
}
.asset-warning {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #805b19;
  color: white;
  font-size: 10px;
  padding: 7px;
  z-index: 9;
}
.desktop-note {
  max-width: 270px;
}
.desktop-note h2 {
  font-size: 39px;
  line-height: 1.16;
  margin: 25px 0;
}
.desktop-note p {
  max-width: 210px;
}
.color-line {
  display: flex;
  gap: 6px;
  margin: 32px 0 24px;
}
.color-line i {
  width: 35px;
  height: 4px;
  background: var(--blue);
}
.color-line i:nth-child(2) {
  background: var(--red);
}
.color-line i:nth-child(3) {
  background: var(--green);
}
.color-line i:nth-child(4) {
  background: var(--yellow);
}
.desktop-note small,
.desktop-meta > span {
  font-size: 8px;
  letter-spacing: 2px;
  color: #748399;
}
.desktop-meta {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100px;
}
.vertical-rule {
  height: 200px;
  width: 1px;
  background: linear-gradient(#ffffff24, transparent);
  margin: 28px 0;
}
.desktop-meta p {
  font-size: 12px;
}
#debug {
  position: absolute;
  top: 50px;
  left: 10px;
  font-size: 10px;
  color: #83ff92;
  background: #0009;
  pointer-events: none;
}
@keyframes float {
  50% {
    translate: 0 -9px;
  }
}
@media (min-width: 801px) and (max-height: 850px) {
  .arcade {
    padding: 14px;
  }
  .cabinet {
    min-height: 740px;
  }
  .home-heading h1 {
    font-size: 60px;
  }
  .hero-art {
    height: 240px;
  }
  .screen {
    min-height: 620px;
  }
  .play {
    height: 650px;
  }
}
@media (max-width: 800px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .arcade {
    padding: 0;
    display: block;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
  .desktop-note,
  .desktop-meta {
    display: none;
  }
  .cabinet {
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    margin: auto;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .screen {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: calc(
      100dvh - 83px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
    );
  }
  .play {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: calc(
      100dvh - 83px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
    );
    min-height: 350px;
    max-height: none;
  }
  .home-heading h1 {
    font-size: clamp(46px, 12.5vw, 56px);
  }
  .hero-art {
    height: clamp(220px, 32dvh, 310px);
  }
  .home-actions {
    padding-top: 18px;
  }
  .hud {
    width: 100%;
    min-width: 0;
    padding-inline: 14px;
    gap: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .hud > div:last-child {
    justify-self: end;
  }
  .arena,
  .arena canvas,
  .time-track {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-height: 720px) and (max-width: 800px) {
  .topbar {
    height: 67px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .home-heading {
    padding-top: 6px;
  }
  .home-heading h1 {
    font-size: clamp(46px, 12.5vw, 56px);
    margin-top: 17px;
  }
  .hero-art {
    height: 210px;
  }
  .hero-bag {
    height: 155px;
  }
  .home-actions {
    padding-top: 14px;
  }
  .best-line {
    margin-top: 16px;
  }
  .play {
    height: calc(
      100dvh - 67px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
    );
  }
  .hud {
    height: 75px;
  }
  .demo-footer {
    margin-bottom: 12px;
  }
  .screen {
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.hero-art {
  pointer-events: none;
}
@media (max-width: 800px) and (max-height: 680px) {
  .hero-art {
    height: 185px;
  }
  .hero-bag {
    height: 140px;
  }
  .home-heading h1 {
    font-size: clamp(46px, 12.5vw, 56px);
  }
}

/* Player identification card on home screen */
.player-entry-card {
  margin: 12px 24px 0 24px;
  background: #152233;
  border: 1px solid #ffffff1a;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  box-shadow: 0 4px 16px #00000030;
}
.player-name-label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: var(--yellow);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.player-name-field {
  display: flex;
  align-items: center;
}
.player-name-input {
  width: 100%;
  background: #0b1522;
  border: 1.5px solid #ffffff26;
  border-radius: 9px;
  padding: 11px 13px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.player-name-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px #f4d0432a;
  outline: none;
}
.player-name-input::placeholder {
  color: #64748b;
}
.input-error {
  margin-top: 6px;
  font-size: 11px;
  color: #ff6b7a;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: shakeError 0.3s ease;
}
@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Leaderboard enhancements */
.leaderboard-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 8px 0;
}
.leaderboard-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #38bdf8;
  background: #0284c720;
  border: 1px solid #0284c740;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.leader-row.highlight-self {
  background: #2563eb25;
  border-left: 3px solid #38bdf8;
  padding-left: 8px;
  border-radius: 6px;
}
.rank-badge {
  font-weight: bold;
}
.rank-badge.gold {
  color: #ffd700;
}
.rank-badge.silver {
  color: #e2e8f0;
}
.rank-badge.bronze {
  color: #cd7f32;
}
#result-greeting {
  font-size: 16px;
  font-weight: bold;
  color: var(--yellow);
  margin-top: -6px;
  margin-bottom: 14px;
}
.save-status {
  font-size: 11px;
  color: #6ee7b7;
  min-height: 16px;
  margin: 8px 0;
}

.leaderboard-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.btn-refresh {
  font-size: 11px;
  background: #1e293b;
  border: 1px solid #ffffff20;
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-refresh:active {
  transform: scale(0.96);
}

.leaderboard-sync-status {
  font-size: 11px;
  color: #38bdf8;
  margin-top: -6px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.leaderboard-my-rank {
  background: linear-gradient(90deg, #1e3a8a, #0369a1);
  border: 1px solid #38bdf8;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #ffffff;
  margin-bottom: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}
.leaderboard-my-rank b {
  color: #ffd700;
  font-size: 14px;
}
.leaderboard-my-rank strong {
  color: #67e8f9;
}

#leaderboard-list {
  max-height: 380px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #38bdf850 #0f172a;
}
#leaderboard-list::-webkit-scrollbar {
  width: 6px;
}
#leaderboard-list::-webkit-scrollbar-track {
  background: #0f172a;
  border-radius: 3px;
}
#leaderboard-list::-webkit-scrollbar-thumb {
  background: #38bdf860;
  border-radius: 3px;
}

/* Skin Collection Button on Home Screen */
.btn-skins-nav {
  margin-top: 8px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #38bdf860;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.15);
  transition: all 0.2s ease;
}
.btn-skins-nav:hover {
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}
.btn-skins-nav:active {
  transform: translateY(1px);
}

/* Three split buttons on results */
.split.three-split {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.split.three-split button {
  font-size: 11px;
  padding: 10px 4px;
}

/* Skins Screen */
.skins-subtitle {
  color: #94a3b8;
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 16px;
}
.skins-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

/* Skin Card */
.skin-card {
  background: #152238;
  border: 1.5px solid #ffffff15;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.skin-card.equipped {
  border-color: #f6c941;
  box-shadow: 0 6px 20px rgba(246, 201, 65, 0.2);
  background: linear-gradient(180deg, #182844 0%, #152238 100%);
}
.skin-card.unlocked:not(.equipped) {
  border-color: #38bdf850;
}
.skin-card.locked {
  opacity: 0.9;
  border-color: #ffffff10;
}

/* Preview Image Area */
.skin-card-preview {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at center, #1e3352 0%, #0d1726 80%);
  border-radius: 12px;
  overflow: hidden;
}
.skin-card-img {
  max-height: 100px;
  max-width: 100px;
  object-fit: contain;
  display: block;
}
.skin-card-img.chomper-preview {
  aspect-ratio: 1 / 1;
  max-height: 110px;
  max-width: 110px;
}

/* Locked Overlay */
.skin-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 17, 28, 0.78);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.lock-icon {
  font-size: 26px;
}
.lock-label {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #ffd700;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Card Info */
.skin-card-info h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px 0;
  letter-spacing: 0.5px;
}
.skin-card-desc {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

/* Progress Box for Locked Skin */
.skin-progress-box {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #cbd5e1;
}
.progress-labels b {
  color: #ffd700;
}
.skin-progress-track {
  width: 100%;
  height: 8px;
  background: #0f172a;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ffffff15;
}
.skin-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ffd700);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Status Badge */
.skin-status-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 6px;
  background: #0284c725;
  color: #38bdf8;
  border: 1px solid #38bdf850;
}
.skin-card.equipped .skin-status-badge {
  background: #eab30825;
  color: #facc15;
  border-color: #facc1550;
}

/* Skin Select Buttons */
.btn-skin-select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-skin-select.btn-active {
  background: #334155;
  color: #94a3b8;
  cursor: default;
}
.btn-skin-select.btn-equip {
  background: linear-gradient(180deg, #ffd700 0%, #eab308 100%);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}
.btn-skin-select.btn-equip:active {
  transform: scale(0.98);
}
.btn-skin-select.btn-locked {
  background: #1e293b;
  color: #64748b;
  cursor: not-allowed;
  border: 1px dashed #ffffff20;
}

/* Celebration Modal */
.celebration-modal {
  text-align: center;
  padding: 26px 20px;
  background: linear-gradient(180deg, #16243b 0%, #0c1626 100%);
  border: 2px solid #ffd700;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.unlock-badge {
  color: #ffd700;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
}
.celebration-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  margin: 6px 0 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.celebration-preview {
  width: 140px;
  height: 140px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #254168 0%, #111e33 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffd700;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.4);
  animation: celebPulse 2s infinite ease-in-out;
}
.celebration-img {
  width: 116px;
  height: 116px;
  object-fit: contain;
}
.celebration-desc {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 20px;
  line-height: 1.5;
}
@keyframes celebPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 32px rgba(255, 215, 0, 0.6);
    transform: scale(1.04);
  }
}
