/* Original v278 blue Stage 2 theme. Preserve the later approved stage ribbons. */
@media(max-width:600px){
  html body.back-to-basics .shell .game{grid-template-rows:47px 46px minmax(0,1fr) 188px!important}
  body.back-to-basics #availableHandsMenu{height:188px!important;min-height:188px!important;max-height:188px!important;grid-template-rows:32px 156px!important}
  body.back-to-basics #availableHandsList{height:156px!important;min-height:156px!important;max-height:156px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(8,minmax(0,1fr))!important;grid-auto-flow:column!important;gap:1px 12px!important;padding:5px 9px!important;overflow:hidden!important}
  body.back-to-basics #availableHandsList .mobile-hand-row{gap:3px!important;padding:1px 2px!important;font-size:15px!important;line-height:1!important;letter-spacing:-.02em!important}
  body.back-to-basics #availableHandsList .mobile-hand-row span,body.back-to-basics #availableHandsList .mobile-hand-row span small,body.back-to-basics #availableHandsList .mobile-hand-row>b,body.back-to-basics #availableHandsList .mobile-hand-row.starting-hand-special span{font-size:15px!important;line-height:1!important}
  body.stage-two.stage2-finale #availableHandsList{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;grid-auto-flow:row!important;gap:8px!important}
  body.stage-two.stage2-finale .hand-tier-section{display:grid;min-width:0;min-height:0;grid-template-rows:18px repeat(8,minmax(0,1fr))}
  body.stage-two.stage2-finale .regular-tier{grid-template-rows:repeat(8,minmax(0,1fr));gap:2px;padding:2px 5px 2px 2px}
  body.stage-two.stage2-finale .hand-tier-heading{margin:0;color:#ffe090;font:700 12px/18px 'DM Mono',monospace}
  body.stage-two.stage2-finale .gold-tier{grid-template-rows:18px repeat(5,minmax(0,1fr));align-content:start;border-left:2px solid #f4c542;padding-left:8px}
  /* Run It Twice has only seven required rows: use the full box instead of
     forcing seven undersized rows into one scrolling column. */
  body.stage-two.run-it-twice #availableHandsList{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:repeat(7,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:1px!important;padding:4px 8px!important;overflow:hidden!important;scrollbar-width:none!important}
  body.stage-two.run-it-twice #availableHandsList .mobile-hand-row{min-height:0!important;gap:3px!important;padding:1px 2px!important;font-size:12px!important;line-height:1!important;letter-spacing:-.025em!important}
  body.stage-two.run-it-twice #availableHandsList .mobile-hand-row span,body.stage-two.run-it-twice #availableHandsList .mobile-hand-row span small,body.stage-two.run-it-twice #availableHandsList .mobile-hand-row>b,body.stage-two.run-it-twice #availableHandsList .mobile-hand-row.long-hand span,body.stage-two.run-it-twice #availableHandsList .mobile-hand-row.long-hand span small,body.stage-two.run-it-twice #availableHandsList .mobile-hand-row.long-hand>b{font-size:12px!important;line-height:1!important}
  html body.stage-two.bomb-pot .shell .game{grid-template-rows:47px 46px minmax(0,1fr) 170px!important}
  body.stage-two.bomb-pot .mobile-hand-menus{height:170px!important;min-height:170px!important;max-height:170px!important}
  body.stage-two.bomb-pot #availableHandsMenu{height:170px!important;min-height:170px!important;max-height:170px!important;grid-template-rows:30px 140px!important}
  body.stage-two.bomb-pot #availableHandsList{height:140px!important;min-height:140px!important;max-height:140px!important;overflow:hidden!important;scrollbar-width:none!important}
  html body.stage-two.blind-vs-blind .shell .game{grid-template-rows:47px 46px minmax(0,1fr) 170px!important}
  body.stage-two.blind-vs-blind .mobile-hand-menus{height:170px!important;min-height:170px!important;max-height:170px!important}
  body.stage-two.blind-vs-blind #availableHandsMenu{height:170px!important;min-height:170px!important;max-height:170px!important;grid-template-rows:30px 140px!important}
  body.stage-two.blind-vs-blind #availableHandsList{height:140px!important;min-height:140px!important;max-height:140px!important;overflow:hidden!important;scrollbar-width:none!important}
  html body.stage-two.burn-and-turn:not(.stage2-finale) .shell .game{grid-template-rows:47px 46px minmax(0,1fr) 170px!important}
  body.stage-two.burn-and-turn:not(.stage2-finale) .mobile-hand-menus{height:170px!important;min-height:170px!important;max-height:170px!important}
  body.stage-two.burn-and-turn:not(.stage2-finale) #availableHandsMenu{height:170px!important;min-height:170px!important;max-height:170px!important;grid-template-rows:30px 140px!important}
  body.stage-two.burn-and-turn:not(.stage2-finale) #availableHandsList{height:140px!important;min-height:140px!important;max-height:140px!important;overflow:hidden!important;scrollbar-width:none!important}
  html body.stage-two.what-a-cooler .shell .game{grid-template-rows:47px 46px minmax(0,1fr) 170px!important}
  body.stage-two.what-a-cooler .mobile-hand-menus{height:170px!important;min-height:170px!important;max-height:170px!important}
  body.stage-two.what-a-cooler #availableHandsMenu{height:170px!important;min-height:170px!important;max-height:170px!important;grid-template-rows:30px 140px!important}
  body.stage-two.what-a-cooler #availableHandsList{height:140px!important;min-height:140px!important;max-height:140px!important;overflow:hidden!important;scrollbar-width:none!important}
  html body.stage-two.running-hot .shell .game{grid-template-rows:47px 46px minmax(0,1fr) 170px!important}
  body.stage-two.running-hot .mobile-hand-menus{height:170px!important;min-height:170px!important;max-height:170px!important}
  body.stage-two.running-hot #availableHandsMenu{height:170px!important;min-height:170px!important;max-height:170px!important;grid-template-rows:30px 140px!important}
  body.stage-two.running-hot #availableHandsList{height:140px!important;min-height:140px!important;max-height:140px!important;overflow:hidden!important;scrollbar-width:none!important}
  html body.stage-two.play-the-board .shell .game{grid-template-rows:47px 46px minmax(0,1fr) 170px!important}
  body.stage-two.play-the-board .mobile-hand-menus{height:170px!important;min-height:170px!important;max-height:170px!important}
  body.stage-two.play-the-board #availableHandsMenu{height:170px!important;min-height:170px!important;max-height:170px!important;grid-template-rows:30px 140px!important}
  body.stage-two.play-the-board #availableHandsList{height:140px!important;min-height:140px!important;max-height:140px!important;overflow:hidden!important;scrollbar-width:none!important}
}
  html.stage-two-theme{background:#020b18!important}
  body.stage-two-theme{--night:#020914;--felt:#072b4a;--muted:#a8bfd0;--line:#1b5c82;background:radial-gradient(circle at 18% 8%,#0e4772 0,transparent 30rem),radial-gradient(circle at 90% 92%,#172c52 0,transparent 28rem),#020914}
  .stage-two-theme .table{background:radial-gradient(circle at 44% 42%,#0f5383,#072b4a 67%)}
  .stage-two-theme .table:before{border-color:#f4ce4528}
  .stage-two-theme .rail{background:linear-gradient(155deg,#082a45,#020c18)}
  .stage-two-theme .mission,.stage-two-theme .goal-copy{background:#03182ae8}
  .stage-two-theme .grid.board-locked:before{background:radial-gradient(circle at 50% 42%,#0d4b75 0,#062942 44%,#020c18 80%),repeating-linear-gradient(45deg,#f4ce450a 0 8px,transparent 8px 16px);border-color:#f4ce455c;box-shadow:inset 0 0 38px #000b,0 0 24px #f4ce4522}
  .stage-two-theme .action,.stage-two-theme .secondary{background:#031427}
  .stage-two-theme .board-zone .chip-tray{background:linear-gradient(90deg,#01060b,#05203a 24%,#0a365d 50%,#05203a 76%,#01060b)}
  .stage-two-theme .rail>.reward-bank{background:linear-gradient(180deg,#082a45,#020b16)}
  .stage-two-theme #availableHandsMenu .mobile-menu-list{background:#031427f7}
  .stage-two-theme .finish.win:not(.stage-victory){background:radial-gradient(circle at 50% 42%,#0b4f7d 0,#041b32ee 45%,#01050afa 80%)}
  @media(max-width:600px){
    html.stage-two-theme,.stage-two-theme,.stage-two-theme .shell{background-color:#020b18!important;background-image:radial-gradient(circle at 50% 0,#0e4772 0,#061f38 48%,#01050d 100%)!important}
    .stage-two-theme .game{border-color:#1b5c82;background:radial-gradient(circle at 42% 42%,#0f5383,#072b4a 68%)}
    .stage-two-theme .rail>.reward-bank{background:transparent}
  }
  body.stage-two-theme{--night:#010610;--felt:#072f57;--cream:#fff8e8;--ink:#f7fbff;--muted:#b6c9dc;--line:#7f6534;--gold:#ffd76a;--lime:#8cecff;background:radial-gradient(ellipse at 50% -8%,#135f9b 0,#062647 27rem,transparent 49rem),radial-gradient(circle at 8% 65%,#0f66aa55 0,transparent 26rem),radial-gradient(circle at 94% 74%,#a96d1740 0,transparent 28rem),linear-gradient(155deg,#01030a,#04162a 52%,#01030a);background-attachment:fixed}
  .stage-two-theme .shell{isolation:isolate}.stage-two-theme .shell:before,.stage-two-theme .shell:after{content:"";position:fixed;top:-28vh;width:32vw;height:105vh;pointer-events:none;opacity:.1;filter:blur(8px);background:linear-gradient(180deg,#e5f7ff,transparent 75%);transform-origin:top;z-index:0}.stage-two-theme .shell:before{left:4vw;transform:rotate(18deg)}.stage-two-theme .shell:after{right:4vw;transform:rotate(-18deg)}
  .stage-two-theme .topbar,.stage-two-theme .game{position:relative;z-index:1}.stage-two-theme .topbar{padding:5px 8px;border-bottom:1px solid #ffd76a33}.stage-two-theme .brand-copy span{color:#ffe092;text-shadow:0 1px 0 #221500,0 0 16px #ffbd3440}.stage-two-theme .brand-copy small{color:#b9cde0}.stage-two-theme .mark img{filter:drop-shadow(0 3px 2px #000c) drop-shadow(0 0 8px #7de6ff50)}
  .stage-two-theme .ghost{border-color:#8c713f;background:linear-gradient(180deg,#0c2f51,#031326);color:#eef8ff;box-shadow:inset 0 1px #ffffff16,0 3px 7px #0008}.stage-two-theme .ghost:hover{border-color:#ffd76a;background:linear-gradient(180deg,#124d82,#051b34)}
  .stage-two-theme .game{border-color:#9a7332;background:radial-gradient(circle at 43% 38%,#0e5b91 0,#093f6c 58%,#052644 100%);box-shadow:inset 0 0 0 1px #ffd76a22,inset 0 0 55px #001126aa,0 22px 70px #000c,0 0 28px #e6a93a16}
  .stage-two-theme .table{background:radial-gradient(ellipse at 45% 38%,#126ca8 0,#0a4b7d 48%,#062d50 100%);border-color:#9a7332;box-shadow:inset 0 0 0 1px #dff8ff20,inset 0 0 58px #00152caa,0 20px 60px #000b}.stage-two-theme .table:before{inset:9px;border:1px solid #ffd76a4d;box-shadow:inset 0 0 18px #0008,0 0 11px #ffcc441f}.stage-two-theme .table:after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;opacity:.14;background:radial-gradient(circle at 30% 15%,#eefbff44 0 1px,transparent 2px),radial-gradient(circle at 78% 64%,#fff7d733 0 1px,transparent 2px);background-size:23px 23px,31px 31px;mix-blend-mode:soft-light}
  .stage-two-theme .level-kicker{color:#ffe090;text-shadow:0 1px 0 #00142a,0 0 13px #ffbd3642}.stage-two-theme .table h1{color:#f5fbff;text-shadow:0 2px 0 #00142a,0 0 16px #8cecff30}
  .stage-two-theme .mission{border:1px solid #a98445;background:linear-gradient(145deg,#082b4bdf,#020912ed);box-shadow:inset 0 1px #ffffff16,inset 0 -10px 25px #0008,0 6px 18px #00132999,0 0 16px #e7b34b18}.stage-two-theme .mission .run-brief small{color:#8cecff;text-shadow:none}.stage-two-theme .mission strong{color:#f7fcff;text-shadow:0 1px 0 #000}
  .stage-two-theme .roll-btn{border:1px solid #fff0b8;background:linear-gradient(180deg,#ffe88c 0,#e8ad2d 55%,#a76508 100%);color:#260a00;box-shadow:inset 0 2px #fff9c9,0 4px 0 #6c3500,0 7px 14px #000a,0 0 18px #ffc74238;text-shadow:0 1px #fff5a6}.stage-two-theme .roll-btn:active{transform:translateY(3px);box-shadow:inset 0 2px #fff9c9,0 1px 0 #6c3500,0 4px 7px #000a}.stage-two-theme .buy-rewards-btn{border-color:#9a7332!important;background:linear-gradient(180deg,#0b365e,#031528)!important;color:#ffe090!important;box-shadow:inset 0 1px #ffffff12,0 3px 0 #01050b!important}
  .stage-two-theme .goal-copy,.stage-two-theme .mobile-clock,.stage-two-theme .bankroll{border-color:#9a7332;background:linear-gradient(160deg,#082943d9,#020b16ed);box-shadow:inset 0 1px #ffffff12,inset 0 -9px 18px #0006,0 3px 9px #0007}.stage-two-theme .goal-copy>span,.stage-two-theme #goalText,.stage-two-theme .mobile-clock small,.stage-two-theme .bankroll span{color:#8cecff;text-shadow:none}.stage-two-theme .mobile-clock strong,.stage-two-theme .bankroll strong{color:#fff5d8;text-shadow:0 1px 0 #000}
  .stage-two-theme .goal-track{border-color:#9a733255;background:#020b16;box-shadow:inset 0 2px 6px #000b}.stage-two-theme .goal-fill{background:linear-gradient(90deg,#199ede,#8cecff 54%,#fff0a3);box-shadow:0 0 14px #4ed8ff66;position:relative;overflow:hidden}.stage-two-theme .goal-fill:after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 20%,#ffffffaa 47%,transparent 72%);transform:translateX(-120%);animation:vipMeterGlint 2.3s ease-in-out infinite}
  .stage-two-theme .card:not(.blinded):not(.blasted):not(.cooler-locked){box-shadow:inset 0 1px #ffffff55,inset 0 -5px 8px #0002,0 3px 0 #10243a,0 7px 12px #0009;transition:transform .16s cubic-bezier(.2,.8,.2,1),box-shadow .16s ease,filter .16s ease}.stage-two-theme .card:not(.blinded):not(.blasted):not(.cooler-locked):hover{transform:translateY(-4px) scale(1.012);filter:brightness(1.035)}
  .stage-two-theme .card.card-covered,.stage-two-theme .card.card-covered:hover{filter:none;background:linear-gradient(145deg,#fff,#f7f7f7);border-color:#111;color:#111}
  .stage-two-theme .board-zone .chip-tray{border-color:#9a7332;background:linear-gradient(90deg,#020a14,#062845 22%,#0b4a79 50%,#062845 78%,#020a14);box-shadow:inset 0 0 22px #000c,inset 0 1px #ffd76a24,0 0 11px #e6ac3917}.stage-two-theme .board-zone .chip-tray-head{color:#ffe090}.stage-two-theme .reward-bank h3{color:#ffe090;text-shadow:0 1px #0a2440,0 0 12px #ffc13f4d}
  .stage-two-theme .reward-count{background:linear-gradient(155deg,#0a3052,#03111f);box-shadow:inset 0 1px #ffffff12,inset 0 -8px 16px #0007,0 3px 7px #0008}.stage-two-theme .reward-count:not(:disabled){border-color:var(--reward-color);box-shadow:inset 0 1px #ffffff18,inset 0 -8px 16px #0007,0 3px 0 color-mix(in srgb,var(--reward-color),#000 62%),0 7px 10px #000a,0 0 10px color-mix(in srgb,var(--reward-color),transparent 70%)}
  .stage-two-theme #playBtn,.stage-two-theme #playBtnBottom{border:2px solid #b8f4ff!important;background:linear-gradient(180deg,#9cefff,#43cde9 54%,#087caa)!important;color:#001c2a!important;box-shadow:inset 0 2px #e4fbff,0 4px 0 #075579,0 8px 12px #000a,0 0 13px #4edfff65!important;text-shadow:0 1px #dffaff}.stage-two-theme #clearBtn,.stage-two-theme #clearBtnBottom{border:2px solid #e5eef4!important;background:linear-gradient(180deg,#0e2f4d,#03101f)!important;color:#f4fbff;box-shadow:inset 0 1px #ffffff1f,0 3px 0 #01050a,0 6px 10px #0009!important}
  .stage-two-theme .mobile-hand-menus summary{border-color:#9a7332;background:linear-gradient(180deg,#0c3458,#031528);color:#ffe090;box-shadow:inset 0 1px #ffffff12}.stage-two-theme #availableHandsMenu .mobile-menu-list{border-color:#9a7332;background:linear-gradient(160deg,#082943ef,#020a14f7);box-shadow:inset 0 0 16px #000c}.stage-two-theme .mobile-hand-menus .mobile-hand-row,.stage-two-theme .mobile-hand-menus .mobile-hand-row small{color:#d8effc}.stage-two-theme .mobile-hand-menus .mobile-hand-row b{color:#ffe090}
  .stage-two-theme dialog{border-color:#9a7332;background:linear-gradient(150deg,#0b3a62,#031325);box-shadow:0 30px 90px #000e,0 0 28px #4bdcff1c}.stage-two-theme .reward-shop{background:#01050bd9;backdrop-filter:blur(8px)}.stage-two-theme .reward-shop-card{background:radial-gradient(circle at 50% 0,color-mix(in srgb,var(--shop-color,#ffd76a),#0c4a7b 82%),#031426 70%);border-color:color-mix(in srgb,var(--shop-color,#ffd76a),#ffd76a 45%);box-shadow:inset 0 1px #ffffff1c,0 24px 70px #000,0 0 28px color-mix(in srgb,var(--shop-color,#ffd76a),transparent 55%)}.stage-two-theme .reward-market-item,.stage-two-theme .cash-pack{background:linear-gradient(155deg,#0a3255,#020b16);border-color:#9a73324d;box-shadow:inset 0 1px #ffffff10}
  .stage-two-theme .finish:not(.stage-victory){background:radial-gradient(circle at 50% 40%,#0c6098ee 0,#042746ee 45%,#01040afa 82%)}.stage-two-theme .finish.win:not(.stage-victory){background:radial-gradient(circle at 50% 38%,#1577b8 0,#052d51f5 43%,#01040afa 80%)}.stage-two-theme .finish.win:not(.stage-victory) h2{color:#fff7dd;text-shadow:0 2px 0 #073553,0 0 16px #b8f6ff,0 0 42px #e8b344}.stage-two-theme .score-flash{border-block-color:#8cecff99;background:linear-gradient(90deg,transparent,#062d4fd0 18%,#0e6ea8d9 50%,#062d4fd0 82%,transparent);filter:drop-shadow(0 0 28px #55dfff5c)}
  @media(max-width:600px){html.stage-two-theme,.stage-two-theme,.stage-two-theme .shell{background-color:#010610!important;background-image:radial-gradient(circle at 50% 0,#135f9b 0,#062647 44%,#01040b 100%)!important}.stage-two-theme .shell:before,.stage-two-theme .shell:after{display:none}.stage-two-theme .game{border-color:#9a7332;background:radial-gradient(circle at 42% 39%,#0e5b91,#093f6c 66%,#052644 100%);box-shadow:inset 0 0 0 1px #ffd76a20,inset 0 0 40px #001126b8}.stage-two-theme .table{background:transparent;box-shadow:none}.stage-two-theme .table:before{border-color:#ffd76a3f}.stage-two-theme .topbar{padding:0;border-bottom-color:#ffd76a30}.stage-two-theme .rail>.reward-bank{background:transparent;box-shadow:none}}
  @media(hover:none) and (pointer:coarse){.stage-two-theme .card:not(.blinded):not(.blasted):not(.cooler-locked):hover{transform:none;filter:none}}
  @media(prefers-reduced-motion:reduce){.stage-two-theme .goal-fill:after{animation:none}}
