:root {
  color-scheme: dark;
  --bg: #111819;
  --panel: #1a2424;
  --line: #344743;
  --ink: #ecede0;
  --muted: #a6b7ab;
  --accent: #c6e59c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, #1c302d, var(--bg) 50rem);
  color: var(--ink);
  font: 1rem/1.55 system-ui, sans-serif;
  min-height: 100vh;
}
header, main { width: min(100% - 2rem, 46rem); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-weight: 700; }
.mark { width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 1px solid var(--accent); box-shadow: inset 0 0 0 3px #1c302d, inset 0 0 0 5px var(--accent); }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.quiet { color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 5px; padding: .45rem .75rem; font-size: .875rem; }
.quiet:hover { color: var(--ink); border-color: var(--muted); }
.timeline { display: flex; align-items: center; gap: .7rem; margin-block: 1.7rem .9rem; color: var(--muted); }
.timeline, .location { font: .875rem/1.4 ui-monospace, monospace; letter-spacing: .09em; }
.timeline b { color: var(--accent); font-weight: 500; }
.timeline i { flex: 1; border-top: 1px dashed #506158; }
article { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.hero { position: relative; display: grid; place-items: center; height: clamp(6.5rem, 19vw, 10rem); overflow: hidden; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(0deg, #778e7522 0 1px, transparent 1px 6px), radial-gradient(ellipse, #406453, #1b302c 55%, #142221); }
.hero i { position: absolute; width: var(--size); aspect-ratio: 1; border: 1px solid #a6cc8b80; border-radius: 50%; }
.hero i:nth-child(1) { --size: 4rem; background: #a6cc8b33; box-shadow: 0 0 28px #a6cc8b44; }
.hero i:nth-child(2) { --size: 7rem; }
.hero i:nth-child(3) { --size: 11rem; }
.hero i:nth-child(4) { --size: 17rem; border-style: dashed; opacity: .55; }
.scene { padding: clamp(1.25rem, 5vw, 2.6rem); }
.location { color: var(--accent); margin: 0 0 .45rem; }
h1 { font: 500 clamp(2.25rem, 7vw, 4rem)/1 Georgia, serif; margin: 0 0 1.25rem; }
#prose { font: clamp(1.15rem, 3vw, 1.34rem)/1.55 Georgia, serif; white-space: pre-line; }
#prose p { margin: 0 0 .8em; }
#choices { display: grid; gap: .55rem; margin-top: 1.45rem; }
#choices button, #lab-install-native { text-align: left; border: 1px solid #759563; border-radius: 5px; padding: .7rem .9rem; background: #283d30; color: #e0f3c6; }
#choices button:hover:not(:disabled) { background: #384e3c; }
#choices button span { float: right; color: var(--accent); }
#status { color: var(--muted); margin: .8rem 0 0; }
#status:empty { display: none; }
footer { display: flex; gap: .75rem; align-items: center; justify-content: space-between; margin-block: .85rem 1.6rem; color: var(--muted); font-size: .875rem; }
dialog { max-width: min(26rem, 100% - 2rem); background: var(--panel); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); }
dialog::backdrop { background: #000a; }
dialog h2 { margin: 0; font-family: Georgia, serif; }
