/* Spiritfate landing page. Palette: the logo's ice-blue over the Rift Bastion lobby's cavern blues,
   with the database's ember orange as the action colour so the two sites read as one family. */
:root {
  --bg: #0d0b17;
  --bg-2: #14112a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f1eef8;
  --muted: #b8b2cc;
  --dim: #7c7692;
  --blue: #4fc8ff;
  --blue-deep: #1c4fd8;
  --purple: #8a5cff;
  --orange: #ff8a3d;
  --orange-2: #ffb15c;
  --discord: #5865f2;
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: "Baloo 2", "Montserrat", "Segoe UI", system-ui, sans-serif;
  --col: 1180px;
  --pad: clamp(18px, 4vw, 40px);
  --radius: 18px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 16px; }
h2 em, h1 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--orange-2) 0%, var(--orange) 45%, #ff6a8a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* On the hero the h1's text-shadow would show through the clipped gradient and dull it, so the
   highlight gets a brighter ramp, no shadow, and a glow drawn as a filter instead. */
h1 em {
  background: linear-gradient(92deg, #ffd08a 0%, #ff9a3d 40%, #ff5f8a 100%);
  -webkit-background-clip: text; background-clip: text;
  text-shadow: none; filter: drop-shadow(0 4px 18px rgba(255, 138, 61, 0.45));
}
h3 { font-size: 22px; }
p { margin: 0; }
.container { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 var(--pad); position: relative; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #1a0d05; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn svg { width: 20px; height: 16px; flex: 0 0 auto; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #1c0c03;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  box-shadow: 0 8px 26px rgba(255, 138, 61, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(255, 138, 61, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); border-color: var(--border-strong); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 17px 32px; font-size: 17px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled { background: rgba(13, 11, 23, 0.86); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border); }
.nav-inner { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); height: 100%; display: flex; align-items: center; gap: 24px; }
.nav-brand img { width: 150px; height: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--text); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); transition: background .15s ease, color .15s ease; }
.nav-links a:hover { background: rgba(255, 255, 255, 0.1); }
.nav-links .btn { margin-left: 8px; text-shadow: none; }
.nav-links .btn:hover { background: linear-gradient(180deg, var(--orange-2), var(--orange)); }
.nav-discord { display: inline-flex; align-items: center; gap: 8px; }
.nav-discord svg { width: 18px; height: 14px; color: #8b95f7; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(13, 11, 23, 0.6); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 48px) 0 96px; overflow: hidden; isolation: isolate; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.04); animation: hero-drift 28s ease-in-out infinite alternate; }
@keyframes hero-drift { from { transform: scale(1.04) translate3d(-0.6%, 0, 0); } to { transform: scale(1.08) translate3d(0.6%, -0.8%, 0); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 11, 23, 0.6) 0%, rgba(13, 11, 23, 0.35) 30%, rgba(13, 11, 23, 0.7) 62%, var(--bg) 100%),
    radial-gradient(60% 60% at 50% 38%, rgba(13, 11, 23, 0.55) 0%, rgba(13, 11, 23, 0) 100%);
}
.hero-inner { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 var(--pad); display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(560px, 100%); height: auto; margin-bottom: 6px; filter: drop-shadow(0 12px 34px rgba(20, 90, 255, 0.5)); }
.hero-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.hero-title { font-size: clamp(30px, 4.6vw, 54px); text-shadow: 0 3px 20px rgba(0, 0, 0, 0.55); margin-bottom: 18px; }
.hero-lead { font-size: clamp(16px, 1.5vw, 19px); color: #e6e1f4; max-width: 640px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 22px; }
.hero-platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.hero-platforms a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .15s ease; }
.hero-platforms a:hover { color: var(--text); }
.hero-platforms svg { width: 18px; height: 18px; }

/* The landscape phone: a 19.5:9 screen inside a rounded, even bezel with a punch-hole camera on
   the left and the buttons on the top edge, tilted a few degrees into the page. The three boss
   renders break its edges. The video inside is whatever renders/shorts holds. */
