/* riftcustodian.com — matches the game's title screen: deep space black, cyan and the pink outline title. */
:root {
  color-scheme: dark;
  --bg: #02050a;
  --panel: rgba(6, 14, 22, .86);
  --line: rgba(151, 214, 236, .18);
  --text: #c9dce6;
  --muted: #8aa1ae;
  --bright: #edfaff;
  --cyan: #47dfff;
  --pink: #ff74c8;
  --amber: #ffcf96;
  --gutter: clamp(16px, 4vw, 48px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--cyan); }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

.site-header { position: absolute; z-index: 2; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px var(--gutter); }
.studio { color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-decoration: none; }
.site-header nav { display: flex; gap: clamp(12px, 2.5vw, 28px); align-items: center; }
.site-header nav a { color: var(--text); font-size: 13px; letter-spacing: .08em; text-decoration: none; }
.site-header nav a:hover { color: var(--bright); }
.site-header .nav-cta { padding: 7px 12px; border: 1px solid rgba(71, 223, 255, .45); }

/* Hero: the title-screen ship art on the right, the title lockup over a dark fade on the left. */
.hero { position: relative; display: grid; align-items: center; min-height: min(100vh, 900px); padding: 110px var(--gutter) 72px; overflow: hidden; isolation: isolate; }
/* Hero background in layers (1 Nov): the ship drifts slowly, and main.js moves it and a nearer dust layer
   at different rates with scroll and the pointer (--ship-x/y, --dust-x/y), so the dust passes in front. */
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 5, 10, .97) 0%, rgba(2, 5, 10, .82) 38%, rgba(2, 5, 10, .2) 70%, rgba(2, 5, 10, .35) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(2, 5, 10, 0) 30%); }
.hero-ship, .hero-dust { position: absolute; inset: -6%; will-change: transform; }
.hero-ship { transform: translate3d(var(--ship-x, 0px), var(--ship-y, 0px), 0); }
.hero-ship::before { content: ""; position: absolute; inset: 0; background: url("img/ship.jpg") right center / cover no-repeat; animation: ship-drift 40s ease-in-out infinite alternate; }
.hero-dust { z-index: 1; transform: translate3d(var(--dust-x, 0px), var(--dust-y, 0px), 0); opacity: .7;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 33% 68%, #bfefff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 58% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 74% 52%, #ffd6f0 50%, transparent 51%), radial-gradient(2px 2px at 88% 30%, #e8fbff 50%, transparent 51%), radial-gradient(1px 1px at 46% 86%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 22% 92%, #bfefff 50%, transparent 51%), radial-gradient(1px 1px at 95% 80%, #fff 50%, transparent 51%);
  background-size: 520px 420px; animation: dust-twinkle 6s ease-in-out infinite alternate; }
@keyframes ship-drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.08) translate3d(-1.2%, -1%, 0); } }
@keyframes dust-twinkle { from { opacity: .45; } to { opacity: .8; } }
.hero-copy { max-width: 640px; }
.eyebrow { margin: 0 0 18px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .24em; }
h1 { margin: 0; color: var(--bright); line-height: .82; }
.title-series { display: block; margin: 0 0 .16em .04em; color: #cfeaf4; font-size: clamp(20px, 2.6vw, 34px); font-weight: 700; letter-spacing: .32em; }
.title-word { display: block; font-size: clamp(56px, 10vw, 128px); font-weight: 800; letter-spacing: -.055em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 116, 200, .95); filter: drop-shadow(-1.6px 0 rgba(255, 48, 96, .7)) drop-shadow(1.6px 0 rgba(48, 224, 255, .65)); text-shadow: 0 0 34px rgba(255, 78, 184, .28); }
.tagline { margin: 26px 0 10px; color: var(--bright); font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; line-height: 1.35; }
.lede { margin: 0; max-width: 560px; color: var(--text); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-top: 30px; }
.status { color: var(--amber); font-size: 13px; letter-spacing: .04em; }

