/* style.css
   Goon Lab - Minimal, dark redesign
   - Dark/near-black background
   - Single animated text element (Goon Lab)
   - Intentional, human-made, minimal
   - One strong accent color
   - No flashy effects, no neon everywhere
*/

:root {
  --color-bg: #0a0a0a;
  --color-text: #ffffff;
  --color-text-muted: #888888;
  --color-accent: #ff006e;
  --color-accent-light: #ff3385;
  --color-surface: rgba(255, 255, 255, 0.05);
  --color-border: rgba(255, 255, 255, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

/* Subtle grain texture (1-2% opacity) */
@keyframes grain-shift {
  0%, 100% { background-position: 0 0; }
  50% { background-position: 100px 100px; }
}

/* Marquee scroll animation */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Animated text fill - the ONLY animation on the page */
@keyframes text-fill {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Base styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Very subtle noise (1-2% opacity) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.01) 2px,
      rgba(255, 255, 255, 0.01) 4px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.01) 3px,
      rgba(255, 255, 255, 0.01) 6px
    );
  z-index: -1;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Minimal marquee - very subtle */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: transparent;
  border-bottom: 1px solid var(--color-border);
  padding: 8px 0;
  margin-bottom: 16px;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marquee-track {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 60px;

  /* critical for seamless loop when there are TWO marquee-content blocks */
  flex-shrink: 0;
  min-width: 100%;

  animation: marquee-scroll 28s linear infinite;
}

.marquee-item {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--color-text-muted);
  opacity: 0.6;
  flex-shrink: 0;
  text-transform: uppercase;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* Minimal Top Navigation */
.top-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 12px 0;
  align-items: center;
  margin-bottom: 32px;
}

.nav-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: color 250ms ease;
  text-transform: uppercase;
}

.nav-link:hover {
  color: var(--color-accent);
}

/* Hero Section - THE MAIN STAGE */
.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 60px 0;
  min-height: 500px;
  z-index: 1;
  gap: 36px;
}

/* Single animated text - "Goon Lab" with animated fill */
.hero-title {
  margin: 0;
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  text-align: center;
}

/* Button area - clean and simple */
.button-area {
  margin-top: 0;
  text-align: center;
}

/* Primary Button */
.primary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;

  /* Keycap body */
  background: linear-gradient(180deg, #2a2a2a, #141414);
  color: rgba(255, 255, 255, 0.92);

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(0, 0, 0, 0.6);

  border-radius: 18px;
  padding: 16px 32px;

  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  cursor: pointer;
  outline: none;

  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -10px 18px rgba(0, 0, 0, 0.45);

  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

/* Inner rim like a key */
.primary-btn::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.12));
  box-shadow:
    inset -10px 0 10px rgba(0, 0, 0, 0.16),
    inset 0 -10px 12px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

/* Subtle accent ring (pink) */
.primary-btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  border: 1px solid rgba(255, 0, 110, 0.18);
  box-shadow: 0 0 0 rgba(255, 0, 110, 0);
  pointer-events: none;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

/* Large button for hero */
.primary-btn--large {
  padding: 24px 48px;
  font-size: 18px;
  font-weight: 800;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
}

.primary-btn:hover:not(:disabled)::after {
  border-color: rgba(255, 0, 110, 0.35);
  box-shadow: 0 10px 30px rgba(255, 0, 110, 0.12);
}

.primary-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.55),
    inset 0 2px 0 rgba(255, 255, 255, 0.07),
    inset 0 -16px 22px rgba(0, 0, 0, 0.58);
}

.primary-btn:active:not(:disabled)::before {
  inset: 7px;
  box-shadow:
    inset -6px 0 6px rgba(0, 0, 0, 0.12),
    inset 0 -6px 8px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.primary-btn:active:not(:disabled) {
  letter-spacing: 0.115em;
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Controls Section - premium product panel */
.controls-section {
  padding: 28px 28px;
  margin: 0 auto;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  margin-top: 28px;
}

.controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.control-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  text-transform: none;
  letter-spacing: 0px;
  opacity: 0.9;
  margin-bottom: 4px;
}

.select-input {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 150ms ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.select-input:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.05);
}

.select-input:focus {
  border-color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 2px rgba(255, 0, 110, 0.1);
}

/* Toggle switch - soft premium style */
.switch {
  display: inline-block;
  position: relative;
  --w: 46px;
  --h: 26px;
  width: var(--w);
  height: var(--h);
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: all 150ms ease;
  width: var(--w);
  height: var(--h);
}

.switch .slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 1px;
  top: 1px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transition: all 150ms ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch input:hover + .slider {
  background: rgba(255, 255, 255, 0.1);
}

.switch input:checked + .slider {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Info Section - integrated into panel */
.info-section {
  border-top: 0;
  padding-top: 0;
  position: relative;
  z-index: 1;
}

.info-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  text-transform: none;
  letter-spacing: 0px;
  outline: none;
  transition: opacity 150ms ease;
}

