/* =========================================================================
   slotgamefa.com — design system
   Direction: modern game portal. Warm ink "cabinet" surface, amber + teal
   accents, chunky cartridge cards, generous display type.
   ========================================================================= */

:root {
  --ink: #12100e;
  --ink-2: #1a1713;
  --ink-3: #221d18;
  --line: #332b23;
  --cream: #f4ece0;
  --muted: #a89681;
  --amber: #e8b04b;
  --amber-2: #f6c96f;
  --teal: #35a79c;
  --rose: #e2694f;
  --ok: #6fbf73;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 20px;
  --wrap: 1120px;
  --fs-xs: 0.78rem;
  --fs-s: 0.9rem;
  --fs-b: 1.02rem;
  --fs-h3: 1.22rem;
  --fs-h2: 1.6rem;
  --fs-h1: clamp(1.85rem, 1.2rem + 2.6vw, 3rem);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --font: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Tahoma, "Iranian Sans", sans-serif;
}

* { box-sizing: border-box; }
/* Any element carrying [hidden] must stay hidden even when a later rule gives
   it a display value (the slot modal layer is display:grid, for example). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font);
  font-size: var(--fs-b);
  line-height: 1.85;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--amber-2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1.05em; }
ul, ol { padding-inline-start: 1.35rem; margin: 0 0 1.1em; }
li { margin-bottom: 0.45em; }
small { font-size: var(--fs-xs); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; background: var(--ink-3); padding: 0.1em 0.35em; border-radius: 5px; }
table { border-collapse: collapse; width: 100%; }
.muted { color: var(--muted); }
.unk { color: var(--muted); font-size: var(--fs-s); font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }
.skip { position: absolute; inset-inline-start: -9999px; top: 0; background: var(--amber); color: #14100a; padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 var(--r-s) 0; }
.skip:focus { inset-inline-start: 0; }

/* ------------------------------------------------------------------ header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 16, 14, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 0.9rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.55rem; color: var(--cream); text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand-txt strong { font-size: 1.06rem; letter-spacing: -0.02em; }
.brand-txt small { color: var(--muted); font-size: 0.7rem; }
.logo-mark { flex: 0 0 auto; }

.nav-toggle {
  margin-inline-start: auto; display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--ink-3); color: var(--cream); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.45rem 0.85rem; font: inherit; font-size: var(--fs-s); cursor: pointer;
}
.nav-toggle span { width: 15px; height: 2px; background: var(--amber); box-shadow: 0 5px 0 var(--amber), 0 -5px 0 var(--amber); }
.main-nav { display: none; width: 100%; }
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; margin: 0.4rem 0 0.8rem; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.main-nav a { display: block; padding: 0.55rem 0.7rem; border-radius: var(--r-s); color: var(--cream); font-size: var(--fs-s); }
.main-nav a:hover { background: var(--ink-3); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--amber-2); background: var(--ink-3); }
.main-nav .nav-play { background: var(--amber); color: #14100a; font-weight: 800; text-align: center; }
.main-nav .nav-play:hover { background: var(--amber-2); }

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .main-nav { display: block !important; width: auto; margin-inline-start: auto; }
  .main-nav ul { flex-direction: row; align-items: center; gap: 0.15rem; margin: 0; }
  .main-nav a { padding: 0.4rem 0.6rem; font-size: 0.86rem; white-space: nowrap; }
  .main-nav .nav-play { padding-inline: 1rem; border-radius: 999px; }
}

/* -------------------------------------------------------------- breadcrumb */
.crumbs { border-bottom: 1px solid var(--line); background: var(--ink-2); }
.crumbs ol { max-width: var(--wrap); margin-inline: auto; padding: 0.5rem 1rem; list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: var(--fs-xs); color: var(--muted); }
.crumbs li + li::before { content: "‹"; margin-inline-end: 0.35rem; color: var(--line); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] span { color: var(--cream); }

