/* ==========================================================================
   AETHERIA: Website stylesheet
   --------------------------------------------------------------------------
   Contents
     1.  Design tokens (EDIT COLORS & FONTS HERE)
     2.  Base & reset
     3.  Layout helpers
     4.  Typography components
     5.  Buttons & links
     6.  Header & navigation (centred crest)
     7.  Hero (homepage)
     8.  "Begin" steps band
     9.  Intro / about
     10. Features (showcase cards)
     11. Play anywhere (device showcase), optional video player, latest updates
     12. Community (Discord)
     13. Final call-to-action
     14. Footer
     15. How to Play page (devices, tips, controls, FAQ)
     16. Shared decorative pieces (frames, seams, toast)
     17. Motion: reveals, keyframes, reduced motion
     18. Responsive
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS: palette sampled from the Aetheria logo
      Gold     = the gilded outlines of the lettering (accents, borders, primary buttons)
      Sapphire = the glowing star gems (glows, light, particles)
      Pearl    = the silver letter faces (headings, highlights)
      Indigo   = the night sky of the artwork (backgrounds)
   ========================================================================== */
:root {
  /* Indigo night (backgrounds) */
  --bg:            #05061a;
  --bg-2:          #080a26;
  --bg-3:          #0c0f34;
  --charcoal:      #14163a;

  /* Gilded gold (logo outlines). Names are kept from the original template:
     --frost is the main accent colour and --ice is its brightest highlight. */
  --ice:           #fff1cf;
  --frost:         #e8c27a;
  --frost-2:       #c8913e;
  --gold-deep:     #8a5a20;
  --steel:         #b9c3ea;
  --steel-dim:     #8590c0;

  /* Sapphire gem (logo star gems) */
  --rune:          #4f86ff;
  --rune-deep:     #2346d8;
  --pearl:         #e6efff;

  /* Discord brand accent (used sparingly on Discord buttons) */
  --discord:       #5865f2;

  /* Text */
  --text:          #eef1ff;
  --text-2:        #bcc3e6;
  --text-3:        #8b93c0;

  /* Lines & glows */
  --line:          rgba(150, 172, 255, 0.10);
  --line-2:        rgba(150, 172, 255, 0.20);
  --line-3:        rgba(232, 194, 122, 0.42);
  --glow:          rgba(80, 140, 255, 0.45);
  --glow-gold:     rgba(232, 180, 90, 0.40);

  /* Metallic gradients mirroring the logo: pearl lettering, and the gilded Play Now fill */
  --metal: linear-gradient(180deg, #ffffff 0%, #eef3ff 30%, #b8c8f5 58%, #dfe7ff 78%, #ffffff 100%);
  --ice-fill: linear-gradient(180deg, #fff6df 0%, #f4d796 36%, #dcab55 70%, #b47c30 100%);

  /* Fonts: Cinzel echoes the logo's carved Roman capitals */
  --font-display: "Cinzel", "Georgia", serif;
  --font-accent:  "Cinzel Decorative", "Cinzel", serif;
  --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape: chamfered corners echo the logo's pointed flourishes */
  --cut: 12px;
  --chamfer: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 8.5vw, 120px);
  --header-h: 84px;
  --crest-w: 270px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* animatable angle for the rotating gilded borders */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }


/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* e.g. Discord links until an invite is set in js/config.js */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 40px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
/* Fine film grain over the whole site for a painted, non-flat feel */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: rgba(232, 194, 122, 0.28); color: #fff; }
:focus-visible { outline: 2px solid var(--frost); outline-offset: 3px; border-radius: 2px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }


/* ==========================================================================
   3. LAYOUT HELPERS
   ========================================================================== */
.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-y); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--frost); color: #1a1004; font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }


/* ==========================================================================
   4. TYPOGRAPHY COMPONENTS
   ========================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--frost);
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 7px; height: 7px; flex: none;
  background: var(--frost); transform: rotate(45deg);
  box-shadow: 0 0 10px var(--glow);
}
.eyebrow--line::before { width: 36px; height: 1px; transform: none; background: linear-gradient(90deg, transparent, var(--frost)); box-shadow: none; }
.eyebrow--line::after { display: none; }

.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--text);
  text-wrap: balance;
}
.title--sm { font-size: clamp(1.75rem, 3vw, 2.45rem); }

/* Gilded accent for a single phrase in a headline (like the logo's gold lettering edges) */
.accent {
  font-family: var(--font-accent);
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fffaf0 8%, var(--ice) 30%, var(--frost) 62%, var(--frost-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(232, 180, 90, 0.28)) drop-shadow(0 0 2px rgba(80, 140, 255, 0.35));
  padding-right: 0.06em;
  text-transform: uppercase; /* Cinzel Decorative's lowercase forms are very ornate; capitals read cleaner */
}

.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.75; color: var(--text-2); max-width: 60ch; }

.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* Ornamental divider: line, winged gem, line (echoes the logo banner) */
.ornament { display: flex; align-items: center; gap: 14px; color: var(--frost); width: min(340px, 80%); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-3)); }
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 64px; height: 16px; flex: none; }


/* ==========================================================================
   5. BUTTONS & LINKS
   Layers: ::before = chamfered border, ::after = fill (+ hover shine).
   The button itself carries a drop-shadow so the glow follows the shape.
   ========================================================================== */
.btn {
  --b-border: linear-gradient(180deg, rgba(255, 236, 196, 0.55), rgba(200, 150, 80, 0.18));
  --b-fill: linear-gradient(180deg, rgba(20, 26, 66, 0.9), rgba(9, 12, 34, 0.9));
  --b-shine: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.22) 50%, transparent 62%);
  --b-glow: rgba(0, 0, 0, 0);
  --cut: 10px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 30px;
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
  color: var(--text);
  filter: drop-shadow(0 10px 24px var(--b-glow));
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease), color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn::before, .btn::after { content: ""; position: absolute; z-index: -1; clip-path: var(--chamfer); }
.btn::before { inset: 0; background: var(--b-border); z-index: -2; }
.btn::after {
  inset: 1px; --cut: 9.6px;
  background: var(--b-shine) no-repeat, var(--b-fill);
  background-size: 260% 100%, 100% 100%;
  background-position: 140% 0, 0 0;
  transition: background-position 0.8s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { background-position: -40% 0, 0 0; }
.btn:active { transform: translateY(0) scale(0.985); }
.btn .icon { width: 20px; height: 20px; transition: transform 0.35s var(--ease); }
.btn:hover .icon { transform: scale(1.12); }

.btn--primary {
  --b-border: linear-gradient(180deg, #ffffff, #e8c27a 55%, #8a5a20);
  --b-fill: var(--ice-fill);
  --b-shine: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.85) 50%, transparent 62%);
  --b-glow: rgba(232, 180, 90, 0.38);
  color: #1f1405;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn--primary:hover { --b-glow: rgba(245, 200, 110, 0.6); }
/* Sapphire gem button (the logo's star gems), used for PLAY ON MOBILE */
.btn--arcane {
  --b-border: linear-gradient(180deg, #e4ecff, #7da4ff 50%, #1d36b8);
  --b-fill: linear-gradient(180deg, #9cbcff 0%, #5a86ff 36%, #2f52e2 72%, #1c2fa4 100%);
  --b-shine: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.6) 50%, transparent 62%);
  --b-glow: rgba(80, 130, 255, 0.45);
  color: #fff;
  text-shadow: 0 1px 10px rgba(8, 16, 80, 0.7);
}
.btn--arcane:hover { --b-glow: rgba(110, 160, 255, 0.7); }
.btn--ghost:hover { --b-glow: rgba(80, 140, 255, 0.22); --b-border: linear-gradient(180deg, rgba(255, 236, 196, 0.9), rgba(200, 150, 80, 0.35)); }

.btn--discord .icon { color: #a7b0ff; filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.6)); }
.btn--discord:hover { --b-glow: rgba(88, 101, 242, 0.35); --b-border: linear-gradient(180deg, #b9c0ff, rgba(88, 101, 242, 0.5)); --b-fill: linear-gradient(180deg, rgba(48, 56, 120, 0.92), rgba(18, 22, 52, 0.92)); }
.btn--discord:hover .icon { color: #fff; }

.btn--lg { min-height: 62px; padding: 0 36px; font-size: 1.12rem; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.88rem; gap: 9px; --cut: 8px; }
.btn--sm::after { --cut: 7.6px; }
.btn--block { width: 100%; }

.btn[aria-disabled="true"] {
  --b-border: linear-gradient(180deg, rgba(170, 180, 220, 0.25), rgba(170, 180, 220, 0.08));
  --b-fill: repeating-linear-gradient(135deg, rgba(20, 24, 56, 0.9) 0 10px, rgba(15, 18, 44, 0.9) 10px 20px);
  color: var(--text-3); cursor: not-allowed; transform: none; filter: none;
}

.link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--frost); font-weight: 700; font-size: 0.95rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s;
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1px; color: var(--ice); }
.link .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link:hover .icon { transform: translateX(3px); }


/* ==========================================================================
   6. HEADER & NAVIGATION: full-width glass bar with a centred logo crest
   To add a page: copy an <li> into one of the .nav-links lists AND add a
   matching link to .mobile-menu (see comments in the HTML).
   ========================================================================== */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.header-bar {
  --gap: calc(var(--crest-w) / 2 + 34px);
  position: relative;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(3, 4, 16, 0.9), rgba(4, 5, 18, 0.62));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: height 0.45s var(--ease), background 0.45s var(--ease);
}
/* frost line along the bottom, parting around the crest */
.header-bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 194, 122, 0.18) 12%, rgba(232, 194, 122, 0.55) 46%, rgba(232, 194, 122, 0.55) 54%, rgba(232, 194, 122, 0.18) 88%, transparent);
  -webkit-mask: linear-gradient(90deg, #000 calc(50% - var(--gap)), transparent calc(50% - var(--gap)), transparent calc(50% + var(--gap)), #000 calc(50% + var(--gap)));
          mask: linear-gradient(90deg, #000 calc(50% - var(--gap)), transparent calc(50% - var(--gap)), transparent calc(50% + var(--gap)), #000 calc(50% + var(--gap)));
}
/* gems where the line parts */
.header-bar__gems { position: absolute; left: 50%; bottom: -4px; width: calc(var(--gap) * 2); height: 9px; transform: translateX(-50%); pointer-events: none; }
.header-bar__gems::before, .header-bar__gems::after {
  content: ""; position: absolute; top: 0; width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--frost); box-shadow: 0 0 10px var(--glow);
}
.header-bar__gems::before { left: -4px; }
.header-bar__gems::after { right: -4px; }
/* scroll progress (thin light along the top edge) */
.header-progress { position: absolute; left: 0; top: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: linear-gradient(90deg, transparent, var(--frost), var(--ice)); opacity: 0.7; }

