/* ========================================================================== 
   NELLOICA V6 · EXPERIENCE FIRST
   Bootstrap handles the responsive grid and components.
   This file supplies Nelloica's visual language, motion and atmosphere.
   Mobile first, progressively enhanced for larger screens.
   ========================================================================== */

:root {
  --n-ink: #18211f;
  --n-muted: #66716d;
  --n-paper: #fffdf8;
  --n-cream: #f5efe4;
  --n-green: #17372e;
  --n-green-2: #245447;
  --n-orange: #ef7b32;
  --n-gold: #d9ad5b;
  --n-plum: #5c344f;
  --n-cave: #151513;
  --n-line: rgba(24, 33, 31, .12);
  --n-shadow: 0 1.5rem 4rem rgba(24, 33, 31, .13);
  --n-shadow-soft: 0 1rem 2.8rem rgba(24, 33, 31, .08);
  --bs-body-color: #18211f;
  --bs-body-bg: #fffdf8;
  --bs-link-color: #17372e;
  --bs-link-hover-color: #ef7b32;
  --bs-border-color: rgba(24, 33, 31, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--n-ink);
  background: var(--n-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, h5 { letter-spacing: -.035em; }

/* --------------------------------------------------------------------------
   TYPE + BUTTONS
   -------------------------------------------------------------------------- */
.section-kicker,
.menu-eyebrow,
.hero-kicker,
.kicker {
  margin: 0 0 .8rem;
  color: var(--n-green);
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.section-kicker.light,
.kicker-light { color: rgba(255,255,255,.7); }
.section-kicker.plum { color: var(--n-plum); }
.kicker { display: inline-flex; align-items: center; gap: .55rem; }
.kicker::before { content: ""; width: 1.25rem; height: 2px; border-radius: 99px; background: var(--n-orange); }
.kicker-light::before { background: var(--n-gold); }
.section-title,
.display-section,
.display-page {
  margin: 0 0 1.1rem;
  font-size: clamp(2.35rem, 11vw, 4rem);
  line-height: .98;
  font-weight: 850;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.display-page { font-size: clamp(2.8rem, 13vw, 4.6rem); }
.section-lead {
  max-width: 46rem;
  margin: 0;
  color: var(--n-muted);
  font-size: 1.04rem;
  line-height: 1.65;
}
.text-brand { color: var(--n-green) !important; }
.text-accent { color: var(--n-orange) !important; }
.link-brand, .quiet-link {
  color: var(--n-green);
  font-weight: 800;
  text-decoration: none;
}
.link-brand:hover, .quiet-link:hover { color: var(--n-orange); }
.btn {
  border-radius: 999px;
  padding: .78rem 1.18rem;
  font-weight: 850;
  letter-spacing: -.01em;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .95rem 1.35rem; }
.btn-brand { color: #fff; background: var(--n-green); border-color: var(--n-green); box-shadow: 0 .65rem 1.5rem rgba(23,55,46,.16); }
.btn-brand:hover { color: #fff; background: #0f2a22; border-color: #0f2a22; }
.btn-accent { color: #20170f; background: var(--n-orange); border-color: var(--n-orange); box-shadow: 0 .65rem 1.6rem rgba(239,123,50,.2); }
.btn-accent:hover { color: #20170f; background: #f38a48; border-color: #f38a48; }
.btn-outline-brand { color: var(--n-green); border-color: rgba(23,55,46,.33); background: rgba(255,255,255,.4); }
.btn-outline-brand:hover { color: #fff; background: var(--n-green); border-color: var(--n-green); }
.btn-plum { color: #fff; background: var(--n-plum); border-color: var(--n-plum); }
.btn-plum:hover { color: #fff; background: #49273e; border-color: #49273e; }
.btn-outline-plum { color: var(--n-plum); border-color: rgba(92,52,79,.35); background: rgba(255,255,255,.42); }
.btn-outline-plum:hover { color: #fff; background: var(--n-plum); border-color: var(--n-plum); }
.btn-glass { color: #fff; border: 1px solid rgba(255,255,255,.38); background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.btn-glass:hover { color: #161a18; background: #fff; border-color: #fff; }

/* --------------------------------------------------------------------------
   FLOATING, SCROLL-AWARE NAVIGATION
   -------------------------------------------------------------------------- */
.floating-header {
  position: fixed;
  z-index: 1040;
  top: .7rem;
  left: 50%;
  width: calc(100% - 1rem);
  max-width: 1180px;
  transform: translate(-50%, 0);
  transition: transform .38s cubic-bezier(.2,.75,.25,1), opacity .25s ease;
  will-change: transform;
}
.floating-header.is-hidden { transform: translate(-50%, -150%); opacity: .2; }
.floating-nav {
  width: 100%;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 1.15rem;
  background: rgba(255,253,248,.9);
  box-shadow: 0 .65rem 2.3rem rgba(18,27,24,.12);
  backdrop-filter: blur(18px) saturate(125%);
}
.floating-nav__inner { min-height: 3.75rem; display: flex; align-items: center; padding: .45rem .55rem .45rem .65rem; }
.floating-brand { display: inline-flex; align-items: center; gap: .58rem; min-width: 0; color: var(--n-ink); text-decoration: none; }
.floating-brand:hover { color: var(--n-ink); }
.floating-brand img { width: 2.25rem; height: 2.25rem; object-fit: contain; border-radius: 50%; }
.floating-brand span { min-width: 0; line-height: 1; }
.floating-brand strong { display: block; font-size: 1.03rem; font-weight: 900; letter-spacing: -.03em; }
.floating-brand small { display: none; margin-top: .28rem; color: var(--n-muted); font-size: .52rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.floating-link { padding: .55rem .7rem; border-radius: 999px; color: #3d4744; font-size: .83rem; font-weight: 800; text-decoration: none; transition: background .2s ease, color .2s ease; }
.floating-link:hover, .floating-link.is-active { color: var(--n-green); background: rgba(23,55,46,.08); }
.floating-menu-button { display: inline-flex; align-items: center; gap: .42rem; min-height: 2.65rem; padding: .55rem .8rem; border: 0; border-radius: 999px; color: #fff; background: var(--n-green); font-size: .78rem; font-weight: 850; }
.floating-menu-button i { display: block; width: .85rem; height: 1px; margin-left: .1rem; background: currentColor; border-radius: 10px; }
.floating-menu-button i + i { margin-left: -.75rem; transform: translateY(.25rem); }
.nelloica-offcanvas { --bs-offcanvas-width: min(92vw, 390px); background: var(--n-paper); }
.offcanvas-links { display: grid; }
.offcanvas-link { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--n-line); color: var(--n-ink); font-size: 1.45rem; font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.offcanvas-link span { color: var(--n-orange); font-size: .85rem; }
.offcanvas-link.is-active { color: var(--n-orange); }
.menu-note { color: var(--n-muted); }

/* --------------------------------------------------------------------------
   MOTION
   -------------------------------------------------------------------------- */
html.motion-ready [data-reveal] { opacity: 0; transform: translate3d(0, 1.45rem, 0); transition: opacity .72s cubic-bezier(.2,.75,.25,1), transform .72s cubic-bezier(.2,.75,.25,1); transition-delay: var(--reveal-delay, 0ms); }
html.motion-ready [data-reveal="fade-left"] { transform: translate3d(1.6rem,0,0); }
html.motion-ready [data-reveal="fade-right"] { transform: translate3d(-1.6rem,0,0); }
html.motion-ready [data-reveal="zoom-soft"] { transform: scale(.965); }
html.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   HOME: MASTHEAD
   -------------------------------------------------------------------------- */
.masthead {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #12231e url('/assets/nelloica-hero-world.webp') center / cover no-repeat;
}
.masthead-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,14,12,.18) 0%, rgba(7,14,12,.25) 36%, rgba(7,14,12,.91) 100%),
    linear-gradient(90deg, rgba(8,18,15,.7), transparent 76%);
}
.masthead-content { position: relative; z-index: 2; padding-top: 8.5rem; padding-bottom: 6.1rem; }
.hero-kicker { color: #f6c978; }
.hero-kicker span { color: rgba(255,255,255,.55); padding: 0 .35rem; }
.masthead h1 {
  margin: 0 0 1.2rem;
  max-width: 10ch;
  color: #fff;
  font-size: clamp(3.35rem, 16vw, 5.8rem);
  line-height: .9;
  font-weight: 900;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.masthead-lead { max-width: 43rem; margin: 0; color: rgba(255,255,255,.85); font-size: 1.08rem; line-height: 1.6; }
.masthead-mantra { margin: 1.15rem 0 0; color: #fff; font-size: .8rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 1.1rem; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: .5rem; color: rgba(255,255,255,.65); font-size: .6rem; font-weight: 800; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 2.1rem; background: linear-gradient(#fff, transparent); animation: scrollCue 1.8s ease-in-out infinite; }
@keyframes scrollCue { 0%,100% { transform: scaleY(.55); transform-origin: top; opacity:.5; } 50% { transform: scaleY(1); opacity:1; } }

/* --------------------------------------------------------------------------
   HOME: GLOBAL SECTIONS
   -------------------------------------------------------------------------- */
.section-space { padding: 5rem 0; }
.bg-paper { background: var(--n-paper); }

/* Three ways in */
.world-card { position: relative; display: block; min-height: 27rem; overflow: hidden; border-radius: 1.35rem; color: #fff; text-decoration: none; box-shadow: var(--n-shadow-soft); isolation: isolate; }
.world-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.75,.25,1); }
.world-card:hover img { transform: scale(1.045); }
.world-card-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7,13,11,.06) 20%, rgba(7,13,11,.92) 100%); }
.world-card-copy { position: absolute; z-index: 2; inset: auto 1.35rem 1.35rem; }
.world-card-copy small { display: block; margin-bottom: .55rem; color: #ffd49d; font-size: .64rem; font-weight: 900; letter-spacing: .14em; }
.world-card-copy h3 { margin: 0 0 .55rem; color: #fff; font-size: 2.25rem; line-height: .98; font-weight: 850; }
.world-card-copy p { margin: 0 0 1rem; color: rgba(255,255,255,.75); font-size: .92rem; }
.world-card-copy strong { color: #fff; font-size: .85rem; }

/* Flagship */
.flagship-section { background: linear-gradient(180deg, #f4ede2 0%, #fbf8f2 100%); overflow: hidden; }
.featured-art { position: relative; min-height: 25rem; }
.featured-art-main { width: 92%; border-radius: 1.4rem; box-shadow: 0 2rem 5rem rgba(31,43,39,.18); transform: rotate(-1.5deg); }
.featured-art-box { position: absolute; right: 0; bottom: -.3rem; width: 42%; border: .4rem solid rgba(255,255,255,.82); border-radius: 1rem; box-shadow: 0 1.4rem 3.4rem rgba(31,43,39,.23); transform: rotate(4deg); }
.featured-stamp { position: absolute; left: .7rem; bottom: .6rem; padding: .55rem .75rem; border-radius: 999px; color: #fff; background: var(--n-green); font-size: .63rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.feature-facts { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.7rem 0; }
.feature-facts span { min-width: 5.6rem; padding: .8rem .9rem; border: 1px solid rgba(23,55,46,.1); border-radius: 1rem; background: rgba(255,255,255,.58); }
.feature-facts strong { display: block; color: var(--n-green); font-size: 1.05rem; }
.feature-facts small { display: block; color: var(--n-muted); font-size: .68rem; }

/* Game range */
.range-section { background: #fff; }
.range-card { height: 100%; overflow: hidden; border: 1px solid var(--n-line); border-radius: 1.25rem; background: #fff; box-shadow: 0 .7rem 2rem rgba(24,33,31,.05); transition: transform .25s ease, box-shadow .25s ease; }
.range-card:hover { transform: translateY(-4px); box-shadow: var(--n-shadow-soft); }
.range-image, .range-placeholder { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.range-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.range-card:hover .range-image img { transform: scale(1.03); }
.range-placeholder { display: grid; place-content: center; padding: 1rem; text-align: center; text-decoration: none; background: linear-gradient(135deg, #f4dfc7, #bdd2c2); }
.range-placeholder.lands { background: linear-gradient(135deg, #d9e7e6, #edd3a7); }
.range-placeholder span { display: block; color: var(--n-green); font-size: 3.4rem; font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.range-placeholder small { display: block; margin-top: .45rem; color: #42514c; font-weight: 800; }
.range-copy { padding: 1.2rem; }
.range-copy h3 { margin: .8rem 0 .5rem; font-size: 1.45rem; font-weight: 850; }
.range-copy p { min-height: 3rem; margin-bottom: .85rem; color: var(--n-muted); font-size: .88rem; }
.range-copy a { color: var(--n-green); font-size: .84rem; font-weight: 850; text-decoration: none; }
.status-tag { display: inline-flex; padding: .3rem .55rem; border-radius: 999px; font-size: .6rem; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.status-tag.live { color: #17603b; background: #dff3e6; }
.status-tag.soon { color: #855401; background: #fff0d5; }

/* Play */
.play-experience { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 83% 15%, rgba(239,123,50,.18), transparent 25rem), linear-gradient(155deg, #17372e 0%, #0f281f 100%); }
.play-experience::after { content: "PLAY"; position: absolute; right: -1rem; bottom: -4rem; color: rgba(255,255,255,.025); font-size: clamp(9rem, 28vw, 25rem); font-weight: 950; line-height: 1; letter-spacing: -.08em; pointer-events: none; }
.play-link-list { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.14); }
.play-link-list a { display: grid; grid-template-columns: 2rem 1fr; gap: .2rem .75rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.play-link-list a > span { grid-row: 1 / 3; color: var(--n-gold); font-size: .65rem; font-weight: 900; letter-spacing: .1em; }
.play-link-list strong { font-size: 1rem; }
.play-link-list small { color: rgba(255,255,255,.58); line-height: 1.4; }
.play-demo { position: relative; z-index: 1; padding: 1rem; border: 1px solid rgba(255,255,255,.15); border-radius: 1.6rem; background: rgba(255,255,255,.075); box-shadow: 0 2rem 5rem rgba(0,0,0,.24); backdrop-filter: blur(12px); }
.play-demo-top { display: flex; justify-content: space-between; margin-bottom: .8rem; color: rgba(255,255,255,.6); font-size: .66rem; font-weight: 900; letter-spacing: .1em; }
.play-demo-top span { color: #fff; }
.demo-die { width: 100%; height: 100%; min-height: 13.5rem; border: 0; border-radius: 1.2rem; background: #fff7e7; color: var(--n-green); box-shadow: inset -.8rem -.8rem 1.8rem rgba(87,63,22,.08), 0 1.2rem 2.8rem rgba(0,0,0,.12); }
.demo-die span { display: block; font-size: clamp(5rem, 18vw, 8rem); line-height: 1; transition: transform .35s ease; }
.demo-die.is-rolling span { animation: demoRoll .52s ease; }
.demo-die small { display: block; margin-top: .7rem; color: #6b716e; font-size: .62rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
@keyframes demoRoll { 0%{transform:rotate(0) scale(1)}35%{transform:rotate(-18deg) scale(.88)}70%{transform:rotate(16deg) scale(1.07)}100%{transform:none} }
.demo-question { height: 100%; min-height: 13.5rem; display: flex; flex-direction: column; padding: 1.1rem; border-radius: 1.2rem; background: #f6c35e; color: #1a211f; }
.demo-question small { font-size: .62rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.demo-question p { margin: auto 0; font-size: 1.2rem; line-height: 1.16; font-weight: 800; letter-spacing: -.03em; }
.demo-question button { align-self: flex-start; padding: 0; border: 0; color: #1a211f; background: transparent; font-size: .72rem; font-weight: 900; }
.play-demo-note { margin: .9rem .25rem .15rem; color: rgba(255,255,255,.48); font-size: .72rem; }

/* Cave */
.cave-portal { position: relative; min-height: 92svh; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; background: #111 url('/assets/cave-studio.webp') center / cover no-repeat; }
.cave-portal-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 20% 40%, rgba(239,123,50,.18), transparent 20rem), linear-gradient(180deg, rgba(7,7,6,.6), rgba(7,7,6,.9)); }
.cave-portal-content { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: 9rem; }
.cave-portal h2 { margin: 0; color: #fff; font-size: clamp(3.6rem, 17vw, 7.6rem); line-height: .9; font-weight: 900; letter-spacing: -.065em; }
.cave-portal-content p:not(.section-kicker) { max-width: 45rem; margin: 1.2rem auto 0; color: rgba(255,255,255,.72); font-size: 1.05rem; }
.cave-feature-strip { position: absolute; z-index: 3; left: .75rem; right: .75rem; bottom: .75rem; display: grid; gap: .2rem; padding: 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: 1.1rem; color: #fff; background: rgba(12,13,11,.64); backdrop-filter: blur(14px); text-decoration: none; }
.cave-feature-strip > span { color: #f3c977; font-size: .58rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.cave-feature-strip strong { font-size: 1.05rem; }
.cave-feature-strip small { color: rgba(255,255,255,.56); line-height: 1.35; }
.cave-feature-strip b { margin-top: .3rem; font-size: .75rem; }

/* Discover */
.discover-section { background: linear-gradient(180deg, #fffdf8, #f6f1e7); }
.discovery-list { border-top: 1px solid var(--n-line); }
.discovery-list a { display: grid; grid-template-columns: 2rem 1fr auto; gap: .65rem; align-items: start; padding: 1.2rem 0; border-bottom: 1px solid var(--n-line); color: var(--n-ink); text-decoration: none; transition: padding-left .25s ease, color .25s ease; }
.discovery-list a:hover { padding-left: .45rem; color: var(--n-green); }
.discovery-list > a > span { color: var(--n-orange); font-size: .65rem; font-weight: 900; }
.discovery-list strong { display: block; margin-bottom: .2rem; font-size: 1.25rem; letter-spacing: -.025em; }
.discovery-list small { display: block; color: var(--n-muted); line-height: 1.45; }
.discovery-list b { color: var(--n-orange); font-size: .85rem; }

/* Remember */
.remember-editorial { background: radial-gradient(circle at 10% 20%, rgba(92,52,79,.08), transparent 22rem), linear-gradient(180deg, #efe6db, #f9f4ec); }
.memory-frame { position: relative; max-width: 38rem; margin: auto; }
.memory-frame img { width: 100%; border-radius: 1.4rem; box-shadow: 0 2rem 5rem rgba(63,44,55,.18); }
.memory-frame span { position: absolute; right: .8rem; bottom: .8rem; padding: .65rem .8rem; border-radius: 999px; color: #fff; background: rgba(66,38,57,.75); backdrop-filter: blur(8px); font-size: .58rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }

/* Brand thread timeline */
.thread-section { background: #fff; }
.thread-timeline { position: relative; max-width: 48rem; margin: auto; }
.thread-timeline::before { content: ""; position: absolute; left: 1.55rem; top: 1.6rem; bottom: 1.6rem; width: 1px; background: linear-gradient(var(--n-orange), var(--n-green), var(--n-plum)); }
.thread-step { position: relative; display: grid; grid-template-columns: 3.1rem 1fr; gap: 1.15rem; padding: 0 0 3.2rem; }
.thread-step:last-child { padding-bottom: 0; }
.thread-node { position: relative; z-index: 1; width: 3.1rem; height: 3.1rem; display: grid; place-items: center; border-radius: 50%; border: .35rem solid #fff; color: #fff; background: var(--n-green); box-shadow: 0 .5rem 1.3rem rgba(24,33,31,.15); font-size: .7rem; font-weight: 900; }
.thread-step:nth-child(1) .thread-node { background: var(--n-orange); }
.thread-step:nth-child(3) .thread-node { background: var(--n-plum); }
.thread-copy { padding-top: .1rem; }
.thread-copy small { color: var(--n-muted); font-size: .62rem; font-weight: 900; letter-spacing: .14em; }
.thread-copy h3 { margin: .35rem 0 .55rem; font-size: 1.45rem; line-height: 1.05; font-weight: 850; }
.thread-copy p { margin: 0; color: var(--n-muted); }
.thread-finale { margin-top: 4rem; }
.thread-finale p { max-width: 54rem; margin: auto; color: var(--n-green); font-size: clamp(1.9rem, 7.5vw, 3.65rem); line-height: 1.04; font-weight: 850; letter-spacing: -.05em; }

.final-cta { padding: 4.5rem 0; color: #fff; background: linear-gradient(135deg, #17372e 0%, #254f43 100%); }
.final-cta h2 { margin: 0; color: #fff; font-size: clamp(2.5rem, 10vw, 4.7rem); line-height: .96; font-weight: 900; letter-spacing: -.055em; }

/* --------------------------------------------------------------------------
   INNER PAGES, EXISTING CONTENT WITH NEW V6 VISUAL LANGUAGE
   -------------------------------------------------------------------------- */
.inner-page main { padding-top: 5.6rem; }
.page-hero, .remember-hero, .cave-page-hero { padding: 4.5rem 0 3rem; }
.page-hero { background: radial-gradient(circle at 85% 10%, rgba(239,123,50,.07), transparent 20rem), linear-gradient(180deg, #f6f0e6, #fffdf8); border-bottom: 1px solid var(--n-line); }
.remember-hero { background: radial-gradient(circle at 82% 20%, rgba(92,52,79,.1), transparent 22rem), linear-gradient(180deg, #eee4da, #f8f3eb); }
.cave-page-hero, .cave-dark { color: #fff; background: linear-gradient(180deg,rgba(13,13,11,.72),rgba(13,13,11,.92)), url('/assets/cave-studio.webp') center/cover; }
.cave-page-hero h1, .cave-page-hero h2, .cave-dark h1, .cave-dark h2, .cave-dark h3 { color:#fff; }
.display-hero { font-size: clamp(3.1rem, 12vw, 5.8rem); line-height: .92; font-weight: 900; letter-spacing: -.06em; }
.hero-copy { color: var(--n-muted); }
.content-panel, .purpose-panel, .service-card, .process-step, .contact-panel, .buy-box { border: 1px solid var(--n-line); border-radius: 1.25rem; background: #fff; box-shadow: 0 .75rem 2.2rem rgba(24,33,31,.055); }
.purpose-panel, .service-card, .process-step { padding: 1.35rem; }
.purpose-number { display: block; margin-bottom: .8rem; color: rgba(23,55,46,.18); font-size: 2.5rem; font-weight: 900; line-height: 1; }
.connect-section, .bg-soft { background: linear-gradient(180deg,#faf6ee,#f4eee2); }
.game-card { border-radius: 1.25rem !important; overflow: hidden; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.game-card:hover { transform: translateY(-4px); box-shadow: var(--n-shadow-soft) !important; }
.game-card img { transition: transform .45s ease; }
.game-card:hover img { transform: scale(1.03); }
.fact-chip { display: inline-flex; padding: .35rem .65rem; border-radius: 999px; background: var(--n-cream); font-size: .75rem; font-weight: 850; }
.status-pill { display: inline-flex; align-items: center; padding: .32rem .58rem; border-radius: 999px; font-size: .64rem; font-weight: 900; }
.status-live { color: #16643a; background: #dff3e6; }
.status-soon { color: #8f5800; background: #fff0d5; }
.status-dev { color: #674471; background: #eee8f2; }
.placeholder-art { background: linear-gradient(135deg,#ede6d6,#d5e0d8); }
.placeholder-ubuntu { background: linear-gradient(135deg,#f3dec3,#b8d0b8); }
.placeholder-fourlands { background: linear-gradient(135deg,#d8e6e6,#e9d0a8); }
.placeholder-trees { background: linear-gradient(135deg,#c8dfc2,#f0ddad); }
.placeholder-wisdom { background: linear-gradient(135deg,#dac7db,#e8d8b1); }
.placeholder-family { background: linear-gradient(135deg,#f4d6c7,#d7e7d5); }
.placeholder-quick { background: linear-gradient(135deg,#d0e5ed,#f4d3aa); }
.placeholder-party { background: linear-gradient(135deg,#e8cbe4,#c8e4df); }
.placeholder-culture { background: linear-gradient(135deg,#edcf9e,#b8d4ce); }
.placeholder-initials { color: var(--n-green); font-size: clamp(3.8rem, 10vw, 6rem); font-weight: 900; line-height: 1; }
.fact-box { padding: .9rem; border: 1px solid var(--n-line); border-radius: .95rem; background: #fff; }
.fact-box small { display: block; color: var(--n-muted); font-size: .61rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.fact-box strong { display: block; margin-top: .2rem; }
.check-dot { flex: 0 0 1.35rem; width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 50%; color: #16643a; background: #dff3e6; font-size: .7rem; font-weight: 900; }
.process-step .step-no { display: block; margin-bottom: .85rem; color: var(--n-orange); font-size: .66rem; font-weight: 900; letter-spacing: .14em; }
.premium-note, .premium-panel, .contact-panel, .buy-box { color: #fff; background: linear-gradient(145deg,#17372e,#245447); }

/* Existing Play pages */
.play-section, .play-page, .tool-page { color: #fff; background: radial-gradient(circle at 75% 12%, rgba(239,123,50,.15), transparent 23rem), linear-gradient(180deg,#183c32,#102820); }
.play-tile, .tool-link { color: #fff; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); backdrop-filter: blur(8px); text-decoration: none; transition: transform .2s ease, background .2s ease; }
.play-tile:hover, .tool-link:hover { color:#fff; background: rgba(255,255,255,.11); transform: translateY(-2px); }
.play-tile { position: relative; min-height: 12rem; display: flex; flex-direction: column; padding: 1.25rem; border-radius: 1.15rem; }
.play-tile h3 { margin-top: auto; font-size: 1.12rem; font-weight: 900; }
.play-tile p { margin-bottom: 0; color: rgba(255,255,255,.6); }
.tool-link { display:flex; gap:.8rem; align-items:flex-start; padding:1.05rem; border-radius:1rem; }
.tool-link strong { display:block; }
.tool-link small { display:block; color:rgba(255,255,255,.6); }
.tool-icon, .play-tile-icon { flex:0 0 2.8rem; width:2.8rem; height:2.8rem; display:grid; place-items:center; border-radius:.85rem; color:#24170e; background:var(--n-gold); font-weight:900; }
.tool-icon-small, .play-tile-icon-small { font-size:.68rem; }
.premium-chip { position:absolute; top:.9rem; right:.9rem; padding:.25rem .45rem; border-radius:999px; color:#ffd5ba; background:rgba(239,123,50,.2); font-size:.58rem; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.tool-panel { border:1px solid rgba(255,255,255,.14); border-radius:1.3rem; background:rgba(255,255,255,.07); backdrop-filter:blur(9px); }
.tool-intro { max-width:42rem; }
.spin-input, .license-input { background:rgba(255,255,255,.96)!important; }
.timer-display { margin:1.8rem 0; text-align:center; font-size:clamp(4.8rem,22vw,9rem); line-height:1; font-weight:850; letter-spacing:-.06em; }
.question-shell { max-width:780px; margin:auto; }
.question-card { min-height:20rem; display:flex; flex-direction:column; justify-content:space-between; padding:clamp(1.35rem,5vw,2.8rem); border-radius:1.35rem; color:var(--n-ink); background:#fff8e9; box-shadow:0 1.8rem 4rem rgba(0,0,0,.22); }
.question-category { color:var(--n-orange); font-size:.66rem; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.question-text { margin:1.2rem 0; font-size:clamp(1.9rem,8vw,3.7rem); line-height:1.04; font-weight:850; letter-spacing:-.045em; }
.question-counter { color:var(--n-muted); font-size:.78rem; }
.phone-preview { max-width:360px; border:.6rem solid #0a100e; border-radius:2rem; background:#0e1815; box-shadow:0 2rem 5rem rgba(0,0,0,.32); }
.phone-notch { width:36%; height:1.1rem; margin:auto; border-radius:0 0 .7rem .7rem; background:#0a100e; }
.question-preview { padding:1.2rem; border-radius:1.15rem; color:var(--n-ink); background:#fff8e9; }
.question-preview p { font-size:1.3rem; line-height:1.17; font-weight:750; }

/* Existing Cave pages */
.cave-section, .cave-page { color:#fff; background:#141412; }
.cave-feature { overflow:hidden; border:1px solid rgba(255,255,255,.13); border-radius:1.25rem; background:rgba(255,255,255,.06); box-shadow:0 1.4rem 3rem rgba(0,0,0,.18); }
.play-badge { position:absolute; left:1rem; bottom:1rem; width:3rem; height:3rem; display:grid; place-items:center; border-radius:50%; color:#fff; background:var(--n-orange); }
.cave-video { overflow:hidden; border-radius:1.2rem; background:#080908; }
.proverb-quote { margin:1.8rem 0; padding-left:1rem; border-left:3px solid var(--n-orange); font-size:clamp(1.7rem,7vw,2.9rem); line-height:1.06; font-weight:750; }

/* Legacy discover/remember tiles */
.discover-tile { min-height: 15rem; display:flex; flex-direction:column; padding:1.35rem; border:1px solid var(--n-line); border-radius:1.1rem; color:var(--n-ink); background:#fff; box-shadow:0 .7rem 2rem rgba(24,33,31,.05); text-decoration:none; }
.discover-tile > span { color:var(--n-orange); font-size:1.5rem; }
.discover-tile h3 { margin-top:auto; font-size:1.65rem; }
.discover-tile p { margin-bottom:0; color:var(--n-muted); }
.remember-section { background:radial-gradient(circle at 85% 15%,rgba(92,52,79,.1),transparent 22rem),linear-gradient(180deg,#efe7dc,#f8f3eb); }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer { color:#fff; background:#0d211b; }
.footer-brand { display:inline-flex; align-items:center; gap:.7rem; color:#fff; text-decoration:none; line-height:1; }
.footer-brand:hover { color:#fff; }
.footer-brand img { border-radius:50%; }
.footer-brand strong { display:block; font-size:1.25rem; font-weight:900; }
.footer-brand small { display:block; margin-top:.3rem; color:rgba(255,255,255,.48); font-size:.56rem; font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
.footer-intro { max-width:33rem; color:rgba(255,255,255,.62); }
.site-footer .col-6 > a, .site-footer .col-12 > a:not(.footer-brand), .site-footer .col-md-6 > a { display:block; margin:.48rem 0; color:rgba(255,255,255,.75); text-decoration:none; }
.site-footer a:hover { color:#fff; }
.footer-label { margin-bottom:.9rem; color:rgba(255,255,255,.4); font-size:.62rem; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.footer-small { color:rgba(255,255,255,.55); font-size:.82rem; }
.footer-email { overflow-wrap:anywhere; font-weight:850; }
.footer-bottom { display:flex; flex-direction:column; gap:.45rem; padding-top:1rem; border-top:1px solid rgba(255,255,255,.1); color:rgba(255,255,255,.38); font-size:.72rem; }
.footer-bottom a { color:inherit; text-decoration:none; }

/* --------------------------------------------------------------------------
   REAL 3D DICE
   -------------------------------------------------------------------------- */
.dice-stage { display:flex; justify-content:center; align-items:center; gap:clamp(.7rem,3vw,1.25rem); min-height:16rem; perspective:1100px; overflow:visible; }
.dice-scene { --dice-size:clamp(6.8rem,31vw,10rem); width:var(--dice-size); height:var(--dice-size); position:relative; flex:0 0 auto; transform-style:preserve-3d; }
.dice-scene--land { animation:diceLand .85s cubic-bezier(.2,.75,.25,1) both; }
.dice-cube { position:absolute; inset:0; transform-style:preserve-3d; transition:transform .78s cubic-bezier(.17,.84,.28,1.08); will-change:transform; }
.dice-face { position:absolute; inset:0; display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(3,1fr); place-items:center; padding:14%; border:1px solid rgba(23,55,46,.12); border-radius:22%; background:radial-gradient(circle at 30% 20%,#fff,#fffaf0 52%,#efe2c8); box-shadow:inset -12px -12px 24px rgba(85,60,20,.08); backface-visibility:hidden; }
.dice-face--1{transform:rotateY(0) translateZ(calc(var(--dice-size)/2))}.dice-face--6{transform:rotateY(180deg) translateZ(calc(var(--dice-size)/2))}.dice-face--3{transform:rotateY(90deg) translateZ(calc(var(--dice-size)/2))}.dice-face--4{transform:rotateY(-90deg) translateZ(calc(var(--dice-size)/2))}.dice-face--2{transform:rotateX(90deg) translateZ(calc(var(--dice-size)/2))}.dice-face--5{transform:rotateX(-90deg) translateZ(calc(var(--dice-size)/2))}
.dice-pip { width:31%; aspect-ratio:1; border-radius:50%; background:#17372e; box-shadow:inset 2px 3px 4px rgba(0,0,0,.28); }
.dice-pip--tl{grid-column:1;grid-row:1}.dice-pip--tc{grid-column:2;grid-row:1}.dice-pip--tr{grid-column:3;grid-row:1}.dice-pip--ml{grid-column:1;grid-row:2}.dice-pip--mc{grid-column:2;grid-row:2}.dice-pip--mr{grid-column:3;grid-row:2}.dice-pip--bl{grid-column:1;grid-row:3}.dice-pip--bc{grid-column:2;grid-row:3}.dice-pip--br{grid-column:3;grid-row:3}
@keyframes diceLand { 0%{transform:translateY(-18px) scale(.96)}58%{transform:translateY(5px) scale(1.02)}76%{transform:translateY(-3px) scale(.995)}100%{transform:none} }

.spinner-wrap { display:grid; place-items:center; padding:1rem 0; }
.spinner-stage { position:relative; width:min(78vw,26rem); aspect-ratio:1; }
.spinner-pointer { position:absolute; top:-.75rem; left:50%; transform:translateX(-50%); z-index:3; width:0; height:0; border-left:1.1rem solid transparent; border-right:1.1rem solid transparent; border-bottom:2.2rem solid var(--n-orange); filter:drop-shadow(0 .3rem .3rem rgba(0,0,0,.25)); }
.spinner-wheel { width:100%; height:100%; border-radius:50%; border:.6rem solid #fff8e9; background:conic-gradient(#ef7b32 0 45deg,#d9ad5b 45deg 90deg,#2f6c5a 90deg 135deg,#8c5c82 135deg 180deg,#f2a564 180deg 225deg,#d8c07d 225deg 270deg,#4c8775 270deg 315deg,#aa7ca0 315deg); box-shadow:0 1.5rem 4rem rgba(0,0,0,.28); transition:transform 3.2s cubic-bezier(.17,.67,.12,.98); }
.spinner-center { position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); width:28%; aspect-ratio:1; display:grid; place-items:center; border:.3rem solid rgba(23,55,46,.12); border-radius:50%; color:var(--n-green); background:#fff8e9; font-weight:950; z-index:2; }

/* --------------------------------------------------------------------------
   TABLET + DESKTOP ENHANCEMENTS
   -------------------------------------------------------------------------- */
@media (min-width: 576px) {
  .floating-header { top: .85rem; width: calc(100% - 1.5rem); }
  .floating-brand small { display:block; }
  .masthead-content { padding-bottom: 6.8rem; }
  .masthead h1 { font-size: clamp(4rem, 13vw, 6.7rem); }
  .section-space { padding: 6rem 0; }
  .cave-feature-strip { grid-template-columns:auto 1fr auto; align-items:center; gap:1rem; }
  .cave-feature-strip span { grid-column:1; }
  .cave-feature-strip strong { grid-column:2; grid-row:1; }
  .cave-feature-strip small { grid-column:2; grid-row:2; }
  .cave-feature-strip b { grid-column:3; grid-row:1 / 3; }
  .footer-bottom { flex-direction:row; justify-content:space-between; }
}

@media (min-width: 768px) {
  .section-title, .display-section { font-size: clamp(3rem, 7vw, 5.3rem); }
  .display-page { font-size: clamp(3.8rem, 8vw, 6.5rem); }
  .section-lead { font-size:1.12rem; }
  .masthead-content { padding-bottom: 7.2rem; }
  .masthead h1 { max-width: 9ch; font-size:clamp(5rem,10vw,7.4rem); }
  .masthead-lead { font-size:1.2rem; }
  .scroll-cue { display:flex; }
  .world-card { min-height:31rem; }
  .world-card-copy { inset:auto 1.6rem 1.6rem; }
  .featured-art { min-height:31rem; }
  .featured-art-main { width:88%; }
  .featured-art-box { width:38%; }
  .play-demo { padding:1.25rem; }
  .demo-question p { font-size:1.35rem; }
  .thread-timeline::before { left:2rem; }
  .thread-step { grid-template-columns:4rem 1fr; gap:1.5rem; padding-bottom:4rem; }
  .thread-node { width:4rem; height:4rem; }
  .thread-copy h3 { font-size:1.8rem; }
  .inner-page main { padding-top:6.5rem; }
  .page-hero, .remember-hero, .cave-page-hero { padding:5.5rem 0 4rem; }
}

@media (min-width: 992px) {
  .floating-header { top:1rem; width:calc(100% - 2rem); }
  .floating-nav { border-radius:999px; }
  .floating-nav__inner { min-height:4.1rem; padding:.45rem .5rem .45rem .85rem; }
  .floating-brand img { width:2.45rem; height:2.45rem; }
  .floating-link { padding:.58rem .72rem; font-size:.8rem; }
  .masthead { align-items:center; background-position:center 45%; }
  .masthead-shade { background:linear-gradient(90deg,rgba(7,15,12,.82) 0%,rgba(7,15,12,.55) 43%,rgba(7,15,12,.15) 76%),linear-gradient(180deg,rgba(7,14,12,.2),rgba(7,14,12,.48)); }
  .masthead-content { padding-top:9rem; padding-bottom:5.5rem; }
  .masthead h1 { font-size:clamp(5.8rem,8.5vw,8.5rem); }
  .masthead-lead { max-width:40rem; }
  .section-space { padding:7rem 0; }
  .world-card { min-height:36rem; }
  .world-card-copy h3 { font-size:2.7rem; }
  .featured-art { min-height:36rem; }
  .cave-portal { min-height:100vh; background-attachment:fixed; }
  .cave-feature-strip { left:50%; right:auto; width:min(100% - 3rem, 1080px); transform:translateX(-50%); bottom:1.5rem; padding:1.15rem 1.3rem; }
  .discovery-list a { padding:1.45rem 0; }
  .thread-timeline { max-width:52rem; }
  .thread-copy h3 { font-size:2rem; }
  .final-cta { padding:6rem 0; }
  .inner-page main { padding-top:7rem; }
}

@media (min-width: 1200px) {
  .floating-link { padding-left:.85rem; padding-right:.85rem; }
  .masthead h1 { font-size:8.6rem; }
  .section-space { padding:8rem 0; }
  .featured-art-main { width:90%; }
  .featured-art-box { right:-1rem; width:36%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  html.motion-ready [data-reveal] { opacity:1; transform:none; }
  .scroll-cue { display:none; }
}
