/* THE SHOW — broadcast overlay on a fixed 1920x1080 stage (scaled to fit). Print look: cream, ink,
   tracksuit teal, hot pink, gold. Hard black shadows, no glow. */
:root {
  --ink: #0d0a08; --cream: #f5f0e6; --teal: #1f8a70; --pink: #ff2e88; --gold: #f2c14e; --red: #ff3b30; --green: #2bd96b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: #000; overflow: hidden; }
body { font-family: Rubik, system-ui, sans-serif; color: var(--ink); cursor: none; }
#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: 50% 50%; overflow: hidden; background: #8fc6e8; }
#world { position: absolute; inset: 0; width: 1920px; height: 1080px; display: block; }

.hide { opacity: 0 !important; pointer-events: none; }

/* top-left bug */
#bug { position: absolute; left: 40px; top: 34px; display: flex; gap: 10px; align-items: stretch; font-weight: 900; }
#bug > span { border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 6px 16px; font-size: 32px; letter-spacing: .02em; }
#bug .live { background: var(--red); color: var(--cream); }
#bug .show { background: var(--cream); font-family: Anton, sans-serif; font-weight: 400; font-size: 40px; padding-top: 2px; }
#bug .ticker { background: var(--gold); }

/* top-center: the light */
#light { position: absolute; left: 50%; top: 30px; transform: translateX(-50%); display: flex; align-items: center; gap: 18px;
  padding: 10px 34px 10px 22px; border: 4px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); background: var(--cream);
  font-family: Anton, sans-serif; font-size: 58px; line-height: 1; letter-spacing: .02em; transition: background .12s, color .12s; }
#light .dot { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--ink); background: #bbb; }
#light.green { background: var(--green); }
#light.green .dot { background: #eaffef; }
#light.red { background: var(--red); color: var(--cream); animation: thump .5s ease-out; }
#light.red .dot { background: #ffd6d2; }
@keyframes thump { 0% { transform: translateX(-50%) scale(1.25); } 100% { transform: translateX(-50%) scale(1); } }

/* top-right board */
#board { position: absolute; right: 40px; top: 30px; display: flex; gap: 12px; }
#board .cell { background: var(--cream); border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 8px 18px 6px; min-width: 150px; text-align: left; }
#board small { display: block; font-weight: 900; font-size: 19px; letter-spacing: .08em; }
#board b { font-family: Anton, sans-serif; font-weight: 400; font-size: 60px; line-height: 1.05; }
#board i { font-style: normal; font-weight: 900; font-size: 20px; margin-left: 4px; }
#board .pot { background: var(--gold); }
#board .bump { animation: bump .35s ease-out; }
@keyframes bump { 0% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* left: knocked-out feed */
#feed { position: absolute; left: 40px; top: 140px; width: 470px; display: flex; flex-direction: column; gap: 8px; }
#feed .row { display: flex; align-items: center; gap: 10px; background: var(--cream); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 6px 12px; font-weight: 700; font-size: 26px; animation: slide .3s ease-out; }
#feed .row b { font-family: Anton, sans-serif; font-weight: 400; font-size: 32px; background: var(--teal); color: var(--cream); padding: 0 8px; }
#feed .row em { margin-left: auto; font-style: normal; font-weight: 900; color: var(--cream); background: var(--red); padding: 2px 8px; transform: rotate(-3deg); }
#feed .row.safe em { background: var(--green); color: var(--ink); }
#feed .row.buy { background: var(--green); }
#feed .row.sell { background: var(--red); color: var(--cream); }
#feed .row.buy em, #feed .row.sell em { background: var(--ink); color: var(--cream); transform: none; }

/* tug meter: where the rope's red ribbon is */
#meter { position: absolute; left: 50%; top: 128px; transform: translateX(-50%); display: flex; align-items: center; gap: 0; transition: opacity .3s; }
#meter .side { font-family: Anton, sans-serif; font-size: 40px; line-height: 1; padding: 8px 16px; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
#meter .l { background: var(--red); color: var(--cream); }
#meter .r { background: var(--green); }
#meter .bar { position: relative; width: 500px; height: 40px; margin: 0 -4px; background: linear-gradient(90deg, #ffb3ad, var(--cream) 50%, #b8f3c9); border: 4px solid var(--ink); }
#meter .mid { position: absolute; left: 50%; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; background: var(--ink); }
#meter b { position: absolute; top: -12px; width: 26px; height: 56px; margin-left: -13px; background: var(--pink); border: 4px solid var(--ink); transition: left .12s linear; }
@keyframes slide { from { transform: translateX(-120%); } to { transform: none; } }

/* lower third: the player on camera */
#lower { position: absolute; left: 40px; bottom: 120px; display: flex; align-items: stretch; transition: opacity .25s; }
#lower > * { border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
#lower b { font-family: Anton, sans-serif; font-weight: 400; font-size: 64px; line-height: 1; background: var(--teal); color: var(--cream); padding: 6px 18px; }
#lower span { background: var(--cream); font-weight: 900; font-size: 34px; padding: 18px 20px 0; border-left: 0; }
#lower em { align-self: flex-end; font-style: normal; font-weight: 900; font-size: 18px; background: var(--gold); padding: 4px 10px; margin-left: -4px; margin-bottom: -12px; }

/* her subtitle */
#sub { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); max-width: 1100px; text-align: center;
  background: var(--pink); color: var(--cream); border: 4px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); padding: 12px 26px;
  font-weight: 900; font-size: 40px; line-height: 1.15; transition: opacity .2s; }
