/* RIMFIRE website. One stylesheet, no framework, no web fonts (nothing is loaded from another company).
   Colours come from the game: undercity dark, lamp orange, the turquoise of the ball's seams, bone white. */
:root {
  --bg: #14161b;
  --bg-2: #1b1e25;
  --panel: #22262f;
  --line: #333946;
  --text: #f3efe6;
  --muted: #b9b4a8;
  --orange: #ffb347;
  --orange-deep: #e8862a;
  --teal: #2ee6d0;
  --teal-deep: #12a596;
  --ink: #101216;
  --radius: 14px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Arial Black", "Segoe UI Black", Impact, Haettenschweiler, "Franklin Gothic Heavy", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: #7ff3e6; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; }
h2 { font: 900 clamp(1.7rem, 4.2vw, 2.6rem)/1.08 var(--display); letter-spacing: 0.01em; text-transform: uppercase; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.2rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--ink); padding: 0.6em 1em; z-index: 100; font-weight: 700; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.eyebrow { color: var(--teal); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.82rem; margin: 0 0 0.7em; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--text); max-width: 40ch; }
.muted { color: var(--muted); }

/* ---- top bar */
.top { position: sticky; top: 0; z-index: 50; background: rgba(20, 22, 27, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 1rem; }
.brand { font: 900 1.45rem/1 var(--display); color: var(--orange); text-decoration: none; letter-spacing: 0.02em; text-shadow: 0 2px 0 #000; }
.brand:hover { color: #ffc66d; }
#nav { display: flex; align-items: center; gap: 1.4rem; }
#nav a { color: var(--text); text-decoration: none; font-weight: 650; font-size: 0.98rem; padding: 0.4em 0; }
#nav a:hover, #nav a[aria-current="page"] { color: var(--orange); }
#nav a.nav-cta { background: var(--orange); color: var(--ink); padding: 0.55em 1em; border-radius: 999px; }
#nav a.nav-cta:hover { background: #ffc66d; color: var(--ink); }
.menu { display: none; background: none; color: var(--text); border: 2px solid var(--line); border-radius: 10px; font: 700 0.95rem var(--font); padding: 0.5em 0.9em; min-height: 44px; }
@media (max-width: 760px) {
  .menu { display: inline-block; }
  .js #nav { display: none; }
  .js #nav.open { display: flex; }
  #nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 0.4rem 1.1rem 1rem; }
  #nav a { padding: 0.85em 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  #nav a.nav-cta { margin-top: 0.9rem; text-align: center; border-bottom: 0; }
  html:not(.js) .menu { display: none; }
  html:not(.js) #nav { position: static; padding: 0 0 0.6rem; background: none; border: 0; }
  html:not(.js) .top-in { flex-wrap: wrap; }
}

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 52px; padding: 0.75em 1.5em; border-radius: 999px; font: 800 1.05rem/1.1 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 0 4px 0 var(--orange-deep); }
.btn-primary:hover { background: #ffc66d; color: var(--ink); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--orange-deep); }
.btn-ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-ghost:hover { background: rgba(46, 230, 208, 0.12); color: #7ff3e6; }
.pill { display: inline-flex; align-items: center; gap: 0.55em; padding: 0.5em 1em; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 650; font-size: 0.95rem; }
.pill::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(46, 230, 208, 0.2); }

/* ---- hero */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(60% 70% at 78% 30%, rgba(255, 179, 71, 0.22), transparent 70%),
    radial-gradient(45% 50% at 12% 85%, rgba(46, 230, 208, 0.14), transparent 70%),
    linear-gradient(180deg, #1a1d24, var(--bg)); }
.hero-in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1rem, 4vw, 3rem); align-items: center; padding-block: clamp(2rem, 6vw, 4.5rem); }
.logo { font: 900 clamp(3.4rem, 13vw, 8rem)/0.9 var(--display); color: var(--orange); margin: 0 0 0.25em; letter-spacing: 0.005em;
  text-shadow: 0 0.045em 0 #000, 0.03em 0.03em 0 #000, -0.03em 0.03em 0 #000, 0 0.1em 0.35em rgba(0, 0, 0, 0.6); }
.tagline { font: 800 clamp(1.3rem, 3.4vw, 2rem)/1.2 var(--font); margin: 0 0 0.9em; }
.tagline span { color: var(--teal); display: block; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; align-items: center; margin: 1.6rem 0 1.1rem; }
.hero-art { justify-self: center; position: relative; }
.hero-art img { width: min(100%, 400px); border-radius: 22px; border: 3px solid #000; box-shadow: 0 0 0 2px var(--orange-deep), 0 24px 60px rgba(0, 0, 0, 0.6); transform: rotate(1.5deg); }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; padding: 0; margin: 0; list-style: none; color: var(--muted); font-weight: 650; font-size: 0.97rem; }
.facts li::before { content: "\2713"; color: var(--teal); margin-right: 0.45em; font-weight: 900; }
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; }
  .hero-art img { width: min(64vw, 300px); }
}

/* ---- sections */
section { padding-block: clamp(2.6rem, 7vw, 5rem); }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { max-width: 46rem; margin-bottom: clamp(1.4rem, 4vw, 2.4rem); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 1.8rem); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 3vw, 2rem); }
@media (max-width: 820px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.1rem; }
.card h3 { color: var(--orange); }
.card p:last-child { margin-bottom: 0; }
.step { counter-increment: step; }
.steps { counter-reset: step; }
.step h3::before { content: counter(step); display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; margin-right: 0.55em; border-radius: 50%; background: var(--teal); color: var(--ink); font-weight: 900; font-size: 0.9em; }
.step img { border-radius: 12px; border: 2px solid #000; margin-bottom: 1rem; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: center 40%; max-height: 420px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.2rem 2.5rem; padding: 0; margin: 0; list-style: none; }
.features li { padding: 0.85rem 0 0.85rem 2rem; border-bottom: 1px solid var(--line); position: relative; }
.features li::before { content: ""; position: absolute; left: 0.2rem; top: 1.25rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 3px solid var(--teal); }
.features strong { color: var(--orange); }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

.cast { display: grid; grid-template-columns: 200px 1fr; gap: 1.4rem; align-items: center; }
.cast img { border-radius: 12px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 12%; background: #2a2f3a; border: 2px solid #000; }
.cast .role { color: var(--teal); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; margin-bottom: 0.3em; }
@media (max-width: 560px) { .cast { grid-template-columns: 1fr; } .cast img { max-width: 240px; } }

/* screenshots: a strip you can swipe; no script needed */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 250px); gap: 1rem; overflow-x: auto; padding: 0.4rem 0.2rem 1.2rem; scroll-snap-type: x mandatory; scrollbar-color: var(--orange-deep) var(--panel); }
.shots a { scroll-snap-align: start; display: block; border-radius: 16px; overflow: hidden; border: 2px solid #000; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.shots img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }

.ticks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem 2rem; padding: 0; margin: 0 0 1.6rem; list-style: none; }
.ticks li { padding-left: 2.1rem; position: relative; font-weight: 650; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: -0.05em; width: 1.5em; height: 1.5em; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: var(--ink); font-weight: 900; font-size: 0.9em; }
.ticks span { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 700px) { .ticks { grid-template-columns: 1fr; } }