.stage { position: relative; width: min(980px, calc(100% - 2 * var(--pad))); margin: 56px auto 0; perspective: 1600px; }
.phone {
  position: relative; border-radius: 44px; padding: 14px;
  background: linear-gradient(160deg, #2a2740, #0d0b17 40%, #0a0812);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(0, 0, 0, 0.8), 0 50px 120px rgba(0, 0, 0, 0.7), 0 0 120px rgba(79, 200, 255, 0.22);
  transform: rotateX(7deg); transform-origin: 50% 100%;
  transition: transform .6s ease;
}
.stage:hover .phone { transform: rotateX(3deg); }
/* buttons on the top edge: volume pair on the left, power on the right */
.phone::before, .phone::after { content: ""; position: absolute; top: -5px; height: 5px; border-radius: 3px 3px 0 0; background: #2a2740; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.phone::before { left: 12%; width: 9%; background: linear-gradient(90deg, #2a2740 0 46%, transparent 46% 54%, #2a2740 54%); }
.phone::after { right: 12%; width: 6%; }
.phone-screen { position: relative; border-radius: 32px; overflow: hidden; background: #1a1730; }
.phone-screen video { width: 100%; aspect-ratio: 19.5 / 9; object-fit: cover; display: block; }
/* glass: a soft sheen across the top edge, and the punch-hole camera */
.phone-screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 40px 60px -50px rgba(255, 255, 255, 0.18); }
.phone-screen::after { content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 40% 40%, #2b3550 0%, #05060c 55%); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.85), 0 0 0 4px rgba(255, 255, 255, 0.05); }
.screen-tag { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(13, 11, 23, 0.72); border: 1px solid var(--border-strong); backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.screen-tag i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 10px #ff4d5e; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.float { position: absolute; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.6)); pointer-events: none; }
.float-imp { width: 210px; right: -70px; bottom: -60px; animation: hover 4.5s ease-in-out infinite; }
.float-wyrm { width: 300px; left: -150px; bottom: 10px; animation: hover 6s ease-in-out -2s infinite; }
.float-roc { width: 220px; right: -40px; top: -120px; animation: hover 5.2s ease-in-out -1s infinite; }
@keyframes hover { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-16px) rotate(-1deg); } }

/* ---------- at-a-glance ribbon ---------- */
.ribbon { position: relative; z-index: 1; margin-top: -1px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(79, 200, 255, 0.06), rgba(255, 138, 61, 0.06)); overflow: hidden; }
.ribbon-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ribbon span { display: inline-flex; align-items: center; gap: 8px; padding: 16px 34px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; border-right: 1px solid var(--border); }
.ribbon b { font-family: var(--display); font-size: 20px; font-weight: 800; color: var(--text); }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.section-tint { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.section-lead { font-size: 18px; color: var(--muted); max-width: 720px; margin-bottom: 44px; }
.glow { position: absolute; width: 900px; height: 900px; border-radius: 50%; filter: blur(120px); opacity: 0.35; pointer-events: none; }
.glow-blue { background: radial-gradient(circle, rgba(79, 200, 255, 0.5), transparent 60%); right: -300px; top: -200px; }
.glow-orange { background: radial-gradient(circle, rgba(255, 138, 61, 0.45), transparent 60%); left: -350px; bottom: -300px; }
.glow-play { background: radial-gradient(circle, rgba(28, 79, 216, 0.6), transparent 60%); left: 50%; top: 50%; transform: translate(-50%, -50%); width: 1200px; height: 1200px; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* features and tiles: icon, title, one or two sentences */
.features, .tiles { display: grid; gap: 16px; }
.features { grid-template-columns: repeat(4, 1fr); margin-top: 36px; }
.tiles-4 { grid-template-columns: repeat(4, 1fr); }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.fineprint { margin-top: 18px; font-size: 13px; color: var(--dim); }
.feature, .tile {
  --c: var(--blue);
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px 28px; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--c), transparent); }
.feature::after { content: ""; position: absolute; width: 240px; height: 240px; right: -110px; top: -110px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 26%, transparent), transparent 65%); pointer-events: none; }
.feature:hover, .tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, var(--border)); }
.feature img, .tile img, .tile-icon { width: 56px; height: 56px; margin-bottom: 16px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4)); }
.tile-icon { display: grid; place-items: center; border-radius: 14px; background: rgba(79, 200, 255, 0.12); color: var(--blue); filter: none; }
.tile-icon svg { width: 30px; height: 30px; }
.feature h3, .tile h3 { font-size: 21px; margin-bottom: 8px; }
.feature p, .tile p { color: var(--muted); font-size: 15px; }

