/* BountyWarz original op 001 · The Brass Seal — race broadcast. Phone first (390px), then laptop. */
:root { --ink: #f3efe4; --dim: #a9a08c; --gold: #ffd36b; --brass: #c9973a; --tube: #7dffb0; --red: #ff4d3d; --bg: #06070d; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.35 Georgia, 'Times New Roman', serif; }
[hidden] { display: none !important; }
.rc { max-width: 1180px; margin: 0 auto; padding-bottom: 24px; }
.rc-top { display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
.rc-brand { color: var(--gold); text-decoration: none; font: 400 0.92rem Impact, 'Arial Black', sans-serif; letter-spacing: 3px; text-transform: uppercase; margin-right: auto; }
.rc-badge { padding: 3px 9px; border-radius: 4px; background: #39404f; color: #fff; font: 700 0.7rem 'Courier New', monospace; letter-spacing: 2px; text-transform: uppercase; }
.rc-badge.live { background: var(--red); animation: rc-blink 1.4s steps(2) infinite; }
@keyframes rc-blink { 50% { opacity: 0.55; } }
.rc-clock { min-width: 76px; text-align: right; font: 700 1rem 'Courier New', monospace; color: var(--ink); font-variant-numeric: tabular-nums; }

/* the goal: one plain sentence and the stakes, always on the first screen */
.rc-goal { padding: 2px 12px 10px; }
.rc-goal-h { margin: 0; font: 400 1.32rem/1.15 Impact, 'Arial Black', sans-serif; letter-spacing: 0.5px; color: #fff4cf; text-transform: none; }
.rc-stakes { margin: 4px 0 0; color: var(--tube); font: 700 0.84rem/1.3 'Courier New', monospace; }
.rc.live .rc-goal { padding-bottom: 6px; }
.rc.live .rc-goal-h { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc.live .rc-stakes { display: none; }

.rc-stage { position: relative; height: calc(100vh - 410px); height: calc(100svh - 410px); min-height: 340px; max-height: 760px; overflow: hidden; background: #000; }
.rc-backdrop { position: absolute; left: -24px; top: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(16px) brightness(0.4); pointer-events: none; }
.rc-world { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.rc-river { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.6) contrast(1.1); }
.rc-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6,7,13,0.55) 0%, rgba(6,7,13,0) 22%, rgba(6,7,13,0) 78%, rgba(6,7,13,0.75) 100%); }
.rc-course { position: absolute; inset: 0; width: 100%; height: 100%; }
.rc-course .track { fill: none; stroke: rgba(255, 211, 107, 0.22); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rc-course .line { fill: none; stroke: rgba(255, 211, 107, 0.85); stroke-width: 2; stroke-dasharray: 6 7; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: rc-dash 1.6s linear infinite; }
@keyframes rc-dash { to { stroke-dashoffset: -26; } }
.rc-gate { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.rc-arch { position: relative; width: var(--w, 46px); height: calc(var(--w, 46px) * 0.62); border: 3px solid var(--gold); border-bottom: 0; border-radius: 40% 40% 0 0; box-shadow: 0 0 12px rgba(255, 211, 107, 0.55), inset 0 0 10px rgba(255, 211, 107, 0.35); }
.rc-arch b { position: absolute; left: 50%; top: -11px; transform: translateX(-50%); min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #120c03; border: 2px solid var(--gold); color: var(--gold); font: 700 0.72rem/18px 'Courier New', monospace; text-align: center; }
.rc-gate.vault .rc-arch { border-color: #fff1b8; box-shadow: 0 0 20px rgba(255, 211, 107, 0.95); }
.rc-gate.finish .rc-arch { border-image: repeating-linear-gradient(90deg, #fff 0 6px, #111 6px 12px) 3; border-radius: 0; }
.rc-gate.pass .rc-arch { animation: rc-gate 0.7s ease-out; }
@keyframes rc-gate { 30% { box-shadow: 0 0 30px 8px rgba(125, 255, 176, 0.95); border-color: var(--tube); } }
.rc-gate i { order: -1; margin: 0 0 13px; font: 700 0.6rem 'Courier New', monospace; letter-spacing: 1px; color: var(--ink); text-shadow: 0 1px 3px #000; text-transform: uppercase; white-space: nowrap; display: none; }

.rc-drone { position: absolute; z-index: 3; width: var(--s, 44px); height: var(--s, 44px); transform: translate(-50%, -50%); transition: left var(--ms, 800ms) cubic-bezier(.45,.05,.3,1), top var(--ms, 800ms) cubic-bezier(.45,.05,.3,1), width 0.8s, height 0.8s; filter: drop-shadow(0 0 8px var(--c)); }
.rc-drone svg { width: 100%; height: 100%; display: block; }
.rc-drone .rot { transform-origin: center; transform-box: fill-box; animation: rc-spin 0.16s linear infinite; }
.rc-drone em { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); padding: 0 5px; border-radius: 3px; background: var(--c); color: #0a0a0a; font: 700 0.62rem/14px 'Courier New', monospace; font-style: normal; letter-spacing: 1px; white-space: nowrap; }
.rc-drone.crash { animation: rc-crash 0.9s ease-out; }
.rc-drone.crash::after { content: ''; position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 60, 0.95) 0 18%, rgba(255, 140, 40, 0.6) 30%, rgba(255, 60, 30, 0) 62%); animation: rc-boom 0.9s ease-out forwards; }
.rc-drone.boost::before { content: ''; position: absolute; left: 50%; top: 100%; width: 10px; height: 28px; margin-left: -5px; background: linear-gradient(180deg, var(--c), rgba(0,0,0,0)); border-radius: 5px; animation: rc-trail 0.6s ease-out; }
.rc-drone.forge::after { content: ''; position: absolute; inset: -70%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 230, 140, 1) 0 14%, rgba(255, 180, 40, 0.7) 32%, rgba(255, 160, 20, 0) 64%); animation: rc-boom 1.1s ease-out forwards; }
.rc-drone.dnf { filter: grayscale(1) brightness(0.6); }
.rc-drone.dnf em { background: #777; }
.rc-drone.done em { background: #fff; }
@keyframes rc-spin { to { transform: rotate(360deg); } }
@keyframes rc-crash { 0% { transform: translate(-50%, -50%) rotate(0); } 25% { transform: translate(-62%, -50%) rotate(-50deg); } 55% { transform: translate(-40%, -46%) rotate(40deg); } 100% { transform: translate(-50%, -50%) rotate(0); } }
@keyframes rc-boom { from { transform: scale(0.2); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@keyframes rc-trail { from { opacity: 1; height: 40px; } to { opacity: 0; height: 10px; } }
.rc-spark { position: absolute; z-index: 4; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--c, #ffd36b); box-shadow: 0 0 8px var(--c, #ffd36b); pointer-events: none; }
.rc.live .rc-stage { height: 30vh; height: 30svh; min-height: 230px; }
.rc.live .rc-tower { width: 120px; font-size: 0.62rem; }
.rc.live .rc-tower li { height: 18px; grid-template-columns: 20px 4px 1fr auto; gap: 3px; }
.rc.live .rc-tower .p { font-size: 0.75rem; }
.rc.live .rc-call { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc.live #rc-play, .rc.live #rc-speed, .rc.live #rc-restart { display: none; }
.rc.live .rc-controls:not(:has(.rc-join:not([hidden]))) { display: none; }
.rc-tag { position: absolute; z-index: 5; padding: 2px 7px; border-radius: 4px; background: #f3e6c4; color: #3a1a05; border-left: 4px solid #b3261b; font: 700 0.7rem 'Courier New', monospace; letter-spacing: 1px; pointer-events: none; box-shadow: 0 2px 6px rgba(0,0,0,0.6); }
.rc-seal { position: absolute; z-index: 4; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e0584b, #8c1d16 70%); box-shadow: 0 0 0 2px rgba(255, 211, 107, 0.6); pointer-events: none; }

/* leaderboard tower */
.rc-tower { position: absolute; z-index: 5; left: 6px; top: 6px; margin: 0; padding: 0; list-style: none; width: 140px; font: 700 0.72rem 'Courier New', monospace; }
.rc-tower li { display: grid; grid-template-columns: 22px 5px 1fr auto; align-items: center; gap: 4px; height: 22px; padding: 0 5px; margin-bottom: 2px; background: rgba(6, 8, 14, 0.86); border-left: 3px solid transparent; transition: transform 0.5s ease; }
.rc-tower li:first-child { border-left-color: var(--gold); }
.rc-tower .p { color: #fff; font-family: Impact, 'Arial Black', sans-serif; font-weight: 400; font-size: 0.9rem; }
.rc-tower .c { width: 5px; height: 16px; border-radius: 2px; background: var(--c); }
.rc-tower .n { color: var(--ink); letter-spacing: 1px; }
.rc-tower .g { color: var(--dim); font-variant-numeric: tabular-nums; }
.rc-tower li.pen { background: rgba(120, 18, 10, 0.9); }
.rc-tower li.pen .g { color: #ffd0c8; }
.rc-tower li.fin .g { color: var(--tube); }
.rc-tower li.out { opacity: 0.6; }
.rc-tower li.you { box-shadow: inset 0 0 0 1px var(--gold); }
.rc-tower li.stamp .g { color: #ffb4a8; }

.rc-title { position: absolute; z-index: 5; right: 10px; top: 10px; text-align: right; transition: opacity 0.8s; }
.rc-title b { display: block; font: 400 1.15rem Impact, 'Arial Black', sans-serif; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 6px #000; }
.rc-kicker { display: block; color: var(--tube); font: 700 0.62rem 'Courier New', monospace; letter-spacing: 3px; text-transform: uppercase; }
.rc-lights { position: absolute; z-index: 6; left: 50%; top: 42%; transform: translate(-50%, -50%); display: flex; gap: 10px; padding: 12px 16px; border-radius: 12px; background: rgba(5, 6, 10, 0.9); transition: opacity 0.4s; }
.rc-lights i { width: 30px; height: 30px; border-radius: 50%; background: #2a0d0b; box-shadow: inset 0 0 6px #000; }
.rc-lights i.on { background: radial-gradient(circle at 40% 35%, #ff8a7a, var(--red) 60%); box-shadow: 0 0 16px var(--red); }
.rc-lights.go i { background: radial-gradient(circle at 40% 35%, #b9ffd6, #1fd16b 60%); box-shadow: 0 0 16px #1fd16b; }
.rc-lights.off { opacity: 0; pointer-events: none; }

.rc-flag { position: absolute; z-index: 7; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(0, 0, 0, 0.45); animation: rc-fade 0.5s ease-out; }
.rc-check { width: 150px; height: 96px; background: conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 24px 24px; border: 3px solid #ddd; box-shadow: 0 8px 28px rgba(0,0,0,0.7); transform-origin: left center; animation: rc-wave 0.9s ease-in-out infinite alternate; }
.rc-flag b { font: 400 1.8rem Impact, 'Arial Black', sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #fff; text-shadow: 0 0 18px var(--c, #ffd36b), 0 3px 0 #000; }
.rc-flag span { font: 700 0.9rem 'Courier New', monospace; color: var(--tube); letter-spacing: 2px; text-transform: uppercase; }
@keyframes rc-wave { from { transform: perspective(300px) rotateY(-14deg) skewY(-3deg); } to { transform: perspective(300px) rotateY(14deg) skewY(3deg); } }
@keyframes rc-fade { from { opacity: 0; } }

.rc-ticker { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; background: linear-gradient(90deg, #1b0f02, #0b0b10 40%); border-top: 2px solid var(--gold); border-bottom: 1px solid #2a2f3d; }
.rc-mic { display: inline-flex; align-items: center; gap: 2px; height: 18px; flex: 0 0 auto; }
.rc-mic i { width: 3px; height: 30%; background: var(--tube); border-radius: 2px; animation: rc-mic 0.8s ease-in-out infinite; }
.rc-mic i:nth-child(2) { animation-delay: 0.15s; } .rc-mic i:nth-child(3) { animation-delay: 0.3s; } .rc-mic i:nth-child(4) { animation-delay: 0.45s; }
@keyframes rc-mic { 50% { height: 100%; } }
.rc-call { flex: 1 1 auto; min-width: 0; font: 400 1.02rem Impact, 'Arial Black', sans-serif; letter-spacing: 0.5px; color: #fff; text-transform: uppercase; }
.rc-call.flash { animation: rc-call 0.5s ease-out; }
@keyframes rc-call { from { transform: translateX(18px); opacity: 0; } }

.rc-controls { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.rc-ic { min-width: 46px; min-height: 44px; padding: 6px 10px; border-radius: 10px; border: 1px solid #3a4258; background: #121726; color: var(--ink); font: 700 0.95rem 'Courier New', monospace; cursor: pointer; }
.rc-ic.wide { padding: 6px 16px; }
.rc-join { margin-left: auto; max-width: 100%; min-height: 46px; padding: 8px 18px; border-radius: 24px; border: 0; background: linear-gradient(180deg, #ffe39a, var(--brass)); color: #231402; font: 400 1rem Impact, 'Arial Black', sans-serif; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 18px rgba(255, 211, 107, 0.45); white-space: nowrap; }
.rc-join:disabled, .rc-forge:disabled, .rc-berth:disabled { opacity: 0.5; cursor: default; }
button:focus-visible { outline: 2px solid var(--tube); outline-offset: 2px; }

/* the pilot's pit board: berth chips (steer), seals (pick), forge */
.rc-pit { margin: 0 12px; padding: 10px; border-radius: 14px; background: linear-gradient(180deg, #1a1309, #0c0a07); border: 1px solid #6b4a14; }
.rc-berths { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; padding-bottom: 4px; }
.rc-berth { min-width: 0; min-height: 38px; padding: 0 2px; border-radius: 20px; border: 1px solid #8a5f1c; background: radial-gradient(circle at 30% 25%, #3a2a10, #16110a); color: var(--gold); font: 700 0.72rem 'Courier New', monospace; letter-spacing: 0; cursor: pointer; }
.rc-pit-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.rc-say { flex: 1 1 auto; margin: 0; color: #fff; font-size: 0.9rem; line-height: 1.3; }
.rc-fuel { flex: 0 0 auto; padding: 2px 7px; border-radius: 4px; background: #1d2a1f; color: var(--tube); font: 700 0.72rem 'Courier New', monospace; white-space: nowrap; }
.rc-fuel.low { background: #3a1410; color: #ffb4a8; }
.rc-lbl { margin: 6px 0 4px; color: var(--dim); font: 700 0.7rem 'Courier New', monospace; letter-spacing: 2px; text-transform: uppercase; }
.rc-empty { align-self: center; color: var(--dim); font-size: 0.85rem; }
.rc-melt { min-height: 1.6em; margin: 2px 0 8px; color: var(--ink); font: 700 0.85rem 'Courier New', monospace; overflow-wrap: anywhere; }
.rc-melt b { display: inline-block; min-width: 1.1em; margin-right: 2px; padding: 1px 3px; border-radius: 3px; background: #2a1d0b; color: var(--gold); text-align: center; }
.rc-melt b.ok { background: #1f5a33; color: #d9ffe6; }
.rc-melt b.dim { color: #6d6556; }
.rc-melt-h, .rc-melt-n { color: var(--dim); font-weight: 400; }
.rc-tip { margin: 0 0 6px; padding: 6px 9px; border-left: 3px solid var(--tube); background: rgba(125, 255, 176, 0.08); color: var(--ink); font-size: 0.86rem; }
.rc-berth.vault { border-color: var(--gold); box-shadow: 0 0 10px rgba(255, 211, 107, 0.45); }
.rc-slips { display: flex; gap: 8px; flex-wrap: wrap; min-height: 46px; padding: 2px 0; }
.rc-slip { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle at 35% 30%, #e0584b, #8c1d16 70%); color: #ffe9c7; font: 700 0.56rem 'Courier New', monospace; letter-spacing: 0.5px; box-shadow: 0 3px 6px rgba(0,0,0,0.6); animation: rc-drop 0.5s ease-out; }
.rc-slip[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(255, 211, 107, 0.9); transform: translateY(-3px); }
@keyframes rc-drop { from { transform: translateY(-40px) scale(1.6); opacity: 0; } }
.rc-pit-go { display: flex; gap: 8px; }
.rc-pit-go .rc-ic { flex: 0 0 auto; white-space: nowrap; }
.rc-forge.ready { background: linear-gradient(180deg, #b9ffd6, #1fd16b); box-shadow: 0 0 20px rgba(31, 209, 107, 0.8); }
.rc-ic:disabled { opacity: 0.4; cursor: default; }
/* the orders card */
.rc-brief { margin: 4px 12px 10px; padding: 10px 12px; border-radius: 12px; background: #0f1220; border: 1px solid #2a3046; }
.rc-brief-h { margin: 0 0 6px; color: var(--gold); font: 400 1rem Impact, 'Arial Black', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.rc-steps { margin: 0; padding-left: 1.3em; font-size: 0.93rem; }
.rc-steps li { margin: 0 0 4px; }
.rc-steps b { color: var(--gold); }
.rc-brief-note { margin: 6px 0 0; color: var(--dim); font-size: 0.88rem; }
.rc.live .rc-brief { display: none; }
.rc-forge { flex: 1 1 auto; min-height: 48px; border-radius: 24px; border: 0; background: linear-gradient(180deg, #ffb347, #c4461a); color: #1c0800; font: 400 1.05rem Impact, 'Arial Black', sans-serif; letter-spacing: 2px; white-space: nowrap; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 16px rgba(255, 140, 40, 0.5); }

.rc-foot { display: flex; gap: 18px; justify-content: center; padding: 16px 12px 0; }
.rc-foot a { color: var(--dim); font: 700 0.8rem 'Courier New', monospace; }

.rc-reveal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: #000; animation: rc-fade 0.6s ease-out; }
.rc-fx { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; animation: rc-zoom 6s ease-out both; }
@keyframes rc-zoom { from { transform: scale(1.25); } }
.rc-reveal-in { position: relative; z-index: 2; text-align: center; padding: 20px; }
.rc-reveal-h { margin: 6px 0 10px; font: 400 clamp(1.6rem, 8.5vw, 3.4rem)/1.05 Impact, 'Arial Black', sans-serif; letter-spacing: 3px; text-transform: uppercase; color: #fff4cf; text-shadow: 0 0 30px rgba(255, 211, 107, 0.95); overflow-wrap: anywhere; }
.rc-reveal-p { max-width: 30em; margin: 0 auto 14px; color: var(--ink); font-size: 0.98rem; text-shadow: 0 1px 4px #000; }
.rc-code { display: inline-block; max-width: 92vw; padding: 10px 14px; margin-bottom: 16px; border-radius: 8px; background: rgba(20, 12, 2, 0.88); border: 1px solid var(--gold); color: var(--gold); font: 700 1rem 'Courier New', monospace; overflow-wrap: anywhere; }
.rc-code:empty { display: none; }
.rc-reveal-go { display: flex; justify-content: center; gap: 10px; }
.rc-reveal-go .rc-join { margin-left: 0; }

@media (min-width: 760px) {
  .rc-stage { height: clamp(320px, calc(100vh - 420px), 640px); border-radius: 12px; margin: 0 12px; }
  .rc.live .rc-stage { height: clamp(280px, calc(100vh - 470px), 560px); }
  .rc-berths { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .rc-tower { width: 200px; font-size: 0.9rem; left: 12px; top: 12px; }
  .rc-goal { padding: 4px 24px 12px; text-align: center; }
  .rc-goal-h { font-size: 2rem; }
  .rc-stakes { font-size: 0.95rem; }
  .rc.live .rc-goal-h { font-size: 1.3rem; }
  .rc-tower li { height: 30px; grid-template-columns: 26px 5px 1fr auto; gap: 5px; padding: 0 6px; }
  .rc-gate i { display: block; }
  .rc-title b { font-size: 1.6rem; }
  .rc-ticker { margin: 8px 12px 0; border-radius: 8px; }
  .rc-call { font-size: 1.2rem; }
  .rc-flag b { font-size: 3rem; }
  .rc-check { width: 220px; height: 140px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
