/* ============================================================
   homepage.css – Game of Dices Homepage
   Tenants: god (default) | moonshine | jack-daniels
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --hp-bg:          #080810;
  --hp-bg2:         #0d0d1a;
  --hp-surface:     rgba(255,255,255,0.04);
  --hp-surface-h:   rgba(255,255,255,0.08);
  --hp-border:      rgba(255,255,255,0.08);
  --hp-border-h:    rgba(212,168,67,0.5);
  --hp-accent:      #d4a843;
  --hp-accent-glow: rgba(212,168,67,0.25);
  --hp-accent2:     #8b5cf6;
  --hp-text:        #e8e8f0;
  --hp-text-muted:  rgba(232,232,240,0.5);
  --hp-header-h:    64px;
  --hp-radius:      16px;
  --hp-radius-sm:   10px;
  --hp-font-title:  'Cinzel', Georgia, serif;
  --hp-font-body:   'Inter', system-ui, sans-serif;
  --hp-card-badge-adult: #c0392b;
  --hp-card-badge-free:  #27ae60;
  --hp-hero-dice-color: rgba(212,168,67,0.15);
  --hp-card-glow:   rgba(212,168,67,0.12);
}

[data-tenant="moonshine"] {
  --hp-bg:          #0a0508;
  --hp-bg2:         #120a0e;
  --hp-surface:     rgba(255,255,255,0.04);
  --hp-surface-h:   rgba(200,119,138,0.1);
  --hp-border:      rgba(200,119,138,0.12);
  --hp-border-h:    rgba(200,119,138,0.55);
  --hp-accent:      #c8778a;
  --hp-accent-glow: rgba(200,119,138,0.25);
  --hp-accent2:     #f0c080;
  --hp-text:        #f0e8ec;
  --hp-text-muted:  rgba(240,232,236,0.5);
  --hp-card-glow:   rgba(200,119,138,0.15);
  --hp-hero-dice-color: rgba(200,119,138,0.12);
  --hp-font-title:  'Cinzel', Georgia, serif;
}

[data-tenant="jack-daniels"] {
  --hp-bg:          #080604;
  --hp-bg2:         #100c06;
  --hp-surface:     rgba(255,255,255,0.04);
  --hp-surface-h:   rgba(216,130,58,0.1);
  --hp-border:      rgba(216,130,58,0.12);
  --hp-border-h:    rgba(216,130,58,0.55);
  --hp-accent:      #d4823a;
  --hp-accent-glow: rgba(212,130,58,0.25);
  --hp-accent2:     #e8d5b0;
  --hp-text:        #f0ece4;
  --hp-text-muted:  rgba(240,236,228,0.5);
  --hp-card-glow:   rgba(212,130,58,0.15);
  --hp-hero-dice-color: rgba(212,130,58,0.12);
  --hp-font-title:  'Cinzel', Georgia, serif;
}

/* ── Mobile Splash Screen ────────────────────────────────── */
.hp-splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #080810;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: opacity 0.4s ease;
}
.hp-splash.is-hiding { opacity: 0; pointer-events: none; }
.hp-splash::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,8,16,0.6) 0%, transparent 30%, transparent 60%, rgba(8,8,16,0.8) 100%);
  z-index: 0;
  pointer-events: none;
}

.hp-splash__video,
.hp-splash__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hp-splash__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 72px 32px 72px;
  text-align: center;
  width: 100%;
  height: 100%;
}

.hp-splash__logo {
  width: clamp(200px, 70vw, 320px);
  height: auto;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,0.8));
}

.hp-splash__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.hp-splash__tagline {
  font-family: var(--hp-font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  max-width: 280px;
}

.hp-splash__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  background: var(--hp-accent);
  color: #080810;
  font-family: var(--hp-font-body);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  width: 100%;
  max-width: 280px;
  box-shadow: 0 4px 24px rgba(212,168,67,0.4);
  transition: opacity 0.2s, transform 0.15s;
}
.hp-splash__cta:active { transform: scale(0.97); opacity: 0.9; }
.hp-splash__cta:disabled { background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.4); box-shadow: none; cursor: default; }

