@font-face { font-family: Michroma; src: url(fonts/michroma-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Archivo; font-weight: 400; src: url(fonts/archivo-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Archivo; font-weight: 600; src: url(fonts/archivo-latin-600-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Archivo; font-weight: 800; src: url(fonts/archivo-latin-800-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Playfair; font-style: italic; font-weight: 800; src: url(fonts/playfair-display-latin-800-italic.woff2) format("woff2"); font-display: swap; }

/* ---------- Tokens (Modern = default) ---------- */
:root {
  --bg: #0d0e10; --bg2: #121418; --fg: #eef1f3; --muted: #9aa3ad; --accent: #3fe0a0; --on-accent: #062417;
  --line: #24272c; --card: #15171b; --radius: 12px;
  --head: 800 1em/1.05 Archivo, system-ui, sans-serif; --head-track: -.01em;
  --power: var(--power-green);
  --power-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M26 27A35 35 0 1 0 74 27' fill='none' stroke='%233fe0a0' stroke-width='14' stroke-linecap='round'/%3E%3Cline x1='50' y1='8' x2='50' y2='48' stroke='%233fe0a0' stroke-width='14' stroke-linecap='round'/%3E%3C/svg%3E");
  --wrap: max(16px, calc((100% - 1180px) / 2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 Archivo, system-ui, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font: var(--head); letter-spacing: var(--head-track); margin: 0; }
p { margin: 0 0 12px; }

/* Wordmark: the O is a power symbol */
.pw { display: inline-block; width: .74em; height: .74em; background: var(--power) center / contain no-repeat; margin: 0 .22em 0 .02em; vertical-align: -.02em; }
.logo { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.logo .word { font: 400 clamp(40px, 7vw, 84px)/1 Michroma; letter-spacing: .2em; white-space: nowrap; }
.logo .sub { font: 400 clamp(11px, 1.8vw, 22px) Michroma; letter-spacing: .28em; color: var(--accent); margin-top: .9em; white-space: nowrap; }

/* ---------- Universe bar (out of fiction, same everywhere) ---------- */
.unibar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px var(--wrap); background: #08090a; border-bottom: 1px solid #22252a; font: 600 13px Archivo, sans-serif; }
.unibar .home { font: 400 14px Michroma; letter-spacing: .2em; color: #eef1f3; text-decoration: none; white-space: nowrap; }
.unibar nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.unibar nav a { color: #9aa3ad; text-decoration: none; padding: 4px 10px; border-radius: 999px; }
.unibar nav a:hover { color: #fff; }
.unibar nav a[aria-current] { background: #eef1f3; color: #0d0e10; }

/* ---------- Site menu (in fiction) ---------- */
.sitemenu { display: flex; gap: 8px 20px; flex-wrap: wrap; padding: 14px var(--wrap); border-bottom: 1px solid var(--line); background: var(--bg2); }
.sitemenu a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.sitemenu a:hover { color: var(--fg); }

/* ---------- Generic blocks ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 32px; padding: 56px var(--wrap) 48px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 62px); margin: 18px 0 14px; }
.hero .lead { color: var(--muted); max-width: 34em; margin-bottom: 24px; }
.hero-img { -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 62%, transparent 100%); }
.kicker { font: 400 12px Michroma; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 15px Archivo, sans-serif; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--muted); }

.section { padding: 64px var(--wrap); border-top: 1px solid var(--line); }
.section > header { max-width: 680px; margin-bottom: 28px; }
.section > header h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.section > header p { color: var(--muted); margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.grid figure { margin: 0; }
.grid figure.wide { grid-column: 1 / -1; }
.grid .zoom { all: unset; display: block; cursor: zoom-in; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); transition: transform .2s; }
.grid .zoom:hover, .grid .zoom:focus-visible { transform: translateY(-3px); }
.grid .zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.grid figcaption { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.grid figcaption b { display: block; }
.grid figcaption span { color: var(--muted); font-size: 15px; }
.grid figcaption .btn { padding: 7px 14px; font-size: 14px; white-space: nowrap; }
.soon { display: grid; place-items: center; min-height: 200px; padding: 24px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card h3 { font-size: 22px; margin-bottom: 6px; }
.card .price { font: 800 34px/1.1 Archivo; margin: 8px 0 12px; }
.card .price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.card ul { margin: 0 0 16px; padding-left: 18px; color: var(--muted); }
.card .fine { margin-top: auto; font-size: 12px; color: var(--muted); opacity: .85; margin-bottom: 0; }
.card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tag { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent); margin-bottom: 10px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.split h3 { font-size: 24px; margin-bottom: 14px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.jobs, .press { list-style: none; padding: 0; margin: 0; }
.jobs li, .press li { margin-bottom: 18px; }
.jobs b, .press b { display: block; }
.jobs span, .press span { color: var(--muted); }
.press time { font: 400 11px Michroma; letter-spacing: .15em; color: var(--accent); }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); max-width: 760px; }
.timeline li { position: relative; padding: 0 0 22px 22px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline b { display: block; color: var(--fg); font: 400 14px Michroma; letter-spacing: .12em; margin-bottom: 2px; }

.coverage { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: center; }
.coverage svg { width: 100%; height: auto; display: block; }
.legend { list-style: none; padding: 0; margin: 0; }
.legend li { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; color: var(--muted); }
.legend i { flex: none; width: 14px; height: 14px; border-radius: 3px; transform: translateY(2px); }

.askgm { margin: 0 var(--wrap) 64px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--card);
  display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.askgm h2 { font-size: 24px; margin-bottom: 6px; }
.askgm p { color: var(--muted); margin: 0; max-width: 46em; }


dialog { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 94vh; overflow: visible; }
dialog::backdrop { background: rgba(0, 0, 0, .85); }
dialog img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 8px; }
dialog .cap { text-align: center; color: #cfd5da; margin: 12px 0 0; }
dialog .close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 22px; cursor: pointer; }

.lineup { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.device { margin: 0; }
.device .pic { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 100%; height: 250px; padding: 18px; cursor: zoom-in;
  border-radius: var(--radius); background: radial-gradient(ellipse at 50% 40%, var(--tile-hi, #2a2e35), var(--tile, #15171b) 75%); border: 1px solid var(--line); transition: transform .2s; }
.device .pic:hover, .device .pic:focus-visible { transform: translateY(-3px); }
.device .pic:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.device img { max-width: 100%; max-height: 212px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.device figcaption { margin-top: 10px; }
.device b { display: block; }
.device span { color: var(--muted); font-size: 14px; }
.u-vintage { --tile: #d9c9a6; --tile-hi: #f3e8cf; }
.u-vintage .device .pic { border: 2px solid var(--fg); box-shadow: 4px 4px 0 var(--fg); }
.u-cyberpunk { --tile: #0b0814; --tile-hi: #221536; }

.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

/* ---------- Portal ---------- */
.portal { min-height: calc(100vh - 150px); padding: 64px var(--wrap); display: flex; flex-direction: column; justify-content: center; gap: 44px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(63, 224, 160, .10), transparent 70%); }
.portal .since { color: var(--muted); margin: 22px 0 0; font-size: 18px; max-width: 36em; }
.worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.world { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; padding: 22px; border-radius: 14px; text-decoration: none; overflow: hidden; border: 1px solid #2a2d33; transition: transform .2s; }
.world:hover { transform: translateY(-4px); }
.world b { font-size: 26px; line-height: 1.1; }
.world span { font-size: 15px; opacity: .8; margin-top: 6px; }
.world.w-vintage { background: linear-gradient(170deg, transparent 0 40%, #f4c14a 40% 43%, #ec8a2f 43% 46%, #d9482b 46% 49%, #9c2a2a 49% 52%, transparent 52%), #1b1916; color: #f3ead6; }
.world.w-vintage b { font: 800 italic 30px/1.05 Playfair, Georgia, serif; }
.world.w-modern { background: radial-gradient(ellipse at 70% 20%, rgba(63, 224, 160, .25), transparent 60%), #111316; color: #eef1f3; }
.world.w-cyberpunk { background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 80% 10%, rgba(0, 229, 255, .3), transparent 60%), radial-gradient(ellipse at 10% 90%, rgba(255, 63, 180, .3), transparent 60%), #07060b; color: #e7f6ff; }
.world.w-cyberpunk b { font: 400 22px Michroma; text-shadow: 0 0 14px rgba(255, 63, 180, .8); }
.world.w-space { background: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 70%, #cfe3ff, transparent), radial-gradient(1px 1px at 85% 60%, #fff, transparent), radial-gradient(ellipse at 80% 100%, rgba(120, 140, 255, .3), transparent 60%), #05060c; color: #dfe6ff; }
.world.w-space b { font: 400 22px Michroma; }
.world .badge { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .14); }

/* ========== VINTAGE: mail-order catalogue on paper ========== */
.u-vintage { --bg: #efe4cc; --bg2: #e6d8b9; --fg: #2a2118; --muted: #6b5a45; --accent: #c4471f; --on-accent: #fff6e6; --line: #cdb995; --card: #f7eedb; --radius: 2px;
  --head: 800 italic 1em/1.05 Playfair, Georgia, serif; --head-track: 0;
  --power: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M26 27A35 35 0 1 0 74 27' fill='none' stroke='%23c4471f' stroke-width='14' stroke-linecap='round'/%3E%3Cline x1='50' y1='8' x2='50' y2='48' stroke='%23c4471f' stroke-width='14' stroke-linecap='round'/%3E%3C/svg%3E");
  background-image: radial-gradient(rgba(90, 60, 20, .07) 1px, transparent 1px); background-size: 4px 4px; }
.u-vintage .unibar { --power: var(--power-green); }
.u-vintage .masthead { padding: 36px var(--wrap) 0; text-align: center; }
.u-vintage .masthead .logo { align-items: center; color: var(--fg); }
.u-vintage .masthead .logo .sub { color: var(--accent); }
.u-vintage .masthead .edition { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-top: 26px; font: 600 12px Archivo; letter-spacing: .14em; text-transform: uppercase; border-top: 3px double var(--fg); border-bottom: 1px solid var(--fg); padding: 8px 0; }
.u-vintage .stripes { height: 30px; background: linear-gradient(#f4c14a 0 22%, transparent 22% 26%, #ec8a2f 26% 48%, transparent 48% 52%, #d9482b 52% 74%, transparent 74% 78%, #9c2a2a 78%); }
.u-vintage .sitemenu { justify-content: center; background: transparent; }
.u-vintage .sitemenu a { font: 600 12px Archivo; letter-spacing: .14em; text-transform: uppercase; }
.u-vintage .btn { border-radius: 2px; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.u-vintage .btn.ghost { box-shadow: inset 0 0 0 2px var(--fg); }
.u-vintage .card { border: 2px solid var(--fg); box-shadow: 5px 5px 0 var(--fg); }
.u-vintage .card.featured { box-shadow: 5px 5px 0 var(--accent); border-color: var(--accent); }
.u-vintage .card .price { font-family: Playfair, Georgia, serif; font-style: italic; }
.u-vintage .tag { border-radius: 2px; }
.u-vintage .kicker { color: var(--accent); }
.u-vintage .grid .zoom { border-radius: 2px; box-shadow: 6px 6px 0 rgba(42, 33, 24, .85); }
.u-vintage .coupon { border: 3px dashed var(--fg); padding: 24px; background: var(--card); position: relative; }
.u-vintage .coupon::before { content: "✂"; position: absolute; top: -17px; left: 18px; background: var(--bg); padding: 0 6px; font-size: 20px; }
.u-vintage .coupon h3 { font-size: 26px; margin-bottom: 8px; }
.u-vintage .coupon label { display: block; font: 600 11px Archivo; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.u-vintage .coupon .field { border-bottom: 1px solid var(--fg); min-height: 28px; margin: 2px 0 14px; font: 400 16px "Courier New", monospace; padding-top: 4px; }
.u-vintage .askgm { border: 2px solid var(--fg); box-shadow: 5px 5px 0 var(--accent); }
.u-vintage .tollfree { font: 800 italic clamp(28px, 4.4vw, 44px)/1.1 Playfair, Georgia, serif; color: var(--accent); margin: 6px 0 12px; }
.u-vintage .timeline li::before { border-radius: 0; }
.u-vintage .press time, .u-vintage .timeline b { font-family: "Courier New", monospace; font-weight: 700; letter-spacing: .06em; font-size: 15px; }

/* ========== CYBERPUNK: intrusive corporate portal ========== */
.u-cyberpunk { --bg: #07060b; --bg2: #0d0a16; --fg: #e7f6ff; --muted: #8fa8c8; --accent: #ff3fb4; --on-accent: #12020c; --line: #2a1f3a; --card: #0f0b1a; --radius: 4px;
  --head: 400 1em/1.12 Michroma, sans-serif; --head-track: .05em;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px); }
.u-cyberpunk h1, .u-cyberpunk .section > header h2 { text-shadow: 0 0 18px rgba(255, 63, 180, .6), 0 0 2px #fff; }
.u-cyberpunk .hero h1 { font-size: clamp(26px, 4.4vw, 50px); }
.u-cyberpunk .section > header h2 { font-size: clamp(20px, 3vw, 32px); }
.u-cyberpunk .card h3, .u-cyberpunk .split h3, .u-cyberpunk .askgm h2 { font-size: 17px; }
.u-cyberpunk .card { box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .08); }
.u-cyberpunk .card.featured { border-color: #00e5ff; box-shadow: 0 0 24px rgba(0, 229, 255, .25); }
.u-cyberpunk .tag { background: #00e5ff; color: #001318; }
.u-cyberpunk .press time, .u-cyberpunk .timeline b { color: #00e5ff; }
.u-cyberpunk .timeline li::before { border-color: #00e5ff; }
.u-cyberpunk .soon { font: 400 14px Michroma; letter-spacing: .12em; color: #00e5ff; border-color: rgba(0, 229, 255, .35); text-shadow: 0 0 10px rgba(0, 229, 255, .6); }
.u-cyberpunk .ticker { overflow: hidden; white-space: nowrap; background: var(--accent); color: var(--on-accent); font: 400 12px Michroma; letter-spacing: .12em; padding: 7px 0; }
.u-cyberpunk .ticker span { display: inline-block; padding-left: 100%; animation: tick 40s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }
.u-cyberpunk .popup-ad { border: 1px solid #00e5ff; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(90deg, rgba(0, 229, 255, .12), transparent); margin: 0 var(--wrap) 40px; }
.u-cyberpunk .popup-ad b { font: 400 15px Michroma; letter-spacing: .08em; color: #00e5ff; }
.u-cyberpunk .popup-ad span { color: var(--muted); font-size: 14px; }

/* ========== SPACE: relay terminal ========== */
.u-space { --bg: #05060c; --bg2: #0a0c18; --fg: #dfe6ff; --muted: #8c96bd; --accent: #8fa6ff; --on-accent: #050716; --line: #1c2140; --card: #0b0e1d;
  --head: 400 1em/1.15 Michroma, sans-serif; --head-track: .08em;
  background-image: radial-gradient(1px 1px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 35%, #cfe3ff, transparent), radial-gradient(1px 1px at 75% 70%, #fff, transparent), radial-gradient(1px 1px at 90% 15%, #fff, transparent);
  background-size: 400px 400px; }
.u-space .relay { min-height: 66vh; display: grid; place-items: center; text-align: center; padding: 64px var(--wrap); }
.u-space .relay .logo { align-items: center; }
.u-space .relay .logo .word { font-size: clamp(30px, 5vw, 56px); }
.u-space .relay h1 { font-size: clamp(20px, 3.4vw, 36px); margin: 40px 0 16px; }
.u-space .relay .lead { color: var(--muted); max-width: 36em; margin: 0 auto 28px; }
.u-space .bar { width: min(420px, 100%); height: 8px; border-radius: 99px; background: var(--line); margin: 0 auto 10px; overflow: hidden; }
.u-space .bar i { display: block; height: 100%; width: 3%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.u-space .eta { font: 400 12px Michroma; letter-spacing: .14em; color: var(--muted); }

@media (max-width: 760px) {
  .hero, .split, .coverage { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .unibar { padding-top: 7px; padding-bottom: 7px; }
  .unibar .home { font-size: 12px; }
  .unibar nav a { padding: 4px 7px; font-size: 12px; }
  dialog .close { top: 6px; right: 6px; }
  .grid figcaption { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .lineup { grid-template-columns: 1fr 1fr; gap: 12px; }
  .device .pic { height: 190px; padding: 12px; }
  .device img { max-height: 164px; }
}
@media (max-width: 480px) {
  .unibar { gap: 6px; }
  .unibar nav { flex-wrap: nowrap; gap: 2px; }
  .unibar nav a { padding: 3px 6px; font-size: 11.5px; }
  .unibar .home { font-size: 11px; letter-spacing: .14em; }
}
@media (max-width: 420px) { .unibar .home .w { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grid .zoom, .world, .device .pic { transition: none; }
  .u-cyberpunk .ticker span { animation: none; padding-left: 16px; }
}

/* ---------- In-fiction legal line (links to /about/) ---------- */
footer.legal { padding: 22px var(--wrap) 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; opacity: .75; }
footer.legal p { margin: 0; }
footer.legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; margin-left: 6px; }
footer.legal a:hover { color: var(--fg); }
.about { max-width: 720px; }
.about p { color: var(--muted); margin: 0 0 16px; }
.about p b { color: var(--fg); }
.about a:not(.btn) { color: var(--accent); }
.changelog { max-width: 760px; }
.changelog h3 { font-size: 20px; margin: 30px 0 8px; }
.changelog ul { margin: 0; padding-left: 20px; color: var(--muted); }
.changelog li { margin-bottom: 6px; }
.changelog b { color: var(--fg); }
.changelog code { font: .9em ui-monospace, Menlo, monospace; color: var(--fg); }
.changelog details { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 16px; }
.changelog summary { cursor: pointer; color: var(--fg); font-weight: 600; }

/* ---------- Language flag (unibar) ---------- */
.unibar .home { margin-right: auto; }
.unibar .lang { display: inline-flex; padding: 4px 2px; opacity: .55; transition: opacity .15s; }
.unibar .lang:hover, .unibar .lang:focus-visible { opacity: 1; }
.unibar .lang i { display: block; width: 18px; height: 12px; border-radius: 2px; background-size: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.flag-fr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%23002654' d='M0 0h1v2H0z'/%3E%3Cpath fill='%23fff' d='M1 0h1v2H1z'/%3E%3Cpath fill='%23ce1126' d='M2 0h1v2H2z'/%3E%3C/svg%3E"); }
.flag-en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 13'%3E%3Cpath fill='%23b22234' d='M0 0h19v13H0z'/%3E%3Cpath stroke='%23fff' d='M0 1.5h19M0 3.5h19M0 5.5h19M0 7.5h19M0 9.5h19M0 11.5h19'/%3E%3Cpath fill='%233c3b6e' d='M0 0h8v7H0z'/%3E%3C/svg%3E"); }
.fineprint { font-size: 12px; color: var(--muted); opacity: .8; margin: 14px 0 0; }
.device .slogan { display: block; margin-top: 6px; font-style: normal; font-size: 13.5px; line-height: 1.4; color: var(--fg); opacity: .8; }

/* Promo video (self-hosted, no autoplay) */
.promo-video{margin:0 0 32px;max-width:960px}
.promo-video video{display:block;width:100%;height:auto;border-radius:12px;background:#000;border:1px solid #2f343b}

/* Business space link (goes to the Foundry listing) */
.unibar .biz { color: #9aa3ad; text-decoration: none; font-size: 13px; padding: 4px 6px; white-space: nowrap; }
.unibar .biz:hover, .unibar .biz:focus-visible { color: #fff; }
@media (max-width: 600px) { .unibar .biz { display: none; } }
.promo-video iframe{display:block;width:100%;height:auto;aspect-ratio:16/9;border:1px solid #2f343b;border-radius:12px;background:#000}
.promo-video figcaption{margin-top:8px;color:var(--muted);font-size:14px}

/* Feedback survey (Netlify Forms) */
.survey { max-width: 720px; display: grid; gap: 18px; padding: 28px; border-radius: 16px; background: linear-gradient(160deg, #1c2128, #15181d); border: 1px solid #2f343b; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.survey fieldset { background: #20252c; }
.survey fieldset { border: 1px solid #2f343b; border-radius: 12px; padding: 14px 18px 16px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.survey legend { padding: 0 6px; font-weight: 600; color: var(--fg); }
.survey label { color: var(--muted); cursor: pointer; }
.survey input[type=radio], .survey input[type=checkbox] { accent-color: var(--accent); }
.survey input[type=text], .survey textarea { width: 100%; box-sizing: border-box; margin-top: 6px; padding: 8px 10px; border-radius: 8px; border: 1px solid #2f343b; background: #2a3038; color: var(--fg); font: inherit; }
.survey .other { display: flex; align-items: center; gap: 8px; flex: 1 1 100%; }
.survey .other input { margin-top: 0; max-width: 280px; }
.survey .area { display: block; }
.survey .opt { margin: 8px 0 -6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.survey .hp { position: absolute; left: -9999px; }
.survey .btn { justify-self: start; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 32px; line-height: 1; color: #4a525c; transition: color .1s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--accent); }
.stars input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Survey call: catalog block, home line, strip under the top bar */
.survey-call { margin-bottom: 56px; }
.portal .feedback-line { margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.portal .feedback-line a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.portal .feedback-line a:hover { color: #fff; }
.survey-strip { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 48px; position: relative; background: var(--accent); color: var(--on-accent); font: 700 17px Archivo, sans-serif; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.35); }
.survey-strip a { color: inherit; text-decoration: none; }
.survey-strip a:hover { text-decoration: underline; }
.survey-strip button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; }
@media (max-width: 600px) { .survey { padding: 16px; } }

/* Out-of-character pages (About, GM, feedback): distinct slate background */
body.ooc { background: radial-gradient(1200px 600px at 80% -10%, rgba(90,120,160,.18), transparent 60%), linear-gradient(180deg, #1a2029 0%, #141920 100%) fixed; }
body.ooc .section { border-top-color: rgba(255,255,255,.08); }

/* Full-width technical coverage map (Modern) */
.coverage.wide { grid-template-columns: 1fr; gap: 20px; }
.coverage.wide svg, .coverage.wide img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid #2f343b; }
.coverage.wide .legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 24px; }
.coverage.wide .map-label { margin: 8px 0 -8px; font: 400 12px Michroma, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Home: hero with a real module phone + illustrated universe cards */
.portal-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.portal .ooc-line { margin: 14px 0 0; font-size: 13px; color: #6f7883; }
.portal .ooc-line a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.portal .ooc-line a:hover { color: #fff; }
.hero-phone { position: relative; width: min(100%, 340px); justify-self: center; }
.hero-phone img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
.quick-replies { position: absolute; left: 20%; right: 17%; top: 44%; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.quick-replies a { padding: 7px 14px; border-radius: 16px 16px 4px 16px; background: var(--accent); color: var(--on-accent); font: 600 14px Archivo, sans-serif; text-decoration: none; box-shadow: 0 4px 14px rgba(63,224,160,.25); transition: transform .15s, box-shadow .15s; }
.quick-replies a:hover, .quick-replies a:focus-visible { transform: translateX(-3px); box-shadow: 0 6px 20px rgba(63,224,160,.45); }
.world { min-height: 300px; }
.world .dev { position: absolute; right: 10px; top: 10px; height: 64%; max-width: 70%; object-fit: contain; object-position: right top; filter: drop-shadow(0 14px 24px rgba(0,0,0,.5)); transition: transform .25s; pointer-events: none; }
.world:hover .dev { transform: scale(1.05) rotate(-2deg); }
.world b, .world span, .world .enter { position: relative; }
.world .enter { margin-top: 12px; font-style: normal; font-weight: 700; font-size: 14px; opacity: .9; }
.world.w-vintage .enter { color: #f4c14a; } .world.w-modern .enter { color: var(--accent); } .world.w-cyberpunk .enter { color: #ff3fb4; }
@media (max-width: 760px) { .portal-hero { grid-template-columns: 1fr; } .hero-phone { width: min(78%, 300px); } }
@media (prefers-reduced-motion: reduce) { .world .dev, .quick-replies a { transition: none; } }

/* Survey grids: one row per topic, options as chips */
.survey .gridq { display: block; }
.survey .gq { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.06); }
.survey .gq:first-of-type { border-top: 0; }
.survey .gq-name { color: var(--fg); font-size: 15px; }
.survey .gq-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.survey .gq-opts label { position: relative; }
.survey .gq-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.survey .gq-opts span { display: inline-block; padding: 5px 10px; border-radius: 999px; border: 1px solid #3a414b; font-size: 13px; color: var(--muted); background: #262b32; white-space: nowrap; transition: background .12s, color .12s, border-color .12s; }
.survey .gq-opts label:hover span { border-color: #5a636f; color: var(--fg); }
.survey .gq-opts input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.survey .gq-opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 860px) { .survey .gq { grid-template-columns: 1fr; } .survey .gq-opts { justify-content: flex-start; } }
