@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Nunito+Sans:wght@400;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --void: #05040d;
  --abyss: #090716;
  --panel: rgba(18, 13, 37, 0.78);
  --panel-strong: rgba(23, 16, 47, 0.94);
  --violet: #7b45ed;
  --glow: #b98aff;
  --lilac: #ddc8ff;
  --cream: #fff7e7;
  --muted: #b8aaca;
  --gold: #e9bd71;
  --line: rgba(225, 181, 112, 0.38);
  --violet-line: rgba(185, 138, 255, 0.28);
  --sans: 'Nunito Sans', Inter, ui-sans-serif, system-ui, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--void); }
body { margin: 0; overflow-x: hidden; color: var(--cream); font-family: var(--sans); background: radial-gradient(circle at 50% 14%, #171039, transparent 36%), var(--abyss); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background-image: radial-gradient(circle, rgba(255,255,255,.32) 0 1px, transparent 1.5px), radial-gradient(circle, rgba(190,135,255,.3) 0 1px, transparent 1.5px); background-position: 13px 19px, 77px 51px; background-size: 89px 93px, 137px 127px; opacity: .48; }
.ambient i { position: absolute; width: 22rem; height: 22rem; border-radius: 50%; background: rgba(102,52,219,.16); filter: blur(90px); animation: ambient-drift 14s ease-in-out infinite alternate; }
.ambient i:nth-child(1) { left: -10rem; top: 22%; }.ambient i:nth-child(2) { right: -8rem; top: 40%; animation-delay: -3s; }.ambient i:nth-child(3) { left: 25%; top: 72%; animation-delay: -7s; }.ambient i:nth-child(4) { right: 18%; top: 4%; animation-delay: -9s; }.ambient i:nth-child(5) { left: 46%; top: 45%; width: 12rem; height: 12rem; animation-delay: -5s; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; }
.nav-shell { width: min(1240px, calc(100% - 48px)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 800; letter-spacing: .36em; }
.brand img { width: 42px; height: 42px; object-fit: cover; border-radius: 12px; filter: drop-shadow(0 0 16px rgba(161,105,255,.7)); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); color: var(--muted); font-size: 13px; }
.nav-links a { position: relative; padding: 30px 0 27px; transition: color .2s ease; }
.nav-links a::after { content: ''; position: absolute; inset: auto 0 -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--glow), transparent); transform: scaleX(0); transition: transform .25s ease; }
.nav-links a:hover { color: var(--cream); }.nav-links a:hover::after { transform: scaleX(1); }