/* ------------------------------------------------------------------ layout */
.sec { max-width: var(--wrap); margin: 0 auto; padding: 2.4rem 1rem; }
.sec + .sec { padding-top: 0.6rem; }
.sec-lead { color: var(--muted); max-width: 62ch; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.9em; padding-top: 0.2em; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 1.5em; color: var(--amber-2); }
.prose ul li::marker { color: var(--amber); }

/* -------------------------------------------------------------------- hero */
.hero { background: radial-gradient(900px 420px at 80% -10%, rgba(232, 176, 75, 0.14), transparent 65%), var(--ink-2); border-bottom: 1px solid var(--line); }
.hero-in { max-width: var(--wrap); margin-inline: auto; padding: 2.6rem 1rem 2.2rem; display: grid; gap: 2rem; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-xs); font-weight: 700; color: var(--teal); border: 1px solid rgba(53, 167, 156, 0.4); border-radius: 999px; padding: 0.25rem 0.7rem; margin-bottom: 0.9rem; }
.hero h1 { margin-bottom: 0.5em; }
.hero p.lead { font-size: 1.08rem; color: #ddd0bd; max-width: 55ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }
.hero-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-top: 1.6rem; }
.hero-fact { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0.7rem 0.8rem; }
.hero-fact b { display: block; font-size: 1.25rem; color: var(--amber-2); }
.hero-fact span { font-size: var(--fs-xs); color: var(--muted); }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding-block: 3.4rem 3rem; }
  .hero-facts { grid-template-columns: repeat(4, 1fr); }
}

/* static reel preview in the hero — pure CSS, no JS, no image request */
.reel-preview { background: linear-gradient(180deg, #1b1610, #100d0a); border: 2px solid rgba(232, 176, 75, 0.35); border-radius: var(--r-l); padding: 0.7rem; box-shadow: var(--shadow); }
.reel-preview-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.3rem; }
.reel-preview-col { display: grid; gap: 0.3rem; background: #071c16; border-radius: var(--r-s); padding: 0.3rem; }
.rp-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: clamp(1rem, 3.6vw, 1.5rem); font-weight: 800; background: rgba(255, 255, 255, 0.04); }
.rp-cell.is-hot { background: rgba(232, 176, 75, 0.18); box-shadow: inset 0 0 0 1px rgba(232, 176, 75, 0.5); }
.reel-preview-cap { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); margin-top: 0.6rem; }

/* ----------------------------------------------------------------- buttons */
.btn-primary, .btn-cta, .btn-ghost, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  font: inherit; font-weight: 800; font-size: var(--fs-s); border-radius: 999px;
  padding: 0.62rem 1.25rem; cursor: pointer; border: 1px solid transparent; text-decoration: none;
}
.btn-primary, .btn-cta { background: var(--amber); color: #16110a; }
.btn-primary:hover, .btn-cta:hover { background: var(--amber-2); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--amber); text-decoration: none; }
.btn-line { background: var(--teal); color: #06201d; }
.btn-line:hover { filter: brightness(1.1); text-decoration: none; }

/* ---------------------------------------------------------- cartridge card */
.grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .grid.g2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.g3 { grid-template-columns: repeat(3, 1fr); } .grid.g2 { grid-template-columns: repeat(2, 1fr); } }

