@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,700;1,700&family=Barlow:wght@400;500;600&family=Prompt:wght@500;800&display=swap');

:root {
  --gold-1: #d89c3a;
  --gold-2: #fcda92;
  --gold-3: #dba654;
  --gold-gradient: linear-gradient(180deg, var(--gold-1) 45%, var(--gold-2) 60%, var(--gold-3) 78%);
  --cta-green-1: #0b8a52;
  --cta-green-2: #3fff6f;
  --cta-glow: rgba(63, 255, 111, 0.75);
  --bg-black: #050302;
  --bg-maroon: #29060a;
  --ink: #171717;
  --ink-soft: #3e3e3e;
  --white: #ffffff;
  --field-bg: #f0f0f0;
  --field-placeholder: rgba(105, 105, 105, 0.55);
  --link-red: #ff1500;
  --google-yellow: #f4b805;

  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Barlow", sans-serif;
  --font-label: "Prompt", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 68% 38%, rgba(120, 20, 20, 0.55), transparent 60%),
    linear-gradient(160deg, var(--bg-maroon) 0%, var(--bg-black) 55%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/bg-golden-dust.jpg") center 30% / cover no-repeat;
  opacity: 0.5;
  mix-blend-mode: plus-lighter;
  z-index: -1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: clamp(160px, 16vw, 230px);
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.logo img { width: 100%; }

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 1.5rem;
}

.bonus-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  text-align: left;
}
.bonus-copy .lead,
.bonus-copy .tail {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.bonus-copy .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.95;
  color: var(--white);
  margin: 0.05em 0;
}
.bonus-copy .big small {
  font-size: 0.34em;
  font-weight: 700;
  vertical-align: 0.3em;
  margin-left: 0.15em;
}
.bonus-copy .spins {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  line-height: 1;
  color: var(--white);
}

.slot-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.slot-visual .machine-wrap {
  position: relative;
  width: min(100%, 560px);
}
.slot-visual .machine-wrap img.machine { width: 100%; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6)); }
.slot-visual .float-icon {
  position: absolute;
  width: 13%;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5));
}
.slot-visual .icon-strawberry-1 { top: 8%; left: -4%; width: 15%; }
.slot-visual .icon-cherries-1 { top: 46%; left: -9%; width: 20%; }
.slot-visual .icon-toro-1 { top: 4%; right: -6%; width: 17%; }
.slot-visual .icon-seven-1 { bottom: 6%; left: 20%; width: 16%; }
.slot-visual .icon-strawberry-2 { top: 58%; right: 2%; width: 13%; }

.cta-row { display: flex; justify-content: center; margin-top: clamp(1.25rem, 3vw, 2rem); }

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15rem;
  padding: 0.85rem 3rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  background: linear-gradient(180deg, #57ffa0 0%, var(--cta-green-2) 35%, var(--cta-green-1) 100%);
  box-shadow: 0 0 30px var(--cta-glow), inset 0 -6px 10px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 0 40px var(--cta-glow), inset 0 -6px 10px rgba(0,0,0,0.25); }
