/* ============================================================
   SpinTheCode — shared stylesheet
   Theme: Cyber / matrix code grid. Dark slate + cyan + matrix-green.
   ============================================================ */

:root {
  --bg:        #0B1220;
  --bg-2:      #0F1A2E;
  --panel:     #111E36;
  --panel-2:   #0D1729;
  --line:      #1E2D4A;
  --cyan:      #06B6D4;
  --cyan-soft: #22D3EE;
  --green:     #22C55E;
  --green-soft:#4ADE80;
  --text:      #DCE6F2;
  --muted:     #8AA0BE;
  --dim:       #5A6E8C;
  --radius:    8px;
  --mono: 'Space Mono', 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 0 0 1px var(--line), 0 18px 40px -22px rgba(6, 182, 212, .55);
}

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background-color: var(--bg);
  /* dot/grid matrix background */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(6, 182, 212, .12), transparent 42%),
    radial-gradient(circle at 84% 0%, rgba(34, 197, 94, .10), transparent 40%),
    linear-gradient(rgba(30, 45, 74, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 45, 74, .55) 1px, transparent 1px),
    radial-gradient(rgba(138, 160, 190, .14) 1px, transparent 1px);
  background-size:
    auto, auto,
    44px 44px,
    44px 44px,
    22px 22px;
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
}

a { color: var(--cyan-soft); text-decoration: none; }
a:hover { color: var(--green-soft); }

img, svg { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

/* utility code-bracket motif */
.bracket::before { content: '{ '; color: var(--green); font-family: var(--mono); }
.bracket::after  { content: ' }'; color: var(--green); font-family: var(--mono); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -.5px;
  color: var(--text);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.brand .br { color: var(--cyan); }
.brand .spin { color: var(--text); }
.brand .the  { color: var(--muted); }
.brand .code { color: var(--green); }
.brand .cursor {
  width: 9px;
  height: 1.05em;
  margin-left: 4px;
  background: var(--cyan);
  display: inline-block;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--muted);
  padding: 9px 13px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.nav-links a:hover { color: var(--cyan-soft); background: rgba(6, 182, 212, .08); border-color: var(--line); }
.nav-links a.active { color: var(--green-soft); border-color: var(--green); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--cyan);
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 86px 0 70px;
  overflow: hidden;
}
.hero::before {
  content: '</>';
  position: absolute;
  top: 30px;
  right: 4%;
  font-family: var(--mono);
  font-size: 14rem;
  font-weight: 700;
  color: rgba(6, 182, 212, .05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-soft);
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .35);
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow::before { content: '//'; color: var(--cyan); }

.hero h1 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 22px 0 0;
  max-width: 18ch;
}
.hero h1 .accent { color: var(--cyan); }
.hero h1 .accent2 { color: var(--green); }

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 60ch;
  margin: 20px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .98rem;
  color: #04121A;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  margin-top: 30px;
  transition: transform .15s, box-shadow .15s, filter .15s;
  box-shadow: 0 14px 30px -12px rgba(6, 182, 212, .7);
}
.btn::before { content: '▶'; font-size: .8em; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); color: #04121A; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 60px 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: -.5px;
  margin: 0;
}
.section-head h2 .tag { color: var(--cyan); }
.section-head .sub {
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 70ch;
}

/* ============================================================
   PARTNERS — styled as `import` rows / code blocks
   ============================================================ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.partner {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  font-family: var(--mono);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.partner:hover { border-color: var(--cyan); transform: translateY(-3px); box-shadow: var(--shadow); }
.partner .codeline {
  font-size: .82rem;
  color: var(--dim);
  margin: 0 0 14px;
}
.partner .codeline .kw  { color: var(--green-soft); }
.partner .codeline .str { color: var(--cyan-soft); }
.partner .logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #04121A;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  margin-bottom: 14px;
}
.partner h3 {
  font-size: 1.15rem;
  margin: 0 0 4px;
  color: var(--text);
}
.partner .perk {
  font-family: var(--sans);
  color: var(--muted);
  font-size: .94rem;
  margin: 0 0 16px;
}
.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--cyan);
  color: var(--cyan-soft);
  background: rgba(6, 182, 212, .1);
}
.badge.hot { border-color: var(--green); color: var(--green-soft); background: rgba(34, 197, 94, .1); }
.badge.exclusive { border-color: #A78BFA; color: #C4B5FD; background: rgba(167, 139, 250, .1); }
.partner .visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--cyan-soft);
}
.partner .visit::after { content: '→'; }

/* ============================================================
   RESPONSIBLE GAMING block
   ============================================================ */
.rg {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.rg h2 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 14px;
}
.rg h2::before { content: '/* '; color: var(--green); font-family: var(--mono); }
.rg h2::after  { content: ' */'; color: var(--green); font-family: var(--mono); }
.rg p { color: var(--muted); margin: 0; }

/* ============================================================
   ARTICLE (About / Terms)
   ============================================================ */