/* Nur auf Mobile anzeigen */
@media (min-width: 769px) {
  .hp-splash { display: none !important; }
}

/* ── Background Video ────────────────────────────────────── */
.hp-bg-video {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

@media (min-width: 769px) {
  .hp-bg-video { display: block; }
  .hp-bg-video--moonshine { display: none; }
  [data-tenant="moonshine"] .hp-bg-video:not(.hp-bg-video--moonshine) { display: none; }
  [data-tenant="moonshine"] .hp-bg-video--moonshine { display: block; }
  [data-tenant="jack-daniels"] .hp-bg-video { display: none; }
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--hp-font-body);
  background-color: var(--hp-bg);
  color: var(--hp-text);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Background ──────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--hp-accent-glow), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(139,92,246,0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

[data-tenant="moonshine"] body::before,
body[data-tenant="moonshine"]::before {
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, var(--hp-accent-glow), transparent),
    radial-gradient(ellipse 50% 40% at 20% 90%, rgba(240,192,128,0.05), transparent);
}

/* ── Header ─────────────────────────────────────────────── */
.hp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--hp-header-h);
  z-index: 100;
  background: rgba(8,8,16,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hp-border);
  transition: background 0.3s;
  overflow: visible;
}

[data-tenant="moonshine"] .hp-header { background: rgba(10,5,8,0.8); }
[data-tenant="jack-daniels"] .hp-header { background: rgba(8,6,4,0.8); }

.hp-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Logo ────────────────────────────────────────────────── */
.hp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--hp-text);
  flex-shrink: 0;
}

.hp-logo__icon {
  width: 77px;
  height: 77px;
  object-fit: contain;
  position: relative;
  bottom: -14px;
  filter: drop-shadow(0 0 8px var(--hp-accent-glow));
}
span.hp-logo__icon {
  width: auto;
  height: auto;
  font-size: 28px;
  line-height: 1;
  bottom: 0;
  object-fit: unset;
}

.hp-logo__text {
  font-family: var(--hp-font-title);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--hp-accent);
  white-space: nowrap;
}

/* ── Nav ─────────────────────────────────────────────────── */
.hp-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  position: relative;
}

.hp-nav__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-sm);
  color: var(--hp-text);
  font-family: var(--hp-font-body);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.hp-nav__btn:hover {
  background: var(--hp-surface-h);
  border-color: var(--hp-border-h);
}
.hp-nav__btn .material-symbols-rounded { font-size: 18px; }
.hp-nav__chevron { font-size: 16px !important; transition: transform 0.2s; }
.hp-nav__btn[aria-expanded="true"] .hp-nav__chevron { transform: rotate(180deg); }

.hp-nav__link {
  padding: 8px 14px;
  color: var(--hp-text-muted);
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--hp-radius-sm);
  transition: color 0.2s;
  white-space: nowrap;
}
.hp-nav__link:hover { color: var(--hp-text); }

/* ── User Dropdown ───────────────────────────────────────── */
.hp-nav__user-wrap { position: relative; }

.hp-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: 10px;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  overflow: hidden;
}
.hp-user-dropdown--mobile {
  position: static;
  box-shadow: none;
  border: none;
  border-top: 1px solid var(--hp-border);
  border-radius: 0;
  min-width: unset;
}
.hp-user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: none;
  border: none;
  color: var(--hp-text);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.hp-user-dropdown__item:hover { background: var(--hp-surface-h); color: var(--hp-accent); }
.hp-user-dropdown__item .material-symbols-rounded { font-size: 18px; }

