/* ============================================================
   Top Bay marketing page — layered on wow-marketing.css.

   Same WOW V2 world (graphite ground, ivory type, Schibsted display,
   Plex Mono operational labels). Local to this page: the Top Bay
   brand pair (gold + credit teal, the same hues the product uses)
   and the simulated dashboards/games.

   Motion contract (site standard): the server-rendered markup is the
   FINISHED state — complete and readable with no JS and under
   prefers-reduced-motion. wow-topbay-mk.js adds .tbm-anim to <main>
   only when motion is allowed. No scroll hooks, no wheel/touch
   listeners; page scrolling is never touched.
   ============================================================ */

.tbm { --tb-gold: #ffc043; --tb-credit: #34d8c9; }

/* shared simulated-data disclosure line */
.tc-simline {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); margin: 14px 0 0;
}
.tbm .mk-sec.panel .tc-simline,
.tbm-sim .tc-simline, .tbm-sales .tc-simline { color: var(--silver); }
.tbm .mk-sec.panel .mk-eyebrow { color: var(--silver); }
.tbm .mk-h1 .dim, .tbm .mk-h2 .dim { color: var(--silver); }
.tbm .mk-h1 span { display: block; }

/* -------- hero -------- */
.tbm-hero { position: relative; overflow: hidden; padding-top: 72px; }
.tbm-hero-glow {
  position: absolute; top: -240px; right: -140px; width: 660px; height: 660px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 192, 67, .12), transparent 62%);
}
.tbm-anim .tbm-hero-glow { animation: tbmGlow 10s ease-in-out infinite alternate; }
@keyframes tbmGlow { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-46px,30px,0) scale(1.07); } }
.tbm-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: center; position: relative; }
.tbm-mark { width: 60px; height: 60px; margin-bottom: 20px; filter: drop-shadow(0 8px 20px rgba(255, 192, 67, .22)); }
.tbm-mark svg { display: block; width: 100%; height: 100%; }
.tbm-hero .mk-h1 { font-size: clamp(34px, 4.6vw, 58px); }

.tbm-pill-row { margin: 0 0 26px; }
.tbm-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; font-weight: 600;
  color: var(--tb-gold); border: 1px solid rgba(255, 192, 67, .38);
  background: rgba(255, 192, 67, .09); border-radius: 999px; padding: 8px 16px;
}
.tbm-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tb-gold); }
.tbm-anim .tbm-pill .dot { animation: tbmPulse 2.2s infinite; }
@keyframes tbmPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 192, 67, .5); }
  70% { box-shadow: 0 0 0 9px rgba(255, 192, 67, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 192, 67, 0); }
}

/* -------- hero simulation -------- */
.tbm-sim {
  position: relative; background: var(--panel); border: 1px solid var(--line2);
  border-radius: 16px; padding: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.tbm-sim-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tbm-sim-brand { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; font-weight: 600; color: var(--tb-gold); }
.tbm-sim-live { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.tbm-sim-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.tbm-anim .tbm-sim-live i { animation: tbmPulse 2.2s infinite; }

.tbm-sale {
  border: 1px solid rgba(41, 196, 106, .45); background: rgba(41, 196, 106, .07);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 14px;
  display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap;
}
.tbm-sale b { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--white); }
.tbm-sale-badge { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--green); }
.tbm-sale-badge em { font-style: normal; color: var(--tb-credit); }
.tbm-anim .tbm-sale { opacity: 0; transform: translateY(-8px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,.8,.3,1); }
.tbm-anim .tbm-sale.in { opacity: 1; transform: none; }

.tbm-sim-grid { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-bottom: 14px; }
.tbm-sim-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel2); }
.tbm-sim-card .k { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--silver); margin-bottom: 6px; }
.tbm-sim-card .v { font-family: var(--disp); font-weight: 800; font-size: 24px; color: var(--white); }
.tbm-sim-card .v small { font-size: 12px; color: var(--tb-credit); letter-spacing: .08em; }
.tbm-sim-card .v.sm { font-size: 13px; font-family: var(--mono); font-weight: 600; letter-spacing: .08em; color: var(--bright); }
.tbm-chal-track { display: inline-flex; gap: 6px; margin: 2px 0 8px; }
.tbm-chal-track i { width: 26px; height: 10px; border-radius: 5px; background: var(--line); display: inline-block; transition: background .4s ease, box-shadow .4s ease; }
.tbm-chal-track i.on { background: var(--tb-credit); box-shadow: 0 2px 10px rgba(52, 216, 201, .35); }

