/* ══════════════════════════════════════════════════════════════════════════
   /html5-slot-machine-source-code — ISOLATED page stylesheet.

   Every selector below is prefixed with #page-html5-slot-machine-source-code.
   Nothing here can reach the shared header/footer, and /assets/css/layout.css
   (namespaced under #site-header / #site-footer) cannot reach this page.

   VISUAL DIRECTION — "Specimen Sheet".
     · warm paper ground (#faf8f5) — the page is LIGHT-led. 29 of the 31
       isolated pages in this repo are dark-led; none of the 13 slot-family
       siblings is light-led.
     · true achromatic near-black (#111114) used only as punctuation bands.
       Every other dark page in the set is a tinted navy, plum, espresso,
       petrol or graphite.
     · one magenta (#b3125a) as the sole action colour. Unused anywhere else
       in the set — the slot family runs amber/gold, crimson, violet, teal and
       burnt orange.
     · 2px corners against their 8–20px, and a hero that is a FLAT colour
       block with no radial glow. All 31 siblings glow.

   MOTION — rule 26. This file declares no keyframe animations at all. Every
   transition is a finite response to :hover / :focus-visible / [open].
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code {
  /* ── Ink / dark surfaces ── */
  --h5s-ink:      #111114;
  --h5s-ink-2:    #1b1b20;
  --h5s-ink-3:    #26262d;
  --h5s-line-d:   rgba(255, 255, 255, .14);
  --h5s-on-ink:   #f6f5f3;   /* 18.9:1 on ink */
  --h5s-on-ink-2: #b9b7b2;   /*  9.5:1 on ink */

  /* ── Paper / light surfaces ── */
  --h5s-paper:    #faf8f5;
  --h5s-paper-2:  #ffffff;
  --h5s-paper-3:  #f1ece4;
  --h5s-line-l:   #e0d9cd;

  /* ── Text on light — both clear 4.5:1 on all three paper tones ── */
  --h5s-text:     #16161a;
  --h5s-text-2:   #45454e;   /* 8.0:1 on paper-3, the darkest light surface */

  /* ── Action — the only interactive colour on the page ── */
  --h5s-act:      #b3125a;   /* white on this = 6.7:1 ; on paper = 6.2:1 */
  --h5s-act-d:    #8d0e47;
  --h5s-act-l:    #ff7ab8;   /* on ink only — 7.9:1 */

  --h5s-r:   2px;
  --h5s-r-s: 0;

  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--h5s-text);
  background: var(--h5s-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Resets. Wrapped in :where() so they carry ZERO specificity and can never
      beat a component rule — the failure mode that flattened four centred H3s
      on /make-your-own-slot-machine. ─────────────────────────────────────── */
#page-html5-slot-machine-source-code a { text-decoration: none; color: inherit; }

#page-html5-slot-machine-source-code :where(h1,h2,h3,h4,h5,h6,p,ul,ol,figure,blockquote,address) { margin: 0; }
#page-html5-slot-machine-source-code :where(ul,ol) { padding: 0; list-style: none; }
#page-html5-slot-machine-source-code :where(img) { max-width: 100%; height: auto; display: block; }
#page-html5-slot-machine-source-code :where(button) { font: inherit; color: inherit; }
#page-html5-slot-machine-source-code :where(address) { font-style: normal; }
#page-html5-slot-machine-source-code :where(h1,h2,h3,h4,h5,h6) {
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.14;
}

#page-html5-slot-machine-source-code *,
#page-html5-slot-machine-source-code *::before,
#page-html5-slot-machine-source-code *::after { box-sizing: border-box; }

#page-html5-slot-machine-source-code :focus-visible {
  outline: 3px solid var(--h5s-act);
  outline-offset: 3px;
}
#page-html5-slot-machine-source-code .h5s-sec--ink :focus-visible,
#page-html5-slot-machine-source-code .h5s-hero :focus-visible { outline-color: var(--h5s-act-l); }

