/* Firewave Games - shared styles. Hand-written, no framework. */

@font-face { font-family: "Lilita One"; src: url("../fonts/lilita-one-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
:root {
  --sand: #F2E8DA;
  --sand-2: #E8DAC4;
  --paper: #FFFBF4;
  --ink: #12304A;
  --ink-2: #3A5268;
  --deep: #0C2236;
  --fire: #D9481F;
  --flame: #FF6F2C;
  --ember: #FFB531;
  --fire-deep: #B9391A;
  --band: #F0A866;
  --cream-on-fire: #FFF3E6;

  --rr-navy: #182848;
  --rr-navy-2: #0E1A33;
  --rr-ink: #0E1526;
  --rr-out: #2B211E;
  --rr-teal: #21B6CB;
  --gold: #FFD23F;
  --c-long: #FF4A2E;
  --c-rapid: #FFAE1A;
  --c-splash: #46B2FF;
  --c-missile: #5BE03A;
  --c-hound: #46B7A9;

  --display: "Lilita One", "Arial Black", system-ui, sans-serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --game: "Lilita One", "Arial Black", system-ui, sans-serif;
  --game-body: "Nunito", system-ui, sans-serif;


  /* one type scale for the whole site: four display steps (Lilita One) and four text steps (Nunito).
     The display steps grow with the screen between 390 and 1440 px wide; the text steps hardly move. */
  --fs-d1: clamp(44px, calc(3.05vw + 32.1px), 76px);    /* page titles */
  --fs-d2: clamp(28px, calc(1.14vw + 23.5px), 40px);    /* section heads */
  --fs-d3: clamp(22px, calc(0.38vw + 20.5px), 26px);    /* subheads, card titles */
  --fs-d4: clamp(18px, calc(0.19vw + 17.3px), 20px);    /* names, questions, labels in the display face */
  --fs-lede: clamp(18px, calc(0.19vw + 17.3px), 20px);  /* the line under a title */
  --fs-body: clamp(17px, calc(0.1vw + 16.6px), 18px);   /* body copy: 17 on phones, 18 on laptops */
  --fs-small: 15px;                                     /* captions, notes, card lines, meta */
  --fs-label: 13px;                                     /* labels, crumbs, fine print */

  --r-art: 16px;                                        /* corners: art, cards, panels */
  --r-ctl: 10px;                                        /* corners: buttons and fields */

  --gutter: 20px;
  --max: 1280px;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
}
@media (min-width: 900px) { :root { --gutter: 56px; } }
@media (min-width: 1300px) { :root { --gutter: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; background: var(--deep); }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--sans); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--fire-deep); }   /* fire-deep: 4.7:1 on sand, where fire is 3.5:1 */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--gold); color: var(--rr-ink); font: 800 var(--fs-small) var(--sans); border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---------- studio header and footer ---------- */
/* one bar: logo, five items, no button. Phones: logo and a labeled Menu that opens a full sheet. */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--deep); color: var(--sand); border-bottom: 1px solid rgba(242,232,218,.08); }
.site-head > .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.site-nav { display: none; align-items: center; gap: 8px; }
.site-nav .nav-link, .games-drop > summary { position: relative; display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 0 12px; color: var(--sand); text-decoration: none; font: 700 16px var(--sans); cursor: pointer; }
.site-nav .nav-link::after, .games-drop > summary::before { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.site-nav .nav-link:hover, .games-drop > summary:hover { color: #fff; }
.site-nav .nav-link[aria-current], .games-drop[data-current] > summary { color: #fff; }
.site-nav .nav-link[aria-current]::after, .games-drop[data-current] > summary::before { background: var(--ember); }
.nav-drop > summary { list-style: none; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.games-drop > summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.games-drop[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.games-drop { position: relative; }
.drop { position: absolute; left: 0; top: 100%; z-index: 41; width: 360px; padding: 8px; background: var(--paper); color: var(--ink); border-radius: 0 0 16px 16px; box-shadow: 0 16px 32px rgba(6,16,30,.22); }
.drop-all { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 12px 16px; border-top: 1px solid var(--sand-2); color: var(--ink); font: 700 15px var(--sans); text-decoration: none; }
.drop-all::after { content: "\2192"; transition: transform .15s; }
.drop-all:hover::after { transform: translateX(3px); }

.gl { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.gl a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; padding: 8px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.gl a:hover { background: #F6EDDF; color: var(--ink); }
.gl img, .gl-sw { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #2FB8CC; }
.gl-sw { display: grid; place-items: center; background: var(--fire); color: #FFD7BC; padding: 8px; }
.gl-sw svg { width: 100%; height: auto; }
.gl b { display: block; font: 400 var(--fs-d4)/1.15 var(--display); }
.gl small { display: block; margin-top: 2px; font: 700 var(--fs-small) var(--sans); color: var(--ink-2); }

/* phones: a labeled, bordered Menu button and a full-screen sheet */
.sheet > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid rgba(242,232,218,.4); border-radius: 10px; color: var(--sand); font: 800 15px var(--sans); cursor: pointer; }
.sheet > summary::before { content: ""; width: 16px; height: 12px; background: linear-gradient(currentColor 0 0) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor 0 0) 0 50% / 100% 2px no-repeat, linear-gradient(currentColor 0 0) 0 100% / 100% 2px no-repeat; }
.sheet[open] > summary { border-color: var(--ember); color: var(--ember); }
.sheet[open] > summary::before { width: 12px; background: linear-gradient(45deg, transparent 45%, currentColor 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, currentColor 45% 55%, transparent 55%); height: 12px; }
.sheet-panel { position: fixed; left: 0; right: 0; top: 64px; bottom: 0; z-index: 41; overflow-y: auto; display: grid; align-content: start; gap: 8px; padding: 24px var(--gutter) 40px; background: var(--paper); color: var(--ink); }
.sheet-h { font: 800 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 0 8px; }
.sheet-links { display: grid; margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--sand-2); }
.sheet-links a { display: block; padding: 16px 8px; border-bottom: 1px solid var(--sand-2); color: var(--ink); font: 400 var(--fs-d3) var(--display); text-decoration: none; }
.sheet-links a[aria-current] { color: var(--fire); }
@media (min-width: 900px) { .site-head > .wrap { min-height: 72px; } .site-nav .nav-link, .games-drop > summary { min-height: 72px; } .brand img { height: 40px; } .site-nav { display: flex; } .sheet { display: none; } }

/* ---------- Ringtail Raiders' own header: always solid; sections open as dropdowns ---------- */
.game-head { position: sticky; top: 0; z-index: 40; background: var(--rr-navy); border-bottom: 3px solid var(--rr-ink); box-shadow: inset 0 -3px 0 #2A3E66; }
.game-head > .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.gh-studio { flex: none; display: grid; place-items: center; padding-right: 12px; border-right: 1px solid rgba(255,255,255,.18); }
.gh-studio img { width: 30px; height: 30px; }
.gh-logo { flex: none; display: block; margin-right: auto; }
.gh-logo img { height: 40px; width: auto; filter: drop-shadow(0 2px 0 rgba(14,21,38,.4)); }
.gh-tabs { display: none; }
.game-head .gh-cta { flex: none; min-height: 46px; padding: 0 6px 4px; border-width: 16px 18px 22px; border-image-width: 16px 18px 22px; font-size: 16px; transition: opacity .2s, visibility .2s; }
.gh-cta .long { display: none; }
.game-head[data-cta-off] .gh-cta { opacity: 0; visibility: hidden; }

/* dropdowns (desktop) */
.gh-drop { position: relative; }
.gh-drop > summary { display: flex; align-items: center; gap: 8px; height: 76px; padding: 0 14px; font: 400 19px var(--game); letter-spacing: .02em; color: #fff; cursor: pointer;
  text-shadow: 0 2px 0 var(--rr-ink); border-bottom: 4px solid transparent; }
.gh-drop > summary::after { content: ""; width: 8px; height: 8px; border: solid var(--gold); border-width: 0 3px 3px 0; transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
.gh-drop[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.gh-drop > summary:hover, .gh-drop[open] > summary { color: var(--gold); }
.gh-drop[data-current] > summary { color: var(--gold); border-bottom-color: var(--gold); }
.gh-panel { position: absolute; left: 50%; top: calc(100% + 3px); z-index: 41; transform: translateX(-50%); min-width: 280px; padding: 12px; border: 3px solid var(--rr-ink); border-radius: 0 0 18px 18px;
  background: #22355C; box-shadow: inset 0 3px 0 #2F4775, 0 18px 30px rgba(6,12,26,.35); }
.gh-panel ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gh-panel.thumbs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; }
.gh-panel.thumbs { min-width: 440px; }
.gh-panel.posters { min-width: 520px; }
.gh-panel a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #fff; text-decoration: none; font: 800 16px var(--game-body); }
.gh-panel a:hover { background: rgba(255,255,255,.08); color: var(--gold); }
.gh-panel a img { flex: none; width: 40px; height: auto; filter: drop-shadow(0 2px 0 rgba(6,12,26,.4)); }
.gh-panel .gh-all { margin-top: 8px; padding-top: 14px; border-top: 2px solid rgba(255,255,255,.12); border-radius: 0; color: var(--gold); font: 400 17px var(--game); letter-spacing: .02em; }
.gh-panel .gh-all::after { content: "\2192"; margin-left: 4px; }

/* phones and tablets: a Menu sheet in the game's colors */
.gh-sheet > summary { border-color: rgba(255,255,255,.45); color: #fff; min-height: 46px; }
.gh-sheet[open] > summary { border-color: var(--gold); color: var(--gold); }
.gh-sheet-panel { background: var(--rr-navy); color: #fff; padding-top: 16px; }
.gs { display: grid; margin: 0; padding: 0; list-style: none; }
.gs > li { padding: 12px 0; border-bottom: 2px solid rgba(255,255,255,.1); }
.gs-h { display: block; padding: 6px 0; color: #fff; font: 400 var(--fs-d3) var(--game); letter-spacing: .02em; text-decoration: none; text-shadow: 0 2px 0 var(--rr-ink); }
.gs-h[aria-current] { color: var(--gold); }
.gs ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0 0 4px; list-style: none; }
.gs ul a { display: block; padding: 6px 0; color: #C9D6EE; font: 700 16px var(--game-body); text-decoration: none; }
.gs ul a:hover { color: var(--gold); }
.gh-sheet .sheet-panel { top: 67px; }
@media (max-width: 420px) { .gh-logo img { height: 34px; } .game-head .gh-cta { font-size: 15px; } .gh-studio { padding-right: 8px; } .game-head > .wrap { gap: 8px; } }

@media (min-width: 1000px) {
  .game-head > .wrap { min-height: 76px; gap: 16px; }
  .gh-logo { margin-right: 0; }
  .gh-logo img { height: 52px; }
  .gh-tabs { display: flex; flex: 1; justify-content: center; gap: 4px; }
  .gh-sheet { display: none; }
  .gh-cta .long { display: inline; } .gh-cta .short { display: none; }
}
@media (min-width: 1000px) and (max-width: 1180px) { .gh-drop > summary { padding: 0 9px; font-size: 17px; } }

/* ---------- footer ---------- */
.site-foot { background: var(--deep); color: #C9D3DE; font: 400 var(--fs-small)/1.5 var(--sans); }
.site-foot > .wrap { display: grid; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.f-brand { display: grid; gap: 16px; justify-items: start; }
.f-brand img { height: 40px; width: auto; }
.f-mail { color: var(--sand); font-weight: 700; }
.f-mail:hover { color: var(--ember); }
.f-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.f-cols ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.f-cols a { color: var(--sand); text-decoration: none; }
.f-cols a:hover { color: var(--ember); text-decoration: underline; }
.fh { margin-bottom: 16px; font: 800 var(--fs-label) var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #8FA3B8; }
.f-copy { padding-top: 24px; border-top: 1px solid rgba(242,232,218,.12); font-size: var(--fs-label); color: #8FA3B8; }
@media (min-width: 700px) { .f-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } .site-foot.game .f-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .site-foot > .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 64px; } .f-copy { grid-column: 1 / -1; } }
.f-cols ul + .fh { margin-top: 32px; }

/* ---------- social links: each platform's own mark, one color, with its name ---------- */
.social { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.social svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.f-cols .social a { min-height: 0; font-weight: 400; }
.follow { display: grid; gap: 2px; }
.follow-h { font-weight: 800; }

/* ---------- shared components: arrow link, section head, game card, news card, page head ---------- */
.more-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 800 var(--fs-body) var(--sans); text-decoration: none; }
.more-link .arr, .hero-more .arr { width: 18px; height: 18px; transition: transform .15s; }
.more-link:hover { color: var(--fire-deep); }
.more-link:hover .arr, .hero-more a:hover .arr { transform: translateX(3px); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.sec-head h2 { font: 400 var(--fs-d2)/1.05 var(--display); color: var(--ink); }

.game-grid { display: grid; gap: 40px; }
@media (min-width: 800px) { .game-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.game-card { position: relative; display: grid; gap: 16px; align-content: start; }
.gc-art { display: block; aspect-ratio: 16 / 9; border-radius: var(--r-art); overflow: hidden; background: var(--deep); }
.gc-art picture, .gc-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.game-card:hover .gc-art img, .game-card:hover .sw-art svg { transform: scale(1.03); }
.sw-art { display: grid; place-items: center; width: 100%; height: 100%; padding: 8% 10%; background: var(--fire); color: #FFD7BC; }
.sw-art svg { width: 100%; height: auto; transition: transform .35s ease; }
.gc-text { display: grid; gap: 6px; }
.gc-name { font: 400 var(--fs-d3)/1.1 var(--display); }
.gc-name a { color: var(--ink); text-decoration: none; }
.gc-name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-art); }
.gc-name a:focus-visible { outline: none; }
.gc-name a:focus-visible::after { outline: 3px solid var(--ink); outline-offset: 4px; }
.game-card:hover .gc-name a { color: var(--fire); }
.gc-line { font: 400 var(--fs-body)/1.6 var(--sans); color: var(--ink-2); max-width: 32em; }
.gc-status { font: 800 var(--fs-small) var(--sans); color: var(--ink); }
.gc-more { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }

.news-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .news-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .news-grid.one { grid-template-columns: 1fr; } }
.nc-link { display: grid; gap: 16px; color: var(--ink); text-decoration: none; }
.nc-art { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-art); overflow: hidden; background: #2FB8CC url("../img/zone-home.webp") 0 0 / 240px repeat; }
.nc-art img { position: absolute; left: 50%; top: 9%; width: auto; height: 82%; max-width: none; transform: translateX(-50%) rotate(-3deg); filter: drop-shadow(4px 6px 0 rgba(14,21,38,.25)); transition: transform .35s ease; }
.nc-link:hover .nc-art img { transform: translateX(-50%) rotate(-1deg) scale(1.04); }
.nc-art.ship img { top: 50%; width: 78%; height: auto; transform: translate(-50%, -50%) rotate(-3deg); }
.nc-link:hover .nc-art.ship img { transform: translate(-50%, -50%) rotate(-1deg) scale(1.04); }
.nc-art.reel img { top: 7%; height: 86%; border: 4px solid var(--rr-ink); border-radius: 12px; }
.nc-text { display: grid; gap: 8px; align-content: center; }
.nc-meta { font: 700 var(--fs-small) var(--sans); color: var(--ink-2); }
.nc-title { font: 400 var(--fs-d3)/1.1 var(--display); }
.nc-link:hover .nc-title { color: var(--fire); }
.nc-dek { font: 400 var(--fs-body)/1.6 var(--sans); color: var(--ink-2); max-width: 34em; }
@media (min-width: 800px) { .news-grid.one .nc-link { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; } }

/* index heads (Games, News): the title, and its line in the column where the content's text starts below */
.ix-head .wrap { display: grid; gap: 12px; padding-top: 40px; padding-bottom: 40px; }
.ix-head h1 { font: 400 var(--fs-d1)/0.95 var(--display); }
.ix-head .lede { text-wrap: balance; }
.ix-head.ruled .wrap { padding-bottom: 0; }
.ix-head.ruled .wrap::after { content: ""; height: 2px; margin-top: 16px; background: var(--sand-2); }
@media (min-width: 900px) {
  .ix-head .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: baseline; column-gap: 64px; padding-top: 72px; padding-bottom: 56px; }
  .ix-head .lede { max-width: 26em; }
  .ix-head.ruled .wrap::after { grid-column: 1 / -1; margin-top: 24px; }
}

.crumbs-st { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font: 700 var(--fs-label) var(--sans); }
.crumbs-st li + li::before { content: "/"; margin-right: 6px; opacity: .6; }

/* the studio's main button: ember */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: var(--r-ctl); background: var(--ember); color: var(--deep); font: 800 var(--fs-body) var(--sans); text-decoration: none; box-shadow: 0 3px 0 #C98410; }
.btn:hover { background: #FFC24F; color: var(--deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #C98410; }

/* ---------- studio type ---------- */
.display { font: 400 var(--fs-d1)/0.95 var(--display); }
.lede { font-size: var(--fs-lede); line-height: 1.5; max-width: 34em; }

/* ---------- forms ---------- */
.signup { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 460px; min-width: 0; }
.signup label { font: 800 var(--fs-small) var(--sans); }
.signup .row { display: flex; gap: 8px; }
.signup input[type=email] { flex: 1 1 auto; min-width: 0; min-height: 50px; padding: 0 14px; border: 2px solid var(--ink); border-radius: var(--r-ctl); background: var(--paper); color: var(--ink); font: 700 var(--fs-body) var(--sans); }
.signup input::placeholder { color: #5B6D80; }
.signup button { flex: none; white-space: nowrap; min-height: 50px; padding: 0 16px; border: 2px solid var(--ink); border-radius: var(--r-ctl); background: var(--ink); color: var(--sand); font: 800 var(--fs-body) var(--sans); cursor: pointer; }
.signup button:hover { background: #0A2236; }
.signup .consent { font-size: var(--fs-label); line-height: 1.45; }
.signup .consent a { white-space: nowrap; }
.signup .done { font: 800 var(--fs-small) var(--sans); }
/* the spam trap: no one sees it or tabs to it, and a bot that fills it is dropped by the signup script */
.signup .trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.signup[data-state=done] .row, .signup[data-state=done] .consent { display: none; }
form.signup[data-state=error] .done { color: #A33A17; }
.alert-band form.signup[data-state=error] .done { color: #FF9C8A; }

/* ---------- studio note and contact ---------- */
.contact { display: grid; gap: 16px; }
.contact div { display: grid; gap: 2px; }
.contact span { font: 800 var(--fs-label) var(--sans); letter-spacing: 0.14em; color: var(--ink-2); text-transform: uppercase; }
.contact a { font: 700 var(--fs-body) var(--sans); }

/* ---------- Ringtail kit shared by the home hero and the game page ---------- */
.rr-out { font-family: var(--game); color: #fff; letter-spacing: 0.005em;
  text-shadow: 0 .06em 0 var(--rr-out), .05em 0 0 var(--rr-out), -.05em 0 0 var(--rr-out), 0 -.05em 0 var(--rr-out),
    .04em .04em 0 var(--rr-out), -.04em .04em 0 var(--rr-out), .04em -.04em 0 var(--rr-out), -.04em -.04em 0 var(--rr-out), 0 .11em 0 var(--rr-out); }
.rr-out .gold { color: var(--gold); }
.btn-green { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 10px 6px;
  border-style: solid; border-width: 22px 24px 30px; border-image: url("../img/btn-green-443.webp") 59 65 81 65 fill / 22px 24px 30px stretch;
  font: 400 var(--fs-d4) var(--game); color: #fff; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; cursor: pointer; background: none;
  text-shadow: 0 2px 0 var(--rr-ink), 1.5px 0 0 var(--rr-ink), -1.5px 0 0 var(--rr-ink), 0 -1.5px 0 var(--rr-ink), 0 3px 0 var(--rr-ink); }
.btn-green:hover { color: #fff; filter: brightness(1.06); }
.btn-green:active { border-image-source: url("../img/btn-green-pressed-443.webp"); padding-top: 6px; padding-bottom: 0; }
.status { font: 800 var(--fs-label) var(--game-body); letter-spacing: 0.08em; text-transform: uppercase; }
.chip { display: inline-block; padding: 5px 10px; background: var(--rr-ink); color: var(--gold); border-radius: 6px; }

.game-bar { display: flex; gap: 14px; align-items: center; padding: 12px 16px 16px; background: var(--rr-navy);
  border-top: 3px solid var(--rr-ink); border-radius: 18px 18px 0 0; box-shadow: inset 0 3px 0 #2A3E66; }
.game-bar .btn-green { flex: 1; }
.trailer-btn { display: grid; justify-items: center; gap: 2px; padding: 0; border: 0; background: none; color: #C9D6EE; font: 400 var(--fs-label) var(--game); letter-spacing: 0.04em; cursor: pointer; flex: none; }
.trailer-btn .disc { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #2F6FD6; border: 3px solid var(--rr-ink);
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.22), 0 3px 0 var(--rr-ink); }
.trailer-btn .disc img { width: 24px; margin-left: 4px; }
.trailer-btn:hover .disc { background: #3A7DE6; }

.phone { position: relative; display: block; aspect-ratio: 9 / 16; border: 7px solid var(--rr-ink); border-radius: 26px; overflow: hidden; background: var(--rr-ink);
  box-shadow: 6px 10px 0 rgba(14,21,38,.28); padding: 0; cursor: pointer; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }
.phone .play { position: absolute; left: 50%; top: 50%; width: 26%; transform: translate(-42%, -50%); height: auto; filter: drop-shadow(0 3px 0 rgba(14,21,38,.5)); }

.keyart-tag { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 6px 10px; background: rgba(18,48,74,.88); color: var(--sand); border-radius: 4px;
  font: 800 11px/1.3 var(--sans); letter-spacing: 0.1em; text-align: right; }
.keyart-tag span { display: block; letter-spacing: 0; font-weight: 700; opacity: .85; }

/* ---------- trailer dialog ---------- */
dialog.trailer { --th: min(82vh, calc(100vh - 150px), 160vw); padding: 0; border: 0; background: transparent; max-width: none; max-height: none; }
dialog.trailer::backdrop { background: rgba(6,16,30,.97); }
dialog.trailer .inner { display: grid; justify-items: center; gap: 14px; width: max(calc(var(--th) * 9 / 16), min(300px, 90vw)); }
dialog.trailer video { width: calc(var(--th) * 9 / 16); height: var(--th); border: 8px solid var(--rr-ink); border-radius: 28px; background: #000; }
dialog.trailer .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; width: 100%; }
dialog.trailer .note { flex: 1 1 180px; margin: 0; color: #C9D6EE; font: 400 var(--fs-small)/1.4 var(--game-body); }
dialog.trailer .close { min-height: 48px; padding: 0 22px; border: 3px solid var(--rr-ink); border-radius: 10px; background: #fff; color: var(--rr-ink); font: 400 var(--fs-d4) var(--game); cursor: pointer; }

/* ---------- plain pages (support, privacy, terms, 404) ---------- */
.page { padding: 40px 0 64px; }
.page .wrap > * { max-width: 760px; }
.page h1 { font: 400 var(--fs-d1)/0.95 var(--display); margin-bottom: 18px; }
.page h2 { font: 400 var(--fs-d3)/1.1 var(--display); margin: 40px 0 12px; }
.page h3 { font: 800 var(--fs-lede)/1.3 var(--sans); margin: 22px 0 6px; }
.page p, .page li { font-size: var(--fs-body); line-height: 1.6; }
.page p.lede { font-size: var(--fs-lede); line-height: 1.5; }
.page p + p { margin-top: 12px; }
.page ul, .page ol { padding-left: 1.2em; }
.page .tbd { background: #FFE9A8; padding: 0 4px; border-radius: 3px; font-weight: 700; }
.draft-banner { margin-bottom: 26px; padding: 14px 16px; border: 2px solid var(--fire); border-radius: 6px; background: #FFF1E8; font: 700 var(--fs-small)/1.45 var(--sans); }
/* ---------- documents (support, privacy, terms): a light head, then one reading column with a rail beside it:
   the contents on Privacy and Terms, the contact card on Support. On phones the rail sits above the text. ---------- */
.doc-head .wrap { display: grid; gap: 24px; padding-top: 40px; }
.doc-head .wrap::after { content: ""; height: 2px; background: var(--sand-2); }
.dh-main { display: grid; gap: 16px; align-content: start; }
.dh-main h1 { font: 400 var(--fs-d1)/0.95 var(--display); text-wrap: balance; }
.doc-meta { font: 700 var(--fs-small) var(--sans); color: var(--ink-2); }
.dh-main .lede { max-width: 34em; text-wrap: pretty; }
main > .doc { padding: 40px 0 112px; }
main > .doc.has-rail { padding-bottom: 0; }
.doc.has-rail .doc-body { padding-bottom: 112px; }   /* inside the rail's container, so the sticky rail never slides under the header */
.doc-body { max-width: 720px; }
.doc-body > :first-child { margin-top: 0; }
.doc h2 { scroll-margin-top: 24px; text-wrap: balance; }   /* plus the page's 80px scroll padding: lands just under the header */
.doc-body p { text-wrap: pretty; }
.rail { margin-bottom: 40px; }
.help-card { display: grid; gap: 4px; justify-items: start; padding: 20px; border: 2px solid var(--sand-2); border-radius: var(--r-art); background: var(--paper); }
.page .help-card p { line-height: 1.5; color: var(--ink-2); text-wrap: balance; }
.help-card .hc-mail { font: 800 var(--fs-body)/1.4 var(--sans); color: var(--ink); }
.help-card .hc-mail:hover { color: var(--fire-deep); }
.toc { padding: 16px 20px 8px; border: 2px solid var(--sand-2); border-radius: var(--r-art); background: var(--paper); }
.page .toc-h { margin-bottom: 4px; font: 800 var(--fs-small)/1.4 var(--sans); color: var(--ink); }
.page .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; margin: 0; padding: 0; list-style: none; }
.page .toc li { font-size: var(--fs-small); line-height: 1.4; }
.toc a { display: block; padding: 8px 0; color: var(--ink-2); font-weight: 700; text-decoration: none; }
.toc a:hover { color: var(--ink); }
@media (min-width: 900px) {
  .doc-head .wrap { padding-top: 72px; }
  .doc-head .wrap::after { margin-top: 8px; }
  main > .doc { padding-top: 56px; }
}
@media (min-width: 1000px) {
  .doc.has-rail .wrap { display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; column-gap: 64px; align-items: start; }
  .doc.has-rail .doc-body { grid-column: 1; grid-row: 1; }
  .rail { grid-column: 2; grid-row: 1; position: sticky; top: 112px; margin: 0; }
  .toc { padding: 0; border: 0; border-radius: 0; background: none; }
  .page .toc-h { margin-bottom: 12px; }
  .page .toc ol { grid-template-columns: 1fr; border-left: 2px solid var(--sand-2); }
  .toc a { margin-left: -2px; padding: 3px 0 3px 16px; border-left: 2px solid transparent; }
  .toc a:hover { border-left-color: var(--ink-2); }
  .toc a[aria-current] { color: var(--ink); border-left-color: var(--fire); }
}
details.faq { border-top: 2px solid var(--sand-2); }
details.faq summary { padding: 14px 0; cursor: pointer; font: 800 var(--fs-body)/1.4 var(--sans); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: "+"; font: 400 22px/1 var(--display); color: var(--fire); }
details.faq[open] summary::after { content: "\2013"; }
details.faq p { margin: 0 0 14px; }

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

/* 404 */
.nf { display: grid; justify-items: start; gap: 14px; padding: 40px 0 30px; }
.nf-mark { width: 96px; height: auto; }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font: 800 var(--fs-body) var(--sans); }
main.page { min-height: calc(100svh - 190px); }

@keyframes flow { to { transform: translate3d(0, calc(-1 * var(--tile, 240px)), 0); } }

/* anchors land below the sticky headers */
:root:has(.game-head) { scroll-padding-top: 84px; }
@media (min-width: 1000px) { :root:has(.game-head) { scroll-padding-top: 96px; } }
html.sheet-open { overflow: hidden; }

/* focus on light backgrounds: ink, not gold */
.home-sec :focus-visible, .ix-head :focus-visible, .news-page :focus-visible, .post :focus-visible, .sw-body :focus-visible, .shopfront :focus-visible, .studio-open :focus-visible, .studio-games :focus-visible, .doc-head :focus-visible, .press-head :focus-visible, .page :focus-visible, .ref :focus-visible { outline-color: var(--ink); }

/* signup buttons: ember on studio pages, the game's green on Ringtail pages */
.signup button { background: var(--ember); border-color: var(--ember); color: var(--deep); box-shadow: 0 3px 0 #C98410; }
.signup button:hover { background: #FFC24F; }
.page .wrap > h2:first-child, .page .wrap > p:first-child { margin-top: 0; }
main > .page { padding: 56px 0 112px; }
@media (max-width: 399px) { .gh-studio { display: none; } }
.f-brand { align-content: start; }

/* the game header's left side: the studio's wordmark (back to Firewave), then the game's logo (the game's home) */
.gh-studio { gap: 0; color: #fff; text-decoration: none; }
.gh-studio .gh-word { display: none; height: 26px; width: auto; }
.gh-studio .gh-mark { width: 30px; height: 30px; }
.gh-studio:hover .gh-word, .gh-studio:hover .gh-mark { opacity: .85; }
.gh-logo img { transition: transform .15s; }
.gh-logo:hover img { transform: translateY(-2px) rotate(-1deg); }
@media (min-width: 1181px) { .gh-studio .gh-word { display: block; } .gh-studio .gh-mark { display: none; } .gh-studio { padding-right: 20px; } }
.gc-battle { position: relative; display: block; width: 100%; height: 100%; }
.gc-battle img { width: 100%; height: 100%; object-fit: cover; }
.gc-art .gc-battle .gc-logo, .door-art .gc-battle .gc-logo { position: absolute; left: 5%; top: 8%; width: 34%; height: auto; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(14,21,38,.3)); }
.game-card:hover .gc-battle .gc-logo, .door .wrap:hover .gc-battle .gc-logo { transform: none; }