/* ── Language Dropdown ───────────────────────────────────── */
.hp-lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1a1a2e;
  border: 1px solid var(--hp-border-h);
  border-radius: var(--hp-radius-sm);
  overflow: hidden;
  min-width: 140px;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
[data-tenant="moonshine"] .hp-lang-dropdown { background: #1a0f14; }
[data-tenant="jack-daniels"] .hp-lang-dropdown { background: #1a1206; }

.hp-lang-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--hp-text);
  font-family: var(--hp-font-body);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.hp-lang-dropdown button:hover { background: var(--hp-surface-h); color: var(--hp-accent); }
.hp-lang-dropdown button.is-active { color: var(--hp-accent); font-weight: 600; }

/* ── Hamburger ───────────────────────────────────────────── */
.hp-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-sm);
  color: var(--hp-text);
  cursor: pointer;
  transition: background 0.2s;
}
.hp-hamburger:hover { background: var(--hp-surface-h); }
.hp-hamburger .material-symbols-rounded { font-size: 22px; }

/* ── Mobile Nav ──────────────────────────────────────────── */
.hp-mobile-nav {
  position: fixed;
  top: var(--hp-header-h);
  left: 0; right: 0;
  background: var(--hp-bg2);
  border-bottom: 1px solid var(--hp-border);
  z-index: 99;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hp-mobile-nav .hp-nav__btn,
.hp-mobile-nav .hp-nav__link { justify-content: flex-start; width: 100%; }
.hp-lang-dropdown--mobile {
  position: static;
  box-shadow: none;
  border-radius: var(--hp-radius-sm);
  margin-top: 4px;
}

/* ── Main ────────────────────────────────────────────────── */
.hp-main {
  position: relative;
  z-index: 1;
  padding-top: var(--hp-header-h);
}

/* ── Hero ────────────────────────────────────────────────── */
.hp-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 48px;
  overflow: hidden;
}

.hp-hero__content { position: relative; z-index: 1; max-width: 640px; }

.hp-hero__badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(8,8,16,0.45);
  border: 1px solid var(--hp-accent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-accent);
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hp-hero__title {
  font-family: var(--hp-font-title);
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--hp-text);
  text-shadow: 0 0 60px var(--hp-accent-glow);
  margin-bottom: 16px;
}

.hp-hero__logo-img {
  display: block;
  width: clamp(280px, 55vw, 720px);
  height: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 8px rgba(0,0,0,1))
          drop-shadow(0 0 20px rgba(0,0,0,0.9))
          drop-shadow(0 0 50px rgba(0,0,0,0.8));
}
[data-tenant="moonshine"] .hp-hero__logo-img { filter: none; }

.hp-hero__sub {
  font-size: 16px;
  color: var(--hp-text);
  max-width: max-content;
  margin: 0 auto;
  display: inline-block;
  padding: 6px 18px;
  background: rgba(8,8,16,0.45);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hp-hero__sub {
    white-space: normal;
    max-width: 90vw;
  }
}


/* ── Cards Section ───────────────────────────────────────── */
.hp-cards-section {
  padding: 0 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}


.hp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* Single-card tenants center the card */
.hp-cards--single {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin: 0 auto;
}

/* ── Game Card ───────────────────────────────────────────── */
.hp-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1),
              border-color 0.25s,
              box-shadow 0.25s;
  outline: none;
  list-style: none;
  box-shadow:
    0 0 0 1px rgba(212,168,67,0.3),
    0 8px 32px rgba(212,168,67,0.15),
    0 24px 64px rgba(0,0,0,0.6);
}

.hp-card:hover,
.hp-card:focus-visible {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--hp-accent);
  box-shadow: 0 12px 48px var(--hp-card-glow), 0 0 0 1px var(--hp-accent);
}

.hp-card:focus-visible { outline: 2px solid var(--hp-accent); outline-offset: 2px; }

.hp-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}

.hp-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.1)  40%,
    rgba(0,0,0,0)    100%
  );
  pointer-events: none;
}