.header-inner {
  height: 100%; width: min(1380px, 100% - 48px); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 26px;
}
.header-side { display: flex; align-items: center; gap: 22px; min-width: 0; justify-content: space-between; }
.header-side--left { justify-content: flex-end; }
/* PLAY NOW in the header: the most prominent item in the navigation */
.header-play { min-height: 46px; padding: 0 22px; font-size: 0.92rem; }
.header-play::before { animation: play-glow 3.2s var(--ease-in-out) infinite; }

.crest {
  position: relative; z-index: 2; align-self: start;
  width: var(--crest-w); margin-top: 8px;
  transition: width 0.45s var(--ease), margin 0.45s var(--ease);
}
.crest img { width: 100%; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 16px rgba(80, 140, 255, 0.22)); transition: filter 0.35s; }
.crest::before { /* breathing sapphire aura behind the logo */
  content: ""; position: absolute; inset: -6% 4% -14%;
  background: radial-gradient(closest-side, rgba(80, 140, 255, 0.34), rgba(70, 120, 255, 0.08) 60%, transparent);
  filter: blur(8px); z-index: -1; pointer-events: none;
  animation: aura 6s var(--ease-in-out) infinite;
}
.crest::after { /* star gem glint (the logo's central gem sits at 50% / 28%) */
  content: ""; position: absolute; left: 50%; top: 28%;
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  background: radial-gradient(circle, rgba(235, 244, 255, 0.95) 0%, rgba(90, 150, 255, 0.5) 20%, transparent 62%);
  mix-blend-mode: screen; pointer-events: none;
  animation: gem-pulse 4.5s var(--ease-in-out) infinite;
}
.crest:hover img { filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 26px rgba(80, 140, 255, 0.45)); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; display: block;
  padding: 10px 14px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 6px; height: 6px; margin-left: -3px;
  background: var(--frost); transform: rotate(45deg) scale(0);
  box-shadow: 0 0 10px var(--glow);
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: rotate(45deg) scale(0.6); }
.nav-links a[aria-current="page"] { color: var(--ice); }
.nav-links a[aria-current="page"]::after { transform: rotate(45deg) scale(1); }

.site-header.is-scrolled .header-bar { height: 68px; background: linear-gradient(180deg, rgba(3, 4, 16, 0.94), rgba(5, 7, 22, 0.88)); }
.site-header.is-scrolled { --crest-w: 205px; }
.site-header.is-scrolled .crest { margin-top: 5px; }

.nav-toggle { display: none; width: 46px; height: 46px; position: relative; color: var(--text); }
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s, top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; right: 18px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.menu-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  --cut: 14px;
  position: absolute; top: calc(100% + 34px); left: 12px; right: 12px;
  clip-path: var(--chamfer);
  background: rgba(7, 9, 28, 0.97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  padding: 14px 18px 18px;
  display: none; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 8px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.06em;
}
.mobile-menu a:not(.btn)[aria-current="page"] { color: var(--ice); }
.mobile-menu a:not(.btn) .icon { color: var(--frost); width: 18px; height: 18px; }
.mobile-menu .soon { font-family: var(--font-body); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-dim); }
.mobile-menu .btn { margin-top: 12px; }


/* ==========================================================================
   7. HERO (homepage)
   Layers (back to front): key art (parallax), shading, mist, particles, content
   ========================================================================== */
.hero {
  position: relative;
  min-height: max(740px, 100svh);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 70px) 0 170px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: -3% -2%; will-change: transform; }
.hero__bg {
  z-index: -6;
  /* shown while the artwork loads */
  background: radial-gradient(18% 30% at 68% 36%, rgba(90, 140, 255, 0.38), transparent 70%), linear-gradient(180deg, #03040f 0%, #0a1246 60%, #141f62 100%);
}
.hero__bg picture { display: block; width: 100%; height: 100%; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

.hero__shade {
  position: absolute; inset: 0; z-index: -4; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 4, 16, 0.9) 0%, rgba(3, 4, 16, 0.8) 26%, rgba(3, 4, 16, 0.5) 45%, rgba(3, 4, 16, 0.1) 62%, rgba(3, 4, 16, 0) 72%),
    linear-gradient(180deg, rgba(5, 6, 20, 0.5) 0%, rgba(5, 6, 20, 0) 22%, rgba(5, 6, 20, 0) 62%, var(--bg) 100%);
}
.hero__fog { position: absolute; inset: auto -20% 4% -20%; height: 46%; z-index: -3; pointer-events: none; }
.hero__fog span {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 20% 60%, rgba(110, 140, 240, 0.16), transparent 70%),
    radial-gradient(35% 45% at 62% 70%, rgba(110, 140, 240, 0.12), transparent 70%),
    radial-gradient(30% 40% at 90% 55%, rgba(110, 140, 240, 0.14), transparent 70%);
  filter: blur(18px);
  will-change: transform;
  animation: fog-drift 38s linear infinite alternate;
}
.hero__fog span:nth-child(2) { animation-duration: 54s; animation-direction: alternate-reverse; opacity: 0.8; top: 18%; }

/* particle canvases fill whatever area they are placed in */
.particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }

.hero__content { max-width: 740px; display: grid; justify-items: start; }
.hero__eyebrow { margin-bottom: 22px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin-bottom: 26px;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
}
.hero__title .accent { display: inline-block; }
.hero__text { font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--text-2); max-width: 52ch; margin-bottom: 40px; text-shadow: 0 2px 14px rgba(2, 3, 12, 0.85); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }
/* "At a glance" facts under the hero buttons */
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 30px; }
.hero__facts li {
  --cut: 8px;
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px;
  clip-path: var(--chamfer); background: rgba(9, 12, 34, 0.72); box-shadow: inset 0 0 0 1px var(--line-3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.03em; color: var(--text-2);
}
.hero__facts svg { width: 18px; height: 18px; color: var(--frost); flex: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 122px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; color: var(--text-3);
  transition: color 0.25s;
}
.scroll-cue:hover { color: var(--frost); }
.scroll-cue i { display: block; width: 1px; height: 46px; background: linear-gradient(180deg, var(--frost), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2.4s var(--ease-in-out) infinite; }


/* ==========================================================================
   8. "BEGIN" STEPS BAND: overlaps the bottom of the hero
   ========================================================================== */
.begin { position: relative; z-index: 3; margin-top: -100px; }
.begin__panel { --cut: 18px; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); isolation: isolate; }
.begin__panel::before { content: ""; position: absolute; inset: 0; z-index: -2; clip-path: var(--chamfer); background: linear-gradient(180deg, rgba(232, 194, 122, 0.45), rgba(232, 194, 122, 0.08) 60%, rgba(70, 120, 255, 0.25)); }
.begin__panel::after {
  content: ""; position: absolute; inset: 1px; z-index: -1; --cut: 17.6px; clip-path: var(--chamfer);
  background: radial-gradient(120% 140% at 50% -40%, rgba(80, 140, 255, 0.10), transparent 60%), linear-gradient(180deg, rgba(13, 17, 48, 0.94), rgba(7, 9, 28, 0.96));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; padding: 34px clamp(22px, 2.6vw, 38px); }
.step + .step::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: linear-gradient(180deg, transparent, var(--line-2), transparent); }
.step__num {
  grid-row: span 3;
  font-family: var(--font-display); font-weight: 700; font-size: 2.35rem; line-height: 0.95;
  background: linear-gradient(180deg, var(--ice), rgba(200, 150, 80, 0.25));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  min-width: 1.4em;
}
.step__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; letter-spacing: 0.02em; }
.step__text { font-size: 0.95rem; line-height: 1.6; color: var(--text-3); }
.step .link { margin-top: 8px; justify-self: start; }


/* ==========================================================================
   9. INTRO / ABOUT
   ========================================================================== */
.intro { overflow: hidden; }
.intro::before { content: ""; position: absolute; right: -10%; top: 10%; width: 60%; height: 80%; background: radial-gradient(closest-side, rgba(60, 90, 220, 0.13), transparent); pointer-events: none; }
.intro__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.intro__copy { display: grid; gap: 24px; justify-items: start; }
.intro__copy p + p { margin-top: -6px; }

.intro__art { position: relative; aspect-ratio: 4 / 5; max-width: 500px; justify-self: center; width: 100%; }
.intro__sigil { position: absolute; inset: -16%; color: rgba(232, 194, 122, 0.16); animation: spin 120s linear infinite; pointer-events: none; }
.intro__sigil svg { width: 100%; height: 100%; }
.arch { position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 16%, 100% 100%, 0 100%, 0 16%); background: linear-gradient(180deg, rgba(255, 236, 196, 0.7), rgba(70, 120, 255, 0.15) 70%, rgba(255, 236, 196, 0.4)); }
.arch__inner { position: absolute; inset: 2px; clip-path: polygon(50% 0, 100% 16%, 100% 100%, 0 100%, 0 16%); overflow: hidden; background: var(--bg-2); }
.arch__inner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.intro__art:hover .arch__inner img { transform: scale(1.13); }
.arch__inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 20, 0) 50%, rgba(5, 6, 20, 0.85)), radial-gradient(80% 60% at 50% 30%, transparent, rgba(5, 6, 20, 0.4)); }
.arch__gem {
  position: absolute; left: 50%; top: -14px; width: 28px; height: 28px; margin-left: -14px; z-index: 2;
  background: linear-gradient(135deg, #f2f7ff, var(--rune) 50%, var(--rune-deep));
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(232, 194, 122, 0.5), 0 0 28px rgba(70, 120, 255, 0.8);
}
.arch__caption { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2; text-align: center; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--steel); }


/* ==========================================================================
   10. FEATURES: interface showcase cards
   Each card: framed illustration (assets/images/features/), gem emblem, copy.
   Hover: 3D tilt (JS sets --rx/--ry), cursor glare (--mx/--my), rotating gilded border.
   ========================================================================== */
.features { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 30%, var(--bg-2) 70%, var(--bg) 100%); overflow: hidden; }
.features > .container { position: relative; z-index: 1; }
.features__sky { position: absolute; inset: 0 0 auto 0; height: 60%; z-index: 0; pointer-events: none; opacity: 0.9;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 55%, transparent 100%); }
.features__sky img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* oversized outlined word behind the heading */
.features__mark {
  position: absolute; left: 50%; top: clamp(30px, 5vw, 70px); transform: translateX(-50%);
  font-family: var(--font-accent); font-size: clamp(4.2rem, 12.5vw, 11rem); line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(232, 194, 122, 0.07);
  pointer-events: none; user-select: none; z-index: 0;
}

.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.4vw, 32px); perspective: 1200px; }
.feat {
  --cut: 20px; --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%;
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s var(--ease), opacity 1s var(--ease);
}
.feat.is-tilting { transition: transform 0.12s linear; }
.feat::before { /* border: static frost, becomes a rotating light on hover */
  content: ""; position: absolute; inset: 0; z-index: -2; clip-path: var(--chamfer);
  background: linear-gradient(180deg, rgba(232, 194, 122, 0.42), rgba(150, 172, 255, 0.08) 55%, rgba(70, 120, 255, 0.22));
}
.feat:hover::before {
  background: conic-gradient(from var(--spin), rgba(150, 172, 255, 0.12) 0deg, rgba(255, 236, 196, 0.95) 50deg, rgba(150, 172, 255, 0.12) 110deg, rgba(150, 172, 255, 0.12) 180deg, rgba(70, 120, 255, 0.85) 230deg, rgba(150, 172, 255, 0.12) 290deg);
  animation: spin-border 4s linear infinite;
}
.feat::after {
  content: ""; position: absolute; inset: 1px; z-index: -1; --cut: 19.6px; clip-path: var(--chamfer);
  background: radial-gradient(120% 60% at 50% 0%, rgba(80, 140, 255, 0.10), transparent 60%), linear-gradient(180deg, #10143a, #090b26);
}

.feat__media {
  --cut: 12px;
  position: relative; margin: 10px 10px 0;
  aspect-ratio: 16 / 10; overflow: hidden;
  clip-path: var(--chamfer);
  background: #0a0c26;
}
.feat__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  transform: scale(1.02); transition: transform 1.4s var(--ease), filter 0.6s;
  filter: saturate(0.92) brightness(0.92);
}
.feat:hover .feat__media img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }
.feat__media::after { /* night grade + fade into the card */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 30, 90, 0.08), rgba(5, 7, 22, 0) 40%, rgba(8, 10, 32, 0.94) 100%);
}
.feat__glare {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; clip-path: var(--chamfer);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(200, 220, 255, 0.14), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.feat:hover .feat__glare { opacity: 1; }

.feat__body { position: relative; display: grid; gap: 10px; padding: 0 clamp(24px, 2.6vw, 38px) clamp(26px, 2.8vw, 38px); margin-top: -44px; }
.feat__emblem { position: relative; width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 6px; color: var(--ice); }
.feat__emblem::before { /* faceted diamond socket */
  content: ""; position: absolute; inset: 10px; transform: rotate(45deg);
  background: linear-gradient(135deg, #1c2458, #0a0d2c 60%);
  box-shadow: inset 0 0 0 1px var(--line-3), 0 0 0 5px rgba(8, 10, 32, 0.9), 0 0 0 6px var(--line-2), 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.5s var(--ease);
}
.feat:hover .feat__emblem::before { box-shadow: inset 0 0 0 1px var(--frost), inset 0 0 18px rgba(80, 140, 255, 0.35), 0 0 0 5px rgba(8, 10, 32, 0.9), 0 0 0 6px var(--line-3), 0 0 34px rgba(80, 140, 255, 0.35); }
.feat__emblem svg { position: relative; width: 32px; height: 32px; filter: drop-shadow(0 0 8px rgba(80, 140, 255, 0.55)); }
.feat__kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase; color: var(--frost); }
.feat__kicker b { color: var(--steel-dim); font-weight: 700; margin-right: 6px; }
.feat__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 2.1vw, 1.85rem); line-height: 1.15; letter-spacing: 0.01em; }
.feat__text { color: var(--text-2); font-size: 1rem; line-height: 1.7; max-width: 52ch; }

