/* ==========================================================================
   HappyReelsClub.com — Serene Architectural Misty-Slate Design System
   Pure CSS3 · Zero Third-Party Frameworks
   ========================================================================== */

:root {
  /* Palette */
  --sky-deep: #4A7487;
  --sky-mid: #527C8F;
  --sky-mist: #7FA0B0;
  --stone-canvas: #D7DBE0;
  --stone-soft: #E5E8EC;
  --stone-lighter: #EEF1F4;
  --glass-bg: rgba(255, 255, 255, 0.68);
  --glass-bg-strong: rgba(255, 255, 255, 0.84);
  --glass-nav: rgba(255, 255, 255, 0.24);
  --glass-border: rgba(255, 255, 255, 0.72);
  --surface-white: #F7F8FA;
  --ink-primary: #182026;
  --ink-secondary: #4D5862;
  --ink-muted: #7B8691;
  --taupe-base: #C4AFA1;
  --taupe-deep: #B59D8D;
  --taupe-soft: #D3C2B6;
  --dark-card: #1F2830;
  --accent-brass: #C69C6D;
  --accent-pino: #C65D3B;
  --success: #2F7D57;
  --danger: #B6423C;

  /* Radii & Shadows */
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-glass: 0 20px 50px rgba(24, 32, 38, 0.08);
  --shadow-card: 0 12px 30px rgba(24, 32, 38, 0.09);
  --shadow-float: 0 24px 55px rgba(24, 32, 38, 0.16);

  /* Layout */
  --container-max: 1180px;
  --gutter: 24px;
  --font-sans: 'Plus Jakarta Sans', 'Segoe UI Variable Display', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--stone-canvas);
  color: var(--ink-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--sky-deep);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Top 18+ Compliance Notice Bar
   ========================================================================== */
.compliance-bar {
  background: #182026;
  color: rgba(242, 245, 248, 0.88);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  padding: 8px 16px;
  text-align: center;
  position: relative;
  z-index: 60;
}

.compliance-bar__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  font-size: 0.7rem;
  color: #ffffff;
}

.compliance-bar a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #ffffff;
}

/* Voluntary Pause Banner (shown dynamically when pause active) */
.pause-banner {
  background: #2C3A44;
  color: #FFFFFF;
  font-size: 0.82rem;
  padding: 10px 16px;
  text-align: center;
  display: none;
}

.pause-banner.is-visible {
  display: block;
}

.pause-banner a {
  text-decoration: underline;
  font-weight: 600;
  margin-left: 8px;
}

/* ==========================================================================
   Site Header & Floating Frosted Pill Navigation
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 50;
  padding: 20px 0;
  transition: background-color 0.25s var(--ease);
}

.site-header--hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.site-header--subpage {
  background: linear-gradient(180deg, rgba(82, 124, 143, 0.92) 0%, rgba(82, 124, 143, 0.78) 100%);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-link--dark {
  color: var(--ink-primary);
}

.brand-emblem {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

/* Floating Frosted Pill Nav */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--glass-nav);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-pill__link {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.nav-pill__link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.nav-pill__link.is-active {
  background: #ffffff;
  color: var(--ink-primary);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(24, 32, 38, 0.12);
}

/* Auth Controls & Logged-in User HUD (NO inline styles — controlled in CSS!) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-auth[hidden],
.user-hud[hidden] {
  display: none;
}

.btn-nav-ghost {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: background-color 0.2s var(--ease);
  white-space: nowrap;
}

.btn-nav-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-nav-solid {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-primary);
  background: #ffffff;
  border: 1px solid #ffffff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

.btn-nav-solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(24, 32, 38, 0.18);
}

.user-hud {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-primary);
  font-size: 0.78rem;
  box-shadow: 0 6px 18px rgba(24, 32, 38, 0.14);
}

.user-hud__chips {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--sky-deep);
  white-space: nowrap;
}

.user-hud__name {
  font-weight: 500;
  color: var(--ink-secondary);
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-hud__plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sky-mid);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
}

.user-hud__logout {
  border: none;
  background: rgba(24, 32, 38, 0.08);
  color: var(--ink-primary);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

.user-hud__logout:hover {
  background: rgba(24, 32, 38, 0.16);
}

/* Mobile Burger Button */
.mobile-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  color: #ffffff;
  flex-shrink: 0;
}

