/* Landing page for the public tutorial site. Same navy felt and brass as the table;
   the six Domain colours of the game run along the top edge as the one bit of colour. */
:root{
  --bg:#07101c; --bg-2:#0c1a2e; --panel:#0f1f36; --panel-2:#132845;
  --line:rgba(201,167,92,.28); --line-soft:rgba(201,167,92,.14);
  --brass:#c9a75c; --brass-glow:#efd9a0; --brass-dim:#8f7a48;
  --text-hi:#eef3fb; --text:#c7d1e0; --text-lo:#8e9bb0;
  --fury:#c8412f; --calm:#3aa66b; --mind:#3b7dd8; --body:#d9862c; --chaos:#8a4fd1; --order:#e0c35a;
  --font-display:"Cinzel", Georgia, serif;
  --font-body:"Manrope", system-ui, sans-serif;
  --radius:14px;
}
*{ box-sizing:border-box; }
html{ color-scheme:dark; scroll-behavior:smooth; }
html{ min-height:100%; background:var(--bg); }
body{
  margin:0; background:transparent; /* the .ambient layer paints the ground */
  color:var(--text); font-family:var(--font-body); font-size:16px; line-height:1.6;
  overflow-x:hidden;
  caret-color:transparent; /* a click on text never shows an insertion caret (caret browsing, stray focus) */
}
input, textarea, [contenteditable]{ caret-color:auto; }
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--brass-glow); }
h1,h2,h3{ font-family:var(--font-display); color:var(--brass-glow); text-wrap:balance; margin:0; }

/* ---------- Ambient background: a slow drift of Domain-coloured light over a faint
   hex field, with a few brass gems floating -- felt under the whole site, behind
   everything, never in the way. ---------- */
.ambient{ position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none; background:var(--bg); }
.ambient__hex{
  position:absolute; inset:-10%; opacity:.9;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 54 16v32L28 63 2 48V16z M28 63 54 78v32L28 125 2 110V78z' fill='none' stroke='%23efd9a0' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
  background-size:56px 97px;
  mask-image:radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image:radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
}
.ambient__orb{ position:absolute; width:52vw; height:52vw; max-width:760px; max-height:760px; border-radius:50%; filter:blur(70px); opacity:.6; mix-blend-mode:screen; animation: orb-drift 28s ease-in-out infinite alternate; }
.ambient__orb--fury{ left:-14vw; top:-18vw; background:radial-gradient(circle, rgba(200,65,47,.55), transparent 62%); }
.ambient__orb--mind{ right:-16vw; top:6vw; background:radial-gradient(circle, rgba(59,125,216,.5), transparent 62%); animation-duration:34s; animation-delay:-9s; }
.ambient__orb--chaos{ left:22vw; bottom:-24vw; background:radial-gradient(circle, rgba(138,79,209,.45), transparent 62%); animation-duration:40s; animation-delay:-17s; }
.ambient__orb--calm{ right:8vw; bottom:-20vw; background:radial-gradient(circle, rgba(58,166,107,.35), transparent 62%); animation-duration:31s; animation-delay:-4s; }
@keyframes orb-drift{
  0%   { transform:translate(0, 0) scale(1); }
  50%  { transform:translate(6vw, -4vw) scale(1.08); }
  100% { transform:translate(-4vw, 5vw) scale(.96); }
}
.ambient__gems span{
  position:absolute; left:var(--x); top:var(--y); width:10px; height:10px; transform:rotate(45deg) scale(var(--s));
  border:1px solid rgba(239,217,160,.55); background:rgba(201,167,92,.25); box-shadow:0 0 14px 2px rgba(239,217,160,.25);
  animation: gem-float 18s ease-in-out infinite; animation-delay:var(--d); opacity:.7;
}
@keyframes gem-float{
  0%   { transform:translateY(0) rotate(45deg) scale(var(--s)); opacity:.35; }
  50%  { transform:translateY(-26px) rotate(45deg) scale(var(--s)); opacity:.8; }
  100% { transform:translateY(0) rotate(45deg) scale(var(--s)); opacity:.35; }
}
.ambient__vignette{ position:absolute; inset:0; background:radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(4,9,18,.75) 100%); }
@media (prefers-reduced-motion: reduce){ .ambient__orb, .ambient__gems span{ animation:none; } }

