/* MoonTech Studios — dark editorial */
:root {
  --bg: #0a0b0f;
  --bg-raised: #10121a;
  --surface: #151822;
  --line: #262a36;
  --text: #f3f4f6;
  --dim: #a2a8b5;
  --faint: #6c7383;
  --blue: #4c8eff;
  --blue-deep: #2f6be0;
  --pink: #c4477f;
  --green: #73b667;
  --amber: #d6a23a;
  --radius: 14px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--blue); margin-bottom: 18px; display: block;
}
.display { font-family: var(--serif); font-size: clamp(46px, 8vw, 104px); line-height: .98; letter-spacing: -.02em; }
.h2 { font-family: var(--serif); font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -.015em; }
.h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--dim); max-width: 44ch; line-height: 1.5; }
.dim { color: var(--dim); }
.small { font-size: 14px; }
em.serif { font-family: var(--serif); font-style: italic; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 15, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { display: block; width: 34px; height: 28px; object-fit: contain; flex: none; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a { text-decoration: none; font-size: 15px; color: var(--dim); padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.06); }
.nav ul a.cta { background: var(--blue); color: #fff; font-weight: 600; }
.nav ul a.cta:hover { background: var(--blue-deep); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; gap: 2px; }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 12px 14px; font-size: 17px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 14px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s, background .15s, border-color .15s;
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.big { font-size: 18px; padding: 18px 30px; }
.btn.primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn.ghost { border-color: #3a3f4d; color: var(--text); background: transparent; }
.btn.ghost:hover { border-color: var(--text); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- placeholders (swap for real photos) ---------- */
.ph {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #1a1e2a, #0e1017);
  border: 1px dashed #3a4052;
  display: flex; align-items: flex-end; min-height: 220px;
  aspect-ratio: var(--ratio, 4 / 3);
}
.ph > div { padding: 22px; max-width: 46ch; }
.ph .tag, .badge {
  display: inline-block; font-size: 11px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(214,162,58,.5); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px;
}
.badge { vertical-align: middle; margin-bottom: 0; }
.badge.free { color: var(--green); border-color: rgba(62,207,142,.5); }
.ph strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.ph span.hint { color: var(--dim); font-size: 14px; line-height: 1.45; display: block; }
.ph .icon { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; opacity: .35; }
.ph.tall { --ratio: 4 / 5; }
.ph.wide { --ratio: 16 / 9; }
.ph.square { --ratio: 1 / 1; }
.ph.cinema { --ratio: 21 / 9; }
.ph.phone { --ratio: 9 / 19.5; }

/* A real photo, filling the same shaped box a .ph placeholder would -
   see photo() in build.py, the drop-in replacement for ph(). */
.photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: var(--ratio, 4 / 3); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.tall { --ratio: 4 / 5; }
.photo.wide { --ratio: 16 / 9; }
.photo.square { --ratio: 1 / 1; }
.photo.cinema { --ratio: 21 / 9; }
.photo.phone { --ratio: 9 / 19.5; }
.photo.app { --ratio: 6 / 5; }
/* An image that carries its own rounded window shape and blue edge line (a transparent PNG of the app
   window): no box, no clipping, so the line isn't shaved off at the corners. */
.photo.bare { overflow: visible; border-radius: 0; aspect-ratio: auto; background: none; }
.photo.bare img { height: auto; object-fit: contain; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .5)); }
.photo.small { max-width: 220px; margin: 0 auto; }
.photo.beta-phone { max-width: 320px; margin: 0 auto; }
.photo.contain { background: var(--bg-raised); }
.photo.contain img { object-fit: contain; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 90px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(76,142,255,.20), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: end; position: relative; }
.hero .lede { margin-top: 28px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- credits strip ---------- */
.credits { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.credits .wrap { padding-top: 26px; padding-bottom: 26px; display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.credits h2 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 600; font-family: var(--sans); }
.credits ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 34px; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; color: var(--text); }
.credits .more { font-family: var(--sans); font-size: 15px; color: var(--dim); align-self: center; }
@media (max-width: 760px) { .credits .wrap { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 80px); margin-bottom: clamp(36px, 5vw, 64px); align-items: end; }
.section-head p { margin: 0; color: var(--dim); font-size: 19px; max-width: 46ch; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.card p { color: var(--dim); margin: 0; font-size: 16px; }
.card .num { font-family: var(--serif); font-size: 42px; color: var(--faint); line-height: 1; }
.card.link { text-decoration: none; transition: border-color .15s, transform .15s; }
.card.link:hover { border-color: #4a5068; transform: translateY(-3px); }
.tile .ph { border-radius: 12px; }
.tile h3 { margin: 18px 0 6px; }
.tile p { color: var(--dim); font-size: 16px; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--dim); font-size: 16px; }
.checks li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); margin-top: 9px; justify-self: center; }
.checks strong { color: var(--text); font-weight: 600; }

/* ---------- title list (games) ---------- */
.titles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.titles span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; color: var(--text); background: var(--bg-raised); }

/* ---------- timeline ---------- */
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.role .when { color: var(--faint); font-size: 14px; letter-spacing: .04em; padding-top: 5px; }
.role h3 { font-size: 22px; font-weight: 600; }
.role .org { color: var(--blue); font-size: 15px; margin: 4px 0 12px; }
.role p, .role li { color: var(--dim); font-size: 16px; }
.role ul { margin: 10px 0 0; padding-left: 18px; }
.role-photos { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.role-photos .photo { width: 160px; flex: none; }
@media (max-width: 700px) { .role { grid-template-columns: 1fr; gap: 6px; } .role-photos .photo { width: 130px; } }

/* ---------- GAGE band ---------- */
.gage-band { background: linear-gradient(180deg, #0c0f18, #090a0f); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.gage-band::after { content: ""; position: absolute; left: -10%; bottom: -40%; width: 60vw; height: 60vw; max-width: 800px; max-height: 800px; background: radial-gradient(closest-side, rgba(196,71,127,.14), transparent 70%); pointer-events: none; }
.gage-band .wrap { position: relative; z-index: 1; }
.wordmark { height: clamp(44px, 6vw, 72px); width: auto; margin-bottom: 28px; }
.bars { display: flex; gap: 6px; margin-bottom: 30px; }
.bars i { width: 40px; height: 6px; border-radius: 3px; }
.bars i:nth-child(1) { background: var(--blue); } .bars i:nth-child(2) { background: var(--pink); }
.bars i:nth-child(3) { background: var(--amber); } .bars i:nth-child(4) { background: var(--green); }

/* ---------- buy ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 980px; }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 34px; display: flex; flex-direction: column; gap: 6px; }
.plan.featured { border-color: var(--blue); background: linear-gradient(180deg, #131a2b, var(--surface)); position: relative; }
.plan .badge { position: absolute; top: -13px; left: 34px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-family: var(--serif); font-size: 44px; line-height: 1; }
.plan .price { font-size: 40px; font-weight: 600; letter-spacing: -.02em; margin: 14px 0 4px; }
.plan .price small { font-size: 15px; color: var(--dim); font-weight: 400; letter-spacing: 0; }
.plan .note { color: var(--dim); font-size: 15px; margin-bottom: 8px; }
.placeholder-note { color: var(--amber); font-size: 13px; letter-spacing: .03em; }

/* ---------- forms ---------- */
form.notify { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
form.notify input[type=email], .field input, .field textarea, .field select {
  flex: 1 1 240px; background: var(--bg-raised); border: 1px solid #333849; color: var(--text); border-radius: 12px; padding: 14px 16px; font: inherit; font-size: 16px;
}
form.notify input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; color: var(--dim); }
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { margin: 10px 0 0; font-size: 13.5px; color: var(--dim); }
.form-note a { color: var(--blue); }
.form-msg { margin-top: 12px; font-size: 15px; min-height: 1.4em; }

/* Long-form text (the Privacy page). */
.prose { max-width: 760px; }
.prose h1 { margin: 10px 0 18px; }
.prose .meta { color: var(--dim); font-size: 15px; margin: 22px 0 0; }
.prose h2 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 34px); font-weight: 400; line-height: 1.15; margin: 54px 0 12px; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 30px 0 6px; }
.prose p, .prose li { color: var(--dim); font-size: 17px; line-height: 1.65; }
.prose p { margin: 0 0 14px; max-width: none; }
.prose ul, .prose ol { margin: 6px 0 16px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text, #f2f4f8); font-weight: 600; }
.prose a { color: var(--blue); }
.form-msg.ok { color: var(--green); } .form-msg.err { color: #ff8a8a; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-raised); }
/* The brand column, then one equal column per link group - however many there are (4 on the main site, 3 on the Style Audio copy). */
.foot { display: grid; grid-template-columns: 1.4fr; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 32px; }
.foot h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--dim); font-size: 15px; }
.foot a:hover { color: var(--text); }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 960px) { .foot { grid-template-columns: 1fr 1fr; grid-auto-flow: row; } }

/* ---------- page header (inner pages) ---------- */
.page-head { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(28px, 4vw, 50px); }
.page-head .lede { margin-top: 24px; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Buy page: Lite / Pro / trial comparison table */
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare th, .compare td { padding: 14px 20px; text-align: center; font-size: 16px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); background: var(--bg-raised); }
.compare tbody th { text-align: left; font-weight: 500; color: var(--text); }
.compare tbody th small { display: block; margin-top: 3px; font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--dim); }
.compare tbody tr.group th { padding: 12px 20px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); background: var(--bg-raised); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td { color: var(--dim); }
.compare td.yes { color: var(--blue); font-weight: 700; }
.compare td.no { color: #4a5068; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .compare table { min-width: 0; }
  .compare th, .compare td { padding: 12px 8px; font-size: 14px; }
  .compare thead th { font-size: 11px; letter-spacing: .04em; }
  .compare tbody th small { font-size: 12px; }
  .compare tbody tr.group th { padding: 10px 8px; }
}

