/* ══════════════════════════════════════════════════════════════════════════
   /slot-machine-game-source-code — "Source Blueprint"
   AIS Technolabs · AISHTMLNEWDESIGN-322 (content) + 117 (meta/schema)

   ISOLATED PAGE STYLESHEET. Every rule is scoped under
   #page-slot-machine-game-source-code so nothing here can reach the shared
   header/footer injected by site-layout.js (those are owned by
   /assets/css/layout.css).

   Visual direction: "source blueprint" — espresso-graphite ink, warm parchment
   paper, a signal burnt-orange as the single action colour, and a cool slate
   blue kept for non-interactive numerals (a nod to Java's blue-and-orange
   without being literal about it). Deliberately distinct from all three
   siblings: /slot-machine-html-code is near-black + amber,
   /slot-machine-software-for-sale is midnight navy + cream + crimson, and
   /php-slot-machine is charcoal-teal + PHP indigo.

   Motion policy (rule 26): no @keyframes anywhere in this file. Every
   transition is a finite response to hover, focus, press or details-open.
   ══════════════════════════════════════════════════════════════════════════ */

#page-slot-machine-game-source-code {
  /* ── Ink / dark surfaces ── */
  --sgs-ink:      #171310;
  --sgs-ink-2:    #221c17;
  --sgs-ink-3:    #332a22;
  --sgs-line-d:   rgba(255, 255, 255, .13);
  --sgs-on-ink:   #f6f1ea;
  --sgs-on-ink-2: #cabfb2;

  /* ── Paper / light surfaces ── */
  --sgs-paper:    #ffffff;
  --sgs-paper-2:  #faf7f2;
  --sgs-paper-3:  #efe8dd;
  --sgs-line-l:   #e2d9cc;

  /* ── Text on light (all ≥ 4.5:1 on paper and paper-2) ── */
  --sgs-text:     #1c1712;
  --sgs-text-2:   #4a4239;

  /* ── Action ── */
  --sgs-orange:   #c2410c;   /* white text on this ≈ 4.9:1 */
  --sgs-orange-d: #9a3412;
  --sgs-orange-l: #fb923c;   /* on ink only */

  /* ── Accent: slate. Decorative only — never the sole carrier of meaning,
        never an interactive affordance. ── */
  --sgs-slate:    #3f5f8f;   /* on paper */
  --sgs-slate-l:  #8fb3e0;   /* on ink   */

  --sgs-r:   14px;
  --sgs-r-s: 9px;

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

/* ─── UA BODY MARGIN RESET — do not delete ─────────────────────────────────
   Browser default is body{margin:8px}. The isolated model has no owner for it:
   layout.css is namespaced under #site-header/#site-footer and page CSS under
   #page-<slug>, so NEITHER can reach <body>. Without this every full-bleed
   band, plus the header and footer, is inset 8px and the page background shows
   as a thin strip down both edges.
   Unscoped on purpose — this sheet is per-page, never shared. */
html, body { margin: 0; padding: 0; }

/* ── Self-contained baseline ──────────────────────────────────────────────
   (See docs/conversion/validate-conversion.py — check_baseline.) */
#page-slot-machine-game-source-code a { text-decoration: none; color: inherit; }
#page-slot-machine-game-source-code a:hover { text-decoration: none; }
#page-slot-machine-game-source-code ul,
#page-slot-machine-game-source-code ol { list-style: none; margin: 0; padding: 0; }
#page-slot-machine-game-source-code p { margin: 0 0 18px; }
#page-slot-machine-game-source-code p:last-child { margin-bottom: 0; }
#page-slot-machine-game-source-code img { max-width: 100%; height: auto; display: block; }
#page-slot-machine-game-source-code *,
#page-slot-machine-game-source-code *::before,
#page-slot-machine-game-source-code *::after { box-sizing: border-box; }

/* Deliberately NO element-level h1..h6 { text-align } — text-align is
   inherited, and such a default silently flattens headings that legitimately
   centre from a centred parent. Alignment is set per component below. */