#sub::before { content: attr(data-who); position: absolute; left: -4px; top: -30px; background: var(--ink); color: var(--cream); font-size: 18px; padding: 3px 10px; letter-spacing: .1em; }

/* rules ticker */
#rules { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: var(--ink); color: var(--cream); overflow: hidden; border-top: 4px solid var(--ink); }
#rules .track { position: absolute; top: 0; white-space: nowrap; font-family: Anton, sans-serif; font-size: 36px; line-height: 64px; animation: tick 40s linear infinite; }
#rules .track span { margin: 0 34px; }
#rules .track i { color: var(--gold); font-style: normal; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* game bumper */
#bumper { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .35s; }
#bumper .band { position: absolute; left: -10%; right: -10%; top: 50%; height: 430px; transform: translateY(-50%) rotate(-4deg); background: var(--pink); border-top: 10px solid var(--ink); border-bottom: 10px solid var(--ink); }
#bumper .inner { position: relative; text-align: center; color: var(--cream); }
#bumper small { font-family: Anton, sans-serif; font-size: 44px; color: var(--ink); background: var(--gold); padding: 0 16px; }
#bumper h1 { font-family: Anton, sans-serif; font-weight: 400; font-size: 220px; line-height: 1; -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; text-shadow: 12px 12px 0 var(--ink); }
#bumper h2 { font-family: Anton, sans-serif; font-weight: 400; font-size: 76px; color: var(--ink); }
#bumper:not(.hide) .band { animation: band .5s cubic-bezier(.2,1.4,.4,1); }
#bumper:not(.hide) h1 { animation: pop .5s .1s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes band { from { transform: translateY(-50%) rotate(-4deg) scaleX(0); } }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

/* results */
#results { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 1180px; background: var(--cream); border: 6px solid var(--ink); box-shadow: 14px 14px 0 var(--ink); padding: 34px 44px; text-align: center; transition: opacity .4s; }
#results small { font-family: Anton, sans-serif; font-size: 34px; background: var(--ink); color: var(--cream); padding: 0 14px; }
#results h1 { font-family: Anton, sans-serif; font-weight: 400; font-size: 130px; line-height: 1.05; color: var(--teal); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
#results p { font-weight: 900; font-size: 32px; margin-top: 4px; }
#results p.each { display: inline-block; background: var(--gold); border: 4px solid var(--ink); padding: 6px 18px; margin-top: 14px; }
#resList { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
#resList b { font-family: Anton, sans-serif; font-weight: 400; font-size: 24px; background: var(--teal); color: var(--cream); border: 3px solid var(--ink); padding: 0 8px; }

/* season strip: the 8 games, done ones struck */
#season { position: absolute; left: 40px; top: 100px; display: flex; gap: 6px; }
#season span { font-family: Anton, sans-serif; font-size: 23px; line-height: 1; padding: 5px 9px 4px; background: var(--cream); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
#season span.done { background: #cfc6b4; color: #6d6558; text-decoration: line-through; }
#season span.now { background: var(--pink); color: var(--cream); transform: translateY(-3px); }
#season span.final { background: var(--gold); }
#feed { top: 156px; }

