/* Guidry Games: a retro arcade look taken from Retro Commando (its blue sunburst, yellow buttons and
   comic lettering). */
:root {
  --ink: #0b0f24;
  --night: #121838;
  --panel: #1a2250;
  --panel-edge: #2c3a7a;
  --blue: #2f6fd6;
  --sky: #5aa0ff;
  --yellow: #ffcc2e;
  --orange: #ff9b1f;
  --red: #e0322b;
  --text: #eef1ff;
  --muted: #a9b2d8;
  --radius: 14px;
  --gutter: 16px;
  --max: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.6 "Nunito", system-ui, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--yellow); }
h1, h2, h3 { font-family: "Bangers", "Impact", sans-serif; letter-spacing: 1px; font-weight: 400; line-height: 1.05; margin: 0 0 .4em; }
h1 { font-size: clamp(44px, 8vw, 88px); }
h2 { font-size: clamp(34px, 5vw, 54px); }
h3 { font-size: 28px; }
.pixel { font-family: "Press Start 2P", monospace; font-size: 11px; letter-spacing: 1px; line-height: 1.8; text-transform: uppercase; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* The comic sunburst behind headers and the hero, like the game's menus. */
.sunburst {
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.25), transparent 55%),
    repeating-conic-gradient(from 0deg at 50% 45%, #2a62c9 0 7.5deg, #3a78e0 7.5deg 15deg);
}

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(11,15,36,.92); backdrop-filter: blur(8px); border-bottom: 3px solid #000; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--text); text-decoration: none; font-family: "Bangers", sans-serif; font-size: 30px; letter-spacing: 1px; }
.brand img { width: 40px; height: 40px; border-radius: 9px; border: 2px solid #000; }
.brand span { color: var(--yellow); }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.nav ul a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 800; }
.nav ul a:hover, .nav ul a[aria-current="page"] { background: var(--panel); color: var(--yellow); }

/* Buttons, like the game's yellow buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 14px;
  background: linear-gradient(#ffe36b, var(--yellow) 45%, var(--orange));
  color: #4a2a00; font-weight: 900; text-decoration: none; border: 3px solid #000;
  box-shadow: 0 5px 0 #000; transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 #000; }
.btn.ghost { background: var(--panel); color: var(--text); }
.btn.small { padding: 8px 14px; font-size: 15px; border-radius: 11px; box-shadow: 0 4px 0 #000; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 4px solid #000; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 72px; position: relative; z-index: 2; }
.hero .logo { width: min(560px, 100%); filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); }
.hero p.lead { font-size: 20px; max-width: 34em; text-shadow: 0 2px 0 rgba(0,0,0,.45); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.hero .shot { border: 4px solid #000; border-radius: var(--radius); box-shadow: 0 10px 0 rgba(0,0,0,.4); transform: rotate(2deg); background: #000; }
.badge { display: inline-block; background: var(--red); color: #fff; border: 3px solid #000; border-radius: 10px; padding: 4px 10px; margin-bottom: 14px; }

/* The commando running along the bottom of the hero */
.runner {
  position: absolute; bottom: -8px; left: -180px; width: 164px; height: 164px; z-index: 3;
  background: url(../images/retro/commando-run.png) 0 0 / 2132px 164px;
  animation: run-frames .78s steps(13) infinite, run-across 14s linear infinite;
  image-rendering: pixelated;
}
@keyframes run-frames { to { background-position: -2132px 0; } }
@keyframes run-across { to { left: calc(100% + 40px); } }
@media (prefers-reduced-motion: reduce) { .runner { animation: none; left: 24px; } }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--night); border-top: 4px solid #000; border-bottom: 4px solid #000; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head p { color: var(--muted); margin: 0; max-width: 40em; }