.cart { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; }
.cart-top { height: 5px; background: linear-gradient(90deg, var(--amber), var(--teal)); }
.cart-head { display: flex; align-items: center; gap: 0.7rem; padding: 1rem 1rem 0.4rem; }
.cart-head h3 { margin: 0; font-size: 1.05rem; }
.cart-head h3 a { color: var(--cream); }
.cart-en { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.cart-rank { margin-inline-start: auto; font-size: var(--fs-xs); background: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.6rem; color: var(--muted); white-space: nowrap; }
.cart-score { padding: 0 1rem; font-size: var(--fs-s); color: var(--muted); margin-bottom: 0.6rem; }
.cart-desc { padding: 0 1rem; font-size: var(--fs-s); color: #cfc0ad; }
.cart-foot { margin-top: auto; padding: 0.4rem 1rem 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.brand-logo { background: rgba(255, 255, 255, 0.92); border-radius: 10px; padding: 5px 7px; object-fit: contain; max-height: 46px; width: auto; }

.sc { font-weight: 800; color: var(--amber-2); font-variant-numeric: tabular-nums; }
.sc small { color: var(--muted); font-weight: 500; }
.stars { color: var(--amber); letter-spacing: 2px; }

/* score bars */
.bars { padding: 0 1rem 0.5rem; display: grid; gap: 0.3rem; }
.bar-row { display: grid; grid-template-columns: 8.5rem 1fr 2.4rem; align-items: center; gap: 0.5rem; font-size: var(--fs-xs); }
.bar-l { color: var(--muted); }
.bar { height: 7px; background: var(--ink-3); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--amber)); border-radius: 999px; }
.bar-v { text-align: end; font-variant-numeric: tabular-nums; color: var(--cream); font-weight: 700; }
@media (max-width: 420px) { .bar-row { grid-template-columns: 6.8rem 1fr 2.2rem; } }

/* --------------------------------------------------------------- top picks */
.picks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; counter-reset: p; }
.pick { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem 0.9rem; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1rem; align-items: start; }
.pick-rank { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-3); border: 1px solid var(--amber); color: var(--amber-2); font-weight: 800; }
.pick:first-child .pick-rank { background: var(--amber); color: #16110a; }
.pick-logo { grid-column: 2; }
.pick-body { grid-column: 2; }
.pick-body h3 { margin: 0 0 0.2rem; font-size: 1.08rem; }
.pick-body h3 a { color: var(--cream); }
.pick-scores { display: flex; flex-wrap: wrap; gap: 0.8rem; font-size: var(--fs-xs); color: var(--muted); margin: 0 0 0.4rem; }
.pick-note { font-size: var(--fs-s); margin: 0; color: #cfc0ad; }
.pick-cta { grid-column: 2; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.pick-review { font-size: var(--fs-xs); color: var(--muted); }
@media (min-width: 800px) {
  .pick { grid-template-columns: auto 130px 1fr auto; align-items: center; }
  .pick-logo, .pick-body, .pick-cta { grid-column: auto; }
  .pick-cta { flex-direction: column; align-items: stretch; text-align: center; min-width: 160px; }
}

/* ------------------------------------------------------------------ tables */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); }
.tbl { font-size: var(--fs-s); min-width: 720px; }
.tbl th, .tbl td { padding: 0.65rem 0.7rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl thead th { background: var(--ink-3); font-size: var(--fs-xs); color: var(--muted); font-weight: 700; position: sticky; top: 0; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.tbl td:first-child { font-weight: 800; color: var(--amber-2); }

/* --------------------------------------------------------------------- faq */
.qs { display: grid; gap: 0.5rem; }
.q { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-m); }
.q summary { cursor: pointer; padding: 0.85rem 1rem; list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: "+"; margin-inline-start: auto; color: var(--amber); font-weight: 800; font-size: 1.2rem; }
.q[open] summary::after { content: "−"; }
.q summary h3 { margin: 0; font-size: var(--fs-b); font-weight: 700; }
.q .a { padding: 0 1rem 1rem; color: #cfc0ad; font-size: var(--fs-s); }
.q .a p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- related */
.rel-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
@media (min-width: 700px) { .rel-list { grid-template-columns: repeat(2, 1fr); } }
.rel-list a { display: block; background: var(--ink-2); border: 1px solid var(--line); border-inline-start: 3px solid var(--amber); border-radius: var(--r-s); padding: 0.75rem 0.9rem; color: var(--cream); }
.rel-list a:hover { border-inline-start-color: var(--teal); text-decoration: none; background: var(--ink-3); }
.rel-list strong { display: block; font-size: var(--fs-s); }
.rel-list span { font-size: var(--fs-xs); color: var(--muted); }

/* ------------------------------------------------------------------ notes */
.callout { background: var(--ink-2); border: 1px solid var(--line); border-inline-start: 4px solid var(--teal); border-radius: var(--r-m); padding: 1rem 1.1rem; margin: 1.4rem 0; font-size: var(--fs-s); }
.callout h3 { margin-top: 0; font-size: var(--fs-b); color: var(--teal); }
.callout.warn { border-inline-start-color: var(--rose); }
.callout.warn h3 { color: var(--rose); }
.callout p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- comments */
.comments { max-width: 800px; }
.cmt { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0.85rem 1rem; margin-bottom: 0.6rem; }
.cmt-head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; font-size: var(--fs-s); }
.cmt-head strong { color: var(--cream); }
.cmt-head time { color: var(--muted); font-size: var(--fs-xs); margin-inline-start: auto; }
.cmt-topic { font-size: var(--fs-xs); background: var(--ink-3); border-radius: 999px; padding: 0.1rem 0.55rem; color: var(--muted); }
.cmt-body { margin: 0.35rem 0 0; font-size: var(--fs-s); color: #cfc0ad; }
.cmt.is-pending { border-style: dashed; border-color: var(--teal); }
.cmt-pending { font-size: var(--fs-xs); color: var(--teal); }
.cmt-brand { font-size: var(--fs-xs); color: var(--muted); }
.cmt-form { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.1rem; margin-top: 1.4rem; }
.cmt-form h3 { margin-top: 0; }
.f-row { display: grid; gap: 0.3rem; margin-bottom: 0.8rem; }
.f-row label { font-size: var(--fs-s); font-weight: 700; }
.f-row input, .f-row select, .f-row textarea {
  font: inherit; font-size: var(--fs-s); background: var(--ink); color: var(--cream);
  border: 1px solid var(--line); border-radius: var(--r-s); padding: 0.55rem 0.7rem; width: 100%;
}
.f-row textarea { resize: vertical; }
.f-msg { font-size: var(--fs-s); margin: 0.6rem 0 0; min-height: 1.2em; color: var(--teal); }

/* ------------------------------------------------------------------ footer */
.site-foot { background: var(--ink-2); border-top: 1px solid var(--line); margin-top: 3rem; padding: 2.2rem 0 1.5rem; }
.foot-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 780px) { .foot-grid { grid-template-columns: repeat(5, 1fr); } }
.foot-col h2 { font-size: var(--fs-s); color: var(--amber-2); margin-bottom: 0.5rem; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 0.3rem; }
.foot-col a { color: var(--muted); font-size: var(--fs-xs); }
.foot-col a:hover { color: var(--cream); }
.foot-note { border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: 1.1rem; font-size: var(--fs-xs); color: var(--muted); }
.foot-note p { margin-bottom: 0.5em; }
.foot-updated { color: var(--line); }

/* ---------------------------------------------------------------- glossary */
.gloss { display: grid; gap: 0.5rem; margin: 0; }
.gloss-item { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0.8rem 1rem; }
.gloss-item dt { font-weight: 800; color: var(--amber-2); font-size: var(--fs-s); margin-bottom: 0.2rem; }
.gloss-item dd { margin: 0; font-size: var(--fs-s); color: #cfc0ad; }
@media (min-width: 780px) { .gloss { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------- author box */
.author { max-width: var(--wrap); margin: 1.4rem auto; padding: 1rem 1.1rem; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-m); font-size: var(--fs-xs); color: var(--muted); }
.author p { margin-bottom: 0.35em; }
.author p:last-child { margin-bottom: 0; }
@media (min-width: 1152px) { .author { margin-inline: auto; } }

/* -------------------------------------------------------------------- 404 */
.e404 { text-align: center; padding: 4rem 1rem; }
.e404 .code { font-size: 5rem; font-weight: 800; color: var(--amber); line-height: 1; }
