.arcade-page {
  --arcade-line: rgba(209, 222, 237, .14);
  --arcade-muted: #a7b2c0;
  max-width: 1040px;
  margin-inline: auto;
  color: #f5f7fa;
}

.arcade-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.arcade-admin-control { margin: .65rem 0 0; font-size: .65rem; }
.arcade-admin-control a { color: #8eeaff; text-decoration: underline; text-underline-offset: .2rem; }
.arcade-admin-control a:hover { color: #fff; }

.arcade-kicker {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #a7b2c0;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .16em;
}

.arcade-kicker span,
.arcade-live i {
  width: .5rem;
  height: .5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ff4438;
  box-shadow: 0 0 16px rgba(255, 68, 56, .72);
}

.arcade-heading h1 {
  margin: .55rem 0 .25rem;
  color: #fff;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .78;
}

.arcade-heading h1 em {
  color: #ff4438;
  font-style: normal;
}

.arcade-heading p {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--arcade-muted);
  font-size: .9rem;
  line-height: 1.6;
}

.arcade-personal-record {
  display: flex;
  min-width: 150px;
  flex-direction: column;
  align-items: flex-end;
  padding: .8rem 1rem;
  border: 1px solid var(--arcade-line);
  border-radius: 3px 16px 3px 3px;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

.arcade-personal-record span,
.arcade-scoreboard small {
  color: var(--arcade-muted);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.arcade-personal-record strong {
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.5rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.arcade-personal-record small {
  color: var(--arcade-muted);
  font-size: .68rem;
}

.arcade-machine {
  overflow: hidden;
  border: 1px solid var(--arcade-line);
  border-radius: 3px 20px 3px 3px;
  background: #111821;
  box-shadow: 0 24px 64px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.035);
}

.arcade-closed-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .62fr);
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
  padding: clamp(1rem, 3vw, 1.65rem);
  overflow: hidden;
  border: 1px solid rgba(209, 222, 237, .16);
  border-left: 3px solid #ff4438;
  border-radius: 3px 18px 3px 3px;
  background:
    radial-gradient(ellipse at 3% 0%, rgba(255, 68, 56, .13), transparent 48%),
    linear-gradient(135deg, #18222e, #101720 72%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.arcade-closed-panel::after {
  position: absolute;
  right: -2.2rem;
  bottom: -3.8rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(255, 68, 56, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(255, 68, 56, .025), 0 0 0 30px rgba(255, 68, 56, .018);
  content: "";
  pointer-events: none;
}

.arcade-closed-copy,
.arcade-closed-winner {
  position: relative;
  z-index: 1;
}

.arcade-closed-kicker {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  color: #ff776d;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .15em;
}

.arcade-closed-kicker i {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: #ff4438;
  box-shadow: 0 0 12px rgba(255, 68, 56, .55);
}

.arcade-closed-copy h2 {
  margin: .45rem 0 .35rem;
  color: #f7f9fc;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 850;
  letter-spacing: -.035em;
}

.arcade-closed-copy p {
  max-width: 40rem;
  margin: 0;
  color: #a7b2c0;
  font-size: .8rem;
  line-height: 1.55;
}

.arcade-closed-copy p strong { color: #e8edf3; }

.arcade-closed-winner {
  display: grid;
  min-width: 0;
  gap: .28rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(242, 200, 109, .2);
  border-radius: 3px 12px 3px 3px;
  background: linear-gradient(145deg, rgba(242, 200, 109, .08), rgba(255, 255, 255, .025));
}

.arcade-closed-winner > span {
  color: #d7b65f;
  font-size: .57rem;
  font-weight: 850;
  letter-spacing: .14em;
}

.arcade-closed-winner > strong {
  overflow: hidden;
  color: #fff;
  font-size: clamp(.95rem, 2vw, 1.2rem);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arcade-closed-winner > small {
  color: #a7b2c0;
  font-size: .68rem;
}

.arcade-closed-winner.is-empty {
  border-color: var(--arcade-line);
  background: rgba(255, 255, 255, .025);
}

.arcade-closed-winner.is-empty > span { color: #a7b2c0; }

.arcade-scoreboard {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--arcade-line);
  background: linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}

.arcade-scoreboard > div {
  display: flex;
  min-width: 64px;
  flex-direction: column;
}

.arcade-scoreboard strong {
  color: white;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.arcade-live {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #b7c2ce;
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .13em;
}

.arcade-live i {
  width: .42rem;
  height: .42rem;
  background: #55d69e;
  box-shadow: 0 0 14px rgba(85,214,158,.62);
}

.arcade-scoreboard .arcade-best {
  align-items: flex-end;
}

.arcade-canvas-wrap {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a1017;
}

.arcade-canvas-wrap::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid rgba(255,255,255,.035);
  content: "";
  pointer-events: none;
}

.arcade-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: pointer;
}

.arcade-canvas-wrap canvas:focus-visible {
  outline: 2px solid #4c8dff;
  outline-offset: -4px;
}

.arcade-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: linear-gradient(90deg, rgba(7,11,16,.62), rgba(7,11,16,.16) 75%);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.arcade-overlay.is-restarting { opacity: 0; visibility: hidden; pointer-events: none; }

.arcade-overlay[hidden] {
  display: none;
}

.arcade-overlay-card {
  width: min(390px, 100%);
  margin-right: auto;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(211,224,239,.17);
  border-radius: 3px 18px 3px 3px;
  background: rgba(15,22,31,.88);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
  backdrop-filter: blur(16px);
}

.arcade-overlay.is-gameover { justify-items: end; }
.arcade-overlay.is-gameover .arcade-overlay-card { margin-right: 0; margin-left: auto; }

.arcade-banana-speech {
  --banana-speech-width: clamp(116px, 19vw, 180px);
  position: absolute;
  z-index: 3;
  left: max(.5rem, calc(24.5% - var(--banana-speech-width) - .5rem));
  display: grid;
  width: var(--banana-speech-width);
  min-height: 42px;
  place-items: center;
  padding: .45rem .55rem;
  border: 3px solid #101d39;
  color: #17213b;
  background: #fff3cf;
  box-shadow: 4px 4px 0 #a84950;
  font-family: "Courier New", monospace;
  font-size: clamp(.62rem, 1.4vw, .78rem);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  transform: translateY(5px) scale(.96);
  transition: opacity 140ms ease, transform 140ms ease;
  pointer-events: none;
}

.arcade-banana-speech[hidden] { display: none; }
.arcade-banana-speech:not([hidden]) { animation: banana-speech-pop 180ms steps(3, end) forwards; }
.arcade-banana-speech::before,
.arcade-banana-speech::after {
  position: absolute;
  right: 14px;
  width: 0;
  height: 0;
  border-right: 9px solid transparent;
  border-left: 9px solid transparent;
  content: "";
}
.arcade-banana-speech::before { bottom: -14px; border-top: 12px solid #101d39; }
.arcade-banana-speech::after { right: 16px; bottom: -8px; border-top: 9px solid #fff3cf; }

@keyframes banana-speech-pop {
  from { opacity: 0; transform: translateY(5px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.arcade-overlay-mark {
  color: #ff766e;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.arcade-overlay-card h2 {
  margin: .5rem 0;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: .95;
}

.arcade-overlay-card p {
  margin: 0 0 1rem;
  color: #bdc7d2;
  font-size: .83rem;
  line-height: 1.55;
}

.arcade-start {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .7rem 1rem;
  border: 1px solid #ff4438;
  border-radius: 3px 12px 3px 3px;
  color: #fff;
  background: #e52e25;
  font: inherit;
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.arcade-start:hover {
  transform: translateY(-2px);
  background: #ff4438;
  box-shadow: 0 10px 24px rgba(229,46,37,.26);
}

.arcade-start:focus-visible,
.arcade-reset:focus-visible {
  outline: 2px solid #4c8dff;
  outline-offset: 3px;
}

.arcade-controls {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  padding: .65rem 1rem;
  border-top: 1px solid var(--arcade-line);
  color: var(--arcade-muted);
  font-size: .68rem;
}

.arcade-controls kbd {
  padding: .18rem .35rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 4px;
  color: #f2f5f8;
  background: rgba(255,255,255,.06);
  font: inherit;
  font-weight: 800;
}

.arcade-touch-hint {
  display: none;
}

.arcade-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .9rem;
  color: var(--arcade-muted);
  font-size: .75rem;
}

.arcade-bottom-row p { margin: 0; }
.arcade-bottom-row strong { color: #e2e8ef; }

.arcade-reset {
  min-height: 36px;
  flex: 0 0 auto;
  padding: .4rem .65rem;
  border: 1px solid var(--arcade-line);
  border-radius: 3px 10px 3px 3px;
  color: #c4cfdb;
  background: rgba(255,255,255,.035);
  font: inherit;
  font-size: .68rem;
  cursor: pointer;
}

.arcade-reset:hover { color: #fff; background: rgba(255,255,255,.08); }

.arcade-saved-note {
  flex: 0 0 auto;
  color: #8492a1;
  font-size: .67rem;
}

.arcade-leaderboard {
  margin-top: 2.25rem;
  overflow: hidden;
  border: 1px solid var(--arcade-line);
  border-radius: 3px 18px 3px 3px;
  background: linear-gradient(145deg, rgba(20,29,40,.96), rgba(13,19,27,.96));
  box-shadow: 0 18px 54px rgba(0,0,0,.2);
}

.arcade-leaderboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem .9rem;
  border-bottom: 1px solid var(--arcade-line);
}

.arcade-section-kicker {
  color: #ff726a;
  font-size: .59rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.arcade-leaderboard-heading h2 {
  margin: .25rem 0 0;
  color: #f7f8fa;
  font-family: "Barlow Condensed", "Manrope", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .98;
}

.arcade-leaderboard-heading p {
  margin: 0;
  color: var(--arcade-muted);
  font-size: .69rem;
  text-align: right;
}

.arcade-board-meta { display: grid; justify-items: end; gap: .35rem; }
.arcade-board-meta .arcade-total-attempts { color: #9cabb9; font-size: .55rem; font-weight: 800; letter-spacing: .1em; }
.arcade-total-attempts strong { margin-left: .35rem; color: #ffbd4a; font-family: "Barlow Condensed", sans-serif; font-size: .95rem; font-variant-numeric: tabular-nums; letter-spacing: 0; }

.arcade-leaderboard-list {
  margin: 0;
  padding: .3rem 1.3rem .75rem;
  list-style: none;
}

.arcade-leaderboard-list li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .65rem;
  min-height: 48px;
  border-bottom: 1px solid rgba(209,222,237,.075);
}

.arcade-leaderboard-list li:last-child { border-bottom: 0; }

.arcade-leaderboard-list li.is-you {
  margin-inline: -.65rem;
  padding-inline: .65rem;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,68,56,.11), rgba(255,68,56,.025));
}

.arcade-rank {
  color: #8290a0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.arcade-leaderboard-list li:nth-child(1) .arcade-rank { color: #f2c86d; }
.arcade-leaderboard-list li:nth-child(2) .arcade-rank { color: #bdc8d4; }
.arcade-leaderboard-list li:nth-child(3) .arcade-rank { color: #cd906d; }

.arcade-driver-name {
  overflow: hidden;
  color: #e8edf2;
  font-size: .81rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arcade-leaderboard-list li strong {
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.arcade-leaderboard-list li small {
  color: #8592a0;
  font-size: .62rem;
}

.arcade-record-score,
.arcade-attempt-count {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: .05rem;
  text-align: right;
  white-space: nowrap;
}

.arcade-record-score small { font-size: .55rem !important; }

.arcade-attempt-count {
  min-width: 3.4rem;
  padding-left: .75rem;
  border-left: 1px solid rgba(209,222,237,.12);
}

.arcade-attempt-count small { color: #8592a0; font-size: .48rem !important; letter-spacing: .08em; }
.arcade-leaderboard-list li .arcade-attempt-count strong { color: #bdc9d5; font-size: .94rem; }

.arcade-board-empty {
  display: block !important;
  padding-block: 1.1rem;
  color: var(--arcade-muted);
  font-size: .78rem;
}

.arcade-own-rank {
  margin: 0 1.3rem 1rem;
  padding: .7rem .85rem;
  border: 1px solid rgba(255,68,56,.25);
  border-radius: 4px;
  color: #b7c2ce;
  background: rgba(255,68,56,.055);
  font-size: .72rem;
}

.arcade-own-rank strong { color: #fff; }

.arcade-board-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .8rem 1.3rem;
  border-bottom: 1px solid var(--arcade-line);
}

.arcade-board-login p {
  margin: 0;
  color: var(--arcade-muted);
  font-size: .73rem;
}

.arcade-board-login a {
  flex: 0 0 auto;
  padding: .48rem .7rem;
  border: 1px solid rgba(255,68,56,.45);
  border-radius: 3px 9px 3px 3px;
  color: #fff;
  background: rgba(255,68,56,.15);
  font-size: .67rem;
  font-weight: 850;
  text-decoration: none;
}

.arcade-board-login a:hover { background: rgba(255,68,56,.26); }

@media (pointer: coarse) {
  .arcade-touch-hint { display: inline; }
}

@media (max-width: 620px) {
  .arcade-canvas-wrap { aspect-ratio: 4 / 3; }
  .arcade-heading { align-items: flex-start; gap: .7rem; }
  .arcade-closed-panel { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .arcade-closed-winner { padding: .75rem .85rem; }
  .arcade-heading h1 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .arcade-heading p { max-width: 25rem; font-size: .78rem; }
  .arcade-personal-record { min-width: 92px; padding: .6rem; }
  .arcade-personal-record span { font-size: .49rem; letter-spacing: .07em; }
  .arcade-personal-record strong { font-size: 2rem; }
  .arcade-personal-record small { font-size: .58rem; }
  .arcade-scoreboard { min-height: 62px; padding: .55rem .75rem; }
  .arcade-scoreboard strong { font-size: 1.5rem; }
  .arcade-scoreboard small { font-size: .55rem; }
  .arcade-live { font-size: .52rem; letter-spacing: .08em; }
  .arcade-overlay { padding: .55rem; }
  .arcade-overlay-card { width: min(290px, 100%); padding: .85rem; }
  .arcade-overlay.is-gameover { align-items: end; padding: .45rem; }
  .arcade-overlay.is-gameover .arcade-overlay-card { width: min(230px, 64%); padding: .65rem; }
  .arcade-overlay.is-gameover .arcade-overlay-card h2 { margin: .3rem 0; font-size: clamp(1.05rem, 5vw, 1.4rem); }
  .arcade-overlay.is-gameover .arcade-overlay-card p { margin-bottom: .45rem; font-size: .61rem; }
  .arcade-overlay.is-gameover .arcade-overlay-mark { font-size: .53rem; }
  .arcade-overlay.is-gameover .arcade-start { min-height: 34px; padding: .45rem .7rem; font-size: .62rem; }
  .arcade-banana-speech { --banana-speech-width: 116px; font-size: .62rem; }
  .arcade-overlay-card h2 { font-size: 1.7rem; }
  .arcade-overlay-card p { margin-bottom: .65rem; font-size: .7rem; }
  .arcade-start { min-height: 40px; }
  .arcade-controls { padding: .6rem .7rem; font-size: .6rem; }
  .arcade-controls > span:last-child { display: none; }
  .arcade-bottom-row { align-items: flex-start; font-size: .67rem; }
  .arcade-bottom-row p { max-width: 70%; }
  .arcade-leaderboard { margin-top: 1.4rem; }
  .arcade-leaderboard-heading { align-items: flex-start; flex-direction: column; gap: .35rem; padding: .9rem; }
  .arcade-board-meta { justify-items: start; }
  .arcade-leaderboard-heading p { text-align: left; }
  .arcade-leaderboard-list { padding: .25rem .9rem .6rem; }
  .arcade-leaderboard-list li { grid-template-columns: 2rem minmax(0, 1fr) auto auto; gap: .45rem; min-height: 44px; }
  .arcade-attempt-count { min-width: 3.1rem; padding-left: .4rem; }
  .arcade-driver-name { font-size: .73rem; }
  .arcade-board-login { align-items: flex-start; flex-direction: column; padding: .75rem .9rem; }
  .arcade-own-rank { margin-inline: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .arcade-overlay, .arcade-start, .arcade-banana-speech { transition: none; animation: none !important; }
}

.arcade-wheel-panel {
  position: relative;
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(128, 177, 221, .28);
  border-radius: 18px;
  color: #f4f7fb;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(44, 100, 153, .2), transparent 45%),
    linear-gradient(145deg, #182432, #101820 72%);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255,255,255,.04);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.arcade-wheel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem .9rem;
  border-bottom: 1px solid var(--arcade-line);
}

.arcade-wheel-heading h2 {
  margin: .25rem 0 0;
  color: #fff;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
}

.arcade-wheel-heading p {
  margin: 0;
  color: var(--arcade-muted);
  font-size: .76rem;
  line-height: 1.5;
  text-align: right;
}

.arcade-wheel-layout {
  display: grid;
  grid-template-columns: minmax(260px, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1rem, 3vw, 2rem);
}

.arcade-wheel-machine {
  position: relative;
  display: grid;
  width: min(100%, 380px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  padding: 12px;
  border: 1px solid rgba(157, 202, 240, .32);
  border-radius: 50%;
  background: radial-gradient(circle, #213449 57%, #132131 58%, #0b141e 73%);
  box-shadow: 0 16px 36px rgba(0,0,0,.4), inset 0 0 0 5px rgba(255,255,255,.025);
}

.arcade-wheel-disc {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 4px solid #dbe8f4;
  border-radius: 50%;
  background: #253749;
  box-shadow: 0 0 0 5px #09121b, 0 0 0 7px rgba(139, 193, 236, .7), 0 8px 18px rgba(0,0,0,.4);
  transform: rotate(0deg);
  transition: transform 5s cubic-bezier(.12,.72,.08,1);
  will-change: transform;
}

.arcade-wheel-disc::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  background: none;
  content: "";
  pointer-events: none;
}

.arcade-wheel-label {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 84px;
  color: #0d1721;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(.54rem, 1.5vw, .66rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px rgba(255,255,255,.2);
  white-space: pre-line;
  transform: translate(-50%, -50%) rotate(var(--label-angle)) translateY(-116px) rotate(calc(-1 * var(--label-angle)));
  pointer-events: none;
}

.arcade-wheel-pointer {
  position: absolute;
  z-index: 4;
  top: -4px;
  left: 50%;
  color: #ff5146;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 2px #111923, 0 0 12px rgba(255,81,70,.65);
  transform: translateX(-50%);
}

.arcade-wheel-hub {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 86px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.6));
  pointer-events: none;
}

.arcade-wheel-hub img { display: block; width: 100%; height: 100%; object-fit: contain; }

.arcade-wheel-info { min-width: 0; }

.arcade-wheel-leader {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .8rem .9rem;
  border-left: 3px solid #f1bd4b;
  background: linear-gradient(90deg, rgba(241,189,75,.11), rgba(241,189,75,.025));
}

.arcade-wheel-leader span,
.arcade-wheel-prize-kicker {
  color: #f1bd4b;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.arcade-wheel-leader strong {
  overflow: hidden;
  color: #fff;
  font-size: 1.05rem;
  text-overflow: ellipsis;
}

.arcade-wheel-leader small,
.arcade-wheel-leader.is-empty small {
  color: #a9bad1;
  font-size: .74rem;
  line-height: 1.55;
}

.arcade-wheel-leader.is-empty span { color: #dbe5f0; }

.arcade-wheel-status {
  min-height: 2.5em;
  margin: .8rem 0;
  color: #bac8d7;
  font-size: .78rem;
  line-height: 1.6;
}

.arcade-wheel-status strong { color: #fff; }

.arcade-wheel-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .65rem 1rem;
  border: 1px solid #ff655a;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #ed493e, #a91f20);
  box-shadow: 0 6px 18px rgba(226,55,46,.2), inset 0 1px rgba(255,255,255,.2);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.arcade-wheel-action:hover:not(:disabled) {
  filter: brightness(1.12);
  box-shadow: 0 8px 24px rgba(226,55,46,.3), inset 0 1px rgba(255,255,255,.2);
  transform: translateY(-2px);
}

.arcade-wheel-action:disabled {
  opacity: .55;
  cursor: wait;
}

.arcade-wheel-prize-card {
  padding: .95rem;
  border: 1px solid rgba(139,193,236,.25);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(48,73,98,.55), rgba(16,28,41,.68));
}

.arcade-wheel-prize-card.is-activated { border-color: rgba(85,214,158,.42); }
.arcade-wheel-prize-card.is-activated .arcade-wheel-prize-kicker { color: #6ae0a6; }

.arcade-wheel-prize-card h3 {
  margin: .35rem 0 .35rem;
  color: #fff;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.arcade-wheel-prize-card > p {
  margin: 0 0 .75rem;
  color: #bac8d7;
  font-size: .76rem;
  line-height: 1.6;
}

.arcade-wheel-prize-card .arcade-wheel-wait {
  margin: .65rem 0 0;
  color: #f3ca6a;
}

.arcade-wheel-activation {
  display: grid;
  gap: .65rem;
}

.arcade-wheel-activation label {
  display: grid;
  gap: .3rem;
  color: #a9bad1;
  font-size: .72rem;
  font-weight: 800;
}

.arcade-wheel-activation select {
  width: 100%;
  min-height: 40px;
  padding: .5rem .65rem;
  border: 1px solid rgba(139,193,236,.26);
  border-radius: 4px;
  color: #f4f7fb;
  background: #142231;
  font: inherit;
  font-size: .76rem;
}

.arcade-wheel-activation .arcade-wheel-action { justify-self: start; }
.arcade-wheel-feedback { color: #ffb5ae !important; }
.arcade-wheel-login-note,
.arcade-wheel-empty { color: #a9bad1; font-size: .78rem; line-height: 1.6; }
.arcade-wheel-empty { margin: 1rem 1.3rem 1.2rem; }

.arcade-wheel-disc.is-spinning { filter: brightness(1.08); }

.arcade-wheel-panel .arcade-wheel-heading h2,
.arcade-wheel-panel .arcade-wheel-rules-heading h3 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}
.arcade-wheel-panel .arcade-wheel-label {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(.54rem, 1.5vw, .66rem);
  font-weight: 800;
  letter-spacing: 0;
}
.arcade-wheel-panel .arcade-wheel-leader span,
.arcade-wheel-panel .arcade-wheel-prize-kicker,
.arcade-wheel-panel .arcade-section-kicker {
  font-family: "Manrope", "Segoe UI", sans-serif;
  letter-spacing: .04em;
}

.arcade-wheel-rules { padding: 0 clamp(1rem, 3vw, 2rem) 1.5rem; }
.arcade-wheel-rules-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}
.arcade-wheel-rules-heading h3 { margin: .15rem 0 0; color: #f4f7fb; font-size: 1.45rem; }
.arcade-wheel-rules-heading > p { margin: 0; color: #a9bad1; font-size: .78rem; }
.arcade-wheel-rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.arcade-wheel-rule {
  min-width: 0;
  padding: .9rem 1rem;
  border: 1px solid rgba(155,184,211,.17);
  border-top: 2px solid var(--prize-color);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(27,40,54,.95), rgba(17,27,38,.96));
}
.arcade-wheel-rule-topline { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.arcade-wheel-rule-mark { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--prize-color); box-shadow: 0 0 10px color-mix(in srgb, var(--prize-color) 45%, transparent); }
.arcade-wheel-rule-chance { margin-left: auto; color: var(--prize-color); font-size: .72rem; font-weight: 800; }
.arcade-wheel-rule h4 { margin: .45rem 0 .25rem; color: #f4f7fb; font-size: .9rem; font-weight: 800; }
.arcade-wheel-rule p { margin: 0; color: #afbdcb; font-size: .76rem; line-height: 1.6; }

@media (max-width: 700px) {
  .arcade-wheel-layout { grid-template-columns: 1fr; gap: 1.2rem; }
  .arcade-wheel-machine { width: min(82vw, 340px); }
  .arcade-wheel-label { transform: translate(-50%, -50%) rotate(var(--label-angle)) translateY(-34vw) rotate(calc(-1 * var(--label-angle))); }
  .arcade-wheel-info { width: 100%; }
  .arcade-wheel-rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arcade-wheel-rules-heading { align-items: flex-start; flex-direction: column; gap: .3rem; }
}

@media (max-width: 480px) {
  .arcade-wheel-heading { align-items: flex-start; flex-direction: column; gap: .45rem; padding: .9rem; }
  .arcade-wheel-heading p { text-align: left; }
  .arcade-wheel-layout { padding: .9rem; }
  .arcade-wheel-machine { width: min(88vw, 310px); padding: 9px; }
  .arcade-wheel-label { width: 68px; transform: translate(-50%, -50%) rotate(var(--label-angle)) translateY(-37vw) rotate(calc(-1 * var(--label-angle))); }
  .arcade-wheel-hub { width: 70px; }
  .arcade-wheel-rules { padding: 0 .9rem 1rem; }
  .arcade-wheel-rules-grid { grid-template-columns: 1fr; }
  .arcade-wheel-rule { padding: .8rem .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .arcade-wheel-disc, .arcade-wheel-action { transition: none; }
}

/* Pixel-arcade skin */
.arcade-page {
  --arcade-line: rgba(128, 177, 221, .28);
  --arcade-muted: #a9bad1;
  font-family: "Courier New", monospace;
}

.arcade-kicker {
  color: #8eeaff;
  font-family: "Courier New", monospace;
  font-size: .66rem;
  letter-spacing: .12em;
}

.arcade-kicker span,
.arcade-live i {
  border-radius: 0;
}

.arcade-kicker span {
  background: #ffbd4a;
  box-shadow: 3px 3px 0 #9c443d;
}

.arcade-heading h1 {
  color: #fff3cf;
  font-family: "Courier New", monospace;
  font-size: clamp(2.35rem, 7vw, 4.9rem);
  letter-spacing: -.08em;
  line-height: .86;
  text-shadow: 4px 4px 0 #17284a, 7px 7px 0 rgba(6, 10, 24, .75);
}

.arcade-heading h1 em { color: #ff5267; }
.arcade-heading p { font-family: "Courier New", monospace; }

.arcade-personal-record,
.arcade-machine,
.arcade-leaderboard {
  border-radius: 0;
  border-width: 2px;
  border-color: #344f78;
  background: #0c1428;
  box-shadow: 5px 5px 0 rgba(4, 8, 18, .8), 0 0 0 3px rgba(22, 36, 63, .55);
}

.arcade-personal-record {
  border-color: #ffbd4a;
  box-shadow: 4px 4px 0 #592e37;
}

.arcade-personal-record span,
.arcade-scoreboard small,
.arcade-personal-record small,
.arcade-live,
.arcade-level small {
  font-family: "Courier New", monospace;
  letter-spacing: .06em;
}

.arcade-personal-record strong,
.arcade-scoreboard strong {
  color: #fff3cf;
  font-family: "Courier New", monospace;
  font-weight: 900;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .55);
}

.arcade-scoreboard {
  min-height: 72px;
  border-bottom: 2px solid #344f78;
  background: #101d39;
}

.arcade-live { color: #8eeaff; }
.arcade-live i { background: #ff5267; box-shadow: 2px 2px 0 #783444; }

.arcade-level {
  display: flex;
  min-width: 56px;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}

.arcade-level small { color: #a9bad1; font-size: .58rem; font-weight: 900; }
.arcade-level strong { color: #ffbd4a; font-size: 1.5rem; line-height: 1; }

.arcade-canvas-wrap { background: #081126; }
.arcade-canvas-wrap::after { border: 2px solid rgba(142, 234, 255, .16); }

.arcade-overlay {
  background-color: rgba(3, 8, 22, .45);
  background-image: repeating-linear-gradient(0deg, rgba(1, 5, 17, .15) 0 2px, transparent 2px 5px);
}

.arcade-overlay-card {
  border: 3px solid #ffbd4a;
  border-radius: 0;
  background: #101d39;
  box-shadow: 6px 6px 0 #652f42, 12px 12px 0 rgba(4, 8, 18, .6);
  backdrop-filter: none;
}

.arcade-overlay-mark {
  color: #8eeaff;
  font-family: "Courier New", monospace;
  letter-spacing: .08em;
}

.arcade-overlay-card h2 {
  color: #fff3cf;
  font-family: "Courier New", monospace;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.08;
  text-shadow: 2px 2px 0 #182849;
}

.arcade-overlay-card p {
  color: #bdcce0;
  font-family: "Courier New", monospace;
  font-size: .78rem;
}

.arcade-start {
  min-height: 44px;
  border: 0;
  border-radius: 0;
  color: #17203a;
  background: #ffbd4a;
  box-shadow: 4px 4px 0 #a84950;
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.arcade-start:hover {
  transform: translate(-1px, -1px);
  color: #10182c;
  background: #ffcf70;
  box-shadow: 5px 5px 0 #a84950;
}

.arcade-controls {
  border-color: #344f78;
  color: #a9bad1;
  background: #0c1428;
  font-family: "Courier New", monospace;
}

.arcade-controls kbd {
  border: 1px solid #8eeaff;
  border-radius: 0;
  color: #fff3cf;
  background: #152849;
  font-family: "Courier New", monospace;
}

.arcade-leaderboard {
  border-color: #344f78;
  background: #0c1428;
}

.arcade-leaderboard-heading { border-color: #344f78; background: #101d39; }
.arcade-section-kicker { color: #8eeaff; font-family: "Courier New", monospace; }
.arcade-leaderboard-heading h2 { color: #fff3cf; font-family: "Courier New", monospace; font-size: clamp(1.2rem, 3.5vw, 1.8rem); }
.arcade-leaderboard-heading p { font-family: "Courier New", monospace; }
.arcade-leaderboard-list li { border-bottom-style: dashed; border-color: rgba(142,234,255,.14); }
.arcade-rank { font-family: "Courier New", monospace; }
.arcade-leaderboard-list li strong { color: #ffbd4a; font-family: "Courier New", monospace; }
.arcade-driver-name { font-family: "Courier New", monospace; }
.arcade-own-rank { border-color: rgba(255,189,74,.36); border-radius: 0; background: rgba(255,189,74,.08); font-family: "Courier New", monospace; }
.arcade-board-login a { border-radius: 0; color: #17203a; background: #ffbd4a; font-family: "Courier New", monospace; }
.arcade-board-login a:hover { background: #ffcf70; }
.arcade-reset { border-radius: 0; font-family: "Courier New", monospace; }
.arcade-saved-note { font-family: "Courier New", monospace; }

@media (max-width: 620px) {
  .arcade-heading h1 { font-size: clamp(1.8rem, 9vw, 3.2rem); }
  .arcade-scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; }
  .arcade-live { display: none; }
  .arcade-level { grid-column: 2; grid-row: 1; }
  .arcade-scoreboard .arcade-best { grid-column: 3; grid-row: 1; }
  .arcade-scoreboard > div:first-child { grid-column: 1; grid-row: 1; }
  .arcade-level strong { font-size: 1.2rem; }
}

/* Pit Lane Power-Up: editorial wheel, distinct from the pixel-art game skin. */
.arcade-wheel-panel {
  isolation: isolate;
  border-color: rgba(166, 188, 212, .18);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(48, 103, 157, .2), transparent 40%),
    radial-gradient(ellipse at 100% 0%, rgba(225, 6, 0, .1), transparent 34%),
    linear-gradient(145deg, #151e29, #0f151d 74%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255,255,255,.045);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.arcade-wheel-panel::before {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e10600 18%, #ff6659 43%, #f1bd4b 76%, transparent);
  content: "";
}

.arcade-wheel-heading {
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem clamp(1rem, 3vw, 1.8rem) 1.25rem;
  border-color: rgba(166, 188, 212, .14);
  background: linear-gradient(90deg, rgba(255,255,255,.025), transparent 72%);
}

.arcade-wheel-heading > div:first-child { min-width: 0; }
.arcade-wheel-panel .arcade-section-kicker { color: #f1bd4b; font: 800 .64rem/1.3 "Manrope", "Segoe UI", sans-serif; letter-spacing: .12em; }
.arcade-wheel-heading h2 { margin-top: .3rem; font-size: clamp(1.65rem, 3.5vw, 2.25rem); letter-spacing: -.045em; line-height: 1.1; }
.arcade-wheel-heading h2 em { color: #ff6256; font-style: normal; }
.arcade-wheel-intro { max-width: 42rem; margin: .5rem 0 0 !important; color: #aebbc9 !important; font-size: .82rem !important; line-height: 1.55 !important; text-align: left !important; }

.arcade-wheel-event-meta {
  display: flex;
  min-width: min(280px, 34%);
  max-width: 320px;
  align-items: center;
  gap: .7rem;
  margin: 0 !important;
  padding: .75rem .9rem;
  border: 1px solid rgba(166, 188, 212, .16);
  border-radius: 13px;
  background: rgba(7, 13, 20, .36);
  text-align: left !important;
}

.arcade-wheel-event-meta > span:last-child { display: grid; min-width: 0; gap: .15rem; }
.arcade-wheel-event-meta strong { overflow: hidden; color: #eef3f8; font-size: .77rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.arcade-wheel-event-meta small { color: #93a3b4; font-size: .66rem; line-height: 1.4; }
.arcade-wheel-event-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #f1bd4b; box-shadow: 0 0 12px rgba(241,189,75,.5); }

.arcade-wheel-layout {
  grid-template-columns: minmax(270px, .88fr) minmax(0, 1.12fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: clamp(1.1rem, 3vw, 1.8rem) clamp(1rem, 3vw, 2rem);
}

.arcade-wheel-machine {
  width: min(100%, 370px);
  padding: 13px;
  border-color: rgba(241, 189, 75, .36);
  background: radial-gradient(circle, #2a394b 57%, #172331 58%, #0b141e 74%);
  box-shadow: 0 18px 42px rgba(0,0,0,.42), inset 0 0 0 5px rgba(255,255,255,.035);
}

.arcade-wheel-disc {
  border: 3px solid rgba(245, 248, 252, .92);
  box-shadow: 0 0 0 4px #101923, 0 0 0 6px rgba(241, 189, 75, .72), 0 9px 22px rgba(0,0,0,.42);
}

.arcade-wheel-label {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 50%;
  color: #fff;
  background: rgba(9, 17, 27, .82);
  box-shadow: 0 2px 10px rgba(0,0,0,.32);
  font: 800 .64rem/1 "Manrope", "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--label-angle)) translateY(calc(-1 * var(--wheel-label-radius, 116px))) rotate(calc(-1 * var(--label-angle)));
}

.arcade-wheel-label.is-selected {
  border-color: #fff;
  color: #171b20;
  background: #f1bd4b;
  box-shadow: 0 0 0 4px rgba(241,189,75,.2), 0 0 20px rgba(241,189,75,.78);
}

.arcade-wheel-pointer {
  top: -4px;
  width: 0;
  height: 0;
  border-top: 19px solid #ff5c50;
  border-right: 12px solid transparent;
  border-left: 12px solid transparent;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.55));
}

.arcade-wheel-hub { width: 76px; }
.arcade-wheel-info { display: grid; align-content: center; gap: .9rem; }
.arcade-wheel-leader { gap: .35rem; padding: 1rem 1.1rem; border: 1px solid rgba(241,189,75,.2); border-left: 3px solid #f1bd4b; border-radius: 14px; background: linear-gradient(110deg, rgba(241,189,75,.1), rgba(241,189,75,.025)); }
.arcade-wheel-leader > span, .arcade-wheel-prize-kicker { color: #f1bd4b; font: 800 .64rem/1.35 "Manrope", "Segoe UI", sans-serif; letter-spacing: .08em; }
.arcade-wheel-leader strong { font-size: 1.2rem; line-height: 1.25; }
.arcade-wheel-leader small, .arcade-wheel-leader.is-empty small { color: #aab8c7; font-size: .76rem; line-height: 1.55; }
.arcade-wheel-status { min-height: 0; margin: 0; padding: .85rem 1rem; border-left: 2px solid rgba(113,174,226,.65); border-radius: 0 10px 10px 0; color: #c2cfdb; background: rgba(255,255,255,.025); font-size: .8rem; line-height: 1.6; }
.arcade-wheel-action { width: 100%; min-height: 48px; border-color: rgba(255,117,104,.72); border-radius: 12px; background: linear-gradient(135deg, #e92820, #b51d1b); box-shadow: 0 8px 22px rgba(225,6,0,.2), inset 0 1px rgba(255,255,255,.16); font-size: .8rem; font-weight: 800; }
.arcade-wheel-action:hover:not(:disabled) { background: linear-gradient(135deg, #f43a30, #c12220); box-shadow: 0 10px 25px rgba(225,6,0,.3), inset 0 1px rgba(255,255,255,.2); }
.arcade-wheel-action:focus-visible { outline: 3px solid rgba(241,189,75,.8); outline-offset: 3px; }
.arcade-wheel-prize-card { padding: 1.1rem; border-color: rgba(139,193,236,.2); border-radius: 14px; background: linear-gradient(145deg, rgba(38,58,77,.72), rgba(16,27,39,.9)); }
.arcade-wheel-prize-card h3 { margin: .45rem 0 .5rem; font-size: 1.15rem; letter-spacing: -.02em; }
.arcade-wheel-prize-card > p { color: #c2ced9; font-size: .78rem; line-height: 1.6; }
.arcade-wheel-prize-card.is-activated { border-color: rgba(85,214,158,.45); }
.arcade-wheel-prize-card.is-activated .arcade-wheel-prize-kicker { color: #6ae0a6; }
.arcade-wheel-activation { gap: .75rem; }
.arcade-wheel-activation label { color: #bac6d2; font-size: .74rem; line-height: 1.45; }
.arcade-wheel-activation select { min-height: 46px; border-color: rgba(139,193,236,.28); border-radius: 10px; font-size: .78rem; }
.arcade-wheel-activation select:focus { border-color: #f1bd4b; outline: 2px solid rgba(241,189,75,.22); }
.arcade-wheel-activation .arcade-wheel-action { justify-self: stretch; }
.arcade-wheel-login-note, .arcade-wheel-empty { color: #aebbc9; font-size: .8rem; line-height: 1.6; }
.arcade-wheel-empty { margin: 1.2rem 1.8rem 1.5rem; }

.arcade-wheel-rules { padding: 0 clamp(1rem, 3vw, 2rem) 1.7rem; }
.arcade-wheel-rules-heading { align-items: center; margin-bottom: 1rem; }
.arcade-wheel-rules-heading h3 { margin-top: .25rem; font-size: 1.35rem; letter-spacing: -.03em; }
.arcade-wheel-rules-heading > p { color: #97a7b7; font-size: .74rem; }
.arcade-wheel-rules-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.arcade-wheel-rule { position: relative; min-height: 148px; padding: 1rem; overflow: hidden; border: 1px solid rgba(155,184,211,.14); border-radius: 13px; background: linear-gradient(145deg, rgba(28,41,55,.88), rgba(17,26,36,.92)); transition: border-color 160ms ease, transform 160ms ease, background 160ms ease; }
.arcade-wheel-rule::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--prize-color); content: ""; opacity: .85; }
.arcade-wheel-rule:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--prize-color) 48%, transparent); background: linear-gradient(145deg, rgba(35,50,66,.94), rgba(17,26,36,.96)); }
.arcade-wheel-rule.is-selected { border-color: color-mix(in srgb, var(--prize-color) 62%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--prize-color) 13%, #1c2937), rgba(17,26,36,.96)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--prize-color) 18%, transparent), 0 8px 24px rgba(0,0,0,.18); }
.arcade-wheel-rule-topline { justify-content: space-between; }
.arcade-wheel-rule-index { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid color-mix(in srgb, var(--prize-color) 48%, transparent); border-radius: 9px; color: var(--prize-color); background: color-mix(in srgb, var(--prize-color) 10%, transparent); font-size: .68rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.arcade-wheel-rule-chance { padding: .28rem .5rem; border: 1px solid color-mix(in srgb, var(--prize-color) 26%, transparent); border-radius: 99px; color: var(--prize-color); background: color-mix(in srgb, var(--prize-color) 8%, transparent); font-size: .64rem; font-weight: 800; white-space: nowrap; }
.arcade-wheel-rule h4 { margin: .75rem 0 .35rem; color: #f4f7fb; font-size: .9rem; font-weight: 800; line-height: 1.3; }
.arcade-wheel-rule p { color: #aebbc9; font-size: .73rem; line-height: 1.55; }

@media (max-width: 700px) {
  .arcade-wheel-layout { grid-template-columns: 1fr; }
  .arcade-wheel-machine { --wheel-label-radius: clamp(86px, calc(41vw - 65px), 116px); width: min(82vw, 340px); }
  .arcade-wheel-rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arcade-wheel-rules-heading { align-items: flex-start; }
}

@media (max-width: 480px) {
  .arcade-wheel-heading { align-items: stretch; gap: .9rem; padding: 1.15rem 1rem 1rem; }
  .arcade-wheel-heading h2 { font-size: 1.7rem; }
  .arcade-wheel-event-meta { min-width: 0; max-width: none; }
  .arcade-wheel-layout { gap: 1.1rem; padding: 1rem; }
  .arcade-wheel-machine { --wheel-label-radius: clamp(86px, calc(41vw - 65px), 101px); width: min(88vw, 310px); padding: 10px; }
  .arcade-wheel-hub { width: 66px; }
  .arcade-wheel-info { gap: .7rem; }
  .arcade-wheel-rules { padding: 0 1rem 1rem; }
  .arcade-wheel-rules-heading { gap: .25rem; }
  .arcade-wheel-rules-grid { grid-template-columns: 1fr; gap: .6rem; }
  .arcade-wheel-rule { min-height: 0; padding: .9rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .arcade-wheel-rule { transition: none; }
}

.arcade-wheel-test-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .65rem .95rem;
  border: 1px solid rgba(139,193,236,.25);
  border-radius: 10px;
  color: #d8e3ee;
  background: rgba(17,27,38,.72);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.arcade-wheel-test-back:hover { color: #fff; border-color: rgba(241,189,75,.48); }

.arcade-wheel-test-notice {
  margin: 0 0 1rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(241,189,75,.34);
  border-left: 3px solid #f1bd4b;
  border-radius: 3px 12px 3px 3px;
  color: #c2ced9;
  background: linear-gradient(100deg, rgba(241,189,75,.1), rgba(17,27,38,.72));
  font-size: .77rem;
  line-height: 1.6;
}

.arcade-wheel-test-notice strong { display: block; margin-bottom: .12rem; color: #f4d17e; }
.arcade-wheel-test-info { gap: .8rem; }

.arcade-wheel-demo-controls {
  display: grid;
  gap: .55rem;
  padding: 1rem;
  border: 1px solid rgba(139,193,236,.16);
  border-radius: 13px;
  background: rgba(7,13,20,.3);
}

.arcade-wheel-demo-controls label {
  display: grid;
  gap: .4rem;
  color: #bac6d2;
  font-size: .74rem;
  font-weight: 800;
}

.arcade-wheel-demo-controls select,
.arcade-wheel-demo-field select {
  width: 100%;
  min-height: 44px;
  padding: .55rem .7rem;
  border: 1px solid rgba(139,193,236,.28);
  border-radius: 10px;
  color: #f4f7fb;
  background: #142231;
  font: inherit;
  font-size: .76rem;
}

.arcade-wheel-demo-controls select:focus,
.arcade-wheel-demo-field select:focus {
  border-color: #f1bd4b;
  outline: 2px solid rgba(241,189,75,.22);
}

.arcade-wheel-demo-controls > p {
  margin: 0;
  color: #899bac;
  font-size: .68rem;
  line-height: 1.5;
}

.arcade-wheel-demo-prize[hidden],
.arcade-wheel-test-outcome[hidden] { display: none !important; }
.arcade-wheel-demo-prize { margin-top: .1rem; }
.arcade-wheel-demo-prize.is-applied { border-color: rgba(85,214,158,.48); }
.arcade-wheel-demo-prize.is-applied .arcade-wheel-prize-kicker { color: #6ae0a6; }
.arcade-wheel-demo-field { display: grid; gap: .3rem; color: #bac6d2; font-size: .73rem; font-weight: 800; }
.arcade-wheel-test-outcome { margin: .75rem 0 0 !important; padding: .7rem .8rem; border-left: 2px solid #63d69d; border-radius: 0 9px 9px 0; color: #c6e6d7 !important; background: rgba(85,214,158,.07); }
.arcade-wheel-test-reset { width: 100%; min-height: 42px; margin-top: .55rem; border: 1px solid rgba(139,193,236,.22); border-radius: 10px; color: #c3d0dd; background: rgba(255,255,255,.035); font: inherit; font-size: .74rem; font-weight: 800; cursor: pointer; }
.arcade-wheel-test-reset:hover { border-color: rgba(241,189,75,.42); color: #fff; }
.arcade-wheel-admin-test-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .55rem;
  color: #f1bd4b;
  font-size: .7rem;
  font-weight: 800;
  text-decoration: none;
}

.arcade-wheel-admin-test-link:hover { color: #ffe09a; }

@media (max-width: 700px) {
  .arcade-wheel-test-page > .arcade-heading { align-items: flex-start; flex-direction: column; }
  .arcade-wheel-test-back { align-self: stretch; }
  .arcade-wheel-test-notice { font-size: .72rem; }
}
