/* Rabid Pool beta: large screens (1500 px up to 4K and ultrawide).
   Kept in its own file and loaded AFTER the theme files, so a theme pass can restyle beta.css / coin.css without losing it.
   It only widens the page and lets the card grids fill the extra room; it never changes colours or content. */

/* the whole page gets wider as the screen does, instead of staying a 1180 px column.
   The card minimum widths below are set so a row never holds more than 6 cards at the widest page of each size. */
@media (min-width: 1500px) {
  .wrap { max-width: 1440px; }
  .grid, .pay, .luck, .tiles { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
  .choices { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }   /* start-mining choices */
  .chart svg { height: 215px; }
}
@media (min-width: 1900px) {
  .wrap { max-width: 1820px; }
  .grid, .pay, .luck, .tiles { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .chart svg { height: 250px; }
  .stat .v { font-size: clamp(22px, 1.35vw, 30px); }
  h1 { font-size: clamp(30px, 2vw, 40px); }
}
@media (min-width: 2400px) {
  .wrap { max-width: 2240px; }
  .grid, .pay, .luck, .tiles { grid-template-columns: repeat(auto-fit, minmax(345px, 1fr)); }
  .chart svg { height: 290px; }
  body { font-size: 16px; }
  table { font-size: 14.5px; }
  .stat .k { font-size: 12px; }
}
@media (min-width: 3200px) {
  .wrap { max-width: 2600px; }
  .grid, .pay, .luck, .tiles { grid-template-columns: repeat(auto-fit, minmax(405px, 1fr)); }
  .chart svg { height: 340px; }
  body { font-size: 17px; }
  table { font-size: 15.5px; }
}

/* long text stays readable: do not let a paragraph or an FAQ answer stretch across a huge screen */
@media (min-width: 1500px) {
  .lead, .hint, .sec > p, .muted.small { max-width: 1100px; }
  details { max-width: 1200px; }
  .why { max-width: 1100px; }
}

/* guards for the cinematic theme (pass 2) */
.wrap > .tabs { position: sticky; top: 0; z-index: 5; }   /* the theme's ".wrap > :not(.bg-hero)" rule would otherwise make the tabs non-sticky */
html, body { overflow-x: clip; }                            /* the full-width hero image must never create a sideways scrollbar */

/* coin logos: a light ring and soft backing so a logo with a dark side (Pearl) or a dark mark (XBT) never looks half missing on the dark page */
.coin img, .coin .ph, .hero img.logo {
  box-shadow: 0 0 0 2px rgba(255,255,255,.3), 0 6px 18px rgba(0,0,0,.45);
  background-color: rgba(255,255,255,.14);
}

/* coin page header photo by hardware: data-hw is set on <body> by coin.js (asic | gpu | cpu).
   Same darkening layers as the theme's .hero::before, only the photo changes. */
body[data-hw="asic"] .hero::before {
  background:
    linear-gradient(180deg, rgba(6,10,15,.18), rgba(7,11,16,.82) 78%),
    linear-gradient(90deg, rgba(7,11,16,.82) 0, rgba(7,11,16,.48) 28%, rgba(7,11,16,.2) 58%, rgba(7,11,16,.82) 100%),
    url('/images/beta/beta-mining-hall.webp') center/cover no-repeat;
}
body[data-hw="gpu"] .hero::before {
  background:
    linear-gradient(180deg, rgba(6,10,15,.18), rgba(7,11,16,.82) 78%),
    linear-gradient(90deg, rgba(7,11,16,.82) 0, rgba(7,11,16,.48) 28%, rgba(7,11,16,.2) 58%, rgba(7,11,16,.82) 100%),
    url('/images/beta/beta-server-aisle.webp') center/cover no-repeat;
}
body[data-hw="cpu"] .hero::before {
  background:
    linear-gradient(180deg, rgba(6,10,15,.18), rgba(7,11,16,.82) 78%),
    linear-gradient(90deg, rgba(7,11,16,.82) 0, rgba(7,11,16,.48) 28%, rgba(7,11,16,.2) 58%, rgba(7,11,16,.82) 100%),
    url('/images/beta/beta-circuit-macro.webp') center/cover no-repeat;
}
@media (max-width: 700px) {
  body[data-hw] .hero::before { background-position: center right; }
}

/* 2026-11-12 dropdowns: the open list was light text on a white background (options only readable on hover).
   color-scheme makes the browser draw its own list dark; the explicit colours cover browsers that ignore it. */
select, select.txt, .choices select { color-scheme: dark; }
select option, select optgroup { background: #0f1721; color: #f4f8fb; }
select option:checked, select option:hover, select option:focus { background: #1f3a4f; color: #fff; }
select option:disabled { color: #6f8396; }