/* ══════════════════════════════════════════════════════════════════════════
   RHYTHM
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

#page-html5-slot-machine-source-code .h5s-sec {
  padding-block: clamp(58px, 6.4vw, 100px);
}
#page-html5-slot-machine-source-code .h5s-sec--paper { background: var(--h5s-paper); }
#page-html5-slot-machine-source-code .h5s-sec--tint  { background: var(--h5s-paper-3); }
#page-html5-slot-machine-source-code .h5s-sec--ink {
  background: var(--h5s-ink);
  color: var(--h5s-on-ink);
}

/* The specimen marker. A hairline rule, a number, small caps — the one motif
   that repeats on every section and carries the whole identity. */
#page-html5-slot-machine-source-code .h5s-spec {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--h5s-act-l);
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--h5s-line-d);
}
#page-html5-slot-machine-source-code .h5s-spec--dark {
  color: var(--h5s-act);
  border-bottom-color: var(--h5s-line-l);
}

#page-html5-slot-machine-source-code .h5s-head {
  max-width: 880px;
  margin-bottom: clamp(32px, 3.6vw, 52px);
}
#page-html5-slot-machine-source-code .h5s-head h2,
#page-html5-slot-machine-source-code .h5s-band h2 {
  font-size: clamp(30px, 3.2vw, 48px);
}
#page-html5-slot-machine-source-code .h5s-lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--h5s-text-2);
  margin-top: 16px;
  max-width: 66ch;
}
#page-html5-slot-machine-source-code .h5s-sec--ink .h5s-lede { color: var(--h5s-on-ink-2); }

/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS + LINKS
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 34px;
  border: 2px solid transparent;
  border-radius: var(--h5s-r);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
#page-html5-slot-machine-source-code .h5s-btn:hover { transform: translateY(-2px); }
#page-html5-slot-machine-source-code .h5s-btn:active { transform: translateY(0); }

/* on paper */
#page-html5-slot-machine-source-code .h5s-btn--act {
  background: var(--h5s-act);
  border-color: var(--h5s-act);
  color: #ffffff;
}
#page-html5-slot-machine-source-code .h5s-btn--act:hover {
  background: var(--h5s-act-d);
  border-color: var(--h5s-act-d);
}

/* on ink */
#page-html5-slot-machine-source-code .h5s-btn--solid {
  background: var(--h5s-act-l);
  border-color: var(--h5s-act-l);
  color: var(--h5s-ink);
}
#page-html5-slot-machine-source-code .h5s-btn--solid:hover {
  background: var(--h5s-on-ink);
  border-color: var(--h5s-on-ink);
}

#page-html5-slot-machine-source-code .h5s-cta-row {
  margin-top: clamp(30px, 3.6vw, 46px);
  text-align: center;
}
#page-html5-slot-machine-source-code .h5s-cta-row--start { text-align: left; }
#page-html5-slot-machine-source-code .h5s-cta-row--hero { text-align: center; }

/* The second destination is always an inline link, never a second button. */
#page-html5-slot-machine-source-code .h5s-textlink {
  color: var(--h5s-act);
  font-weight: 600;
  border-bottom: 2px solid currentColor;
  padding-bottom: 1px;
  transition: color .18s ease;
}
#page-html5-slot-machine-source-code .h5s-textlink:hover { color: var(--h5s-act-d); }
#page-html5-slot-machine-source-code .h5s-textlink--ink { color: var(--h5s-act-l); }
#page-html5-slot-machine-source-code .h5s-textlink--ink:hover { color: var(--h5s-on-ink); }

