/* Chr👀p Runner. Reuses the Catch card / HUD / sheet styles; only runner-specific pieces live here. Never #FFE600. */
#runner { --gc: 224, 168, 120; scroll-margin-top: 96px; }
.runner-card [hidden] { display: none !important; }
.game-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(16, 19, 23, .45); color: var(--cream); font-weight: 800; font-size: 14px; text-decoration: none;
  box-shadow: inset 0 0 0 1.5px rgba(224, 168, 120, .7), 0 0 14px rgba(224, 168, 120, .25); transition: background .2s, transform .2s; }
.game-chip img { width: 22px; height: 28px; object-fit: contain; }
.game-chip:hover { background: var(--slate); transform: translateY(-1px); }

/* idle card art: a little boardwalk scene built from the generated layers */
.runner-idle { align-items: stretch; }
.runner-card-art { position: relative; height: auto; min-height: 300px; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(var(--gc), .3); background: #121a22; }
.runner-card-art > * { position: absolute; pointer-events: none; }
.rca-sky { inset: 0; background: url(/assets/runner/bg-far.webp) 0 72% / auto 118% repeat-x; animation: rcaScroll 90s linear infinite; }
.rca-mid { left: 0; right: 0; bottom: 44px; height: 112px; background: url(/assets/runner/bg-mid.webp) 0 100% / auto 100% repeat-x; opacity: .92; animation: rcaScroll 36s linear infinite; }
.rca-deck { left: 0; right: 0; bottom: 0; height: 66px; background: url(/assets/runner/ground.webp) 0 0 / auto 88px repeat-x; animation: rcaScrollFast 6s linear infinite; }
@keyframes rcaScroll { to { background-position-x: -1600px; } }
@keyframes rcaScrollFast { to { background-position-x: -514px; } }
.rca-hero { left: 22%; bottom: 52px; width: 92px; height: auto; filter: drop-shadow(0 10px 10px rgba(0,0,0,.4)); animation: rcaHop 1.6s cubic-bezier(.3, 0, .7, 1) infinite; transform-origin: 50% 100%; }
@keyframes rcaHop { 0%, 100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-74px) rotate(-6deg); } 55% { transform: translateY(-74px) rotate(-4deg); } }
.rca-crate { left: 30%; bottom: 40px; width: 56px; animation: rcaCrate 1.6s linear infinite; }
@keyframes rcaCrate { from { transform: translateX(260px); } to { transform: translateX(-240px); } }
.rca-coin { width: 26px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); animation: rcaSpin 1.4s ease-in-out infinite; }
.rca-coin.c1 { left: 48%; bottom: 150px; } .rca-coin.c2 { left: 57%; bottom: 168px; animation-delay: -.3s; } .rca-coin.c3 { left: 66%; bottom: 150px; animation-delay: -.6s; }
@keyframes rcaSpin { 50% { transform: scaleX(.25); } }
.rca-cap { right: 9%; top: 26px; width: 54px; filter: drop-shadow(0 0 14px rgba(110, 236, 240, .75)); animation: rcaGlow 2.4s ease-in-out infinite; }
@keyframes rcaGlow { 50% { transform: translateY(-6px) scale(1.06); filter: drop-shadow(0 0 22px rgba(110, 236, 240, .95)); } }
.rca-bird { right: 30%; top: 44px; width: 70px; filter: drop-shadow(0 8px 8px rgba(0,0,0,.4)); animation: rcaBird 3s ease-in-out infinite; }
@keyframes rcaBird { 50% { transform: translate(-14px, 8px) scaleY(.9); } }
.runner-legend .catch-legend-list img { border-radius: 0; object-fit: contain; }
.runner-legend li.hazard b { color: var(--blue); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.runner-scores .catch-best b { color: var(--cream); }

/* stage */
.runner-hud { grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr)); }
.rcap-slots { display: flex; gap: 6px; align-items: center; height: 22px; }
.rcap-slots i { width: 20px; height: 22px; border-radius: 50%; background: url(/assets/runner/capsule.webp) center / contain no-repeat; opacity: .22; filter: grayscale(1); transition: opacity .25s, filter .25s, transform .25s; }
.rcap-slots i.on { opacity: 1; filter: drop-shadow(0 0 6px rgba(110, 236, 240, .9)); transform: scale(1.08); }
.rcap-slots.burst i { animation: slotBurst 1.1s cubic-bezier(.2, 1, .3, 1) both; }
.rcap-slots.burst i:nth-child(2) { animation-delay: .05s; } .rcap-slots.burst i:nth-child(3) { animation-delay: .1s; }
@keyframes slotBurst { 0% { transform: scale(1); } 30% { transform: scale(1.5) rotate(-12deg); filter: drop-shadow(0 0 14px rgba(110, 236, 240, 1)) brightness(1.6); } 50% { transform: scale(.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 6px rgba(110, 236, 240, .9)); } }