/* Mobile Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 32, 38, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
  z-index: 90;
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 88vw);
  height: 100dvh;
  background: rgba(235, 239, 243, 0.96);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  padding: 22px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(102%);
  transition: transform 0.3s var(--ease);
  z-index: 100;
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(24, 32, 38, 0.1);
}

.mobile-drawer__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(24, 32, 38, 0.14);
  background: #ffffff;
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer__link {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-primary);
  transition: background-color 0.2s var(--ease);
}

.mobile-drawer__link:hover,
.mobile-drawer__link.is-active {
  background: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(24, 32, 38, 0.06);
}

.mobile-drawer__account {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(24, 32, 38, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer__hud {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer__hud[hidden],
.mobile-drawer__auth[hidden] {
  display: none;
}

.mobile-drawer__auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   Buttons & Shared Utilities
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  background: var(--ink-primary);
  color: #ffffff;
  border: 1px solid var(--ink-primary);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-primary:hover {
  background: #28343E;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(24, 32, 38, 0.18);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-primary);
  border: 1px solid rgba(24, 32, 38, 0.14);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn-secondary:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.section-heading {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink-primary);
}

.section-heading--center {
  text-align: center;
}

/* ==========================================================================
   Graceful Image / Media Placeholder System (Zero Broken Icons)
   ========================================================================== */
.media-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #62899C 0%, #8FA9B7 52%, #C8CFD7 100%);
}

.media-frame--dark {
  background: linear-gradient(155deg, #2B3640 0%, #182026 100%);
}

.media-frame--warm {
  background: linear-gradient(145deg, #BFA99A 0%, #D9CEC5 60%, #E7E2DD 100%);
}

.media-frame--light {
  background: linear-gradient(145deg, #C7D3DC 0%, #DCE2E8 55%, #EFF2F5 100%);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s var(--ease), transform 0.55s var(--ease);
}

.media-frame.is-placeholder img {
  opacity: 0;
}

.media-frame.is-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.28), transparent 46%),
    radial-gradient(circle at 82% 76%, rgba(24, 32, 38, 0.16), transparent 52%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 14px
    );
  pointer-events: none;
}

.media-frame.is-placeholder::after {
  content: attr(data-placeholder-label);
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(24, 32, 38, 0.28);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  pointer-events: none;
}

.media-frame--light.is-placeholder::after {
  color: rgba(24, 32, 38, 0.65);
  background: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Homepage Section 1: Full-Bleed Scenic Hero (design3.webp)
   ========================================================================== */
.hero-wrap {
  position: relative;
  min-height: 760px;
  background: linear-gradient(180deg, #4B7487 0%, #567F92 38%, #85A2B0 74%, #D7DBE0 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(71, 113, 132, 0.72) 0%,
      rgba(82, 124, 143, 0.34) 42%,
      rgba(24, 32, 38, 0.14) 76%,
      rgba(215, 219, 224, 0.92) 100%);
}

/* Decorative alpine silhouette when image file not yet placed */
.hero-bg.is-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 45% at 50% 18%, rgba(255, 255, 255, 0.14), transparent 70%),
    linear-gradient(180deg, #4B7487 0%, #5B8497 44%, #7A9AA8 72%, #B5C1CA 92%, #D7DBE0 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 132px 0 210px;
  text-align: center;
  color: #ffffff;
}

.hero-headline {
  margin: 0 auto;
  max-width: 960px;
  font-size: clamp(2.35rem, 6.2vw, 4.95rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 8px 34px rgba(24, 32, 38, 0.14);
}

.hero-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.2vw, 26px);
  flex-wrap: wrap;
}