#page-slot-machine-game-source-code :focus-visible {
  outline: 3px solid var(--sgs-orange);
  outline-offset: 3px;
  border-radius: 4px;
}
#page-slot-machine-game-source-code .sgs-sec--ink :focus-visible,
#page-slot-machine-game-source-code .sgs-hero :focus-visible { outline-color: var(--sgs-orange-l); }

/* ══════════════════ LAYOUT PRIMITIVES ══════════════════ */

#page-slot-machine-game-source-code .sgs-wrap {
  max-width: 1200px; margin-inline: auto; padding-inline: 24px;
}
#page-slot-machine-game-source-code .sgs-sec { padding-block: clamp(56px, 7vw, 104px); }
#page-slot-machine-game-source-code .sgs-sec--paper { background: var(--sgs-paper); }
#page-slot-machine-game-source-code .sgs-sec--tint  { background: var(--sgs-paper-2); }
#page-slot-machine-game-source-code .sgs-sec--ink   { background: var(--sgs-ink); color: var(--sgs-on-ink); }
#page-slot-machine-game-source-code .sgs-sec--ink p { color: var(--sgs-on-ink-2); }

#page-slot-machine-game-source-code .sgs-head { margin-bottom: clamp(32px, 4vw, 52px); }
#page-slot-machine-game-source-code .sgs-head--center {
  text-align: center; max-width: 860px; margin-inline: auto;
}
#page-slot-machine-game-source-code .sgs-head h2 { margin: 10px 0 0; }
#page-slot-machine-game-source-code .sgs-head .sgs-lede { margin-top: 16px; }

/* ══════════════════ TYPE ══════════════════ */

#page-slot-machine-game-source-code h1,
#page-slot-machine-game-source-code h2,
#page-slot-machine-game-source-code h3,
#page-slot-machine-game-source-code h4 {
  margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: inherit;
}
#page-slot-machine-game-source-code h2 { font-size: clamp(30px, 3.6vw, 46px); }
#page-slot-machine-game-source-code h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; }
#page-slot-machine-game-source-code h4 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; }

#page-slot-machine-game-source-code .sgs-lede {
  font-size: clamp(17px, 1.35vw, 19px); color: var(--sgs-text-2);
}
#page-slot-machine-game-source-code .sgs-sec--ink .sgs-lede { color: var(--sgs-on-ink-2); }

#page-slot-machine-game-source-code .sgs-eyebrow {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sgs-orange-l);
}
#page-slot-machine-game-source-code .sgs-eyebrow--dark { color: var(--sgs-orange-d); }

#page-slot-machine-game-source-code .sgs-small-title {
  margin-top: 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sgs-orange-d);
}
#page-slot-machine-game-source-code .sgs-sec--ink .sgs-small-title { color: var(--sgs-orange-l); }

/* Inline text link inside body copy — the only "second destination" pattern
   allowed by rule 25 (no primary + secondary button pairs). */
#page-slot-machine-game-source-code .sgs-link {
  color: var(--sgs-orange-d); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px;
}
#page-slot-machine-game-source-code .sgs-link:hover { color: var(--sgs-orange); text-decoration: underline; }
#page-slot-machine-game-source-code .sgs-sec--ink .sgs-link,
#page-slot-machine-game-source-code .sgs-hero .sgs-link { color: var(--sgs-orange-l); }

/* ══════════════════ BUTTONS ══════════════════ */