/* ══════════════════════════════════════════════════════════════════════════
   HERO — full-bleed FLAT ink block. No image, no gradient, no glow.
   Content in a centred 900px column (rule 24).
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-hero {
  width: 100%;
  background: var(--h5s-ink);
  color: var(--h5s-on-ink);
  border-bottom: 4px solid var(--h5s-act);
  padding: clamp(64px, 8vw, 118px) 24px clamp(56px, 6.6vw, 92px);
}
#page-html5-slot-machine-source-code .h5s-hero__inner {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
#page-html5-slot-machine-source-code .h5s-hero .h5s-spec {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 22px;
}
#page-html5-slot-machine-source-code .h5s-hero h1 {
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.06;
  letter-spacing: -.03em;
}
#page-html5-slot-machine-source-code .h5s-hero__lede {
  margin-top: 26px;
  font-size: 18px;
  line-height: 1.72;
  color: var(--h5s-on-ink-2);
  max-width: 74ch;
  margin-inline: auto;
}
#page-html5-slot-machine-source-code .h5s-hero__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(38px, 4.4vw, 58px);
  border-top: 1px solid var(--h5s-line-d);
  text-align: left;
}
#page-html5-slot-machine-source-code .h5s-hero__trust li {
  padding: 22px 22px 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--h5s-on-ink);
  border-left: 1px solid var(--h5s-line-d);
}
#page-html5-slot-machine-source-code .h5s-hero__trust li:first-child { border-left: 0; padding-left: 0; }
#page-html5-slot-machine-source-code .h5s-hero__trust li span {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--h5s-act-l);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════════════════════════════════════
   BREADCRUMB + LANGUAGE BAR
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-crumb {
  background: var(--h5s-paper-3);
  border-bottom: 1px solid var(--h5s-line-l);
  padding-block: 14px;
}
#page-html5-slot-machine-source-code .h5s-crumb__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}
#page-html5-slot-machine-source-code .h5s-crumb ol {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--h5s-text-2);
  flex-wrap: wrap;
}
#page-html5-slot-machine-source-code .h5s-crumb ol a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--h5s-act);
  font-weight: 600;
}
#page-html5-slot-machine-source-code .h5s-crumb ol a:hover { color: var(--h5s-act-d); }
#page-html5-slot-machine-source-code .h5s-crumb ol span { color: var(--h5s-text); font-weight: 600; }

#page-html5-slot-machine-source-code .h5s-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#page-html5-slot-machine-source-code .h5s-langs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--h5s-text-2);
  background: var(--h5s-paper-2);
  border: 1px solid var(--h5s-line-l);
  border-radius: var(--h5s-r);
  transition: color .18s ease, border-color .18s ease;
}
#page-html5-slot-machine-source-code .h5s-langs a:hover {
  color: var(--h5s-act);
  border-color: var(--h5s-act);
}
#page-html5-slot-machine-source-code .h5s-langs img { width: 20px; height: 14px; object-fit: cover; }

/* ══════════════════════════════════════════════════════════════════════════
   SPECIMEN NOTES — the three numbered intro paragraphs
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: h5snote;
  border-top: 2px solid var(--h5s-ink);
}
#page-html5-slot-machine-source-code .h5s-notes li {
  counter-increment: h5snote;
  padding: 30px 30px 0 0;
  border-right: 1px solid var(--h5s-line-l);
}
#page-html5-slot-machine-source-code .h5s-notes li:last-child { border-right: 0; padding-right: 0; }
#page-html5-slot-machine-source-code .h5s-notes li:not(:first-child) { padding-left: 30px; }
#page-html5-slot-machine-source-code .h5s-notes li::before {
  content: counter(h5snote, decimal-leading-zero);
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--h5s-act);
  letter-spacing: -.03em;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
#page-html5-slot-machine-source-code .h5s-notes p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--h5s-text-2);
}

/* ══════════════════════════════════════════════════════════════════════════
   INK BANDS — left-aligned plate, CTA below the copy on its axis
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-band .h5s-wrap { max-width: 1200px; }
#page-html5-slot-machine-source-code .h5s-band h2 { max-width: 20ch; }

/* ══════════════════════════════════════════════════════════════════════════
   SCREENSHOT + TILE GRIDS
   ══════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════
   SCREENSHOT GALLERY

   Every one of the 18 screenshots is a 16:9 source (measured: 444x249,
   713x401, 621x349, 767x431, 391x220, 537x302, 651x366, 414x233 — all
   1.777-1.783). So ONE uniform 16/9 tile fits every image at its own aspect
   ratio: nothing is letterboxed and nothing is meaningfully cropped. The two
   groups (application screens, game themes) share this one component so their
   sizing, spacing and alignment are identical.

   9 items per group, so the column counts are chosen to divide evenly and
   never leave an orphan row: 3 wide -> 3x3, 2 wide -> nothing stranded,
   1 wide on small screens where a 16:9 tile in a 2-up grid would be too
   short to read a UI screenshot.
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-gallery__label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--h5s-text-2);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--h5s-line-l);
}
#page-html5-slot-machine-source-code .h5s-gallery__label + .h5s-gallery { margin-bottom: 40px; }
#page-html5-slot-machine-source-code .h5s-gallery:last-of-type { margin-bottom: 0; }

#page-html5-slot-machine-source-code .h5s-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
#page-html5-slot-machine-source-code .h5s-gallery li {
  background: var(--h5s-paper-2);
  border: 1px solid var(--h5s-line-l);
  border-radius: var(--h5s-r);
  padding: 10px;
  transition: border-color .18s ease, transform .18s ease;
}
#page-html5-slot-machine-source-code .h5s-gallery li:hover {
  border-color: var(--h5s-act);
  transform: translateY(-3px);
}
#page-html5-slot-machine-source-code .h5s-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--h5s-r);
  background: var(--h5s-paper-3);
}

#page-html5-slot-machine-source-code .h5s-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ══════════════════════════════════════════════════════════════════════════
   PLAYER FEATURE CARDS
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-players {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
#page-html5-slot-machine-source-code .h5s-players li {
  background: var(--h5s-paper-2);
  border: 1px solid var(--h5s-line-l);
  border-top: 4px solid var(--h5s-act);
  border-radius: var(--h5s-r);
  padding: 30px 26px;
  transition: transform .18s ease, border-color .18s ease;
}
#page-html5-slot-machine-source-code .h5s-players li:hover { transform: translateY(-3px); }
#page-html5-slot-machine-source-code .h5s-players h3 { font-size: 21px; margin-bottom: 12px; }
#page-html5-slot-machine-source-code .h5s-players p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--h5s-text-2);
}

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN LEDGER — numbered ruled rows on ink. Deliberately NOT cards: the
   eleven admin capabilities read as a specification list, not a sales grid.
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-ledger {
  counter-reset: h5sled;
  border-top: 1px solid var(--h5s-line-d);
}
#page-html5-slot-machine-source-code .h5s-ledger li {
  counter-increment: h5sled;
  display: grid;
  grid-template-columns: 74px minmax(220px, 300px) 1fr;
  gap: 8px 26px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--h5s-line-d);
}
#page-html5-slot-machine-source-code .h5s-ledger li::before {
  content: counter(h5sled, decimal-leading-zero);
  font-size: 18px;
  font-weight: 800;
  color: var(--h5s-act-l);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
#page-html5-slot-machine-source-code .h5s-ledger h3 {
  font-size: 19px;
  color: var(--h5s-on-ink);
}
#page-html5-slot-machine-source-code .h5s-ledger p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--h5s-on-ink-2);
}

/* ══════════════════════════════════════════════════════════════════════════
   OFFERINGS — copy + image split, pill-free square chips
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-offer {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
#page-html5-slot-machine-source-code .h5s-offer h2 {
  font-size: clamp(28px, 3vw, 44px);
  margin-bottom: 24px;
}
#page-html5-slot-machine-source-code .h5s-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#page-html5-slot-machine-source-code .h5s-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--h5s-text);
  background: var(--h5s-paper-2);
  border: 1px solid var(--h5s-line-l);
  border-left: 3px solid var(--h5s-act);
  border-radius: var(--h5s-r);
  transition: background-color .18s ease, color .18s ease;
}
#page-html5-slot-machine-source-code .h5s-chip:hover {
  background: var(--h5s-act);
  color: #ffffff;
}
#page-html5-slot-machine-source-code .h5s-offer__fig img,
#page-html5-slot-machine-source-code .h5s-split__fig img {
  width: 100%;
  border: 1px solid var(--h5s-line-l);
  border-radius: var(--h5s-r);
}

/* ══════════════════════════════════════════════════════════════════════════
   MECHANICS — 12 numbered specimen cells
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-mech {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--h5s-line-l);
  border: 1px solid var(--h5s-line-l);
  border-radius: var(--h5s-r);
  counter-reset: h5smech;
  overflow: hidden;
}
#page-html5-slot-machine-source-code .h5s-mech li {
  counter-increment: h5smech;
  background: var(--h5s-paper-2);
  padding: 28px 24px;
  transition: background-color .18s ease;
}
#page-html5-slot-machine-source-code .h5s-mech li:hover { background: var(--h5s-paper); }
#page-html5-slot-machine-source-code .h5s-mech h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
#page-html5-slot-machine-source-code .h5s-mech h3::before {
  content: counter(h5smech, decimal-leading-zero) " / ";
  color: var(--h5s-act);
  font-variant-numeric: tabular-nums;
}
#page-html5-slot-machine-source-code .h5s-mech p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--h5s-text-2);
}

/* ══════════════════════════════════════════════════════════════════════════
   LAUNCH SPLIT
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
#page-html5-slot-machine-source-code .h5s-split__copy h3 {
  font-size: 24px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--h5s-ink);
}
#page-html5-slot-machine-source-code .h5s-split__copy p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--h5s-text-2);
  margin-bottom: 16px;
}
#page-html5-slot-machine-source-code .h5s-check { margin-bottom: 20px; }
#page-html5-slot-machine-source-code .h5s-check li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--h5s-text);
  padding: 11px 0;
  border-bottom: 1px solid var(--h5s-line-l);
}
#page-html5-slot-machine-source-code .h5s-check img { width: 18px; height: 18px; margin-top: 4px; flex: none; }

/* ══════════════════════════════════════════════════════════════════════════
   BUILD
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-build__intro {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: clamp(30px, 3.4vw, 46px);
}
#page-html5-slot-machine-source-code .h5s-build__intro p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--h5s-text-2);
}
#page-html5-slot-machine-source-code .h5s-build__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
#page-html5-slot-machine-source-code .h5s-build__main h3,
#page-html5-slot-machine-source-code .h5s-note h3 {
  font-size: 22px;
  margin-bottom: 16px;
}
#page-html5-slot-machine-source-code .h5s-adv li {
  position: relative;
  padding: 14px 0 14px 30px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--h5s-text);
  border-bottom: 1px solid var(--h5s-line-l);
}
#page-html5-slot-machine-source-code .h5s-adv li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 14px;
  height: 2px;
  background: var(--h5s-act);
}
#page-html5-slot-machine-source-code .h5s-note {
  background: var(--h5s-paper-2);
  border: 1px solid var(--h5s-line-l);
  border-radius: var(--h5s-r);
  padding: 26px 24px;
}
#page-html5-slot-machine-source-code .h5s-note + .h5s-note { margin-top: 18px; }
#page-html5-slot-machine-source-code .h5s-note img { width: 28px; height: 28px; margin-bottom: 14px; }
#page-html5-slot-machine-source-code .h5s-note p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--h5s-text-2);
}

/* ══════════════════════════════════════════════════════════════════════════
   RELATED INDEX
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 44px);
}
#page-html5-slot-machine-source-code .h5s-index li { border-bottom: 1px solid var(--h5s-line-l); }
#page-html5-slot-machine-source-code .h5s-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 13px 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--h5s-text);
  transition: color .18s ease, padding-left .18s ease;
}
#page-html5-slot-machine-source-code .h5s-index a::after {
  content: "\2192";
  color: var(--h5s-act);
  opacity: 0;
  transition: opacity .18s ease;
}
#page-html5-slot-machine-source-code .h5s-index a:hover {
  color: var(--h5s-act);
  padding-left: 10px;
}
#page-html5-slot-machine-source-code .h5s-index a:hover::after { opacity: 1; }

/* ══════════════════════════════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
}
#page-html5-slot-machine-source-code .h5s-faq details {
  background: var(--h5s-paper-2);
  border: 1px solid var(--h5s-line-l);
  border-left: 3px solid var(--h5s-line-l);
  border-radius: var(--h5s-r);
  transition: border-left-color .18s ease;
}
#page-html5-slot-machine-source-code .h5s-faq details[open] { border-left-color: var(--h5s-act); }
#page-html5-slot-machine-source-code .h5s-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}
#page-html5-slot-machine-source-code .h5s-faq summary::-webkit-details-marker { display: none; }
#page-html5-slot-machine-source-code .h5s-faq summary h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}
#page-html5-slot-machine-source-code .h5s-faq summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--h5s-act);
  border: 1px solid var(--h5s-line-l);
  border-radius: var(--h5s-r);
}
#page-html5-slot-machine-source-code .h5s-faq details[open] summary::after { content: "\2212"; }
#page-html5-slot-machine-source-code .h5s-faq details p {
  padding: 0 22px 22px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--h5s-text-2);
}

/* ══════════════════════════════════════════════════════════════════════════
   STORIES
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
#page-html5-slot-machine-source-code .h5s-story {
  background: var(--h5s-ink-2);
  border: 1px solid var(--h5s-line-d);
  border-radius: var(--h5s-r);
  overflow: hidden;
}
#page-html5-slot-machine-source-code .h5s-vid {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--h5s-ink-3);
  cursor: pointer;
}
#page-html5-slot-machine-source-code .h5s-vid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
#page-html5-slot-machine-source-code .h5s-vid::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--h5s-act) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center / 24px 24px;
  transition: transform .18s ease;
}
#page-html5-slot-machine-source-code .h5s-vid:hover::after { transform: scale(1.1); }
#page-html5-slot-machine-source-code .h5s-story iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  display: block;
}
#page-html5-slot-machine-source-code .h5s-story blockquote {
  padding: 22px 22px 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--h5s-on-ink-2);
}
#page-html5-slot-machine-source-code .h5s-story figcaption {
  padding: 0 22px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--h5s-act-l);
}
#page-html5-slot-machine-source-code .h5s-stories__more {
  margin-top: 24px;
  font-size: 16px;
  color: var(--h5s-on-ink-2);
}

/* ══════════════════════════════════════════════════════════════════════════
   AREA WE SERVE
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-areas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--h5s-ink);
}
#page-html5-slot-machine-source-code .h5s-areas li {
  padding: 28px 24px 0 0;
  border-right: 1px solid var(--h5s-line-l);
}
#page-html5-slot-machine-source-code .h5s-areas li:last-child { border-right: 0; }
#page-html5-slot-machine-source-code .h5s-areas li:not(:first-child) { padding-left: 24px; }
#page-html5-slot-machine-source-code .h5s-areas h3 {
  font-size: 16px;
  letter-spacing: .09em;
  color: var(--h5s-act);
  margin-bottom: 14px;
}
#page-html5-slot-machine-source-code .h5s-areas a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 18px;
  font-weight: 700;
  color: var(--h5s-text);
  transition: color .18s ease;
}
#page-html5-slot-machine-source-code .h5s-areas a:hover { color: var(--h5s-act); }
#page-html5-slot-machine-source-code .h5s-areas address {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--h5s-text-2);
}

/* ══════════════════════════════════════════════════════════════════════════
   CTA MODAL — close control + iframe only (skill section 14)
   ══════════════════════════════════════════════════════════════════════════ */

