/* WaffleAdv Social Casino — Cyberpunk / Holographic Noir */
/* @mike: base tokens — don't rename vars, half the components depend on them (14.05) */

:root {
  --bg-primary: #0f0f1e;
  --bg-secondary: #1a1a2e;
  --accent-cyan: #00d9ff;
  --accent-magenta: #ff00ff;
  --accent-green: #39ff14;
  --accent-pink: #ff6ec7;
  --text-white: #ffffff;
  --text-gray: #e0e0e0;
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Exo 2", sans-serif;
  --font-mono: "Fira Code", monospace;
  --glass-bg: rgba(15, 15, 30, 0.75);
  --glass-border: rgba(0, 217, 255, 0.3);
  --holo-gradient: linear-gradient(
    135deg,
    var(--accent-cyan),
    var(--accent-magenta),
    var(--accent-pink)
  );
  --transition: 0.3s ease;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-gray);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--accent-pink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Background decorations */
.bg-deco {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-deco__grid,
.bg-deco__scanlines {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.bg-deco__scanlines {
  opacity: 0.06;
  mix-blend-mode: screen;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  height: var(--header-height);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-logo img {
  width: 44px;
  height: 44px;
}

.site-logo__text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}

.site-logo__text span {
  display: block;
  font-size: 0.65rem;
  color: var(--accent-cyan);
  font-weight: 400;
}

.site-nav {
  display: none;
}

.site-nav__list {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav__link {
  display: block;
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem;
  color: var(--text-gray);
  border-radius: 4px;
  transition: all var(--transition);
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--accent-cyan);
  background: rgba(0, 217, 255, 0.1);
}

.header-actions {
  display: none;
  gap: 0.5rem;
  align-items: center;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  background: rgba(15, 15, 30, 0.6);
}

.lang-switcher__btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-gray);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  line-height: 1.2;
}

.lang-switcher__btn:hover,
.lang-switcher__btn:focus-visible {
  color: var(--accent-cyan);
}

.lang-switcher__btn--active {
  color: var(--bg-primary);
  background: var(--accent-cyan);
}

.lang-switcher__sep {
  color: rgba(224, 224, 224, 0.35);
  font-size: 0.65rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
  font-family: var(--font-body);
}

.chat-widget__toggle {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-cyan),
    var(--accent-magenta)
  );
  color: var(--bg-primary);
  box-shadow: 0 8px 24px rgba(0, 217, 255, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.chat-widget__toggle:hover,
.chat-widget__toggle:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(255, 0, 255, 0.35);
}

.chat-widget__toggle-icon {
  width: 26px;
  height: 26px;
}

.chat-widget__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(360px, calc(100vw - 2rem));
  max-height: min(520px, calc(100vh - 6rem));
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.chat-widget.is-open .chat-widget__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 217, 255, 0.06);
}

.chat-widget__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-white);
}

.chat-widget__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.chat-widget__close::before {
  content: "\00d7";
}

.chat-widget__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
}

.chat-widget__message {
  max-width: 88%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.chat-widget__message--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-gray);
}

.chat-widget__message--user {
  align-self: flex-end;
  background: rgba(0, 217, 255, 0.15);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: var(--text-white);
}

.chat-widget__links {
  list-style: none;
  margin-top: 0.5rem;
}

.chat-widget__links a {
  display: inline-block;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  text-decoration: underline;
}

.chat-widget__typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.chat-widget__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: chat-typing 1.2s infinite ease-in-out;
}

.chat-widget__typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-widget__typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chat-typing {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chat-widget__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-widget__input {
  flex: 1;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-white);
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
}

.chat-widget__send {
  border: none;
  border-radius: 8px;
  background: var(--accent-cyan);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

@media (max-width: 575px) {
  .chat-widget.is-open .chat-widget__panel {
    position: fixed;
    inset: 0;
    width: 100%;
    max-height: none;
    border-radius: 0;
    bottom: 0;
    transform: translateY(100%);
  }

  .chat-widget.is-open .chat-widget__panel {
    transform: translateY(0);
  }

  .chat-widget__toggle {
    width: 52px;
    height: 52px;
  }
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition);
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity var(--transition),
    visibility var(--transition);
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  cursor: pointer;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--glass-border);
  transform: translateX(100%);
  transition: transform var(--transition);
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-white);
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-menu__list {
  list-style: none;
  margin-top: 3rem;
}

.mobile-menu__link {
  display: block;
  padding: 0.85rem 0;
  color: var(--text-gray);
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu__actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--holo-gradient);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
  transform: translateY(-2px);
  color: var(--bg-primary);
}

.btn--secondary {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent-pink);
  border-color: var(--accent-pink);
}

.btn--ghost {
  background: transparent;
  color: var(--text-gray);
  border: 1px solid var(--glass-border);
}

.btn--ghost:hover {
  color: var(--text-white);
  border-color: var(--accent-cyan);
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.7rem;
}

