/* =========================================================
   DAM Games Company — Design System v1.0
   One stylesheet shared by every page and component.
   ========================================================= */

:root {
  /* Colour — grounds */
  --bg: #060A14;          /* near-black navy: page ground */
  --bg-2: #0A1122;        /* deep navy: footer, inputs, alt sections */
  --surface: #0F172B;     /* dark slate: cards */
  --surface-2: #151F3A;   /* raised slate: chips, nested panels */
  --surface-3: #1C2848;   /* blue-grey: hover fills */
  --line: rgba(150, 170, 215, 0.13);
  --line-2: rgba(150, 170, 215, 0.24);

  /* Colour — type */
  --text: #F3F5FA;        /* white */
  --text-soft: #CDD3E1;   /* soft white: body copy */
  --muted: #8F9AB5;       /* cool grey: meta, labels */
  --dim: #6F7A96;         /* placeholders, disabled */

  /* Colour — accents (use sparingly) */
  --blue: #3B8BFF;        /* electric blue: interaction, focus, selection */
  --blue-ink: #2E6BE6;    /* blue for fills under white text */
  --purple: #9B6BFF;      /* neon purple: atmosphere, highlights */
  --orange: #FF8A3D;      /* warm orange: primary action */
  --orange-hi: #FFA165;
  --gold: #F4C04E;        /* gold: primary action buttons */
  --gold-hi: #FFD574;
  --gold-ink: #17110A;    /* text on gold (11:1) */
  --green: #4FDDA0;       /* status: available */
  --danger: #FF7A7A;

  /* Type */
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Shape & space */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 92px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

.dam {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100%;
}
.dam a { color: inherit; text-decoration: none; }
.dam img, .dam svg { max-width: 100%; }
.dam :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.dam ::selection { background: rgba(155, 107, 255, 0.45); color: #fff; }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.section-tight { position: relative; padding-block: clamp(48px, 6vw, 80px); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Typography ---------- */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; margin: 0; text-wrap: balance; }
.d-xl { font-size: clamp(40px, 6.2vw, 88px); }
.d-lg { font-size: clamp(34px, 4.6vw, 64px); }
.d-md { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; }
.d-sm { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--text-soft); line-height: 1.65; margin: 0; text-wrap: pretty; }
.body { color: var(--text-soft); margin: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--gold); }
.accent-text { background: linear-gradient(100deg, #6FA8FF 0%, var(--purple) 55%, var(--orange) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0.01em; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary, .dam a.btn-primary { background: var(--gold); color: var(--gold-ink); }
.btn-primary:hover { background: var(--gold-hi); transform: translateY(-2px); box-shadow: 0 14px 34px -16px rgba(244, 192, 78, 0.7); }
.btn-secondary { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(170, 190, 255, 0.5); transform: translateY(-2px); }
.btn-blue { background: var(--blue-ink); color: #fff; }
.btn-blue:hover { background: #3A7BF5; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-soft); padding: 0 14px; }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn-sm { --h: 44px; padding: 0 18px; font-size: 14px; }
.btn-lg { --h: 58px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Store badges — only rendered as links when an official URL exists */
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 14px; background: #0B1020; border: 1px solid var(--line-2); color: var(--text); transition: border-color 0.2s, transform 0.2s var(--ease), background 0.2s; }
.store:hover { border-color: rgba(170, 190, 255, 0.55); transform: translateY(-2px); background: #111833; }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; line-height: 1.2; }
.store b { display: block; font-size: 16px; line-height: 1.2; }
.store.is-pending { border-style: dashed; cursor: default; opacity: 0.85; }
.store.is-pending:hover { transform: none; background: #0B1020; border-color: var(--line-2); }
.store.is-unavailable { opacity: 0.45; border-style: dashed; cursor: default; }

/* ---------- Chips, status, labels ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-soft); font: 600 14px var(--font-body); cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: rgba(170, 190, 255, 0.5); color: var(--text); background: rgba(255, 255, 255, 0.04); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip .count { font: 600 11px var(--font-mono); opacity: 0.65; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-divider { width: 1px; height: 28px; background: var(--line-2); align-self: center; margin: 0 6px; }
@media (max-width: 639px) {
  .chip-row.scroll-sm { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .chip-row.scroll-sm::-webkit-scrollbar { display: none; }
}
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.toolbar .search { flex: 1 1 300px; max-width: 480px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 72px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: rgba(15, 23, 43, 0.5); }
.empty h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.empty p { margin: 0; color: var(--text-soft); max-width: 440px; }

.status { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px; border-radius: 999px; font: 600 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; background: rgba(6, 10, 20, 0.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line-2); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status-live { color: var(--green); }
.status-soon { color: #82B6FF; }
.status-dev { color: #BC9CFF; }
.status-upd { color: var(--orange-hi); }

.sample { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; border: 1px dashed rgba(255, 161, 101, 0.7); background: rgba(6, 10, 20, 0.78); color: #FFB98A; font: 600 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.ph { font-family: var(--font-mono); font-size: 0.9em; color: #FFB98A; background: rgba(255, 138, 61, 0.08); border: 1px dashed rgba(255, 138, 61, 0.4); border-radius: 6px; padding: 1px 7px; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--r-md); border: 1px dashed rgba(255, 161, 101, 0.45); background: rgba(255, 138, 61, 0.06); color: var(--text-soft); font-size: 14px; line-height: 1.55; }
.notice svg { flex: none; width: 20px; height: 20px; color: var(--orange-hi); margin-top: 1px; }
.notice b { color: var(--text); }
.notice-blue { border-color: rgba(59, 139, 255, 0.45); background: rgba(59, 139, 255, 0.07); }
.notice-blue svg { color: #82B6FF; }
.url-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font: 500 12px var(--font-mono); color: var(--muted); }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--surface-2); color: var(--text-soft); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag svg { width: 14px; height: 14px; margin-right: 6px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(6, 10, 20, 0.74); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); flex: none; min-height: 44px; }
.brand-mark { width: 36px; height: 36px; flex: none; display: block; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.08em; }
.brand-word span { font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.3em; color: var(--muted); margin-top: 5px; }
.brand-logo { display: block; height: 78px; width: auto; transition: filter 0.25s, transform 0.25s var(--ease); }
.brand:hover .brand-logo { filter: drop-shadow(0 0 10px rgba(59, 139, 255, 0.45)); transform: translateY(-1px); }
.footer-brand-link { display: inline-block; }
.footer-logo { display: block; width: 260px; height: auto; }
@media (max-width: 899px) { .brand-logo { height: 64px; } }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link { position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 999px; color: var(--text-soft); font-weight: 600; font-size: 15px; transition: color 0.2s, background 0.2s; }
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--gold); }
.header-cta { margin-left: 10px; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-panel { display: none; }
.mobile-link { display: flex; align-items: center; justify-content: space-between; min-height: 60px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.mobile-link svg { width: 20px; height: 20px; color: var(--muted); }
.mobile-link.is-active { color: var(--gold); }
.mobile-sub { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; }
.mobile-sub a { color: var(--muted); font-size: 14px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 899px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-panel { display: block; padding: 8px var(--gutter) 28px; border-top: 1px solid var(--line); background: rgba(6, 10, 20, 0.97); animation: drop 0.3s var(--ease) both; }
  .bar { height: 76px; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--bg-2); border-top: 1px solid var(--line); padding: 80px 0 32px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer-brand p { color: var(--muted); max-width: 340px; margin: 18px 0 24px; font-size: 15px; }
.footer-col h2 { font: 600 12px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer-col a { display: flex; align-items: center; min-height: 40px; color: var(--text-soft); font-size: 15px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 12px; border: 1px dashed var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.social a:hover { color: var(--text); border-color: rgba(170, 190, 255, 0.5); }
.social svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-bottom a:hover { color: var(--text); }
.footer-word { position: absolute; right: -2%; bottom: -0.28em; font-family: var(--font-display); font-weight: 700; font-size: clamp(120px, 20vw, 300px); line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(150, 170, 215, 0.08); pointer-events: none; user-select: none; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Layout ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(36px, 5vw, 88px); align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 292px), 1fr)); gap: 24px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head > div { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; align-items: center; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.with-side { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 64px); align-items: flex-start; }
.with-side > .main { flex: 999 1 560px; min-width: 0; }
.with-side > .side { flex: 1 1 300px; min-width: 0; }
@media (min-width: 900px) { .sticky-side { position: sticky; top: calc(var(--header-h) + 24px); } }
@media (max-width: 1023px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Atmosphere ---------- */
.texture { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(150, 170, 215, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 170, 215, 0.055) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: 0.55; }
.orb-blue { background: #1F4FBF; }
.orb-purple { background: #5A2FC2; }
.orb-orange { background: #B8521C; opacity: 0.35; }
.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { position: relative; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; font: 500 13px var(--font-mono); color: var(--muted); }
.breadcrumb a { min-height: 32px; display: inline-flex; align-items: center; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px; align-items: center; }
.d-hero { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.04; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; position: relative; z-index: 2; }
.hero-art { position: relative; width: 100%; max-width: 620px; justify-self: end; aspect-ratio: 640 / 600; }
.hero-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 8px; color: var(--muted); font: 500 13px var(--font-mono); letter-spacing: 0.04em; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { order: -1; max-width: 400px; justify-self: center; margin-bottom: -12px; }
}

.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding: 22px 14px; font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2vw, 26px); color: var(--text-soft); white-space: nowrap; letter-spacing: -0.01em; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; transform: rotate(45deg); border: 2px solid var(--orange); margin-left: 14px; }
.marquee-track span.alt { color: transparent; -webkit-text-stroke: 1px rgba(205, 211, 225, 0.55); }

/* ---------- Game card ---------- */
.gcard { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s; }
.gcard:hover, .gcard:focus-within { transform: translateY(-6px); border-color: rgba(160, 180, 255, 0.34); box-shadow: 0 36px 70px -36px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(155, 107, 255, 0.14); }
.gcard-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0B1226; }
.gcard-cover .art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: transform 0.7s var(--ease); }
.gcard:hover .gcard-cover .art { transform: scale(1.06); }
.gcard-cover::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(15, 23, 43, 0.85), transparent); pointer-events: none; }
.gcard-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; z-index: 2; }
.gcard-mono { position: absolute; left: 18px; bottom: 12px; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.75); }
.gcard-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 18px; flex: 1; }
.gcard-genre { font: 600 11px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.gcard-title { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.18; letter-spacing: -0.015em; margin: 0; }
.gcard-desc { color: var(--text-soft); font-size: 15px; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.gcard-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 14px; color: var(--text); }
.gcard-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gcard-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.gcard:hover .gcard-link svg { transform: translateX(4px); }
.gcard-store { position: relative; z-index: 3; }
.store-mini { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 12px; font-weight: 600; }
.store-mini svg { width: 14px; height: 14px; }

/* ---------- News card ---------- */
.ncard { position: relative; display: flex; flex-direction: column; gap: 18px; height: 100%; }
.ncard-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: #0B1226; }
.ncard-thumb .art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.7s var(--ease); }
.ncard:hover .ncard-thumb .art { transform: scale(1.05); }
.ncard-thumb .sample { position: absolute; top: 12px; right: 12px; }
.ncard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font: 600 11px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ncard-cat { color: var(--orange-hi); }
.ncard-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.28; letter-spacing: -0.01em; margin: 0; transition: color 0.2s; }
.ncard-title a::after { content: ""; position: absolute; inset: 0; }
.ncard:hover .ncard-title { color: #B5CCFF; }
.ncard-sum { color: var(--text-soft); margin: 0; font-size: 15px; line-height: 1.6; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-weight: 700; font-size: 14px; color: var(--text); }
.label .opt { font-weight: 500; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font: 500 16px var(--font-body); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; -webkit-appearance: none; appearance: none; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(170, 190, 255, 0.4); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 139, 255, 0.22); background: #0C1430; }
.field.has-error .input, .field.has-error .textarea { border-color: var(--danger); }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.error-text { font-size: 13px; color: var(--danger); margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-soft); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.search { position: relative; }
.search > svg { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 50px; border-radius: 999px; }
.search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.search-clear:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ---------- FAQ / accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; min-height: 64px; background: none; border: 0; color: var(--text); font: 700 17px/1.4 var(--font-body); text-align: left; cursor: pointer; }
.faq-q:hover { color: #B5CCFF; }
.pm { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; transition: transform 0.3s var(--ease), background 0.3s, color 0.3s; }
.pm svg { width: 16px; height: 16px; }
.faq-item.is-open .pm { transform: rotate(45deg); background: var(--text); color: var(--bg); border-color: var(--text); }
.faq-a { margin: 0; padding: 0 56px 24px 0; color: var(--text-soft); animation: rise 0.35s var(--ease) both; }

/* ---------- Long-form reading ---------- */
.prose { max-width: 720px; font-size: 17px; line-height: 1.78; color: var(--text-soft); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.22; letter-spacing: -0.015em; color: var(--text); margin: 56px 0 16px; scroll-margin-top: 100px; }
.prose h3 { font-size: 19px; color: var(--text); margin: 32px 0 10px; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--orange); }
.prose a { color: #9EC2FF; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose blockquote { margin: 40px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--purple); font-family: var(--font-display); font-size: clamp(20px, 2vw, 24px); line-height: 1.42; color: var(--text); }
.prose figure { margin: 36px 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.toc { display: flex; flex-direction: column; gap: 2px; padding: 20px; }
.toc h2 { font: 600 12px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--text-soft); font-size: 14px; font-weight: 600; }
.toc a:hover { background: var(--surface-2); color: var(--text); }
.toc a.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--orange); }