.tbm-sim-standings { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel2); }
.tbm-sim-standings .k { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--silver); margin-bottom: 8px; }
.tbm-sim-standings ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tbm-sim-standings li {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center;
  font-size: 13px; padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, .02);
  transition: transform .55s cubic-bezier(.22,.8,.3,1), background .4s ease, border-color .4s ease;
  border: 1px solid transparent;
}
.tbm-sim-standings .rk { font-family: var(--mono); font-size: 11px; color: var(--silver); }
.tbm-sim-standings .nm { font-weight: 600; color: var(--white); letter-spacing: .04em; }
.tbm-sim-standings .nm .you {
  font-style: normal; font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em;
  color: var(--tb-gold); border: 1px solid rgba(255, 192, 67, .4); border-radius: 999px;
  padding: 1.5px 7px; margin-left: 7px; vertical-align: 1px;
}
.tbm-sim-standings .cr { font-family: var(--mono); font-size: 12.5px; color: var(--tb-credit); }
.tbm-sim-standings li.lead { border-color: rgba(255, 192, 67, .45); background: rgba(255, 192, 67, .06); }

.tbm-chalwin {
  position: absolute; inset: auto 18px 44px 18px; text-align: center;
  border: 1px solid rgba(255, 192, 67, .5); background: rgba(26, 22, 12, .96);
  border-radius: 12px; padding: 14px; opacity: 0; transform: scale(.92); pointer-events: none;
  transition: opacity .4s ease, transform .4s cubic-bezier(.2, 1.1, .4, 1);
}
.tbm-chalwin.on { opacity: 1; transform: none; }
.tbm-chalwin b { display: block; font-family: var(--mono); font-size: 14px; letter-spacing: .18em; color: var(--tb-gold); }
.tbm-chalwin span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--tb-credit); }

/* -------- advisor steps -------- */
.tbm-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 44px; }
.tbm-step { border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; background: rgba(255, 255, 255, .02); }
.tbm-step .n { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--tb-gold); }
.tbm-step h3 { margin: 10px 0 7px; font-size: 15.5px; font-weight: 700; color: var(--white); }
.tbm-step p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--bright); }
.tbm-anim .tbm-step { opacity: 0; transform: translateY(14px); }
.tbm-anim .tbm-steps.in .tbm-step { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.22,.8,.3,1); }
.tbm-anim .tbm-steps.in .tbm-step:nth-child(2) { transition-delay: .08s; }
.tbm-anim .tbm-steps.in .tbm-step:nth-child(3) { transition-delay: .16s; }
.tbm-anim .tbm-steps.in .tbm-step:nth-child(4) { transition-delay: .24s; }
.tbm-anim .tbm-steps.in .tbm-step:nth-child(5) { transition-delay: .32s; }

/* -------- games -------- */
.tbm-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 44px; }
.tbm-game { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: rgba(255, 255, 255, .02); }
.tbm-game h3 { margin: 16px 0 6px; font-size: 16px; font-weight: 700; color: var(--white); }
.tbm-game p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--bright); }
.tbm-game-stage {
  height: 118px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}

