@font-face {
  font-family: PlayfairLocal;
  src: url("assets/fonts/playfair_display.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: ManropeLocal;
  src: url("assets/fonts/manrope.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #060504;
  --canvas: #0c0907;
  --panel: #14100c;
  --panel-2: #1a140e;
  --gold: #c89a45;
  --gold-soft: #e9c97e;
  --gold-deep: #8a6626;
  --ink: #f8ebc9;
  --muted: #b79a63;
  --line: #be9346;
  --line-soft: #493618;
  --rose: #241713;
  --green: #17251d;
  --shadow: 0 24px 70px rgba(0, 0, 0, .5);
  --radius: 22px;
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, rgba(190, 147, 70, .12), transparent 28%), var(--bg);
  color: var(--ink);
  font-family: ManropeLocal, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3 {
  font-family: PlayfairLocal, Georgia, serif;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 4.8rem);
}

h2 {
  font-size: clamp(1.55rem, 4vw, 2.8rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--muted);
  margin: .75rem 0 0;
}

.hidden {
  display: none !important;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg);
  transition: opacity .65s ease, visibility .65s ease;
}

.splash.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-bg,
.splash-video,
.splash-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.splash-bg,
.splash-video {
  object-fit: cover;
}

.splash-bg {
  opacity: .82;
  transform: scale(1.04);
}

.splash-video {
  opacity: 0;
  transition: opacity .9s ease;
}

.splash-video.visible {
  opacity: 1;
}

.splash-scrim {
  background: linear-gradient(180deg, rgba(6, 5, 4, .48), rgba(6, 5, 4, .8));
}

.splash-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px;
}

.splash-logo {
  width: min(330px, 78vw);
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, .55));
}

.icon-button,
.skip-button,
.menu-button,
.ghost-button,
.primary-button,
.secondary-button,
.chip {
  border: 1px solid var(--line);
  color: var(--gold-soft);
  background: linear-gradient(315deg, rgba(10, 7, 5, .92), rgba(34, 23, 15, .9));
  min-height: 44px;
  border-radius: 999px;
}

.icon-button {
  position: absolute;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
}

.icon-button svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-soft);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.splash-sound {
  top: 24px;
  left: 20px;
}

.skip-button {
  position: absolute;
  z-index: 4;
  top: 24px;
  right: 20px;
  padding: 0 18px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .35s ease, transform .35s ease;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 800;
  pointer-events: none;
}

.skip-button.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: var(--nav-height);
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 44px);
  background: rgba(6, 5, 4, .9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(190, 147, 70, .25);
}

.menu-button,
.ghost-button {
  padding: 0 18px;
  font-weight: 800;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-lockup img {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-soft);
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup strong {
  font-family: PlayfairLocal, Georgia, serif;
  font-size: 1.25rem;
}

.brand-lockup span {
  color: var(--muted);
  font-size: .9rem;
}

.desktop-nav {
  display: flex;
  gap: 8px;
}

.desktop-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
}

.desktop-nav button.active {
  color: var(--gold-soft);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.screen {
  display: none;
  animation: fadeIn .28s ease;
}

.screen.active {
  display: block;
}

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

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(190, 147, 70, .55);
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow);
}

.hero-bg {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 1;
}

.hero::after {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 6vw, 62px);
  max-width: 760px;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 640px;
}

.hero-actions,
.split-actions,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.primary-button,
.secondary-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 18px;
  font-weight: 800;
}

.primary-button {
  background: linear-gradient(135deg, #e6c978, #b9822e);
  color: #130d07;
  border-color: #f1d998;
}

.secondary-button {
  color: var(--gold-soft);
}

.stack-grid,
.builder-layout,
.concierge-layout,
.circle-layout,
.contact-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.panel {
  border: 1px solid rgba(190, 147, 70, .55);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20, 16, 12, .96), rgba(15, 10, 7, .95));
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 12px 45px rgba(0, 0, 0, .28);
}

.accent-panel,
.tinted,
.hero-panel {
  background: linear-gradient(160deg, rgba(34, 25, 15, .98), rgba(13, 11, 8, .96));
}

.kicker,
.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  color: var(--gold-soft);
  border: 1px solid rgba(190, 147, 70, .55);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-head {
  margin: 24px 0;
  max-width: 780px;
}

.content-band {
  margin-top: 36px;
}

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

.world-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(190, 147, 70, .55);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(20, 16, 12, .96), rgba(15, 10, 7, .95));
}