.hero-motif-pill {
  display: inline-flex;
  align-items: center;
  width: clamp(104px, 16vw, 220px);
  height: clamp(32px, 4.6vw, 56px);
  opacity: 0.72;
  flex-shrink: 0;
}

.hero-motif-hatch {
  display: inline-flex;
  align-items: center;
  width: clamp(92px, 13vw, 178px);
  height: clamp(28px, 4vw, 48px);
  opacity: 0.72;
  flex-shrink: 0;
}

.hero-sub {
  margin: 24px auto 0;
  max-width: 560px;
  font-size: 0.98rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Homepage Section 2: Overlapping Frosted-Glass Bento Grid (design3.webp)
   ========================================================================== */
.bento-section {
  position: relative;
  z-index: 20;
  margin-top: -150px;
  padding-bottom: 92px;
}

.bento-shell {
  background: rgba(236, 240, 244, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-glass);
  display: grid;
  gap: 18px;
}

.bento-row-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.bento-intro {
  padding: 18px 20px 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.bento-intro__title {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.05rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink-primary);
}

.bento-intro__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  max-width: 340px;
}

.bento-card-light {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 256px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.bento-card-light:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.bento-card-light__title {
  margin: 0;
  font-size: 1.48rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--ink-primary);
}

.bento-card-light__desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.bento-row-bottom {
  display: grid;
  grid-template-columns: 2.08fr 1fr;
  gap: 18px;
}

.bento-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 278px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
}

.bento-visual-card__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bento-visual-card--light .bento-visual-card__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(232, 236, 240, 0.86) 0%, rgba(232, 236, 240, 0.42) 48%, rgba(232, 236, 240, 0.08) 100%);
}

.bento-visual-card--dark .bento-visual-card__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 32, 38, 0.54) 0%, rgba(24, 32, 38, 0.34) 45%, rgba(24, 32, 38, 0.78) 100%);
}

.bento-visual-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.bento-visual-card__title {
  margin: 0;
  font-size: 1.52rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.18;
  max-width: 240px;
}

.bento-visual-card__desc {
  margin: 0;
  font-size: 0.85rem;
  max-width: 280px;
  line-height: 1.5;
}

.bento-visual-card--light {
  color: var(--ink-primary);
}

.bento-visual-card--light .bento-visual-card__desc {
  color: var(--ink-secondary);
}

.bento-visual-card--dark {
  color: #ffffff;
}

.bento-visual-card--dark .bento-visual-card__desc {
  color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================================
   Homepage Section 3: Interactive Vertical-List Game Switcher (design3.webp)
   ========================================================================== */
.projects-section {
  padding: 20px 0 104px;
}

.projects-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  align-items: start;
}

.projects-list {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(24, 32, 38, 0.14);
}

.project-item {
  position: relative;
  text-align: left;
  background: transparent;
  border: none;
  padding: 15px 14px 15px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: opacity 0.2s var(--ease);
}

.project-item::before {
  content: "";
  position: absolute;
  left: -1.5px;
  top: 12px;
  bottom: 12px;
  width: 2.5px;
  background: var(--ink-primary);
  border-radius: 2px;
  transform: scaleY(0);
  transition: transform 0.28s var(--ease);
}

.project-item__name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}

.project-item__sub {
  font-size: 0.78rem;
  color: #939DA7;
  transition: color 0.2s var(--ease);
}

.project-item:hover .project-item__name {
  color: var(--ink-secondary);
}

.project-item.is-active::before {
  transform: scaleY(1);
}

.project-item.is-active .project-item__name {
  color: var(--ink-primary);
  font-weight: 600;
}

.project-item.is-active .project-item__sub {
  color: var(--ink-secondary);
}

/* Right Preview Stage */
.project-stage {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 500px;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}

.project-stage__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-stage__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 32, 38, 0.08) 0%, rgba(24, 32, 38, 0.12) 55%, rgba(24, 32, 38, 0.74) 100%);
}

