/* Elite Board Games — premium dark storefront (mobile-first) */
:root {
  --bg-deep: #0a0b0d;
  --bg-elevated: #12141a;
  --bg-card: #161922;
  --bg-card-hover: #1c202c;
  --border: rgba(212, 175, 106, 0.22);
  --border-strong: rgba(212, 175, 106, 0.45);
  --gold: #d4af6a;
  --gold-soft: rgba(212, 175, 106, 0.12);
  --gold-glow: rgba(212, 175, 106, 0.35);
  --text: #f3f4f8;
  --text-muted: #a7adbd;
  --text-faint: #6b7285;
  --danger: #c45c5c;
  --success: #6fcf97;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(
      1200px 600px at 10% -10%,
      rgba(212, 175, 106, 0.08),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 100% 0%,
      rgba(120, 140, 255, 0.05),
      transparent 50%
    ),
    var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
}

#main,
main#main {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #e8c984;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--gold);
  color: #111;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 10000;
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(1180px, 100% - 3rem);
  }
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 99990;
  /* No backdrop-filter: it makes fixed descendants use the header box as containing block,
     so the mobile drawer (inside header) is clipped to ~72px and appears “missing”. */
  background: rgba(10, 11, 13, 0.94);
  background-clip: padding-box;
  box-shadow: inset 0 -1px 0 rgba(212, 175, 106, 0.22);
  overflow: visible;
  transition:
    box-shadow 0.35s var(--ease),
    background 0.35s;
}

.site-header.is-scrolled {
  box-shadow:
    var(--shadow-soft),
    inset 0 -1px 0 rgba(212, 175, 106, 0.18);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 0;
  flex-shrink: 1;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), #8a6a3a);
  display: grid;
  place-items: center;
  color: #111;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 8px 24px var(--gold-glow);
}

.brand-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
  box-shadow: 0 10px 28px var(--gold-glow);
  flex-shrink: 0;
}

.brand-text {
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(13rem, 46vw);
}

.header-tools-desktop {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 1024px) {
  .header-tools-desktop {
    display: flex;
  }
}

