/* Ink & Infinity marketing site (draft). Ink on black, restrained colour.
   Gold (--cta) is reserved for the primary "Play the beta" button only. */
@font-face { font-family: "Literata"; src: url(fonts/Literata-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Literata"; src: url(fonts/Literata-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Literata"; src: url(fonts/Literata-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url(fonts/cinzel/Cinzel-VariableFont_wght.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --ink: #09080a;
  --ink-2: #121014;
  --paper: #efe9de;
  --paper-dim: #c9c2b6;
  --muted: #a39c91;
  --rule: rgba(239, 233, 222, 0.14);
  --violet: #a77bff;
  --cta: #e3b34c;
  --cta-hi: #f2c867;
  --nav-h: 64px;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--paper); font: 400 18px/1.6 var(--serif); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { text-wrap: balance; font-family: var(--display); font-size: clamp(30px, 2.6vw, 44px); line-height: 1.12; letter-spacing: 0.02em; }
h3 { font-family: var(--display); letter-spacing: 0.03em; }
.eyebrow { margin: 0 0 8px; font: 600 13px/1 var(--display); letter-spacing: 0.32em; text-transform: uppercase; color: var(--violet); }
.wrap { width: min(1640px, 100% - 96px); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 50; background: var(--paper); color: var(--ink); padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; background: linear-gradient(rgba(9, 8, 10, 0.86), rgba(9, 8, 10, 0)); }
.nav-mark { font: 700 17px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.nav-mark span { color: var(--violet); }
.nav nav { display: flex; align-items: center; gap: 30px; }
.nav nav a { font: 600 13px/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--paper-dim); }
.nav nav a:hover { color: var(--paper); }
.nav .nav-play { color: var(--paper); border: 1px solid rgba(239, 233, 222, 0.5); padding: 10px 16px; }
.nav .nav-play:hover { border-color: var(--paper); }

/* ---------- pages ---------- */
.page { position: relative; min-height: 100vh; min-height: 100svh; overflow-x: clip; }
@media (min-width: 1100px) and (min-height: 760px) {
  html { scroll-snap-type: y proximity; }
  .page { scroll-snap-align: start; }
}

/* ---------- page 1: hero ---------- */
.hero { display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -2; }
.hero-art img { object-fit: cover; object-position: 30% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(9, 8, 10, 0) 30%, rgba(9, 8, 10, 0.55) 52%, rgba(9, 8, 10, 0.9) 68%),
              linear-gradient(0deg, var(--ink) 0, rgba(9, 8, 10, 0) 22%); }
.hero-copy { justify-self: end; width: min(760px, 44vw); margin-right: 6vw; padding-top: var(--nav-h); text-align: center; }
.hero h1 { margin: 0 auto; }
.hero-logo { width: 100%; height: auto; margin-inline: auto; }
.tagline { margin: 2px 0 22px; font: 600 clamp(15px, 1.05vw, 19px)/1.3 var(--display); letter-spacing: 0.3em; text-transform: uppercase; color: var(--paper-dim); }
.pitch { margin: 0 auto 34px; max-width: 34em; text-wrap: balance; font-size: clamp(18px, 1.15vw, 21px); color: var(--paper); }
.cta-row { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta { display: inline-block; padding: 20px 46px; background: var(--cta); color: #17110a; text-decoration: none;
  font: 800 clamp(17px, 1.1vw, 20px)/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 220, 140, 0.4), 0 10px 40px rgba(227, 179, 76, 0.22); transition: background .15s, transform .15s; }
.cta:hover { background: var(--cta-hi); transform: translateY(-1px); }
.ghost { padding: 18px 26px; font: 600 15px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: var(--paper); border-bottom: 1px solid rgba(239, 233, 222, 0.4); }
.ghost:hover { border-color: var(--paper); }
.fine { margin: 22px 0 0; font-size: 15px; color: var(--muted); text-wrap: balance; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(239, 233, 222, 0.45); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 2px; height: 8px; margin-left: -1px; background: var(--paper); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- page 2: the game ---------- */
.game { display: flex; align-items: center; padding: calc(var(--nav-h) + 20px) 0 48px;
  background: radial-gradient(ellipse at 18% 0%, rgba(167, 123, 255, 0.07), transparent 55%), var(--ink); }
.game::before { content: ""; position: absolute; right: -6%; top: 2%; width: 56%; aspect-ratio: 16 / 9; z-index: 0; pointer-events: none;
  background: url(img/vfx-slash.webp) center / contain no-repeat; opacity: 0.06; }
.game-grid { position: relative; z-index: 1; }
.hook-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 56px); }
.hook { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; }
.hook-shot { padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.hook-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(0.85); transition: filter .2s, transform .2s; }
.hook-shot:hover img { filter: none; transform: scale(1.015); }
.hook h3 { font-size: 21px; line-height: 1.25; margin-bottom: 8px; }
.hook .num { display: inline-block; min-width: 2.2em; color: var(--violet); font-weight: 700; }
.hook p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--paper-dim); }
.glyphs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 12px 0 0; padding: 0; }
.glyphs li { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper); }
.glyphs img { width: 34px; height: 34px; }


