/* ===============================================
   POLISH - GAME PAGES (hubs, bet pages, roll / flip / spin pages, race tracks)
   One shared look for the words on every game page, loaded AFTER the page's own CSS:
     1. title        the page name (same colour, same line under it)
     2. intro        the first line, what to do      (18px, 15px on phone)
     3. note         the small lines under it         (14px, 12px on phone)
   Looks only: no box sizes or positions of the games are changed. To go back, remove this one
   <link> from the page. The class names differ page by page (db-, cb-, dr-, kd-, ...), so the
   selectors below match on the ending of the name.
   =============================================== */

:root {
  --pg-intro-size: 18px;
  --pg-note-size: 14px;
}

/* ---------- 1. TITLE ---------- */
main[class$="-body"] h1 {
  position: relative;
  color: #ececec;
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(0, 255, 146, 0.18), 0 1px 1px rgba(0, 0, 0, 0.6);
}

/* A short green line under the title. It is drawn outside the title's box,
   so the space the page uses does not change. */
main[class$="-body"] h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 72px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #00ff92, rgba(0, 255, 146, 0));
  box-shadow: 0 0 10px rgba(0, 255, 146, 0.55);
  pointer-events: none;
}

/* ---------- 2. INTRO (the line that says what to do) ---------- */
main[class$="-body"] [class$="-subtitle"],
main[class$="-body"] [class*="-subtitle-"],
main[class$="-body"] [class$="-desc"],
main[class$="-body"] [class$="-desc-d"],
main[class$="-body"] [class$="-desc-p"],
main[class$="-body"] [class^="dr-roll-label"],
main[class$="-body"] [class*="-cond-label"],
main[class$="-body"] [class$="-flip-label"] {
  font-size: var(--pg-intro-size);
  font-weight: 700;
  line-height: 1.3;
  color: #ececec;
  text-align: left;
  letter-spacing: 0.01em;
}

/* ---------- 3. NOTE (the small lines under the intro) ---------- */
main[class$="-body"] [class*="slip-rule"],
main[class$="-body"] [class*="desc-rule"],
main[class$="-body"] [class^="dr-roll-timer"],
main[class$="-body"] [class*="-cond-timer"],
main[class$="-body"] [class$="-flip-note"],
main[class$="-body"] [class$="-guide"],
main[class$="-body"] [class$="-guide-d"],
main[class$="-body"] [class$="-guide-p"] {
  font-size: var(--pg-note-size);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(215, 215, 215, 0.72);
  text-align: left;
  letter-spacing: 0.01em;
}

/* The bet-slip rule sits inside the intro paragraph: put it on its own line. */
main[class$="-body"] [class*="slip-rule"],
main[class$="-body"] [class*="desc-rule"] {
  display: block;
  margin-top: 4px;
}

/* ---------- PHONE ---------- */
@media (max-width: 768px) {
  :root {
    --pg-intro-size: 15px;
    --pg-note-size: 12px;
  }

  main[class$="-body"] h1::after {
    width: 56px;
    bottom: -7px;
  }
}

/* ---------- POSITION (the same place on every game page) ---------- */
/* The title starts at the same height on every page. */
main[class$="-body"] {
  padding-top: 36px;
}

@media (max-width: 768px) {
  main[class$="-body"] {
    padding-top: 16px;
    padding-left: 20px;
    padding-right: 20px;
  }
}