#page-slot-machine-game-source-code .sgs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-size: 17px; font-weight: 700; letter-spacing: .01em; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
#page-slot-machine-game-source-code .sgs-btn--orange {
  background: var(--sgs-orange); color: #fff; border-color: var(--sgs-orange);
}
#page-slot-machine-game-source-code .sgs-btn--orange:hover { background: var(--sgs-orange-d); border-color: var(--sgs-orange-d); }
#page-slot-machine-game-source-code .sgs-btn--ink {
  background: var(--sgs-ink); color: var(--sgs-on-ink); border-color: var(--sgs-ink);
}
#page-slot-machine-game-source-code .sgs-btn--ink:hover { background: var(--sgs-ink-3); border-color: var(--sgs-ink-3); }
#page-slot-machine-game-source-code .sgs-btn--ghost {
  background: transparent; color: var(--sgs-on-ink); border-color: rgba(255, 255, 255, .45);
}
#page-slot-machine-game-source-code .sgs-btn--ghost:hover {
  background: var(--sgs-on-ink); color: var(--sgs-ink); border-color: var(--sgs-on-ink);
}
#page-slot-machine-game-source-code .sgs-btn:active { transform: translateY(1px); }
#page-slot-machine-game-source-code .sgs-cta-row { margin-top: 40px; text-align: center; }

/* ══════════════════ BREADCRUMB ══════════════════ */

#page-slot-machine-game-source-code .sgs-crumb {
  background: var(--sgs-paper-2); border-bottom: 1px solid var(--sgs-line-l);
  padding-block: 14px; font-size: 16px;
}
#page-slot-machine-game-source-code .sgs-crumb ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--sgs-text-2);
}
#page-slot-machine-game-source-code .sgs-crumb a {
  display: inline-flex; align-items: center; gap: 7px; color: var(--sgs-text-2); font-weight: 600;
}
#page-slot-machine-game-source-code .sgs-crumb a:hover { color: var(--sgs-orange-d); }
#page-slot-machine-game-source-code .sgs-crumb svg { width: 17px; height: 17px; }
#page-slot-machine-game-source-code .sgs-crumb [aria-current] { color: var(--sgs-text); font-weight: 700; }

/* ══════════════════ HERO — full-bleed, image-free, centred column ══════════
   Rule 24: background is a STATIC gradient (no url(), no animation).        */

#page-slot-machine-game-source-code .sgs-hero {
  width: 100%;
  padding: clamp(88px, 10vw, 168px) 24px clamp(72px, 8vw, 128px);
  min-height: min(92vh, 900px);
  display: flex; align-items: center;
  background:
    radial-gradient(88% 120% at 50% -18%, #3d2f22 0%, rgba(61, 47, 34, 0) 62%),
    linear-gradient(180deg, var(--sgs-ink) 0%, var(--sgs-ink-2) 100%);
  color: var(--sgs-on-ink);
  border-bottom: 3px solid var(--sgs-orange-l);
  text-align: center;
}
#page-slot-machine-game-source-code .sgs-hero__inner { max-width: 940px; margin-inline: auto; width: 100%; }
#page-slot-machine-game-source-code .sgs-hero h1 {
  margin: 20px 0 0; font-size: clamp(42px, 5.6vw, 74px); line-height: 1.03;
}
#page-slot-machine-game-source-code .sgs-hero h1 em { font-style: normal; color: var(--sgs-orange-l); }
#page-slot-machine-game-source-code .sgs-hero__lede {
  margin: 24px auto 0; max-width: 800px;
  font-size: clamp(17px, 1.4vw, 19px); color: var(--sgs-on-ink-2);
}
#page-slot-machine-game-source-code .sgs-hero__sub {
  margin: 18px auto 0; max-width: 780px;
  font-size: clamp(16px, 1.2vw, 17px); color: var(--sgs-on-ink-2);
}
#page-slot-machine-game-source-code .sgs-hero .sgs-btn { margin-top: 36px; }

#page-slot-machine-game-source-code .sgs-hero__trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px;
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--sgs-line-d);
}
#page-slot-machine-game-source-code .sgs-hero__trust li {
  display: flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 600; color: var(--sgs-on-ink);
}
#page-slot-machine-game-source-code .sgs-hero__trust svg {
  width: 18px; height: 18px; flex: none; color: var(--sgs-orange-l);
}

