/* y999slot.com - dark neon-green casino theme.
   One file, no imports, no web fonts: that is what lets the CSP stay at
   default-src 'self'. Colours live here as tokens and the contrast gate
   (_build/contrast.ps1) reads them straight out of this file. */

:root {
  --brand: #2fe04a;
  --brand-2: #7cff6b;
  --brand-dim: #1ba233;
  --gold: #f7c23a;
  --gold-dim: #c08c10;
  --silver: #d7e3da;

  --on-brand: #04220c;
  --on-gold: #241802;

  --ink: #f2faf4;
  --body: #c9dcd0;
  --muted: #93ad9e;

  --bg: #060d08;
  --bg-2: #0b1711;
  --bg-3: #112a1b;
  --line: #1d4029;

  --glow: 0 0 0 1px rgba(47, 224, 74, .28), 0 10px 30px -12px rgba(47, 224, 74, .55);
  --glow-gold: 0 0 0 1px rgba(247, 194, 58, .3), 0 10px 30px -12px rgba(247, 194, 58, .5);

  --wrap: 1180px;
  --read: 760px;
  --header-h: 74px;
  --r: 14px;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-text-size-adjust: 100%;
}

/* a faint field of green light so the black is not flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 12% -8%, rgba(47, 224, 74, .13), transparent 70%),
    radial-gradient(560px 380px at 92% 4%, rgba(247, 194, 58, .07), transparent 70%);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: var(--on-brand);
  padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 13, 8, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 10px 34px -22px rgba(0, 0, 0, .95); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 108px; height: 42px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Without an explicit flex here the <nav> takes a full line and pushes the
   CTA button onto a second row. */
.nav-panel { display: flex; align-items: center; gap: 18px; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: block; padding: 9px 12px; border-radius: 9px;
  color: var(--body); text-decoration: none; font-size: .95rem; font-weight: 600;
}
.nav-links a:hover { background: var(--bg-3); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--brand); background: rgba(47, 224, 74, .1); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
  border: 0; border-radius: 11px;
  padding: 10px 18px; min-height: 42px;
  font: inherit; font-weight: 800; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .14s ease, filter .14s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn:active { transform: translateY(0); }

.btn-primary { background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 100%); color: var(--on-brand); box-shadow: var(--glow); }
.btn-primary:hover { color: var(--on-brand); }
.btn-gold { background: linear-gradient(135deg, #ffd969 0%, var(--gold) 100%); color: var(--on-gold); box-shadow: var(--glow-gold); }
.btn-gold:hover { color: var(--on-gold); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--brand); }
.btn-ghost:hover { color: var(--ink); background: rgba(47, 224, 74, .12); }

.btn-lg { min-height: 48px; padding: 12px 26px; font-size: 1rem; }
.btn-nav { padding: 9px 16px; min-height: 40px; font-size: .92rem; }

/* Buttons size to their label. Without flex: 0 1 auto they stretch to the
   full row width and read as banners rather than buttons. */
.cta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin: 0 0 22px;
  max-width: var(--read); margin-inline: auto;
}
.cta-row .btn { flex: 0 1 auto; }
.cta-note { flex: 1 1 100%; margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.cta-top { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
@media (max-width: 560px) { .cta-row .btn { flex: 1 1 100%; } }

/* ---------------------------------------------------------------- article */

.post, .page { padding-block: 30px 10px; }

.post-head, .page-head, .banner, .post-body, .page-body {
  max-width: var(--read); margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  background: rgba(47, 224, 74, .13); color: var(--brand);
  border: 1px solid rgba(47, 224, 74, .3);
  padding: 5px 13px; border-radius: 999px;
  font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  margin-bottom: 14px;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5.2vw, 3rem); font-weight: 800; margin: 0 0 14px; }
h2 { font-size: clamp(1.4rem, 3.1vw, 1.85rem); font-weight: 800; margin: 44px 0 14px; }
h3 { font-size: 1.14rem; font-weight: 700; margin: 28px 0 10px; }

.lede { font-size: 1.12rem; color: var(--muted); margin: 0 0 24px; }

.banner { margin-block: 26px 10px; }
.banner img { border-radius: var(--r); border: 1px solid var(--line); }
.banner figcaption, .shot-grid figcaption {
  margin-top: 9px; font-size: .85rem; color: var(--muted); text-align: center;
}
figure { margin: 0; }

/* -------------------------------------------------- jump bar (not a rail) */

.toc {
  margin: 26px auto 34px;
  max-width: var(--read);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
}
.toc h2 {
  margin: 0 0 10px; font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); font-weight: 800;
}
.toc ol {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0; padding: 0; counter-reset: toc;
}
.toc li { margin: 0; }
.toc a {
  display: inline-block;
  background: var(--bg-3); border: 1px solid var(--line);
  color: var(--body); text-decoration: none;
  padding: 7px 13px; border-radius: 999px;
  font-size: .88rem; font-weight: 600;
}
.toc a:hover { border-color: var(--brand); color: var(--brand); }

/* ------------------------------------------------------------- components */

p { margin: 0 0 18px; }
strong, b { color: var(--ink); }

