/* ==========================================================================
   sweet-bonanza.win — demo site stylesheet
   Palette: grape base, candy-floss + lime + tangerine accents
   Type: Unbounded (display) / Manrope (body) / JetBrains Mono (data)
   ========================================================================== */

:root {
  --grape-900: #150826;
  --grape-800: #1d0f33;
  --grape-700: #2a1548;
  --grape-600: #3a1f5e;
  --floss: #ff4f9a;
  --floss-soft: #ff86bd;
  --lime: #9be564;
  --tangerine: #ffb03a;
  --ice: #6fd7ff;
  --cream: #fff3e4;
  --cream-dim: rgba(255, 243, 228, 0.66);
  --cream-faint: rgba(255, 243, 228, 0.4);
  --line: rgba(255, 243, 228, 0.14);
  --line-strong: rgba(255, 243, 228, 0.28);

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --shell: 1180px;
  --gutter: clamp(18px, 4vw, 40px);

  --font-display: "Unbounded", "Trebuchet MS", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--grape-900);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient sugar-glass background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58% 42% at 12% -4%, rgba(255, 79, 154, 0.34), transparent 62%),
    radial-gradient(48% 38% at 92% 6%, rgba(111, 215, 255, 0.2), transparent 64%),
    radial-gradient(60% 46% at 76% 96%, rgba(155, 229, 100, 0.16), transparent 66%),
    linear-gradient(180deg, var(--grape-800), var(--grape-900) 46%);
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(54px, 7vw, 104px) 0; }
.section--tight { padding: clamp(38px, 5vw, 66px) 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--floss-soft);
  margin: 0 0 14px;
}

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(28px, 4.2vw, 46px); }
.section-head p { color: var(--cream-dim); margin-bottom: 0; }

/* --------------------------------------------------------- skip + header */

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 99;
  background: var(--floss);
  color: var(--grape-900);
  padding: 10px 16px;
  border-radius: var(--radius-s);
  font-weight: 700;
}
.skip:focus { left: 12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(21, 8, 38, 0.78);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 66px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}

.wordmark__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--floss), var(--tangerine), var(--lime), var(--ice), var(--floss));
  box-shadow: 0 0 0 3px rgba(255, 79, 154, 0.18);
  flex: none;
}

.wordmark span { color: var(--cream); }
.wordmark b { color: var(--floss-soft); font-weight: 700; }

.langswitch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.langswitch a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--cream-dim);
}

.langswitch a:hover { color: var(--cream); }

.langswitch a[aria-current="true"] {
  background: var(--cream);
  color: var(--grape-900);
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn--primary {
  background: linear-gradient(160deg, var(--floss), #e0246f);
  color: #2a0417;
  box-shadow: 0 12px 30px -12px rgba(255, 79, 154, 0.85);
}

.btn--primary:hover { transform: translateY(-2px); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--cream);
  background: rgba(255, 243, 228, 0.04);
}

.btn--ghost:hover { background: rgba(255, 243, 228, 0.1); }

.btn--sm { padding: 10px 16px; font-size: 13px; }

.topbar .btn { padding: 11px 20px; font-size: 14px; }

/* ------------------------------------------------------------------- hero */

.hero { padding: clamp(36px, 6vw, 70px) 0 clamp(30px, 4vw, 46px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 6.6vw, 74px);
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--floss), var(--tangerine) 55%, var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--cream-dim);
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 22px;
}

.hero__note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cream-faint);
  letter-spacing: 0.02em;
}

/* signature element: candy jar of stacked spec tiles */
.jar {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(165deg, rgba(255, 243, 228, 0.09), rgba(255, 243, 228, 0.02));
  padding: 8px;
  box-shadow: 0 30px 70px -40px #000;
}

.jar__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-faint);
  padding: 12px 16px 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.jar__list { display: grid; gap: 6px; }

.jar__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(21, 8, 38, 0.5);
  border: 1px solid var(--line);
}

.jar__row dt {
  font-size: 13px;
  color: var(--cream-dim);
  letter-spacing: 0.01em;
}

.jar__row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 700;
  color: var(--cream);
  white-space: nowrap;
}

.jar__row--hot dd { color: var(--tangerine); }
.jar__row--win dd { color: var(--lime); }

/* --------------------------------------------------------------- cabinet */

.cabinet {
  border-radius: var(--radius-l);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(58, 31, 94, 0.9), rgba(21, 8, 38, 0.9));
  padding: 10px;
  box-shadow: 0 40px 90px -50px #000, inset 0 1px 0 rgba(255, 243, 228, 0.12);
}