.project-stage__card {
  position: relative;
  z-index: 3;
  max-width: 310px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 30px rgba(24, 32, 38, 0.12);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

.project-stage.is-switching .project-stage__card {
  opacity: 0.4;
  transform: translateY(6px);
}

.project-stage__title {
  margin: 0 0 10px;
  font-size: 1.48rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.project-stage__desc {
  margin: 0 0 18px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.project-stage__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-primary);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink-primary);
}

.project-stage__meta {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 20px;
  color: #ffffff;
}

.project-meta-item__label {
  display: block;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 4px;
}

.project-meta-item__value {
  font-size: clamp(1.05rem, 2vw, 1.48rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* ==========================================================================
   Homepage Section 4: Fanned Tilted Portrait Testimonials (design3 part2.webp)
   ========================================================================== */
.voices-section {
  padding: 20px 0 106px;
  overflow: hidden;
}

.voices-fan {
  margin-top: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 0 34px;
}

.voice-card {
  position: relative;
  width: 178px;
  height: 224px;
  border-radius: 20px;
  border: none;
  padding: 0;
  background: transparent;
  overflow: visible;
  flex-shrink: 0;
  transition: transform 0.42s var(--ease), width 0.42s var(--ease), height 0.42s var(--ease), opacity 0.35s var(--ease);
}

.voice-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(24, 32, 38, 0.14);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border: 3px solid transparent;
}

.voice-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(24, 32, 38, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 12px 24px;
  text-align: center;
  color: #ffffff;
}

.voice-card__name {
  font-size: 0.92rem;
  font-weight: 600;
}

.voice-card__city {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
}

.voice-card__quote-badge {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%) scale(0);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink-primary);
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(24, 32, 38, 0.16);
  transition: transform 0.35s var(--ease);
  z-index: 4;
}

/* Fanned Slot Transforms */
.voice-card[data-slot="-2"] {
  transform: rotate(-11deg) translateY(20px) scale(0.88);
  opacity: 0.72;
}

.voice-card[data-slot="-1"] {
  transform: rotate(-6deg) translateY(8px) scale(0.94);
  opacity: 0.88;
}

.voice-card[data-slot="0"] {
  width: 236px;
  height: 294px;
  transform: rotate(0deg) translateY(-8px) scale(1);
  opacity: 1;
  z-index: 5;
}

.voice-card[data-slot="0"] .voice-card__inner {
  border: 5px solid #ffffff;
  box-shadow: 0 24px 54px rgba(82, 124, 143, 0.28);
}

.voice-card[data-slot="0"] .voice-card__overlay {
  opacity: 1;
}

.voice-card[data-slot="0"] .voice-card__quote-badge {
  transform: translateX(-50%) scale(1);
}

.voice-card[data-slot="1"] {
  transform: rotate(6deg) translateY(8px) scale(0.94);
  opacity: 0.88;
}

.voice-card[data-slot="2"] {
  transform: rotate(11deg) translateY(20px) scale(0.88);
  opacity: 0.72;
}

.voice-card:hover:not([data-slot="0"]) {
  opacity: 1;
}

.voices-copy {
  max-width: 590px;
  margin: 18px auto 0;
  text-align: center;
}

.voices-copy__headline {
  margin: 0 0 12px;
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
}

.voices-copy__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.voices-dots {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.voices-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(24, 32, 38, 0.22);
  transition: width 0.25s var(--ease), background-color 0.25s var(--ease);
}

.voices-dot.is-active {
  width: 24px;
  border-radius: var(--radius-pill);
  background: var(--ink-primary);
}

/* ==========================================================================
   Homepage Section 5: Warm Taupe Showcase Block (design3 part2.webp)
   ========================================================================== */
.taupe-section {
  padding: 0 0 104px;
}