#page-html5-slot-machine-source-code .h5s-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 17, 20, .78);
}
#page-html5-slot-machine-source-code .h5s-modal.open { display: flex; }
#page-html5-slot-machine-source-code .h5s-modal__box {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--h5s-paper-2);
  border-radius: var(--h5s-r);
  padding: 52px 20px 20px;
}
#page-html5-slot-machine-source-code .h5s-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--h5s-line-l);
  border-radius: var(--h5s-r);
  background: var(--h5s-paper);
  color: var(--h5s-text);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
#page-html5-slot-machine-source-code .h5s-modal__close:hover {
  background: var(--h5s-act);
  color: #ffffff;
}
#page-html5-slot-machine-source-code .h5s-modal iframe {
  width: 100%;
  min-height: 860px;
  border: 0;
  display: block;
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — four sibling top-level blocks, widest first.
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  #page-html5-slot-machine-source-code .h5s-types,
  #page-html5-slot-machine-source-code .h5s-players,
  #page-html5-slot-machine-source-code .h5s-mech,
  #page-html5-slot-machine-source-code .h5s-stories { grid-template-columns: repeat(2, 1fr); }
  #page-html5-slot-machine-source-code .h5s-offer,
  #page-html5-slot-machine-source-code .h5s-split,
  #page-html5-slot-machine-source-code .h5s-build__grid { grid-template-columns: 1fr; }
  #page-html5-slot-machine-source-code .h5s-gallery { grid-template-columns: repeat(2, 1fr); }
  #page-html5-slot-machine-source-code .h5s-areas { grid-template-columns: repeat(2, 1fr); }
  #page-html5-slot-machine-source-code .h5s-areas li:nth-child(2) { border-right: 0; }
  #page-html5-slot-machine-source-code .h5s-areas li:nth-child(3) { padding-left: 0; }
  #page-html5-slot-machine-source-code .h5s-ledger li { grid-template-columns: 54px 1fr; }
  #page-html5-slot-machine-source-code .h5s-ledger p { grid-column: 2; }
}