/* Cards */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card {
  background: var(--panel); border: 3px solid #000; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 0 #000; display: flex; flex-direction: column; transition: transform .12s;
}
.card:hover { transform: translateY(-4px); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-bottom: 3px solid #000; background: #000; }
.card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.card .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card .source-buy { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); font-size: 15px; opacity: .95; }
.card .source-buy span { white-space: nowrap; }
.card .source-buy .btn { white-space: nowrap; }
.tag { font-size: 12px; font-weight: 800; color: var(--ink); background: var(--sky); border-radius: 8px; padding: 2px 8px; border: 2px solid #000; }
.tag.soon { background: var(--yellow); }
.tag { white-space: nowrap; }

/* Feature: Retro Commando */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.fact { background: var(--panel); border: 3px solid #000; border-radius: 12px; padding: 12px; text-align: center; }
.fact b { display: block; font-family: "Bangers", sans-serif; font-size: 40px; color: var(--yellow); letter-spacing: 1px; line-height: 1; }
.fact span { color: var(--muted); font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; background: var(--panel); border: 3px solid #000; border-radius: 12px; overflow: hidden; }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.gallery figcaption { padding: 8px 12px; font-weight: 800; font-size: 15px; }
.enemies { display: flex; gap: 26px; align-items: end; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.enemies img { height: 120px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(0,0,0,.5)); }

/* Store */
.price { font-family: "Bangers", sans-serif; font-size: 28px; color: var(--yellow); }

/* Newsletter / call-out */
.callout { background: var(--panel); border: 3px solid #000; border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; box-shadow: 0 6px 0 #000; }
form.signup { display: flex; gap: 10px; flex-wrap: wrap; }
form.signup input { flex: 1; min-width: 200px; padding: 12px 14px; border-radius: 12px; border: 3px solid #000; font: inherit; }
form.signup input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
form.signup input[aria-invalid="true"] { border-color: #ff8a80; }
/* (The field only bots fill in: off the screen, out of the tab order and hidden from screen readers.) */
form.signup .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form.signup .signup-note { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--muted); }
form.signup .signup-note a { color: inherit; }
form.signup .signup-status { flex-basis: 100%; margin: 0; font-weight: 800; }
form.signup .signup-status:empty { display: none; }
form.signup .signup-status.ok { background: #1d6b3a; border: 3px solid #000; border-radius: 12px; padding: 12px 16px; }
form.signup .signup-status.error { color: #ff8a80; }
form.signup.done input, form.signup.done button, form.signup.done .signup-note { display: none; }
.nl-panel h2 { margin-top: 0; }
.nl-result:empty { display: none; }
.nl-result { margin: 16px 0 0; }
.nl-switch { display: flex; gap: 12px; align-items: flex-start; font-weight: 800; cursor: pointer; }
.nl-switch input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--yellow); flex: none; }
.nl-switch small { display: block; font-weight: 400; color: var(--muted); }

/* Page header for inner pages */
.page-head { border-bottom: 4px solid #000; text-align: center; padding: 64px 0 56px; }
.page-head p { font-size: 19px; max-width: 38em; margin: 0 auto; text-shadow: 0 2px 0 rgba(0,0,0,.45); }

/* Footer */
footer { background: #05071a; border-top: 4px solid #000; padding: 40px 0; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap, .feature, .callout { grid-template-columns: 1fr; }
  .hero .shot { transform: none; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  section { padding: 52px 0; }
  .nav ul { gap: 0; }
  .nav ul a { padding: 6px 9px; font-size: 15px; }
}
@media (max-width: 640px) {
  .nav .wrap { flex-wrap: wrap; gap: 4px; padding-top: 8px; padding-bottom: 6px; }
  .nav nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav ul { flex-wrap: nowrap; justify-content: flex-start; }
  .nav ul a { white-space: nowrap; }
}
@media (max-width: 520px) {
  .brand { font-size: 24px; }
  .brand img { width: 32px; height: 32px; }
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .fact b { font-size: 30px; }
}

/* App store buttons on the game cards */
.stores { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.store-btn { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; border-radius: 9px; background: #000; color: #fff;
  border: 2px solid #3a4478; text-decoration: none; font-weight: 800; font-size: 14px; line-height: 1.05; }
.store-btn svg { width: 20px; height: 20px; flex: none; }
.store-btn small { display: block; font-size: 9px; font-weight: 700; opacity: .8; text-transform: uppercase; letter-spacing: .3px; }
.store-btn:hover { border-color: var(--yellow); }
.store-btn.soon { opacity: .45; cursor: default; }
.store-btn.soon:hover { border-color: #3a4478; }

/* The "On the App Store" section: smaller cards, and the coming-soon badge (no link) until a game is live */
.grid.apps { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.app-card h3 { font-size: 19px; }
.app-card p { font-size: 14px; }
.app-card .meta { flex-wrap: wrap; }
.store-btn.soon-badge { background: transparent; color: var(--muted); border: 2px dashed #3a4478; cursor: default; }
.store-btn.soon-badge:hover { border-color: #3a4478; }
.store-btn.soon-badge small { opacity: 1; }

/* Account, scores and forms */
.wrap.narrow { max-width: 760px; }
.panel { background: var(--panel); border: 3px solid #000; border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: 0 6px 0 #000; }
.panel .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.form { display: grid; gap: 14px; }
.form label, .picker { display: grid; gap: 6px; font-weight: 800; }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .picker select { padding: 11px 13px; border-radius: 11px; border: 3px solid #000; font: inherit; background: #fff; color: var(--ink); }
.form .btn, .form button { justify-self: start; }
.form + .form { margin-top: 22px; padding-top: 18px; border-top: 2px dashed var(--panel-edge); }
button.btn { cursor: pointer; font: inherit; font-weight: 900; }
button.btn:disabled { opacity: .6; cursor: wait; }
.btn.danger { background: var(--red); color: #fff; }
.small:not(.btn) { font-size: 14px; color: var(--muted); }
.warn { background: #3a2a05; border: 2px solid var(--yellow); border-radius: 10px; padding: 10px 12px; }
.notice { scroll-margin-top: 90px; border: 3px solid #000; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 800; background: #1d6b3a; }
.notice.error { background: #7a1c18; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab { font: inherit; font-weight: 900; padding: 10px 18px; border-radius: 12px 12px 0 0; border: 3px solid #000; border-bottom: 0; background: var(--night); color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--panel); color: var(--yellow); }
details.panel summary { cursor: pointer; list-style: none; }
details.panel summary h3 { display: inline; }
details.panel summary::before { content: "▸ "; color: var(--yellow); }
details[open].panel summary::before { content: "▾ "; }
.picker { margin-bottom: 18px; max-width: 420px; }
table.board { width: 100%; border-collapse: collapse; }
.board th, .board td { text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--panel-edge); }
.board th { color: var(--muted); font-size: 14px; text-transform: uppercase; }
.board td:last-child, .board th:last-child { text-align: right; }
.board tr.me td { color: var(--yellow); font-weight: 900; }
.nav .account-link { background: var(--blue); }

/* Fearless Fleming's teaser: the mansion at night (its title screen), the windows flickering on and off */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.haunted { position: relative; padding: 0; background: #05060f; border-bottom: 4px solid #000; }
.haunt-sound { position: absolute; top: 14px; right: 14px; z-index: 3; font: inherit; font-weight: 900; font-size: 15px; cursor: pointer;
  padding: 8px 14px; border-radius: 11px; border: 3px solid #000; background: rgba(11,15,36,.85); color: var(--text); box-shadow: 0 4px 0 #000; }
.haunt-sound[aria-pressed="true"] { background: var(--yellow); color: #4a2a00; }
.haunt-scene { position: relative; max-height: 78vh; aspect-ratio: 16 / 9; margin: 0 auto; overflow: hidden; container-type: size; }
/* (The picture covers the scene from its top left, like the game's title; the windows ride on it.) */
.haunt-stage { position: absolute; left: 0; top: 0; width: max(100cqw, calc(100cqh * 16 / 9)); aspect-ratio: 16 / 9; }
.haunt-stage > img:not(.haunt-win) { width: 100%; height: 100%; }
.haunt-win { position: absolute; height: auto; opacity: 0; }
.haunt-win.on { opacity: 1; }
.haunt-band { background: linear-gradient(#0b0d1f, var(--ink)); border-top: 4px solid #000; }
.haunt-band .wrap { display: flex; gap: 28px; align-items: center; padding-top: 28px; padding-bottom: 36px; }
.haunt-icon { width: 150px; height: 150px; border-radius: 30px; border: 4px solid #000; box-shadow: 0 8px 0 rgba(0,0,0,.5); flex: none; }
.haunt-band .lead { font-size: 20px; margin: 0 0 10px; max-width: 40em; }
.haunt-platforms { color: var(--yellow); margin: 0; }
.house-cast { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: end; }
.house-cast figure { margin: 0; text-align: center; }
.house-cast img { height: 150px; width: auto; margin: 0 auto; filter: drop-shadow(0 5px 0 rgba(0,0,0,.55)); }
.house-cast figcaption { font-weight: 800; margin-top: 8px; color: var(--muted); }
/* On the home page: the teaser's band */
.fleming-teaser { position: relative; padding: 0; border-bottom: 4px solid #000; background: #05060f; }
.fleming-teaser .haunt-scene { aspect-ratio: auto; max-height: none; height: clamp(240px, 38vw, 480px); }
.fleming-teaser .over { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; background: linear-gradient(transparent, rgba(5,6,15,.92) 55%); }
.fleming-teaser .over .wrap { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 60px; padding-bottom: 22px; }
.fleming-teaser .over p { margin: 0; font-size: 19px; max-width: 36em; text-shadow: 0 2px 0 #000; }
@media (max-width: 640px) {
  .haunt-band .wrap { flex-direction: column; align-items: flex-start; }
  .haunt-icon { width: 96px; height: 96px; border-radius: 20px; }
  .house-cast img { height: 110px; }
  .fleming-teaser .over { position: static; background: #05060f; }
  .fleming-teaser .over .wrap { padding-top: 16px; }
}

/* Asset kit pages (fantasy-knight.html) */
.kit-hero { border-bottom: 4px solid #000; background: #000; }
.kit-cover { display: block; width: 100%; max-height: 640px; object-fit: cover; }
.kit-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.kit-top h1 { margin-top: 0; }
.kit-facts { margin: 18px 0 0; padding-left: 20px; display: grid; gap: 6px; font-weight: 700; }
.kit-buy { background: var(--panel); border: 3px solid #000; border-radius: var(--radius); box-shadow: 0 6px 0 #000;
  padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; position: sticky; top: 90px; }
.kit-buy img { border-radius: 22px; border: 3px solid #000; }
.kit-buy .price { font-size: 44px; line-height: 1; }
.kit-buy .btn { font-size: 22px; }
.kit-buy p { color: var(--muted); margin: 0; }
.kit-board { display: block; width: 100%; border: 3px solid #000; border-radius: var(--radius); margin: 0 0 22px; background: #22283a; }
.kit-anims { margin-top: 4px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 3px solid #000; border-radius: 12px; padding: 12px 16px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 2px; }
@media (max-width: 860px) {
  .kit-top { grid-template-columns: 1fr; }
  .kit-buy { position: static; }
}

/* License page: long text, easy to read */
.license { max-width: 820px; }
.license h2 { margin-top: 1.6em; font-size: 1.3rem; }
.license ul { padding-left: 1.3em; }
.license li { margin: .45em 0; }
.license h3 { margin: 1.2em 0 .3em; font-size: 1.05rem; color: var(--yellow); }
.tester-games { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tester-games .card .btn { margin-top: 8px; }
.tester-band { padding: 26px 0; background: var(--panel); border-top: 4px solid #000; border-bottom: 4px solid #000; }
.tester-band .wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tester-band h2 { margin: 0 0 6px; }
.tester-band p { margin: 0; max-width: 40em; }
.btn[aria-disabled] { opacity: .6; cursor: default; }
.btn[aria-disabled]:hover { transform: none; box-shadow: 0 4px 0 #000; }
.btn svg { width: 20px; height: 20px; }

/* Room 3D: its page's plans, the manual (topics beside a list of them) and the release notes. */
.room3d-hero .kit-cover { max-height: 560px; object-fit: cover; width: 100%; }
.plans .plan .body { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.plans .plan .meta { margin-top: auto; }
.manual { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.manual-toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; background: var(--panel); border: 3px solid #000; border-radius: var(--radius); padding: 14px; box-shadow: 0 6px 0 #000; }
.manual-toc input { width: 100%; padding: 8px 10px; border-radius: 10px; border: 2px solid #000; font: inherit; margin-bottom: 8px; }
.manual-toc ul { list-style: none; margin: 0; padding: 0; }
.manual-toc li a { display: block; padding: 3px 6px; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; }
.manual-toc li a:hover { background: var(--night); color: var(--yellow); }
.manual-body { min-width: 0; }
.manual-topic { background: var(--panel); border: 3px solid #000; border-radius: var(--radius); padding: 22px 26px; margin-bottom: 18px; box-shadow: 0 6px 0 #000; }
.manual-topic h2, .release-notes h2 { font-size: 36px; scroll-margin-top: 84px; }
.release-notes h3 { font-size: 24px; margin-top: 18px; color: var(--yellow); }
.manual-topic code, .release-notes code { background: var(--night); padding: 1px 6px; border-radius: 6px; color: var(--yellow); }
.manual-topic li, .release-notes li { margin-bottom: 4px; }
.licence-list .devices { margin: 8px 0 0; padding-left: 18px; }
.licence-list .devices li { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 6px; }
@media (max-width: 800px) {
  .manual { grid-template-columns: 1fr; }
  .manual-toc { position: static; max-height: none; }
}

/* The Assets store (assets.html): 2D and 3D tabs, filter chips, sorting and the pack cards. */
.asset-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; text-align: left; }
.asset-hero p { margin: 0 0 14px; }
.asset-hero .hero-art { border: 4px solid #000; border-radius: var(--radius); box-shadow: 0 10px 0 rgba(0,0,0,.4); background: #000; transform: rotate(-1.5deg); }
.asset-hero .points { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.asset-hero .points li { background: rgba(11,15,36,.75); border: 2px solid #000; border-radius: 10px; padding: 4px 10px; font-weight: 800; font-size: 15px; }
.store-tabs { display: flex; gap: 8px; border-bottom: 3px solid #000; margin-bottom: 18px; }
.store-tabs .tab { font-size: 22px; font-family: "Bangers", sans-serif; letter-spacing: 1px; padding: 8px 26px; }
.store-tabs .tab small { font-family: "Nunito", sans-serif; font-size: 13px; font-weight: 900; margin-left: 6px; background: var(--ink); color: var(--muted); border-radius: 8px; padding: 1px 7px; vertical-align: 3px; }
.store-filters { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; margin-bottom: 24px; }
.store-filters > span { font-weight: 900; color: var(--muted); font-size: 14px; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-weight: 800; font-size: 14px; padding: 5px 12px; border-radius: 999px; border: 2px solid #000; background: var(--panel); color: var(--text); cursor: pointer; }
.chip:hover { color: var(--yellow); }
.chip[aria-pressed="true"] { background: var(--yellow); color: #4a2a00; }
.store-filters select { font: inherit; font-weight: 800; padding: 6px 10px; border-radius: 10px; border: 2px solid #000; background: var(--panel); color: var(--text); justify-self: start; }
.asset-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.asset-tags li { font-size: 12px; font-weight: 800; color: var(--muted); border: 1px solid var(--panel-edge); border-radius: 7px; padding: 1px 7px; }
.tag.dim { background: var(--panel-edge); color: var(--text); }
.grid .empty { grid-column: 1 / -1; color: var(--muted); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.section-head .more { white-space: nowrap; }

/* An asset pack's page: preview, viewer, gallery and lightbox. */
.pack-preview { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.pack-preview video, .pack-preview > img { width: 100%; border: 3px solid #000; border-radius: var(--radius); background: #22283a; }
.pack-strip { width: 100%; overflow-x: auto; scrollbar-color: var(--panel-edge) #22283a; border: 3px solid #000; border-radius: 12px; background: #22283a; margin-top: 16px; }
.pack-strip img { max-width: none; height: 140px; }
.pack-inside { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pack-inside .card .body { gap: 4px; }
.pack-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 0 0 22px; }
.pack-formats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.pack-formats li { background: var(--night); border: 2px solid #000; border-radius: 10px; padding: 4px 10px; font-weight: 800; font-size: 15px; }
.gallery a { display: block; cursor: zoom-in; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.notes ul { padding-left: 20px; margin: 0; }
.notes li { margin-bottom: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,7,26,.94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border: 3px solid #000; border-radius: 10px; background: #22283a; }
.lightbox figcaption { font-weight: 800; text-align: center; }
.lb-btn { position: absolute; font: inherit; font-size: 30px; line-height: 1; width: 48px; height: 48px; border-radius: 12px; border: 3px solid #000; background: var(--panel); color: var(--text); cursor: pointer; }
.lb-btn:hover { color: var(--yellow); }
.lb-close { top: 14px; right: 14px; font-size: 22px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 24px; left: 20px; color: var(--muted); font-weight: 800; }
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 0; background: var(--panel); border: 3px solid #000; border-radius: var(--radius); box-shadow: 0 6px 0 #000; overflow: hidden; }
.viewer model-viewer { width: 100%; height: min(70vh, 560px); background: radial-gradient(circle at 50% 40%, #3a4a8a, #121838 70%); --poster-color: transparent; }
.viewer .controls { padding: 18px; display: grid; gap: 14px; align-content: start; border-left: 3px solid #000; }
.viewer label { display: grid; gap: 4px; font-weight: 800; font-size: 14px; color: var(--muted); }
.viewer select { font: inherit; font-weight: 800; padding: 8px 10px; border-radius: 10px; border: 2px solid #000; background: var(--night); color: var(--text); }
.viewer .check { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 16px; }
.viewer .check input { width: 18px; height: 18px; accent-color: var(--yellow); }
.viewer .hint { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .asset-hero .wrap, .pack-preview, .notes { grid-template-columns: minmax(0, 1fr); }
  .asset-hero .hero-art { transform: none; }
  .viewer { grid-template-columns: minmax(0, 1fr); }
  .viewer model-viewer { height: 380px; }
  .viewer .controls { border-left: 0; border-top: 3px solid #000; grid-template-columns: 1fr 1fr; }
  .viewer .controls .hint { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .store-filters { grid-template-columns: 1fr; gap: 6px; }
  .store-filters > span { margin-top: 6px; }
  .store-tabs .tab { padding: 8px 18px; }
  .lightbox { padding: 56px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}
#store { scroll-margin-top: 80px; }
.pack-preview > div { min-width: 0; }
/* The account's purchases on phones: no date column, so long pack names and the Download button fit. */
@media (max-width: 520px) {
  #purchases .board th:nth-child(2), #purchases .board td:nth-child(2) { display: none; }
  #purchases .board th, #purchases .board td { padding: 8px 6px; }
  #purchases .board .btn.small { white-space: nowrap; padding: 6px 10px; font-size: 14px; }
}

/* Room 3D's page (room3d.html): the hero, the three steps, the features with pictures and clips, the box, pricing. */
.r3d-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.r3d-brand { display: flex; gap: 18px; align-items: center; margin-bottom: 10px; }
.r3d-brand img { width: 88px; height: 88px; border-radius: 20px; border: 3px solid #000; box-shadow: 0 6px 0 rgba(0,0,0,.4); flex: none; }
.r3d-brand h1 { margin: 0; text-shadow: 0 4px 0 rgba(0,0,0,.35); }
.r3d-brand .pixel { margin: 0; color: var(--yellow); text-shadow: 0 2px 0 #000; }
.r3d-hero .shot { transform: rotate(1deg); }
.r3d-platforms { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.r3d-platforms li { background: rgba(11,15,36,.75); border: 2px dashed var(--panel-edge); border-radius: 10px; padding: 4px 12px; font-weight: 800; font-size: 15px; color: var(--muted); }
.r3d-platforms li.now { border: 2px solid #000; background: var(--yellow); color: #4a2a00; }
.r3d-platforms small { font-weight: 700; font-size: 12px; }
.r3d-steps { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.r3d-steps li { background: var(--panel); border: 3px solid #000; border-radius: var(--radius); box-shadow: 0 6px 0 #000; padding: 18px 20px; position: relative; }
.r3d-steps b { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #000; background: var(--yellow); color: #4a2a00; font-family: "Bangers", sans-serif; font-size: 28px; margin-bottom: 8px; }
.r3d-steps h3 { margin-bottom: 4px; }
.r3d-steps p { margin: 0; color: var(--muted); font-size: 15px; }
.r3d-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.r3d-compare figure, .r3d-themes figure, .r3d-fx-pair figure { margin: 0; }
.r3d-compare img, .r3d-media img, .r3d-media picture img { width: 100%; height: auto; border: 3px solid #000; border-radius: 12px; background: #000; }
.r3d-compare figcaption { margin-top: 8px; font-weight: 800; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.r3d-features { display: grid; gap: 64px; }
.r3d-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.r3d-feature.flip > .r3d-media { order: 2; }
.r3d-media { display: grid; gap: 14px; min-width: 0; }
.r3d-feature p { color: var(--text); }
.r3d-feature ul { padding-left: 20px; margin: 0; color: var(--muted); }
.r3d-feature li { margin-bottom: 6px; }
.r3d-kicker { color: var(--yellow); display: block; margin-bottom: 6px; }
.r3d-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.r3d-themes img { border-width: 2px !important; border-radius: 8px !important; }
.r3d-themes figcaption, .r3d-fx-pair figcaption { font-size: 13px; font-weight: 800; color: var(--muted); text-align: center; margin-top: 4px; }
.r3d-fx-pair { display: grid; gap: 10px; }
.r3d-code { margin: 0; background: #0a0d1c; border: 3px solid #000; border-radius: 12px; box-shadow: 0 6px 0 #000; padding: 16px 18px; overflow-x: auto;
  font: 13.5px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #dfe5ff; }
.r3d-code .c { color: #7f8bb8; }
.r3d-code .k { color: var(--sky); }
.r3d-code .s { color: #9fe39a; }
.r3d-code .n { color: var(--orange); }
.r3d-feature code:not(.r3d-code code) { background: var(--night); padding: 1px 6px; border-radius: 6px; color: var(--yellow); font-size: 15px; }
.r3d-box { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.r3d-box > div { background: var(--panel); border: 3px solid #000; border-radius: 12px; padding: 14px 16px; }
.r3d-box h3 { font-size: 24px; margin-bottom: 4px; color: var(--yellow); }
.r3d-box p { margin: 0; color: var(--muted); font-size: 15px; }
.r3d-plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 22px; margin-bottom: 22px; }
.r3d-plan-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.r3d-trial { border-color: #000; background: linear-gradient(var(--panel), #22306a); }
.r3d-trial .meta { margin-top: auto; flex-wrap: wrap; }
.r3d-free h3 { margin-top: 0; }
.r3d-free p { margin: 0; color: var(--muted); }
.r3d-links { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 860px) {
  .r3d-hero .wrap, .r3d-feature, .r3d-compare, .r3d-plans { grid-template-columns: minmax(0, 1fr); }
  .r3d-feature.flip > .r3d-media { order: 0; }
  .r3d-hero .shot { transform: none; }
  .r3d-features { gap: 48px; }
}
@media (max-width: 640px) {
  .r3d-steps, .r3d-plan-list { grid-template-columns: minmax(0, 1fr); }
  .r3d-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r3d-brand img { width: 64px; height: 64px; border-radius: 15px; }
  .r3d-code { font-size: 12px; padding: 12px; }
}
/* The home page's Room 3D band. */
.r3d-band .feature > div:first-child { min-width: 0; }
.r3d-band { border-top: 4px solid #000; border-bottom: 4px solid #000; }
.r3d-band .r3d-brand { margin-bottom: 14px; }
.r3d-band .badge { margin-bottom: 4px; }
.r3d-band .r3d-brand h2 { margin: 0; }
.r3d-band img.shot { width: 100%; border: 4px solid #000; border-radius: var(--radius); box-shadow: 0 10px 0 rgba(0,0,0,.4); background: #000; }
.r3d-band .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
/* (Eleven menu items: a little tighter on narrower desktops, so they stay on one line.) */
@media (min-width: 861px) {
  .nav ul { gap: 2px; }
  .nav ul a { padding: 7px 8px; font-size: 15px; }
  .brand { font-size: 26px; }
}
.r3d-media a { display: block; cursor: zoom-in; }
.r3d-hero-shot, .r3d-band img.shot, .r3d-media img { height: auto; }

/* The admin dashboard (admin.html): stat tiles, bar charts, tables that scroll on their own on phones. */
.account-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin { padding: 32px 0 64px; }
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-head h1 { font-size: clamp(40px, 6vw, 60px); margin: 0; }
.admin-head p { margin: 0; }
.admin-tools { display: flex; gap: 8px; }
.admin-unlock { max-width: 460px; }
.admin-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.admin-bar { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-tabs { margin: 0; flex-wrap: wrap; }
.admin-tabs .tab { border-radius: 12px; border-bottom: 3px solid #000; padding: 8px 14px; }
.admin-range { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-range select, .admin-range input, .table-tools input { padding: 8px 10px; border-radius: 10px; border: 3px solid #000; font: inherit; background: #fff; color: var(--ink); }
.admin-range #custom { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.admin-view.loading { opacity: .55; transition: opacity .2s; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-tiles .fact { text-align: left; padding: 14px 16px; }
.stat-tiles .fact b { font-size: 34px; }
.stat-tiles .fact span { display: block; color: var(--text); font-weight: 800; margin-top: 4px; }
.stat-tiles .fact small { display: block; color: var(--muted); font-size: 13px; }
.stat-tiles.kinds { margin: 0; }
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.chart-row.single { grid-template-columns: 1fr; }
.chart { margin: 0; background: var(--panel); border: 3px solid #000; border-radius: var(--radius); padding: 14px 16px 8px; box-shadow: 0 6px 0 #000; min-width: 0; }
.chart figcaption { font-weight: 900; margin-bottom: 6px; }
.chart figcaption small { color: var(--muted); font-weight: 400; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart line { stroke: var(--panel-edge); stroke-width: 1; }
.chart text { fill: var(--muted); font-size: 11px; font-family: "Nunito", system-ui, sans-serif; }
.chart .bar path { fill: var(--yellow); }
.chart .bar:hover path { fill: #ffe07a; }
.chart-tip { position: fixed; z-index: 50; pointer-events: none; background: #05071a; color: var(--text); border: 2px solid var(--yellow);
  border-radius: 8px; padding: 4px 8px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.admin-table h3 small { color: var(--muted); font-family: "Nunito", sans-serif; font-size: 15px; letter-spacing: 0; }
.table-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.table-tools input { width: 180px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -6px; }
.admin .board { font-size: 14px; }
.admin .board td, .admin .board th { white-space: nowrap; padding: 7px 8px; text-align: left; }
.admin .board td:last-child, .admin .board th:last-child { text-align: left; }
.admin .board a[data-user] { color: var(--sky); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 12px; color: var(--muted); }
.pill { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 1px 8px; border: 2px solid #000; color: var(--ink); background: var(--muted); }
.pill.good { background: #6fdc8c; }
.pill.warn { background: var(--yellow); }
.pill.bad { background: #ff8a80; }
.muted { color: var(--muted); }
.admin-dialog { background: var(--panel); color: var(--text); border: 3px solid #000; border-radius: var(--radius); box-shadow: 0 8px 0 #000; padding: 22px; max-width: min(440px, calc(100vw - 32px)); }
.admin-dialog::backdrop { background: rgba(5,7,26,.75); }
.admin-dialog-buttons { display: flex; gap: 10px; }
.error-text { color: #ff8a80 !important; font-weight: 800; }
.qr { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; margin: 8px 0; }
.qr img, .qr canvas { display: block; }
.secret { word-break: break-all; }
.recovery-codes { columns: 2; font-size: 18px; }
@media (max-width: 760px) {
  .chart-row { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-tiles .fact b { font-size: 26px; }
  .admin-bar { align-items: stretch; }
  .table-tools input { width: 140px; }
}
#tfa-panel .form { max-width: 340px; }

/* Admin: the newsletter tab and campaigns */
.row-actions { white-space: nowrap; text-align: right; }
.table-tools select { padding: 6px 8px; border-radius: 10px; border: 2px solid #000; font: inherit; font-size: 14px; }
.campaign-form textarea { width: 100%; min-height: 260px; padding: 12px 14px; border-radius: 12px; border: 3px solid #000; font: 15px/1.5 ui-monospace, Menlo, Consolas, monospace; resize: vertical; box-sizing: border-box; background: #fff; color: var(--ink); }
.campaign-form textarea[readonly], .campaign-form input[readonly] { opacity: .8; }
.campaign-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.campaign-frame { width: 100%; height: 560px; border: 3px solid #000; border-radius: 12px; background: #eef0f7; margin-top: 12px; }
.campaign-text { white-space: pre-wrap; word-break: break-word; background: #05071a; border: 3px solid #000; border-radius: 12px; padding: 16px; margin-top: 12px; font-size: 14px; }
.nl-warn { margin-bottom: 16px; }