/* Proof strip — counts of content on this page, not invented claims. */
#page-slot-machine-game-source-code .sgs-hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin: 40px 0 0; padding-top: 32px; border-top: 1px solid var(--sgs-line-d);
  text-align: left;
}
#page-slot-machine-game-source-code .sgs-hero__stats div { display: flex; flex-direction: column; gap: 6px; }
#page-slot-machine-game-source-code .sgs-hero__stats dt {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(30px, 3vw, 40px); font-weight: 700; line-height: 1;
  color: var(--sgs-slate-l);
}
#page-slot-machine-game-source-code .sgs-hero__stats dd {
  margin: 0; font-size: 16px; line-height: 1.45; color: var(--sgs-on-ink-2);
}

/* ══════════════════ 3-UP CARDS ══════════════════ */

#page-slot-machine-game-source-code .sgs-cards {
  display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr);
}
#page-slot-machine-game-source-code .sgs-card {
  padding: 32px 28px; background: var(--sgs-paper);
  border: 1px solid var(--sgs-line-l); border-top: 3px solid var(--sgs-orange);
  border-radius: var(--sgs-r);
}
#page-slot-machine-game-source-code .sgs-card h3 { margin-bottom: 14px; }
#page-slot-machine-game-source-code .sgs-card p { color: var(--sgs-text-2); font-size: 17px; }

/* ══════════════════ BAND ══════════════════ */

#page-slot-machine-game-source-code .sgs-band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px;
}
#page-slot-machine-game-source-code .sgs-band h2 { font-size: clamp(26px, 3vw, 38px); }
#page-slot-machine-game-source-code .sgs-band p { margin: 14px 0 0; max-width: 660px; }

/* ══════════════════ SCREENSHOT CAROUSEL (user-driven only) ══════════════════ */

#page-slot-machine-game-source-code .sgs-car { position: relative; }
#page-slot-machine-game-source-code .sgs-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 12px; scrollbar-width: thin;
}
#page-slot-machine-game-source-code .sgs-shot {
  flex: 0 0 clamp(240px, 30vw, 360px); margin: 0; scroll-snap-align: start;
  background: var(--sgs-ink-2); border: 1px solid var(--sgs-line-d);
  border-radius: var(--sgs-r-s); overflow: hidden;
}
#page-slot-machine-game-source-code .sgs-shot img { width: 100%; aspect-ratio: 542 / 372; object-fit: cover; }
#page-slot-machine-game-source-code .sgs-shot figcaption {
  padding: 14px 16px; font-size: 16px; font-weight: 600; color: var(--sgs-on-ink-2);
}
#page-slot-machine-game-source-code .sgs-car__nav {
  display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px;
}
#page-slot-machine-game-source-code .sgs-car__nav button {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--sgs-line-d); background: transparent; color: var(--sgs-on-ink);
  cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
#page-slot-machine-game-source-code .sgs-car__nav button:hover {
  background: var(--sgs-orange-l); border-color: var(--sgs-orange-l); color: var(--sgs-ink);
}
#page-slot-machine-game-source-code .sgs-car__nav svg { width: 20px; height: 20px; }

/* ══════════════════ SLOT TYPE TILES ══════════════════ */

#page-slot-machine-game-source-code .sgs-types {
  display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr);
}
#page-slot-machine-game-source-code .sgs-type {
  margin: 0; border: 1px solid var(--sgs-line-l); border-radius: var(--sgs-r-s);
  overflow: hidden; background: var(--sgs-paper); transition: border-color .18s ease;
}
#page-slot-machine-game-source-code .sgs-type:hover { border-color: var(--sgs-orange); }
#page-slot-machine-game-source-code .sgs-type img { width: 100%; aspect-ratio: 214 / 120; object-fit: cover; }
#page-slot-machine-game-source-code .sgs-type figcaption {
  padding: 15px 18px; font-size: 17px; font-weight: 700; color: var(--sgs-text);
}

/* ══════════════════ ADMIN PANEL — hairline definition grid ══════════════════ */