/* ---------- page 3: gallery, features, signup ---------- */
.more { display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + 20px); background: var(--ink); }
.more > .wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 36px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-sub { margin: 0; max-width: 36em; color: var(--paper-dim); font-size: 17px; }
.gallery { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s, opacity .2s; opacity: 0.92; }
.gallery button:hover img { transform: scale(1.04); opacity: 1; }

.lower { display: grid; grid-template-columns: 1.05fr 1.1fr 1fr; gap: 56px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--rule); }
.numbers { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.numbers dt { font: 700 44px/1 var(--display); color: var(--paper); }
.numbers dd { margin: 6px 0 0; font-size: 15.5px; line-height: 1.4; color: var(--paper-dim); }
.modes h3, .signup h3 { font-size: 20px; margin-bottom: 10px; }
.modes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.modes li { font-size: 16px; line-height: 1.5; color: var(--paper-dim); }
.modes strong { color: var(--paper); font-weight: 600; }
.signup p { margin: 0 0 14px; font-size: 16px; color: var(--paper-dim); }
.signup-row { display: flex; gap: 0; }
.signup input { flex: 1; min-width: 0; width: 100%; padding: 15px 16px; font: 400 17px var(--serif); color: var(--paper); background: var(--ink-2);
  border: 1px solid rgba(239, 233, 222, 0.3); border-right: 0; }
.signup input::placeholder { color: #8a8379; }
.signup button { padding: 0 22px; font: 700 14px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
  color: var(--ink); background: var(--paper); border: 1px solid var(--paper); }
.signup button:hover { background: #fff; }
.signup .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.signup button:disabled { opacity: 0.6; cursor: wait; }
.signup .signup-msg.ok { color: var(--paper); }
.signup .signup-msg { margin: 10px 0 0; min-height: 1.5em; font-size: 15px; color: var(--paper-dim); }

.footer { border-top: 1px solid var(--rule); padding: 20px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-mark { font: 700 14px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.footer nav { display: flex; gap: 28px; }
.footer nav a { font-size: 15px; color: var(--paper-dim); text-decoration: none; }
.footer nav a:hover { color: var(--paper); text-decoration: underline; }

/* ---------- lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 4, 6, 0.94); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px 80px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox figcaption { color: var(--paper-dim); font-size: 16px; text-align: center; max-width: 60ch; }
.lightbox .lb-title { display: block; font: 600 26px/1.2 var(--display); color: var(--paper); }
.lightbox .lb-role { display: block; margin: 6px 0 8px; font: 600 11px/1 var(--display); letter-spacing: 0.3em; text-transform: uppercase; color: var(--violet); }
.lb-btn { position: fixed; border: 0; background: rgba(239, 233, 222, 0.08); color: var(--paper); font-size: 34px; line-height: 1; width: 54px; height: 54px; cursor: pointer; }
.lb-btn:hover { background: rgba(239, 233, 222, 0.18); }
.lb-prev { left: 16px; top: 50%; margin-top: -27px; }
.lb-next { right: 16px; top: 50%; margin-top: -27px; }
.lb-close { right: 16px; top: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1400px) {
  .game-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .lower { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .signup { grid-column: 1 / -1; max-width: 640px; }
}
@media (max-width: 900px) {
  .nav { padding: 0 20px; }
  .nav nav a:not(.nav-play) { display: none; }
  .wrap { width: calc(100% - 40px); }
  .hero { align-items: end; }
  .hero-art img { object-position: 50% 30%; }
  .hero::after { background: linear-gradient(0deg, var(--ink) 8%, rgba(9, 8, 10, 0.82) 45%, rgba(9, 8, 10, 0.1) 75%); }
  .hero-copy { justify-self: center; width: auto; margin: 0 20px; padding: 0 0 84px; }
  .hero-logo { width: min(100%, 460px); }
  .tagline { font-size: 13px; letter-spacing: 0.14em; }
  .pitch { font-size: 17.5px; }
  .game, .more { min-height: 0; }
  .hook { grid-template-columns: 1fr; gap: 14px; }
  .section-head { flex-direction: column; align-items: start; gap: 10px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lower { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .numbers dt { font-size: 38px; }
  .footer nav { gap: 18px; }
  .lightbox figure { padding: 60px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.nw { white-space: nowrap; }

/* ---------- legends page: site glue around the ported game select screen ----------
   The game's own rules (legend-select.css) style everything from .menu-home-legends down.
   These rules stand in for the game's full-viewport stage ancestors (menu-select.css:3-135). */
.legends-page { height: 100vh; height: 100svh; min-height: 640px; background: #050508; overflow: hidden; }
.ls-stage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; pointer-events: none; }
.legends-page .menu-select-screen { position: relative; height: 100%; }
.legends-page .menu-select-ui--legends { position: absolute; inset: 0; display: flex; justify-content: center;
  padding: calc(var(--nav-h) + 2px) clamp(1.25%, 2vw, 2.5%) clamp(0.55rem, 1.4vh, 1.1rem);
  background: linear-gradient(90deg, rgba(4, 3, 8, 0.55) 0%, rgba(4, 3, 8, 0.72) 18%, rgba(4, 3, 8, 0.78) 82%, rgba(4, 3, 8, 0.55) 100%); }
.legends-page .menu-home-controls--legends { width: 85vw; max-width: 85vw; height: 100%; display: flex; flex-direction: column; min-height: 0; }
.legends-page .menu-home-legends-kicker { line-height: 1.5; }
.legends-page .menu-select-btn { color: var(--text); }
/* Legend detail (game's LegendPreview) opened as a full-viewport modal */
.ls-detail-dialog { padding: 0; border: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: #050508; color: var(--text); overflow: hidden; }
.ls-detail-dialog::backdrop { background: #050508; }
.ls-detail-dialog .legend-preview-screen { position: relative; }
.ls-detail-dialog a.ui-action-btn { text-decoration: none; }
@media (max-width: 760px) {
  .hook-list { grid-template-columns: minmax(0, 1fr); }
  /* The game is PC-only, so it has no phone layout for this screen. Site fallback: 2x2 rank. */
  .legends-page.ls-game { height: auto; min-height: 0; }
  .legends-page.ls-game .menu-select-ui--legends { position: relative; padding: calc(var(--nav-h) + 8px) 10px 24px; }
  .legends-page.ls-game .menu-home-controls--legends { width: 100%; max-width: 100%; }
  .legends-page.ls-game .menu-home-legends .menu-select-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; gap: 10px; overflow: visible; }
  .legends-page.ls-game .menu-home-legends .menu-select-btn { height: 62vh; max-height: 520px; justify-content: stretch; padding: 0; }
  .legends-page.ls-game .menu-home-legends .menu-select-portrait { width: 100%; justify-self: stretch; align-self: stretch; }
  .legends-page.ls-game .menu-home-legends .menu-select-btn--ready:hover { transform: none; }
  .legends-page.ls-game .menu-home-legends .menu-select-info { padding: 1.6rem 0.4rem 0.8rem; }
  .legends-page.ls-game .menu-home-legends .menu-select-tagline { display: block; font-size: 0.82rem; }
  .legends-page.ls-game .menu-home-legends .menu-select-name { font-size: 0.8rem; white-space: normal; }
  .ls-game.ls-detail-dialog .legend-select-detail.legend-preview-screen { overflow-y: auto; height: 100%; }
  .ls-game.ls-detail-dialog .legend-select-detail .legend-preview-content { margin-top: min(46dvh, 380px); }
  .ls-game.ls-detail-dialog .legend-select-detail .legend-preview-content,
  .ls-game.ls-detail-dialog .legend-select-detail-panel { overflow: visible; height: auto; min-height: 0; flex: 0 0 auto; }
  .ls-game.ls-detail-dialog .legend-select-portrait-ambient, .ls-game.ls-detail-dialog .legend-select-hero-safe { position: fixed; }
  .nav { background: rgba(9, 8, 10, 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