.pill, .ghost-pill { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; border-radius: 999px; padding: 0 26px; font-size: 14px; font-weight: 800; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.pill { border: 1px solid #d3a1ff; background: linear-gradient(100deg, #5523bb, #9f4df0); box-shadow: 0 0 0 3px rgba(149,83,241,.17), 0 0 28px rgba(133,59,230,.55), inset 0 1px rgba(255,255,255,.38); }
.pill:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(149,83,241,.2), 0 0 42px rgba(133,59,230,.78), inset 0 1px rgba(255,255,255,.45); }
.pill-small { min-height: 42px; padding: 0 22px; font-size: 12px; }
.ghost-pill { border: 1px solid var(--line); background: rgba(6,4,14,.55); color: var(--cream); }
.ghost-pill:hover { transform: translateY(-2px); border-color: var(--gold); }

.hero { min-height: 820px; position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); align-items: center; padding: 120px max(24px, calc((100vw - 1240px) / 2)) 110px; isolation: isolate; }
.hero-hall { position: absolute; inset: 0; z-index: -3; background: url('assets/bg-hall.webp') center 54% / cover no-repeat; filter: saturate(1.08) contrast(1.04); }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(4,3,12,.96) 0%, rgba(4,3,12,.76) 39%, rgba(5,4,15,.15) 70%, rgba(5,4,13,.46) 100%), linear-gradient(0deg, var(--abyss) 0%, transparent 22%, rgba(6,4,15,.16) 82%, rgba(6,4,15,.75) 100%); }
.hero-copy { position: relative; z-index: 2; max-width: 620px; padding-top: 48px; }
.kicker { margin: 0; display: flex; align-items: center; gap: 9px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.kicker span { width: 18px; height: 1px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); }
h1 { margin-bottom: 22px; font-size: clamp(58px, 5.4vw, 86px); line-height: .92; letter-spacing: -.035em; font-weight: 600; text-shadow: 0 4px 30px rgba(3,2,12,.7); }
h1 em { color: var(--gold); font-weight: 500; }
.hero-lede { max-width: 540px; margin-bottom: 30px; color: #c9bdd7; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }.hero-actions b { letter-spacing: 2px; }
.platform-note { margin: 17px 0 0; color: rgba(221,200,255,.56); font-size: 11px; letter-spacing: .06em; }

.hero-creature { position: relative; width: min(590px, 48vw); aspect-ratio: 1; justify-self: end; align-self: center; display: grid; place-items: center; }
.portal-rings, .portal-rings i { position: absolute; inset: 5%; border-radius: 50%; }
.portal-rings { background: radial-gradient(circle, rgba(145,73,246,.42), transparent 58%); filter: drop-shadow(0 0 35px rgba(123,69,237,.52)); animation: portal-breathe 4.8s ease-in-out infinite; }
.portal-rings i { border: 1px solid rgba(218,189,255,.25); }.portal-rings i:nth-child(1) { transform: rotate(16deg) scaleX(.78); }.portal-rings i:nth-child(2) { transform: rotate(-27deg) scaleY(.8); border-color: rgba(233,189,113,.3); }.portal-rings i:nth-child(3) { inset: 18%; border-style: dashed; animation: spin 36s linear infinite; }
.hero-daimon { position: relative; z-index: 2; width: 48%; filter: drop-shadow(0 20px 34px rgba(11,3,33,.95)) drop-shadow(0 0 28px rgba(173,99,255,.82)); animation: creature-float 5.2s ease-in-out infinite; }
.hero-orb { position: absolute; right: 0; bottom: 8%; z-index: 3; width: 27%; filter: drop-shadow(0 13px 20px rgba(6,2,22,.9)); animation: creature-float 6.3s -1.5s ease-in-out infinite; }
.hero-spark { position: absolute; z-index: 4; color: var(--gold); filter: drop-shadow(0 0 9px currentColor); animation: spark 2.6s ease-in-out infinite; }.spark-a { right: 13%; top: 23%; font-size: 28px; }.spark-b { left: 15%; top: 18%; animation-delay: -.8s; }.spark-c { left: 22%; bottom: 16%; font-size: 18px; animation-delay: -1.6s; }

.feature-strip { width: min(1280px, calc(100% - 48px)); margin: -62px auto 0; position: relative; z-index: 8; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.feature-strip a { min-height: 118px; display: flex; align-items: center; gap: 12px; padding: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(20,14,43,.93), rgba(8,6,21,.94)); box-shadow: 0 18px 42px rgba(1,0,7,.38); transition: transform .25s ease, border-color .25s ease; }
.feature-strip a:hover { transform: translateY(-5px); border-color: rgba(227,189,126,.75); }
.feature-strip img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 0 15px rgba(155,89,255,.55)); }
.feature-strip span { min-width: 0; }.feature-strip strong { display: block; margin-bottom: 5px; color: var(--gold); font-family: var(--serif); font-size: 18px; }.feature-strip small { display: block; color: var(--muted); font-size: 10px; line-height: 1.45; }

