/* spinbetter-bonus-de.com — "voucher" look: coupons with notches and perforations,
   ribbon labels, wavy section edges. Brand dark green, yellow for value, violet for accents.
   No JavaScript: interaction via :checked, :has(), :hover, :focus and <details>. */
:root {
  --bg: #022f2c;
  --bg-2: #04403b;
  --deep: #011e1c;
  --paper: #0a4a44;
  --paper-2: #0f5a53;
  --line: rgba(190, 230, 215, 0.16);
  --fg: #f1f8f5;
  --muted: #a7c8bf;
  --yellow: #d6e812;
  --yellow-2: #bed00a;
  --ink: #102006;
  --violet: #8b5cf6;
  --violet-2: #b197fc;
  --violet-deep: #2b1e60;
  --rose: #fda4cf;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.65; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 80; background: var(--deep); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); }
a:focus-visible, label:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 5px 0 #8a9806, 0 14px 24px -10px rgba(214, 232, 18, 0.6);
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.cta:hover { background: #e3f33c; transform: translateY(-2px); box-shadow: 0 7px 0 #8a9806, 0 18px 28px -10px rgba(214, 232, 18, 0.7); }
.cta:active { transform: translateY(4px); box-shadow: 0 1px 0 #8a9806; }
.cta-sm { min-height: 42px; padding: 0 20px; font-size: 0.85rem; box-shadow: 0 4px 0 #8a9806; }
.cta-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--violet-2); }
.cta-ghost:hover { background: var(--violet); color: #fff; box-shadow: none; }

/* ---------- Promo strip + header ---------- */
.promo-strip { background: repeating-linear-gradient(135deg, var(--violet) 0 18px, #7c4cf0 18px 36px); font-size: 0.88rem; font-weight: 700; }
.ps-in { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; padding-top: 7px; padding-bottom: 7px; text-align: center; }
.ps-badge { padding: 1px 8px; border-radius: 4px; background: var(--yellow); color: var(--ink); font-weight: 900; font-size: 0.75rem; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.4; } }
.promo-strip a { color: #fff; font-weight: 900; }
.head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(1, 30, 28, 0.95); border-bottom: 2px dashed rgba(214, 232, 18, 0.35); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 70px; flex-wrap: wrap; }
.logo { line-height: 0; }
.logo img { width: 134px; }
.menu { display: flex; align-items: center; gap: 6px; }
.menu a:not(.cta) { position: relative; padding: 8px 14px; color: var(--fg); font-weight: 800; text-decoration: none; }
.menu a:not(.cta)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--yellow); transform: scaleX(0); transition: transform 0.2s; }
.menu a:not(.cta):hover::after, .menu a.on::after { transform: scaleX(1); }
.menu a.on { color: var(--yellow); }
.menu .cta { margin-left: 8px; }
.burger { display: none; }

/* ---------- Hero ---------- */
.top-hero {
  position: relative;
  padding: 56px 0 84px;
  background:
    radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.35), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(214, 232, 18, 0.12), transparent 40%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.top-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 28px;
  background: radial-gradient(circle at 14px -6px, transparent 16px, var(--bg) 17px) repeat-x;
  background-size: 28px 28px;
}
.top-hero-sub { padding-top: 40px; }
.th-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.th-copy { display: grid; gap: 18px; min-width: 0; }
.ribbon {
  justify-self: start;
  position: relative;
  margin: 0;
  padding: 6px 22px 6px 16px;
  background: var(--violet);
  color: #fff;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%);
}
.top-hero h1 { margin: 0; font-size: clamp(2rem, 4.8vw, 3.2rem); line-height: 1.07; font-weight: 900; letter-spacing: -0.02em; text-wrap: balance; }
.th-lead { margin: 0; max-width: 60ch; color: var(--muted); font-size: 1.08rem; }
.th-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Tear-off ticket */
.tear { justify-self: center; width: 100%; max-width: 440px; display: grid; gap: 12px; }
.tear-ticket { position: relative; display: grid; grid-template-columns: 1fr 110px; min-height: 210px; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.5)); }
.tear-main, .tear-stub, .tear-under {
  --notch: radial-gradient(circle at 0 50%, transparent 14px, #000 15px);
}
.tear-main {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 24px 26px;
  border-radius: 18px 0 0 18px;
  background:
    radial-gradient(circle at 100% 0, var(--bg) 14px, transparent 15px),
    radial-gradient(circle at 100% 100%, var(--bg) 14px, transparent 15px),
    linear-gradient(140deg, #e5f43a, var(--yellow) 55%, #a9bd07);
  color: var(--ink);
  z-index: 1;
}
.tt-k { font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; }
.tt-v { font-size: clamp(3rem, 7vw, 4.2rem); font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.tt-s { font-weight: 700; opacity: 0.8; }
.tear-stub {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  border-radius: 0 18px 18px 0;
  border-left: 3px dashed rgba(16, 32, 6, 0.45);
  background:
    radial-gradient(circle at 0 0, var(--bg) 14px, transparent 15px),
    radial-gradient(circle at 0 100%, var(--bg) 14px, transparent 15px),
    linear-gradient(160deg, var(--violet), #5a2fcf);
  color: #fff;
  cursor: pointer;
  transform-origin: 0 100%;
  transition: transform 0.7s cubic-bezier(0.5, -0.4, 0.6, 1), opacity 0.5s 0.4s;
  animation: wobble 2.6s ease-in-out infinite;
}
@keyframes wobble { 0%, 75%, 100% { transform: rotate(0); } 82% { transform: rotate(4deg); } 90% { transform: rotate(-2deg); } }
.stub-txt { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.85rem; }
.stub-arrow { position: absolute; bottom: 18px; width: 12px; height: 12px; border-right: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); transform: rotate(45deg); animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translate(3px, 3px) rotate(45deg); } }
.tear-under {
  grid-column: 2;
  grid-row: 1;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  border-radius: 0 18px 18px 0;
  background: var(--deep);
  border: 2px dashed var(--yellow);
  border-left: 0;
}
.tu-k { color: var(--muted); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; }
.tu-v { color: var(--yellow); font-size: 1.5rem; font-weight: 900; }
.tear-under .cta-sm { padding: 0 12px; min-height: 34px; font-size: 0.72rem; }
#tear:checked ~ .tear-ticket .tear-stub { animation: none; transform: translate(40px, 120px) rotate(70deg); opacity: 0; pointer-events: none; }
#tear:focus-visible ~ .tear-ticket .tear-stub { outline: 2px solid #fff; outline-offset: 3px; }
.tear-hint { margin: 0; text-align: center; color: var(--muted); font-size: 0.85rem; font-weight: 700; }

/* ---------- Sections ---------- */
.sec { padding-top: 74px; padding-bottom: 74px; scroll-margin-top: 80px; }
.sec-band {
  position: relative;
  background:
    radial-gradient(circle at 100% 0, rgba(139, 92, 246, 0.18), transparent 40%),
    var(--deep);
}
.sec-band::before, .sec-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  background-size: 44px 22px;
  background-repeat: repeat-x;
}
.sec-band::before { top: -21px; background-image: radial-gradient(circle at 22px 22px, var(--deep) 20px, transparent 21px); }
.sec-band::after { bottom: -21px; background-image: radial-gradient(circle at 22px 0, var(--deep) 20px, transparent 21px); }
.sec h2, .legal h1 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3.6vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.sec h2::before {
  content: "";
  display: block;
  width: 46px;
  height: 18px;
  margin-bottom: 14px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 0 50%, var(--bg) 5px, transparent 6px),
    radial-gradient(circle at 100% 50%, var(--bg) 5px, transparent 6px),
    var(--yellow);
}
.sec-band h2::before {
  background:
    radial-gradient(circle at 0 50%, var(--deep) 5px, transparent 6px),
    radial-gradient(circle at 100% 50%, var(--deep) 5px, transparent 6px),
    var(--yellow);
}
.legal h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); }
.legal h2 { margin-top: 30px; }
.sec p { margin: 0 0 16px; max-width: 72ch; }
.sec p a, .sec li a, .faq p a { color: var(--yellow); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(214, 232, 18, 0.45); }
.sec p a:hover, .sec li a:hover { color: #fff; text-decoration-color: var(--yellow); }
.duo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 46px; align-items: center; }
.duo > * { min-width: 0; }