.taupe-card {
  background: linear-gradient(135deg, #C7B2A4 0%, #BCA595 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  min-height: 470px;
  box-shadow: var(--shadow-glass);
}

.taupe-card__left {
  padding: 52px 24px 52px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.taupe-card__title {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink-primary);
}

.taupe-menu {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(24, 32, 38, 0.2);
}

.taupe-menu__btn {
  position: relative;
  text-align: left;
  background: transparent;
  border: none;
  padding: 10px 12px 10px 20px;
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(24, 32, 38, 0.56);
  transition: color 0.2s var(--ease);
}

.taupe-menu__btn::before {
  content: "";
  position: absolute;
  left: -1.5px;
  top: 7px;
  bottom: 7px;
  width: 2.5px;
  background: var(--ink-primary);
  transform: scaleY(0);
  transition: transform 0.25s var(--ease);
}

.taupe-menu__btn.is-active {
  color: var(--ink-primary);
  font-weight: 600;
}

.taupe-menu__btn.is-active::before {
  transform: scaleY(1);
}

.taupe-active-info {
  max-width: 340px;
}

.taupe-active-info p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: rgba(24, 32, 38, 0.78);
}

.taupe-active-info a {
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px solid var(--ink-primary);
  padding-bottom: 2px;
}

/* Right Stacked Rounded Previews */
.taupe-card__right {
  padding: 0 28px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.taupe-preview {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.taupe-preview--top {
  height: 92px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  opacity: 0.88;
}

.taupe-preview--main {
  height: 248px;
  box-shadow: 0 18px 36px rgba(24, 32, 38, 0.16);
}

.taupe-preview--bottom {
  height: 92px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  opacity: 0.88;
}

.taupe-preview__tag {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   Homepage Section 6: Editorial Card Stack (design3 part2.webp)
   ========================================================================== */
.editorial-section {
  padding: 0 0 104px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.editorial-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.editorial-desc {
  margin: 0;
  max-width: 390px;
  font-size: 0.94rem;
  color: var(--ink-secondary);
}

.editorial-controls {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.circle-arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-primary);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(24, 32, 38, 0.1);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.circle-arrow-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.editorial-counter {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-left: 6px;
}

/* Layered Card Stack */
.story-stack {
  position: relative;
  height: 440px;
  max-width: 430px;
  width: 100%;
  margin-inline: auto;
}

.story-card {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  border: 5px solid #ffffff;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(24, 32, 38, 0.16);
  transition: transform 0.42s var(--ease), opacity 0.35s var(--ease), z-index 0s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}

.story-card__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.story-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 32, 38, 0.08) 0%, rgba(24, 32, 38, 0.32) 52%, rgba(24, 32, 38, 0.84) 100%);
}

.story-card__content {
  position: relative;
  z-index: 3;
  color: #ffffff;
}

.story-card__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.story-tag {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-primary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.story-card__title {
  margin: 0 0 8px;
  font-size: 1.52rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.story-card__excerpt {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.story-card[data-order="0"] {
  z-index: 3;
  transform: translateX(0) scale(1);
  opacity: 1;
}

.story-card[data-order="1"] {
  z-index: 2;
  transform: translateX(22px) scale(0.93);
  opacity: 0.75;
}

.story-card[data-order="2"] {
  z-index: 1;
  transform: translateX(40px) scale(0.86);
  opacity: 0.45;
}

/* ==========================================================================
   Homepage Section 7: Light Glass CTA Banner (design3 part2.webp)
   ========================================================================== */
.cta-section {
  padding: 0 0 86px;
}

.cta-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 52px 28px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-glass);
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cta-banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(242, 245, 248, 0.9) 0%, rgba(242, 245, 248, 0.82) 55%, rgba(235, 240, 244, 0.56) 100%);
}

.cta-banner__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.cta-banner__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
}