.hp-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hp-card:hover .hp-card__img { transform: scale(1.05); }

.hp-card__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hp-card__badges {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.hp-card__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.hp-card__badge--mode {
  background: var(--hp-accent-glow);
  color: var(--hp-accent);
  border: 1px solid var(--hp-accent);
}

.hp-card__badge--classic {
  background: rgba(39,174,96,0.15);
  color: #2ecc71;
  border: 1px solid rgba(39,174,96,0.4);
}

.hp-card__badge--adult {
  background: rgba(192,57,43,0.15);
  color: #e74c3c;
  border: 1px solid rgba(192,57,43,0.4);
}

.hp-card__badge--free {
  background: rgba(39,174,96,0.15);
  color: #2ecc71;
  border: 1px solid rgba(39,174,96,0.4);
}

.hp-card__badge--pro {
  background: rgba(212,168,67,0.15);
  color: var(--hp-accent);
  border: 1px solid rgba(212,168,67,0.4);
}

.hp-card__title {
  font-family: var(--hp-font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--hp-text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.hp-card__sub {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hp-accent);
  margin-bottom: 8px;
}

.hp-card__hint {
  font-size: 13px;
  color: var(--hp-text-muted);
  line-height: 1.5;
  flex: 1;
}

.hp-card__features {
  list-style: none;
  margin: 14px 0 4px;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-sm);
  overflow: hidden;
}

.hp-feat__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  font-size: 12px;
  gap: 8px;
}

.hp-feat__row:nth-child(odd) { background: rgba(255,255,255,0.03); }

.hp-feat__label {
  color: var(--hp-text-muted);
  flex: 1;
}

.hp-feat__val {
  font-weight: 600;
  color: var(--hp-text);
  flex-shrink: 0;
}