@media (max-width: 860px) {
  #page-html5-slot-machine-source-code .h5s-notes { grid-template-columns: 1fr; }
  #page-html5-slot-machine-source-code .h5s-notes li {
    padding: 26px 0 0 !important;
    border-right: 0;
    border-bottom: 1px solid var(--h5s-line-l);
    padding-bottom: 26px !important;
  }
  #page-html5-slot-machine-source-code .h5s-notes li:last-child { border-bottom: 0; }
  #page-html5-slot-machine-source-code .h5s-faq,
  #page-html5-slot-machine-source-code .h5s-index,
  #page-html5-slot-machine-source-code .h5s-build__intro { grid-template-columns: 1fr; }
  #page-html5-slot-machine-source-code .h5s-hero__trust { grid-template-columns: 1fr; }
  #page-html5-slot-machine-source-code .h5s-hero__trust li {
    border-left: 0;
    padding: 18px 0;
    border-bottom: 1px solid var(--h5s-line-d);
  }
  #page-html5-slot-machine-source-code .h5s-hero__trust li:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  #page-html5-slot-machine-source-code .h5s-wrap { padding-inline: 18px; }
  #page-html5-slot-machine-source-code .h5s-gallery { grid-template-columns: 1fr; gap: 16px; }
  #page-html5-slot-machine-source-code .h5s-types,
  #page-html5-slot-machine-source-code .h5s-players,
  #page-html5-slot-machine-source-code .h5s-mech,
  #page-html5-slot-machine-source-code .h5s-stories,
  #page-html5-slot-machine-source-code .h5s-areas { grid-template-columns: 1fr; }
  #page-html5-slot-machine-source-code .h5s-areas li {
    border-right: 0;
    border-bottom: 1px solid var(--h5s-line-l);
    padding: 24px 0 24px !important;
  }
  #page-html5-slot-machine-source-code .h5s-areas li:last-child { border-bottom: 0; }
  #page-html5-slot-machine-source-code .h5s-btn { width: 100%; }
  #page-html5-slot-machine-source-code .h5s-crumb__row { justify-content: flex-start; }
  #page-html5-slot-machine-source-code .h5s-modal__box { padding: 48px 12px 12px; }
  #page-html5-slot-machine-source-code .h5s-modal iframe { min-height: 900px; }
}

@media (max-width: 480px) {
  #page-html5-slot-machine-source-code .h5s-ledger li { grid-template-columns: 1fr; }
  #page-html5-slot-machine-source-code .h5s-ledger p { grid-column: 1; }
}

/* Rule 26 — honour the OS-level reduced-motion preference for what remains. */
@media (prefers-reduced-motion: reduce) {
  #page-html5-slot-machine-source-code *,
  #page-html5-slot-machine-source-code *::before,
  #page-html5-slot-machine-source-code *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