/* arsenal: inventory slots */
.arsenal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.arsenal li { text-align: center; padding: 18px 10px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: transform .25s ease, border-color .25s ease; }
.arsenal li:hover { transform: translateY(-4px); border-color: rgba(79, 200, 255, 0.45); }
.arsenal img { width: 84px; height: 84px; margin: 0 auto 10px; padding: 8px; border-radius: 16px; background: linear-gradient(180deg, rgba(79, 200, 255, 0.12), rgba(79, 200, 255, 0.03)); box-shadow: inset 0 0 0 1px rgba(79, 200, 255, 0.25), 0 8px 18px rgba(0, 0, 0, 0.4); transition: transform .25s ease; }
.arsenal li:hover img { transform: scale(1.08) rotate(-4deg); }
.arsenal b { display: block; font-family: var(--display); font-size: 17px; font-weight: 800; line-height: 1.15; }
.arsenal span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* affinities */
.affinities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.affinities li {
  --c: var(--blue);
  position: relative; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.affinities li:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 50%, var(--border)); }
.affinities li::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 60%); pointer-events: none; }
.affinities i { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0%, var(--c) 30%, color-mix(in srgb, var(--c) 40%, #000) 100%); box-shadow: 0 0 26px color-mix(in srgb, var(--c) 70%, transparent); }
.affinities b { font-family: var(--display); font-size: 21px; font-weight: 800; color: var(--c); line-height: 1.1; }
.affinities span { color: var(--muted); font-size: 13.5px; }

/* modes */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.mode {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; padding: 24px; border-radius: var(--radius);
  background: var(--img) center / cover no-repeat; border: 1px solid var(--border); overflow: hidden; isolation: isolate;
  transition: transform .3s ease, box-shadow .3s ease;
}
.mode::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 11, 23, 0) 25%, rgba(13, 11, 23, 0.6) 58%, rgba(13, 11, 23, 0.96) 100%); transition: opacity .3s ease; }
.mode:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 177, 92, 0.3); }
.mode-num { position: absolute; top: 18px; left: 22px; font-family: var(--display); font-weight: 800; font-size: 15px; color: rgba(255, 255, 255, 0.55); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.mode-tag { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-2); background: rgba(13, 11, 23, 0.7); border: 1px solid rgba(255, 177, 92, 0.35); border-radius: 999px; padding: 5px 10px; margin-bottom: 12px; }
.mode h3 { font-size: 27px; margin-bottom: 8px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }
.mode p { font-size: 14px; color: #d9d3ea; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }

/* worlds */
.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.world { --c: var(--blue); margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.world:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 45%, var(--border)); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); }
.world img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.world:hover img { transform: scale(1.05); }
.world figcaption { padding: 14px 16px 16px; }
.world b { display: block; font-family: var(--display); font-size: 18px; font-weight: 800; }
.world span { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.world i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex: 0 0 auto; }

/* bosses */
.bosses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bosses li { --c: var(--blue); position: relative; text-align: center; padding: 22px 12px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.bosses li::before { content: ""; position: absolute; left: 50%; top: 34%; width: 180px; height: 180px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 35%, transparent), transparent 65%); opacity: 0.6; transition: opacity .3s ease, transform .3s ease; }
.bosses li:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 45%, var(--border)); }
.bosses li:hover::before { opacity: 1; transform: translate(-50%, -50%) scale(1.25); }
.bosses img { position: relative; width: 180px; height: 180px; margin: 0 auto 8px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.5)); transition: transform .3s ease; }
.bosses li:hover img { transform: translateY(-8px) scale(1.08); }
.bosses b { display: block; font-family: var(--display); font-size: 19px; font-weight: 800; }
.bosses span { font-size: 13px; color: var(--muted); }
.bosses em { display: flex; justify-content: center; gap: 6px; margin-top: 12px; font-style: normal; }
.bosses em i { display: flex; flex-direction: column; min-width: 58px; padding: 6px 8px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); font-style: normal; font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1.1; color: var(--c); }
.bosses em small { font-family: var(--font); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: var(--dim); }