.tbm-wheel { position: relative; width: 92px; height: 92px; }
.tbm-wheel .disc {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--tb-gold) 0 60deg, #2a3038 60deg 120deg, var(--tb-credit) 120deg 180deg,
    #2a3038 180deg 240deg, var(--tb-gold) 240deg 300deg, #222831 300deg 360deg);
  border: 2px solid var(--line2);
}
.tbm-anim .tbm-games.in .tbm-wheel .disc { animation: tbmSpin 3.4s cubic-bezier(.16,.84,.28,1) .2s; }
@keyframes tbmSpin { from { transform: rotate(0); } to { transform: rotate(1030deg); } }
.tbm-wheel .hub {
  position: absolute; inset: 30px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFD277, #C9861A 72%); border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  font-family: var(--disp); font-weight: 800; font-size: 9px; letter-spacing: .04em; color: #2A1D02;
}
.tbm-wheel .hub em { font-style: normal; font-size: 7px; letter-spacing: .12em; }
/* Lucky Wheel's table is greener: more paying wedges, one big one. */
.tbm-wheel.lw .disc {
  background: conic-gradient(var(--tb-gold) 0 52deg, #1E8A4C 52deg 128deg, #2a3038 128deg 168deg,
    #1E8A4C 168deg 244deg, #C9861A 244deg 300deg, #1E8A4C 300deg 360deg);
}
.tbm-wheel .ptr {
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-top: 11px solid var(--white);
}

.tbm-reels { display: flex; gap: 8px; }
.tbm-reels { position: relative; padding: 6px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line2); }
.tbm-reels .rl {
  width: 34px; height: 46px; border-radius: 6px; border: 1px solid var(--line2);
  background: linear-gradient(180deg, #f4f1ea, #d9d4c8);
  box-shadow: inset 0 6px 10px -6px rgba(0, 0, 0, .5), inset 0 -6px 10px -6px rgba(0, 0, 0, .5);
  position: relative;
}
/* A chevron per drum, drawn with borders — the same mark the app uses. */
.tbm-reels .rl::after {
  content: ""; position: absolute; left: 50%; top: 52%; width: 13px; height: 13px;
  transform: translate(-50%, -50%) rotate(-45deg);
  border-left: 3px solid #A66A12; border-top: 3px solid #A66A12; border-radius: 2px;
}
.tbm-reels .pay {
  position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; transform: translateY(-1px);
  background: linear-gradient(90deg, transparent, var(--tb-gold), transparent); opacity: .55;
}
.tbm-anim .tbm-reels .rl { opacity: 0; transform: translateY(-10px); }
.tbm-anim .tbm-games.in .tbm-reels .rl { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s cubic-bezier(.22,.8,.3,1); }
.tbm-anim .tbm-games.in .tbm-reels .r2 { transition-delay: .5s; }
.tbm-anim .tbm-games.in .tbm-reels .r3 { transition-delay: 1.05s; }

.tbm-cards { display: flex; gap: 8px; }
.tbm-cards .cd {
  width: 38px; height: 54px; border-radius: 7px; background: var(--panel2); border: 1px solid var(--line2); position: relative;
}
.tbm-cards .cd.flip { transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.9,.3,1) .9s; }
.tbm-anim .tbm-games.in .tbm-cards .cd.flip { transform: rotateY(180deg); }
.tbm-cards .cd.flip i {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 600;
  backface-visibility: hidden; border-radius: 7px;
}
.tbm-cards .cd.flip .back { color: var(--silver); background: var(--panel2); }
.tbm-cards .cd.flip .front { transform: rotateY(180deg); color: var(--tb-gold); background: rgba(255, 192, 67, .1); border: 1px solid rgba(255, 192, 67, .45); }