/* Checklist used inside feature cards */
.ticks { display: grid; gap: 9px; margin-top: 6px; }
.ticks li { display: flex; align-items: flex-start; gap: 11px; color: var(--text-2); font-size: 0.96rem; line-height: 1.5; }
.ticks svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--frost); filter: drop-shadow(0 0 6px rgba(232, 180, 90, 0.35)); }
.ticks kbd { font-size: 0.78em; padding: 1px 6px; }

/* Compact feature cards (the six below the two signature cards) */
.fcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); margin-top: clamp(20px, 2.4vw, 32px); }
.fcard {
  --cut: 18px;
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(24px, 2.4vw, 32px);
  transition: transform 0.45s var(--ease);
}
.fcard::before { content: ""; position: absolute; inset: 0; z-index: -2; clip-path: var(--chamfer); background: linear-gradient(180deg, rgba(232, 194, 122, 0.38), rgba(150, 172, 255, 0.07) 55%, rgba(70, 120, 255, 0.2)); transition: background 0.4s; }
.fcard::after { content: ""; position: absolute; inset: 1px; z-index: -1; --cut: 17.6px; clip-path: var(--chamfer); background: radial-gradient(110% 60% at 0% 0%, rgba(80, 140, 255, 0.10), transparent 60%), linear-gradient(180deg, #10143a, #090b26); }
.fcard:hover { transform: translateY(-4px); }
.fcard:hover::before { background: linear-gradient(180deg, rgba(255, 236, 196, 0.85), rgba(150, 172, 255, 0.12) 55%, rgba(70, 120, 255, 0.55)); }
.fcard:hover .feat__emblem::before { box-shadow: inset 0 0 0 1px var(--frost), inset 0 0 18px rgba(80, 140, 255, 0.35), 0 0 0 5px rgba(8, 10, 32, 0.9), 0 0 0 6px var(--line-3), 0 0 34px rgba(80, 140, 255, 0.35); }
.fcard .feat__emblem { width: 64px; height: 64px; margin: 0 0 4px -4px; }
.fcard .feat__emblem svg { width: 28px; height: 28px; }
.fcard__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1.6vw, 1.45rem); line-height: 1.2; letter-spacing: 0.01em; }
.fcard__text { color: var(--text-2); font-size: 0.98rem; line-height: 1.65; }
.fcard--gold::before { background: linear-gradient(180deg, rgba(255, 236, 196, 0.8), rgba(232, 194, 122, 0.18) 55%, rgba(200, 145, 62, 0.55)); }
.fcard--gold::after { background: radial-gradient(110% 70% at 100% 0%, rgba(232, 180, 90, 0.16), transparent 60%), linear-gradient(180deg, #14163e, #0a0b26); }
.fcard__cta { margin-top: auto; }
.fcard--gold .ticks { margin-bottom: 14px; }


/* ==========================================================================
   11. PLAY ANYWHERE: device showcase + the two play options
   The "screens" are CSS frames around the site artwork and logo; they are an
   illustration of the two ways to play, not screenshots of the game.
   ========================================================================== */
.anywhere { overflow: hidden; padding-top: calc(var(--section-y) * 0.5); }
.anywhere::before { content: ""; position: absolute; left: 30%; top: 50%; width: 80%; height: 90%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(60, 100, 255, 0.16), transparent); pointer-events: none; }
.anywhere__grid { position: relative; display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }

.devices { position: relative; aspect-ratio: 16 / 11.5; }
.device { --cut: 14px; position: absolute; padding: 1px; clip-path: var(--chamfer); background: linear-gradient(160deg, rgba(255, 236, 196, 0.6), rgba(70, 120, 255, 0.18) 40%, rgba(232, 194, 122, 0.12) 65%, rgba(255, 236, 196, 0.45)); }
.device__body { position: relative; height: 100%; clip-path: var(--chamfer); background: linear-gradient(180deg, #0c1034, #070920); }
.device__screen { --cut: 8px; position: relative; overflow: hidden; clip-path: var(--chamfer); background: #04051a; }
.device__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.device__screen::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 45%, rgba(5, 6, 20, 0.15), rgba(5, 6, 20, 0.6)); pointer-events: none; }
.device__screen .device__logo { inset: auto; left: 50%; width: 58%; height: auto; transform: translateX(-50%); z-index: 2; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 14px rgba(80, 140, 255, 0.4)); }
.device__load { position: absolute; left: 50%; z-index: 2; width: 34%; height: 3px; transform: translateX(-50%); background: rgba(150, 172, 255, 0.18); overflow: hidden; border-radius: 2px; }
.device__load::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--frost), var(--ice)); animation: load 2.8s var(--ease-in-out) infinite; }

.device--desktop { left: 0; top: 0; width: 86%; }
.device--desktop .device__body { padding: 0 9px 9px; }
.device__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding-left: 4px; }
.device__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(150, 172, 255, 0.25); flex: none; }
.device__bar i:first-child { background: rgba(232, 194, 122, 0.7); }
.device__url { flex: 1; display: flex; align-items: center; gap: 7px; margin: 0 6px 0 10px; height: 22px; padding: 0 10px; border-radius: 5px; background: rgba(150, 172, 255, 0.07); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text-3); white-space: nowrap; overflow: hidden; }
.device__url svg { width: 12px; height: 12px; color: var(--frost); flex: none; }
.device--desktop .device__screen { aspect-ratio: 16 / 9; }
.device--desktop .device__screen img:first-child { object-position: 50% 40%; }
.device--desktop .device__logo { top: 34%; }
.device--desktop .device__load { top: 68%; }

.device--phone { --cut: 16px; right: 0; bottom: 0; width: 29%; aspect-ratio: 9 / 18.5; animation: float 8s var(--ease-in-out) infinite; }
.device--phone .device__body { padding: 7px; }
.device--phone .device__screen { --cut: 10px; height: 100%; }
.device--phone .device__screen img { object-position: 50% 0; }
.device--phone .device__screen::before { content: ""; position: absolute; left: 50%; top: 7px; z-index: 3; width: 30%; height: 7px; transform: translateX(-50%); border-radius: 6px; background: #04051a; }
.device--phone .device__logo { top: 56%; width: 84%; }
.device--phone .device__load { top: 72%; width: 52%; }
.devices__glow { position: absolute; left: 10%; right: 0; bottom: -8%; height: 30%; background: radial-gradient(closest-side, rgba(80, 130, 255, 0.35), transparent); filter: blur(10px); z-index: -1; }

.anywhere__options { display: grid; gap: 18px; justify-items: stretch; }
.option { --cut: 16px; position: relative; isolation: isolate; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: start; padding: clamp(24px, 2.6vw, 32px); }
.option::before { content: ""; position: absolute; inset: 0; z-index: -2; clip-path: var(--chamfer); background: linear-gradient(180deg, rgba(232, 194, 122, 0.5), rgba(150, 172, 255, 0.08) 55%, rgba(70, 120, 255, 0.25)); }
.option::after { content: ""; position: absolute; inset: 1px; z-index: -1; --cut: 15.6px; clip-path: var(--chamfer); background: radial-gradient(100% 80% at 0% 0%, rgba(80, 140, 255, 0.12), transparent 60%), linear-gradient(180deg, rgba(14, 18, 50, 0.97), rgba(8, 10, 30, 0.98)); }
.option--mobile::before { background: linear-gradient(180deg, rgba(140, 175, 255, 0.55), rgba(150, 172, 255, 0.08) 55%, rgba(232, 194, 122, 0.25)); }
.option .platform__icon { grid-row: span 3; width: 64px; height: 64px; }
.option .platform__icon svg { width: 30px; height: 30px; }
.option__kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.26em; text-transform: uppercase; color: var(--frost); }
.option__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.15; }
.option__text { color: var(--text-2); font-size: 0.97rem; line-height: 1.65; margin-bottom: 10px; }
.option .btn { grid-column: 2; justify-self: start; }
.anywhere__more { justify-self: center; margin-top: 6px; }


/* --------------------------------------------------------------------------
   11c. LATEST UPDATES (homepage news cards)
   -------------------------------------------------------------------------- */