/* loot */
.loot { padding-top: 0; }
.loot-strip { position: relative; margin-bottom: clamp(48px, 7vw, 80px); padding: 24px 0 0; display: grid; gap: 16px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.loot-track { display: flex; gap: 16px; width: max-content; animation: marquee 70s linear infinite; }
.loot-track-rev { animation-direction: reverse; animation-duration: 85s; }
.loot-track img { width: 78px; height: 78px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); padding: 8px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4)); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* rarity legend */
.rarity { display: flex; flex-wrap: wrap; gap: 10px; margin: -20px 0 28px; }
.rarity li { --c: var(--muted); display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--c); font-size: 13px; font-weight: 700; }
.rarity li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* uniques gallery: one row of share cards, swipe or scroll sideways */
.cards { margin: 0 0 28px; }
.cards-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 0 -4px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.cards-track a { flex: 0 0 auto; width: min(420px, 78vw); scroll-snap-align: start; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); transition: transform .25s ease, border-color .25s ease; }
.cards-track a:hover { transform: translateY(-4px); border-color: rgba(255, 154, 61, 0.5); }
.cards-track img { width: 100%; height: auto; display: block; }
.cards-note { font-size: 13px; color: var(--dim); }
.cards-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cards-note a:hover { color: var(--text); }

/* news */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news a { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: transform .25s ease, border-color .25s ease; }
.news a:hover { transform: translateY(-4px); border-color: rgba(88, 101, 242, 0.6); }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--dim); }
.news-tag { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 10px; padding: 4px 8px; border-radius: 999px; color: #8b95f7; background: rgba(88, 101, 242, 0.16); border: 1px solid rgba(88, 101, 242, 0.35); }
.news-tag.devlog { color: var(--orange-2); background: rgba(255, 138, 61, 0.12); border-color: rgba(255, 177, 92, 0.35); }
.news-tag.patch { color: #8ce05a; background: rgba(140, 224, 90, 0.12); border-color: rgba(140, 224, 90, 0.35); }
.news h3 { font-size: 19px; line-height: 1.2; }
.news p { color: var(--muted); font-size: 14px; flex: 1; }
.news-more { font-size: 13px; font-weight: 700; color: var(--text); }
.news-empty { grid-column: 1 / -1; color: var(--dim); font-size: 14px; }
.news-empty a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-family: var(--display); font-weight: 800; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font); font-weight: 700; color: var(--orange); background: rgba(255, 138, 61, 0.12); transition: transform .2s ease; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }
.faq p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* legal pages */
.doc-page { padding-top: var(--nav-h); }
.doc-nav { gap: 2px; }
.doc { max-width: 760px; margin: 0 auto; padding: 56px var(--pad) 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 6px; }
.doc-meta { color: var(--dim); font-size: 13px; margin-bottom: 30px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--muted); font-size: 16px; }
.doc p + p { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.doc b { color: var(--text); }
.doc a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* download */
.play { text-align: center; }
.play .section-lead { margin: 0 auto 32px; }
.play-icon { width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin-bottom: 26px; }
.badge { display: inline-flex; align-items: center; height: 60px; transition: transform .15s ease, filter .15s ease; }
.badge:hover { transform: translateY(-3px); filter: brightness(1.12); }
.badge img { height: 60px; width: auto; }
/* Google ships its badge with a transparent margin baked in (about a sixth of its height on every
   side), so it is drawn taller to put its black box at the same 60px as the other two. */
.badge-google img { height: 89px; margin: 0 -14px; }
/* Valve publishes no store badge, so this one is drawn in the same black-box style as the others. */
.badge-steam { gap: 10px; padding: 0 16px 0 12px; border-radius: 8px; background: #000; border: 1px solid #a6a6a6; color: #fff; }
.badge-steam svg { width: 32px; height: 32px; }
.badge-steam span { display: flex; flex-direction: column; font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; font-size: 22px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }
.badge-steam small { font-size: 10px; font-weight: 400; letter-spacing: 0.02em; margin-bottom: 3px; }
.play-note { font-size: 14px; color: var(--dim); max-width: 560px; margin: 0 auto; }

/* town: no photograph, the market's own icons drift behind the tiles instead */
.town { background: radial-gradient(70% 60% at 50% 0%, rgba(255, 138, 61, 0.14), transparent 70%), linear-gradient(180deg, var(--bg), #15112a 50%, var(--bg)); }
.town-decor { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.town-decor img { position: absolute; width: 340px; height: 340px; opacity: 0.09; filter: blur(2px) saturate(1.3); animation: hover 9s ease-in-out infinite; }
.town-decor img:nth-child(1) { left: -80px; top: 40px; }
.town-decor img:nth-child(2) { right: -60px; top: 120px; animation-delay: -3s; }
.town-decor img:nth-child(3) { left: 40%; bottom: -120px; animation-delay: -6s; }
.town .container { z-index: 1; }

/* community */
.community { padding-top: 0; }
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 36px; }
.community-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 34px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.community-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.community-card > svg { width: 40px; height: 32px; }
.community-card.discord { background: linear-gradient(135deg, rgba(88, 101, 242, 0.28), rgba(88, 101, 242, 0.06)); border-color: rgba(88, 101, 242, 0.4); }
.community-card.discord::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(88, 101, 242, 0.45), transparent 65%); pointer-events: none; }
.community-card.discord > svg { color: #8b95f7; }
.community-card.database > svg { color: var(--orange); }
.community-card h3 { font-size: 26px; }
.community-card p { color: var(--muted); font-size: 15px; flex: 1; }
.socials { display: flex; justify-content: center; gap: 12px; }
.socials a { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: color .15s ease, border-color .15s ease; }
.socials a:hover { color: var(--text); border-color: var(--border-strong); }
.socials svg { width: 20px; height: 20px; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; gap: 28px; }
.footer p { flex: 1; font-size: 12px; color: var(--dim); }
.footer-links { display: flex; gap: 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .features, .tiles-4, .tiles-3, .affinities, .modes, .worlds, .bosses, .news { grid-template-columns: repeat(2, 1fr); }
  .arsenal { grid-template-columns: repeat(4, 1fr); }
  .mode { min-height: 320px; }
  .float-wyrm { width: 220px; left: -60px; }
  .float-roc { width: 160px; top: -70px; }
}
@media (max-width: 900px) {
  .community-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px var(--pad) 20px; background: rgba(13, 11, 23, 0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  .nav.is-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.is-open { background: rgba(13, 11, 23, 0.96); }
  .nav-links .btn { margin: 8px 0 0; }
}
@media (max-width: 600px) {
  .features, .tiles-4, .tiles-3, .affinities, .modes, .worlds, .news { grid-template-columns: 1fr; }
  .arsenal { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .arsenal img { width: 64px; height: 64px; }
  .arsenal span { display: none; }
  .bosses em i { min-width: 0; flex: 1; }
  .badges { flex-direction: column; }
  .bosses { grid-template-columns: repeat(2, 1fr); }
  .bosses img { width: 130px; height: 130px; }
  .hero-title br { display: none; }
  .stage { margin-top: 40px; width: calc(100% - 2 * var(--pad)); }
  .phone { padding: 7px; border-radius: 22px; transform: none; }
  .phone-screen { border-radius: 16px; }
  .phone-screen::after { left: 9px; width: 8px; height: 8px; }
  .screen-tag { bottom: -38px; font-size: 10px; padding: 4px 8px; white-space: nowrap; }
  .float-imp { width: 120px; right: -26px; bottom: -34px; }
  .float-wyrm { width: 150px; left: -50px; bottom: auto; top: -60px; }
  .float-roc { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img, .float, .loot-track, .ribbon-track, .screen-tag i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