.chapter { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 92px 0 16px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2, .daimling-banner h2 { margin: 8px 0 0; font-size: clamp(42px, 4vw, 58px); line-height: 1; }.section-heading h2 em, .daimling-banner h2 em { color: var(--gold); font-style: normal; }
.section-heading > a { color: var(--muted); font-size: 12px; }.section-heading > a span { margin-left: 8px; color: var(--gold); }
.daimon-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.character-card { position: relative; min-height: 315px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; text-align: center; background: linear-gradient(160deg, rgba(38,24,73,.95), rgba(10,7,24,.96)); transition: transform .28s ease, box-shadow .28s ease; }
.character-card:hover { transform: translateY(-7px); box-shadow: 0 22px 52px rgba(4,1,15,.65), 0 0 28px rgba(126,67,228,.23); }
.portrait { height: 210px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 46%, rgba(164,87,255,.42), transparent 54%), linear-gradient(180deg, rgba(104,50,180,.25), transparent); border-bottom: 1px solid var(--line); }
.portrait::before { content: ''; position: absolute; top: 25px; width: 160px; height: 160px; border: 1px solid rgba(231,197,255,.18); border-radius: 50%; box-shadow: inset 0 0 24px rgba(119,63,226,.22); }
.portrait img { position: relative; width: 155px; height: 155px; object-fit: contain; filter: drop-shadow(0 15px 21px rgba(2,0,9,.65)); transition: transform .35s ease; }.character-card:hover .portrait img { transform: scale(1.07) rotate(2deg); }
.character-card h3 { margin: 14px 0 0; color: var(--gold); font-size: 23px; }.character-card p { margin: 2px 0; color: var(--cream); font-size: 12px; }.character-card small { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.tone-b .portrait img { filter: hue-rotate(28deg) drop-shadow(0 15px 21px rgba(2,0,9,.65)); }.tone-c .portrait img { filter: hue-rotate(78deg) saturate(.85) drop-shadow(0 15px 21px rgba(2,0,9,.65)); }.tone-d .portrait img { filter: grayscale(.32) hue-rotate(205deg) drop-shadow(0 15px 21px rgba(2,0,9,.65)); }.tone-e .portrait img { filter: hue-rotate(280deg) saturate(1.6) drop-shadow(0 15px 21px rgba(2,0,9,.65)); }

.daimling-banner { width: min(1240px, calc(100% - 48px)); min-height: 380px; margin: 82px auto 0; display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: 30px; padding: 44px 55px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 73% 45%, rgba(132,66,229,.46), transparent 31%), linear-gradient(110deg, rgba(13,9,30,.97), rgba(25,14,58,.92)); box-shadow: 0 24px 70px rgba(1,0,9,.48); }
.banner-copy { position: relative; z-index: 3; }.banner-copy > p:not(.kicker) { max-width: 470px; color: var(--muted); font-size: 14px; line-height: 1.65; }.banner-copy .pill { min-height: 44px; margin-top: 8px; padding-inline: 20px; font-size: 12px; }
.nursery { position: relative; height: 300px; display: flex; align-items: end; justify-content: center; gap: 12px; }
.nursery::before { content: ''; position: absolute; inset: 20% 4% 0; border-radius: 50%; background: radial-gradient(ellipse, rgba(145,72,244,.42), transparent 66%); filter: blur(10px); }
.nursery-pod { position: relative; width: 31%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50% 50% 44% 44%; background: radial-gradient(circle at 50% 34%, rgba(214,180,255,.16), rgba(46,23,92,.58) 58%, rgba(8,5,22,.85)); border: 1px solid rgba(222,190,255,.2); box-shadow: inset 0 0 28px rgba(149,83,241,.24), 0 18px 30px rgba(3,1,13,.55); animation: pod-float 5.5s ease-in-out infinite; }
.nursery-pod img { width: 76%; filter: drop-shadow(0 0 19px rgba(176,91,255,.62)); }.pod-two { transform: translateY(-24px); animation-delay: -1.8s; }.pod-two img { filter: hue-rotate(75deg) saturate(.72) drop-shadow(0 0 19px rgba(126,225,157,.44)); }.pod-three { animation-delay: -3.4s; }.pod-three img { filter: hue-rotate(285deg) saturate(1.2) drop-shadow(0 0 19px rgba(255,160,92,.44)); }

.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.game-grid article { min-height: 126px; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(25,17,50,.86), rgba(8,6,19,.9)); }
.game-grid img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 0 15px rgba(153,87,245,.48)); }.game-grid h3 { margin-bottom: 4px; color: var(--gold); font-size: 18px; }.game-grid p { margin-bottom: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

.closing-card { width: min(1240px, calc(100% - 48px)); min-height: 176px; margin: 92px auto 70px; display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 25px; padding: 25px 38px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 12% 50%, rgba(120,59,218,.42), transparent 18%), linear-gradient(100deg, rgba(18,12,40,.96), rgba(10,7,23,.98)); }
.closing-card > img { width: 126px; filter: drop-shadow(0 0 22px rgba(161,87,255,.56)); }.closing-card h2 { margin: 5px 0 3px; font-size: 38px; }.closing-card p:not(.kicker) { margin: 0; color: var(--muted); font-size: 13px; }

