:root {
  --bg: #ede3d3;
  --section-alt: #f7efe2;
  --panel: #ffffff;
  --primary: #d4a373;
  --secondary: #6c584c;
  --accent: #264653;
  --highlight: #2a9d8f;
  --text: #2f2a25;
  --muted: #7b6f63;
  --border: rgba(0,0,0,0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--highlight);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

p {
  margin-bottom: 1rem;
}

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

.site-navbar {
  background: rgba(237,227,211,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--accent);
  color: var(--panel);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1;
}

.navbar-nav .nav-link {
  color: var(--secondary);
  font-weight: 700;
  padding-inline: 0.9rem;
}

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

.navbar-toggler {
  border: 1px solid var(--border);
  border-radius: 8px;
}

.section {
  position: relative;
  padding: 78px 0;
}

.section-alt {
  background: var(--section-alt);
  border-block: 1px solid var(--border);
}

.section-grid {
  background-image:
    linear-gradient(rgba(38,70,83,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,70,83,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

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

.section-header .copy {
  max-width: 680px;
}

.section-header::after {
  content: "";
  flex: 1;
  height: 1px;
  min-width: 80px;
  background: var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--highlight);
}

.lead-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.btn {
  border-radius: 8px;
  font-weight: 800;
}

.btn-brand {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--panel);
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--panel);
}

.btn-sand {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: var(--text);
}

.btn-sand:hover,
.btn-sand:focus {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--panel);
}

.btn-outline-brand {
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--panel);
}

.btn-teal {
  background: var(--highlight);
  border: 1px solid var(--highlight);
  color: var(--panel);
}

.btn-teal:hover,
.btn-teal:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--panel);
}

.hero-section {
  min-height: 72vh;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  max-width: 640px;
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 7vw, 5.9rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.image-frame,
.ui-panel,
.platform-panel,
.benefit-card,
.quote-card,
.game-card,
.contact-card,
.legal-panel,
.info-panel {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.image-frame {
  max-width: 570px;
  margin-inline: auto;
  padding: 12px;
}

.image-frame::before,
.image-frame::after,
.ui-panel::before,
.platform-panel::before,
.benefit-card::before,
.game-card::before,
.contact-card::before,
.legal-panel::before,
.info-panel::before {
  content: "";
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  pointer-events: none;
}

.image-frame::before,
.ui-panel::before,
.platform-panel::before,
.benefit-card::before,
.game-card::before,
.contact-card::before,
.legal-panel::before,
.info-panel::before {
  top: 0;
  left: 0;
  border-top: 3px solid var(--highlight);
  border-left: 3px solid var(--highlight);
}

.image-frame::after {
  right: 0;
  bottom: 0;
  border-right: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
}

.image-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.platform-grid,
.benefit-grid,
.quote-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.platform-panel,
.benefit-card,
.quote-card,
.ui-panel,
.info-panel {
  padding: 1.25rem;
}

.panel-index {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--section-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 900;
}

.platform-panel h3,
.benefit-card h3,
.game-card h3,
.info-panel h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.platform-panel p,
.benefit-card p,
.quote-card p,
.info-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.game-stream {
  display: grid;
  gap: 0.9rem;
}

.stream-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.stream-row img {
  width: 128px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.stream-row h3 {
  margin-bottom: 0.25rem;
  font-size: 1.22rem;
}

.stream-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 0.42rem 0.65rem;
  background: var(--section-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.split-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.split-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--secondary);
  font-weight: 700;
}

.split-list li::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 0;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--highlight);
  border-radius: 3px;
}

.benefit-grid,
.quote-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-layer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.community-layer img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.stats-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.stat-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  color: var(--secondary);
}

.stat-item strong {
  color: var(--accent);
  font-size: 1.25rem;
}

.quote-card {
  display: grid;
  gap: 0.75rem;
}

.quote-card blockquote {
  margin: 0;
  color: var(--secondary);
}

.quote-card cite {
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
}

.accordion {
  --bs-accordion-bg: var(--panel);
  --bs-accordion-border-color: var(--border);
  --bs-accordion-btn-color: var(--text);
  --bs-accordion-active-bg: var(--section-alt);
  --bs-accordion-active-color: var(--accent);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(42,157,143,0.18);
}

.accordion-item {
  border-radius: 8px;
  overflow: hidden;
}

.accordion-button {
  font-weight: 900;
}

.page-hero {
  padding: 68px 0 42px;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 6vw, 4.6rem);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--secondary);
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
  font-weight: 900;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--panel);
}

.game-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.game-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.game-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.game-card-body p {
  color: var(--muted);
  margin-bottom: 0;
}

.game-card-body .btn {
  margin-top: auto;
}

.game-card-wrap.is-hidden {
  display: none !important;
}

.mixed-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.contact-card,
.legal-panel {
  padding: 1.5rem;
}

.form-control {
  border-color: var(--border);
  border-radius: 8px;
}

.form-control:focus {
  border-color: var(--highlight);
  box-shadow: 0 0 0 0.2rem rgba(42,157,143,0.18);
}

.form-label {
  color: var(--secondary);
  font-weight: 800;
}

.success-message {
  display: none;
  padding: 0.9rem 1rem;
  background: var(--section-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 800;
}

.success-message.is-visible {
  display: block;
}

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

.contact-list li {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.contact-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-panel h2 {
  margin-top: 1.6rem;
  font-size: 1.55rem;
}

.legal-panel h2:first-child {
  margin-top: 0;
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
}

.site-footer {
  padding: 48px 0 24px;
  background: var(--primary);
  border-top: 1px solid var(--border);
  color: var(--text);
}

.site-footer h2,
.site-footer h3 {
  font-size: 1.05rem;
}

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

.site-footer a {
  color: var(--text);
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--secondary);
  font-size: 0.92rem;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1080;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  max-width: 980px;
  margin-inline: auto;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

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

.cookie-banner p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 991.98px) {
  .section {
    padding: 62px 0;
  }

  .hero-section {
    min-height: auto;
  }

  .platform-grid,
  .benefit-grid,
  .quote-grid,
  .progress-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-layer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .section-header {
    display: block;
  }

  .section-header::after {
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: 1rem;
  }

  .platform-grid,
  .benefit-grid,
  .quote-grid,
  .mixed-panel-grid,
  .progress-strip {
    grid-template-columns: 1fr;
  }

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

  .stream-row img {
    width: 100%;
  }

  .tag {
    justify-self: start;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1,
  .page-hero h1 {
    font-size: 2.45rem;
  }

  .hero-actions,
  .filter-bar {
    width: 100%;
  }

  .hero-actions .btn,
  .filter-btn {
    flex: 1 1 auto;
  }

  .contact-card,
  .legal-panel {
    padding: 1.1rem;
  }
}