.tbm-scratch { display: flex; gap: 8px; }
.tbm-scratch .sc {
  width: 44px; height: 44px; border-radius: 9px; position: relative; overflow: hidden;
  border: 1px solid var(--line2); background: linear-gradient(135deg, #3a4150, #232936);
}
.tbm-scratch .sc i, .tbm-scratch .sc b {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal;
}
.tbm-scratch .sc i { color: rgba(255, 255, 255, .3); font-size: 15px; transition: opacity .45s ease; }
.tbm-scratch .sc b { font-family: var(--mono); font-size: 12px; color: var(--tb-credit); opacity: 0; transition: opacity .45s ease; }
.tbm-anim .tbm-games.in .tbm-scratch .s1 i { opacity: 0; transition-delay: .4s; }
.tbm-anim .tbm-games.in .tbm-scratch .s1 b { opacity: 1; transition-delay: .4s; }
.tbm-anim .tbm-games.in .tbm-scratch .s2 i { opacity: 0; transition-delay: .85s; }
.tbm-anim .tbm-games.in .tbm-scratch .s2 b { opacity: 1; transition-delay: .85s; }
.tbm-anim .tbm-games.in .tbm-scratch .s3 i { opacity: 0; transition-delay: 1.3s; }
.tbm-anim .tbm-games.in .tbm-scratch .s3 b { opacity: 1; transition-delay: 1.3s; }
main:not(.tbm-anim) .tbm-scratch .sc i { opacity: 0; }
main:not(.tbm-anim) .tbm-scratch .sc b { opacity: 1; }

.tbm-dice { display: flex; gap: 10px; }
.tbm-dice .die {
  width: 46px; height: 46px; border-radius: 10px; position: relative;
  background: linear-gradient(155deg, #FBFAF7, #E0DBD0);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14), inset 0 2px 0 rgba(255, 255, 255, .9), 0 6px 12px -6px rgba(0, 0, 0, .6);
}
.tbm-dice .die i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #1A1D1F; }
.tbm-dice .die i:nth-child(1) { left: 8px; top: 8px; }
.tbm-dice .die i:nth-child(2) { right: 8px; top: 8px; }
.tbm-dice .die i:nth-child(3) { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.tbm-dice .die i:nth-child(4) { left: 8px; bottom: 8px; }
.tbm-dice .die i:nth-child(5) { right: 8px; bottom: 8px; }
.tbm-anim .tbm-games.in .tbm-dice .die { animation: tbmDie .8s cubic-bezier(.3,.9,.3,1) .3s; }
.tbm-anim .tbm-games.in .tbm-dice .d2 { animation-delay: .45s; }
@keyframes tbmDie { 0% { transform: translateY(-14px) rotate(-16deg); } 60% { transform: translateY(2px) rotate(6deg); } 100% { transform: none; } }

/* Mystery Toolbox is a rolling tool chest now, drawn rather than typed: the
   app layer removed every emoji from the games in August and this page still
   carried a red plastic toolbox glyph. */
.tbm-chest {
  width: 74px; display: flex; flex-direction: column; gap: 4px; padding: 7px 6px 9px;
  border-radius: 7px; border: 1px solid var(--line2);
  background: linear-gradient(180deg, #2c333c, #20262d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  position: relative;
}
.tbm-chest::after {   /* castors */
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -4px; height: 4px;
  border-radius: 0 0 4px 4px; background: #171b20;
}
.tbm-chest .dw {
  height: 13px; border-radius: 3px; border: 1px solid var(--line2);
  background: linear-gradient(180deg, #39414c, #2a313a);
  position: relative;
}
.tbm-chest .dw::before {   /* the pull handle */
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px;
  transform: translate(-50%, -50%); border-radius: 2px; background: rgba(255, 255, 255, .22);
}
.tbm-chest .dw.mid { border-color: rgba(255, 192, 67, .5); }
.tbm-anim .tbm-games.in .tbm-chest .dw.mid { animation: tbmDrawer 1.1s cubic-bezier(.22,1,.36,1) .6s; }
@keyframes tbmDrawer { 0% { transform: none; } 45% { transform: translateX(13px); } 100% { transform: none; } }

/* Lug Nut Drop: a lattice, a nut, three bins. Static unless motion is allowed. */
.tbm-drop { position: relative; width: 96px; height: 86px; }
.tbm-drop .pg { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--line2); }
.tbm-drop .p1 { left: 18px; top: 26px; } .tbm-drop .p2 { left: 46px; top: 26px; } .tbm-drop .p3 { left: 74px; top: 26px; }
.tbm-drop .p4 { left: 32px; top: 42px; } .tbm-drop .p5 { left: 60px; top: 42px; }
.tbm-drop .p6 { left: 18px; top: 58px; } .tbm-drop .p7 { left: 46px; top: 58px; } .tbm-drop .p8 { left: 74px; top: 58px; }
.tbm-drop .p9 { left: 46px; top: 10px; background: transparent; }
.tbm-drop .nut {
  position: absolute; left: 44px; top: 4px; width: 9px; height: 9px; border-radius: 2px;
  background: var(--tb-gold); transform: rotate(45deg);
}
.tbm-anim .tbm-games.in .tbm-drop .nut { animation: tbmDrop 1.9s cubic-bezier(.4,0,.7,1) .4s; }
@keyframes tbmDrop {
  0% { transform: translate(0, 0) rotate(45deg); }
  30% { transform: translate(-12px, 24px) rotate(120deg); }
  60% { transform: translate(6px, 44px) rotate(220deg); }
  100% { transform: translate(-2px, 62px) rotate(300deg); }
}
.tbm-drop .bin {
  position: absolute; bottom: 0; width: 28px; height: 16px; border-radius: 0 0 4px 4px;
  border: 1px solid var(--line2); border-top: 0; background: var(--panel2);
}
.tbm-drop .b1 { left: 4px; } .tbm-drop .b2 { left: 34px; } .tbm-drop .b3 { left: 64px; }
.tbm-drop .bin.hit { border-color: rgba(255, 192, 67, .55); background: rgba(255, 192, 67, .12); }

/* Parts Claw: a rail, a cable, jaws, three bins. */
.tbm-claw { position: relative; width: 96px; height: 86px; }
.tbm-claw .rail { position: absolute; left: 4px; right: 4px; top: 8px; height: 3px; border-radius: 2px; background: var(--line2); }
.tbm-claw .cable { position: absolute; left: 30px; top: 10px; width: 2px; height: 26px; background: var(--line2); }
.tbm-claw .grab {
  position: absolute; left: 22px; top: 34px; width: 18px; height: 12px;
  border: 2px solid var(--tb-gold); border-top: 0; border-radius: 0 0 8px 8px;
}
.tbm-anim .tbm-games.in .tbm-claw .cable { animation: tbmCable 2.2s cubic-bezier(.3,.8,.3,1) .4s; }
.tbm-anim .tbm-games.in .tbm-claw .grab { animation: tbmGrab 2.2s cubic-bezier(.3,.8,.3,1) .4s; }
@keyframes tbmCable { 0%, 100% { height: 26px; } 45% { height: 44px; } }
@keyframes tbmGrab { 0%, 100% { transform: none; } 45% { transform: translateY(18px); } 70% { transform: translateY(6px) rotate(-6deg); } }
.tbm-claw .bins { position: absolute; left: 4px; right: 4px; bottom: 0; display: flex; gap: 6px; }
.tbm-claw .bins i {
  flex: 1; height: 18px; border-radius: 3px 3px 0 0; border: 1px solid var(--line2); border-bottom: 0;
  background: var(--panel2);
}


.tbm-wl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.tbm-wl-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: rgba(255, 255, 255, .02); }
.tbm-wl-card .tag {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; font-weight: 600;
  border-radius: 999px; padding: 5px 12px; margin-bottom: 14px;
}
.tbm-wl-card.win .tag { color: var(--green); border: 1px solid rgba(41, 196, 106, .5); background: rgba(41, 196, 106, .08); }
.tbm-wl-card.lose .tag { color: var(--silver); border: 1px solid var(--line2); background: var(--panel2); }
.tbm-wl-stage {
  position: relative; height: 150px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; overflow: hidden;
  margin-bottom: 14px; padding: 0 14px; text-align: center;
}
.tbm-wl-stage .line { font-family: var(--disp); font-weight: 800; font-size: clamp(17px, 2vw, 21px); color: var(--white); }
.tbm-wl-card.win .line { color: var(--tb-gold); }
.tbm-wl-stage .sub { font-size: 13px; color: var(--bright); }
.tbm-wl-stage .chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--tb-credit);
  border: 1px solid rgba(52, 216, 201, .45); border-radius: 999px; padding: 5px 13px; margin-top: 4px;
}
.tbm-wl-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--bright); }
.tbm-wl-stage .coin { background: radial-gradient(circle at 34% 30%, #FFD277, #C9861A 72%); border-radius: 50%; width: 15px; height: 15px; position: absolute; top: -16%; opacity: 0; }
.tbm-wl-stage .c1 { left: 26%; } .tbm-wl-stage .c2 { left: 49%; } .tbm-wl-stage .c3 { left: 70%; }
.tbm-anim .tbm-wl-card.win.play .coin { animation: tbmCoin 1.3s cubic-bezier(.3,.1,.4,1) forwards; }
.tbm-anim .tbm-wl-card.win.play .c2 { animation-delay: .18s; }
.tbm-anim .tbm-wl-card.win.play .c3 { animation-delay: .34s; }
@keyframes tbmCoin { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateY(170px) rotate(90deg); opacity: .85; } }
.tbm-anim .tbm-wl-card.lose.play .line { animation: tbl-wobble-mk .55s ease .15s; display: inline-block; }
@keyframes tbl-wobble-mk { 0%,100% { transform: none; } 25% { transform: rotate(-1.6deg); } 55% { transform: rotate(1.4deg); } 80% { transform: rotate(-.5deg); } }

/* -------- challenge race -------- */
.tbm-race { border: 1px solid var(--line2); border-radius: 16px; background: var(--panel); padding: 18px; position: relative; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.tbm-race-hd { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; }
.tbm-race-hd span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--silver); }
.tbm-race-hd b { font-family: var(--disp); font-weight: 800; font-size: 17px; color: var(--white); }
.tbm-race-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.tbm-race-row .nm { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--bright); }
.tbm-race-row .pips { display: inline-flex; gap: 6px; }
.tbm-race-row .pips i { width: 30px; height: 11px; border-radius: 5px; background: var(--line); transition: background .4s ease, box-shadow .4s ease; }
.tbm-race-row .pips i.on { background: var(--tb-gold); box-shadow: 0 2px 10px rgba(255, 192, 67, .3); }
.tbm-race-row .ct { font-family: var(--mono); font-size: 12px; color: var(--silver); }
.tbm-race-win {
  position: absolute; inset: auto 18px 18px 18px; text-align: center;
  border: 1px solid rgba(255, 192, 67, .5); background: rgba(26, 22, 12, .97);
  border-radius: 12px; padding: 13px; opacity: 0; transform: scale(.94); pointer-events: none;
  transition: opacity .4s ease, transform .4s cubic-bezier(.2, 1.1, .4, 1);
}
.tbm-race-win.on { opacity: 1; transform: none; }
.tbm-race-win b { display: block; font-family: var(--mono); font-size: 14px; letter-spacing: .18em; color: var(--tb-gold); }
.tbm-race-win span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--tb-credit); }