.nav-mobile-panel {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.nav-mobile-phone {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.nav-mobile-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

@media (min-width: 1024px) {
  .nav-mobile-panel {
    display: none !important;
  }
}

.nav-toggle {
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 106, 0.55);
  background: linear-gradient(165deg, #1e222c 0%, #12151c 100%);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.25s,
    transform 0.25s var(--ease),
    box-shadow 0.25s;
  position: relative;
  /* Above .main-nav drawer (100020) so the close control stays tappable */
  z-index: 100030;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 6px 18px rgba(0, 0, 0, 0.35);
}

.nav-toggle:hover {
  border-color: var(--border-strong);
}

.nav-toggle-svg {
  grid-area: 1 / 1;
  color: #f3e9d2;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.5));
}

.nav-toggle-svg--close {
  display: none;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-svg--menu {
  display: none;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-svg--close {
  display: block;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

/* Dim page behind drawer (below header chrome, above main content) */
.nav-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99985;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

body.ebg-nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .nav-backdrop {
    display: none !important;
  }
}

.main-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: auto;
  width: min(100vw - 0.5rem, 420px);
  max-width: 100%;
  z-index: 100020;
  background: rgba(8, 9, 12, 0.98);
  padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
  border-left: 1px solid rgba(212, 175, 106, 0.28);
  box-shadow: -24px 0 48px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  pointer-events: none;
  -webkit-overflow-scrolling: touch;
}

.main-nav.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .main-nav {
    position: static;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    max-width: none;
    z-index: auto;
    transform: none;
    background: transparent;
    padding: 0;
    border: 0;
    overflow: visible;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
    pointer-events: auto;
  }
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-list {
    flex-direction: row;
    gap: 0.35rem;
  }
}

.nav-list a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition:
    background 0.2s,
    color 0.2s;
}

.nav-list a:hover,
.nav-list a[aria-current='page'] {
  color: var(--text);
  background: var(--gold-soft);
}

@media (min-width: 1024px) {
  .nav-list a {
    padding: 0.48rem 0.9rem;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 1024px) {
  .header-tools {
    gap: 0.5rem;
  }
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.2s var(--ease),
    background 0.2s;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.header-contact {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

@media (min-width: 1024px) {
  .header-contact {
    display: flex;
  }
}

.header-contact a.phone {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header-contact .btn-ghost {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
}

.search-pop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: start center;
  padding-top: calc(var(--header-h) + 1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  /* Below site chrome so the closed overlay never sits above the mobile drawer */
  z-index: 99850;
}

.search-pop.is-open {
  opacity: 1;
  pointer-events: auto;
  z-index: 110000;
}

.search-panel {
  width: min(520px, 100% - 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow);
  transform: translateY(-8px);
  transition: transform 0.35s var(--ease);
}

.search-pop.is-open .search-panel {
  transform: translateY(0);
}

.search-panel label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.search-panel input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.search-results {
  margin-top: 0.75rem;
  max-height: 280px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.search-results a {
  display: block;
  padding: 0.6rem 0.25rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}

.search-results a:hover {
  background: var(--gold-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.25s,
    background 0.2s,
    border-color 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #e8c984, var(--gold));
  color: #151515;
  box-shadow: 0 12px 32px var(--gold-glow);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(212, 175, 106, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--gold-soft);
}

.btn-ghost {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* Sections */
main > section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.35rem;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0.75rem 0 0;
}

/* Hero */
.hero {
  padding-top: calc(var(--header-h) + clamp(2.75rem, 9vw, 5.5rem));
  padding-bottom: clamp(3rem, 10vw, 6rem);
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.hero .container {
  padding-left: max(1.15rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.15rem, env(safe-area-inset-right, 0px));
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      rgba(10, 11, 13, 0.92) 0%,
      rgba(10, 11, 13, 0.55) 45%,
      rgba(10, 11, 13, 0.88) 100%
    ),
    url('https://images.unsplash.com/photo-1611996575749-78a7a8159d85?auto=format&fit=crop&w=2000&q=80')
      center/cover no-repeat;
  z-index: -1;
  transform: scale(1.02);
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
}

.hero-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(18, 20, 26, 0.75);
  backdrop-filter: blur(12px);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  animation: floatIn 0.9s var(--ease) both;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Cards grid */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.25s,
    transform 0.35s var(--ease),
    box-shadow 0.35s;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.product-card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-card-media img {
  transform: scale(1.04);
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(10, 11, 13, 0.85);
  border: 1px solid var(--border);
  color: var(--gold);
}

.badge--danger {
  border-color: rgba(196, 92, 92, 0.55);
  color: #ffb4b4;
}

.badge--wood {
  color: #deb887;
}

.product-card-body {
  padding: 1.1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.product-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.product-card-title a {
  color: inherit;
  text-decoration: none;
}

.product-card-title a:hover {
  color: var(--gold);
}

.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
}

.stock {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stock--ok {
  color: var(--success);
}

.stock--order {
  color: #9ab7ff;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.btn-sm {
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 12px;
}

/* Feature / split */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

/* About — showroom imagery (board-game themed) */
.about-showcase-grid.card-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .about-showcase-grid.card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .about-showcase-grid.card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.about-showcase-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.about-showcase-fig img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: #0b0d11;
}

.about-showcase-fig figcaption {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.about-visit-map-wrap {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.about-visit-map-wrap .about-visit-map {
  flex: 1;
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: var(--radius-md);
}

@media (min-width: 880px) {
  .about-visit-split {
    align-items: stretch;
  }

  .about-visit-map-wrap .about-visit-map {
    height: 100%;
    min-height: 320px;
  }
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.feature-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Blog cards */
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s var(--ease),
    border-color 0.2s;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.blog-card img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.blog-card-body {
  padding: 1.1rem 1.2rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 0.35rem;
}

.blog-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.blog-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

/* Reviews carousel */
.reviews {
  background: linear-gradient(
    180deg,
    rgba(22, 25, 34, 0.55),
    rgba(10, 11, 13, 0.2)
  );
  border-block: 1px solid var(--border);
}

.reviews .section-head {
  margin-bottom: 1.5rem;
}

.carousel-shell {
  max-width: 920px;
  margin-inline: auto;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 106, 0.28);
  background: linear-gradient(165deg, #171a22, #101218);
  box-shadow: var(--shadow-soft);
}

.carousel-track {
  display: flex;
  transition: transform 0.55s var(--ease);
}

.review-slide {
  min-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.review-slide__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: min(52vw, 320px);
  background: #0b0d11;
}

@media (min-width: 720px) {
  .review-slide__media {
    max-height: none;
    min-height: 240px;
  }

  .review-slide {
    flex-direction: row;
    align-items: stretch;
    min-height: 260px;
  }

  .review-slide__media {
    flex: 0 0 min(42%, 320px);
    aspect-ratio: auto;
    min-height: 100%;
  }
}

.review-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-slide__quote {
  margin: 0;
  padding: 1.35rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--border);
}

@media (min-width: 720px) {
  .review-slide__quote {
    border-top: 0;
    border-left: 1px solid var(--border);
    padding: 1.75rem 1.75rem 1.85rem 2rem;
  }
}

.review-slide__quote p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.55;
}

.review-slide__quote footer {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (max-width: 719px) {
  .carousel-nav {
    justify-content: center;
  }
}

/* Info / legal blocks */
.info-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--bg-card);
}

.info-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1rem;
}

label span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem 2rem;
  background: #07080a;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  max-width: 40ch;
  font-size: 0.95rem;
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.social-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.social-row a {
  word-break: break-all;
}

.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.25rem;
}

.pay-row svg {
  height: 28px;
  width: auto;
  opacity: 0.85;
}

.pay-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 106, 0.45);
  background: rgba(18, 20, 26, 0.95);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  left: auto;
  max-width: min(420px, calc(100% - 2.5rem));
  margin-left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  z-index: 8600;
  transform: translateY(120%);
  opacity: 0;
  transition:
    transform 0.45s var(--ease),
    opacity 0.35s;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8500;
  padding: 1rem;
  background: rgba(12, 14, 18, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

/* Mobile drawer open: nothing may steal taps from the nav layer */
body.ebg-nav-open .cookie-banner,
body.ebg-nav-open .ai-launcher,
body.ebg-nav-open .ai-panel {
  pointer-events: none;
}

.cookie-inner {
  width: min(1180px, 100% - 0rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  color: var(--text-muted);
  max-width: 70ch;
  font-size: 0.9rem;
}

/* AI Curator */
.ai-launcher {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 8300;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, #1e2230, #12141a);
  color: var(--gold);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease);
}

.ai-launcher:hover {
  transform: scale(1.05);
}

.ai-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  width: min(380px, calc(100% - 2.5rem));
  max-height: min(520px, 70vh);
  z-index: 8310;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transition:
    opacity 0.25s,
    transform 0.35s var(--ease);
}

.ai-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-panel header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.ai-panel header h2 {
  margin: 0;
  font-size: 1rem;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.ai-bubble {
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  max-width: 92%;
  line-height: 1.45;
}

.ai-bubble--bot {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.ai-bubble--user {
  align-self: flex-end;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.ai-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.ai-input-row input {
  flex: 1;
}

/* Catalog layout */
.catalog-page {
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 2rem;
  padding-left: max(1.15rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.15rem, env(safe-area-inset-right, 0px));
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.catalog-page > .container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.catalog-page .catalog-layout {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  width: 100%;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 1024px) {
  .catalog-page .catalog-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  }
}

.catalog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.catalog-filters-btn {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  font-weight: 600;
}

.catalog-filters-chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.2rem;
  opacity: 0.85;
  transition: transform 0.25s var(--ease);
}

.catalog-filters-btn[aria-expanded='true'] .catalog-filters-chevron {
  transform: rotate(225deg);
  margin-top: 0.1rem;
}

@media (max-width: 1023px) {
  .catalog-filters-btn {
    display: flex;
  }

  .catalog-page .filters:not(.is-expanded) {
    display: none;
  }

  .catalog-page .filters.is-expanded {
    display: block;
  }
}

.filters {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 0.9rem 0.85rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

@media (max-width: 1023px) {
  .catalog-page .filters {
    position: static;
  }
}

.catalog-page .catalog-main,
.catalog-page .card-grid {
  min-width: 0;
}

.filter-block {
  margin-bottom: 0.95rem;
}

.filter-block:last-child {
  margin-bottom: 0;
}

.filter-block h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cat-chips label {
  cursor: pointer;
}

.cat-chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cat-chips span {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.cat-chips input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.cat-chips input:checked + span {
  background: var(--gold-soft);
  border-color: var(--border-strong);
  color: var(--text);
}

.range-row {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 480px) {
  .catalog-page .range-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.75rem;
  }
}

/* Product detail */
.product-hero {
  padding-top: calc(var(--header-h) + 1.5rem);
}

.product-gallery {
  display: grid;
  gap: 0.65rem;
}

.product-gallery .main-shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1;
}

.product-gallery .main-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
}

.thumbs button {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  opacity: 0.75;
  transition:
    opacity 0.2s,
    border-color 0.2s;
}

.thumbs button.is-active,
.thumbs button:hover {
  opacity: 1;
  border-color: var(--border-strong);
}

.thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.prose {
  color: var(--text-muted);
}

.prose h2 {
  color: var(--text);
  font-size: 1.15rem;
  margin-top: 1.75rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

/* Blog filters */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag-filters button {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.tag-filters button.is-active,
.tag-filters button:hover {
  background: var(--gold-soft);
  border-color: var(--border-strong);
  color: var(--text);
}

.blog-article-page .share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Page hero small */
.page-hero {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
}

/* Utility */
.muted {
  color: var(--text-muted);
}

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

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.skeleton {
  background: linear-gradient(90deg, #1a1d26 25%, #222633 40%, #1a1d26 65%);
  background-size: 400% 100%;
  animation: sk 1.2s ease-in-out infinite;
  border-radius: 12px;
  min-height: 120px;
}

@keyframes sk {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

iframe.map {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.visit-map-wrap {
  margin-top: 1.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.visit-map-wrap .visit-map {
  display: block;
  min-height: 280px;
  border: 0;
  border-radius: 0;
}

/* Unified footer (injected chrome) */
.site-footer .footer-top {
  display: grid;
  gap: 2rem;
  padding: 3rem 0 1.5rem;
}

@media (min-width: 960px) {
  .site-footer .footer-top {
    grid-template-columns: 1.15fr 1.05fr 0.85fr 0.85fr 0.95fr;
    align-items: start;
  }
}

.footer-contact-block h3,
.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.footer-map-wrap {
  padding-bottom: 0.25rem;
}

.footer-map {
  width: 100%;
  min-height: 260px;
  max-height: 360px;
}

.pay-row .pay-badge {
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.pay-row .pay-badge svg {
  display: block;
}

/* Try your luck */
.luck-page {
  border-bottom: 0;
}

.luck-hero {
  position: relative;
  padding-right: 3.75rem;
}

.age-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(196, 92, 92, 0.55);
  background: rgba(196, 92, 92, 0.18);
  color: #ffb4b4;
  font-weight: 800;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
}

.luck-panel {
  margin-top: 2rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.luck-spotlight-card .product-card {
  max-width: 440px;
  margin-inline: auto;
}

.card-slot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .card-slot {
    grid-template-columns: 1fr;
  }
}

.luck-card {
  position: relative;
  min-height: 152px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(
      circle at 30% 12%,
      rgba(212, 175, 106, 0.18),
      transparent 42%
    ),
    linear-gradient(180deg, #1a1f2b, #0f1118);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s,
    border-color 0.25s,
    opacity 0.25s;
}

.luck-card-face {
  display: grid;
  place-items: center;
  min-height: 152px;
  padding: 1rem 0.75rem;
  font-weight: 700;
}

.luck-card-face--back {
  font-size: clamp(2.5rem, 10vw, 3.25rem);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 28px rgba(212, 175, 106, 0.35);
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(212, 175, 106, 0.2),
      transparent 55%
    ),
    #12151d;
}

.luck-card-face--back[hidden] {
  display: none !important;
}

.luck-card-face--front {
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--text);
  background: linear-gradient(180deg, #1e2433, #12151d);
}

.luck-card-face--front[hidden] {
  display: none !important;
}

.luck-card:hover:not(:disabled):not(.is-dimmed):not(.is-flipped) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(212, 175, 106, 0.45);
}

.luck-card:disabled {
  cursor: default;
}

.luck-card.is-dimmed {
  opacity: 0.38;
  filter: grayscale(0.25);
}

.luck-card.is-picked {
  opacity: 1;
  filter: none;
  border-color: rgba(212, 175, 106, 0.85);
  box-shadow:
    0 0 0 2px rgba(212, 175, 106, 0.35),
    0 12px 40px rgba(212, 175, 106, 0.18);
  background:
    radial-gradient(
      circle at 40% 0%,
      rgba(212, 175, 106, 0.35),
      transparent 50%
    ),
    linear-gradient(180deg, #222836, #12151d);
}

.reel-machine {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.reel-window {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  height: 64px;
  overflow: hidden;
  background: #0b0d11;
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.65);
}

.reel-strip {
  will-change: transform;
}

.reel-cell {
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.reel-cell .reel-icon {
  width: 34px;
  height: 34px;
  color: var(--gold);
  opacity: 0.95;
}

.luck-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.luck-reel-msg {
  margin: 0;
}

.luck-reel-bonus {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 106, 0.35);
  background: rgba(212, 175, 106, 0.08);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}

.luck-care {
  margin-top: 2.5rem;
}

.care-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .care-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.care-tile {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s,
    transform 0.25s var(--ease);
}

.care-tile:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.care-tile img {
  margin: 0 auto;
}

.promo-luck {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 106, 0.1),
    rgba(18, 20, 26, 0.9)
  );
  box-shadow: var(--shadow-soft);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