.band { background: linear-gradient(135deg, #2a1c0e, #1c2a2a); border-block: 2px solid var(--orange-deep); text-align: center; }
.band h2 { color: var(--orange); }
.band p { max-width: 44rem; margin-inline: auto; }

/* ---- text pages */
.doc { max-width: 46rem; }
.doc h1 { font: 900 clamp(2rem, 6vw, 3.2rem)/1.05 var(--display); text-transform: uppercase; color: var(--orange); margin-bottom: 0.4em; }
.doc h2 { font: 800 1.35rem/1.25 var(--font); text-transform: none; letter-spacing: 0; margin-top: 2.2em; color: var(--text); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: 0.35em 0; }
.note { background: var(--panel); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; margin: 1.4rem 0; }
.note p:last-child { margin-bottom: 0; }
.warn { border-left-color: var(--orange); }
table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.6rem; }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; width: 34%; }

/* ---- form */
form.join { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 4vw, 1.8rem); max-width: 34rem; }
.field { margin-bottom: 1.15rem; }
label { display: block; font-weight: 750; margin-bottom: 0.35rem; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.93rem; margin-top: 0.15rem; }
input[type="email"], input[type="text"] { width: 100%; min-height: 50px; padding: 0.6em 0.8em; border-radius: 10px; border: 2px solid var(--line); background: var(--ink); color: var(--text); font: inherit; }
input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(46, 230, 208, 0.25); }
.check { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.7rem; align-items: start; font-weight: 500; }
.check input { width: 1.4rem; height: 1.4rem; margin-top: 0.2rem; accent-color: var(--teal); }
.trap { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.error { background: #3a1616; border: 1px solid #c0503f; color: #ffd9d2; border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1.2rem; }
[hidden] { display: none !important; }

/* ---- a button that stays in reach on phones, on the home page only */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .has-sticky { padding-bottom: 84px; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom)); background: rgba(20, 22, 27, 0.95); border-top: 1px solid var(--line); }
  .sticky-cta .btn { width: 100%; }
}

/* ---- footer */
.foot { background: #0f1115; border-top: 1px solid var(--line); padding-block: 2.4rem 1.6rem; color: var(--muted); font-size: 0.96rem; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; }
.foot-brand { font: 900 1.5rem/1 var(--display); color: var(--orange); margin-bottom: 0.6em; }
.foot nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1.5rem; align-content: start; }
.foot a { color: var(--text); }
.foot-small { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.86rem; }
.foot-small p { margin-bottom: 0.4em; }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print {
  .top, .foot nav, .sticky-cta, .hero-art { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