#page-slot-machine-game-source-code .sgs-admin {
  display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr);
  background: var(--sgs-line-d); border: 1px solid var(--sgs-line-d);
  border-radius: var(--sgs-r); overflow: hidden;
}
#page-slot-machine-game-source-code .sgs-admin > div { padding: 28px 26px; background: var(--sgs-ink); }
#page-slot-machine-game-source-code .sgs-admin h3 { font-size: 19px; margin-bottom: 10px; color: var(--sgs-orange-l); }
#page-slot-machine-game-source-code .sgs-admin p { font-size: 16px; }

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

#page-slot-machine-game-source-code .sgs-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
#page-slot-machine-game-source-code .sgs-split--narrow { grid-template-columns: 1.05fr .95fr; }
#page-slot-machine-game-source-code .sgs-split h2 { margin: 10px 0 18px; }
#page-slot-machine-game-source-code .sgs-split__media img { width: 100%; border-radius: var(--sgs-r); }

#page-slot-machine-game-source-code .sgs-linklist { display: grid; gap: 10px; margin-top: 8px; }
#page-slot-machine-game-source-code .sgs-linklist a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px; border: 1px solid var(--sgs-line-l); border-radius: var(--sgs-r-s);
  background: var(--sgs-paper); font-size: 17px; font-weight: 600; color: var(--sgs-text);
  transition: border-color .18s ease, color .18s ease;
}
#page-slot-machine-game-source-code .sgs-linklist a:hover { border-color: var(--sgs-orange); color: var(--sgs-orange-d); }
#page-slot-machine-game-source-code .sgs-linklist svg { width: 18px; height: 18px; flex: none; }

/* ══════════════════ NUMBERED FEATURE CARDS ══════════════════ */

#page-slot-machine-game-source-code .sgs-numbered {
  display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); counter-reset: sgs-n;
}
#page-slot-machine-game-source-code .sgs-numbered li {
  position: relative; counter-increment: sgs-n; padding: 28px 26px 26px 70px;
  border: 1px solid var(--sgs-line-l); border-radius: var(--sgs-r); background: var(--sgs-paper);
  transition: border-color .18s ease, box-shadow .18s ease;
}
#page-slot-machine-game-source-code .sgs-numbered li:hover {
  border-color: var(--sgs-orange); box-shadow: 0 10px 30px rgba(28, 23, 18, .08);
}
#page-slot-machine-game-source-code .sgs-numbered li::before {
  content: counter(sgs-n, decimal-leading-zero);
  position: absolute; left: 24px; top: 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px; font-weight: 700; color: var(--sgs-slate);
}
#page-slot-machine-game-source-code .sgs-numbered h3 { font-size: 19px; margin-bottom: 10px; }
#page-slot-machine-game-source-code .sgs-numbered p { font-size: 16px; color: var(--sgs-text-2); }

/* ══════════════════ TICKED LISTS ══════════════════ */

#page-slot-machine-game-source-code .sgs-ticks { display: grid; gap: 14px; margin-top: 22px; }
#page-slot-machine-game-source-code .sgs-ticks--2col { grid-template-columns: repeat(2, 1fr); gap: 14px 30px; }
#page-slot-machine-game-source-code .sgs-ticks li {
  display: flex; align-items: flex-start; gap: 12px; font-size: 17px; color: var(--sgs-text-2);
}
#page-slot-machine-game-source-code .sgs-ticks svg {
  width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--sgs-orange);
}
#page-slot-machine-game-source-code .sgs-sec--ink .sgs-ticks li { color: var(--sgs-on-ink-2); }
#page-slot-machine-game-source-code .sgs-sec--ink .sgs-ticks svg { color: var(--sgs-orange-l); }