.cta-banner__text {
  margin: 0 auto 24px;
  max-width: 490px;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.cta-banner__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Clean Minimalist Stone-Grey Footer (design3 part2.webp)
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(24, 32, 38, 0.1);
  background: #CFD4DA;
  padding: 54px 0 34px;
  color: var(--ink-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(24, 32, 38, 0.1);
}

.footer-brand p {
  margin: 12px 0 14px;
  font-size: 0.86rem;
  max-width: 300px;
  line-height: 1.55;
}

.footer-email {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.footer-col__title {
  margin: 0 0 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.84rem;
}

.footer-links a:hover,
.footer-cookie-btn:hover {
  color: var(--ink-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-cookie-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.84rem;
  color: inherit;
  text-align: left;
}

.footer-disclaimer {
  margin: 24px 0 20px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(24, 32, 38, 0.16);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-primary);
}

/* ==========================================================================
   Subpage Hero, Breadcrumbs & Reusable Glass Surfaces
   ========================================================================== */
.page-hero {
  background: linear-gradient(180deg, #527C8F 0%, #7C9DAC 60%, #D7DBE0 100%);
  padding: 48px 0 72px;
  color: #ffffff;
}

.page-hero--compact {
  padding: 36px 0 46px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.page-hero__title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-hero__sub {
  margin: 0;
  max-width: 640px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.9);
}

.page-body {
  padding: 20px 0 88px;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-glass);
}

.glass-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Games Catalog Page (/games)
   ========================================================================== */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  border: 1px solid rgba(24, 32, 38, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-secondary);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

.filter-pill:hover {
  background: #ffffff;
  color: var(--ink-primary);
}

.filter-pill.is-active {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #ffffff;
}

.catalog-search {
  position: relative;
  min-width: 240px;
  flex: 0 1 300px;
}

.catalog-search input {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(24, 32, 38, 0.16);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.game-card__media {
  height: 205px;
  position: relative;
}

.game-card__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.game-card__fav.is-fav {
  color: var(--accent-pino);
  transform: scale(1.06);
}

.game-card__cat {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  background: rgba(24, 32, 38, 0.72);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}

.game-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.game-card__title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.game-card__desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  flex: 1;
}

.game-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(24, 32, 38, 0.08);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  color: var(--ink-secondary);
}

/* ==========================================================================
   Empty Game Stage Page (/games/<slug>)
   ========================================================================== */
.game-stage-wrapper {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-glass);
}

.game-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.game-stage-empty {
  width: 100%;
  min-height: 520px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #E8ECEF 0%, #DFE4E9 100%);
  border: 1.5px dashed rgba(24, 32, 38, 0.22);
}

/* ==========================================================================
   Chip Packs, About Us, Responsible Gaming, Contact, Auth & Legal
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.daily-bonus-card {
  background: linear-gradient(135deg, #527C8F 0%, #3E6476 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  box-shadow: var(--shadow-float);
}

.daily-bonus-card h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
}

.daily-bonus-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  max-width: 540px;
  font-size: 0.92rem;
}

.pack-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.pack-card--featured {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(235, 241, 245, 0.92) 100%);
  border: 2px solid var(--sky-mid);
}

.pack-badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(82, 124, 143, 0.14);
  color: var(--sky-deep);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pack-amount {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}

.pack-price {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--sky-deep);
}

.pack-list {
  list-style: none;
  margin: 4px 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-secondary);
}

.pack-list li::before {
  content: "✓ ";
  color: var(--sky-deep);
  font-weight: 700;
}

/* Forms */
.form-stack {
  display: grid;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(24, 32, 38, 0.18);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.form-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  display: none;
}

.form-msg.is-visible {
  display: block;
}

.form-msg--error {
  background: rgba(182, 66, 60, 0.12);
  border: 1px solid rgba(182, 66, 60, 0.3);
  color: #842823;
}

.form-msg--success {
  background: rgba(47, 125, 87, 0.12);
  border: 1px solid rgba(47, 125, 87, 0.3);
  color: #1F5B3D;
}

/* Auth Layout */
.auth-shell {
  max-width: 480px;
  margin-inline: auto;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(24, 32, 38, 0.14);
}

/* Legal Typography */
.legal-prose {
  display: grid;
  gap: 18px;
}