/* -------- standings board -------- */
.tbm-board { border: 1px solid var(--line2); border-radius: 16px; background: var(--panel); padding: 10px; margin-top: 40px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.tbm-board-row {
  display: grid; grid-template-columns: 30px 34px 1fr auto auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 10px; transition: background .4s ease;
}
.tbm-board-row + .tbm-board-row { border-top: 1px solid var(--line); }
.tbm-board-row .rk { font-family: var(--mono); font-size: 13px; color: var(--silver); }
.tbm-board-row .av {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: #241802; background: var(--tb-gold);
}
.tbm-board-row .av.m { background: var(--tb-credit); color: #04241a; }
.tbm-board-row .av.j { background: var(--blue); color: #fff; }
.tbm-board-row .av.c { background: var(--silver); color: #16181A; }
.tbm-board-row .nm { font-weight: 700; letter-spacing: .04em; color: var(--white); }
.tbm-board-row .note { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--green); }
.tbm-board-row .cr { font-family: var(--mono); font-size: 14px; color: var(--tb-credit); }
.tbm-board-row.flash { background: rgba(41, 196, 106, .07); }

/* -------- wall / TV -------- */
.tbm-tv-wrap { max-width: 640px; margin: 44px auto 0; }
.tbm-tv {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  border: 6px solid #1a1d22; background: #0a0c0f; box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}
.tbm-tv-foot { width: 120px; height: 10px; margin: 0 auto; background: #1a1d22; border-radius: 0 0 8px 8px; }
.tbm-tv-pane {
  position: absolute; inset: 0; padding: clamp(14px, 4vw, 30px);
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
  opacity: 0; transition: opacity .6s ease; pointer-events: none;
}
.tbm-tv-pane.on { opacity: 1; }
.tbm-tv-pane .k { font-family: var(--mono); font-size: clamp(9px, 1.6vw, 11px); letter-spacing: .18em; color: var(--tb-gold); }
.tbm-tv-pane .big { font-family: var(--disp); font-weight: 800; font-size: clamp(18px, 3.6vw, 30px); color: var(--white); }
.tbm-tv-pane .big.gold { color: var(--tb-gold); }
.tbm-tv-pane .row { display: flex; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 8px; }
.tbm-tv-pane .row b { font-family: var(--mono); font-size: clamp(10px, 1.9vw, 13px); letter-spacing: .1em; color: var(--white); }
.tbm-tv-pane .row span { font-family: var(--mono); font-size: clamp(10px, 1.9vw, 13px); color: var(--tb-credit); }
main:not(.tbm-anim) .tbm-tv-pane { position: static; opacity: 1; border-top: 1px solid var(--line); }
main:not(.tbm-anim) .tbm-tv { aspect-ratio: auto; }

/* -------- manager grid -------- */
.tbm-mgr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.tbm-mgr { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: rgba(255, 255, 255, .02); }
.tbm-mgr .ico {
  width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; background: rgba(255, 192, 67, .12); color: var(--tb-gold);
}
.tbm-mgr .ico svg { width: 19px; height: 19px; }
.tbm-mgr h3 { margin: 0 0 7px; font-size: 16px; font-weight: 700; color: var(--white); }
.tbm-mgr p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--bright); }

/* -------- split + all sales -------- */
.tbm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; }
.tbm-split.rev { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }
.tbm-sales { border: 1px solid var(--line2); border-radius: 16px; background: var(--panel); padding: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.tbm-sales-hd { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--silver); margin-bottom: 10px; }
.tbm-sales-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.tbm-sales-row .ro { font-family: var(--mono); font-size: 11px; color: var(--silver); }
.tbm-sales-row .what { color: var(--white); font-weight: 600; }
.tbm-sales-row .who { color: var(--bright); }
.tbm-sales-row .cr { font-family: var(--mono); font-size: 11.5px; color: var(--tb-credit); }

/* -------- done card + form errors -------- */
.tbm-done { text-align: center; }
.tbm-done .ico {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(52, 216, 201, .14); color: var(--tb-credit);
}
.tbm-done .ico svg { width: 26px; height: 26px; }
.tbm .mk-field.bad input, .tbm .mk-field.bad select { border-color: rgba(232, 67, 58, .75); }
.tbm-err { display: block; margin-top: 6px; font-size: 12.5px; color: #FF8A80; }

/* -------- generic reveal -------- */
.tbm-anim .tbm-rev { opacity: 0; transform: translateY(18px); }
.tbm-anim .tbm-rev.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.22,.8,.3,1); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .tbm-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .tbm-sim { max-width: 560px; }
  .tbm-steps { grid-template-columns: repeat(2, 1fr); }
  .tbm-games { grid-template-columns: repeat(2, 1fr); }
  .tbm-mgr-grid { grid-template-columns: repeat(2, 1fr); }
  .tbm-split, .tbm-split.rev { grid-template-columns: 1fr; gap: 44px; }
  .tbm-split.rev .tbm-sales { order: 2; }
  .tbm-wl { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tbm-hero { padding-top: 48px; }
  .tbm-steps { grid-template-columns: 1fr; }
  .tbm-games { grid-template-columns: 1fr; }
  .tbm-mgr-grid { grid-template-columns: 1fr; }
  .tbm-sim-grid { grid-template-columns: 1fr; }
  .tbm-sales-row { grid-template-columns: auto 1fr auto; }
  .tbm-sales-row .who { display: none; }
}