/* Ordered "customization" list — slate numerals, matches the numbered cards */
#page-slot-machine-game-source-code .sgs-steps { display: grid; gap: 12px; margin-top: 18px; counter-reset: sgs-s; }
#page-slot-machine-game-source-code .sgs-steps li {
  counter-increment: sgs-s; display: flex; gap: 14px; align-items: flex-start;
  font-size: 17px; color: var(--sgs-text-2);
}
#page-slot-machine-game-source-code .sgs-steps li::before {
  content: counter(sgs-s, decimal-leading-zero); flex: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700; color: var(--sgs-slate);
}

/* ══════════════════ PAIR CARDS ══════════════════ */

#page-slot-machine-game-source-code .sgs-pair {
  display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); margin-top: 28px;
}
#page-slot-machine-game-source-code .sgs-pair article {
  padding: 26px 24px; border-radius: var(--sgs-r-s);
  background: var(--sgs-paper); border-left: 4px solid var(--sgs-slate);
}
#page-slot-machine-game-source-code .sgs-pair h3 { font-size: 20px; margin-bottom: 8px; }
#page-slot-machine-game-source-code .sgs-pair p { color: var(--sgs-text-2); font-size: 17px; }

/* ══════════════════ TESTIMONIALS (click-to-load video facades) ══════════════ */

#page-slot-machine-game-source-code .sgs-quotes {
  display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr);
}
#page-slot-machine-game-source-code .sgs-quote {
  display: flex; flex-direction: column; border: 1px solid var(--sgs-line-d);
  border-radius: var(--sgs-r); background: var(--sgs-ink-2); overflow: hidden;
}
#page-slot-machine-game-source-code .sgs-vid {
  position: relative; aspect-ratio: 16 / 9; border: 0; padding: 0; width: 100%;
  display: grid; place-items: center; cursor: pointer; color: var(--sgs-ink);
  background: linear-gradient(135deg, var(--sgs-ink-3) 0%, var(--sgs-ink) 100%);
  border-bottom: 1px solid var(--sgs-line-d);
}
#page-slot-machine-game-source-code .sgs-vid span {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sgs-orange-l); transition: background-color .18s ease, transform .12s ease;
}
#page-slot-machine-game-source-code .sgs-vid:hover span { background: #fff; }
#page-slot-machine-game-source-code .sgs-vid:active span { transform: translateY(1px); }
#page-slot-machine-game-source-code .sgs-vid svg { width: 26px; height: 26px; margin-left: 3px; }
#page-slot-machine-game-source-code .sgs-quote iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
#page-slot-machine-game-source-code .sgs-quote blockquote {
  margin: 0; padding: 26px 24px; font-size: 17px; color: var(--sgs-on-ink-2);
}
#page-slot-machine-game-source-code .sgs-quotes-more { margin-top: 32px; text-align: center; }

/* ══════════════════ RELATED LINK CLOUD ══════════════════ */

#page-slot-machine-game-source-code .sgs-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
#page-slot-machine-game-source-code .sgs-cloud a {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px;
  border: 1px solid var(--sgs-line-l); border-radius: 999px; background: var(--sgs-paper);
  font-size: 16px; font-weight: 600; color: var(--sgs-text);
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
#page-slot-machine-game-source-code .sgs-cloud a:hover {
  border-color: var(--sgs-orange); background: var(--sgs-orange); color: #fff;
}

/* ══════════════════ FAQ (native details/summary) ══════════════════ */

#page-slot-machine-game-source-code .sgs-faq { display: grid; gap: 14px; }
#page-slot-machine-game-source-code .sgs-faq details {
  border: 1px solid var(--sgs-line-l); border-radius: var(--sgs-r-s);
  background: var(--sgs-paper); overflow: hidden;
}
#page-slot-machine-game-source-code .sgs-faq details[open] { border-color: var(--sgs-orange); }
#page-slot-machine-game-source-code .sgs-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; cursor: pointer; list-style: none; min-height: 44px;
}
#page-slot-machine-game-source-code .sgs-faq summary::-webkit-details-marker { display: none; }
#page-slot-machine-game-source-code .sgs-faq summary h3 { font-size: 19px; font-weight: 700; }
#page-slot-machine-game-source-code .sgs-faq summary::after {
  content: ""; flex: none; width: 13px; height: 13px;
  border-right: 2.5px solid var(--sgs-orange); border-bottom: 2.5px solid var(--sgs-orange);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease;
}
#page-slot-machine-game-source-code .sgs-faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
#page-slot-machine-game-source-code .sgs-faq details > p {
  padding: 0 24px 24px; font-size: 17px; color: var(--sgs-text-2);
}



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