/* GAGE page Listen section: five demo cards, three on top and the last two centred under them (Kyle, 2026-10-17) */
.listen-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.listen-grid > .card { flex: 0 0 calc((100% - 44px) / 3); }
@media (max-width: 900px) { .listen-grid > .card { flex-basis: 100%; } }

/* ---- MTGT page (moontechstudios.com/mtgt; Kyle, 2026-10-17) ---- */
/* An iPad in landscape around the video and every screen: dark bezel, rounded corners, camera dot on the top edge. */
.ipad { position: relative; background: #1a1c21; padding: clamp(10px, 2.4%, 28px); border-radius: clamp(22px, 4.4%, 52px);
  box-shadow: inset 0 0 0 2px #34373f, inset 0 0 0 5px #0d0e11, 0 30px 70px rgba(0, 0, 0, .55); }
.ipad::before { content: ""; position: absolute; top: calc(clamp(10px, 2.4%, 28px) / 2 - 3px); left: 50%; width: 6px; height: 6px;
  margin-left: -3px; border-radius: 50%; background: #07080a; box-shadow: 0 0 0 1px #2b2e35; }
.ipad > video, .ipad img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: clamp(8px, 2%, 24px); background: #000; }

/* The "In the game" turnstile: one big screen at a time, arrows, numbered dots, swipe; click a screen to zoom. */
.carousel { position: relative; }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; gap: 0; }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; padding: 0 clamp(0px, 6vw, 90px); box-sizing: border-box; }
.car-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.car-cap { text-align: center; max-width: 60ch; margin: 34px auto 0; }
.car-num { font-family: "Cinzel", serif; font-size: 13px; letter-spacing: .3em; color: #c9a45c; }
.car-title { font-family: "Cinzel", serif; font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; margin: 10px 0 14px;
  color: #ead9b0; text-shadow: 0 2px 0 #3b2a14, 0 0 28px rgba(201, 164, 92, .35); letter-spacing: .02em; }
.car-rule { display: block; width: 180px; height: 3px; margin: 0 auto 16px; border-radius: 3px; background: #c9a45c;
  box-shadow: 0 5px 0 -1px #6d8a4f; }
.car-text { font-size: clamp(17px, 1.7vw, 20px); color: #e6e2d8; line-height: 1.55; margin: 0; }
.car-btn { position: absolute; top: 38%; width: 52px; height: 52px; border-radius: 50%; border: 1px solid #6b5631;
  background: rgba(20, 16, 12, .85); color: #ead9b0; font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.car-btn:hover { background: #3b2a14; }
.car-prev { left: 0; } .car-next { right: 0; }
.car-dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.car-dots button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #6b5631; background: transparent; color: #c9a45c;
  font-family: "Cinzel", serif; font-size: 13px; cursor: pointer; }
.car-dots button[aria-current="true"] { background: #c9a45c; color: #1a1209; }
@media (max-width: 700px) { .car-btn { display: none; } .car-slide { padding: 0; } }

/* Zoom view: the screen fills the window; click or tap zooms in where you point, scroll or pinch zooms more, drag looks around. */
.zoom-view { position: fixed; inset: 0; z-index: 200; background: rgba(5, 6, 8, .96); display: none; touch-action: none; }
.zoom-view.open { display: block; }
.zoom-view img { position: absolute; left: 50%; top: 50%; max-width: 94vw; max-height: 86vh; transform-origin: 0 0; cursor: zoom-in;
  user-select: none; -webkit-user-drag: none; }
.zoom-view.zoomed img { cursor: grab; }
.zoom-bar { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 12px; z-index: 3; }
.zoom-bar button, .zoom-close { border: 1px solid #6b5631; background: rgba(20, 16, 12, .9); color: #ead9b0; border-radius: 999px;
  padding: 10px 18px; font-size: 15px; cursor: pointer; }
.zoom-close { position: absolute; top: 16px; right: 16px; z-index: 3; }
.zoom-hint { position: absolute; top: 22px; left: 0; right: 0; text-align: center; color: #a89c84; font-size: 14px; pointer-events: none; }
/* The MTGT page's opening is centred over the title screen (Kyle: the left-aligned version was "too left heavy"). */
.mtgt-head { text-align: center; }
.mtgt-head .lede { margin-left: auto; margin-right: auto; max-width: 52ch; }

/* ---- MTGT look (Kyle, 2026-10-17: "the MTGT look, not the MoonTech Studios look"), on /mtgt only ----
   Everything below applies only on a page that contains .mtgt-page. Colours and fonts are the game's own
   (MTGT addons/mtgt/ui: panel #241510, cream #e2d4b4, gold #c8a870, bronze #8a4a24, plum #6e2a3a, forest #3d5a35;
   Cinzel Decorative and Cinzel for headings, Alegreya Sans for text). The panel frame is the game's own frame_vines.svg (aged dense forest vines), rendered
   to PNG at twice size (no SVG on the site) and sliced like the game's nine-patch: 80-unit corners, edges repeated. */
body:has(.mtgt-page) {
  --bg: #0e0a08; --surface: #241510; --line: #4a3524; --text: #f2e6cc; --dim: #cbbd9f; --faint: #8f8069; --blue: #c8a870;
  --serif: "Cinzel", Georgia, serif; --sans: "Alegreya Sans", "Gill Sans", sans-serif;
  background: #0e0a08; color: var(--text); font-family: var(--sans); font-size: 19px;
}
body:has(.mtgt-page) header, body:has(.mtgt-page) footer { background: #140d0a; border-color: #3a2a1c; }
body:has(.mtgt-page) .nav ul a { color: #cbbd9f; }
body:has(.mtgt-page) .nav ul a:hover { color: #f2e6cc; background: rgba(200, 168, 112, .12); }
body:has(.mtgt-page) .eyebrow { color: #c8a870; font-family: "Cinzel", serif; letter-spacing: .28em; }
body:has(.mtgt-page) .display { font-family: "Cinzel Decorative", "Cinzel", serif; font-weight: 700; letter-spacing: 0; line-height: 1.08;
  font-size: clamp(40px, 6.4vw, 84px); color: #ead9b0; text-shadow: 0 3px 0 #2a1810, 0 0 40px rgba(200, 168, 112, .25); }
body:has(.mtgt-page) .display em.serif { font-family: inherit; font-style: normal; color: #c8a870; }
body:has(.mtgt-page) .h2 { font-family: "Cinzel", serif; font-weight: 700; letter-spacing: .01em; color: #ead9b0; text-shadow: 0 2px 0 #2a1810; }
body:has(.mtgt-page) .h3 { font-family: "Cinzel", serif; font-weight: 700; color: #ead9b0; letter-spacing: .02em; }
body:has(.mtgt-page) .lede, body:has(.mtgt-page) .section-head p { color: #e2d4b4; font-size: clamp(19px, 1.9vw, 23px); }
body:has(.mtgt-page) .rule { border-color: #3a2a1c; }
body:has(.mtgt-page) a { color: #c8a870; }
/* The game's vine-framed panels: the feature cards and the closing note. */
.mtgt-page .card, .mtgt-note { background: #241510; border: 0; border-radius: 14px; position: relative; overflow: visible;
  box-shadow: inset 0 0 0 2px #c4b28e, inset 0 0 0 5px #8a4a24;
  padding: 40px 40px 36px; }
.mtgt-page .card::after, .mtgt-note::after { content: ""; position: absolute; inset: -16px; pointer-events: none;
  border-style: solid; border-width: 40px; border-image: url("assets/mtgt-frame-vines.png") 160 / 40px round; }
.mtgt-page .card p { color: #e2d4b4; font-size: 18px; }
.mtgt-page .grid-3 { gap: 46px; }
.mtgt-note { max-width: 760px; margin: 56px auto 0; text-align: center; }
.mtgt-note h3 { font-family: "Cinzel", serif; color: #ead9b0; font-size: 24px; margin: 0 0 10px; }
.mtgt-note p { margin: 0 0 12px; color: #e2d4b4; }
.mtgt-note .credits-line { font-size: 15px; color: #cbbd9f; }
.mtgt-page .grid-2.mtgt-unique { gap: 46px; }
.mtgt-page .mtgt-unique .h3 { font-size: clamp(22px, 2.2vw, 28px); }
/* The MTGT page's background painting (Kyle's Midjourney panorama, 2026-10-17; source filed as MTGT docs/adventures/suloise-jewel-art/night-panorama-upscaled.png, 2912 x 1632; this is a 2560-wide copy):
   fixed behind the whole page under a light veil; text on it carries its own dark halo. A fixed layer rather than
   background-attachment: fixed, which iPads ignore. */
body:has(.mtgt-page)::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(14, 10, 8, .32), rgba(14, 10, 8, .43) 55%, rgba(14, 10, 8, .59)),
              url("assets/mtgt-background-v2.webp") center / cover no-repeat;
  filter: saturate(.78) brightness(.92); }   /* toned down a little once the art was HD (Kyle, 2026-10-17); the Suloise Jewel page keeps full colour */
/* Only a light veil over the painting (Kyle: "the fading mutes the details"), so text that sits straight on it gets a soft dark halo instead. */
body:has(.mtgt-page) .page-head, body:has(.mtgt-page) .section-head { text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 14px rgba(0, 0, 0, .85), 0 0 34px rgba(0, 0, 0, .7); }
body:has(.mtgt-page) { background: #0e0a08; }
body:has(.mtgt-page) main { background: transparent; }
/* The MTGT title screen floats above the painted background instead of sitting flat on it like a stamp (Kyle, 2026-10-17):
   rounded corners, a thin gold edge like the game's panels, a deep soft shadow and a faint warm glow. */
.mtgt-page .photo.bare img { border-radius: 16px; filter: none;
  box-shadow: 0 0 0 1px rgba(200, 168, 112, .55), 0 0 0 5px rgba(20, 13, 10, .85), 0 0 0 6px rgba(200, 168, 112, .25),
              0 28px 60px rgba(0, 0, 0, .7), 0 60px 140px rgba(0, 0, 0, .65), 0 0 120px rgba(217, 163, 90, .18); }
/* A calm campfire lit behind the MTGT title screen (Kyle, 2026-10-17): a warm glow all the way around the picture, one glow per
   edge. site.js flickers each edge on its own and now and then flares one random edge, like a fire leaning in the wind; with
   reduced motion the glows hold steady. A faint firelight also plays across the picture's own edges. */
.mtgt-page .photo.bare { position: relative; isolation: isolate; }
.mtgt-page .fire-glow { position: absolute; z-index: -1; pointer-events: none; filter: blur(24px); opacity: .2;
  transition: opacity .9s ease-in-out, transform 1s ease-in-out;   /* a gentle roll, not a flicker (Kyle) */
  background: radial-gradient(closest-side, rgba(255, 168, 70, .95), rgba(236, 116, 36, .5) 55%, rgba(170, 64, 20, 0)); }
/* Kept close to the picture (Kyle: "too thick off the edges"): three glows per edge (start, middle, end) plus corner glows,
   sixteen spots in a ring. site.js moves a flame around the ring, so only part of the frame burns bright at a time. */
.mtgt-page .fire-glow.t1, .mtgt-page .fire-glow.t2, .mtgt-page .fire-glow.t3 { top: -7%; height: 18%; width: 38%; }
.mtgt-page .fire-glow.b1, .mtgt-page .fire-glow.b2, .mtgt-page .fire-glow.b3 { bottom: -8%; height: 20%; width: 38%; }
.mtgt-page .fire-glow.t1, .mtgt-page .fire-glow.b1 { left: 2%; }  .mtgt-page .fire-glow.t2, .mtgt-page .fire-glow.b2 { left: 31%; }
.mtgt-page .fire-glow.t3, .mtgt-page .fire-glow.b3 { right: 2%; }
.mtgt-page .fire-glow.l1, .mtgt-page .fire-glow.l2, .mtgt-page .fire-glow.l3 { left: -5%; width: 13%; height: 38%; }
.mtgt-page .fire-glow.r1, .mtgt-page .fire-glow.r2, .mtgt-page .fire-glow.r3 { right: -5%; width: 13%; height: 38%; }
.mtgt-page .fire-glow.l1, .mtgt-page .fire-glow.r1 { top: 2%; }  .mtgt-page .fire-glow.l2, .mtgt-page .fire-glow.r2 { top: 31%; }
.mtgt-page .fire-glow.l3, .mtgt-page .fire-glow.r3 { bottom: 2%; }
.mtgt-page .fire-glow.tl, .mtgt-page .fire-glow.tr, .mtgt-page .fire-glow.bl, .mtgt-page .fire-glow.br { width: 16%; aspect-ratio: 1; }
.mtgt-page .fire-glow.tl { top: -6%; left: -4%; }  .mtgt-page .fire-glow.tr { top: -6%; right: -4%; }
.mtgt-page .fire-glow.bl { bottom: -7%; left: -4%; } .mtgt-page .fire-glow.br { bottom: -7%; right: -4%; }
.mtgt-page .photo.bare::after { content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
  box-shadow: inset 0 0 70px rgba(255, 146, 56, .2); opacity: var(--fire-inner, .8); transition: opacity .9s ease-in-out; }
