/* Sweet Dreams, Dahlia game site (28 November 2026) */
@font-face { font-family: "SDD Serif"; src: url("../fonts/SerifDisplay-Semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "SDD Sans"; src: url("../fonts/SansSerif-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "SDD Sans"; src: url("../fonts/SansSerif-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --deep: #051419;
  --ink: #0b1d26;
  --sea: #0b2a35;
  --sea2: #0f3a47;
  --line: rgba(160, 225, 240, .14);
  --text: #e4f1f4;
  --muted: #9fbcc4;
  --gold: #f2ce91;
  --gold2: #e3b066;
  --glow: #7fe3f0;
  --radius: 16px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; background: #0b1d26; overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: #0b1d26; color: var(--text); font: 500 1.0625rem/1.65 "SDD Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: "SDD Serif", Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.5em; border-radius: 999px; font: 700 1rem/1 "SDD Sans", sans-serif; letter-spacing: .03em; cursor: pointer; border: 0; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: #2a1a05; box-shadow: 0 8px 30px rgba(242, 206, 145, .28); }
.btn-gold:hover { color: #2a1a05; box-shadow: 0 10px 40px rgba(242, 206, 145, .45); }
.btn-ghost { background: rgba(5, 20, 25, .45); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .3s, box-shadow .3s; }
.top.scrolled { background: rgba(5, 20, 25, .88); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font: 600 1.15rem "SDD Serif", serif; }
.brand img { width: 42px; height: 42px; }
.brand span { opacity: 0; transform: translateX(-6px); transition: .3s; }
.top.scrolled .brand span { opacity: 1; transform: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.nav a:not(.btn):hover { opacity: 1; color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- loading screen (old site: logo, 1 s, fade) ---------- */
.loading { display: none; }
.js .loading { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: #0b1d26; transition: opacity .5s cubic-bezier(.87, 0, .13, 1); }
.js .loading img { width: 200px; }
.js .loading.done { opacity: 0; pointer-events: none; }
.js .loading.gone { display: none; }

/* ---------- hero: the old site's layout, layer for layer (mntn.webflow.css) ---------- */
.site { display: flex; flex-direction: column; width: 100%; max-width: 1920px; margin: 0 auto; background: #0b1d26; }
.hero-section { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100vh; }
.hero-content { position: fixed; top: 20%; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 80px; pointer-events: none; will-change: transform, opacity; }
.hero-content h1 { width: 100%; max-width: 495px; margin: 0; }
.hero-content .logo { width: 100%; }
.hg, .mg, .vg { position: absolute; left: 0; right: 0; width: 100%; max-width: none; will-change: transform; }
.hg { top: 0; }
.mg { top: -15%; z-index: 0; }
.vg { top: 40%; z-index: 50; }
.content-section { position: relative; z-index: 50; background: linear-gradient(180deg, rgba(11, 29, 38, 0), #0b1d26 20%); }
@media (max-width: 1251px) {
  .hero-content h1 { max-width: 325px; }
  .vg { top: 45%; }
  .mg { top: 0; }
  .content-section { margin-top: -200px; background: linear-gradient(180deg, rgba(11, 29, 38, 0), #0b1d26 10%); }
}
@media (max-width: 840px) {
  .hero-content { padding: 0 32px; }
  .hg { object-fit: cover; }
  .vg { top: 40%; height: 600px; object-fit: cover; object-position: 50% 0; }
  .mg { top: 0; height: 840px; object-fit: cover; }
  .hero-section { height: 1000px; }
  .content-section { margin-top: -200px; background: linear-gradient(180deg, rgba(11, 29, 38, 0), #0b1d26 3%); }
}
@media (max-width: 479px) {
  .hero-content { padding: 0 24px; top: 10%; }
  .hero-content h1 { max-width: 300px; }
  .hg { object-position: 50%; height: 680px; }
  /* phone: its own front layer (hero_fg_phone: the empty middle taken out), Dahlia and Axo centred, the enemy beside them */
  .vg { object-position: 17% 50%; height: 700px; top: 27%; }
  .mg { object-position: 60% 50%; }
  .content-section { margin-top: -350px; background: linear-gradient(180deg, rgba(11, 29, 38, 0), #0b1d26 3%); }
}

/* call to action under the hero */
.intro { text-align: center; padding: 120px 0 10px; }
.pitch { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 34em; margin: 0 auto 1.4em; text-shadow: 0 2px 14px rgba(0, 0, 0, .85); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); font: 700 .8rem "SDD Sans", sans-serif; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.lead { color: var(--muted); font-size: 1.15rem; }

/* trailer */
.trailer { padding-top: 40px; }
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .6em 1.2em; font: 700 .95rem "SDD Sans", sans-serif; cursor: pointer; }
.tabs button small { font-weight: 500; opacity: .7; margin-left: .4em; }
.tabs button[aria-selected="true"] { background: var(--sea2); color: #fff; border-color: rgba(242, 206, 145, .5); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px var(--line); }
.video iframe, .video .play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .play { padding: 0; cursor: pointer; background: #000; }
.video .play img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s, transform .6s; }
.video .play:hover img { opacity: 1; transform: scale(1.02); }
.play-icon { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold), var(--gold2)); color: #2a1a05; box-shadow: 0 0 0 12px rgba(242, 206, 145, .2); transition: box-shadow .3s; }
.play-icon svg { width: 40px; height: 40px; margin-left: 5px; }
.video .play:hover .play-icon { box-shadow: 0 0 0 20px rgba(242, 206, 145, .15); }
.note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 12px; }

/* why play */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); }
.pillar img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pillar h3 { color: var(--gold); margin: 20px 22px 6px; font-size: 1.7rem; }
.pillar p { color: var(--muted); margin: 0 22px 24px; }
.story { padding-bottom: 0; }
.section:has(> .wrap.feature) { padding: clamp(40px, 6vw, 80px) 0; }
.pic.clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px var(--line); background: #000; }
.feature em { color: var(--gold); font-style: normal; }
.ticks { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; rotate: 45deg; background: var(--gold); }

/* links */
.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.link-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); transition: transform .25s, box-shadow .25s, background .25s; }
.link-card svg { grid-row: 1 / 3; width: 30px; height: 30px; color: var(--gold); }
.link-card strong { font-size: 1.05rem; }
.link-card span { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.link-card:hover { color: var(--text); transform: translateY(-3px); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(242, 206, 145, .45); }
.link-card.main { grid-column: span 2; padding: 26px; background: linear-gradient(135deg, rgba(242, 206, 145, .16), rgba(127, 227, 240, .06)); }
.link-card.main svg { width: 40px; height: 40px; }
.link-card.main strong { font: 600 1.5rem "SDD Serif", serif; }

/* the game */
.game { background: radial-gradient(70% 50% at 50% 0%, rgba(127, 227, 240, .07), transparent), linear-gradient(180deg, var(--ink), var(--sea) 50%, var(--ink)); }
.facts { list-style: none; padding: 0; margin: 0 0 clamp(60px, 8vw, 100px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts li { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); }
.facts strong { display: block; font: 600 1.25rem "SDD Serif", serif; color: var(--gold); margin-bottom: 4px; }
.facts span { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; margin-bottom: clamp(60px, 8vw, 110px); }
.feature:last-child { margin-bottom: 0; }
.feature.flip .pic { order: 2; }
.feature .pic { position: relative; }
.feature .pic::before { content: ""; position: absolute; inset: 8% -4% -6% 6%; border-radius: var(--radius); background: radial-gradient(closest-side, rgba(127, 227, 240, .22), transparent); filter: blur(20px); z-index: -1; }
.feature .pic img { width: 100%; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px var(--line); }
.num { display: block; font: 600 3.4rem/1 "SDD Serif", serif; color: transparent; -webkit-text-stroke: 1px rgba(242, 206, 145, .6); margin-bottom: 10px; }
.feature h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.feature p { color: var(--muted); }

/* gallery */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gal-tabs { margin-bottom: 26px; }
.shots button[hidden] { display: none; }
.shots button { padding: 0; border: 0; cursor: zoom-in; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s, opacity .3s; opacity: .92; }
.shots button:hover img { transform: scale(1.04); opacity: 1; }
#lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; overflow: visible; }
#lightbox::backdrop { background: rgba(3, 10, 13, .92); }
#lightbox img { max-width: 96vw; max-height: 88vh; border-radius: 10px; }
#lightbox button { position: absolute; background: rgba(5, 20, 25, .7); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
#lightbox .close { top: -56px; right: 0; }
#lightbox .prev { left: 10px; top: 50%; translate: 0 -50%; }
#lightbox .next { right: 10px; top: 50%; translate: 0 -50%; }

/* news */
.news { background: linear-gradient(180deg, var(--ink), var(--sea) 60%, var(--ink)); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: rgba(5, 20, 25, .6); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); color: var(--text); box-shadow: inset 0 0 0 1px rgba(242, 206, 145, .45), 0 20px 50px rgba(0, 0, 0, .4); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 24px; }
.card .tag { display: inline-block; font: 700 .72rem "SDD Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #2a1a05; background: var(--gold); padding: .3em .7em; border-radius: 999px; margin-right: 10px; }
.card time { color: var(--muted); font-size: .85rem; }
.card h3 { font-size: 1.3rem; margin-top: 12px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.more { text-align: center; margin-top: 34px; }

/* community */
.panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: clamp(30px, 5vw, 56px); border-radius: 24px; background:
  radial-gradient(80% 120% at 0% 0%, rgba(127, 227, 240, .14), transparent 60%),
  radial-gradient(70% 120% at 100% 100%, rgba(242, 206, 145, .12), transparent 60%), var(--sea);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .35); }
.signup p { color: var(--muted); }
#signup { display: flex; gap: 10px; margin-top: 18px; }
#signup input { flex: 1; min-width: 0; padding: .85em 1.2em; border-radius: 999px; border: 1px solid var(--line); background: rgba(5, 20, 25, .7); color: #fff; font: 500 1rem "SDD Sans", sans-serif; }
#signup input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
#signup input.invalid { border-color: #ff8a8a; }
.msg { min-height: 1.6em; margin: 10px 0 0; font-size: .95rem; }
.msg.ok { color: var(--glow); }
.msg.err { color: #ff9d9d; }
.social h3 { font-size: 1.3rem; }
.icons { display: flex; flex-wrap: wrap; gap: 10px; }
.icons a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); transition: .25s; }
.icons a:hover { background: var(--gold); color: #2a1a05; transform: translateY(-3px); }
.icons svg { width: 22px; height: 22px; }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--deep); padding: 30px 0; font-size: .9rem; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 22px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars .pillar:last-child { grid-column: 1 / -1; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }
  .panel { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; padding: 10px 20px 24px; background: rgba(5, 20, 25, .97); box-shadow: 0 1px 0 var(--line); transform: translateY(calc(-100% - 90px)); visibility: hidden; transition: transform .3s, visibility 0s .3s; }
  .nav.open { transform: none; visibility: visible; transition: transform .3s; }
  .nav a:not(.btn) { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .top:has(.nav.open) { background: rgba(5, 20, 25, .97); }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .pic { order: 0; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .facts { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pillars { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .link-card { grid-template-columns: 1fr; padding: 14px; row-gap: 6px; }
  .link-card svg { grid-row: auto; }
  .link-card.main { grid-column: 1 / -1; grid-template-columns: auto 1fr; padding: 20px; }
  .link-card.main svg { grid-row: 1 / 3; }
  .intro { padding-top: 60px; }
  .cards { grid-template-columns: 1fr; }
  #signup { flex-direction: column; }
  #signup .btn { justify-content: center; }
  .foot { flex-direction: column; align-items: flex-start; }
  #lightbox .prev, #lightbox .next { display: none; }
}