.runner-field { position: relative; height: 480px; border-radius: 22px; overflow: hidden; background: #121a22; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; overscroll-behavior: none;
  box-shadow: 0 0 0 1.5px rgba(var(--gc), .9) inset, 0 0 0 1px rgba(var(--gc), .38), 0 0 14px rgba(var(--gc), .48), 0 0 38px rgba(var(--gc), .28), 0 14px 40px rgba(0,0,0,.35); }
.runner-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: inherit; }
.runner-field::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1.5px rgba(var(--gc), .9); }
.runner-btns { position: absolute; top: 12px; right: 12px; z-index: 7; display: flex; gap: 8px; }
.runner-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--cream); background: rgba(16, 19, 23, .55); box-shadow: inset 0 0 0 1px rgba(var(--gc), .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.runner-btn svg { width: 18px; height: 18px; }
.runner-btn:hover { background: rgba(58, 68, 78, .8); }
.runner-title { position: absolute; inset: 0 0 50% 0; z-index: 6; display: grid; place-content: end center; text-align: center; pointer-events: none; }
.rt-word { font-family: Marimpa, sans-serif; font-size: clamp(44px, 8vw, 92px); line-height: 1; color: var(--white); text-shadow: 0 4px 0 #101317, 0 0 30px rgba(224, 168, 120, .45); display: inline-flex; align-items: center; justify-content: center; gap: .04em; white-space: nowrap; }
.rt-word .rt-r { color: var(--tan); margin-left: .22em; }
.rt-sub { justify-self: center; margin-top: 14px; padding: 7px 14px; border-radius: 999px; background: rgba(16, 19, 23, .62); box-shadow: inset 0 0 0 1px rgba(var(--gc), .4); font: 900 12px/1 Nunito, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); }
.runner-title.go .rt-word { animation: rtIn 1.75s cubic-bezier(.2, 1.3, .4, 1) both; }
.runner-title.go .rt-sub { animation: rtSub 1.75s ease both; }
@keyframes rtIn { 0% { transform: scale(.3) rotate(-6deg); opacity: 0; } 22% { transform: scale(1.08) rotate(1deg); opacity: 1; } 32% { transform: scale(1); } 82% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.15) translateY(-10px); opacity: 0; } }
@keyframes rtSub { 0%, 20% { opacity: 0; transform: translateY(8px); } 35%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.runner-count { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.runner-count .catch-count { text-shadow: 0 5px 0 #101317, 0 0 40px rgba(224, 168, 120, .55); }
.runner-paused .catch-sheet { width: min(320px, 100%); }
#runEnd.catch-panel { position: absolute; inset: 0; z-index: 8; align-content: center; overflow: auto; border-radius: 18px; }
.runner-end.catch-panel { place-items: safe center; align-content: safe center; }
.runner-sheet { padding: 14px 16px 14px; }
.runner-sheet .mark { width: 64px; height: 64px; margin-bottom: 2px; }
.runner-sheet h2 { font-size: clamp(26px, 6vw, 34px); }
.runner-sheet .catch-tally { font-size: clamp(40px, 9vw, 56px); }
.runner-sheet .lead { margin-top: 8px; font-size: 14px; line-height: 1.35; }
.runner-sheet .catch-endbar { margin: 10px 0 4px; }
.runner-sheet .nudge { grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.runner-sheet .nudge .btn { min-height: 42px; padding: 0 8px; font-size: 14px; white-space: nowrap; }
.runner-sheet .nudge .btn-tan, .runner-sheet .nudge #runRedeem, .runner-sheet .nudge #runSignIn { grid-column: 1 / -1; min-height: 46px; font-size: 16px; }
.runner-endstats { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; color: var(--blue); font-weight: 800; font-size: 14px; }
.runner-endstats b { color: var(--cream); font-variant-numeric: tabular-nums; }
.runner-best { margin: 8px 0 0; color: var(--blue); font-weight: 800; font-size: 14px; }
.runner-best b { color: var(--cream); }
.runner-best i { font-style: normal; display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 99px; background: var(--tan); color: var(--ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.runner-how-cards img { border-radius: 0 !important; }

@media (max-width: 860px) {
  .runner-card-art { min-height: 0; height: 200px; }
  .rca-hero { width: 70px; bottom: 46px; } .rca-crate { width: 44px; bottom: 36px; }
  .rca-mid { height: 84px; bottom: 38px; } .rca-deck { height: 56px; background-size: auto 74px; }
  .rca-bird { right: 12%; top: 70px; width: 56px; } .rca-cap { right: 6%; top: 14px; width: 44px; }
  .rca-coin.c1 { left: 50%; bottom: 128px; } .rca-coin.c2 { left: 60%; bottom: 142px; } .rca-coin.c3 { left: 70%; bottom: 128px; }
  .runner-hud { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .runner-hud .catch-hud-cell:nth-child(1), .runner-hud .catch-hud-cell:nth-child(2), .runner-hud .catch-hud-cell:nth-child(3) { grid-column: span 2; }
  .runner-hud .catch-hud-cell:nth-child(4), .runner-hud .catch-hud-cell:nth-child(5) { grid-column: span 3; padding: 6px 10px; flex-direction: row; align-items: center; justify-content: space-between; }
  .runner-hud .catch-hud-cell b { white-space: nowrap; }
  .rcap-slots { gap: 3px; } .rcap-slots i { width: 17px; height: 19px; }
  .runner-btn { width: 36px; height: 36px; }
  .runner-btns { top: 8px; right: 8px; gap: 6px; }
  #runner { scroll-margin-top: 128px; }
  #runner.is-running .sec-head { display: none; }
  #runner.is-running { padding-top: 8px; padding-bottom: 12px; }
  body.is-running { overflow: hidden; overscroll-behavior: none; }
  #runCount, #runTitle { pointer-events: none; }
  .rt-word { font-size: clamp(38px, 11vw, 56px); }
  .rt-sub { font-size: 10px; letter-spacing: .12em; }
  .runner-end.catch-panel { padding: 8px; }
  .runner-sheet { padding: 10px 12px 12px; }
  .runner-sheet .mark { width: 46px; height: 46px; margin-bottom: 0; }
  .runner-sheet h2 { font-size: 24px; }
  .runner-sheet .catch-tally { font-size: 40px; }
  .runner-endstats { font-size: 13px; gap: 4px 10px; }
  .runner-best { margin: 6px 0 0; font-size: 13px; }
  .runner-sheet .lead { margin-top: 6px; font-size: 13px; }
  .runner-sheet .catch-endbar { margin: 8px 0 2px; }
  .runner-sheet .nudge { margin-top: 8px; gap: 6px; }
  .runner-sheet .nudge .btn { min-height: 38px; font-size: 13px; padding: 0 6px; }
  .runner-sheet .nudge .btn-tan, .runner-sheet .nudge #runRedeem, .runner-sheet .nudge #runSignIn { min-height: 42px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .rca-sky, .rca-mid, .rca-deck, .rca-hero, .rca-crate, .rca-coin, .rca-cap, .rca-bird, .runner-title.go .rt-word, .runner-title.go .rt-sub, .rcap-slots.burst i { animation: none !important; }
}