.post-body ul, .post-body ol, .page-body ul, .page-body ol { margin: 0 0 20px; padding-left: 22px; }
.post-body li, .page-body li { margin: 0 0 8px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  list-style: none; margin: 0 0 26px; padding: 0;
}
.stats li {
  background: var(--bg-2); border: 1px solid var(--line);
  border-top: 2px solid var(--brand);
  border-radius: 12px; padding: 14px 12px; text-align: center; margin: 0;
}
.stats b { display: block; color: var(--brand); font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.stats span { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); }
@media (max-width: 680px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 26px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-2);
}
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption {
  caption-side: top; text-align: left; padding: 13px 16px 11px;
  color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--line);
}
th, td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--brand); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

.steps { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: step; }
.steps li {
  position: relative; counter-increment: step;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 18px 15px 58px; margin: 0 0 10px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 16px; top: 14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand);
  display: grid; place-items: center;
  font-size: .86rem; font-weight: 800;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0; }
.chips li {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .88rem; margin: 0; color: var(--body);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 26px; }
@media (max-width: 680px) { .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-top: 3px solid var(--brand); border-radius: 12px; padding: 18px 20px;
}
.card.card-warn { border-top-color: var(--gold); }
.card h3 { margin-top: 0; }
.card ul { margin-bottom: 0; }

.callout {
  background: var(--bg-2);
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px; margin: 0 0 26px;
}
.callout p:last-child { margin-bottom: 0; }

.disclaimer {
  background: rgba(247, 194, 58, .07);
  border: 1px solid rgba(247, 194, 58, .34);
  border-radius: 12px; padding: 18px 20px; margin: 0 0 26px;
}
.disclaimer p:last-child { margin-bottom: 0; }

.shot-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 26px;
}
.shot-grid img { border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 680px) { .shot-grid { grid-template-columns: repeat(2, 1fr); } }

.faq { margin: 0 0 26px; }
.faq details {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; margin: 0 0 9px;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 14px 48px 14px 18px; position: relative;
  color: var(--ink); font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--brand); font-size: 1.3rem; font-weight: 700; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 18px 15px; }
.faq details > div p:last-child { margin-bottom: 0; }

.review {
  background: var(--bg-2); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 0 0 12px;
}
.review p { margin-bottom: 8px; font-style: italic; }
.review cite { font-style: normal; font-size: .86rem; color: var(--muted); }

.cta-band {
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 32px;
  margin: 44px 0 10px;
}
.cta-band h2 { margin-top: 0; }
.cta-band .cta-row { max-width: none; margin-inline: 0; margin-bottom: 0; }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: 40px 0 10px;
}
@media (max-width: 680px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav a {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 18px; text-decoration: none; color: var(--ink); font-weight: 700;
}
.post-nav a:hover { border-color: var(--brand); }
.post-nav span { display: block; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }

.site-links { margin: 40px 0 10px; }
.site-links ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 680px) { .site-links ul { grid-template-columns: 1fr; } }
.site-links li { margin: 0; }
.site-links a {
  display: block; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; text-decoration: none;
}
.site-links a:hover { border-color: var(--brand); }
.site-links strong { display: block; color: var(--ink); }
.site-links span { display: block; font-size: .85rem; color: var(--muted); }

.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0 0 26px; }
@media (max-width: 680px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-grid article {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.blog-grid img { border-bottom: 1px solid var(--line); }
.blog-grid .blog-body { padding: 16px 18px; }
.blog-grid h3 { margin: 0 0 6px; font-size: 1.05rem; }
.blog-grid h3 a { text-decoration: none; color: var(--ink); }
.blog-grid h3 a:hover { color: var(--brand); }
.blog-grid p { font-size: .9rem; color: var(--muted); margin: 0; }

.updated { font-size: .85rem; color: var(--muted); margin: 0 0 22px; }
.updated b { color: var(--body); font-weight: 600; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: 60px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 42px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 38px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.footer-brand img { width: 170px; height: 66px; }
.footer-name { font-size: 1.35rem; font-weight: 800; color: var(--ink); margin: 12px 0 2px; }
.footer-name span { color: var(--brand); }
.footer-tag { font-size: .85rem; color: var(--brand); margin: 0 0 12px; letter-spacing: .04em; }
.footer-about { font-size: .9rem; color: var(--muted); margin: 0; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.footer-nav li { margin: 0 0 9px; break-inside: avoid; }
.footer-nav a { color: var(--body); text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--muted);
}
.footer-bottom p { margin: 0; }
.age-badge {
  background: rgba(247, 194, 58, .12); border: 1px solid rgba(247, 194, 58, .34);
  color: var(--gold); border-radius: 999px; padding: 3px 13px; font-weight: 700;
}

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand);
  border: 0; cursor: pointer; font-size: 1.1rem; font-weight: 800;
  box-shadow: var(--glow);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------------- mobile */

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 10px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 16px 20px 20px;
  }
  .nav-panel.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 12px; }
  .btn-nav { width: 100%; }
  .site-header .wrap { position: relative; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cta-band { padding: 24px 20px; }
}

/* ----------------------------------------------------------------- print */

@media print {
  .site-header, .to-top, .cta-row, .cta-band, .site-links, .post-nav, .skip-link, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  h1, h2, h3 { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
  .faq details { border: 1px solid #999; }
  .faq details > div { display: block !important; }
}