/* The six Domains, in a thin band across the top of the page. */

/* ---------- Top bar: the app name, the site tabs, the way in ---------- */
.topbar{ position:sticky; top:0; z-index:50; background:rgba(7,16,28,.82); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-bottom:1px solid var(--line-soft); }
.topbar__inner{ width:min(1180px, calc(100vw - 32px)); margin:0 auto; min-height:58px; display:flex; align-items:center; gap:24px; }
.brand{ display:inline-flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:600; font-size:18px; letter-spacing:.06em; color:var(--brass-glow); text-decoration:none; white-space:nowrap; }
.brand__gem{ width:12px; height:12px; transform:rotate(45deg); border:1.5px solid var(--brass); background:rgba(201,167,92,.25); box-shadow:0 0 10px rgba(239,217,160,.35); }
.tabs{ display:flex; gap:4px; margin-left:8px; }
.tabs a{ padding:8px 14px; border-radius:8px; color:var(--text); text-decoration:none; font-size:14px; font-weight:600; letter-spacing:.02em; border:1px solid transparent; }
.tabs a:hover{ color:var(--text-hi); background:rgba(201,167,92,.08); }
.tabs a.is-active{ color:var(--brass-glow); border-color:var(--line); background:rgba(201,167,92,.12); }
.topbar__account{ margin-left:auto; }
.topbar__account + .topbar__cta{ margin-left:0; }
.account__chip{ display:inline-flex; align-items:center; gap:8px; font-size:13px; }
.account__avatar{ width:26px; height:26px; border-radius:50%; border:1px solid var(--line); object-fit:cover; display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:var(--brass-glow); background:var(--panel); }
.account__name{ color:var(--text-hi); font-weight:600; max-width:14ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account__btn{ appearance:none; cursor:pointer; padding:6px 12px; border-radius:8px; border:1px solid var(--line); background:rgba(201,167,92,.08); color:var(--text); font:inherit; font-size:13px; font-weight:600; }
.account__btn:hover{ background:rgba(201,167,92,.16); color:var(--text-hi); }
.account__btn--danger{ border-color:rgba(200,65,47,.6); color:#ff9a86; }
.account__menu{ position:relative; }
.account__list{ position:absolute; right:0; top:calc(100% + 8px); min-width:240px; padding:8px; border-radius:12px; border:1px solid var(--line); background:var(--panel); box-shadow:0 20px 50px rgba(0,0,0,.6); display:flex; flex-direction:column; gap:6px; z-index:60; }
.account__provider{ display:block; padding:10px 12px; border-radius:8px; text-decoration:none; color:var(--text-hi); font-weight:600; font-size:14px; border:1px solid var(--line-soft); background:rgba(255,255,255,.03); }
.account__provider:hover{ border-color:var(--line); background:rgba(201,167,92,.1); }
.account__provider--discord{ border-left:3px solid #5865F2; }
.account__provider--google{ border-left:3px solid #4285F4; }
.account__note{ font-size:11.5px; color:var(--text-lo); padding:2px 4px 0; }
.account__list[hidden]{ display:none; }
.topbar__cta{ margin-left:auto; padding:8px 16px; border-radius:8px; border:1px solid var(--brass); color:var(--brass-glow); text-decoration:none; font-family:var(--font-display); font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; background:linear-gradient(180deg, rgba(201,167,92,.28), rgba(201,167,92,.1)); white-space:nowrap; }
.topbar__cta:hover{ background:linear-gradient(180deg, rgba(201,167,92,.4), rgba(201,167,92,.18)); }
@media (max-width: 640px){
  .topbar__inner{ flex-wrap:wrap; gap:8px 16px; padding-block:10px; }
  .tabs{ order:3; width:100%; margin-left:0; overflow-x:auto; }
  .topbar__cta{ margin-left:auto; }
}

/* A text page (About, Legal, Feedback): one column, no hero. */
.page--narrow{ padding-block:40px 32px; gap:40px; }
.section--page{ width:min(760px, 100%); margin:0 auto; }

/* ---------- The Rules page: a sticky contents column beside a long article ---------- */
.page.page--rules{ display:grid; grid-template-columns:240px minmax(0, 1fr); gap:48px; align-items:start; padding-block:40px 32px; }
.toc{ position:sticky; top:74px; display:flex; flex-direction:column; gap:10px; }
.toc__title{ font-family:var(--font-display); font-size:12px; letter-spacing:.2em; text-transform:uppercase; color:var(--brass); }
.toc nav{ display:flex; flex-direction:column; }
.toc nav a{ padding:6px 10px; border-left:2px solid var(--line-soft); color:var(--text); text-decoration:none; font-size:14px; }
.toc nav a:hover{ color:var(--brass-glow); border-left-color:var(--brass); background:rgba(201,167,92,.06); }
.toc__note{ margin:6px 0 0; font-size:12px; color:var(--text-lo); }
.rules{ max-width:72ch; }
.rules__head{ margin-bottom:36px; }
.rules__head h1{ font-size:clamp(28px, 3.6vw, 40px); margin-top:14px; }
.rules__head .lede{ font-size:16px; }
.rules__section{ padding:26px 0 30px; border-top:1px solid var(--line-soft); scroll-margin-top:80px; }
.rules__section h2{ font-size:22px; letter-spacing:.03em; margin-bottom:12px; }
.rules__section p, .rules__section li{ max-width:70ch; }
.rules__section p{ margin:0 0 12px; }
.rules__section ul, .rules__section ol{ margin:0 0 12px; padding-left:22px; display:flex; flex-direction:column; gap:6px; }
.rules__section b{ color:var(--text-hi); }
.kw{ border-collapse:collapse; width:100%; font-size:14.5px; }
.kw th, .kw td{ text-align:left; vertical-align:top; padding:8px 10px; border-bottom:1px solid var(--line-soft); }
.kw th{ white-space:nowrap; font-family:var(--font-display); font-size:13px; letter-spacing:.04em; color:var(--brass-glow); width:1%; }
/* Figures on the Rules page: a diagram or screenshot with a caption, card strips, keyword cards. */
.fig{ margin:14px 0 18px; }
.diagram{ display:block; width:100%; height:auto; background:rgba(12,26,46,.6); border:1px solid var(--line-soft); border-radius:12px; padding:8px; }
.fig figcaption{ margin-top:10px; font-size:13.5px; color:var(--text-lo); }
.fig figcaption b{ color:var(--text-hi); }
.fig__shot{ display:block; margin:14px 0 18px; }
.fig-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:14px 0 18px; }
.fig-row .fig__shot{ margin:0; }
.rules__small{ font-size:14px; color:var(--text-lo); }
.cards3{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; margin:12px 0 18px; }
.cards3__item{ display:flex; flex-direction:column; gap:8px; padding:12px; border:1px solid var(--line-soft); border-radius:12px; background:var(--panel); font-size:13.5px; }
.cards3__item img{ width:100%; border-radius:8px; }
.kwgrid{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:12px; margin:12px 0 18px; }
.kw-card{ display:flex; flex-direction:column; gap:6px; }
.kw-card img{ width:100%; border-radius:8px; border:1px solid var(--line-soft); }
.kw-card b{ display:block; font-family:var(--font-display); font-size:12.5px; color:var(--brass-glow); letter-spacing:.03em; }
.kw-card span{ display:block; font-size:12.5px; color:var(--text-lo); line-height:1.4; }
.defs{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; margin:12px 0 18px; }
.defs > div{ padding:10px 12px; border:1px solid var(--line-soft); border-radius:10px; background:var(--panel); }
.defs b{ display:block; font-family:var(--font-display); font-size:12.5px; color:var(--brass-glow); }
.defs span{ display:block; font-size:12.5px; color:var(--text); line-height:1.4; }
@media (max-width: 860px){
  .page.page--rules{ grid-template-columns:1fr; gap:24px; }
  .kwgrid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .cards3, .defs, .fig-row{ grid-template-columns:1fr; }
  .toc{ position:static; }
  .toc nav{ flex-direction:row; flex-wrap:wrap; gap:4px; }
  .toc nav a{ border-left:0; border:1px solid var(--line-soft); border-radius:6px; padding:5px 9px; font-size:13px; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative; overflow:hidden;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(59,125,216,.22), transparent 70%),
    radial-gradient(50% 60% at 90% 30%, rgba(200,65,47,.16), transparent 70%),
    linear-gradient(180deg, rgba(16,35,64,.85), rgba(7,16,28,.35) 90%);
  border-bottom:1px solid var(--line-soft);
}
.hero::before{
  /* Faint card-grid texture, like the felt under a playmat. */
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.35;
  background-image:linear-gradient(rgba(239,217,160,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(239,217,160,.05) 1px, transparent 1px);
  background-size:48px 48px;
  mask-image:radial-gradient(80% 80% at 50% 40%, #000, transparent);
  -webkit-mask-image:radial-gradient(80% 80% at 50% 40%, #000, transparent);
}
.hero__inner{
  position:relative; width:min(1180px, calc(100vw - 32px)); margin:0 auto;
  padding-block:64px 56px;
  display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:48px; align-items:center;
}
.eyebrow{ display:inline-flex; align-items:center; gap:10px; font-family:var(--font-display); font-size:12px; letter-spacing:.3em; text-transform:uppercase; color:var(--brass); }
.eyebrow__gem{ width:10px; height:10px; transform:rotate(45deg); border:1.5px solid var(--brass); background:rgba(201,167,92,.2); }
h1{ margin-top:16px; font-weight:600; font-size:clamp(34px, 4.6vw, 56px); line-height:1.08; letter-spacing:.02em; }
h1 em{ font-style:normal; color:var(--text-hi); text-shadow:0 0 30px rgba(239,217,160,.35); }
.lede{ margin:18px 0 0; max-width:48ch; font-size:17px; color:var(--text); }
.hero__actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.cta{
  display:inline-block; padding:14px 30px; border-radius:10px;
  background:linear-gradient(180deg, rgba(201,167,92,.32), rgba(201,167,92,.12));
  border:1px solid var(--brass); color:var(--brass-glow); text-decoration:none;
  font-family:var(--font-display); font-weight:600; font-size:15px; letter-spacing:.08em; text-transform:uppercase;
  box-shadow:0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(239,217,160,.12), inset 0 1px 0 rgba(255,255,255,.12);
  transition:transform .15s, box-shadow .15s, background .15s;
}
.cta:hover{ transform:translateY(-2px); background:linear-gradient(180deg, rgba(201,167,92,.44), rgba(201,167,92,.2)); box-shadow:0 14px 34px rgba(0,0,0,.5), 0 0 24px rgba(239,217,160,.18); }
.cta:focus-visible{ outline:2px solid var(--brass-glow); outline-offset:3px; }
.cta--ghost{ background:transparent; border-color:var(--line); color:var(--text-hi); box-shadow:none; }
.cta--ghost:hover{ background:rgba(201,167,92,.1); box-shadow:none; }
.hero__facts{ list-style:none; margin:30px 0 0; padding:0; display:flex; gap:28px; flex-wrap:wrap; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--text-lo); }
.hero__facts b{ display:block; font-family:var(--font-display); font-size:26px; letter-spacing:0; color:var(--brass-glow); font-variant-numeric:tabular-nums; }
.interest{ display:flex; flex-direction:column; gap:8px; }
.thumb{ display:flex; align-items:center; gap:12px; }
.thumb__btn{ position:relative; appearance:none; cursor:pointer; width:54px; height:54px; padding:0; border-radius:50%; border:1.5px solid var(--brass); color:var(--brass-glow); font:inherit;
  background:radial-gradient(circle at 35% 30%, rgba(239,217,160,.22), rgba(201,167,92,.08) 60%, rgba(0,0,0,.25));
  box-shadow:0 0 0 4px rgba(201,167,92,.08), inset 0 1px 0 rgba(255,255,255,.12), 0 6px 18px rgba(0,0,0,.35);
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease; }
.thumb__btn:hover{ transform:translateY(-2px) scale(1.05); box-shadow:0 0 0 6px rgba(201,167,92,.14), 0 0 22px rgba(239,217,160,.35), inset 0 1px 0 rgba(255,255,255,.15), 0 8px 22px rgba(0,0,0,.4); }
.thumb__btn:focus-visible{ outline:2px solid var(--brass-glow); outline-offset:3px; }
.thumb__icon{ width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round; transition:fill .25s ease, transform .2s ease; transform:translateY(-1px); }
.thumb__btn.is-done{ cursor:default; border-color:var(--brass-glow); color:#1a1408; background:radial-gradient(circle at 35% 30%, #f7e6b4, var(--brass) 55%, #a8863f); box-shadow:0 0 0 5px rgba(201,167,92,.18), 0 0 26px rgba(239,217,160,.45), inset 0 1px 0 rgba(255,255,255,.35), 0 6px 18px rgba(0,0,0,.35); }
.thumb__btn.is-done:hover{ transform:none; }
.thumb__btn.is-done .thumb__icon{ fill:currentColor; stroke:none; }
.thumb__btn.is-popping{ animation:thumb-pop .8s cubic-bezier(.2,1.6,.4,1); }
.thumb__btn.is-popping .thumb__icon{ animation:thumb-tilt .8s ease; }
@keyframes thumb-pop{ 0%{ transform:scale(.85); } 40%{ transform:scale(1.22); } 100%{ transform:scale(1); } }
@keyframes thumb-tilt{ 0%{ transform:translateY(2px) rotate(-18deg); } 45%{ transform:translateY(-4px) rotate(8deg); } 100%{ transform:translateY(-1px) rotate(0); } }
.thumb__burst{ position:absolute; inset:0; pointer-events:none; }
.thumb__burst i{ position:absolute; left:50%; top:50%; width:6px; height:6px; margin:-3px; border-radius:1px; background:var(--brass-glow); transform:rotate(45deg) scale(0); opacity:0; box-shadow:0 0 6px rgba(239,217,160,.8); }
.thumb__btn.is-popping .thumb__burst i{ animation:thumb-spark .75s ease-out forwards; }
.thumb__burst i:nth-child(1){ --a:0deg; } .thumb__burst i:nth-child(2){ --a:45deg; } .thumb__burst i:nth-child(3){ --a:90deg; } .thumb__burst i:nth-child(4){ --a:135deg; }
.thumb__burst i:nth-child(5){ --a:180deg; } .thumb__burst i:nth-child(6){ --a:225deg; } .thumb__burst i:nth-child(7){ --a:270deg; } .thumb__burst i:nth-child(8){ --a:315deg; }
@keyframes thumb-spark{ 0%{ opacity:1; transform:rotate(var(--a)) translateY(-14px) rotate(45deg) scale(.4); } 70%{ opacity:1; } 100%{ opacity:0; transform:rotate(var(--a)) translateY(-44px) rotate(45deg) scale(1); } }
.thumb__meta{ display:flex; flex-direction:column; line-height:1.15; }
.thumb__meta b.is-rolling{ animation:count-roll .6s ease; }
@keyframes count-roll{ 0%{ transform:translateY(0); opacity:1; } 35%{ transform:translateY(-10px); opacity:0; } 36%{ transform:translateY(10px); } 100%{ transform:translateY(0); opacity:1; } }
.thumb__hint{ font-size:11.5px; letter-spacing:.02em; text-transform:none; color:var(--text-lo); max-width:24ch; line-height:1.35; }
@media (prefers-reduced-motion: reduce){ .thumb__btn, .thumb__btn.is-popping, .thumb__btn.is-popping .thumb__icon, .thumb__btn.is-popping .thumb__burst i, .thumb__meta b.is-rolling{ animation:none; transition:none; } }

.hero__shot{ margin:0; min-width:0; }
.hero__shot .shot{ display:block; border-radius:var(--radius); }
.hero__shot figcaption{ margin-top:12px; font-size:13px; color:var(--text-lo); text-align:center; }

/* A screenshot, framed like a card: brass edge, inner bevel, dark shadow. */
.shot{
  position:relative; display:block; overflow:hidden; border-radius:12px;
  border:1px solid var(--line); background:var(--panel);
  box-shadow:0 24px 60px rgba(0,0,0,.55), 0 0 0 4px rgba(15,31,54,.9), 0 0 0 5px rgba(201,167,92,.25);
  transition:transform .2s, box-shadow .2s;
}
.shot img{ width:100%; }
.shot::after{ content:""; position:absolute; inset:0; pointer-events:none; box-shadow:inset 0 0 0 1px rgba(255,255,255,.06), inset 0 40px 60px -40px rgba(255,255,255,.08); border-radius:inherit; }
a.shot{ cursor:zoom-in; }
a.shot:hover{ transform:translateY(-3px); box-shadow:0 30px 70px rgba(0,0,0,.6), 0 0 0 4px rgba(15,31,54,.9), 0 0 0 5px rgba(239,217,160,.5), 0 0 40px rgba(239,217,160,.12); }
a.shot:focus-visible{ outline:2px solid var(--brass-glow); outline-offset:4px; }

/* ---------- Page body ---------- */
.page{ width:min(1180px, calc(100vw - 32px)); margin:0 auto; padding-block:56px 40px; display:flex; flex-direction:column; gap:72px; }
.section__head{ text-align:center; margin-bottom:32px; }
.section__head p{ margin:8px 0 0; color:var(--text-lo); }
.section h2{ font-weight:600; font-size:clamp(24px, 3vw, 32px); letter-spacing:.04em; }
.section h3{ font-weight:600; font-size:20px; letter-spacing:.02em; }
.kicker{ font-size:12px; letter-spacing:.24em; text-transform:uppercase; color:var(--brass); margin-bottom:10px; }

/* What you'll learn: six cards, each with its own shot. The numbers are real order:
   the tutorial teaches these in this sequence. */
.learn-grid{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:22px; }
.learn-card{
  display:flex; flex-direction:column; border-radius:var(--radius); overflow:hidden;
  background:linear-gradient(180deg, var(--panel-2), var(--panel)); border:1px solid var(--line-soft);
  transition:border-color .2s, transform .2s;
}
.learn-card:hover{ border-color:var(--line); transform:translateY(-3px); }
.learn-card__shot{ border-radius:0; border:0; box-shadow:none; aspect-ratio:5/3; }
.learn-card__shot img{ width:100%; height:100%; object-fit:cover; object-position:center 30%; }
.learn-card__shot:hover{ transform:none; box-shadow:none; }
.learn-card__body{ padding:18px 20px 22px; display:flex; flex-direction:column; gap:6px; }
.learn-card__n{ font-family:var(--font-display); font-size:12px; letter-spacing:.2em; color:var(--brass-dim); }
.learn-card p{ margin:0; font-size:14.5px; color:var(--text); }

/* Feature rows: shot on one side, copy on the other, alternating. */
.features{ display:flex; flex-direction:column; gap:56px; }
.feature{ display:grid; grid-template-columns:minmax(0, 7fr) minmax(0, 5fr); gap:40px; align-items:center; }
.feature--flip .feature__shot{ order:2; }
.feature--flip .feature__copy{ order:1; }
.feature__copy p{ margin:12px 0 0; max-width:46ch; }
.feature__copy h3{ font-size:clamp(20px, 2.2vw, 26px); }

/* Text sections: About / Legal / Feedback, in a narrower measure. */
.section--about, .section--notice, #feedback{ width:min(760px, 100%); margin:0 auto; padding:26px 30px; border:1px solid var(--line-soft); border-radius:var(--radius); background:rgba(15,31,54,.7); }
.section--about h2, .section--notice h2, #feedback h2{ font-size:20px; margin-bottom:12px; }
.section--about p, .section--notice p, #feedback p{ margin:0 0 10px; max-width:66ch; }
.section--about p:last-child, .section--notice p:last-child, #feedback p:last-child{ margin-bottom:0; }
.byline{ margin:-6px 0 14px !important; font-size:14px; color:var(--text-lo); }
.handle{ font-family:ui-monospace, "Cascadia Mono", Consolas, monospace; font-size:.95em; color:var(--brass-glow); padding:1px 7px; border:1px solid var(--line); border-radius:6px; background:rgba(201,167,92,.08); white-space:nowrap; user-select:all; }
.links{ display:flex; flex-wrap:wrap; gap:10px; }
.links a{ display:inline-block; padding:7px 14px; border:1px solid var(--line); border-radius:8px; background:rgba(201,167,92,.08); color:var(--brass-glow); text-decoration:none; font-weight:600; font-size:14px; }
.links a:hover{ background:rgba(201,167,92,.18); }
.section--notice{ border-color:var(--line); background:linear-gradient(180deg, rgba(19,40,69,.85), rgba(15,31,54,.85)); }
.notice{ font-size:15px; color:var(--text-hi); }
.notice b{ color:var(--brass-glow); }

.section--cta{ text-align:center; display:flex; flex-direction:column; align-items:center; gap:18px; padding:48px 20px; border-radius:var(--radius); border:1px solid var(--line-soft); background:radial-gradient(60% 100% at 50% 100%, rgba(201,167,92,.14), transparent), var(--panel); }
.section--cta h2{ font-size:clamp(22px, 3vw, 30px); }
.hint{ margin:0; font-size:13px; color:var(--text-lo); }
.foot{ text-align:center; font-size:13px; color:var(--text-lo); padding-top:8px; }

/* ---------- Lightbox ---------- */
.lightbox{ position:fixed; inset:0; z-index:100; background:rgba(4,9,18,.92); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:24px; cursor:zoom-out; }
.lightbox[hidden]{ display:none; }
.lightbox__img{ max-width:min(1400px, 100%); max-height:82vh; width:auto; border-radius:10px; border:1px solid var(--line); box-shadow:0 30px 80px rgba(0,0,0,.7); }
.lightbox__caption{ max-width:70ch; text-align:center; font-size:14px; color:var(--text); }
.lightbox__close{ position:absolute; top:14px; right:18px; width:44px; height:44px; border-radius:50%; border:1px solid var(--line); background:var(--panel); color:var(--brass-glow); font-size:26px; line-height:1; cursor:pointer; }
.lightbox__close:focus-visible{ outline:2px solid var(--brass-glow); }

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .hero__inner{ grid-template-columns:1fr; gap:36px; padding-block:48px 40px; }
  .learn-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .feature, .feature--flip{ grid-template-columns:1fr; gap:20px; }
  .feature--flip .feature__shot{ order:0; }
  .feature--flip .feature__copy{ order:0; }
}
@media (max-width: 560px){
  .learn-grid{ grid-template-columns:1fr; }
  .page{ gap:52px; }
  .section--about, .section--notice, #feedback{ padding:20px 16px; }
  .hero__facts{ gap:20px; }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .cta, .shot, .learn-card{ transition:none; }
  a.shot:hover, .learn-card:hover, .cta:hover{ transform:none; }
}