.info-toggle:hover {
  opacity: 0.8;
}

.toggle-icon {
  display: inline-block;
  font-size: 12px;
  transition: transform 200ms ease;
  opacity: 0.6;
}

.info-toggle:hover .toggle-icon {
  opacity: 1;
}

.info-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(90deg);
  opacity: 1;
}

.info-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 200ms ease, opacity 200ms ease;
  opacity: 0;
  margin-top: 0;
}

.info-panel.open {
  opacity: 1;
  margin-top: 10px;
}

.info-panel p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.footer-text {
  margin: 0;
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.2px;
  opacity: 0.6;
  font-weight: 500;
  text-transform: uppercase;
}

/* Age confirmation overlay */
.age-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  z-index: 9999;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.age-overlay.age-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.age-modal {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  border: 1px solid var(--color-border);
}

.age-title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.3px;
}

.age-text {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.age-actions {
  display: flex;
  gap: 12px;
}

/* Prevent scroll when age overlay is active */
html.age-blocked,
body.age-blocked {
  overflow: hidden;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 56px;
    letter-spacing: -1px;
  }

  .primary-btn--large {
    padding: 20px 40px;
    font-size: 16px;
  }

  .controls-section {
    padding: 24px 20px;
    margin-top: 24px;
    max-width: 100%;
  }

  .controls-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .hero-section {
    min-height: 420px;
    padding: 40px 0;
  }
}

@media (max-width: 640px) {
  .page-wrapper {
    padding: 12px;
  }

  .top-nav {
    gap: 24px;
    padding: 10px 0;
    margin-bottom: 24px;
  }

  .nav-link {
    font-size: 11px;
  }

  .hero-section {
    min-height: 380px;
    padding: 30px 0;
  }

  .hero-title {
    font-size: 48px;
    letter-spacing: -1px;
  }

  .button-area {
    margin-top: 0;
  }

  .primary-btn--large {
    padding: 18px 36px;
    font-size: 16px;
  }

  .controls-section {
    padding: 20px 16px;
    margin-top: 20px;
  }

  .controls-grid {
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .footer {
    padding-top: 24px;
  }

  .age-modal {
    padding: 32px 24px;
  }

  .age-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .page-wrapper {
    padding: 10px;
  }

  .marquee-container {
    margin-bottom: 12px;
  }

  .top-nav {
    gap: 16px;
    padding: 8px 0;
    margin-bottom: 20px;
  }

  .nav-link {
    font-size: 10px;
  }

  .hero-section {
    min-height: 340px;
    padding: 24px 0;
  }

  .hero-title {
    font-size: 40px;
    letter-spacing: -0.5px;
  }

  .button-area {
    margin-top: 0;
  }

  .primary-btn--large {
    padding: 16px 28px;
    font-size: 14px;
  }

  .controls-section {
    padding: 20px 16px;
    margin-top: 20px;
  }

  .controls-grid {
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .control-label {
    font-size: 11px;
  }

  .footer {
    padding-top: 20px;
  }

  .age-modal {
    padding: 28px 20px;
  }
}

/* Print styles */
@media print {
  body, .page-wrapper {
    background: #ffffff;
  }
}
/* === Animated Text Fill (pink) === */
.animated-fill{
  /* базовый вид */
  font-weight: 800;
  letter-spacing: -0.02em;

  /* делаем сам текст прозрачным, а фон "внутри букв" */
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;

  /* заливка: несколько слоёв, чтобы было "живее" */
 background-image: repeating-linear-gradient(
  110deg,
  #f2e9ee 0%,
  #f2e9ee 12%,
  #ff2fa4 12%,
  #ff2fa4 28%,
  #ff007a 28%,
  #ff007a 45%,
  #f2e9ee 45%,
  #f2e9ee 60%,
  #ff2fa4 60%,
  #ff2fa4 78%,
  #ff007a 78%,
  #ff007a 92%,
  #f2e9ee 92%,
  #f2e9ee 100%
);

  /* делаем заливку больше текста и двигаем */
  background-size: 200% 100%;
  background-position: 0% 50%;
  animation: goonFill 12s linear infinite;
  will-change: background-position;

  /* чуть "пластика", но без колхоза */
  filter: drop-shadow(0 6px 22px rgba(255, 35, 160, 0.25));
}

/* мягкая, бесконечная прокрутка заливки */
@keyframes goonFill{
  0%   { background-position:   0% 50%; }
  100% { background-position: 200% 50%; }
}

/* уважение к reduce motion */
@media (prefers-reduced-motion: reduce){
  .animated-fill{ animation: none; }
}
.btn-label{
  position: relative;
  z-index: 2; /* чтобы текст был поверх ::before */
  transition: transform 120ms ease;
}

.primary-btn:active:not(:disabled) .btn-label{
  transform: translateY(1px);
}