/* Marks list */
.marks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; max-width: 72ch; }
.marks li { position: relative; padding: 9px 14px 9px 42px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border-left: 3px solid var(--yellow); transition: background 0.15s, transform 0.15s; }
.marks li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 3px; background: var(--yellow); transform: rotate(45deg); }
.marks li:hover { background: rgba(255, 255, 255, 0.08); transform: translateX(3px); }
.marks-minus li { border-left-color: var(--rose); }
.marks-minus li::before { background: var(--rose); border-radius: 50%; transform: none; }

.nums { list-style: none; counter-reset: nn; margin: 0; padding: 0; display: grid; gap: 10px; }
.nums li { counter-increment: nn; position: relative; padding: 12px 16px 12px 62px; border-radius: 12px; background: var(--paper); border: 1px dashed var(--line); font-weight: 700; transition: border-color 0.15s; }
.nums li:hover { border-color: var(--yellow); }
.nums li::before { content: counter(nn); position: absolute; left: 12px; top: 50%; width: 36px; height: 36px; margin-top: -18px; display: grid; place-items: center; border-radius: 8px; background: var(--violet); color: #fff; font-weight: 900; }

/* ---------- Tables (coupon) ---------- */
.tbl { overflow-x: auto; margin: 8px 0 20px; -webkit-overflow-scrolling: touch; }
.tbl table { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0; border-radius: 16px; overflow: hidden; border: 2px dashed rgba(214, 232, 18, 0.35); font-variant-numeric: tabular-nums; }
.tbl th { padding: 14px 16px; text-align: left; background: var(--violet-deep); color: var(--violet-2); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.tbl td { padding: 14px 16px; border-top: 1px solid var(--line); background: rgba(10, 74, 68, 0.55); transition: background 0.15s; }
.tbl tr:hover td { background: rgba(214, 232, 18, 0.08); }
.tbl td:first-child { font-weight: 800; }
.tbl td:nth-child(2) { color: var(--yellow); font-weight: 900; }

/* ---------- Week calendar ---------- */
.week { max-width: 860px; }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 10px 0 16px; }
.week-days label {
  position: relative;
  padding: 18px 0 14px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s;
}
.week-days label::before { content: ""; position: absolute; top: 6px; left: 50%; width: 22px; height: 4px; margin-left: -11px; border-radius: 2px; background: var(--line); }
.week-days label:hover { border-color: var(--yellow); transform: translateY(-3px); }
.week-days .sun { background: linear-gradient(180deg, var(--violet), #5a2fcf); }
.week-days .sun::after { content: "300 €"; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); padding: 1px 6px; border-radius: 4px; background: var(--yellow); color: var(--ink); font-size: 0.66rem; white-space: nowrap; }
#wd1:checked ~ .week-days label[for="wd1"], #wd2:checked ~ .week-days label[for="wd2"], #wd3:checked ~ .week-days label[for="wd3"],
#wd4:checked ~ .week-days label[for="wd4"], #wd5:checked ~ .week-days label[for="wd5"], #wd6:checked ~ .week-days label[for="wd6"],
#wd7:checked ~ .week-days label[for="wd7"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: translateY(-4px); }
.wi { display: none; gap: 6px; padding: 22px 24px; border-radius: 16px; background: var(--paper); border: 2px dashed rgba(214, 232, 18, 0.35); animation: pop 0.35s ease; }
#wd1:checked ~ .week-info .wi1, #wd2:checked ~ .week-info .wi2, #wd3:checked ~ .week-info .wi3, #wd4:checked ~ .week-info .wi4,
#wd5:checked ~ .week-info .wi5, #wd6:checked ~ .week-info .wi6, #wd7:checked ~ .week-info .wi7 { display: grid; }
.wi-h { color: var(--yellow); font-weight: 900; font-size: 1.2rem; }
.wi-d { color: var(--fg); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Stairs ---------- */
.stairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stairs li {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}
.stairs li:nth-child(2) { margin-left: 20px; }
.stairs li:nth-child(3) { margin-left: 40px; }
.stairs li:nth-child(4) { margin-left: 60px; }
.st-l { padding: 4px 8px; border-radius: 6px; background: var(--violet); color: #fff; font-weight: 900; font-size: 0.78rem; text-align: center; text-transform: uppercase; letter-spacing: 0.06em; }
.st-v { font-weight: 900; }
.st-fs { color: var(--yellow); font-weight: 900; }
.stairs li:hover, .stairs li:focus-visible { transform: translateX(-8px); background: var(--paper-2); border-color: var(--yellow); }

/* ---------- Slot wall (vertical marquee) ---------- */
.slotwall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  height: 460px;
  overflow: hidden;
  padding: 0 4px;
  border-radius: 20px;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.sw-col { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; animation: wall-up 60s linear infinite; }
.sw-down { animation-name: wall-down; animation-duration: 70s; }
.slotwall:hover .sw-col { animation-play-state: paused; }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 7px)); } }
@keyframes wall-down { from { transform: translateY(calc(-50% - 7px)); } to { transform: translateY(0); } }
.sw-col a { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 2px solid transparent; transition: border-color 0.2s, transform 0.2s; }
.sw-col img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.sw-name { position: absolute; inset: auto 0 0; padding: 16px 10px 8px; background: linear-gradient(transparent, rgba(1, 20, 18, 0.95)); color: #fff; font-weight: 800; font-size: 0.8rem; opacity: 0; transition: opacity 0.2s; }
.sw-col a:hover, .sw-col a:focus-visible { border-color: var(--yellow); transform: scale(1.03); }
.sw-col a:hover .sw-name, .sw-col a:focus-visible .sw-name { opacity: 1; }
.sec p a.cta, .sec li a.cta { text-decoration: none; color: var(--ink); }

/* ---------- Rules cards ---------- */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rule {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 150px;
  padding: 22px 20px 20px 24px;
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
  transition: transform 0.25s;
}
.rule::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(180deg, var(--yellow) 0 8px, transparent 8px 14px); }
.ru-n { color: var(--violet-2); font-size: 1.6rem; font-weight: 900; line-height: 1; }
.ru-h { font-weight: 900; font-size: 1.1rem; }
.ru-d { color: var(--muted); font-size: 0.93rem; }
.rule:hover, .rule:focus-visible { transform: translateY(-5px); background: var(--paper-2); }
.rule:hover .ru-h, .rule:focus-visible .ru-h { color: var(--yellow); }