/* between games */
#next { position: absolute; left: 50%; top: 200px; transform: translateX(-50%); min-width: 820px; text-align: center; background: var(--cream); border: 6px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); padding: 22px 40px 26px; transition: opacity .4s; }
#next small { font-family: Anton, sans-serif; font-size: 30px; background: var(--ink); color: var(--cream); padding: 0 14px; }
#next h2 { font-family: Anton, sans-serif; font-weight: 400; font-size: 110px; line-height: 1.05; color: var(--pink); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
#next p { font-weight: 900; font-size: 34px; }
#next p b { font-family: Anton, sans-serif; font-weight: 400; font-size: 48px; background: var(--gold); padding: 0 12px; border: 3px solid var(--ink); }
#nextList { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; max-width: 980px; }
#nextList b, #resList b { font-family: Anton, sans-serif; font-weight: 400; font-size: 22px; background: var(--teal); color: var(--cream); border: 3px solid var(--ink); padding: 0 7px; }
#nextList b.new { background: var(--gold); color: var(--ink); }

#jump { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); display: flex; align-items: stretch; transition: opacity .3s; animation: nudge 1s ease-in-out infinite; }
#jump > * { border: 5px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); font-family: Anton, sans-serif; font-weight: 400; font-style: normal; padding: 8px 20px; }
#jump b { background: var(--green); font-size: 56px; line-height: 1; }
#jump span { background: var(--cream); font-size: 44px; line-height: 1.25; border-left: 0; }
#jump i { background: var(--red); color: var(--cream); font-size: 50px; line-height: 1.1; border-left: 0; }
@keyframes nudge { 50% { transform: translateX(-50%) translateY(-6px); } }

/* the season winner */
#winner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 1200px; text-align: center; background: var(--gold); border: 8px solid var(--ink); box-shadow: 16px 16px 0 var(--ink); padding: 30px 40px 30px; transition: opacity .5s; }
#winner small { font-family: Anton, sans-serif; font-size: 40px; background: var(--ink); color: var(--cream); padding: 0 16px; }
#winner h1 { font-family: Anton, sans-serif; font-weight: 400; font-size: 230px; line-height: 1; color: var(--teal); -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; text-shadow: 10px 10px 0 var(--ink); }
#winner h2 { font-weight: 900; font-size: 54px; }
#winner .prize { font-weight: 900; font-size: 46px; margin-top: 8px; }
#winner .prize b { font-family: Anton, sans-serif; font-weight: 400; font-size: 84px; background: var(--cream); border: 5px solid var(--ink); padding: 0 18px; }
#winPodium { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
#winPodium div { background: var(--cream); border: 4px solid var(--ink); padding: 6px 16px; font-weight: 900; font-size: 26px; }
#winner .note { font-weight: 900; font-size: 26px; margin-top: 16px; }
#winner:not(.hide) h1 { animation: pop .6s cubic-bezier(.2,1.6,.4,1) both; }

/* the contract address: bottom right, above the rules bar */
#ca { position: absolute; right: 40px; bottom: 80px; display: flex; align-items: stretch; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); background: var(--cream); font-weight: 900; font-size: 22px; cursor: pointer; }
#ca small { background: var(--ink); color: var(--cream); font-family: Anton, sans-serif; font-size: 24px; padding: 4px 10px; }
#ca span { padding: 6px 12px; letter-spacing: .02em; }
body.web #view { bottom: 146px; }
#nosound { position: absolute; left: 50%; top: 110px; transform: translateX(-50%); background: var(--red); color: var(--cream); font-family: Anton, sans-serif; font-size: 30px; padding: 4px 16px; border: 4px solid var(--ink); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }
/* the jump-in window: the subtitle moves up so the buy box is never covered */
body.window #sub { bottom: 230px; }

/* hover name tag (free cam) */
#tag { position: absolute; transform: translate(-50%, -100%); background: var(--cream); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 4px 10px; font-weight: 900; font-size: 20px; pointer-events: none; white-space: nowrap; }
#tag b { font-family: Anton, sans-serif; font-weight: 400; background: var(--teal); color: var(--cream); padding: 0 6px; margin-right: 8px; }

