:root {
  --sky: #f6f3ee;
  --deep: #f6f3ee;
  --chalk: #17161c;
  --mist: #6a6872;
  --rule: rgba(23, 22, 28, 0.16);
  --sheet: #fbf9f5;
  --onos: #e8697d;
  --accent: #e8697d;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(232, 105, 125, 0.07), transparent 70%),
    radial-gradient(ellipse 55% 50% at 90% 90%, rgba(43, 120, 196, 0.07), transparent 70%),
    #f6f3ee;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  color: var(--chalk);
  font: 400 1rem/1.5 var(--body);
}

body.list-view { overflow: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }

button, input, textarea { font: inherit; color: inherit; }

button { cursor: pointer; border-radius: 999px; padding: 0.55rem 1.1rem; }

button.solid { background: var(--chalk); color: #fff; border: 1px solid var(--chalk); font-weight: 600; }
button.solid:hover { background: var(--accent); border-color: var(--accent); }
button.quiet { background: transparent; border: 1px solid var(--rule); }
button.quiet:hover { border-color: var(--chalk); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Masthead */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 2rem;
  pointer-events: none;
}
.masthead > * { pointer-events: auto; }
.identity h1 { font-size: 2.5rem; line-height: 1; letter-spacing: -0.01em; }
.identity p { margin: 0; max-width: 24ch; color: var(--chalk); font: 400 1.5rem/1.2 var(--display); }
.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }

body.list-view .masthead { position: static; }

/* Map */

main { height: 100%; }
body.list-view main { height: auto; }

#map { display: block; width: 100%; height: 100%; }
body.panel-open main { padding-right: min(27rem, 100vw); }
body.panel-open .masthead { right: min(27rem, 100vw); }
#map.settled .link { animation: none; }
#map.settled .star { animation: drift var(--dur, 10s) ease-in-out var(--del, 0s) infinite alternate; }
#map.settled .link { stroke-dashoffset: 0; }
#map.settled .star { opacity: 1; }

.chart-ring { fill: none; stroke: var(--chalk); stroke-opacity: 0.1; stroke-dasharray: 1 7; stroke-linecap: round; }

.link {
  stroke: var(--chalk);
  stroke-opacity: 0.22;
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.4s ease-out 0.5s forwards;
  transition: stroke-opacity 0.2s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.star { cursor: pointer; opacity: 0; animation: appear 0.6s ease-out forwards, drift var(--dur, 10s) ease-in-out var(--del, 0s) infinite alternate; transition: opacity 0.2s; }
@keyframes drift { to { transform: translate(var(--dx, 0), var(--dy, 0)); } }
@keyframes appear { to { opacity: 1; } }
.star .halo { fill: currentColor; opacity: calc(0.08 + var(--b, 0.3) * 0.2); filter: blur(7px); transition: opacity 0.2s; }
.star .core { fill: color-mix(in srgb, currentColor 85%, #000); filter: drop-shadow(0 0 calc(2px + var(--b, 0.3) * 4px) color-mix(in srgb, currentColor 60%, transparent)); transform-box: fill-box; transform-origin: center; animation: shimmer var(--tw, 3.5s) ease-in-out infinite; }
.star .spike { transform-box: fill-box; transform-origin: center; stroke: currentColor; stroke-width: 1; stroke-linecap: round; opacity: calc(0.25 + var(--b, 0.3) * 0.45); filter: blur(0.4px); animation: shimmer var(--tw, 3.5s) ease-in-out infinite reverse; }
.star .hit { fill: transparent; }
@keyframes shimmer { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.82); } }
.star.hot .halo { animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }
.star.is-teased .halo { animation: teased 1.8s ease-in-out infinite; }
@keyframes teased { 50% { opacity: 0.7; } }
.star text { fill: var(--chalk); font: 500 0.875rem var(--body); paint-order: stroke; stroke: var(--deep); stroke-width: 4px; stroke-linejoin: round; }
.star:hover .halo, .star:focus-visible .halo, .star.is-open .halo { opacity: 0.4; }
.star:focus-visible { outline: none; }
.star:focus-visible .hit { stroke: var(--accent); stroke-width: 1.5; }
.star.is-open text { font-weight: 600; }

#map.has-focus .star:not(.is-lit) { opacity: 0.22 !important; }
#map.has-focus .link:not(.is-lit) { stroke-opacity: 0.06; }
#map.has-focus .link.is-lit { stroke-opacity: 0.7; }

/* Legend */

.legend {
  position: fixed;
  left: 2rem;
  bottom: 1.5rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: min(46rem, calc(100vw - 4rem));
}
.legend button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--rule);
}
.legend button::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--dot); }
.legend button[aria-pressed="true"] { border-color: var(--dot); background: #fff; }
body.list-view .legend { display: none; }

/* Thought panel */

.panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: min(27rem, 100vw);
  padding: 4.5rem 2rem 2rem;
  overflow-y: auto;
  background: var(--sheet);
  border-left: 1px solid var(--rule);
  animation: slide-in 0.25s ease-out;
}
@keyframes slide-in { from { transform: translateX(2rem); opacity: 0; } }
.panel .close { position: absolute; top: 1.5rem; right: 2rem; background: transparent; border: 1px solid var(--rule); font-size: 0.875rem; }
.field-tag { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; color: var(--mist); font-size: 0.875rem; }
.field-tag::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--dot); }
.panel h2 { font-size: 2rem; line-height: 1.15; outline: none; }
.note p { margin: 1rem 0 0; max-width: 62ch; }
.note h3 { font: 500 0.875rem var(--body); color: var(--mist); margin-top: 1.5rem; }
.connected { margin: 2rem 0; }
.connected h3 { font: 500 0.875rem var(--body); color: var(--mist); margin-bottom: 0.5rem; }
.connected ul { list-style: none; margin: 0; padding: 0; }
.connected ul + h3 { margin-top: 1.75rem; }
.connected li + li { border-top: 1px solid var(--rule); }
.connected button {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 0;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 0;
}
.connected button::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--dot); }
.connected button:hover { text-decoration: underline; }

/* Onos */