.legal-prose h2 {
  margin: 10px 0 4px;
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.legal-prose p,
.legal-prose li {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.7;
}

.legal-prose ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

/* Helpline Cards */
.helpline-card {
  background: rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.92);
}

.helpline-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.helpline-card p {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--ink-secondary);
}

.helpline-phone {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--sky-deep);
}

/* ==========================================================================
   Modals (Age Gate, Cookie Settings, Checkout) & Cookie Banner
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 34, 0.66);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 480px;
  background: #F4F6F8;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: 0 28px 64px rgba(15, 22, 28, 0.32);
  position: relative;
}

.modal-dialog__title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.modal-dialog__text {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(24, 32, 38, 0.14);
  background: #ffffff;
  color: var(--ink-primary);
  font-size: 1.1rem;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 920px;
  margin-inline: auto;
  background: rgba(24, 32, 38, 0.94);
  backdrop-filter: blur(14px);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 18px 46px rgba(15, 22, 28, 0.34);
  z-index: 150;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid rgba(24, 32, 38, 0.1);
  margin-bottom: 12px;
}

/* ==========================================================================
   Responsive Breakpoints (<= 1080px Mobile Nav, Zero Overflow on 390px)
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-pill,
  .header-actions {
    display: none;
  }

  .mobile-burger {
    display: inline-flex;
  }

  .bento-row-top {
    grid-template-columns: 1fr 1fr;
  }

  .bento-intro {
    grid-column: 1 / -1;
    padding: 10px 6px 4px;
  }

  .bento-row-bottom {
    grid-template-columns: 1.35fr 1fr;
  }

  .projects-grid {
    grid-template-columns: 230px 1fr;
    gap: 24px;
  }

  .taupe-card {
    grid-template-columns: 1fr;
  }

  .taupe-card__left {
    padding: 38px 28px 10px;
  }

  .taupe-card__right {
    padding: 0 24px 24px;
  }

  .taupe-preview--top,
  .taupe-preview--bottom {
    display: none;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-list {
    flex-direction: row;
    overflow-x: auto;
    border-left: none;
    border-bottom: 1px solid rgba(24, 32, 38, 0.14);
    padding-bottom: 6px;
    gap: 6px;
    scrollbar-width: none;
  }

  .projects-list::-webkit-scrollbar {
    display: none;
  }

  .project-item {
    flex-shrink: 0;
    padding: 10px 14px;
  }

  .project-item::before {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: -7px;
    width: auto;
    height: 2.5px;
    transform: scaleX(0);
  }

  .project-item.is-active::before {
    transform: scaleX(1);
  }

  .editorial-grid,
  .footer-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .voice-card[data-slot="-2"],
  .voice-card[data-slot="2"] {
    display: none;
  }

  .story-stack {
    max-width: 340px;
    height: 410px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }

  .hero-wrap {
    min-height: 620px;
  }

  .hero-content {
    padding: 108px 0 170px;
  }

  .bento-section {
    margin-top: -120px;
    padding-bottom: 64px;
  }

  .bento-shell {
    padding: 16px;
    border-radius: 22px;
  }

  .bento-row-top,
  .bento-row-bottom,
  .games-grid {
    grid-template-columns: 1fr;
  }

  .bento-card-light {
    min-height: 185px;
  }

  .bento-visual-card {
    min-height: 230px;
  }

  .project-stage {
    min-height: 450px;
    padding: 18px;
  }

  .project-stage__meta {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .voices-fan {
    gap: 10px;
  }

  .voice-card[data-slot="-1"],
  .voice-card[data-slot="1"] {
    width: 108px;
    height: 158px;
  }

  .voice-card[data-slot="0"] {
    width: 196px;
    height: 248px;
  }

  .story-stack {
    max-width: 100%;
    height: 390px;
  }

  .story-card[data-order="1"] {
    transform: translateX(10px) scale(0.95);
  }

  .story-card[data-order="2"] {
    transform: translateX(18px) scale(0.9);
  }

  .glass-panel {
    padding: 20px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