/* the player card */
#card { position: absolute; right: 40px; top: 150px; width: 560px; background: var(--cream); border: 5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: 18px 20px 16px; transition: opacity .25s; cursor: default; }
#card .top { display: flex; gap: 16px; align-items: center; }
#cardFace { width: 150px; height: 150px; background: var(--gold); border: 4px solid var(--ink); border-radius: 50%; }
#card .id { flex: 1; min-width: 0; }
#card .id > b { display: inline-block; font-family: Anton, sans-serif; font-weight: 400; font-size: 72px; line-height: 1; background: var(--teal); color: var(--cream); padding: 2px 14px; border: 4px solid var(--ink); }
#card .id > span { display: block; margin-top: 8px; font-weight: 900; font-size: 22px; word-break: break-all; }
#card .links { display: flex; gap: 6px; margin-top: 8px; }
#card .links a, #card .links button, #card .btns button, #cardClose { font-family: Anton, sans-serif; font-size: 20px; padding: 3px 10px; background: var(--cream); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); color: var(--ink); text-decoration: none; cursor: pointer; }
#card .links a:active, #card .links button:active, #card .btns button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
#cardClose { position: absolute; right: -14px; top: -14px; background: var(--red); color: var(--cream); font-size: 22px; padding: 2px 10px; }
#card .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
#card .grid div { background: #fff; border: 3px solid var(--ink); padding: 6px 10px 4px; }
#card .grid small { display: block; font-weight: 900; font-size: 13px; letter-spacing: .08em; }
#card .grid b { display: block; font-family: Anton, sans-serif; font-weight: 400; font-size: 32px; line-height: 1.05; }
#card .grid b.out { color: var(--red); }
#card .grid b.in { color: var(--teal); }
#card .grid i { display: block; font-style: normal; font-weight: 700; font-size: 14px; color: #5b554b; }
#card .all { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 12px; font-weight: 900; font-size: 16px; }
#card .all small { background: var(--ink); color: var(--cream); font-family: Anton, sans-serif; font-size: 18px; padding: 2px 8px; }
#card .all b { font-family: Anton, sans-serif; font-weight: 400; font-size: 22px; }
#cardLive { margin-top: 12px; background: var(--gold); border: 3px solid var(--ink); padding: 6px 12px; font-weight: 900; font-size: 20px; text-align: center; }
#card .btns { display: flex; gap: 10px; margin-top: 12px; }
#card .btns button { flex: 1; font-size: 26px; padding: 6px; }
#card .btns #cardFollow { background: var(--pink); color: var(--cream); }

/* web viewers: pick the camera (hidden on the stream page, ?stream=1) */
body.web { cursor: default; }
body.web #world { cursor: grab; }
body.web.free #world:active { cursor: grabbing; }
#view { position: absolute; right: 40px; bottom: 84px; display: flex; align-items: center; gap: 10px; transition: opacity .3s; }
#view button { font-family: Anton, sans-serif; font-size: 26px; padding: 6px 16px; background: var(--cream); border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); cursor: pointer; }
#view button.on { background: var(--pink); color: var(--cream); }
#view button:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
#viewHint { font-weight: 900; font-size: 16px; background: var(--ink); color: var(--cream); padding: 6px 10px; display: none; }
body.free #viewHint { display: block; }

/* map tour (?tour): pick a map, fly around it */
body.tour #ca, body.tour #card, body.tour #bug, body.tour #board, body.tour #feed, body.tour #light, body.tour #season, body.tour #rules, body.tour #view, body.tour #sub, body.tour #lower, body.tour #meter, body.tour #bumper, body.tour #next, body.tour #jump { display: none !important; }
#tour { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; width: 1800px; transition: opacity .3s; }
#tour small { font-family: Anton, sans-serif; font-size: 30px; background: var(--ink); color: var(--cream); padding: 4px 14px; }
#tourMaps { display: flex; gap: 8px; }
#tour button { font-family: Anton, sans-serif; font-size: 28px; padding: 8px 16px; background: var(--cream); border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); cursor: pointer; }
#tour button.on { background: var(--pink); color: var(--cream); }
#tour span { flex-basis: 100%; text-align: center; font-weight: 900; font-size: 18px; color: var(--cream); text-shadow: 0 2px 6px #000; }
#tourName { position: absolute; left: 50%; top: 36px; transform: translateX(-50%); font-family: Anton, sans-serif; font-size: 90px; color: var(--cream); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 8px 8px 0 var(--ink); white-space: nowrap; }

#loading { position: absolute; inset: 0; display: grid; place-items: center; background: #8fc6e8; font-family: Anton, sans-serif; font-size: 70px; color: var(--cream); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; transition: opacity .6s; }
