  /* ---------- Play now and Ranked (quick-match-ranked.md): the Play now sheet, the waiting sheet, the match pill, the result sheet, the Ranked tab; loaded after jail.css, before skins.css ---------- */
  /* the Duel Player page's Play now button (every game's, poker.js): orange, a gold bolt */
  .pkbig.now { background: #FF8A3D; } .pkico.gold { background: #FFD23F; color: var(--ink2); }
  /* the Play now sheet: the game row, the stakes (greyed when the balance can't cover one), the Ranked switch in a dark box */
  .tsh .tsnote.pnsmall { margin-top: 8px; font-size: 14px; color: #BFD9C8; min-height: 20px; }
  .tsh .pnstakes > button { min-height: 64px; display: flex; flex-direction: column; gap: 3px; padding: 6px 4px; }
  .tsh .pnstakes > button b { font-weight: 400; font-size: 19px; } .tsh .pnstakes > button small { font: 800 13px/1 var(--nunito); opacity: .85; }
  .tsh .pnstakes > button:disabled { opacity: .4; }
  .tsh .pnrow { padding: 10px 12px 10px 14px; } .tsh .pnrowl { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
  .tsh .pnrow .pntxt { min-width: 0; } .tsh .pnrow .pntxt b { display: block; font: 21px/1.1 var(--lilita); font-weight: 400; } .tsh .pnrow .pntxt small { display: block; margin-top: 4px; font: 800 13px/1.3 var(--nunito); color: #D6F2E0; }
  .tsh .pnrow .switch { flex: 0 0 72px; width: 72px; height: 40px; display: block; position: relative; } .tsh .pnrow .switch .track { background: #1B3B2A; border: 3px solid var(--ink2); box-shadow: 0 3px 0 var(--ink2); border-radius: 999px; position: absolute; inset: 0; } .tsh .pnrow .switch .knob { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--ink2); box-shadow: none; transition: transform .15s; }
  .tsh .pnrow .switch input:checked + .track { background: #7ED957; } .tsh .pnrow .switch input:checked + .track .knob { transform: translateX(32px); }
  .tsh .pnrow .switch input:focus-visible + .track { outline: 3px solid #fff; outline-offset: 2px; }
  /* the waiting sheet: a die that turns, the line, the stake, the seconds */
  .mqsheet .tsbody { align-items: center; text-align: center; padding-top: 6px; }
  .mqspin { height: 96px; display: grid; place-items: center; margin: 6px 0 10px; }
  .mqdie { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); width: 68px; height: 68px; box-sizing: border-box; padding: 8px; border-radius: 16px; background: #FBFBF7; border: 4px solid var(--ink2); box-shadow: 0 5px 0 var(--ink2); animation: mqturn 1.6s ease-in-out infinite; }
  .mqdie i { width: 80%; aspect-ratio: 1; border-radius: 50%; background: var(--ink2); place-self: center; }
  .mqdie i:nth-child(1) { grid-area: 1 / 1; } .mqdie i:nth-child(2) { grid-area: 1 / 3; } .mqdie i:nth-child(3) { grid-area: 2 / 2; } .mqdie i:nth-child(4) { grid-area: 3 / 1; } .mqdie i:nth-child(5) { grid-area: 3 / 3; }
  @keyframes mqturn { 0% { transform: rotate(0deg) translateY(0); } 40% { transform: rotate(180deg) translateY(-10px); } 60% { transform: rotate(180deg) translateY(0); } 100% { transform: rotate(360deg) translateY(0); } }
  body.rm .mqdie { animation: none; } /* (Reduce motion: the die holds still) */
  .mqline { font: 22px/1.2 var(--lilita); color: #fff; } .mqsub { margin-top: 6px; font: 800 15px/1.3 var(--nunito); color: #D6F2E0; }
  .mqclock { margin-top: 10px; font: 34px/1 var(--marker); color: #FFD23F; text-shadow: 2px 2px 0 var(--ink2), -1px -1px 0 var(--ink2), 1px -1px 0 var(--ink2), -1px 1px 0 var(--ink2); }
  #matchModal.offer .mqline { color: #FFE08A; }
  .mqsheet .tsnote .linkbtn { background: none; border: 0; padding: 0; margin: 0; box-shadow: none; font: inherit; color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .mqsheet .tsnote:empty { display: none; }
  /* the match pill in a table's top bar ("Ranked · 7 of 15"), only at a ranked table */
  .gtop .rkpill { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 40px; padding: 0 12px; background: #B57BFF; color: #fff; border: 3px solid var(--ink2); border-radius: 999px; box-shadow: 0 3px 0 var(--ink2); white-space: nowrap; flex: 0 0 auto; text-shadow: 1px 1px 0 var(--ink2); }
  .gtop .rkpill small { font: 800 10px/1 var(--nunito); letter-spacing: .1em; text-transform: uppercase; } .gtop .rkpill b { font: 15px/1 var(--lilita); font-weight: 400; }
  .gtop .rkpill[hidden] { display: none; } .gtop .rkpill.over { background: #FFD23F; color: var(--ink2); text-shadow: none; }
  .gtop .rkpill .conn { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; margin: 0; border: 2px solid var(--ink2); background: var(--red); display: none; } .gtop .rkpill .conn.off { display: block; } /* (craps's connection dot, as on its game pill) */
  @media (max-height: 760px) { .gtop .rkpill { min-height: 36px; padding: 0 10px; } }
  @media (max-width: 379px) { .gtop .rkpill { min-height: 34px; padding: 0 9px; } .gtop .rkpill b { font-size: 14px; } .gtop .rkpill small { font-size: 9px; } }
  /* the result sheet at the end of a match: the trophies moved, the new total, any arena reached */
  .mrsheet .tsbody { align-items: center; text-align: center; }
  .mrcard { width: 100%; box-sizing: border-box; margin-top: 4px; padding: 16px 14px 14px; background: #FFF4D6; color: var(--ink2); border: 4px solid var(--ink2); border-radius: 22px; box-shadow: 0 6px 0 var(--ink2); }
  .mrtrophy { font: 64px/1 var(--marker); color: #0B3D22; text-shadow: 3px 3px 0 #FFD23F; } .mrtrophy.down { color: #B4232B; } .mrtrophy.flat { color: #5B6B7A; font-size: 44px; }
  .mrline { margin-top: 6px; font: 800 15px/1.3 var(--nunito); color: #5a4300; }
  .mrtotal { margin-top: 10px; font: 24px/1.1 var(--lilita); } .mrtotal small { display: block; margin-top: 4px; font: 800 14px/1.3 var(--nunito); color: #5a4300; }
  .mrarena { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: #B57BFF; color: #fff; border: 3px solid var(--ink2); font: 16px/1 var(--lilita); text-shadow: 1px 1px 0 var(--ink2); } .mrarena:empty { display: none; }
  .gtop .pkpill[hidden], .gtop .crpill[hidden] { display: none; } /* (the game pill steps aside for the ranked pill: its own display rule would beat the attribute) */
  /* the Leaderboard's Ranked tab: your card, the six-medallion arena ladder (the league's .tl, six across), the rows as the Whale board's */
  #boardTabs.four .qtab { font-size: 16px; padding: 0 4px; } @media (max-width: 429px) { #boardTabs.four .qtab { font-size: 15px; padding: 0 3px; } } @media (max-width: 374px) { #boardTabs.four .qtab { font-size: 13px; padding: 0 2px; } } /* (four tabs, each on one line) */
  .rkme .rkhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .rkme .rkarena { display: inline-block; background: #B57BFF; color: #fff; border-radius: 999px; padding: 7px 12px; font: 800 13px/1 var(--nunito); letter-spacing: .08em; text-transform: uppercase; text-shadow: 1px 1px 0 var(--ink2); }
  .rkme .rkrank { font: 22px/1 var(--lilita); color: #FFD23F; }
  .rkme .rktroph { margin-top: 12px; font: 44px/1 var(--marker); color: #FFD23F; text-shadow: 2px 2px 0 var(--ink2), -1px -1px 0 var(--ink2), 1px -1px 0 var(--ink2), -1px 1px 0 var(--ink2); } .rkme .rktroph small { display: inline-block; margin-left: 8px; font: 800 15px/1 var(--nunito); color: #D6F2E0; text-shadow: none; }
  .rkme .rkbar { margin-top: 12px; } .rkme .rknext { margin-top: 8px; font: 800 14px/1.3 var(--nunito); color: #D6F2E0; }
  .rkme .rkrow { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 2px solid rgba(255,255,255,.14); } .rkme .rkrow span { text-align: center; flex: 1; } .rkme .rkrow b { display: block; font: 24px/1 var(--lilita); font-weight: 400; } .rkme .rkrow small { display: block; margin-top: 4px; font: 800 12px/1 var(--nunito); color: #D6F2E0; letter-spacing: .06em; text-transform: uppercase; }
  .rkme .rkhint { margin-top: 10px; font: 800 14px/1.3 var(--nunito); color: #FFE08A; }
  .tl.six { grid-template-columns: repeat(6, minmax(0, 1fr)); } .tl.six::before { left: 8%; right: 8%; top: 26px; }
  .tl.six .tlt .md { width: 48px; height: 48px; font-size: 22px; } .tl.six .tlt .nm { font-size: 12px; line-height: 1.1; white-space: normal; overflow: visible; min-height: 26px; } .tl.six .tlt .ct { font-size: 12px; } /* (the names wrap to two lines, "High Rollers", rather than clip) */
  @media (max-width: 379px) { .tl.six .tlt .md { width: 42px; height: 42px; font-size: 19px; } .tl.six::before { top: 23px; } .tl.six .tlt .nm { font-size: 10px; min-height: 22px; } }
  .md.ar-rookie { background: #4F9A6A; } .md.ar-backroom { background: #6B7A2A; } .md.ar-riverboat { background: #9B3A22; } .md.ar-highrollers { background: #4A42B8; } .md.ar-grand { background: #B0318A; } .md.ar-legends { background: #C9A227; }