.floral-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-image) center / cover no-repeat;
  opacity: .58;
}

.floral-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 5, 4, .05), rgba(6, 5, 4, .9));
}

.floral-card > * {
  position: relative;
  z-index: 1;
}

.world-card-media,
.detail-image-panel,
.campaign-strip,
.event-image {
  background: #070604;
}

.world-card-media {
  width: 100%;
  border-bottom: 1px solid rgba(190, 147, 70, .35);
}

.world-card-media img,
.detail-image,
.campaign-strip img,
.event-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.world-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.world-card-body .secondary-button {
  margin-top: auto;
}

.detail-image-panel {
  padding: 0;
  overflow: hidden;
}

.campaign-strip {
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid rgba(190, 147, 70, .5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.campaign-strip img {
  display: block;
}

.event-image {
  margin: -8px -8px 18px;
  border: 1px solid rgba(190, 147, 70, .28);
  border-radius: calc(var(--radius) - 8px);
}

.detail-layout {
  display: grid;
  gap: 14px;
}

.builder-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: start;
}

.live-summary {
  position: sticky;
  top: 104px;
}

.build-form label {
  display: block;
  margin-top: 18px;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
}

.chip {
  padding: 10px 14px;
  min-width: 88px;
  font-weight: 800;
}

.chip.active {
  background: linear-gradient(135deg, #e6c978, #b9822e);
  color: #130d07;
  border-color: #f1d998;
}

.field-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.field-line small {
  color: var(--muted);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper button {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--gold-soft);
  font-size: 1.35rem;
}

.stepper strong {
  min-width: 44px;
  text-align: center;
  font-size: 1.35rem;
}

.checks {
  display: grid;
  gap: 8px;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
}

.checks input[type="checkbox"] {
  width: auto;
  accent-color: var(--gold);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(190, 147, 70, .45);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(9, 7, 5, .8);
  color: var(--ink);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--gold-soft);
}

.chat-panel {
  display: grid;
  gap: 12px;
}

.chat-window {
  height: 360px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px;
}

.bubble {
  max-width: min(78%, 520px);
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--ink);
  border: 1px solid rgba(190, 147, 70, .35);
}

.bubble.concierge {
  align-self: flex-start;
  background: rgba(22, 16, 10, .92);
}

.bubble.member {
  align-self: flex-end;
  background: rgba(48, 36, 18, .95);
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.drawer {
  position: fixed;
  z-index: 80;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(360px, 88vw);
  padding: 24px;
  background: linear-gradient(180deg, #120e0a, #080605);
  border-right: 1px solid var(--line);
  transform: translateX(-102%);
  transition: transform .25s ease;
}

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

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, .55);
  display: none;
}

.drawer-backdrop.open {
  display: block;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.drawer-head img {
  width: 150px;
}

.drawer-nav {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.drawer-nav button {
  text-align: left;
  border: 1px solid rgba(190, 147, 70, .35);
  border-radius: 16px;
  background: rgba(20, 16, 12, .8);
  color: var(--ink);
  padding: 14px 16px;
}

.bottom-nav {
  position: fixed;
  z-index: 45;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--nav-height);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(6, 5, 4, .94);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(190, 147, 70, .32);
}

.bottom-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}

.bottom-nav button.active {
  color: var(--gold-soft);
}

.floral-card {
  position: relative;
  overflow: hidden;
}

@media (max-width: 860px) {
  :root {
    --radius: 20px;
  }

  .desktop-nav {
    display: none;
  }

  main {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .top-bar {
    padding: 14px 12px;
  }

  .brand-lockup img {
    width: 38px;
    height: 38px;
  }

  .brand-lockup strong {
    font-size: 1.05rem;
  }

  .brand-lockup span {
    font-size: .78rem;
  }

  .hero {
    border-radius: 20px;
  }

  .hero-content {
    padding: 22px;
  }

  .stack-grid,
  .builder-layout,
  .concierge-layout,
  .circle-layout,
  .contact-grid,
  .about-grid,
  .world-grid,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .live-summary {
    position: static;
  }

  .hero-actions,
  .split-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .link-button {
    width: 100%;
  }

  .world-card-body {
    padding: 20px;
  }

  .field-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-input {
    grid-template-columns: 1fr;
  }

  .splash-logo {
    width: min(300px, 82vw);
  }
}

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

  .app-shell {
    padding-bottom: 0;
  }
}