.cabinet__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 12px;
  flex-wrap: wrap;
}

.cabinet__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.cabinet__tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(155, 229, 100, 0.18);
}

.cabinet__screen {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: #0b0416;
  border: 1px solid var(--line);
}

.cabinet__screen iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
}

.cabinet__foot {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 12px 8px 4px;
  font-size: 13px;
  color: var(--cream-faint);
}

/* ---------------------------------------------------------------- ticker */

.ticker {
  border-block: 1px solid var(--line);
  background: rgba(21, 8, 38, 0.5);
  overflow: hidden;
}

.ticker__track {
  display: flex;
  gap: 46px;
  padding: 13px 0;
  width: max-content;
  animation: slide 34s linear infinite;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-faint);
  white-space: nowrap;
}

.ticker__track b { color: var(--floss-soft); font-weight: 500; }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----------------------------------------------------------------- cards */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px 24px;
  background: linear-gradient(170deg, rgba(255, 243, 228, 0.07), rgba(255, 243, 228, 0.015));
}

.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--cream-dim); }

.card__step {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--floss);
  display: block;
  margin-bottom: 14px;
}

.card--accent { border-color: rgba(255, 79, 154, 0.42); }
.card--accent h3 { color: var(--floss-soft); }

/* -------------------------------------------------------------- paytable */

.pays {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

.pay {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 16px 16px;
  background: rgba(21, 8, 38, 0.44);
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.pay:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.pay__art { width: 62px; height: 62px; margin: 0 auto 12px; display: block; }

.pay__name {
  font-size: 13px;
  color: var(--cream-dim);
  margin-bottom: 10px;
  min-height: 2.4em;
}

.pay__vals {
  font-family: var(--font-mono);
  font-size: 13px;
  display: grid;
  gap: 3px;
  border-top: 1px dashed var(--line-strong);
  padding-top: 10px;
}

.pay__vals span { display: flex; justify-content: space-between; gap: 8px; }
.pay__vals i { font-style: normal; color: var(--cream-faint); }
.pay__vals b { font-weight: 700; color: var(--tangerine); }

.pay--special { border-color: rgba(155, 229, 100, 0.4); }
.pay--special .pay__vals b { color: var(--lime); }

.pays-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cream-faint);
  margin-top: 18px;
}

/* ------------------------------------------------------------------- faq */

.faq { display: grid; gap: 10px; max-width: 860px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(21, 8, 38, 0.44);
  padding: 4px 20px;
}

.faq details[open] { border-color: var(--line-strong); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 30px 17px 0;
  font-weight: 800;
  font-size: 16.5px;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--floss);
  transition: rotate 0.2s ease;
}

.faq details[open] summary::after { content: "–"; rotate: 180deg; }

.faq p {
  font-size: 15.5px;
  color: var(--cream-dim);
  padding-bottom: 18px;
  margin: 0;
  max-width: 72ch;
}

/* ------------------------------------------------------------------ prose */

.prose { max-width: 74ch; }
.prose h3 { font-size: 21px; margin-top: 34px; }
.prose p { color: var(--cream-dim); }
.prose ul { color: var(--cream-dim); padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--cream); }

/* ------------------------------------------------------------------- CTA */

.strip {
  border: 1px solid rgba(255, 79, 154, 0.4);
  border-radius: var(--radius-l);
  padding: clamp(28px, 4vw, 46px);
  background:
    radial-gradient(80% 140% at 4% 0%, rgba(255, 79, 154, 0.22), transparent 60%),
    rgba(21, 8, 38, 0.6);
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.strip h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 8px; }
.strip p { color: var(--cream-dim); margin: 0; max-width: 52ch; }

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

.footer {
  border-top: 1px solid var(--line);
  background: rgba(11, 4, 22, 0.7);
  padding: clamp(36px, 5vw, 60px) 0 40px;
  font-size: 14px;
  color: var(--cream-faint);
}

.footer__grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 32px;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 12px;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--cream); text-decoration: underline; }

.age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--floss);
  color: var(--floss);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  flex: none;
}

.disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
  line-height: 1.6;
  font-size: 13px;
}

.disclaimer p { max-width: 90ch; }

/* --------------------------------------------------------------- reveals */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in { opacity: 1; transform: none; }

:focus-visible {
  outline: 3px solid var(--tangerine);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .jar { order: 2; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .topbar__inner { min-height: 58px; gap: 10px; }
  .topbar .btn { display: none; }
  .cabinet__screen iframe { height: 520px; }
  .pays { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .pay__art { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