/* Main content */
main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 3rem 0;
}

.section--hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.section__subtitle {
  font-size: 1rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Glitch effect */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: var(--accent-cyan);
  animation: glitch-1 2.5s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
  color: var(--accent-magenta);
  animation: glitch-2 3s infinite linear alternate-reverse;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 1px);
  }
  40% {
    transform: translate(2px, -1px);
  }
  60% {
    transform: translate(-1px, 2px);
  }
  80% {
    transform: translate(1px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

@keyframes glitch-2 {
  0% {
    transform: translate(0);
  }
  25% {
    transform: translate(2px, -1px);
  }
  50% {
    transform: translate(-2px, 1px);
  }
  75% {
    transform: translate(1px, 2px);
  }
  100% {
    transform: translate(0);
  }
}

.hero__content {
  text-align: center;
  position: relative;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
  background: var(--holo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero__deco {
  position: absolute;
  width: 200px;
  opacity: 0.2;
  pointer-events: none;
}

.hero__deco--left {
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
}

.hero__deco--right {
  right: -50px;
  top: 30%;
}

/* Glass cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all var(--transition);
}

.glass-card:hover {
  border-color: var(--accent-magenta);
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.15);
  transform: translateY(-3px);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.feature-card__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.game-card {
  overflow: hidden;
  padding: 0;
}

.game-card__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.game-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.game-card:hover .game-card__image-wrapper img {
  transform: scale(1.05);
}

.game-card__body {
  padding: 1.25rem;
}

.game-card__title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.game-card__desc {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: var(--text-gray);
}

/* Iframe */
.iframe-section {
  position: relative;
}

.iframe-wrapper {
  aspect-ratio: 1140 / 735;
  width: 100%;
  border: none;
  overflow: hidden;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  margin-bottom: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.review-card__stars {
  color: var(--accent-green);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.review-card__text {
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.review-card__author {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.review-card__date {
  font-size: 0.75rem;
  color: rgba(224, 224, 224, 0.6);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--glass-bg);
  border: none;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.faq-item__question:hover {
  background: rgba(0, 217, 255, 0.08);
}

.faq-item__icon {
  font-size: 1.25rem;
  color: var(--accent-cyan);
  transition: transform var(--transition);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.faq-item.is-open .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: step;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-card__number {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

/* Daily bonuses */
.bonus-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

@media (max-width: 460px) {
  .bonus-calendar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}

.bonus-day {
  text-align: center;
  padding: 0.75rem 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  font-size: 0.75rem;
}

.bonus-day--active {
  border-color: var(--accent-green);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
}

.bonus-day__reward {
  font-family: var(--font-mono);
  color: var(--accent-green);
  font-size: 0.7rem;
  margin-top: 0.25rem;
}

/* Leaderboard */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.leaderboard-item__rank {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent-cyan);
  width: 2rem;
}

.leaderboard-item__info {
  flex: 1;
}

.leaderboard-item__name {
  font-weight: 600;
  color: var(--text-white);
  font-size: 0.9rem;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 0.35rem;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--holo-gradient);
  border-radius: 3px;
  transition: width 1s ease;
}

.leaderboard-item__score {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-green);
}

/* Live feed ticker */
.live-feed {
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass-bg);
  padding: 0.75rem 0;
}

.live-feed__track {
  display: flex;
  gap: 3rem;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.live-feed__item {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Disclaimer */
.disclaimer-block {
  border: 1px solid rgba(255, 0, 255, 0.3);
  background: rgba(255, 0, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
}

.disclaimer-block p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.disclaimer-block__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* Page hero */
.page-hero {
  padding: 3rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 2rem;
}

.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

/* Content pages */
.content-section {
  padding-bottom: 3rem;
}

.content-section h2 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
}

.content-section h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
}

.content-section p,
.content-section li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.content-section ul,
.content-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-white);
}

.form-group input:not([type="checkbox"]),
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(224, 224, 224, 0.4);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-cyan);
  outline: none;
}

.form-card {
  max-width: 480px;
  margin: 0 auto;
}

.contact-grid .form-card {
  max-width: none;
  margin: 0;
}

.form-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
}

.form-tab {
  flex: 1;
  padding: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-gray);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}

.form-tab--active {
  background: rgba(0, 217, 255, 0.15);
  color: var(--accent-cyan);
}

.form-panel {
  display: none;
}

.form-panel--active {
  display: block;
}

/* Contact map */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 16 / 10;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  opacity: 1;
  margin-bottom: 0;
}

.contact-info__item {
  margin-bottom: 1.25rem;
}

.contact-info__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* Subscription plans */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pricing-card {
  text-align: center;
  position: relative;
}

.pricing-card--featured,
.pricing-card.pricing-card--featured {
  border-color: var(--accent-magenta);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.2);
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.plan-card {
  text-align: center;
  position: relative;
}