.button { display: inline-block; padding: 13px 22px; border: 1px solid rgba(201, 220, 230, .35); background: rgba(6, 14, 22, .7); color: var(--bright); font: 600 14px/1.2 inherit; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.button:hover { border-color: var(--bright); }
.button.primary { border-color: rgba(71, 223, 255, .7); background: linear-gradient(90deg, rgba(20, 110, 140, .55), rgba(150, 40, 110, .45)); }
.button.primary:hover { border-color: var(--cyan); }
.button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.button:disabled { opacity: .6; cursor: progress; }

.trailer { padding: 24px var(--gutter) 0; }
.video-frame { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border: 1px solid rgba(71, 223, 255, .3); background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.video-frame iframe, .video-poster, .video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { padding: 0; background: none; cursor: pointer; }
.video-poster img { object-fit: cover; }
.play-icon { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border: 2px solid rgba(255, 255, 255, .9); border-radius: 50%; background: rgba(2, 5, 10, .6); box-shadow: 0 0 30px rgba(71, 223, 255, .45); transition: transform .2s, background .2s; }
.play-icon::after { content: ""; position: absolute; left: 36px; top: 27px; border-style: solid; border-width: 19px 0 19px 30px; border-color: transparent transparent transparent #fff; }
.video-poster:hover .play-icon, .video-poster:focus-visible .play-icon { transform: scale(1.08); background: rgba(150, 40, 110, .7); }
.video-note { max-width: 960px; margin: 10px auto 0; color: var(--muted); font-size: 13px; text-align: center; }
#trailer .section-title { text-align: center; }
.section-title { margin: 0 0 28px; color: var(--cyan); font-size: 13px; font-weight: 800; letter-spacing: .26em; }
.features, .screens, .updates { padding: 72px var(--gutter); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.feature h3 { margin: 14px 0 8px; color: var(--bright); font-size: 20px; }
.feature p { margin: 0; color: var(--text); }
.feature-mark { display: block; width: 34px; height: 3px; }
.feature-mark.blue { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.feature-mark.cyan { background: #9ef3e6; box-shadow: 0 0 14px #9ef3e6; }
.feature-mark.pink { background: var(--pink); box-shadow: 0 0 14px var(--pink); }

.shot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shot-grid figure { margin: 0; border: 1px solid var(--line); background: #000; }
/* Screenshots grow on hover on wide screens, outwards from their own column so none leaves the page. */
.shot-grid img { transition: filter .25s; }
@media (hover: hover) and (min-width: 901px) {
  .shot-grid figure { position: relative; transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
  .shot-grid figure:nth-child(3n+1) { transform-origin: left center; }
  .shot-grid figure:nth-child(3n) { transform-origin: right center; }
  .shot-grid figure:hover { z-index: 3; transform: scale(1.45); border-color: rgba(71, 223, 255, .55); box-shadow: 0 24px 70px rgba(0, 0, 0, .8); }
  .shot-grid figure:hover img { filter: brightness(1.12); }
}
@media (prefers-reduced-motion: reduce) { .shot-grid figure { transition: none; } }
.shot-grid figcaption { padding: 10px 12px; color: var(--muted); font-size: 13px; letter-spacing: .03em; }

.updates-panel { max-width: 640px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); border: 1px solid rgba(71, 223, 255, .28); background: var(--panel); }
.updates-panel > p { margin: 0 0 20px; }
.signup-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.field input { width: 100%; padding: 12px 13px; border: 1px solid rgba(129, 161, 174, .4); background: #07121c; color: var(--bright); font: 500 16px/1.2 inherit; letter-spacing: 0; text-transform: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 15px; line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--cyan); }
.signup-form .button { justify-self: start; }
.signup-status { min-height: 1.4em; margin: 0; color: var(--cyan); font-size: 15px; }
.signup-status.error { color: #ff9a9a; }
.fineprint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.feedback-panel { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; max-width: 640px; margin: 20px auto 0; padding: 22px clamp(24px, 4vw, 40px); border: 1px solid rgba(255, 116, 200, .3); background: var(--panel); }
.feedback-panel > div { flex: 1 1 300px; }
.feedback-panel .section-title { margin-bottom: 8px; color: var(--pink); }
.feedback-panel p { margin: 0; }

.site-footer { padding: 36px var(--gutter) 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--text); }
.footer-note { font-size: 12px; }

/* In-development notice: a small corner card, never blocking the page. Not remembered between visits (no storage). */
.dev-notice { position: fixed; z-index: 10; right: 20px; bottom: 20px; width: min(340px, calc(100vw - 32px)); padding: 16px 44px 16px 18px; border: 1px solid rgba(255, 207, 150, .45); background: rgba(6, 12, 20, .96); box-shadow: 0 12px 40px rgba(0, 0, 0, .55); font-size: 14px; line-height: 1.5; animation: dev-notice-in .35s ease-out both; }
.dev-notice p { margin: 0 0 8px; }
.dev-notice-title { color: var(--amber); font-size: 11px; font-weight: 800; letter-spacing: .22em; }
.dev-notice-link { color: var(--cyan); font-weight: 600; }
.dev-notice-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.dev-notice-close:hover { color: var(--bright); }
@keyframes dev-notice-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .feature-grid, .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero { min-height: auto; padding-top: 96px; padding-bottom: 24px; }
  .hero-art::after { background: linear-gradient(0deg, rgba(2, 5, 10, 1) 0%, rgba(2, 5, 10, .86) 45%, rgba(2, 5, 10, .55) 100%); }
  .hero-ship::before { background-position: 70% center; }
  .feature-grid, .shot-grid { grid-template-columns: 1fr; }
  .button { width: 100%; text-align: center; }
  .signup-form .button { justify-self: stretch; }
}
@media (max-width: 640px) { .dev-notice { right: 16px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .dev-notice, .hero-ship::before, .hero-dust { animation: none; } }