#page-slot-machine-game-source-code .sgs-offices {
  display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr);
}
#page-slot-machine-game-source-code .sgs-office {
  padding: 28px 24px; border-radius: var(--sgs-r-s);
  background: var(--sgs-ink-2); border-top: 3px solid var(--sgs-orange-l);
}
#page-slot-machine-game-source-code .sgs-office h3 {
  font-size: 17px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sgs-orange-l); margin-bottom: 14px;
}
#page-slot-machine-game-source-code .sgs-office a {
  display: inline-block; margin-bottom: 10px; font-size: 18px; font-weight: 700; color: var(--sgs-on-ink);
}
#page-slot-machine-game-source-code .sgs-office a:hover { color: var(--sgs-orange-l); }
#page-slot-machine-game-source-code .sgs-office address {
  font-style: normal; font-size: 16px; line-height: 1.6; color: var(--sgs-on-ink-2);
}

/* ══════════════════ FINAL CTA ══════════════════ */

#page-slot-machine-game-source-code .sgs-final { text-align: center; max-width: 860px; margin-inline: auto; }
#page-slot-machine-game-source-code .sgs-final h2 { margin-bottom: 18px; }
#page-slot-machine-game-source-code .sgs-final .sgs-btn { margin-top: 30px; }

/* ══════════════════ CTA MODAL ══════════════════ */

#page-slot-machine-game-source-code .sgs-modal {
  position: fixed; inset: 0; z-index: 9999; display: none;
  align-items: flex-start; justify-content: center; padding: 24px 16px;
  overflow-y: auto; background: rgba(23, 19, 16, .76);
}
#page-slot-machine-game-source-code .sgs-modal.open { display: flex; }
#page-slot-machine-game-source-code .sgs-modal__box {
  position: relative; width: 100%; max-width: 620px;
  background: #fff; border-radius: var(--sgs-r); overflow: hidden;
}
#page-slot-machine-game-source-code .sgs-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--sgs-paper-3); color: var(--sgs-text);
  cursor: pointer; transition: background-color .18s ease, color .18s ease;
}
#page-slot-machine-game-source-code .sgs-modal__close:hover { background: var(--sgs-orange); color: #fff; }
/* Rule 20: min-height ≥ real form height + 100px buffer; the JS postMessage
   listener adjusts upward when the widget reports its own height. */
#page-slot-machine-game-source-code .sgs-modal iframe {
  display: block; width: 100%; min-height: 820px; border: 0;
}

/* ══════════════════ RESPONSIVE ══════════════════ */