.plan-card--featured {
  border-color: var(--accent-magenta);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.2);
}

.plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--holo-gradient);
  color: var(--bg-primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-family: var(--font-heading);
}

.plan-card__price {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--accent-cyan);
  margin: 1rem 0;
}

.plan-card__features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.plan-card__features li {
  padding: 0.4rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-card__features li::before {
  content: "▸ ";
  color: var(--accent-green);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-gray);
  flex: 1;
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.blog-article-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-article-body {
  max-width: 760px;
}

.blog-article-body p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  font-size: 0.95rem;
}

.blog-article-body h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent-cyan);
}

.blog-article-back {
  margin-bottom: 1.5rem;
}

.blog-card__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.blog-card__title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition),
    visibility var(--transition);
}

.modal-overlay__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  border: none;
  cursor: pointer;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  transform: scale(0.9);
  transition: transform var(--transition);
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.15);
}

.modal-overlay.is-open .modal {
  transform: scale(1);
}

.modal__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.modal__text {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 1rem;
  transform: translateY(100%);
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
  opacity: 0;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.cookie-banner__text {
  font-size: 0.875rem;
  flex: 1;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col__title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col__list {
  list-style: none;
}

.footer-col__link {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  color: var(--text-gray);
}

.footer-col__link:hover {
  color: var(--accent-cyan);
}

.footer-responsible {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem 0;
  margin-bottom: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-responsible img {
  height: 36px;
  width: auto;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.footer-responsible a:hover img {
  opacity: 1;
}

.section__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.section__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  color: var(--accent-cyan);
  background: rgba(0, 217, 255, 0.08);
}

.section__tag--magenta {
  color: var(--accent-magenta);
  background: rgba(255, 0, 255, 0.08);
  border-color: rgba(255, 0, 255, 0.25);
}

.section__tag--green {
  color: var(--accent-green);
  background: rgba(57, 255, 20, 0.08);
  border-color: rgba(57, 255, 20, 0.25);
}

.media-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2.5rem 0;
}

.media-row__image img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.media-row__content h2 {
  margin-bottom: 1rem;
}

.media-row__content p {
  margin-bottom: 1rem;
  color: var(--text-gray);
}

.media-row__content p:last-child {
  margin-bottom: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.team-card {
  text-align: center;
  padding: 1.5rem;
}

.team-card__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.team-card__name {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-magenta);
  margin-bottom: 0.75rem;
}

.team-card__bio {
  font-size: 0.875rem;
  color: var(--text-gray);
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table th {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  background: rgba(0, 217, 255, 0.06);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-light);
}

.comparison-table__highlight {
  color: var(--accent-green);
}

html.age-verified #age-modal {
  display: none;
}

html.age-gate-required #age-modal {
  opacity: 1;
  visibility: visible;
}

html.age-gate-required #age-modal .modal {
  transform: scale(1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(224, 224, 224, 0.6);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.footer-badge {
  display: inline-block;
  background: rgba(255, 0, 0, 0.2);
  color: #ff6b6b;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

/* Matrix fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */
@media (min-width: 576px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .plans-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .media-row {
    grid-template-columns: 1fr 1fr;
  }

  .media-row--reverse .media-row__image {
    order: 2;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 991px) {
  .site-nav {
    display: block;
  }

  .header-actions {
    display: flex;
  }

  .header-tools .lang-switcher {
    display: inline-flex;
  }

  .hamburger {
    display: none;
  }
}
@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .plans-grid,
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   legacy aliases + rush fixes — @tom / @alex / @mike (May-June 2026)
   Taken from old "ProjectX" shell, refactor later maybe
   ========================================================================== */

.main-header {
  /* alias for .site-header — analytics still references main-header in GTM */
}

.site-header.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.hero-section {
  position: relative;
}

.hero-baner.section--hero,
section.hero-baner {
  padding: 4rem 0 3rem;
}

.secton-dark {
  background-color: var(--bg-primary);
  color: var(--text-gray);
}

.pricin-card {
  /* typo kept since A/B test markup — subscription.html uses this */
  text-align: center;
  position: relative;
}

.card-fix-2026 {
  border-color: rgba(0, 217, 255, 0.42) !important;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}

.mw-ticker-wrap {
  overflow: hidden;
}

.mw-ticker-wrap .live-feed {
  border-radius: 8px;
}

.app-quickStats {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-green);
  letter-spacing: 0.02em;
}

.ui-cardGlow:hover {
  box-shadow: 0 0 28px rgba(255, 0, 255, 0.2);
}

.cmz-pollWidget {
  border: 1px dashed var(--glass-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  background: rgba(15, 15, 30, 0.6);
}

.cmz-pollWidget__bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.cmz-pollWidget__fill {
  height: 100%;
  background: var(--holo-gradient);
  width: 67%;
}

/* FIXME: hardcoded width above, hook to API later @anna 28.05 */

.old-hero-banner {
  display: none;
}

.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}
