.runner-page {
  width: min(880px, 100% - 36px);
  padding-block: clamp(16px, 3vw, 39px) 34px;
}
.runner-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--game-border);
  border-radius: 10px;
  padding: clamp(14px, 2.8vw, 27px);
  background: var(--game-fill);
  color: var(--game-ink);
}
.runner-intro-frame {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 63%;
  height: 100%;
  object-fit: cover;
  object-position: left 77%;
}
.runner-intro::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(100deg, var(--game-fill) 37%, #bbe675e8 51%, #bbe67524 84%);
}
.runner-intro h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1;
  margin: 0 0 6px;
}
.runner-intro h1 em { color: #355219; background: none; }
.runner-intro p { max-width: min(31rem, 67%); color: var(--game-ink); font-size: .96rem; }
.game-switch {
  display: flex;
  gap: 6px 8px;
  flex-wrap: wrap;
  margin-block: 13px 10px;
}
.game-switch a {
  padding: 7px 12px;
  border: 1px solid var(--game-border);
  border-radius: 7px;
  background: var(--game-wash);
  color: var(--game-ink);
  font-weight: 760;
  text-decoration: none;
}
.game-switch a:hover, .game-switch a[aria-current='page'] { background: var(--game-fill); }
.game-switch a[aria-current='page'] { box-shadow: inset 0 -3px 0 var(--game-border); }
.game-banner {
  position: relative; isolation: isolate; overflow: hidden;
  margin-bottom: 12px; padding: clamp(18px, 3.5vw, 35px);
  padding-inline-end: clamp(82px, 22%, 195px);
  border: 1px solid var(--game-border); border-radius: 12px;
  background: linear-gradient(110deg, var(--game-wash), var(--game-fill)); color: var(--game-ink);
}
.game-banner h1 { margin: 0 0 9px; font-size: clamp(2rem, 6vw, 4rem); line-height: .96; }
.game-banner p { max-width: 53ch; }
.game-banner-mark, .game-banner-pilot { position: absolute; z-index: -1; right: 3%; bottom: -7%; }
.game-banner-mark { display: grid; place-items: center; width: clamp(72px, 20%, 150px); aspect-ratio: 1; background: var(--game-fill); border: 3px solid #fff8; border-radius: 50%; font-size: clamp(2.15rem, 8vw, 5rem); transform: rotate(12deg); }
.game-banner-pilot { width: clamp(70px, 19%, 145px); height: auto; }
.runner-wallet {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gold-pale);
  font-size: .9rem;
}
.runner-wallet-balance { display: flex; gap: 6px; align-items: center; font-weight: 800; }
.runner-wallet-balance strong { font-size: 1.2rem; }
.runner-coin {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #372507;
  background: #ffc235;
  border: 2px solid #704611;
  border-radius: 50%;
  font-size: .8rem;
  line-height: 1;
}
.runner-wallet-status { font-weight: 730; }
.runner-wallet .button { margin-left: auto; min-height: 34px; padding: 4px 11px; }
.runner-wallet .button[hidden] { display: none; }
.arcade-wallet { margin-bottom: 12px; }
[data-kibble-bowl] { position: relative; display: inline-grid; width: 1.2em; height: .8em; }
[data-kibble-bowl]::before {
  content: '';
  position: absolute;
  inset: .22em 0 0;
  border-radius: 38% 38% 24% 24%;
  background: linear-gradient(#e46687 30%, #b93061 31% 79%, #8a2048 80%);
  box-shadow: inset 0 .06em #ffd0df, 0 .06em .08em #3015255c;
}
[data-kibble-bowl]::after {
  content: '';
  position: absolute;
  top: .16em;
  left: .1em;
  right: .1em;
  height: .32em;
  border-radius: 50%;
  background: radial-gradient(circle at 16% 36%, #d5a06c 9%, transparent 10%),
    radial-gradient(circle at 36% 60%, #d2a072 10%, transparent 11%),
    radial-gradient(circle at 57% 30%, #bd8050 10%, transparent 11%),
    radial-gradient(circle at 76% 64%, #d6a779 10%, transparent 11%), #6f4128;
}
.runner-prompt .button:disabled, .runner-controls .button:disabled { opacity: .6; cursor: default; }

.runner-board {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 3px 3px 0 #f3e2b1;
}
.runner-hud, .runner-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 12px;
  padding: 6px 10px;
  font-size: .88rem;
}
.runner-hud {
  justify-content: start;
  background: var(--game-wash);
  color: var(--game-ink);
  font-weight: 720;
}
.runner-hud strong { margin-left: .17em; color: var(--game-ink); font-size: 1rem; }
#runner-lives { letter-spacing: .08em; }
#runner-pace { font-variant-numeric: tabular-nums; }
.runner-sound { margin-left: auto; }
.runner-pause, .runner-sound {
  border: 1px solid var(--game-border);
  color: var(--game-ink);
  border-radius: 5px;
  padding: 2px 8px;
  min-height: 31px;
  background: transparent;
}
.runner-pause:disabled { opacity: .55; cursor: default; }
.runner-hud button:focus-visible { outline-color: var(--gold); }
.runner-stage { position: relative; }
.runner-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 8;
  background: #b9e8f8;
  touch-action: manipulation;
}
.runner-stage canvas:focus-visible { outline-offset: -4px; }
.runner-pickups { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.runner-pickup {
  position: absolute;
  display: flex;
  align-items: baseline;
  gap: .26em;
  white-space: nowrap;
  padding: 1px .3em;
  border: 1.5px solid #352916;
  border-radius: 7px;
  background: #fff9e9;
  color: #201a11;
  box-shadow: 0 2px 0 #35291690;
  font-size: clamp(.875rem, 2.5vw, 1.32rem);
  font-weight: 950;
  line-height: 1.1;
  transform: translate(-50%, -100%);
  animation: runner-pickup-rise 875ms ease-out both;
}
.runner-pickup small { font-size: .66em; font-weight: 750; }
.runner-pickup-pack { background: #ffcc3d; }
@keyframes runner-pickup-rise {
  0% { transform: translate(-50%, -100%); }
  65% { opacity: 1; }
  100% { transform: translate(-50%, calc(-100% - 18px)); opacity: 0; }
}
.runner-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: #4b341333; }
.runner-prompt {
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--gold);
  border-radius: 7px;
  padding: 8px 12px 10px;
  box-shadow: 0 5px 24px #33230d45;
}
.runner-prompt h2 { font-size: clamp(1.05rem, 2.3vw, 1.45rem); line-height: 1.1; margin-bottom: 6px; }
.runner-prompt-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.runner-prompt .button, .runner-controls .button { min-height: 36px; padding: 4px 10px; font-size: .88rem; }
.runner-prompt button:focus-visible, .runner-discount[data-earned] button:focus-visible { outline-color: var(--paper); }
#runner-wheel-open:not([hidden]) ~ #runner-start { background: transparent; border-color: #9b8456; color: var(--paper); }
#runner-wheel-open:not([hidden]) ~ #runner-start:hover { background: #fff1c724; }
.runner-finish-note { margin: 0 0 6px; color: var(--gold); font-size: .82rem; line-height: 1.25; }
.runner-stage-coupon {
  position: absolute;
  top: 50%;
  right: 12%;
  transform: translateY(-50%) rotate(-5deg);
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: clamp(10px, 2vw, 20px) clamp(12px, 4vw, 38px);
  background: linear-gradient(132deg, #ffe793, #ffc32d 70%);
  color: #292013;
  border: 3px solid #292013;
  border-radius: 10px;
  outline: 1px dashed #986102;
  outline-offset: -7px;
  box-shadow: 5px 6px 0 #55401555;
  line-height: 1.1;
  pointer-events: none;
}
.runner-stage-coupon strong { font-size: clamp(1.25rem, 4vw, 3rem); font-weight: 950; text-transform: uppercase; }
.runner-stage-coupon span { font-size: clamp(.78rem, 2vw, 1.2rem); font-weight: 750; }
.runner-stage-coupon small { font-size: clamp(.64rem, 1.5vw, .9rem); font-weight: 850; text-transform: uppercase; }
.runner-controls { border-top: 1px solid var(--line); }
.runner-controls p { color: var(--muted); font-weight: 650; }
.runner-controls kbd { border-radius: 3px; border: 1px solid var(--line); padding: 1px 5px; background: var(--paper); font: inherit; }
.runner-menu-link { display: inline-block; margin-top: 10px; color: var(--gold-ink); font-size: .88rem; text-underline-offset: .2em; }
.runner-discount {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--gold-pale);
  font-size: .87rem;
}
.runner-discount[data-earned] { background: var(--ink); border-color: var(--gold); color: var(--paper); }
.runner-discount[data-earned] .button { color: var(--gold); border-color: #9b8456; }
.runner-discount .button { min-height: 34px; padding: 4px 9px; }
.runner-discount p { font-weight: 680; }

.runner-prize-dialog {
  width: min(780px, 100% - 28px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  background: #191612;
  color: var(--paper);
  border: 1px solid #e4b656;
}
.runner-prize-dialog::backdrop { background: #18140eb8; }
.runner-prizes {
  min-height: 210px;
  padding: clamp(18px, 4vw, 32px);
  background: radial-gradient(ellipse at 50% 15%, #4b3517 0%, #251e12 45%, #191612 84%);
}
.runner-prizes-copy { text-align: center; }
.runner-prizes h2 {
  margin: 0 30px 16px;
  text-align: center;
  font-size: clamp(1.3rem, 3.25vw, 2.15rem);
  line-height: 1.08;
}
.runner-prizes p { color: #ede2ca; font-size: .9rem; line-height: 1.4; }
#runner-spin-status { color: var(--gold); margin-top: 8px; font-weight: 750; }
#runner-spin-status:empty { display: none; }
#runner-prize-label { color: #f1d399; font-weight: 750; }
#runner-prize-name {
  display: block;
  margin: 2px 0 7px;
  font-size: clamp(1.7rem, 5.4vw, 3.1rem);
  line-height: 1.02;
  font-weight: 900;
  color: #ffce52;
}
#runner-prize-result { margin-top: 13px; }
.runner-prize-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.runner-prize-actions .button { min-height: 42px; padding: 6px 13px; }
.runner-prize-retry { color: var(--gold); border-color: #9b8456; }
.runner-prize-actions button:disabled { opacity: .62; cursor: wait; }
.runner-prize-dialog :focus-visible { outline-color: var(--gold); }
.runner-prize-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #a4803e;
  border-radius: 50%;
  background: #251d11;
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
}
.runner-reel {
  --reel-card-width: clamp(100px, 18vw, 132px);
  position: relative;
  overflow: hidden;
  padding-block: 10px;
  border: 1px solid #84602b;
  border-radius: 9px;
  background: #15120d;
}
.runner-reel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #15120df2, transparent 20% 80%, #15120df2);
  pointer-events: none;
}
.runner-reel-track {
  position: relative;
  display: flex;
  gap: 8px;
  width: max-content;
  will-change: transform;
}
.runner-reel-card {
  display: grid;
  grid-template-rows: clamp(88px, 14vw, 115px) auto 1rem;
  flex: 0 0 var(--reel-card-width);
  width: var(--reel-card-width);
  min-width: 0;
  padding: 5px 5px 7px;
  border: 1px solid #ead9ae;
  border-radius: 7px;
  background: linear-gradient(145deg, #fff9e9, #e9dbb9);
  color: #2b1c0d;
  text-align: center;
  font-size: clamp(.7rem, 1.45vw, .82rem);
  font-weight: 800;
  line-height: 1.15;
}
.runner-reel-card[data-prize="first"], .runner-reel-card[data-prize="discount"] {
  background: linear-gradient(145deg, #fff9d0, #f4c956);
}
.runner-reel-card[data-winner] {
  border-color: #ffe486;
  background: linear-gradient(145deg, #fffbea, #ffd04d);
  box-shadow: inset 0 0 0 2px #f7ae22;
}
.runner-reel-card[data-locked] { border-color: #b39d73; background: linear-gradient(145deg, #f3ebd6, #d6c6a8); }
.runner-reel-card[data-locked] .runner-reel-art { opacity: .78; }
.runner-reel-lock { align-self: end; color: #4e341b; font-size: .71rem; font-weight: 700; }
.runner-prizes .runner-reel-note { margin-top: 7px; text-align: center; color: #e5c992; font-size: .81rem; }
.runner-reel-art { position: relative; min-width: 0; min-height: 0; }
.runner-reel-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.runner-reel-art > strong {
  position: absolute;
  right: 1px;
  bottom: 4px;
  padding: 2px 5px 3px;
  border-radius: 4px;
  background: #21190e;
  color: #ffdc67;
  font-size: clamp(.95rem, 2vw, 1.3rem);
  font-weight: 900;
}
.runner-reel-certificate {
  position: absolute;
  inset: 12% 4px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  border: 1px solid #8e5a18;
  border-radius: 5px;
  outline: 1px dashed #e9b94d;
  outline-offset: -5px;
  background: linear-gradient(120deg, #4e3011, #18130d 55%, #422906);
  color: #ffde6d;
  box-shadow: 0 3px 7px #69471956;
}
.runner-reel-certificate .brand-mark { width: clamp(38px, 7.5vw, 58px); }
.runner-reel-card[data-prize="first"] .runner-reel-certificate {
  background: linear-gradient(145deg, #fff2b9, #f3c348);
  color: #35220e;
  outline-color: #a97924;
}
.runner-reel-certificate span:not(.brand-mark) { font-size: .68rem; text-transform: uppercase; letter-spacing: .045em; }
.runner-reel-certificate strong { font-size: clamp(1.55rem, 3.55vw, 2.15rem); line-height: .9; font-weight: 900; }
.runner-reel-card > span { align-self: center; padding-top: 5px; }
.runner-reel-marker {
  position: absolute;
  inset: 2px auto 2px 50%;
  z-index: 2;
  width: calc(var(--reel-card-width) + 4px);
  transform: translateX(-50%);
  border: 1px solid #ffcf52;
  border-radius: 6px;
  pointer-events: none;
}
.runner-reel-marker::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: 17px;
  height: 12px;
  transform: translateX(-50%);
  background: #ffd252;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
@media (max-width: 580px) {
  .runner-intro h1 { font-size: clamp(1.8rem, 6vw, 2.15rem); }
  .runner-intro-frame { width: 62%; }
  .runner-intro::before { background: linear-gradient(100deg, var(--game-fill) 47%, #bbe675e8 66%, #bbe67565 100%); }
  .runner-intro p { max-width: 80%; font-size: .9rem; }
  .runner-hud, .runner-controls { gap: 5px 8px; font-size: .78rem; }
  .runner-hud strong { font-size: .87rem; }
  .runner-pause, .runner-sound { min-height: 33px; }
  .runner-controls .button { min-height: 40px; }
  .runner-overlay[data-finished] { position: relative; inset: auto; background: var(--ink); }
  .runner-overlay[data-finished] .runner-prompt { border: 0; border-radius: 0; }
  .runner-prizes { padding-inline: 12px; }
  .runner-prizes h2 { margin-bottom: 12px; }
}