.cta-btn:active { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .cta-btn { transition: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  color: var(--ink);
  padding: 0.9rem clamp(1rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-family: var(--font-label);
  font-size: 0.78rem;
}
.site-footer .handle { font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.site-footer .legal-links { display: flex; gap: 1.5rem; color: var(--ink-soft); font-weight: 500; }
.site-footer .legal-links a { text-underline-offset: 3px; }
.site-footer .legal-links a:hover { text-decoration: underline; }
.site-footer .payments { display: flex; align-items: center; gap: 1.1rem; }
.site-footer .payments img { height: 20px; width: auto; object-fit: contain; }
.site-footer .payments .age { height: 22px; }

.legal-fine {
  background: var(--bg-black);
  color: rgba(255,255,255,0.55);
  font-family: var(--font-label);
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
  padding: 0.75rem 1.5rem 3.75rem;
}

/* ---------- Promo popup ---------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.popup-overlay.is-open { opacity: 1; pointer-events: auto; }

.popup-card {
  position: relative;
  width: min(92vw, 430px);
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.75rem 2.25rem;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(63,255,111,0.06), transparent 60%),
    #0a0a0a url("../images/popup-bg-starburst.png") center / cover no-repeat;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s ease;
}
.popup-overlay.is-open .popup-card { transform: translateY(0) scale(1); }

.popup-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.6);
  line-height: 1;
  padding: 0.4rem;
}
.popup-close:hover { color: #fff; }

.popup-fruit { position: absolute; width: 22%; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5)); }
.popup-fruit.f-strawberry { top: 10%; left: -6%; width: 20%; }
.popup-fruit.f-lemon { top: -4%; right: 2%; width: 24%; }
.popup-fruit.f-watermelon { bottom: 22%; left: -8%; width: 24%; }
.popup-fruit.f-cherry { bottom: 4%; right: -6%; width: 24%; }

.popup-alto {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 0.4rem;
}
.popup-card .headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 0.15rem;
}
.popup-card .sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(0.9rem, 2.6vw, 1.05rem);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 1.4rem;
}

/* ---------- Registration form ---------- */
.register-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(120, 20, 20, 0.5), transparent 65%),
    linear-gradient(160deg, var(--bg-maroon) 0%, var(--bg-black) 55%);
}
.register-page .back-link {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.register-page .back-link:hover { color: #fff; }

.reg-card-wrap { position: relative; width: min(92vw, 460px); }
.reg-fruit { position: absolute; width: 20%; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5)); z-index: 2; }
.reg-fruit.f-strawberry { top: -6%; left: -6%; width: 19%; }
.reg-fruit.f-seven { top: -14%; left: 32%; width: 22%; }
.reg-fruit.f-lemon { top: -8%; right: -4%; width: 20%; }
.reg-fruit.f-watermelon { top: 6%; left: -10%; width: 21%; }
.reg-fruit.f-cherry { top: -2%; right: -8%; width: 22%; }

.reg-card {
  position: relative;
  z-index: 1;
  padding: 2.75rem 1.5rem 1.5rem;
  border-radius: 28px;
  background: rgba(7,7,7,0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}

.field {
  position: relative;
  margin-bottom: 0.75rem;
}
.field input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: 27px;
  border: 2px solid transparent;
  background: var(--field-bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.field input::placeholder { color: var(--field-placeholder); }
.field input:focus { border-color: var(--cta-green-2); outline: none; }
.field input.has-error { border-color: var(--link-red); }
.field .toggle-pw {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(105,105,105,0.7);
}
.field-error {
  display: none;
  color: #ff6b57;
  font-size: 0.72rem;
  font-family: var(--font-body);
  margin: 0.25rem 0.4rem 0;
}
.field.invalid .field-error { display: block; }

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-radius: 27px;
  background: var(--google-yellow);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.google-btn img { width: 22px; height: 22px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1.1rem 0.2rem 1.25rem;
}
.consent input[type="checkbox"] {
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  cursor: pointer;
}
.consent input[type="checkbox"]:checked {
  background: var(--link-red);
  border-color: var(--link-red);
}
.consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent label {
  font-family: var(--font-body);
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(255,255,255,0.9);
}
.consent.invalid label { color: #ff6b57; }

.register-submit {
  width: 100%;
  padding: 0.95rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  text-transform: uppercase;
  background: linear-gradient(180deg, #ff6a5a 0%, #e02310 55%, #a10f04 100%);
  box-shadow: 0 10px 30px rgba(224, 35, 16, 0.45);
  margin-bottom: 1rem;
}
.register-submit:hover { filter: brightness(1.08); }

.login-hint {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
}
.login-hint a { color: var(--link-red); }
.login-hint a:hover { text-decoration: underline; }

.form-banner {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  margin-bottom: 0.9rem;
}
.form-banner.show { display: flex; }
.form-banner.error { background: rgba(255, 21, 0, 0.15); color: #ff8a7a; border: 1px solid rgba(255,21,0,0.4); }
.form-banner.success { background: rgba(63, 255, 111, 0.12); color: #7dffa4; border: 1px solid rgba(63,255,111,0.4); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .bonus-copy { align-items: center; text-align: center; }
  .slot-visual { order: -1; }
  .site-footer { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .bonus-copy .big { font-size: clamp(2.6rem, 15vw, 3.6rem); }
  .site-footer { flex-direction: column; }
}