/* ---------- Tabs / segmented ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.tab { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: transparent; color: var(--text-soft); font: 700 14px var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- Gallery / modal ---------- */
.gallery-main { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #0B1226; }
.gallery-main .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #0B1226; cursor: pointer; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; }
.thumb:hover { opacity: 0.9; }
.thumb.is-active { opacity: 1; border-color: var(--blue); }
.thumb .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(6, 10, 20, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.icon-btn:hover { background: rgba(28, 40, 72, 0.9); border-color: rgba(170, 190, 255, 0.5); }
.icon-btn svg { width: 20px; height: 20px; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(3, 5, 12, 0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade 0.25s ease both; }
.modal-box { position: relative; width: min(1100px, 100%); }
@media (max-width: 639px) { .thumbs { grid-template-columns: repeat(5, minmax(56px, 1fr)); overflow-x: auto; } }

/* ---------- Feature tiles ---------- */
.tile { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.3s var(--ease); }
.tile:hover { border-color: rgba(160, 180, 255, 0.3); }
.tile h3 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.tile p { margin: 0; color: var(--text-soft); font-size: 15px; }
.tile-icon { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line-2); }
.tile-icon svg { width: 24px; height: 24px; }
.num { font: 600 12px var(--font-mono); letter-spacing: 0.14em; color: var(--muted); }
a.tile:hover { transform: translateY(-4px); }
.support-topic { flex-direction: row; align-items: center; gap: 16px; padding: 20px; width: 100%; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.support-topic:hover { transform: translateY(-2px); background: #121B33; }
.support-topic.is-active { border-color: var(--blue); background: rgba(59, 139, 255, 0.08); box-shadow: inset 0 0 0 1px var(--blue); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatb { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes dash { to { stroke-dashoffset: -88; } }
.reveal { animation: rise 0.9s var(--ease) both; }
.d1 { animation-delay: 0.08s; } .d2 { animation-delay: 0.16s; } .d3 { animation-delay: 0.24s; } .d4 { animation-delay: 0.32s; }
.float { animation: float 7s ease-in-out infinite; transform-box: fill-box; }
.floatb { animation: floatb 6s ease-in-out infinite; transform-box: fill-box; }
.twinkle { animation: twinkle 3.2s ease-in-out infinite; }
.road-dash { animation: dash 2.4s linear infinite; }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-3) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 10px; }

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