.hp-feat__val--yes { color: #2ecc71; }
.hp-feat__val--no  { color: #e74c3c; }

.hp-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--hp-accent-glow);
  border: 1px solid var(--hp-accent);
  border-radius: 8px;
  color: var(--hp-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.hp-card:hover .hp-card__cta {
  background: var(--hp-accent);
  color: #080810;
}
.hp-card__cta .material-symbols-rounded { font-size: 16px; }

/* Moonshine – single card gets a bigger hero treatment */
[data-tenant="moonshine"] .hp-card,
[data-tenant="jack-daniels"] .hp-card {
  max-width: 100%;
}
[data-tenant="moonshine"] .hp-card__img-wrap,
[data-tenant="jack-daniels"] .hp-card__img-wrap {
  aspect-ratio: 16/9;
}
[data-tenant="moonshine"] .hp-card__title,
[data-tenant="jack-daniels"] .hp-card__title {
  font-size: 24px;
}

/* ── Tenant Hero Overrides ───────────────────────────────── */
[data-tenant="moonshine"] .hp-hero__title {
  background: linear-gradient(135deg, #f0e0e6, var(--hp-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-tenant="jack-daniels"] .hp-hero__title {
  background: linear-gradient(135deg, #f0ece4, var(--hp-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Moonshine: no dice deco, use different atmosphere */

/* ── Buttons ─────────────────────────────────────────────── */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--hp-radius-sm);
  font-family: var(--hp-font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}
.hp-btn:active { transform: scale(0.97); }

.hp-btn--primary {
  background: var(--hp-accent);
  color: #080810;
  width: 100%;
}
.hp-btn--primary:hover { opacity: 0.9; }

.hp-btn--ghost {
  background: transparent;
  border: 1px solid var(--hp-border);
  color: var(--hp-text-muted);
  width: 100%;
  margin-top: 8px;
}
.hp-btn--ghost:hover { background: var(--hp-surface-h); color: var(--hp-text); }

/* ── Overlays ────────────────────────────────────────────── */
.hp-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hp-overlay__panel {
  background: var(--hp-bg2);
  border: 1px solid var(--hp-border-h);
  border-radius: var(--hp-radius);
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
}

.hp-overlay__close {
  position: absolute;
  top: 12px; right: 12px;
  background: transparent;
  border: none;
  color: var(--hp-text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
}
.hp-overlay__close:hover { color: var(--hp-text); }
.hp-overlay__close .material-symbols-rounded { font-size: 20px; }

/* Age Gate */
.hp-agegate__icon { font-size: 48px; margin-bottom: 16px; }
.hp-agegate__title {
  font-family: var(--hp-font-title);
  font-size: 22px;
  color: var(--hp-text);
  margin-bottom: 12px;
}
.hp-agegate__text {
  font-size: 14px;
  color: var(--hp-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Login / Auth Modal */
.hp-login__title {
  font-family: var(--hp-font-title);
  font-size: 22px;
  color: var(--hp-text);
  margin-bottom: 20px;
}
.hp-auth__error {
  background: rgba(220,50,50,0.15);
  border: 1px solid rgba(220,50,50,0.4);
  color: #ff6b6b;
  font-size: 13px;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  text-align: left;
}
.hp-form__field {
  text-align: left;
  margin-bottom: 14px;
}
.hp-form__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--hp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.hp-form__input {
  width: 100%;
  background: var(--hp-bg);
  border: 1px solid var(--hp-border-h);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--hp-text);
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.hp-form__input:focus { border-color: var(--hp-accent); }
.hp-auth__submit { width: 100%; margin-top: 6px; }
.hp-auth__toggle {
  margin-top: 18px;
  font-size: 13px;
  color: var(--hp-text-muted);
}
.hp-auth__toggle-btn {
  background: none;
  border: none;
  color: var(--hp-accent);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  margin-left: 4px;
  text-decoration: underline;
}

/* ── Footer ─────────────────────────────────────────────── */
/* ── How it works ────────────────────────────────────────── */
.hp-howto {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  text-align: center;
}

.hp-howto__title {
  font-family: var(--hp-font-title);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 600;
  color: #080810;
  margin-bottom: 48px;
  letter-spacing: 0.06em;
  display: inline-block;
  background: var(--hp-accent);
  padding: 10px 28px;
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(212,168,67,0.4);
}

.hp-howto__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.hp-howto__step {
  flex: 1;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: rgba(8,8,16,0.55);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(212,168,67,0.15), 0 8px 32px rgba(0,0,0,0.5);
}

.hp-howto__connector {
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--hp-accent), rgba(212,168,67,0.2));
  margin-top: 52px;
  align-self: flex-start;
}

.hp-howto__step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hp-accent-glow);
  border: 1px solid var(--hp-accent);
  color: var(--hp-accent);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-howto__step-icon {
  font-size: 32px;
  line-height: 1;
}

.hp-howto__step-title {
  font-family: var(--hp-font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--hp-text);
  margin: 0;
}

.hp-howto__step-desc {
  font-size: 12px;
  color: var(--hp-text-muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .hp-howto__steps {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hp-howto__step { max-width: 100%; width: 100%; }
  .hp-howto__connector {
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, var(--hp-accent), rgba(212,168,67,0.2));
    margin: 0;
    align-self: center;
  }
}

/* ── FAQ Accordion ───────────────────────────────────────── */
.hp-faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
  text-align: center;
}

.hp-faq__title {
  font-family: var(--hp-font-title);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 600;
  color: #080810;
  margin-bottom: 36px;
  letter-spacing: 0.06em;
  display: inline-block;
  background: var(--hp-accent);
  padding: 10px 28px;
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(212,168,67,0.4);
}

.hp-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.hp-faq__item {
  background: rgba(8,8,16,0.55);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hp-faq__item.is-open {
  border-color: rgba(212,168,67,0.4);
  box-shadow: 0 0 0 1px rgba(212,168,67,0.15), 0 8px 32px rgba(0,0,0,0.4);
}

.hp-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  color: var(--hp-text);
  font-family: var(--hp-font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.hp-faq__q:hover { color: var(--hp-accent); }
.hp-faq__item.is-open .hp-faq__q { color: var(--hp-accent); }

.hp-faq__chevron {
  font-size: 20px !important;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--hp-text-muted);
}
.hp-faq__item.is-open .hp-faq__chevron {
  transform: rotate(180deg);
  color: var(--hp-accent);
}

.hp-faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.hp-faq__item.is-open .hp-faq__a {
  grid-template-rows: 1fr;
}

.hp-faq__a-inner {
  overflow: hidden;
}

.hp-faq__a-inner p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--hp-text-muted);
  line-height: 1.7;
}

.hp-footer {
  border-top: 1px solid var(--hp-border);
  background: var(--hp-bg2);
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

.hp-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px 48px;
  align-items: start;
}

.hp-footer__logo {
  font-family: var(--hp-font-title);
  font-size: 16px;
  color: var(--hp-accent);
  display: block;
  margin-bottom: 8px;
}

.hp-footer__copy {
  font-size: 12px;
  color: var(--hp-text-muted);
}

.hp-footer__legal-btn {
  display: block;
  background: transparent;
  border: none;
  font-family: var(--hp-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-text-muted);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
  text-align: left;
}
.hp-footer__legal-btn:hover { color: var(--hp-text); }

/* Legal Modal (Impressum / Datenschutz) */
.hp-legal__panel {
  text-align: left;
  max-width: 480px;
}
.hp-legal__title {
  font-family: var(--hp-font-title);
  font-size: 20px;
  color: var(--hp-text);
  margin-bottom: 20px;
  padding-right: 28px;
}
.hp-legal__body {
  font-size: 13px;
  color: var(--hp-text-muted);
  line-height: 1.9;
}
.hp-legal__body strong { color: var(--hp-text); }
.hp-legal__body p + p { margin-top: 12px; }

.hp-footer__langs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hp-footer__langs button {
  background: transparent;
  border: 1px solid var(--hp-border);
  border-radius: 6px;
  color: var(--hp-text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.hp-footer__langs button:hover { background: var(--hp-surface-h); color: var(--hp-accent); border-color: var(--hp-accent); }
.hp-footer__langs button.is-active { color: var(--hp-accent); border-color: var(--hp-accent); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hp-nav { display: none; }
  .hp-hamburger { display: flex; }

  /* ── Card Slider ── */
  .hp-cards-section {
    padding: 0 0 60px;
    overflow: hidden;
  }

  .hp-cards {
    display: flex !important;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 24px 16px;
    /* hide scrollbar */
    scrollbar-width: none;
  }
  .hp-cards::-webkit-scrollbar { display: none; }

  .hp-card {
    flex: 0 0 78vw;
    max-width: 320px;
    scroll-snap-align: start;
  }

  .hp-card__title { font-size: 15px; }
  .hp-card__hint { display: none; }

  .hp-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hp-hero { padding: 40px 20px 32px; min-height: 260px; }
}

@media (max-width: 480px) {
  .hp-card { flex: 0 0 85vw; }
  .hp-hero__title { font-size: 32px; }
  .hp-hero__badge { font-size: 10px; }
}

@media (min-width: 769px) {
  body {
    background-image: url('../img/homepage_bg/game_of_dices.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }

  body[data-tenant="moonshine"] {
    background-image: url('../img/homepage_bg/moonshine.webp');
  }

  body::before {
    background:
      rgba(8,8,16,0.72),
      radial-gradient(ellipse 80% 50% at 50% -10%, var(--hp-accent-glow), transparent),
      radial-gradient(ellipse 60% 40% at 80% 80%, rgba(139,92,246,0.06), transparent);
  }

  .hp-card {
    background: rgba(8,8,16,0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
}