.article { padding: 56px 0 40px; }
.article .page-h1 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 2.8rem);
  letter-spacing: -.5px;
  margin: 0 0 6px;
}
.article .page-h1::before { content: '# '; color: var(--cyan); }
.article-body {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 34px;
  margin-top: 26px;
}
.article-body > p:first-child { margin-top: 0; }
.article-body p { color: var(--muted); }
.article-body h2 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  margin: 30px 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--cyan);
}
.article-body ul {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.article-body li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
}
.article-body li:last-child { border-bottom: 0; }
.article-body li::before {
  content: '>';
  position: absolute;
  left: 4px;
  top: 8px;
  font-family: var(--mono);
  color: var(--green);
  font-weight: 700;
}
.article-body li strong { color: var(--text); }

/* ============================================================
   BONUSES grid — JSON snippet cards
   ============================================================ */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.bonus {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.bonus:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow); }
.bonus .bonus-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-size: .76rem;
  color: var(--dim);
}
.bonus .dot { width: 9px; height: 9px; border-radius: 50%; }
.bonus .dot.r { background: #F87171; }
.bonus .dot.y { background: #FACC15; }
.bonus .dot.g { background: var(--green); }
.bonus .fname { margin-left: 6px; }
.bonus .body { padding: 18px 18px 20px; flex: 1; }
.bonus .body .line { font-size: .84rem; line-height: 2.05; }
.bonus .body .key   { color: var(--cyan-soft); }
.bonus .body .punc  { color: var(--dim); }
.bonus .body .val   { color: var(--text); }
.bonus .body .spins { color: var(--green-soft); font-weight: 700; }
.bonus .body .code  {
  color: #FBBF24;
  background: rgba(251, 191, 36, .08);
  border: 1px dashed rgba(251, 191, 36, .4);
  padding: 1px 6px;
  border-radius: 4px;
}
.bonus .claim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
}
.bonus .claim .run {
  font-size: .78rem;
  color: var(--green-soft);
}
.bonus .claim .run::before { content: '$ '; color: var(--dim); }
.bonus .claim .go {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .85rem;
  color: #04121A;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  padding: 8px 15px;
  border-radius: 6px;
  white-space: nowrap;
  transition: filter .15s, transform .15s;
}
.bonus .claim .go:hover { filter: brightness(1.08); transform: translateY(-1px); color: #04121A; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel-2);
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: .86rem;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--cyan-soft); }
.footer-copy {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--dim);
}
.footer-copy .age {
  color: var(--green-soft);
  border: 1px solid var(--green);
  border-radius: 5px;
  padding: 1px 6px;
  margin-right: 6px;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
}
.cookie.hidden { display: none; }
.cookie p {
  margin: 0;
  font-family: var(--mono);
  font-size: .86rem;
  color: var(--muted);
}
.cookie p::before { content: '// '; color: var(--green); }
.cookie button {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .85rem;
  color: #04121A;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border: 0;
  border-radius: 6px;
  padding: 9px 18px;
  cursor: pointer;
  transition: filter .15s;
}
.cookie button:hover { filter: brightness(1.08); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .partners-grid { grid-template-columns: 1fr; }
  .bonus-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hamburger { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 18, 32, .98);
    border-bottom: 1px solid var(--line);
    padding: 8px 22px 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 12px 8px; border-radius: 0; border-bottom: 1px dashed var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .hero::before { font-size: 8rem; opacity: .7; }
}

@media (max-width: 540px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .article-body { padding: 22px 20px; }
}

/* ============================================================
   PROD-2017 — casino logos (partners + bonus cards),
   bonus category buttons, sub-page back link
   ============================================================ */
/* White chip so any casino logo stays visible on the dark theme */
.casino-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  max-width: 100%;
  height: 84px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
}
.casino-logo img {
  width: auto;
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
}

/* Home partner cards: logo + name + Visit Site only, no code chrome */
.partner.is-casino {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--sans);
}
.partner.is-casino .casino-logo { margin-bottom: 16px; }
.partner.is-casino h3 {
  font-family: var(--mono);
  margin: 0 0 14px;
}

/* Bonus (JSON snippet) cards: smaller logo chip + casino name + offer */
.bonus .casino-logo {
  height: 56px;
  margin-bottom: 14px;
}
.bonus .casino-logo img { max-height: 32px; }
.bonus .body .casino-name {
  font-family: var(--mono);
  font-size: 1.12rem;
  color: var(--text);
  margin: 0 0 6px;
}
.bonus .body .offer {
  font-family: var(--sans);
  color: var(--green-soft);
  font-weight: 700;
  font-size: .95rem;
  margin: 0;
}
.bonus.is-welcome:hover { border-color: var(--cyan); }
.bonus .claim .run::before { content: '$ '; color: var(--dim); }

/* Section heads between the two bonus lists */
.bonus-section-head { margin: 40px 0 18px; }
.bonus-section-head h2 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  letter-spacing: -.5px;
  margin: 0;
}
.bonus-section-head h2 .tag { color: var(--cyan); }
.bonus-section-head .sub { color: var(--muted); margin: 8px 0 0; }

/* Category buttons on /bonuses */
.bonus-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 8px;
}
.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .9rem;
  color: var(--cyan-soft);
  background: rgba(6, 182, 212, .08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 18px;
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.cat-btn::before { content: '>'; color: var(--green); }
.cat-btn:hover {
  color: var(--green-soft);
  border-color: var(--green);
  background: rgba(34, 197, 94, .1);
  transform: translateY(-2px);
}

/* Back link on sub-pages */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.back-link:hover { color: var(--cyan-soft); }