/* ==========================================================================
   Dead Drop landing — Apogee skeleton, Revenant palette (black / ochre-white / gold)
   ========================================================================== */

@font-face {
  font-family: "Street Reich";
  src: url("../assets/Street Reich.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #050505;
  --ink: #0a0707;
  --gold: #d6a24a;
  --gold-light: #f2d9a8;
  --gold-dark: #8f5d18;
  /* The disk: warm ochre-white with gold in the glow. */
  --ochre: #f3dcb4;
  --ochre-hi: #fff3dc;
  --ochre-glow: rgba(243, 220, 180, 0.55);
  --ochre-dim: rgba(243, 220, 180, 0.22);
  --turq: #35c9c0;
  --turq-light: #8ff0ea;
  --turq-dim: rgba(53, 201, 192, 0.35);
  --text: #ffffff;
  --text-80: rgba(255, 255, 255, 0.8);
  --glass-nav: rgba(10, 7, 7, 0.35);
  --glass-auth: rgba(0, 0, 0, 0.35);
  --glass-card: rgba(17, 16, 15, 0.55); /* Apogee uses 0.35; the disk is far brighter than its nebula */
  --glass-panel: rgba(17, 16, 15, 0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-menu: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Suisse Int'l", "Suisse Intl", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-art: "Black Ops One", "Street Reich", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
img { display: block; max-width: 100%; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 20px; top: -70px; z-index: 100; background: var(--gold); color: var(--ink); padding: 12px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--turq); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Keyframes (Apogee, verbatim)
   -------------------------------------------------------------------------- */

@keyframes fade-up    { from { opacity: 0; transform: translateY(24px); }  to { opacity: 1; transform: translateY(0); } }
@keyframes fade-down  { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-left  { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fade-right { from { opacity: 0; transform: translateX(20px); }  to { opacity: 1; transform: translateX(0); } }
@keyframes fade-scale { from { opacity: 0; transform: scale(0.92); }       to { opacity: 1; transform: scale(1); } }
@keyframes bar-grow   { from { transform: scale(0); opacity: 0; }          to { transform: scale(1); opacity: 1; } }

.animate-fade-up, .animate-fade-down, .animate-fade-left, .animate-fade-right, .animate-fade-scale {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-timing-function: var(--ease);
  animation-delay: var(--delay, 0ms);
}
.animate-fade-up    { animation-name: fade-up;    animation-duration: 0.8s; }
.animate-fade-down  { animation-name: fade-down;  animation-duration: 0.7s; }
.animate-fade-left  { animation-name: fade-left;  animation-duration: 0.8s; }
.animate-fade-right { animation-name: fade-right; animation-duration: 0.8s; }
.animate-fade-scale { animation-name: fade-scale; animation-duration: 0.9s; }
.animate-bar-grow   { animation: bar-grow 0.6s var(--ease) forwards; opacity: 0; }

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */

.glass { backdrop-filter: blur(17px); -webkit-backdrop-filter: blur(17px); }

.eyebrow {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--turq);
  box-shadow: 0 0 0 3px var(--turq-dim);
  vertical-align: 1px;
}

.btn-gold, .btn-ghost, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 11px;
  font-size: 16px;
  line-height: 16px;
  font-weight: 450;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s, box-shadow 0.2s;
}
.btn-gold  { background: var(--gold); color: var(--ink); }
.btn-gold:hover  { background: var(--gold-light); }
.btn-ghost { color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }
.btn-outline { border: 1px solid var(--turq); color: #fff; }
.btn-outline:hover { background: rgba(53, 201, 192, 0.08); box-shadow: 0 0 18px var(--turq-dim); }

.btn-lg {
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 17.5px;
}
.btn-lg.btn-outline { border-color: #fff; }
.btn-lg.btn-outline:hover { border-color: var(--turq); }
.btn-block { width: 100%; height: 50px; border-radius: 12px; font-size: 15px; }
.btn-block.btn-outline { border-color: rgba(255, 255, 255, 0.3); }

/* --------------------------------------------------------------------------
   Hero section
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.4s ease;
}
.hero-video.is-on { opacity: 1; }

.hero-inner {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Nav */

.nav {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 50;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.brand-word {
  color: #fff;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand-sub { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

.nav-pill {
  display: none;
  height: 52px;
  padding: 0 24px;
  align-items: center;
  gap: 30px;
  background: var(--glass-nav);
  border-radius: 11px;
}
.nav-item { color: var(--text-80); font-size: 16px; line-height: 16px; transition: color 0.2s; }
.nav-item:hover, .nav-item.is-active { color: #fff; }
.nav-item.is-active { color: var(--turq-light); }

.auth-pill {
  display: none;
  height: 52px;
  padding: 3px;
  background: var(--glass-auth);
  border-radius: 13px;
  align-items: center;
  gap: 5px;
}

.burger {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: var(--glass-nav);
  color: #fff;
  transition: background-color 0.2s;
}
.burger:hover { background: rgba(255, 255, 255, 0.1); }
.burger-icons { position: relative; width: 20px; height: 20px; }
.burger-icons svg { position: absolute; inset: 0; transition: all 0.3s ease-out; }
.ico-menu { opacity: 1; transform: rotate(0) scale(1); }
.ico-x    { opacity: 0; transform: rotate(-90deg) scale(0.75); }
.burger[aria-expanded="true"] .ico-menu { opacity: 0; transform: rotate(90deg) scale(0.75); }
.burger[aria-expanded="true"] .ico-x    { opacity: 1; transform: rotate(0) scale(1); }

/* Mobile menu (visibility toggled, never unmounted) */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  visibility: hidden;
  transition: visibility 0.5s var(--ease-menu);
}
.mobile-menu.is-open { visibility: visible; }

.mobile-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  transition: opacity 0.5s;
}
.mobile-menu.is-open .mobile-backdrop { opacity: 1; }

.mobile-panel {
  position: absolute;
  top: 76px; left: 16px; right: 16px;
  background: var(--glass-panel);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px;
  transform-origin: top;
  opacity: 0;
  transform: translateY(-16px) scale(0.97);
  transition: all 0.5s var(--ease-menu);
}
.mobile-menu.is-open .mobile-panel { opacity: 1; transform: translateY(0) scale(1); }

.mobile-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  opacity: 0;
  transform: translateX(-12px);
  transition: all 0.3s;
  transition-delay: 0ms;
}
.mobile-links a:hover { background: rgba(255, 255, 255, 0.06); }
.mobile-menu.is-open .mobile-links a {
  opacity: 1; transform: translateX(0);
  transition-delay: calc(100ms + var(--i, 0) * 50ms);
}
.mobile-divider { height: 1px; background: rgba(255, 255, 255, 0.1); margin: 20px 0; }
.mobile-ctas {
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateY(8px);
  transition: all 0.3s; transition-delay: 0ms;
}
.mobile-menu.is-open .mobile-ctas { opacity: 1; transform: translateY(0); transition-delay: 350ms; }

body.menu-open { overflow: hidden; }

/* Hero row */

.hero-row {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 32px 0;
  min-height: 0;
}

.hero-grid {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Copy column: the business mark sits behind the words, with a soft scrim so
   the text survives the bright ocean stage. */
.copy {
  position: relative;
  max-width: 593px;
  padding: 24px 0;
}
.copy::before {
  content: "";
  position: absolute;
  inset: -60px -80px -60px -120px;
  background: radial-gradient(70% 70% at 40% 50%, rgba(5, 5, 5, 0.62), rgba(5, 5, 5, 0) 72%);
  pointer-events: none;
  z-index: 0;
}
.copy > * { position: relative; z-index: 1; }
.copy-sigil {
  position: absolute;
  z-index: 0 !important;
  left: -40px;
  top: 50%;
  width: min(560px, 90vw);
  height: auto;
  transform: translateY(-50%);
  opacity: 0.22;
  filter: saturate(0.7);
  pointer-events: none;
  animation: sigil-turn 240s linear infinite;
}
@keyframes sigil-turn { to { transform: translateY(-50%) rotate(360deg); } }

.title-art .w1, .title-art .w2 { display: block; }
.title-art .w2 { padding-left: 1.05em; }

.title-art {
  font-family: var(--font-art);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 56px;
  line-height: 0.92;
  margin: 10px 0 14px;
  background: linear-gradient(180deg, var(--ochre-hi) 0%, var(--ochre) 45%, var(--gold) 78%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.8)) drop-shadow(0 0 22px var(--ochre-dim));
}

.headline {
  color: #fff;
  font-size: 36px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.subhead {
  color: var(--text-80);
  font-size: 18px;
  font-weight: 450;
  line-height: 1.3;
  max-width: 370px;
  margin-bottom: 28px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.6); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }

/* --------------------------------------------------------------------------
   Game card (the floating glass card)
   -------------------------------------------------------------------------- */

.game-wrap { width: 100%; max-width: 405px; margin: 0 auto; }

.game {
  position: relative;
  width: 100%;
  border-radius: 24px;
  background: var(--glass-card);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 20px 20px 20px;
  border: 1px solid rgba(243, 220, 180, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.game-label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.game-title { color: #fff; font-size: 19px; font-weight: 450; line-height: 23px; margin-top: 4px; }
.meters { display: flex; gap: 14px; font-size: 13px; color: var(--text-80); white-space: nowrap; flex-wrap: wrap; justify-content: flex-end; }
.meters b { color: var(--ochre); font-weight: 450; }

/* Seal stage: worlds list beside the seal */

.seal-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.worlds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.world {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  text-align: left;
  min-width: 118px;
  transition: border-color 0.2s, background 0.2s;
}
.world:hover { border-color: var(--ochre-dim); }
.world.is-active { border-color: var(--ochre); box-shadow: 0 0 16px var(--ochre-dim); }
.world-num { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.world-name { font-size: 18px; color: #fff; }
.world-count { font-size: 14px; color: var(--text-80); }
.world.is-done .world-count { color: var(--turq-light); }

/* The seal: a square that turns. */

.seal {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 0 auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.seal.is-dragging { cursor: grabbing; }

.seal { perspective: 1400px; }
.seal-rot {
  position: absolute;
  inset: 0;
  transform: rotateX(calc(var(--tx, 0) * 1deg)) rotateY(calc(var(--ty, 0) * 1deg)) rotate(calc(var(--a, 0) * 1deg));
  transform-style: preserve-3d;
  will-change: transform;
}

.seal-art { position: absolute; inset: 0; pointer-events: none; }
.seal-art svg, .seal-art img { width: 100%; height: 100%; display: block; }
.seal-art img { object-fit: contain; filter: drop-shadow(0 0 18px rgba(243, 220, 180, 0.18)); }

.seal-nodes { position: absolute; inset: 0; }

.node {
  position: absolute;
  width: 24px; height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(8, 6, 4, 0.72);
  border: 1px solid rgba(243, 220, 180, 0.4);
  color: rgba(255, 255, 255, 0.6);
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
  z-index: 2;
}
.node span {
  display: block;
  font-size: 9px;
  line-height: 1;
  transform: rotate(calc(var(--a, 0) * -1deg));   /* numbers stay upright while the seal turns */
  transition: scale 0.2s var(--ease);
}
.node:hover:not(:disabled) { z-index: 5; border-color: var(--ochre-hi); box-shadow: 0 0 0 4px var(--ochre-dim), 0 0 26px var(--ochre-glow); }
.node:hover:not(:disabled) span { scale: 1.7; }
.node.is-open { color: #fff; border-color: var(--ochre); box-shadow: 0 0 0 3px var(--ochre-dim), 0 0 12px var(--ochre-dim); }
.node.is-done { color: var(--ink); background: var(--ochre); border-color: var(--ochre-hi); box-shadow: 0 0 14px var(--ochre-glow); }
.node.is-selected { border-color: var(--ochre-hi); box-shadow: 0 0 0 5px var(--ochre-dim), 0 0 30px var(--ochre-glow); color: #fff; }
.node.is-selected.is-done { color: var(--ink); }
.node:disabled { opacity: 0.55; }

.seal-note { font-size: 14px; color: var(--text-80); opacity: 0.8; }

.chat-col { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chat-head { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.chat-who { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* Damien (sprite). Positioned by script; hidden until the sheet loads. */
.familiar {
  position: absolute;
  left: 0; top: 0;
  width: 96px; height: 104px;
  background-repeat: no-repeat;
  pointer-events: none;
  display: none;
  z-index: 30;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
  transition: left 1.6s cubic-bezier(0.4, 0, 0.2, 1), top 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.familiar.is-ready { display: block; }
.familiar.is-flipped { transform: scaleX(-1); }
.seal .familiar { position: absolute; left: auto; right: -64px; top: 58%; transition: none; z-index: 6; }

/* Chat */

.chat {
  min-height: 150px;
  max-height: 320px;
  overflow-y: auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 162, 74, 0.4) transparent;
}
.msg { max-width: 92%; padding: 8px 10px; border-radius: 10px; white-space: pre-wrap; word-break: break-word; }
.msg.you   { align-self: flex-end; background: rgba(53, 201, 192, 0.14); border: 1px solid rgba(53, 201, 192, 0.25); }
.msg.guard { align-self: flex-start; background: rgba(243, 220, 180, 0.08); border: 1px solid rgba(243, 220, 180, 0.18); }
.msg.system { align-self: center; font-size: 14px; color: var(--text-80); opacity: 0.85; text-align: center; }
.msg.block  { align-self: flex-start; color: var(--gold-light); font-size: 14px; }
.guard-word { display: inline-block; opacity: 0; animation: fade-up 0.35s var(--ease) forwards; animation-delay: var(--w, 0ms); }

.compose, .claim { display: flex; gap: 8px; }
.claim { max-width: 460px; }
.compose textarea, .claim input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  padding: 10px 12px;
  resize: none;
}
.compose textarea:focus, .claim input:focus { outline: none; border-color: var(--turq); box-shadow: 0 0 0 3px var(--turq-dim); }
.compose textarea::placeholder, .claim input::placeholder { color: rgba(255, 255, 255, 0.4); }
.compose .btn-gold, .claim .btn-outline { height: auto; min-height: 42px; padding: 0 18px; }

.game-status { min-height: 1em; font-size: 14px; color: var(--text-80); }

/* Win flash on the card */
@keyframes card-flash { 0% { box-shadow: 0 0 0 0 var(--ochre-glow), 0 30px 80px rgba(0,0,0,0.45); } 100% { box-shadow: 0 0 0 40px rgba(243,220,180,0), 0 30px 80px rgba(0,0,0,0.45); } }
.game.is-win { animation: card-flash 1.2s ease-out; }

/* Reveal dialog */

.reveal {
  margin: auto;
  width: min(560px, calc(100% - 32px));
  border: 1px solid rgba(243, 220, 180, 0.25);
  border-radius: 24px;
  background: rgba(10, 7, 7, 0.85);
  color: #fff;
  padding: 32px;
}
.reveal::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); }
.reveal h2 { font-size: 28px; font-weight: 400; margin: 8px 0 12px; }
.reveal-word { font-size: 16px; margin-bottom: 12px; }
.reveal-word b { color: var(--turq-light); font-weight: 450; }
.reveal-lesson { color: var(--text-80); margin-bottom: 16px; line-height: 1.5; }
.reveal details { margin-bottom: 20px; font-size: 13px; color: var(--text-80); }
.reveal pre { white-space: pre-wrap; margin-top: 8px; padding: 12px; background: rgba(0, 0, 0, 0.4); border-radius: 12px; font-size: 12px; }
.reveal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.reveal-art {
  width: 96px; height: auto;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 18px rgba(53, 201, 192, 0.45));
}

/* --------------------------------------------------------------------------
   Armory
   -------------------------------------------------------------------------- */

.wrap { width: min(1320px, calc(100% - 40px)); margin: 0 auto; }

.armory {
  position: relative;
  padding: 56px 0 72px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(214, 162, 74, 0.10), transparent 70%),
    linear-gradient(180deg, #050505, #030303);
  border-top: 1px solid rgba(214, 162, 74, 0.15);
  overflow: hidden;
}
.armory::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/web/texture.webp") center / cover no-repeat;
  opacity: 0.16;
  pointer-events: none;
}
.armory::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.85), rgba(5, 5, 5, 0.6) 40%, rgba(5, 5, 5, 0.9));
  pointer-events: none;
}
.armory .wrap { position: relative; z-index: 1; }

.armory-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.armory h2 { font-size: 36px; font-weight: 400; line-height: 1; margin-top: 8px; }
.armory-deck { color: var(--text-80); max-width: 520px; line-height: 1.4; }

.featured { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }

.card {
  position: relative;
  border-radius: 20px;
  padding: 20px;
  background: rgba(17, 16, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.card:hover { border-color: rgba(53, 201, 192, 0.45); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.card.is-featured { border-color: rgba(214, 162, 74, 0.35); background: linear-gradient(160deg, rgba(214, 162, 74, 0.10), rgba(17, 16, 15, 0.6) 55%); }
.card-art { width: 96px; height: 96px; object-fit: contain; margin-bottom: 4px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6)); }
.card.is-featured .card-art { width: 128px; height: 128px; }
.card-art.is-wide { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #0b0b0b; }
.card-cat { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.card h3 { font-size: 20px; font-weight: 450; line-height: 1.1; }
.card-sub { color: var(--ochre); font-size: 15px; line-height: 1.2; margin-top: -2px; }
.card-inside { color: rgba(255, 255, 255, 0.55); font-size: 12px; line-height: 1.45; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; flex: 0 0 auto !important; }
.packs-note { color: var(--text-80); font-size: 15px; line-height: 1.5; max-width: 760px; margin: -8px 0 18px; }
.card p { color: var(--text-80); font-size: 14px; line-height: 1.4; flex: 1; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.price { font-size: 22px; color: #fff; }
.price small { font-size: 12px; color: var(--text-80); margin-left: 4px; }
.price.free { color: var(--turq-light); font-size: 16px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters button {
  height: 38px; padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-80);
  font-size: 13px;
  transition: all 0.2s;
}
.filters button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.filters button:hover:not([aria-pressed="true"]) { border-color: var(--turq); color: #fff; }

.products { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* Footer */

.foot { padding: 28px 0 40px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 13px; color: var(--text-80); }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.foot-brand { color: #fff; }
.foot a:hover { color: var(--turq-light); }

/* --------------------------------------------------------------------------
   Breakpoints: sm 640 · md 768 · lg 1024 (Apogee)
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .nav { padding: 30px 32px 0; }
  .brand img { width: 32px; height: 32px; }
  .brand-word { font-size: 28px; }
  .hero-grid { padding: 0 32px; }
  .title-art { font-size: 84px; }
  .headline { font-size: 52px; margin-bottom: 32px; }
  .subhead { font-size: 20px; margin-bottom: 40px; }
  .cta-row { gap: 16px; }
  .btn-lg { height: 51px; padding: 0 27px; font-size: 17.5px; }
  .game { border-radius: 33px; padding: 32px 32px 24px; }
  .mobile-panel { top: 86px; left: 24px; right: 24px; padding: 32px; }
  .featured { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .armory h2 { font-size: 48px; }
}

@media (min-width: 768px) {
  .nav { padding-left: 82px; padding-right: 82px; }
  .hero-grid { padding: 0 82px; }
  .title-art { font-size: 96px; }
  .headline { font-size: 64px; }
  .subhead { font-size: 22px; }
  .products { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .nav-pill, .auth-pill { display: flex; }
  .burger { display: none; }
  .nav, .hero-grid { max-width: 2800px; }   /* Apogee caps at 1800; the card needs the whole screen */
  .hero-grid { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
  .title-art { font-size: 104px; }
  .headline { font-size: 72px; }
  /* Left third: the words. Right two-thirds: the game. */
  .copy { flex: 1 1 0; min-width: 320px; }
  .game-wrap { flex: 0 1 66%; max-width: 66%; margin: 0; }
  .seal-stage { flex-direction: row; align-items: stretch; gap: 28px; }
  .worlds { flex: 0 0 250px; flex-direction: column; flex-wrap: nowrap; align-self: stretch; justify-content: center; gap: 8px; }
  .world { min-width: 0; }
  .seal { flex: 0 0 auto; width: min(58vh, 600px, 100%); margin: auto 0; }
  .chat-col { flex: 1 1 320px; min-width: 300px; margin-top: 96px; }
  .chat { flex: 1 1 auto; min-height: 200px; max-height: none; }
  .node { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  .node span { font-size: 11px; }
  .armory-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .products { grid-template-columns: repeat(4, 1fr); }
}

@media (max-height: 820px) and (min-width: 1024px) {
  .seal { width: min(52vh, 520px, 100%); }
  .chat { min-height: 140px; }
  .headline { font-size: 56px; }
  .title-art { font-size: 84px; }
}

@media (max-width: 639px) {
  .familiar { transform: scale(0.68); transform-origin: bottom right; }
  .familiar.is-flipped { transform: scale(0.68) scaleX(-1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .animate-fade-up, .animate-fade-down, .animate-fade-left, .animate-fade-right, .animate-fade-scale, .animate-bar-grow, .guard-word { opacity: 1; transform: none; }
  .copy-sigil { animation: none; }
}