/* ---------- Flow bar ---------- */
.flowbar { display: grid; justify-items: center; gap: 0; }
.fb-step { min-width: 170px; padding: 12px 18px; border-radius: 12px; background: var(--paper); border: 2px dashed var(--line); text-align: center; font-weight: 900; animation: step-glow 6s ease-in-out infinite; }
.fb2 { animation-delay: 1.5s; } .fb3 { animation-delay: 3s; } .fb4 { animation-delay: 4.5s; }
@keyframes step-glow { 0%, 30%, 100% { border-color: var(--line); background: var(--paper); color: var(--fg); } 10%, 20% { border-color: var(--yellow); background: var(--yellow); color: var(--ink); } }
.fb-line { position: relative; width: 4px; height: 34px; background: var(--line); overflow: hidden; }
.fb-line i { position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--yellow); animation: drip 1.5s linear infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Score ---------- */
.score { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; align-items: center; padding: 26px; border-radius: 20px; background: var(--paper); border: 2px dashed rgba(214, 232, 18, 0.35); }
.score-big {
  position: relative;
  width: 200px;
  height: 200px;
  display: grid;
  place-content: center;
  justify-items: center;
  border-radius: 50%;
  color: var(--ink);
  isolation: isolate;
  transition: transform 0.3s;
}
.score-big::before { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: 50%; background: repeating-conic-gradient(var(--yellow) 0 8deg, #c4d60c 8deg 16deg); animation: seal 14s linear infinite; }
.score-big::after { content: ""; position: absolute; inset: 16px; z-index: -1; border-radius: 50%; background: var(--yellow); box-shadow: inset 0 0 0 3px rgba(16, 32, 6, 0.35); }
@keyframes seal { to { transform: rotate(360deg); } }
.score-big:hover { transform: scale(1.05) rotate(-6deg); }
.sb-n { font-size: 3.4rem; font-weight: 900; line-height: 1; }
.sb-l { font-weight: 900; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; }
.score-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sc-h { margin: 0 0 10px !important; color: var(--yellow); font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
.sc-h-minus { color: var(--rose); }

/* ---------- FAQ (ticket style) ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { position: relative; border-radius: 14px; background: var(--paper); border-left: 6px solid var(--violet); transition: border-color 0.2s; }
.faq details[open] { border-left-color: var(--yellow); }
.faq summary { position: relative; padding: 18px 56px 18px 20px; font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--yellow), var(--yellow)) center / 14px 3px no-repeat, linear-gradient(var(--yellow), var(--yellow)) center / 3px 14px no-repeat; transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 !important; padding: 0 20px 18px; color: var(--muted); animation: pop 0.3s ease; }

/* ---------- Code box (bonus hero) ---------- */
.codebox {
  justify-self: center;
  width: 100%;
  max-width: 400px;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px 26px;
  border-radius: 20px;
  background: var(--deep);
  border: 3px dashed var(--yellow);
  text-align: center;
  position: relative;
}
.codebox::before, .codebox::after { content: ""; position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--bg-2); }
.codebox::before { left: -17px; }
.codebox::after { right: -17px; }
.cb-k { color: var(--violet-2); font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; }
.cb-code { display: flex; gap: 6px; }
.cb-code i { width: 34px; height: 44px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.cb-code i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(214, 232, 18, 0.6), transparent); transform: translateY(-100%); animation: scan 2.4s ease-in-out infinite; }
.cb-code i:nth-child(2)::after { animation-delay: 0.15s; } .cb-code i:nth-child(3)::after { animation-delay: 0.3s; } .cb-code i:nth-child(4)::after { animation-delay: 0.45s; } .cb-code i:nth-child(5)::after { animation-delay: 0.6s; } .cb-code i:nth-child(6)::after { animation-delay: 0.75s; }
@keyframes scan { 0% { transform: translateY(-100%); } 50%, 100% { transform: translateY(100%); } }
.codebox:hover .cb-code i { border-color: var(--yellow); }
.cb-v { color: var(--yellow); font-size: 2rem; font-weight: 900; line-height: 1.1; margin-top: 6px; }
.cb-s { color: var(--muted); font-size: 0.88rem; margin-bottom: 8px; }

/* ---------- Two-axis calculator ---------- */
.calc2 { display: grid; gap: 14px; max-width: 760px; padding: 24px; border-radius: 20px; background: var(--paper); border: 2px dashed rgba(214, 232, 18, 0.35); }
.c2-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.c2-l { min-width: 100px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.c2-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.c2-opts label { min-width: 54px; padding: 9px 14px; border-radius: 10px; background: var(--deep); border: 1px solid var(--line); text-align: center; font-weight: 900; cursor: pointer; transition: all 0.15s; font-variant-numeric: tabular-nums; }
.c2-opts label:hover { border-color: var(--yellow); }
#cs1:checked ~ .c2-row .c2-st label[for="cs1"], #cs2:checked ~ .c2-row .c2-st label[for="cs2"], #cs3:checked ~ .c2-row .c2-st label[for="cs3"], #cs4:checked ~ .c2-row .c2-st label[for="cs4"] { background: var(--violet); border-color: var(--violet); color: #fff; }
#cd1:checked ~ .c2-row .c2-dp label[for="cd1"], #cd2:checked ~ .c2-row .c2-dp label[for="cd2"], #cd3:checked ~ .c2-row .c2-dp label[for="cd3"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.c2r { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; animation: pop 0.3s ease; }
.c2r div { padding: 14px; border-radius: 12px; background: var(--deep); }
.c2r dt { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.c2r dd { margin: 2px 0 0; color: var(--yellow); font-size: 1.45rem; font-weight: 900; font-variant-numeric: tabular-nums; }
#cs1:checked ~ #cd1:checked ~ .c2-out .r1-1, #cs1:checked ~ #cd2:checked ~ .c2-out .r1-2, #cs1:checked ~ #cd3:checked ~ .c2-out .r1-3,
#cs2:checked ~ #cd1:checked ~ .c2-out .r2-1, #cs2:checked ~ #cd2:checked ~ .c2-out .r2-2, #cs2:checked ~ #cd3:checked ~ .c2-out .r2-3,
#cs3:checked ~ #cd1:checked ~ .c2-out .r3-1, #cs3:checked ~ #cd2:checked ~ .c2-out .r3-2, #cs3:checked ~ #cd3:checked ~ .c2-out .r3-3,
#cs4:checked ~ #cd1:checked ~ .c2-out .r4-1, #cs4:checked ~ #cd2:checked ~ .c2-out .r4-2, #cs4:checked ~ #cd3:checked ~ .c2-out .r4-3 { display: grid; }

/* ---------- Thermometer ---------- */
.thermo { position: relative; justify-self: center; width: 180px; height: 340px; }
.th-tube { position: absolute; left: 62px; top: 0; width: 46px; height: 270px; border-radius: 23px 23px 0 0; background: var(--deep); border: 3px solid var(--line); overflow: hidden; }
.th-tube i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(0deg, var(--yellow), var(--violet)); animation: rise-t 4.5s ease-in-out infinite; }
@keyframes rise-t { 0% { height: 0; } 75%, 100% { height: 100%; } }
.th-bulb { position: absolute; left: 45px; bottom: 0; width: 80px; height: 80px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 40px rgba(214, 232, 18, 0.5); }
.th-marks { position: absolute; left: 120px; top: 0; height: 270px; display: flex; flex-direction: column; justify-content: space-between; }
.th-marks b { color: var(--muted); font-weight: 900; font-size: 0.85rem; }
.th-marks b:first-child { color: var(--yellow); }

/* ---------- Readiness checklist ---------- */
.ready { display: grid; gap: 10px; padding: 22px; border-radius: 18px; background: var(--paper); border: 2px dashed rgba(214, 232, 18, 0.35); }
.ready label { position: relative; padding: 12px 14px 12px 50px; border-radius: 12px; background: var(--deep); font-weight: 800; cursor: pointer; transition: background 0.15s; }
.ready label::before { content: ""; position: absolute; left: 14px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 6px; border: 2px dashed var(--yellow); transition: all 0.2s; }
.ready input:checked + label { background: rgba(214, 232, 18, 0.1); }
.ready input:checked + label::before { border-style: solid; background: var(--yellow); }
.ready input:checked + label::after { content: ""; position: absolute; left: 23px; top: 50%; width: 6px; height: 11px; margin-top: -8px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); }
.ready input:focus-visible + label { outline: 2px solid var(--violet-2); outline-offset: 2px; }
.ready-bar { height: 12px; margin-top: 4px; border-radius: 6px; background: var(--deep); overflow: hidden; }
.ready-bar i { display: block; width: 0; height: 100%; background: repeating-linear-gradient(135deg, var(--yellow) 0 10px, #c3d50a 10px 20px); transition: width 0.4s ease; }
.ready:has(input:checked) .ready-bar i { width: 25%; }
.ready:has(input:checked ~ input:checked) .ready-bar i { width: 50%; }
.ready:has(input:checked ~ input:checked ~ input:checked) .ready-bar i { width: 75%; }
.ready:has(#r1:checked):has(#r2:checked):has(#r3:checked):has(#r4:checked) .ready-bar i { width: 100%; }
.ready-ok { display: none; margin: 4px 0 0 !important; padding: 12px 16px; border-radius: 12px; background: var(--violet); font-weight: 900; animation: pop 0.35s ease; }
.ready-ok a { color: var(--yellow); }
.ready:has(#r1:checked):has(#r2:checked):has(#r3:checked):has(#r4:checked) .ready-ok { display: block; }

/* ---------- Offers ---------- */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.offer {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 30px 22px 24px;
  border-radius: 16px;
  background: var(--paper);
  border-top: 6px solid var(--yellow);
  transition: transform 0.25s;
}
.offer::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 10px 0, var(--paper) 9px, transparent 10px) repeat-x; background-size: 20px 10px; }
.of-tag { position: absolute; top: -16px; left: 18px; padding: 3px 12px; border-radius: 6px; background: var(--violet); color: #fff; font-weight: 900; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.of-v { color: var(--yellow); font-size: 2rem; font-weight: 900; line-height: 1.1; }
.of-d { color: var(--muted); }
.offer:hover, .offer:focus-visible { transform: translateY(-6px) rotate(-1deg); }

/* ---------- Who switch (login hero) ---------- */
.who { justify-self: center; width: 100%; max-width: 430px; display: grid; gap: 14px; padding: 22px; border-radius: 20px; background: var(--deep); border: 2px dashed rgba(214, 232, 18, 0.4); }
.who-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 12px; background: var(--paper); }
.who-switch label { position: relative; z-index: 1; padding: 10px 6px; text-align: center; font-weight: 900; font-size: 0.92rem; cursor: pointer; transition: color 0.25s; }
.who-knob { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 9px; background: var(--yellow); transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1); }
#w-old:checked ~ .who-switch .who-knob { transform: translateX(100%); background: var(--violet-2); }
#w-new:checked ~ .who-switch label[for="w-new"], #w-old:checked ~ .who-switch label[for="w-old"] { color: var(--ink); }
.who-list { display: none; list-style: none; counter-reset: wl; margin: 0; padding: 0; gap: 8px; animation: pop 0.35s ease; }
#w-new:checked ~ .wl-new, #w-old:checked ~ .wl-old { display: grid; }
.who-list li { counter-increment: wl; position: relative; padding: 10px 12px 10px 48px; border-radius: 10px; background: var(--paper); font-weight: 700; }
.who-list li::before { content: counter(wl); position: absolute; left: 10px; top: 50%; width: 28px; height: 28px; margin-top: -14px; display: grid; place-items: center; border-radius: 7px; background: var(--violet); color: #fff; font-weight: 900; font-size: 0.85rem; }
.wl-old li::before { background: var(--yellow); color: var(--ink); }
.who-cta { justify-self: stretch; }

/* Rail (registration) */
.rail { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.rail::before { content: ""; position: absolute; left: 12px; right: 12px; top: 13px; height: 4px; background: repeating-linear-gradient(90deg, var(--yellow) 0 10px, transparent 10px 18px); }
.rail li { position: relative; display: grid; gap: 6px; padding: 40px 16px 0 0; }
.rl-dot { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--deep); border: 4px solid var(--yellow); transition: background 0.2s, transform 0.2s; }
.rail li:hover .rl-dot, .rail li:focus-visible .rl-dot { background: var(--yellow); transform: scale(1.2); }
.rl-h { font-weight: 900; font-size: 1.08rem; }
.rl-d { color: var(--muted); font-size: 0.93rem; }

/* Menu path */
.menu-path { display: grid; gap: 10px; justify-items: start; }
.mp { position: relative; padding: 12px 22px; border-radius: 10px; background: var(--paper); border: 2px solid var(--line); font-weight: 900; animation: path-on 6s ease-in-out infinite; }
.mp2 { margin-left: 30px; animation-delay: 1.5s; } .mp3 { margin-left: 60px; animation-delay: 3s; } .mp4 { margin-left: 90px; animation-delay: 4.5s; }
@keyframes path-on { 0%, 30%, 100% { border-color: var(--line); background: var(--paper); color: var(--fg); } 10%, 20% { border-color: var(--yellow); background: var(--yellow); color: var(--ink); } }
.faq-plain details { border-left-color: var(--rose); }

/* ---------- Footer ---------- */
.foot { position: relative; margin-top: 30px; background: var(--deep); padding: 50px 0 calc(110px + env(safe-area-inset-bottom, 0px)); }
.foot-wave { position: absolute; left: 0; right: 0; top: -21px; height: 22px; background: radial-gradient(circle at 22px 22px, var(--deep) 20px, transparent 21px) repeat-x; background-size: 44px 22px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 30px; }
.foot-brand p { margin: 14px 0 0; color: var(--muted); font-size: 0.9rem; max-width: 42ch; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.foot-cols nav { display: grid; gap: 8px; align-content: start; }
.fh { color: var(--violet-2); font-weight: 900; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.foot-cols a { color: var(--fg); text-decoration: none; font-weight: 700; }
.foot-cols a:hover { color: var(--yellow); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 30px; padding-top: 18px; border-top: 2px dashed var(--line); color: var(--muted); font-size: 0.85rem; }
.foot-bottom p { margin: 0; }
.age { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: 4px; background: var(--violet); color: #fff; font-weight: 900; }

/* ---------- Side ribbon CTA ---------- */
.side-tab {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 55;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 16px 10px 16px 14px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, var(--yellow), #b8cb08);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  box-shadow: -10px 14px 30px -10px rgba(0, 0, 0, 0.6);
  transform: translateY(-50%);
  transition: padding 0.3s, background 0.2s;
  animation: tab-in 0.6s ease 1s both;
}
@keyframes tab-in { from { transform: translate(100%, -50%); } to { transform: translate(0, -50%); } }
.side-tab::before { content: ""; position: absolute; left: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--violet); animation: ping-dot 1.6s ease-out infinite; }
@keyframes ping-dot { 0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); } 100% { box-shadow: 0 0 0 14px rgba(139, 92, 246, 0); } }
.st-gift { position: relative; width: 28px; height: 26px; }
.st-gift::before { content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 16px; border-radius: 3px; background: linear-gradient(90deg, var(--violet) 0 40%, var(--ink) 40% 60%, var(--violet) 60%); }
.st-gift::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 7px; border-radius: 2px; background: linear-gradient(90deg, #7a49ee 0 40%, var(--ink) 40% 60%, #7a49ee 60%); transition: transform 0.3s; }
.st-txt { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 0.12em; font-size: 0.9rem; }
.st-more { max-height: 0; overflow: hidden; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; transition: max-height 0.35s; }
.side-tab:hover { padding-left: 18px; }
.side-tab:hover .st-more { max-height: 120px; }
.side-tab:hover .st-gift::after { transform: translateY(-5px) rotate(-14deg); }
.up { position: fixed; left: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 55; width: 46px; height: 46px; border-radius: 10px; background: var(--paper-2); border: 2px dashed var(--yellow); }
.up::before { content: ""; position: absolute; left: 15px; top: 17px; width: 10px; height: 10px; border-left: 3px solid var(--yellow); border-top: 3px solid var(--yellow); transform: rotate(45deg); }
.up:hover { background: var(--violet); }

/* ---------- Toast popup (CSS-only, delayed) ---------- */
.toast-in { position: fixed; top: 0; left: 0; }
.toast {
  position: fixed;
  left: calc(80px + env(safe-area-inset-left, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  width: min(400px, calc(100% - 40px));
  padding: 18px 44px 18px 18px;
  border-radius: 18px;
  background: var(--deep);
  border: 2px dashed var(--yellow);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 40px -10px rgba(139, 92, 246, 0.6);
  visibility: hidden;
  opacity: 0;
  transform: translateY(40px);
  animation: toast-on 0.55s cubic-bezier(0.2, 1.3, 0.4, 1) 6s forwards;
}
@keyframes toast-on { to { visibility: visible; opacity: 1; transform: none; } }
#toast-x:checked ~ .toast { display: none; }
.toast-x { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; background: rgba(255, 255, 255, 0.08); }
.toast-x::before, .toast-x::after { content: ""; position: absolute; left: 7px; top: 13px; width: 14px; height: 2px; background: var(--fg); transform: rotate(45deg); }
.toast-x::after { transform: rotate(-45deg); }
.toast-x:hover { background: var(--violet); }
.toast-ic { width: 56px; height: 56px; border-radius: 14px; background: var(--yellow); position: relative; animation: gift-hop 1.6s ease-in-out 6.6s infinite; }
.toast-ic::before { content: ""; position: absolute; left: 12px; right: 12px; bottom: 11px; height: 20px; border-radius: 3px; background: linear-gradient(90deg, var(--violet) 0 40%, var(--ink) 40% 60%, var(--violet) 60%); }
.toast-ic::after { content: ""; position: absolute; left: 9px; right: 9px; top: 13px; height: 9px; border-radius: 2px; background: linear-gradient(90deg, #7a49ee 0 40%, var(--ink) 40% 60%, #7a49ee 60%); }
@keyframes gift-hop { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-6px) rotate(-6deg); } 80% { transform: translateY(0) rotate(4deg); } }
.toast-h { margin: 0; font-weight: 900; font-size: 1.1rem; }
.toast-d { margin: 2px 0 10px; color: var(--muted); font-size: 0.92rem; }
.toast-act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.toast-no { color: var(--muted); font-weight: 700; font-size: 0.88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.toast-no:hover { color: var(--fg); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .th-grid, .duo { grid-template-columns: minmax(0, 1fr); }
  .rules, .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 0; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .ps-in a { display: none; }
  .logo img { width: 116px; }
  .burger { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--yellow); cursor: pointer; }
  .burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 20px; height: 3px; border-radius: 2px; background: var(--ink); position: relative; transition: transform 0.2s, background 0.2s; }
  .burger span::before { position: absolute; top: -6px; }
  .burger span::after { position: absolute; top: 6px; }
  #mnu:checked + .burger span { background: transparent; }
  #mnu:checked + .burger span::before { transform: translateY(6px) rotate(45deg); }
  #mnu:checked + .burger span::after { transform: translateY(-6px) rotate(-45deg); }
  .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding-bottom: 14px; }
  .menu a:not(.cta) { padding: 12px 4px; border-bottom: 1px dashed var(--line); }
  .menu a:not(.cta)::after { display: none; }
  .menu .cta { margin: 10px 0 0; }
  #mnu:checked ~ .menu { display: flex; }
  .top-hero { padding: 34px 0 70px; }
  .th-btns .cta { flex: 1 1 100%; }
  .sec { padding-top: 56px; padding-bottom: 56px; }
  .week-days { gap: 4px; }
  .week-days label { padding: 16px 0 12px; font-size: 0.88rem; }
  .stairs li { grid-template-columns: 70px 1fr; }
  .stairs li:nth-child(n) { margin-left: 0; }
  .st-fs { grid-column: 2; }
  .slotwall { height: 380px; }
  .rules, .offers { grid-template-columns: minmax(0, 1fr); }
  .offers { gap: 28px; }
  .rule { min-height: 0; }
  .score-cols { grid-template-columns: minmax(0, 1fr); }
  .c2r { grid-template-columns: minmax(0, 1fr); }
  .c2r div { display: flex; justify-content: space-between; align-items: baseline; }
  .rail { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rail::before { left: 13px; right: auto; top: 12px; bottom: 12px; width: 4px; height: auto; background: repeating-linear-gradient(180deg, var(--yellow) 0 10px, transparent 10px 18px); }
  .rail li { padding: 0 0 0 48px; }
  .mp2, .mp3, .mp4 { margin-left: 0; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .side-tab { top: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: none; animation: none; grid-auto-flow: column; align-items: center; padding: 12px 18px 12px 16px; border-radius: 14px 0 0 14px; }
  .st-txt, .st-more { writing-mode: horizontal-tb; transform: none; }
  .st-more { max-height: none; }
  .side-tab::before { display: none; }
  .toast { left: calc(12px + env(safe-area-inset-left, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); width: auto; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =================== Banner slots =================== */
.banner-row { position: relative; z-index: 2; margin-top: -40px; padding-bottom: 10px; }
.bnr {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 3px dashed rgba(214, 232, 18, 0.55);
  padding: 6px;
  background: var(--deep);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
  transition: transform 0.25s, border-color 0.25s;
}
.bnr img { width: 100%; height: auto; border-radius: 12px; aspect-ratio: 3 / 1; object-fit: cover; transition: transform 0.5s; }
.bnr-side img { aspect-ratio: 1448 / 944; }
.bnr:hover { transform: translateY(-3px) rotate(-0.4deg); border-color: var(--yellow); }
.bnr:hover img { transform: scale(1.02); }
.duo-banner { align-items: start; }
.duo-banner .stairs { margin-top: 18px; }
.duo-banner .stairs li:nth-child(n) { margin-left: 0; }
@media (max-width: 760px) {
  .banner-row { margin-top: -30px; }
  .bnr { border-radius: 14px; padding: 4px; }
  .bnr img { border-radius: 10px; }
}