footer { min-height: 180px; display: grid; grid-template-columns: 1fr 1.2fr 1fr auto; align-items: center; gap: 28px; padding: 36px max(24px, calc((100vw - 1240px) / 2)); border-top: 1px solid rgba(255,255,255,.08); background: rgba(3,2,9,.72); color: rgba(221,200,255,.55); font-size: 11px; }
.footer-brand { color: var(--cream); }.footer-brand img { width: 36px; height: 36px; }.footer-brand span { font-size: 13px; }
footer p { margin: 0; line-height: 1.6; }footer nav { display: flex; flex-wrap: wrap; gap: 15px; }footer nav a:hover { color: var(--cream); }

@keyframes ambient-drift { to { transform: translate3d(40px,-26px,0) scale(1.1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes portal-breathe { 50% { transform: scale(1.035); filter: drop-shadow(0 0 52px rgba(123,69,237,.72)); } }
@keyframes creature-float { 50% { transform: translateY(-13px) rotate(1.5deg); } }
@keyframes pod-float { 50% { translate: 0 -8px; } }
@keyframes spark { 50% { opacity: .25; transform: scale(.62) rotate(24deg); } }

@media (max-width: 1050px) {
  .nav-links { display: none; }
  .hero { min-height: 780px; grid-template-columns: 1fr .85fr; }
  .feature-strip { grid-template-columns: repeat(3, 1fr); margin-top: -42px; }.feature-strip a:nth-child(n+4) { display: none; }
  .daimon-grid { grid-template-columns: repeat(3, 1fr); }.character-card:nth-child(n+4) { display: none; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-shell { width: calc(100% - 28px); min-height: 70px; }.brand span { font-size: 13px; letter-spacing: .24em; }.brand img { width: 36px; height: 36px; }.pill-small { min-height: 38px; padding: 0 15px; }
  .hero { min-height: 900px; grid-template-columns: 1fr; align-content: start; padding: 128px 22px 110px; text-align: center; }.hero-hall { background-position: 51% 44%; }.hero-shade { background: linear-gradient(180deg, rgba(4,3,12,.83), rgba(4,3,12,.74) 45%, rgba(5,4,15,.2) 72%, var(--abyss)); }.hero-copy { max-width: 580px; margin: 0 auto; padding-top: 0; }.kicker, .hero-actions { justify-content: center; }.hero-lede { font-size: 15px; }.hero-creature { width: min(480px, 94vw); margin: -20px auto 0; justify-self: center; }.hero-daimon { width: 42%; }.hero-orb { right: 10%; }
  .feature-strip { width: calc(100% - 28px); grid-template-columns: 1fr; margin-top: -52px; }.feature-strip a:nth-child(n) { display: flex; min-height: 92px; }.feature-strip img { width: 52px; height: 52px; }
  .chapter, .daimling-banner, .closing-card { width: calc(100% - 28px); }.chapter { padding-top: 72px; }.section-heading { align-items: start; }.section-heading > a { display: none; }.daimon-grid { grid-template-columns: repeat(2, 1fr); }.character-card:nth-child(3) { display: none; }.character-card { min-height: 270px; }.portrait { height: 172px; }.portrait img { width: 130px; }.portrait::before { width: 132px; height: 132px; }
  .daimling-banner { min-height: 0; grid-template-columns: 1fr; padding: 36px 24px 22px; text-align: center; }.banner-copy .kicker { justify-content: center; }.nursery { height: 220px; }.nursery-pod { width: 35%; }.pod-one { display: none; }
  .game-grid { grid-template-columns: 1fr; }.closing-card { grid-template-columns: 82px 1fr; padding: 24px; }.closing-card > img { width: 78px; }.closing-card .pill { grid-column: 1 / -1; }.closing-card h2 { font-size: 30px; }
  footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }footer nav { justify-content: center; }
}

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