.onos-button::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.5rem; border-radius: 50%; background: var(--onos); box-shadow: 0 0 0.6rem var(--onos); }
.onos { display: flex; flex-direction: column; padding-bottom: 1.25rem; }
.onos[hidden] { display: none; }
.onos h2 { font-size: 2rem; outline: none; }
.onos-intro { margin: 0.4rem 0 0; color: var(--mist); }
.onos-log { flex: 1; display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0 1rem; }
.onos-log p { margin: 0; white-space: pre-wrap; max-width: 62ch; }
.onos-log .from-visitor { align-self: flex-end; max-width: 85%; padding: 0.6rem 0.9rem; background: rgba(23, 22, 28, 0.06); border-radius: 1rem 1rem 0.25rem 1rem; }
.onos-log .from-onos { padding-left: 0.9rem; border-left: 2px solid var(--onos); }
.onos-log .waiting { color: var(--mist); }
.onos-log .failed { color: #c23b24; }
.onos-log .star-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0.1rem;
  padding: 0 0.6rem;
  font-size: 0.875rem;
  vertical-align: 0.05em;
  background: transparent;
  border: 1px solid var(--rule);
}
.onos-log .star-link::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--dot); }
.onos-log .star-link:hover { border-color: var(--dot); }
.onos-starters { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-bottom: 1rem; }
.onos-starters[hidden] { display: none; }
.onos-starters button { text-align: left; border-radius: 1rem; background: transparent; border: 1px solid var(--rule); font-size: 0.9375rem; }
.onos-starters button:hover { border-color: var(--onos); }
.onos-form { position: sticky; bottom: 0; display: flex; gap: 0.5rem; align-items: flex-end; padding-top: 0.75rem; background: var(--sheet); }
.onos-form textarea { flex: 1; resize: none; padding: 0.6rem 0.75rem; background: var(--deep); border: 1px solid var(--rule); border-radius: 0.75rem; }
.onos-form button:disabled { opacity: 0.5; cursor: default; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* List view */

#list { max-width: 44rem; margin: 0 auto; padding: 1rem 2rem 5rem; }
#list h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.5rem; margin: 2.5rem 0 0.5rem; }
#list h2::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--dot); }
#list ul { list-style: none; margin: 0; padding: 0; }
#list li { border-top: 1px solid var(--rule); }
#list li button { width: 100%; text-align: left; background: none; border: 0; border-radius: 0; padding: 0.85rem 0; font-size: 1.125rem; }
#list li button:hover { text-decoration: underline; }

/* Thinkers and discoveries on the map */

.estar { cursor: pointer; opacity: 0; animation: appear 0.6s ease-out 1s forwards, drift var(--dur, 10s) ease-in-out var(--del, 0s) infinite alternate; transition: opacity 0.2s; }
#map.settled .estar { animation: drift var(--dur, 10s) ease-in-out var(--del, 0s) infinite alternate; opacity: 1; }
.estar .gal-glow { fill: currentColor; opacity: 0.16; filter: blur(5px); transition: opacity 0.2s; }
.estar .gal-arm { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; opacity: 0.8; filter: blur(0.6px); }
.estar .gal-oval { fill: currentColor; opacity: 0.55; filter: blur(1.4px); }
.estar .gal-core { fill: #17161c; filter: none; }
.estar .spin { transform-box: fill-box; transform-origin: center; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.estar .hit { fill: transparent; }
.estar text { opacity: 0; pointer-events: none; fill: var(--chalk); font: 500 0.8125rem var(--body); paint-order: stroke; stroke: var(--deep); stroke-width: 4px; stroke-linejoin: round; transition: opacity 0.15s; }
.estar:hover text, .estar:focus-visible text, .estar.is-open text, #map.has-focus .estar.is-lit text { opacity: 1; }
.estar:hover .gal-glow, .estar:focus-visible .gal-glow, .estar.is-open .gal-glow { opacity: 0.45; }
.estar:focus-visible { outline: none; }
.estar:focus-visible .hit { stroke: var(--accent); stroke-width: 1.5; }
.elink { stroke: var(--chalk); stroke-opacity: 0.1; stroke-width: 1; stroke-dasharray: 2 4; transition: stroke-opacity 0.2s; }
.elink.is-lit { stroke-opacity: 0.55; }
#map.has-focus .estar:not(.is-lit) { opacity: 0.18 !important; }
#map.has-focus .elink:not(.is-lit) { stroke-opacity: 0.04; }
#map.no-entries .estar, #map.no-entries .elink { display: none; }
.legend button.entries-toggle::before { border-radius: 0; transform: rotate(45deg) scale(0.85); background: var(--chalk); }
#list li.fact { padding: 0.7rem 0; }
#list li.fact span { color: var(--mist); font-size: 0.9375rem; }
#list .note { color: var(--mist); max-width: 62ch; margin: 0.25rem 0 0; }

/* Write dialog */

dialog {
  width: min(32rem, calc(100vw - 2rem));
  padding: 2rem;
  color: var(--chalk);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 1rem;
}
dialog::backdrop { background: rgba(23, 22, 28, 0.35); }
dialog h2 { font-size: 1.75rem; }
dialog .about { margin: 0.5rem 0 0; color: var(--mist); }
dialog label { display: block; margin: 1.25rem 0 0.35rem; font-weight: 500; }
dialog input, dialog textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--deep);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
}
dialog textarea { resize: vertical; }
dialog .hint { margin: 0.75rem 0 0; color: var(--mist); font-size: 0.875rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.5rem; }

/* Small screens */

@media (max-width: 720px) {
  html, body { height: auto; }
  body { overflow: auto; }
  body.panel-open main { padding-right: 0; }
  body.panel-open .masthead { right: 0; }
  main { height: auto; }
  #map { height: 76rem; }
  .masthead { position: static; padding: 1rem 1.25rem; flex-direction: column; }
  .identity h1 { font-size: 2rem; }
  .identity p { font-size: 1.25rem; }
  .actions { justify-content: flex-start; }
  .actions button { padding: 0.4rem 0.9rem; font-size: 0.875rem; }
  .legend { position: static; padding: 0 1.25rem; max-width: none; }
  .legend button { font-size: 0.8125rem; padding: 0.2rem 0.6rem; }
  .star text { font-size: 0.75rem; }
  .panel {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 72vh;
    padding: 3.75rem 1.25rem 1.5rem;
    border-left: 0;
    border-top: 1px solid var(--rule);
    border-radius: 1rem 1rem 0 0;
  }
  .panel .close { top: 1rem; right: 1.25rem; }
  .panel h2 { font-size: 1.625rem; }
  @keyframes slide-in { from { transform: translateY(2rem); opacity: 0; } }
  #list { padding: 0 1.25rem 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .link, .star, .panel { animation: none; }
  .link { stroke-dashoffset: 0; }
  .star { opacity: 1; }
}

/* Background stars */

#sky { position: fixed; inset: -10%; z-index: -1; pointer-events: none; overflow: hidden; }
#sky { opacity: 0.45; }
#sky i { position: absolute; border-radius: 50%; background: #17161c; animation: twinkle var(--t, 5s) ease-in-out var(--d, 0s) infinite; }
@keyframes twinkle { 0%, 100% { opacity: var(--o, 0.5); } 50% { opacity: calc(var(--o, 0.5) * 0.25); } }
@media (prefers-reduced-motion: reduce) { #sky i, .star .core, .star .spike, .estar .spin { animation: none; } }

/* The tunnel, the door and the room */

#map { transition: transform 1.4s cubic-bezier(0.5, 0, 0.9, 0.4), opacity 1.2s ease-in; }
#map.diving { transform: scale(2.6); opacity: 0; }
body.in-gate { overflow: hidden; }

.gate { position: fixed; inset: 0; z-index: 20; }
.gate[hidden], .gate [hidden] { display: none; }
#tunnel { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; opacity: 0; }
.gate:not(.is-arrived) { animation: gate-in 0.5s ease-out both; }
@keyframes gate-in { from { background: transparent; } to { background: rgba(4, 5, 15, 0.55); } }
.gate-skip { position: absolute; right: 1.5rem; bottom: 1.5rem; z-index: 3; }

.threshold {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  text-align: center;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 60% 50% at 50% 38%, color-mix(in srgb, var(--glow, #fff) 22%, transparent), transparent 70%),
    var(--deep);
}
.door {
  position: relative;
  flex: none;
  width: 8rem;
  height: 13rem;
  border-radius: 4rem 4rem 0.3rem 0.3rem;
  background: radial-gradient(ellipse at 50% 70%, #fffdf3 0%, #ffe3a0 45%, #ffbd5c 100%);
  box-shadow: 0 0 3rem 0.5rem rgba(255, 217, 138, 0.45), 0 0 9rem 2rem rgba(255, 217, 138, 0.18);
  perspective: 40rem;
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 50% { box-shadow: 0 0 4rem 1rem rgba(255, 217, 138, 0.6), 0 0 11rem 3rem rgba(255, 217, 138, 0.25); } }
.door .leaf {
  position: absolute;
  inset: 0.45rem;
  border-radius: 3.6rem 3.6rem 0.2rem 0.2rem;
  background: linear-gradient(90deg, #0b0a1c, #151330);
  transform-origin: left center;
  transition: transform 1s cubic-bezier(0.6, 0, 0.3, 1);
}
.door .leaf::after { content: ""; position: absolute; right: 0.9rem; top: 55%; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: #ffd98a; }
.is-opening .door .leaf { transform: rotateY(-105deg); }
.is-opening .door { animation: none; box-shadow: 0 0 8rem 6rem rgba(255, 244, 214, 0.95); transition: box-shadow 1s ease-in 0.2s; }
.is-opening .gate-text { opacity: 0; transition: opacity 0.5s; }
.is-opening .threshold { background: #fff8e6; transition: background 0.9s ease-in 0.3s; }

.gate-text { max-width: 36rem; }
.gate-tag { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; color: var(--mist); font-size: 0.9375rem; }
.gate-tag::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--dot); }
.gate-text h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.12; outline: none; }
.gate-note { margin: 1rem auto 0; max-width: 52ch; color: var(--chalk); }
.gate-hint { margin: 1rem 0 0; color: var(--mist); font-size: 0.9375rem; }
.gate-actions { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

/* Onos, when you step into a star's room */
.onos.in-room {
  inset: 0;
  width: 100%;
  z-index: 30;
  padding: 4.5rem max(1.5rem, calc((100vw - 44rem) / 2)) 1.25rem;
  border: 0;
  border-radius: 0;
  max-height: none;
  animation: room-in 1.2s ease-out both;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, color-mix(in srgb, var(--glow, #fff) 20%, transparent), transparent 75%),
    var(--deep);
}
@keyframes room-in { from { background-color: #fff8e6; opacity: 0.2; } }
.onos.in-room .close { right: max(1.5rem, calc((100vw - 44rem) / 2)); }
.onos.in-room .onos-form { background: var(--deep); }

@media (max-width: 720px) {
  .door { width: 6rem; height: 9.5rem; border-radius: 3rem 3rem 0.3rem 0.3rem; }
  .door .leaf { border-radius: 2.6rem 2.6rem 0.2rem 0.2rem; }
  .threshold { justify-content: flex-start; padding-top: 3rem; gap: 1.5rem; }
  .onos.in-room { padding: 4rem 1.25rem 1rem; }
  .onos.in-room .close { right: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  #map { transition: none; }
  .door { animation: none; }
  .gate:not(.is-arrived), .onos.in-room { animation: none; }
}

.scene-note { margin: 0.5rem 0 0; color: var(--mist); font-size: 0.875rem; font-style: italic; }
.onos.scene { --glow: #e9c27a; }
.onos.scene .onos-log .from-onos { border-left-color: #e9c27a; }

/* The cosmos moves */

#sway { animation: sway 36s ease-in-out infinite alternate; }
@keyframes sway { from { transform: translate(-7px, 4px); } to { transform: translate(7px, -4px); } }
@media (min-width: 721px) {
  #map { touch-action: none; cursor: grab; }
  #map.panning { cursor: grabbing; }
}

.teaser {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  z-index: 2;
  width: fit-content;
  max-width: min(34rem, calc(100vw - 3rem));
  margin: 0 auto;
  padding: 0.4rem 0.2rem;
  background: none;
  border: 0;
  border-bottom: 1px dotted var(--rule);
  border-radius: 0;
  color: var(--chalk);
  font: 400 1.25rem/1.3 var(--display);
  text-align: center;
}
.teaser:hover { border-bottom-color: var(--chalk); }
.teaser.swap { animation: teaser-in 1.4s ease-out both; }
@keyframes teaser-in { from { opacity: 0; } }
body.panel-open .teaser, body.in-gate .teaser, body.list-view .teaser { display: none; }
.recenter { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 3; font-size: 0.875rem; padding: 0.3rem 0.9rem; }
body.panel-open .recenter { right: calc(min(27rem, 100vw) + 1.5rem); }

/* Explain it simply */

#panel-simple { margin-top: 1.5rem; }
.lesson { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); }
.lesson-eli5 { margin: 0; font: 400 1.25rem/1.3 var(--display); }
.lesson .blocks { margin: 1rem 0 0.75rem; padding-left: 1.25rem; }
.lesson .blocks li { margin: 0.6rem 0; animation: teaser-in 0.6s ease-out both; }
.lesson button { font-size: 0.875rem; padding: 0.3rem 0.9rem; }
.lesson-left { margin: 0.75rem 0; color: var(--mist); font-size: 0.9375rem; }
.visual { margin: 1rem 0; }
.visual-canvas { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 0.75rem; background: rgba(23, 22, 28, 0.03); }
.visual-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.6rem; }
.visual-controls input[type="range"] { flex: 1; min-width: 8rem; accent-color: var(--chalk); }
.visual-line { margin: 0.5rem 0 0; color: var(--mist); font-size: 0.875rem; }
.seesaw label { display: grid; grid-template-columns: 3.5rem 1fr 2rem; gap: 0.5rem; align-items: center; margin: 0.4rem 0; }
.seesaw input { accent-color: var(--c); }
.seesaw b { font-weight: 500; text-align: right; }

@media (prefers-reduced-motion: reduce) {
  #sway, .star, .estar, .star.hot .halo, .star.is-teased .halo, .teaser.swap { animation: none; }
  #map.settled .star, #map.settled .estar { animation: none; }
}

/* The visitor's own mind */
.stand { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.stand h3 { font-size: 0.9375rem; margin: 0 0 0.5rem; }
.stand .claim { font: 1.25rem/1.3 var(--display); margin: 0 0 0.9rem; }
.stand-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stand-row button { background: transparent; border: 1px solid var(--rule); border-radius: 2rem; padding: 0.5rem 1rem; }
.stand-row button:hover { border-color: var(--chalk); }
.stand-row button[aria-pressed="true"] { color: var(--deep); border-color: transparent; font-weight: 600; }
.stand-agree[aria-pressed="true"] { background: #ffd98a; }
.stand-depends[aria-pressed="true"] { background: #b9a8ff; }
.stand-disagree[aria-pressed="true"] { background: #ff9d8a; }
.stand-note { color: var(--mist); font-size: 0.8125rem; margin: 0.75rem 0 0; }
.star.mine .core { stroke: #fff; stroke-width: 2; }
.star.mine-agree .core { stroke: #ffd98a; }
.star.mine-depends .core { stroke: #b9a8ff; }
.star.mine-disagree .core { stroke: #ff9d8a; }
#map.mind-view .star:not(.mine), #map.mind-view .estar { opacity: 0.18 !important; }
#map.mind-view .link { opacity: 0.12; }
#map.mind-view .link.mine-link { opacity: 0.9; stroke: #ffd98a; stroke-width: 1.5; }
#map.mind-view .star.mine .halo { opacity: 0.45; }
.mind { position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 6; max-width: 20rem; padding: 1.1rem 1.25rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: 0.75rem; display: grid; gap: 0.6rem; }
.mind h2 { font: 1.25rem var(--display); margin: 0; }
.mind p { margin: 0; color: var(--mist); font-size: 0.9375rem; line-height: 1.45; }
body.panel-open .mind, body.in-gate .mind, body.list-view .mind { display: none; }
@media (max-width: 720px) { .mind { left: 1rem; right: 1rem; max-width: none; bottom: 1rem; } }

/* The five doors */
.world { cursor: pointer; opacity: 0; animation: appear 0.8s ease-out forwards, drift var(--dur, 10s) ease-in-out var(--del, 0s) infinite alternate; transform-box: fill-box; transform-origin: center; }
.world .halo { fill: currentColor; opacity: 0.08; filter: blur(22px); transition: opacity 0.25s; }
.world .frame { fill: rgba(255,255,255,0.75); stroke: currentColor; stroke-width: 2.5; filter: none; }
.world .light { fill: currentColor; opacity: 0.22; transition: opacity 0.25s; }
.world .hit { fill: transparent; }
.world text { paint-order: stroke; stroke: var(--deep); stroke-width: 5px; stroke-linejoin: round; text-anchor: middle; }
.world .name { fill: var(--chalk); font: 1.5rem var(--display); }
.world .ask { fill: var(--mist); font: 400 0.9375rem var(--body); }
.world:hover .halo, .world:focus-visible .halo { opacity: 0.32; }
.world:hover .light, .world:focus-visible .light { opacity: 0.85; }
.world:focus-visible { outline: none; }
.world:focus-visible .frame { stroke: var(--accent); }
#map:not(.scoped) { cursor: grab; }
#map.diving .world:not(.chosen) { opacity: 0 !important; transition: opacity 0.4s; }
#map.diving .world.chosen { animation: none; opacity: 1; transform: scale(9); transition: transform 0.65s cubic-bezier(0.6, 0, 0.9, 0.4); }
#map.diving .world.chosen text { opacity: 0; }
#map.arriving { animation: arrive 0.7s ease-out; }
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 720px) {
  #map.scoped { height: 46rem; }
  .world .name { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .world { animation: none; opacity: 1; }
  #map.arriving { animation: none; }
}

.mind[hidden] { display: none; }

/* Sections and the Opinions page */
.tabs { display: flex; gap: 0.25rem; margin-top: 0.9rem; }
.tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 0.25rem 0.1rem; margin-right: 1rem; color: var(--mist); }
.tabs button[aria-current="true"] { color: var(--chalk); border-bottom-color: var(--chalk); }
.tabs button:hover { color: var(--chalk); }
body.tab-opinions { overflow: auto; }
body.tab-opinions .masthead { position: static; }
body.tab-opinions #map, body.tab-opinions #list, body.tab-opinions #view-toggle, body.tab-opinions #mind-open,
body.tab-opinions #doors-back, body.tab-opinions #teaser, body.tab-opinions #recenter, body.tab-opinions #mind { display: none !important; }
body.tab-opinions main { height: auto; }
.opinions { max-width: 46rem; margin: 0 auto; padding: 1rem 1.5rem 5rem; }
.opinions[hidden] { display: none; }
.opinions h2 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.02em; }
.opinions .lede { color: var(--mist); margin: 0.5rem 0 1.5rem; max-width: 40rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chips button[aria-pressed="true"] { background: var(--chalk); color: var(--deep); border-color: var(--chalk); font-weight: 600; }
.opinion { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.opinion h3 { font-size: 1.5rem; line-height: 1.2; margin: 0.25rem 0 0.6rem; }
.opinion p { margin: 0 0 0.75rem; max-width: 40rem; }
.opinion .opinion-meta { color: var(--mist); font-size: 0.875rem; margin: 0; }
.opinion .reading { color: var(--chalk); padding-left: 0.9rem; border-left: 2px solid var(--accent); }
.opinion .reading b, .opinion .reading strong { color: var(--accent); }
.opinion-foot { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin-top: 0.5rem; }
.opinion-foot a { color: var(--chalk); text-underline-offset: 3px; }
.opinion-foot button { padding: 0.3rem 0.9rem; font-size: 0.875rem; }
.checked { font-size: 0.8125rem; color: var(--mist); }
.checked.full { color: #4a7d10; }

/* Playbooks */
.playbooks[hidden] { display: none; }
.pb-search { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.pb-search input { flex: 1; min-width: 0; padding: 0.75rem 1.1rem; border-radius: 999px; border: 1px solid var(--rule); background: rgba(255, 255, 255, 0.7); font-size: 1rem; }
.pb-search input:focus { outline: none; border-color: var(--chalk); }
.pb-heading { font-size: 1.125rem; color: var(--mist); font-family: var(--body); font-weight: 500; margin: 0 0 1rem; }
.tiles { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.tile { text-align: left; display: grid; gap: 0.35rem; align-content: start; padding: 1.1rem 0.25rem; border-radius: 0; background: transparent; border: 0; border-top: 1px solid var(--rule); min-height: 6.5rem; }
.tile:hover { border-top-color: var(--accent); }
.tile:hover .tile-title { color: var(--accent); }
.tile-title { font: 1.25rem/1.2 var(--display); }
.tile-for { color: var(--mist); font-size: 0.875rem; }
.playbooks h3 { margin: 1.75rem 0 0.5rem; font-size: 1.25rem; }
.playbooks .pb-heading { margin: 0 0 1rem; }
.playbooks h2 { margin-top: 1rem; }
.pb-for { margin-top: 1.25rem; }
.pb-list, .pb-sources { max-width: 40rem; padding-left: 1.25rem; margin: 0.25rem 0 0.75rem; }
.pb-list li, .pb-sources li { margin-bottom: 0.6rem; }
.pb-sources { font-size: 0.9375rem; color: var(--mist); }
.pb-sources a { color: var(--chalk); text-underline-offset: 3px; }
.ref { color: var(--accent); font-size: 0.8125rem; }
.playbooks > button.quiet:last-child { margin-top: 1.5rem; }
@media (max-width: 720px) { .pb-search { flex-direction: column; } }

.opinions[hidden] { display: none; }
.tags { color: var(--accent); font-size: 0.875rem; }

/* Reading tabs carry their own large title, so the masthead line stays quiet. */
body.tab-open .identity h1, body.tab-open #tagline { visibility: hidden; height: 0; margin: 0; }

/* Cosmos tab: the night sky. Everything else is paper. */
body.night {
  --chalk: #edf2f8; --mist: #b4bdd8; --rule: rgba(237, 242, 248, 0.2); --deep: #04050f; --sheet: #090a1e; --onos: #ffd98a;
  color: var(--chalk);
}
html:has(body.night) {
  background:
    linear-gradient(135deg, transparent 32%, rgba(185, 198, 255, 0.07) 46%, rgba(205, 212, 255, 0.11) 50%, rgba(185, 198, 255, 0.07) 54%, transparent 68%) fixed,
    radial-gradient(ellipse 55% 45% at 18% 28%, rgba(96, 62, 178, 0.30), transparent 72%),
    radial-gradient(ellipse 50% 55% at 84% 72%, rgba(28, 96, 160, 0.26), transparent 72%),
    radial-gradient(ellipse 35% 30% at 62% 14%, rgba(176, 58, 122, 0.14), transparent 70%),
    radial-gradient(ellipse at 50% 45%, #130e30 0%, #04050f 75%) fixed #04050f;
}
body.night button.solid { background: #edf2f8; color: #04050f; border-color: #edf2f8; }
body.night button.solid:hover { background: #fff; border-color: #fff; }
body.night :focus-visible { outline-color: #fff; }
body.night #map { filter: brightness(1.55) saturate(1.1); }
body.night .star .halo { opacity: calc(0.12 + var(--b, 0.3) * 0.3); }
body.night .star .core { fill: color-mix(in srgb, currentColor 30%, #fff); filter: drop-shadow(0 0 calc(2px + var(--b, 0.3) * 6px) currentColor); }
body.night .star .spike { stroke: color-mix(in srgb, currentColor 40%, #fff); }
body.night .estar .gal-core { fill: #fff6df; filter: drop-shadow(0 0 3px #fff6df); }
body.night .world .frame { fill: rgba(4, 5, 15, 0.7); filter: drop-shadow(0 0 10px currentColor); }
body.night .world .halo { opacity: 0.16; }
body.night .world .light { opacity: 0.4; }
body.night .world:focus-visible .frame, body.night .star:focus-visible .hit { stroke: #fff; }
body.night #sky { filter: invert(1); opacity: 1; }
body.night button.quiet { background: transparent; }

/* Portfolio */
.pf-gate { display: flex; gap: 0.6rem; margin: 1rem 0; }
.pf-gate input, .pf-field input, .pf-field select, .pf-show select { padding: 0.7rem 1rem; border-radius: 0.75rem; border: 1px solid var(--rule); background: rgba(255,255,255,0.7); min-width: 0; }
.pf-gate input { flex: 1; }
.pf-msg { color: #c23b24; min-height: 1.4rem; margin: 0.5rem 0; }
.pf-note { color: var(--mist); font-size: 0.875rem; max-width: 40rem; }
.pf-total { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; }
.pf-label { margin: 0; color: var(--mist); }
.pf-big { margin: 0.25rem 0 0.75rem; font: clamp(2.6rem, 8vw, 4.5rem)/1 var(--display); letter-spacing: -0.02em; }
.pf-kinds { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.pf-kind { display: grid; grid-template-columns: 5rem 1fr auto; gap: 0.75rem; align-items: center; font-size: 0.9375rem; }
.pf-bar { height: 0.4rem; background: var(--rule); border-radius: 999px; overflow: hidden; }
.pf-bar i { display: block; height: 100%; background: var(--accent); }
.pf-row { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; width: 100%; text-align: left; padding: 1rem 0.25rem; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: transparent; }
.pf-row:hover .pf-name { color: var(--accent); }
.pf-name { font: 1.25rem var(--display); }
.pf-val { grid-row: 1; grid-column: 2; text-align: right; }
.pf-meta { grid-column: 1; color: var(--mist); font-size: 0.875rem; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0; }
.pf-field { display: grid; gap: 0.25rem; margin: 0.75rem 0; }
.pf-field span { color: var(--mist); font-size: 0.875rem; }
.pf-rates { margin-top: 2rem; }

/* Simply and Rights */
.explain-eli5 { font: clamp(1.4rem, 3vw, 1.9rem)/1.3 var(--display); margin: 0.5rem 0 1rem; max-width: 36rem; }
.explain-more { margin: 0 0 1rem; }
.explain-more summary { cursor: pointer; color: var(--mist); }
.explain-more ol { padding-left: 1.25rem; max-width: 38rem; }
.rights-quote { margin: 1.5rem 0 0.5rem; font: clamp(1.6rem, 4vw, 2.6rem)/1.2 var(--display); max-width: 40rem; border-left: 3px solid var(--accent); padding-left: 1.25rem; }
.rights-point { padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.rights-point p { margin: 0.25rem 0 0; max-width: 36rem; }
.rights-motto { font: clamp(2rem, 6vw, 3.5rem)/1.1 var(--display); margin: 2rem 0 1rem; }
.tabs { flex-wrap: wrap; row-gap: 0.25rem; }
.opinions a { color: var(--chalk); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* One typeface for the whole site: Schibsted Grotesk. Headings carry weight and tight spacing. */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }
.explain-eli5, .rights-quote, .rights-motto, .pf-big, .pf-name, .tile-title, .world .name, .identity p { font-weight: 600; letter-spacing: -0.02em; }
.explain-eli5, .rights-quote { font-weight: 500; }

/* Calmer headings: titles sit closer to the size of the text. */
.opinions h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.15; }
.opinion h3, .pb-heading { font-size: 1.25rem; line-height: 1.25; }
.playbooks h3 { font-size: 1.125rem; }
.explain-eli5 { font-size: 1.125rem; line-height: 1.5; font-weight: 500; max-width: none; }
.rights-quote { font-size: 1.375rem; line-height: 1.4; font-weight: 500; }
.rights-motto { font-size: 1.5rem; }
.rights-point h3 { font-size: 1.125rem; }
.pf-big { font-size: clamp(2rem, 5vw, 2.75rem); }
.pf-name { font-size: 1.0625rem; }
.tile-title { font-size: 1.0625rem; }
.world .name { font-size: 1.25rem; }
.identity p { font-size: 1.125rem; }
.panel h2 { font-size: 1.5rem; }

/* Justified paragraphs everywhere there is reading. */
.opinions p, .opinions li, .panel p, .panel li, .onos-log p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.opinions .opinion-meta, .opinions .tags, .opinions .pf-msg, .opinions .tile-for, .opinions .tile-title, .opinions .pf-meta, .opinions .pf-val, .opinions .pf-label, .opinions .pf-big { text-align: left; hyphens: none; }

/* Illustrations beside articles. */
.art { display: block; overflow: hidden; border-radius: 0.75rem; background: var(--rule); }
.art svg, .art.art-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.has-art { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 1.75rem; align-items: start; }
.has-art > .art { aspect-ratio: 4 / 5; position: sticky; top: 1rem; }
.opinions { max-width: 52rem; }
.tile .art-wide { aspect-ratio: 16 / 7; width: 100%; margin-bottom: 0.6rem; }
.tile { padding-top: 1.1rem; }
.pb-head h2 { margin-top: 0.25rem; }
@media (max-width: 640px) {
  .has-art { grid-template-columns: 1fr; }
  .has-art > .art { aspect-ratio: 16 / 9; order: -1; position: static; }
}

/* Visual explainers */
.explainer { margin: 1.5rem 0 2rem; padding: 1rem 1.25rem 1.25rem; border-radius: 1rem; background: #14122e; color: #f3e7c0; }
.ex-title { margin: 0 0 0.5rem; font-weight: 600; font-size: 1.125rem; text-align: left !important; }
.ex-title span { font-weight: 400; font-size: 0.8125rem; opacity: 0.6; margin-left: 0.5rem; }
.ex-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 0.75rem; background: radial-gradient(ellipse at 50% 40%, #241f55, #0d0b22); overflow: hidden; cursor: pointer; }
.ex-scene { position: absolute; inset: 0; display: none; }
.ex-scene.on { display: block; }
.ex-scene svg { width: 100%; height: 100%; }
.fx { opacity: 0; animation: ex-in 0.8s ease-out var(--d, 0s) forwards; transform-box: fill-box; transform-origin: center; }
@keyframes ex-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
.flow { animation: ex-flow 1.2s linear infinite; }
@keyframes ex-flow { to { stroke-dashoffset: -16; } }
.pulse { animation: ex-pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ex-pulse { 50% { transform: scale(1.08); opacity: 0.5; } }
.draw { stroke-dasharray: 400; stroke-dashoffset: 400; animation: ex-draw 1.6s ease-out 0.3s forwards; }
@keyframes ex-draw { to { stroke-dashoffset: 0; } }
.ex-caption { margin: 0.9rem 0 0.75rem; font-size: 1.125rem; line-height: 1.45; min-height: 4.5rem; text-align: left !important; hyphens: none !important; }
.ex-bar { display: flex; align-items: center; gap: 1rem; }
.ex-bar .quiet { color: #f3e7c0; border-color: rgba(243, 231, 192, 0.35); }
.ex-dots { display: flex; gap: 0.5rem; }
.ex-dots button { width: 0.75rem; height: 0.75rem; padding: 0; border-radius: 50%; border: 0; background: rgba(243, 231, 192, 0.3); }
.ex-dots button[aria-current="true"] { background: #e8697d; transform: scale(1.25); }
.ex-note { margin: 0.9rem 0 0; font-size: 0.8125rem; opacity: 0.6; text-align: left !important; hyphens: none !important; }
@media (prefers-reduced-motion: reduce) { .fx, .draw, .flow, .pulse { animation: none; opacity: 1; stroke-dashoffset: 0; } }

.img-note { max-width: 40rem; margin: 2rem auto 3rem; padding: 0 1rem; font-size: .8rem; color: var(--muted, #777); text-align: center; }
body.night .img-note { display: none; }

/* Cards everywhere, smaller bold headings, wider page (latest layout pass) */
h1, h2, h3 { font-weight: 700; }
.opinions { max-width: 76rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.opinions[hidden] { display: none; }
.opinions > * { grid-column: 1 / -1; }
.opinions > .opinion, .opinions > .rights-point { grid-column: auto; }
.opinions h2 { font-size: 1.5rem; line-height: 1.2; font-weight: 700; }
.opinions .lede, .opinions .chips { margin-top: 0; margin-bottom: 0; }
.opinion, .rights-point, .tile { background: rgba(255, 255, 255, 0.72); border: 1px solid var(--rule); border-radius: 1rem; overflow: hidden; }
.opinion { padding: 0; }
.opinion.has-art { display: flex; flex-direction: column; gap: 0; }
.opinion.has-art > .art { order: -1; width: 100%; aspect-ratio: 16 / 9; border-radius: 0; position: static; }
.art-body { padding: 1.1rem 1.25rem 1.25rem; }
.opinion h3 { font-size: 1.0625rem; line-height: 1.25; font-weight: 700; }
.rights-point { padding: 1.1rem 1.25rem; }
.rights-point h3 { font-size: 1.0625rem; }
.tiles { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.25rem; }
.tile { padding: 0 0 1rem; border-top: 1px solid var(--rule); }
.tile > :not(.art) { margin-left: 1.1rem; margin-right: 1.1rem; }
.tile .art-wide { aspect-ratio: 16 / 10; border-radius: 0; margin-bottom: 0.6rem; }
.tile:hover { border-color: var(--accent); }
.tile-title { font-size: 1rem; font-weight: 700; }
.explain-eli5 { font-size: 1rem; line-height: 1.55; font-weight: 400; }
.explainer .ex-stage { aspect-ratio: 21 / 9; }
.ex-scene img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-scene.on img { animation: ex-pan 8s ease-out forwards; }
@keyframes ex-pan { from { transform: scale(1); } to { transform: scale(1.08); } }
.explainer a { color: inherit; }
@media (max-width: 820px) {
  .opinions { grid-template-columns: 1fr; }
  .explainer .ex-stage { aspect-ratio: 16 / 9; }
}
.tile > .art { aspect-ratio: 16 / 10; border-radius: 0; margin: 0 0 0.6rem; width: 100%; }
.tile > .art.art-photo { height: auto; }
.opinions { align-items: stretch; }
.ex-scene video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A lone card (for example one Travel entry) uses the full row: picture left, text right. */
@media (min-width: 821px) {
  .opinions > .opinion:only-of-type.has-art { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
  .opinions > .opinion:only-of-type.has-art > .art { order: 0; width: 42%; aspect-ratio: auto; min-height: 16rem; flex: none; }
  .opinions > .opinion:only-of-type.has-art > .art-body { flex: 1; padding: 1.5rem; }
}
@media (min-width: 821px) {
  .opinions > .opinion:only-of-type.has-art > .art { order: -1; max-height: 22rem; height: auto; min-height: 14rem; }
}

/* Playbook page: header card, then evidence and steps side by side, then sources */
.playbooks > button.quiet { justify-self: start; }
.pb-head.has-art { display: flex; flex-direction: row; gap: 0; align-items: stretch; background: rgba(255, 255, 255, 0.72); border: 1px solid var(--rule); border-radius: 1rem; overflow: hidden; }
.pb-head.has-art > .art { order: -1; width: 38%; flex: none; aspect-ratio: auto; min-height: 14rem; max-height: 20rem; border-radius: 0; position: static; }
.pb-head .art-body { padding: 1.5rem; align-self: center; flex: 1; }
.pb-head h2 { margin: 0.25rem 0 0.75rem; }
.pb-head .pb-for { margin: 0; }
.pb-problem { margin: 0; }
.pb-card { padding: 1.1rem 1.25rem; }
.pb-card h3, .playbooks .pb-card h3 { margin: 0 0 0.6rem; font-size: 1.0625rem; }
.pb-card .pb-list, .pb-card .pb-sources { max-width: none; margin: 0.25rem 0 0; }
.pb-wide { grid-column: 1 / -1 !important; }
.playbooks > button.quiet:last-child { margin-top: 0; justify-self: start; }
@media (max-width: 820px) { .pb-head.has-art { flex-direction: column; } .pb-head.has-art > .art { width: 100%; min-height: 0; aspect-ratio: 16 / 9; } }
@media (max-width: 820px) { .pb-head .art-body { flex: none; } .pb-head.has-art > .art { height: auto; max-height: none; } }

/* Explainer: compact card at rest, opens large on Play */
.explainer.ex-closed .ex-title, .explainer.ex-closed .ex-stage, .explainer.ex-closed .ex-caption, .explainer.ex-closed .ex-bar, .explainer.ex-closed .ex-note { display: none; }
.explainer:not(.ex-closed) .ex-cover { display: none; }
.explainer.ex-closed { padding: 0.9rem; }
.ex-cover { display: grid; grid-template-columns: minmax(0, 24rem) 1fr; gap: 2rem; align-items: center; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ex-thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 0.75rem; overflow: hidden; background: #0d0b22; }
.ex-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-bigplay { position: absolute; inset: 50% auto auto 50%; width: 3.25rem; height: 3.25rem; margin: -1.625rem 0 0 -1.625rem; border-radius: 50%; background: rgba(20, 18, 46, 0.78); border: 2px solid #f3e7c0; transition: transform 0.2s; }
.ex-bigplay::after { content: ""; position: absolute; left: 1.3rem; top: 0.95rem; border-left: 0.95rem solid #f3e7c0; border-top: 0.65rem solid transparent; border-bottom: 0.65rem solid transparent; }
.ex-cover:hover .ex-bigplay, .ex-cover:focus-visible .ex-bigplay { transform: scale(1.1); }
.ex-cover-text { display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; }
.ex-cover-text strong { font-size: 1.125rem; line-height: 1.3; font-weight: 700; }
.ex-cover-text small { font-size: 0.8125rem; opacity: 0.65; }
.ex-cover-go { margin-top: 0.4rem; padding: 0.45rem 1.25rem; border-radius: 999px; background: #e8697d; color: #14122e; font-weight: 600; }
@media (max-width: 560px) { .ex-cover { grid-template-columns: 1fr; } .explainer.ex-closed { max-width: none; } }

/* Imagine: doors that open on a new place */
.door-gate { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.door-gate i { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(#171433, #0b0a1f); transition: transform 0.65s cubic-bezier(0.7, 0, 0.3, 1); }
.door-l { left: 0; transform: translateX(-101%); border-right: 1px solid rgba(243, 231, 192, 0.35); }
.door-r { right: 0; transform: translateX(101%); border-left: 1px solid rgba(243, 231, 192, 0.35); }
.door-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(255, 226, 150, 0.9), rgba(255, 226, 150, 0) 55%); opacity: 0; transition: opacity 0.5s; }
.door-gate.shut i { transform: none; }
.door-gate.opening .door-glow { opacity: 1; transition-duration: 0.3s; }
.door-gate.opening .door-l { transform: translateX(-101%); transition-duration: 1s; transition-delay: 0.1s; }
.door-gate.opening .door-r { transform: translateX(101%); transition-duration: 1s; transition-delay: 0.1s; }
.door-gate.opening .door-glow { animation: door-fade 1.1s ease-out 0.2s forwards; }
@keyframes door-fade { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .door-gate { display: none; } }
@media (min-width: 900px) { .tabs { flex-wrap: nowrap; } .identity { flex: 1 1 auto; min-width: 0; } }

/* Playbook head: text side is filled, evenly spaced */
.pb-head .art-body { display: flex; flex-direction: column; justify-content: space-between; gap: 1.1rem; padding: 1.5rem 1.75rem; }
.pb-head .pb-for { margin: 0; }
.pb-head h2 { margin: 0; font-size: 1.75rem; line-height: 1.15; }
.pb-head .pb-problem { margin: 0; }
.pb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.pb-stat { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.75rem 0.9rem; border: 1px solid var(--rule); border-radius: 0.75rem; background: rgba(255, 255, 255, 0.7); font-size: 0.8125rem; color: var(--mist); }
.pb-stat b { font-size: 1.5rem; line-height: 1; color: var(--chalk); }
.pb-head .art-body > button { align-self: flex-start; }
@media (min-width: 821px) { .pb-head.has-art > .art { align-self: stretch; height: auto; min-height: 100%; object-fit: cover; } }

/* Rooms: the place behind a star's door */
body.in-room-view { overflow: hidden; }
.room { position: fixed; inset: 0; z-index: 12; overflow-y: auto; padding: 1.25rem 2rem 2.5rem; color: #f3e7c0; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--glow) 30%, #14122e), #0b0a1f 70%); animation: room-in 0.8s ease-out; }
@keyframes room-in { from { opacity: 0; transform: scale(1.04); } }
.room-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 76rem; margin: 0 auto 1rem; }
.room-top .quiet { color: #f3e7c0; border-color: rgba(243, 231, 192, 0.35); }
.room-tag { margin: 0; opacity: 0.7; font-size: 0.875rem; text-align: right !important; }
.room-grid { max-width: 76rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.25rem; grid-template-areas: "head talk" "film talk" "onos talk"; align-items: stretch; }
.room-card { padding: 1.25rem 1.5rem; border: 1px solid rgba(243, 231, 192, 0.18); border-radius: 1rem; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.room-head { grid-area: head; } .room-film { grid-area: film; padding: 0; } .room-onos { grid-area: onos; } .room-talk { grid-area: talk; display: flex; flex-direction: column; gap: 0.9rem; }
.room-head h2 { margin: 0; font-size: 1.75rem; line-height: 1.2; text-align: left !important; }
.room-card h3 { margin: 0; font-size: 1.0625rem; }
.room-card p { text-align: left !important; hyphens: none !important; }
.room-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0d0b22; }
.room-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-art.pan { animation: ex-pan 24s ease-out forwards; }
.room-words { position: absolute; inset: auto 0 0 0; margin: 0; padding: 2.5rem 1.5rem 1.25rem; font-size: 1.25rem; line-height: 1.4; background: linear-gradient(transparent, rgba(11, 10, 31, 0.92)); opacity: 0; }
.room-words.in { animation: room-words 0.9s ease-out forwards; }
.room-words.last { font-size: 1.75rem; font-weight: 700; }
@keyframes room-words { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
.room-progress { height: 3px; background: rgba(243, 231, 192, 0.15); } .room-progress i { display: block; height: 100%; width: 0; background: #e8697d; transition: width 0.6s; }
.room-film > .quiet { margin: 0.9rem 1.5rem 1rem; color: #f3e7c0; border-color: rgba(243, 231, 192, 0.35); }
.room-onos { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.room-onos p { margin: 0; line-height: 1.5; }
.room-onos .quiet { color: #f3e7c0; border-color: rgba(243, 231, 192, 0.35); }
.room-posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; overflow-y: auto; max-height: 26rem; }
.room-posts li { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.65rem 0.8rem; border-radius: 0.75rem; background: rgba(255, 255, 255, 0.07); }
.room-posts b { font-size: 0.8125rem; color: #e8697d; }
.room-status { margin: 0; font-size: 0.875rem; opacity: 0.75; }
.room-form { display: flex; flex-direction: column; gap: 0.6rem; }
.room-form input, .room-form textarea { width: 100%; box-sizing: border-box; padding: 0.6rem 0.8rem; border-radius: 0.75rem; border: 1px solid rgba(243, 231, 192, 0.3); background: rgba(255, 255, 255, 0.08); color: inherit; font: inherit; }
.room-join, .room-form .solid { align-self: flex-start; }
@media (max-width: 820px) { .room { padding: 1rem; } .room-grid { grid-template-columns: 1fr; grid-template-areas: "head" "film" "talk" "onos"; } }
.room-form[hidden], .room-join[hidden], .room-film > .quiet[hidden] { display: none; }
.room-art { filter: saturate(0.75) brightness(0.8); }

.rights-card { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem; }
.rights-card .lede, .rights-card .opinion-meta, .rights-card .rights-quote, .rights-card .rights-motto, .rights-card .pf-note { margin: 0; }
.rights-card .rights-quote { font-size: 1.125rem; max-width: none; }
.rights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.rights-grid .rights-point { margin: 0; }
@media (max-width: 820px) { .rights-grid { grid-template-columns: 1fr; } }
.opinions > .rights-card { grid-column: 1 / -1; }
.rights-card .rights-motto { font-size: 1.125rem; font-weight: 700; }

/* Imagine header: one tidy line of words and buttons, tabs below with room to breathe */
@media (min-width: 900px) {
  .masthead { display: grid; grid-template-columns: 1fr auto; column-gap: 1.5rem; row-gap: 1.5rem; align-items: center; padding: 1.75rem 2rem 0; }
  .identity { display: contents; }
  #tagline, .identity p { grid-column: 1; grid-row: 1; max-width: none; white-space: nowrap; }
  .actions { grid-column: 2; grid-row: 1; flex-wrap: nowrap; white-space: nowrap; }
  .tabs { grid-column: 1 / -1; grid-row: 2; margin-top: 0; flex-wrap: nowrap; }
}
#map.all-stars .link { stroke-opacity: 0.16; }
#map.all-stars.has-focus .link.is-lit { stroke-opacity: 0.7; }