.updates { padding-top: 0; }
.updates__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 22px); }
.update { --cut: 14px; position: relative; isolation: isolate; display: grid; gap: 8px; align-content: start; padding: clamp(22px, 2.2vw, 28px); }
.update::before { content: ""; position: absolute; inset: 0; z-index: -2; clip-path: var(--chamfer); background: var(--line-2); transition: background 0.3s; }
.update::after { content: ""; position: absolute; inset: 1px; z-index: -1; --cut: 13.6px; clip-path: var(--chamfer); background: #0b0e2c; }
.update:hover::before { background: linear-gradient(180deg, rgba(232, 194, 122, 0.55), rgba(70, 120, 255, 0.2)); }
.update__date { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--frost); }
.update__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
.update__text { color: var(--text-3); font-size: 0.95rem; line-height: 1.6; }


/* --------------------------------------------------------------------------
   11a. OPTIONAL: gameplay video player (styles kept from the template, not
   used yet). See HANDOFF.md, "Adding gameplay videos", for the markup.
   -------------------------------------------------------------------------- */
.showcase { overflow: hidden; }
.showcase::before { content: ""; position: absolute; left: 50%; top: 30%; width: 90%; height: 70%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(60, 90, 220, 0.12), transparent); pointer-events: none; }
.player { position: relative; display: grid; gap: 18px; max-width: 1100px; margin-inline: auto; }
.player__stage { --cut: 12px; position: relative; aspect-ratio: 16 / 9; overflow: hidden; clip-path: var(--chamfer); background: #04051a; }
.player__stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s var(--ease); }
.player__stage video.is-active { opacity: 1; }
.player__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 60%, rgba(2, 3, 12, 0.55)), linear-gradient(180deg, transparent 62%, rgba(2, 3, 12, 0.85)); }
.player__hud { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: clamp(16px, 2.4vw, 28px); }
.player__caption strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.05; text-shadow: 0 2px 16px #000; }
.player__caption span { display: block; margin-top: 6px; font-size: 0.95rem; color: var(--text-2); text-shadow: 0 2px 10px #000; max-width: 52ch; }
.player__toggle {
  --cut: 8px;
  flex: none; width: 50px; height: 50px; display: grid; place-items: center;
  clip-path: var(--chamfer);
  background: rgba(7, 9, 28, 0.7); box-shadow: inset 0 0 0 1px var(--line-3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ice); transition: background 0.3s;
}
.player__toggle:hover { background: rgba(40, 50, 120, 0.8); }
.player__toggle svg { width: 20px; height: 20px; }
.player__toggle .i-pause { display: none; }
.player.is-playing .player__toggle .i-pause { display: block; }
.player.is-playing .player__toggle .i-play { display: none; }

.player__chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.chapter { --cut: 10px; position: relative; isolation: isolate; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 16px 18px 20px; }
.chapter::before { content: ""; position: absolute; inset: 0; z-index: -2; clip-path: var(--chamfer); background: var(--line-2); transition: background 0.3s; }
.chapter::after { content: ""; position: absolute; inset: 1px; z-index: -1; --cut: 9.6px; clip-path: var(--chamfer); background: #0b0e2c; transition: background 0.3s; }
.chapter:hover::after { background: #0f1338; }
.chapter[aria-selected="true"]::before { background: linear-gradient(180deg, rgba(232, 194, 122, 0.7), rgba(70, 120, 255, 0.25)); }
.chapter[aria-selected="true"]::after { background: radial-gradient(120% 120% at 0% 0%, rgba(80, 140, 255, 0.12), transparent 60%), #0e1236; }
.chapter__num { grid-row: span 2; font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; line-height: 1; color: var(--steel-dim); transition: color 0.3s; }
.chapter[aria-selected="true"] .chapter__num { color: var(--ice); }
.chapter__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.15; }
.chapter__meta { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.chapter__bar { position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; background: var(--line); overflow: hidden; }
.chapter__bar i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--rune), var(--ice)); }


/* --------------------------------------------------------------------------
   11b. OPTIONAL: featured video (click-to-load YouTube) + screenshots + viewer
   (styles kept from the template, not used yet; see HANDOFF.md)
   -------------------------------------------------------------------------- */
.tour { overflow: hidden; padding-top: 0; }
.tour__video { max-width: 1100px; margin-inline: auto; }
.yt {
  --cut: 12px;
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  clip-path: var(--chamfer); background: #04051a; color: var(--text);
}
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.5s; }
.yt::after { /* darken toward the bottom so the label reads */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 50%, rgba(2, 3, 12, 0.05), rgba(2, 3, 12, 0.45)), linear-gradient(180deg, transparent 60%, rgba(2, 3, 12, 0.75));
  transition: opacity 0.4s;
}
.yt:hover img { transform: scale(1.03); filter: brightness(1.06); }
.yt__play {
  --cut: 16px;
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 96px; height: 96px; margin: -48px 0 0 -48px;
  display: grid; place-items: center;
  clip-path: var(--chamfer);
  background: var(--ice-fill); color: #1f1405;
  filter: drop-shadow(0 0 30px rgba(80, 140, 255, 0.55));
  transition: transform 0.4s var(--ease);
}
.yt__play::before { /* pulsing frost ring */
  content: ""; position: absolute; inset: -14px; border: 1px solid rgba(255, 236, 196, 0.6);
  clip-path: var(--chamfer); animation: ring 2.4s var(--ease) infinite;
}
.yt__play svg { width: 38px; height: 38px; margin-left: 5px; }
.yt:hover .yt__play { transform: scale(1.08); }
.yt__label {
  position: absolute; left: 0; right: 0; bottom: clamp(16px, 3vw, 30px); z-index: 2; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2.2vw, 1.6rem); letter-spacing: 0.04em;
  text-shadow: 0 2px 14px #000;
}
.yt__label small { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; color: var(--text-2); margin-left: 8px; }
.yt.is-playing::after, .yt.is-playing .yt__play, .yt.is-playing .yt__label, .yt.is-playing img { display: none; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour__credit { margin-top: 14px; text-align: center; font-size: 0.9rem; color: var(--text-3); }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); max-width: 1100px; margin: clamp(22px, 3vw, 34px) auto 0; padding: 0; list-style: none; }
.shot {
  --cut: 12px;
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  clip-path: var(--chamfer); background: var(--bg-3); cursor: zoom-in; text-align: left;
}
.shot img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95) brightness(0.92); transition: transform 1s var(--ease), filter 0.5s; }
.shot::after { content: ""; position: absolute; inset: 0; clip-path: var(--chamfer); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 0.3s; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.06); filter: none; }
.shot:hover::after, .shot:focus-visible::after { box-shadow: inset 0 0 0 2px var(--frost), inset 0 0 30px rgba(80, 140, 255, 0.25); }
.shot:focus-visible { outline: none; }
.shot__cap { position: absolute; left: 16px; bottom: 12px; z-index: 2; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-shadow: 0 2px 8px #000; }

.lightbox {
  width: min(1280px, 100vw - 32px); max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible;
}
.lightbox::backdrop { background: rgba(2, 3, 12, 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: rise 0.4s var(--ease); }
.lightbox__figure { --cut: 14px; margin: 0; clip-path: var(--chamfer); background: #04051a; box-shadow: 0 0 0 1px var(--line-3); }
.lightbox__figure img { width: 100%; height: auto; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox__figure figcaption { padding: 12px 18px 16px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.lightbox__btn {
  --cut: 8px;
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center;
  clip-path: var(--chamfer); background: rgba(9, 12, 34, 0.9); box-shadow: inset 0 0 0 1px var(--line-3); color: var(--ice);
  transition: background 0.25s;
}
.lightbox__btn:hover { background: rgba(40, 50, 120, 0.95); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__btn--prev { left: 12px; top: 50%; margin-top: -24px; }
.lightbox__btn--prev svg { transform: scaleX(-1); }
.lightbox__btn--next { right: 12px; top: 50%; margin-top: -24px; }
.lightbox__btn--close { right: 12px; top: 12px; }
.lightbox__btn--close svg { transform: rotate(45deg); }


/* ==========================================================================
   12. COMMUNITY (DISCORD)
   ========================================================================== */
.community__panel { --cut: 22px; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px); padding: clamp(40px, 6vw, 80px); }
.community__panel::before { content: ""; position: absolute; inset: 0; z-index: -3; clip-path: var(--chamfer); background: linear-gradient(135deg, rgba(167, 176, 255, 0.55), rgba(88, 101, 242, 0.12) 40%, rgba(232, 194, 122, 0.1) 70%, rgba(232, 194, 122, 0.45)); }
.community__panel::after { content: ""; position: absolute; inset: 1px; z-index: -2; --cut: 21.6px; clip-path: var(--chamfer); background: radial-gradient(60% 90% at 100% 50%, rgba(88, 101, 242, 0.22), transparent 70%), radial-gradient(50% 80% at 0% 0%, rgba(80, 140, 255, 0.10), transparent 70%), linear-gradient(180deg, #0f1340, #090b26); }
.community__copy { display: grid; gap: 22px; justify-items: start; }
.community__perks { display: grid; gap: 12px; margin: 4px 0 10px; padding: 0; list-style: none; }
.community__perks li { display: flex; align-items: center; gap: 14px; color: var(--text-2); }
.community__perks svg { width: 20px; height: 20px; color: var(--frost); flex: none; }
.community__emblem { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 400px; justify-self: center; width: 100%; }
.community__emblem .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(167, 176, 255, 0.22); }
.community__emblem .ring:nth-child(2) { inset: 12%; border-style: dashed; border-color: rgba(232, 194, 122, 0.18); animation: spin 80s linear infinite reverse; }
.community__emblem .ring:nth-child(3) { inset: 24%; border-color: rgba(167, 176, 255, 0.3); box-shadow: 0 0 60px rgba(88, 101, 242, 0.25), inset 0 0 50px rgba(88, 101, 242, 0.2); }
.community__badge { --cut: 26px; position: relative; width: 42%; aspect-ratio: 1; display: grid; place-items: center; clip-path: var(--chamfer); background: linear-gradient(160deg, #7a85ff, var(--discord) 45%, #2f37a8); animation: float 7s var(--ease-in-out) infinite; }
.community__badge svg { width: 54%; height: 54%; color: #fff; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35)); }
.community__emblem .spark { position: absolute; width: 8px; height: 8px; background: var(--frost); transform: rotate(45deg); box-shadow: 0 0 12px var(--frost); animation: twinkle 3.6s var(--ease-in-out) infinite; }
.community__emblem .spark:nth-of-type(1) { top: 10%; left: 50%; }
.community__emblem .spark:nth-of-type(2) { bottom: 18%; right: 9%; background: #a7b0ff; box-shadow: 0 0 12px #a7b0ff; animation-delay: 1.2s; }
.community__emblem .spark:nth-of-type(3) { bottom: 26%; left: 6%; animation-delay: 2.4s; }


/* ==========================================================================
   13. FINAL CALL-TO-ACTION
   ========================================================================== */
.final { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(620px, 64vw, 900px); display: grid; place-items: end center; padding: 0 0 clamp(70px, 9vw, 120px); text-align: center; }
.final__bg { position: absolute; inset: 0; z-index: -3; }
.final__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.final .particles { z-index: -1; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--bg) 0%, rgba(5, 6, 20, 0) 22%, rgba(5, 6, 20, 0) 52%, rgba(5, 6, 20, 0.8) 80%, var(--bg) 100%); }
.final__content { display: grid; justify-items: center; gap: 22px; max-width: 760px; }
.final__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 10px; }


/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer { position: relative; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #03040f); padding: 72px 0 34px; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: -1px; width: min(600px, 80%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--frost), transparent); opacity: 0.6; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__brand { display: grid; gap: 18px; justify-items: start; }
.footer__brand img { width: 190px; }
.footer__brand p { color: var(--text-3); font-size: 0.95rem; max-width: 34ch; }
.footer__col h2 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase; color: var(--steel); margin-bottom: 18px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__col a { color: var(--text-2); font-size: 0.97rem; transition: color 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.footer__col a:hover { color: var(--ice); }
.footer__col a .icon { width: 14px; height: 14px; opacity: 0.7; }
.social { display: flex; gap: 10px; }
.social a { --cut: 8px; width: 46px; height: 46px; display: grid; place-items: center; clip-path: var(--chamfer); background: linear-gradient(180deg, #161b48, #0b0e2c); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); transition: background 0.3s, color 0.3s; }
.social a:hover { background: linear-gradient(180deg, #6c78ff, var(--discord)); color: #fff; }
.social a:focus-visible { outline: none; background: linear-gradient(180deg, #6c78ff, var(--discord)); color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.social svg { width: 22px; height: 22px; }
.footer__bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; font-size: 0.85rem; color: var(--text-3); }
.footer__legal { flex-basis: 100%; font-size: 0.78rem; color: var(--steel-dim); opacity: 0.85; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); transition: color 0.2s; }
.to-top:hover { color: var(--frost); }
.to-top svg { width: 14px; height: 14px; }


/* ==========================================================================
   15. HOW TO PLAY PAGE
   ========================================================================== */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(100px, 12vw, 160px)) 0 clamp(120px, 14vw, 200px); text-align: center; }
.page-hero__bg { position: absolute; inset: 0; z-index: -3; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 70% at 50% 50%, rgba(3, 4, 16, 0.7), transparent 75%), linear-gradient(180deg, rgba(5, 6, 20, 0.6) 0%, rgba(5, 6, 20, 0.15) 35%, rgba(5, 6, 20, 0.4) 70%, var(--bg) 100%); }
.page-hero .particles { z-index: -1; }
.page-hero .container { display: grid; justify-items: center; gap: 20px; }
.page-hero .title { font-size: clamp(2.5rem, 5.2vw, 4.3rem); }
.page-hero .lead { margin-inline: auto; }
.page-hero__note { --cut: 8px; display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 18px; font-size: 0.9rem; color: var(--text-2); clip-path: var(--chamfer); background: rgba(9, 12, 34, 0.75); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.page-hero__note svg { width: 18px; height: 18px; color: var(--frost); }
.page-hero__note a { color: var(--frost); font-weight: 700; }
.page-hero__note a:hover { color: var(--ice); text-decoration: underline; }

.platforms { position: relative; z-index: 2; margin-top: clamp(-120px, -9vw, -70px); }
.platforms__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.platforms__grid > * { min-width: 0; }
.platform { --cut: 20px; position: relative; isolation: isolate; padding: clamp(30px, 4vw, 48px); display: grid; gap: 24px; align-content: start; }
.platform::before { content: ""; position: absolute; inset: 0; z-index: -2; clip-path: var(--chamfer); background: linear-gradient(180deg, rgba(232, 194, 122, 0.5), rgba(232, 194, 122, 0.08) 45%, rgba(70, 120, 255, 0.2)); }
.platform::after { content: ""; position: absolute; inset: 1px; z-index: -1; --cut: 19.6px; clip-path: var(--chamfer); background: radial-gradient(90% 50% at 50% 0%, rgba(80, 140, 255, 0.10), transparent 70%), linear-gradient(180deg, rgba(14, 18, 50, 0.97), rgba(8, 10, 30, 0.98)); }
.platform__head { display: flex; align-items: center; gap: 20px; }
.platform__icon { --cut: 12px; width: 72px; height: 72px; flex: none; display: grid; place-items: center; clip-path: var(--chamfer); background: linear-gradient(160deg, rgba(232, 194, 122, 0.2), rgba(70, 120, 255, 0.06)); box-shadow: inset 0 0 0 1px var(--line-3); color: var(--ice); }
.platform__icon svg { width: 34px; height: 34px; }
.platform__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.1vw, 1.9rem); line-height: 1.1; }
.platform__meta { font-size: 0.85rem; color: var(--text-3); margin-top: 6px; letter-spacing: 0.04em; }
.badge { --cut: 6px; margin-left: auto; align-self: flex-start; white-space: nowrap; padding: 6px 12px; clip-path: var(--chamfer); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; background: linear-gradient(180deg, rgba(232, 194, 122, 0.22), rgba(232, 194, 122, 0.08)); color: var(--ice); box-shadow: inset 0 0 0 1px var(--line-3); }
.badge--muted { background: rgba(170, 180, 220, 0.08); color: var(--steel); box-shadow: inset 0 0 0 1px var(--line-2); }
.platform__desc { color: var(--text-2); }
.platform__file { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.85rem; color: var(--text-3); padding: 14px 0; border-block: 1px solid var(--line); }
.platform__file span { display: inline-flex; align-items: center; gap: 8px; }
.platform__file svg { width: 15px; height: 15px; color: var(--frost); }
.platform__file b { color: var(--text-2); font-weight: 600; }
.steps-list { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps-list li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 14px; color: var(--text-2); font-size: 0.98rem; line-height: 1.6; }
.steps-list li::before { content: counter(step); --cut: 6px; width: 30px; height: 30px; display: grid; place-items: center; clip-path: var(--chamfer); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ice); background: rgba(232, 194, 122, 0.1); box-shadow: inset 0 0 0 1px var(--line-3); }
.steps-list strong { color: var(--text); font-weight: 700; }
.steps-list a { color: var(--frost); font-weight: 600; }
.steps-list a:hover { color: var(--ice); text-decoration: underline; }
code, kbd { font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace; font-size: 0.86em; padding: 2px 7px; background: rgba(232, 194, 122, 0.07); border: 1px solid var(--line-2); border-radius: 4px; color: var(--ice); word-break: break-word; }
.platform__note { font-size: 0.85rem; color: var(--text-3); display: flex; gap: 10px; }
.platform__note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--steel); }
.platform__note a { color: var(--frost); font-weight: 700; }
.platform__note a:hover { color: var(--ice); text-decoration: underline; }
/* the mobile card uses the sapphire border */
.platform--mobile::before { background: linear-gradient(180deg, rgba(140, 175, 255, 0.6), rgba(150, 172, 255, 0.08) 45%, rgba(232, 194, 122, 0.22)); }
.platform--mobile .platform__icon { background: linear-gradient(160deg, rgba(110, 150, 255, 0.24), rgba(70, 120, 255, 0.06)); box-shadow: inset 0 0 0 1px rgba(140, 175, 255, 0.5); color: var(--pearl); }
/* js/main.js marks the card that matches the visitor's device */
.platform.is-recommended .badge { background: var(--ice-fill); color: #1f1405; box-shadow: none; }
.platform--mobile.is-recommended .badge { background: linear-gradient(180deg, #9cbcff, #3a5fe8); color: #fff; }
.platform .btn--block { min-height: 66px; }
/* old links to removed sections (#download, #java) land on the device cards */
.platforms { scroll-margin-top: calc(var(--header-h) + 20px); }
.anchor-alias { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* Getting started tips */
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 1.8vw, 22px); }
.tip { --cut: 16px; position: relative; isolation: isolate; display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.2vw, 28px); }
.tip::before { content: ""; position: absolute; inset: 0; z-index: -2; clip-path: var(--chamfer); background: linear-gradient(180deg, rgba(232, 194, 122, 0.38), rgba(150, 172, 255, 0.07) 55%, rgba(70, 120, 255, 0.2)); }
.tip::after { content: ""; position: absolute; inset: 1px; z-index: -1; --cut: 15.6px; clip-path: var(--chamfer); background: linear-gradient(180deg, #10143a, #090b26); }
.tip .feat__emblem { width: 60px; height: 60px; margin: 0 0 2px -4px; }
.tip .feat__emblem svg { width: 26px; height: 26px; }
.tip__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
.tip__text { color: var(--text-2); font-size: 0.95rem; line-height: 1.6; }
.tip__text strong { color: var(--text); }

/* Controls: keyboard and touch reference cards */
.controls__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(18px, 2vw, 26px); align-items: start; }
.controls__card { --cut: 18px; position: relative; isolation: isolate; display: grid; gap: 18px; padding: clamp(24px, 3vw, 38px); }
.controls__card::before { content: ""; position: absolute; inset: 0; z-index: -2; clip-path: var(--chamfer); background: linear-gradient(180deg, rgba(232, 194, 122, 0.5), rgba(232, 194, 122, 0.08) 45%, rgba(70, 120, 255, 0.2)); }
.controls__card::after { content: ""; position: absolute; inset: 1px; z-index: -1; --cut: 17.6px; clip-path: var(--chamfer); background: radial-gradient(90% 50% at 50% 0%, rgba(80, 140, 255, 0.10), transparent 70%), linear-gradient(180deg, rgba(14, 18, 50, 0.97), rgba(8, 10, 30, 0.98)); }
.controls__card--touch::before { background: linear-gradient(180deg, rgba(140, 175, 255, 0.6), rgba(150, 172, 255, 0.08) 45%, rgba(232, 194, 122, 0.22)); }
.controls__title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 1.8vw, 1.55rem); }
.controls__title svg { width: 26px; height: 26px; color: var(--frost); flex: none; }
.keys { margin: 0; display: grid; }
.keys > div { display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.keys > div:first-child { border-top: 0; padding-top: 0; }
.keys dt { display: flex; flex-wrap: wrap; gap: 4px; font-weight: 700; color: var(--ice); font-size: 0.95rem; }
.keys dd { margin: 0; color: var(--text-2); font-size: 0.95rem; line-height: 1.55; }

.faq { display: grid; gap: 12px; max-width: 880px; margin-inline: auto; }
.faq details { --cut: 12px; position: relative; isolation: isolate; }
.faq details::before { content: ""; position: absolute; inset: 0; z-index: -2; clip-path: var(--chamfer); background: var(--line-2); transition: background 0.3s; }
.faq details::after { content: ""; position: absolute; inset: 1px; z-index: -1; --cut: 11.6px; clip-path: var(--chamfer); background: #0b0e2c; }
.faq details[open]::before, .faq details:hover::before { background: linear-gradient(180deg, rgba(232, 194, 122, 0.45), rgba(232, 194, 122, 0.1)); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.35; letter-spacing: 0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 30px; height: 30px; flex: none; display: grid; place-items: center; color: var(--frost); transition: transform 0.35s var(--ease); }
.faq summary .chev svg { width: 18px; height: 18px; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: -4px; }
.faq .faq__body { padding: 0 26px 24px; color: var(--text-2); display: grid; gap: 12px; }
.faq .faq__body ol, .faq .faq__body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

.help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 36px; margin: 56px auto 0; max-width: 880px; border-top: 1px solid var(--line); }
.help h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.2; }
.help p { color: var(--text-3); }


/* ==========================================================================
   16. SHARED DECORATIVE PIECES
   ========================================================================== */
/* Ornate frame with corner brackets (around the gameplay player) */
.frame { --cut: 18px; position: relative; isolation: isolate; padding: 8px; }
.frame::before { content: ""; position: absolute; inset: 0; z-index: -2; clip-path: var(--chamfer); background: linear-gradient(160deg, rgba(255, 236, 196, 0.55), rgba(70, 120, 255, 0.12) 40%, rgba(232, 194, 122, 0.06) 60%, rgba(255, 236, 196, 0.4)); }
.frame::after { content: ""; position: absolute; inset: 1px; z-index: -1; --cut: 17.6px; clip-path: var(--chamfer); background: #090b26; }
.frame__corner { position: absolute; width: 22px; height: 22px; border-color: var(--frost); border-style: solid; border-width: 0; z-index: 2; opacity: 0.9; }
.frame__corner--tl { top: -6px; left: -6px; border-top-width: 2px; border-left-width: 2px; }
.frame__corner--tr { top: -6px; right: -6px; border-top-width: 2px; border-right-width: 2px; }
.frame__corner--bl { bottom: -6px; left: -6px; border-bottom-width: 2px; border-left-width: 2px; }
.frame__corner--br { bottom: -6px; right: -6px; border-bottom-width: 2px; border-right-width: 2px; }

/* Gilded seam: a section divider with a slow travelling glint */
.seam { position: relative; height: 1px; width: min(var(--container), 100% - var(--gutter) * 2); margin: 0 auto; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.seam::before { content: ""; position: absolute; top: -1px; height: 3px; width: 160px; left: -160px; background: radial-gradient(closest-side, rgba(255, 236, 196, 0.95), transparent); animation: seam-glint 7s var(--ease-in-out) infinite; }
.seam::after { content: ""; position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; margin-left: -4.5px; transform: rotate(45deg); background: var(--bg); box-shadow: inset 0 0 0 1px var(--frost), 0 0 12px var(--glow); }

/* Toast (optional short messages from js/main.js) */
.toast { --cut: 10px; position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px); padding: 14px 20px; clip-path: var(--chamfer); background: #0f1236; box-shadow: inset 0 0 0 1px var(--line-3); color: var(--text); font-size: 0.95rem; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }


/* ==========================================================================
   17. MOTION
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .feat.reveal { transform: translateY(40px) rotateX(8deg); }
.js .feat.reveal.is-visible { transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.6s var(--ease), opacity 1s var(--ease); transition-delay: var(--d, 0s); }
.js .feat.reveal.is-visible.is-tilting { transition: transform 0.12s linear; }

/* Hero intro sequence */
.js .hero-in { opacity: 0; transform: translateY(22px); animation: rise 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
.js .hero__title.hero-in { filter: blur(10px); animation-name: rise-blur; animation-duration: 1.4s; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-blur { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes aura { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes gem-pulse { 0%, 100% { opacity: 0.45; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes fog-drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
@keyframes cue { 0% { top: -40%; } 60%, 100% { top: 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-border { to { --spin: 360deg; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes seam-glint { 0% { left: -160px; } 60%, 100% { left: 100%; } }
@keyframes ring { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes play-glow { 0%, 100% { filter: none; } 50% { filter: brightness(1.25) drop-shadow(0 0 6px rgba(255, 220, 150, 0.7)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal, .js .hero-in { opacity: 1; transform: none; filter: none; }
  .particles { display: none; }
  .feat { transform: none !important; }
}


/* ==========================================================================
   18. RESPONSIVE
   ========================================================================== */
@media (max-width: 1280px) {
  :root { --crest-w: 236px; }
  .nav-links a { padding: 10px 10px; letter-spacing: 0.16em; }
  .header-side { gap: 14px; }
}

/* Compact header: [menu]  [crest]  [Play Now] */
@media (max-width: 1140px) {
  :root { --header-h: 70px; --crest-w: 192px; }
  .site-header.is-scrolled { --crest-w: 170px; }
  .site-header.is-scrolled .header-bar { height: 62px; }
  .header-inner { width: calc(100% - 24px); column-gap: 10px; }
  .nav-links { display: none; }
  .header-side--left { justify-content: flex-start; }
  .nav-toggle { display: block; }
  .mobile-menu { display: grid; }
  .header-side--right { justify-content: flex-end; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .hero__content { max-width: 600px; }
  .hero__shade { background: linear-gradient(90deg, rgba(3, 4, 16, 0.9) 0%, rgba(3, 4, 16, 0.6) 45%, rgba(3, 4, 16, 0.1) 80%), linear-gradient(180deg, rgba(5, 6, 20, 0.5) 0%, rgba(5, 6, 20, 0) 22%, rgba(5, 6, 20, 0) 60%, var(--bg) 100%); }
  .intro__grid { grid-template-columns: 1fr; }
  .intro__art { max-width: 420px; order: -1; }
  .community__panel { grid-template-columns: 1fr; }
  .community__emblem { max-width: 260px; order: -1; }
  .platforms__grid { grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; }
  .fcards, .updates__grid, .tips { grid-template-columns: 1fr 1fr; }
  .controls__grid { grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; }
  .anywhere__grid { grid-template-columns: 1fr; }
  .devices { width: 100%; max-width: 660px; margin-inline: auto; }
  .anywhere__options { width: 100%; max-width: 660px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shots li:last-child { grid-column: 1 / -1; }
  .lightbox__btn--prev { left: 8px; }
  .lightbox__btn--next { right: 8px; }
  .feats { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .player__chapters { grid-template-columns: 1fr; gap: 8px; }
  .chapter { padding: 12px 16px 16px; }
  .chapter__num { font-size: 1.4rem; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; --crest-w: 162px; }
  body { font-size: 1rem; }
  .site-header.is-scrolled { --crest-w: 146px; }
  .site-header.is-scrolled .header-bar { height: 58px; }
  .header-inner { column-gap: 6px; }
  .header-side--right .btn--primary { min-height: 42px; padding: 0 11px; font-size: 0.74rem; letter-spacing: 0.05em; }
  .header-bar__gems { display: none; }

  /* Hero: portrait art, content anchored low and centred */
  .hero { min-height: 100svh; align-items: flex-start; padding: calc(45svh + 10px) 0 110px; text-align: center; }
  .hero__bg { inset: 0 -2% -2%; }
  .hero__bg img { object-position: 50% 0; }
  .hero__shade { background: linear-gradient(180deg, rgba(5, 6, 20, 0.45) 0%, rgba(5, 6, 20, 0) 12%, rgba(5, 6, 20, 0) 32%, rgba(5, 6, 20, 0.72) 44%, rgba(5, 6, 20, 0.88) 70%, var(--bg) 100%); }
  .hero__content { justify-items: center; margin-inline: auto; }
  .hero__eyebrow { margin-bottom: 14px; font-size: 0.68rem; letter-spacing: 0.26em; }
  .hero__title { font-size: clamp(2.1rem, 9.2vw, 2.9rem); margin-bottom: 18px; }
  .hero__text { margin-bottom: 28px; }
  .hero__ctas { width: 100%; flex-direction: column; gap: 12px; }
  .hero__ctas .btn { width: 100%; }
  .scroll-cue { display: none; }

  .begin { margin-top: -70px; }
  .begin__panel { grid-template-columns: 1fr; }
  .step { padding: 26px 22px; }
  .step + .step::before { left: 22px; right: 22px; top: 0; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

  .feat__body { margin-top: -38px; }
  .feat__emblem { width: 66px; height: 66px; }
  .fcards, .updates__grid, .tips { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .fcard:hover { transform: none; }
  .keys > div { grid-template-columns: 104px 1fr; gap: 12px; }
  .footer__col a { padding-block: 5px; }

  .option { grid-template-columns: 1fr; gap: 10px; padding: 24px 20px; }
  .option .platform__icon { grid-row: auto; width: 56px; height: 56px; }
  .option .btn { grid-column: 1; width: 100%; margin-top: 4px; }
  .device__url { font-size: 0.62rem; }
  .features__mark { top: 20px; }

  .player__caption span { display: none; }
  .player__toggle { width: 42px; height: 42px; }
  .yt__play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .yt__play svg { width: 28px; height: 28px; }
  .shots { grid-template-columns: 1fr; }
  .shots li:last-child { grid-column: auto; }
  .hero__facts { margin-top: 24px; justify-content: center; gap: 8px; }
  .hero__facts li { padding: 8px 12px; font-size: 0.82rem; }

  .final { min-height: 0; padding-top: 68vw; }
  .final__bg { bottom: auto; height: 100vw; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .final__bg img { object-position: 50% 30%; }
  .final::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(5, 6, 20, 0) 20%); }
  .final__ctas { width: 100%; flex-direction: column; }
  .final__ctas .btn { width: 100%; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer__bottom { flex-direction: column; }

  .platform { padding: 28px 20px; }
  .platform__head { flex-wrap: wrap; }
  .platform__icon { width: 60px; height: 60px; }
  .badge { margin-left: 0; }
  .page-hero .btn--lg { width: 100%; }
  .faq summary { padding: 18px 18px; font-size: 1rem; }
  .faq .faq__body { padding: 0 18px 20px; }
  .help .btn { width: 100%; }
  .btn--block { white-space: normal; text-align: center; line-height: 1.2; padding-block: 12px; font-size: 0.98rem; letter-spacing: 0.06em; padding-inline: 18px; }
  .btn--lg { font-size: 1rem; padding-inline: 22px; letter-spacing: 0.07em; }
}

@media (max-width: 400px) {
  :root { --crest-w: 124px; }
  .site-header.is-scrolled { --crest-w: 116px; }
  .header-side--right .btn--primary .icon { display: none; }
  .btn--lg { padding: 0 20px; font-size: 0.96rem; }
}

/* Footer credit line (PSProtect) */
.footer__credit a { color: var(--frost); font-weight: 700; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease), color 0.2s; }
.footer__credit a:hover { color: var(--ice); background-size: 100% 1px; }

/* Very narrow phones (320px): keep the header on one line */
@media (max-width: 340px) {
  :root { --crest-w: 100px; }
  .site-header.is-scrolled { --crest-w: 96px; }
  .header-side--right .btn--primary { padding: 0 8px; font-size: 0.68rem; letter-spacing: 0.03em; }
  .nav-toggle { width: 40px; }
}

/* Link to the wiki under the feature cards */
.features__more { margin-top: clamp(28px, 3vw, 40px); text-align: center; }