@media (max-width: 1024px) {
  #page-slot-machine-game-source-code .sgs-hero__stats { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  #page-slot-machine-game-source-code .sgs-cards,
  #page-slot-machine-game-source-code .sgs-numbered,
  #page-slot-machine-game-source-code .sgs-quotes { grid-template-columns: repeat(2, 1fr); }
  #page-slot-machine-game-source-code .sgs-offices { grid-template-columns: repeat(2, 1fr); }
  #page-slot-machine-game-source-code .sgs-split,
  #page-slot-machine-game-source-code .sgs-split--narrow,
  #page-slot-machine-game-source-code .sgs-band { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  #page-slot-machine-game-source-code .sgs-wrap { padding-inline: 18px; }
  #page-slot-machine-game-source-code .sgs-cards,
  #page-slot-machine-game-source-code .sgs-types,
  #page-slot-machine-game-source-code .sgs-admin,
  #page-slot-machine-game-source-code .sgs-numbered,
  #page-slot-machine-game-source-code .sgs-pair,
  #page-slot-machine-game-source-code .sgs-quotes,
  #page-slot-machine-game-source-code .sgs-offices,
  #page-slot-machine-game-source-code .sgs-ticks--2col { grid-template-columns: 1fr; }
  /* The shared chrome's .sidebar-icon rail is position:fixed over the leftmost
     36px at z-index 50. Hero inline padding clears it, and the left-aligned
     blocks stay centred rather than sitting against the rail. */
  #page-slot-machine-game-source-code .sgs-hero {
    min-height: 0; display: block; padding-inline: 40px;
    padding-top: clamp(48px, 12vw, 72px); padding-bottom: clamp(44px, 10vw, 64px);
  }
  #page-slot-machine-game-source-code .sgs-hero__trust {
    flex-direction: column; align-items: center; gap: 12px; margin-top: 30px; padding-top: 24px;
  }
  #page-slot-machine-game-source-code .sgs-hero__stats {
    grid-template-columns: repeat(2, 1fr); gap: 20px 16px;
    margin-top: 28px; padding-top: 24px; text-align: center;
  }
  #page-slot-machine-game-source-code .sgs-hero__stats div { align-items: center; }
  #page-slot-machine-game-source-code .sgs-hero__stats dt { font-size: clamp(26px, 8vw, 32px); }
  #page-slot-machine-game-source-code .sgs-btn { width: 100%; }
  #page-slot-machine-game-source-code .sgs-car__nav { justify-content: center; }
  #page-slot-machine-game-source-code .sgs-shot { flex-basis: 78vw; }
  #page-slot-machine-game-source-code .sgs-modal iframe { min-height: 900px; }
}

@media (max-width: 400px) {
  #page-slot-machine-game-source-code .sgs-cloud a { width: 100%; }
}

/* ══════════════════ REDUCED MOTION ══════════════════
   No @keyframes exist in this file; this neutralises the remaining finite
   transitions for users who ask for it. */
@media (prefers-reduced-motion: reduce) {
  #page-slot-machine-game-source-code *,
  #page-slot-machine-game-source-code *::before,
  #page-slot-machine-game-source-code *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  #page-slot-machine-game-source-code .sgs-modal,
  #page-slot-machine-game-source-code .sgs-car__nav { display: none !important; }
}

/* ── FAQ: Q badge + Ans. label ──────────────────────────────────────────
   Production's treatment, adopted site-wide. Number and label are CSS
   generated content so the FAQPage JSON-LD keeps matching the visible text.
   The answer's left inset equals the summary's own padding, which puts
   "Ans." directly beneath the Q badge (the question number) rather than
   beneath the question text. */
#page-slot-machine-game-source-code .sgs-faq { counter-reset: sgs-faq; }
#page-slot-machine-game-source-code .sgs-faq details { counter-increment: sgs-faq; }
#page-slot-machine-game-source-code .sgs-faq summary::before {
  content: "Q" counter(sgs-faq);
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; padding: 4px 10px; margin-right: 14px; border-radius: 8px;
  background: rgba(194,65,12, .09); border: 1px solid rgba(194,65,12, .30);
  color: var(--sgs-orange-d); font-size: 16px; font-weight: 800; line-height: 1.25;
}
#page-slot-machine-game-source-code .sgs-faq details[open] summary::before {
  background: var(--sgs-orange); border-color: var(--sgs-orange); color: #ffffff;
}
#page-slot-machine-game-source-code .sgs-faq summary h3 { margin-right: auto; }
#page-slot-machine-game-source-code .sgs-faq details > p::before {
  content: "Ans.";
  color: var(--sgs-orange-d); font-weight: 800; letter-spacing: .06em; margin-right: 8px;
}
@media (max-width: 575px) {
  #page-slot-machine-game-source-code .sgs-faq summary::before { min-width: 38px; margin-right: 10px; }
}

