:root {
  --night: #102018;
  --ink: #1a1914;
  --cream: #f3ead7;
  --cream-deep: #e6d8bf;
  --gold: #e4c27a;
  --moss: #1e3328;
  --moss-mid: #3d5c45;
  --synth: #7ddec8;
  --dusk: #c47d92;
  --red: #9a342c;
  --sky-1: #1a1024;
  --sky-2: #163026;
  --glow: rgba(196, 125, 146, 0.4);
  --glow-2: rgba(228, 194, 122, 0.18);
  color-scheme: dark;
}

html[data-band="night"] {
  --sky-1: #070b12;
  --sky-2: #0c1916;
  --glow: rgba(125, 222, 200, 0.16);
  --glow-2: rgba(80, 60, 120, 0.28);
}

html[data-band="dawn"] {
  --sky-1: #2a1520;
  --sky-2: #1c2820;
  --glow: rgba(232, 160, 120, 0.34);
  --glow-2: rgba(196, 125, 146, 0.22);
}

html[data-band="day"] {
  --sky-1: #1a2c22;
  --sky-2: #243628;
  --glow: rgba(228, 194, 122, 0.3);
  --glow-2: rgba(125, 154, 114, 0.28);
}

html[data-band="dusk"] {
  --sky-1: #1a1024;
  --sky-2: #163026;
  --glow: rgba(196, 125, 146, 0.42);
  --glow-2: rgba(228, 194, 122, 0.2);
}

* { box-sizing: border-box; }

html { background: #070a09; scroll-padding-top: 88px; overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--cream);
  font-family: Literata, Georgia, "Iowan Old Style", serif;
  font-size: 18px;
  line-height: 1.5;
  background: #070a09;
  -webkit-font-smoothing: antialiased;
}

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

button { cursor: pointer; }

::selection { background: var(--gold); color: var(--ink); }

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

[hidden] { display: none !important; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 60;
  background: var(--cream);
  color: var(--ink);
  padding: 6px 10px;
}

.skip:focus { top: 12px; }

.sky,
.vignette,
.grain,
.scan,
.bezel,
.branch,
#flies,
.orb {
  pointer-events: none;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(880px 540px at 88% -10%, var(--glow), transparent 62%),
    radial-gradient(680px 520px at -8% 108%, var(--glow-2), transparent 58%),
    radial-gradient(520px 380px at 72% 120%, rgba(31, 107, 69, 0.28), transparent 62%),
    linear-gradient(180deg, var(--sky-1), var(--sky-2) 52%, #080b09);
}

.orb {
  position: fixed;
  z-index: 1;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
}

.o1 {
  width: 280px;
  height: 280px;
  background: #2f6a4a;
  top: 8%;
  left: -60px;
  animation: drift 32s ease-in-out infinite;
}

.o2 {
  width: 220px;
  height: 220px;
  background: #6a3058;
  top: 14%;
  right: 4%;
  animation: drift 38s ease-in-out infinite reverse;
}

.o3 {
  width: 180px;
  height: 180px;
  background: #14685e;
  bottom: 12%;
  left: 28%;
  opacity: 0.28;
  animation: drift 44s ease-in-out infinite;
}

@keyframes drift {
  50% { transform: translate(28px, -22px); }
}

#flies {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 6;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.55) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 7;
  opacity: 0.18;
  mix-blend-mode: overlay;
}

.scan {
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.18;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.28) 0 1px,
    transparent 1px 4px
  );
  mix-blend-mode: multiply;
}

.bezel {
  position: fixed;
  inset: 0;
  z-index: 26;
}

.bezel i {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid rgba(228, 194, 122, 0.75);
}

.bezel i:nth-child(1) { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.bezel i:nth-child(2) { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }
.bezel i:nth-child(3) { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; }
.bezel i:nth-child(4) { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }

.branch {
  position: fixed;
  z-index: 1;
  left: -30px;
  bottom: 36px;
  width: 190px;
  height: auto;
  opacity: 0.55;
}

.top {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px 28px 14px;
  background: rgba(8, 12, 10, 0.94);
  border-bottom: 1px solid rgba(228, 194, 122, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.worlds {
  grid-column: 1;
  display: flex;
  gap: 6px;
}

.world {
  background: transparent;
  border: 1px solid rgba(228, 194, 122, 0.35);
  color: rgba(228, 194, 122, 0.78);
  font-family: VT323, "Courier New", monospace;
  font-size: 16px;
  letter-spacing: 0.06em;
  padding: 0 8px;
  line-height: 1.35;
}

.world.on {
  color: #102018;
  background: var(--gold);
  border-color: var(--gold);
}

.horizon,
.pythia-vine { display: none; }

.wordmark {
  justify-self: start;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: var(--cream);
}

.word {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 560;
  font-size: 2rem;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-shadow:
    1px 0 rgba(196, 125, 146, 0.55),
    -1px 0 rgba(125, 222, 200, 0.4);
}

.sub,
.bag-kicker,
.moon-name,
.today-line,
.track-meta,
.field-label,
.stats {
  font-family: Outfit, "Avenir Next", sans-serif;
}

.sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(243, 234, 215, 0.62);
}

.moon-readout {
  display: flex;
  align-items: center;
  gap: 10px;
}

.moon-name {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.today-line {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 234, 215, 0.62);
}

.moon-disc {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  flex: none;
  background: radial-gradient(circle at 32% 32%, #fff6d8, #e4c27a 46%, #9a7040);
  box-shadow: 0 0 16px rgba(228, 194, 122, 0.35);
}

.moon-disc > span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #243028, #0c100e 70%);
  transform: translateX(var(--tx, 30%));
}

.moon-disc.lg { width: 58px; height: 58px; box-shadow: none; }

.top-actions {
  justify-self: end;
  display: flex;
  gap: 8px;
}

.texty {
  background: transparent;
  border: 1px solid rgba(228, 194, 122, 0.4);
  color: var(--gold);
  font-family: VT323, "Courier New", monospace;
  font-size: 20px;
  letter-spacing: 0.06em;
  padding: 2px 10px 0;
}

.texty:hover { background: rgba(228, 194, 122, 0.08); }

.nights-toggle { display: none; }

.bag-panel {
  position: fixed;
  z-index: 62;
  top: var(--chrome-header, 124px);
  right: 18px;
  width: min(340px, calc(100% - 28px));
  max-height: calc(100dvh - var(--chrome-header, 124px) - 16px - env(safe-area-inset-bottom));
  padding: 18px 18px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(14, 22, 18, 0.94);
  border: 1px solid rgba(228, 194, 122, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.bag-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--synth);
}

.bag-panel h2 {
  margin: 4px 0 8px;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 2rem;
}

.bag-copy {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(243, 234, 215, 0.86);
}

.bag-row { display: flex; flex-wrap: wrap; gap: 8px; }

.mini {
  font-family: VT323, "Courier New", monospace;
  font-size: 20px;
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(228, 194, 122, 0.45);
  padding: 4px 10px 2px;
}

.mini:hover { background: rgba(228, 194, 122, 0.1); }

.restore { margin-top: 10px; }

.bag-tour-kicker {
  margin-top: 14px;
  margin-bottom: 2px;
}

.bag-tour-row {
  gap: 6px;
}

.bag-tour-row .tour-mini {
  font-size: 15px;
  line-height: 1.15;
  padding: 2px 7px 1px;
  letter-spacing: 0.06em;
  color: rgba(243, 234, 215, 0.82);
  border-color: rgba(228, 194, 122, 0.28);
}

.bag-tour-row .tour-mini:hover {
  color: var(--gold);
  border-color: rgba(228, 194, 122, 0.5);
  background: rgba(228, 194, 122, 0.08);
}

.bag-you {
  margin-top: 16px;
  padding-top: 4px;
  border-top: 1px solid rgba(228, 194, 122, 0.22);
}

.bag-you .field-label { color: var(--gold); }

.bag-you .profile-note,
.bag-you label {
  color: rgba(243, 234, 215, 0.86);
}

.bag-you .ghost,
.bag-you .profile-out {
  color: var(--gold);
  border-color: rgba(228, 194, 122, 0.45);
  background: transparent;
}

.bag-you .ghost:hover { background: rgba(228, 194, 122, 0.1); }

.bag-you textarea,
.bag-you input[type="email"],
.bag-you input[type="time"] {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  color: var(--cream);
  color-scheme: dark;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(228, 194, 122, 0.35);
  font-family: Literata, Georgia, serif;
  font-size: 15px;
  padding: 8px 10px;
}

.bag-you textarea { min-height: 72px; resize: vertical; }

.bag-law {
  display: flex;
  gap: 14px;
}

.bag-law a { color: var(--gold); }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 16;
  background: rgba(0, 0, 0, 0.45);
}

.stage {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 740px);
  justify-content: center;
  align-content: safe center;
  gap: 36px;
  width: min(1080px, calc(100% - 48px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 136px 0 96px;
  align-items: start;
}

.nights-head h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.nights {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.nights-stick {
  position: relative;
  z-index: 2;
  flex: none;
  padding: 2px 0 10px;
}

.nights-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.nights-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.night-find { display: block; }

.night-find input {
  width: 100%;
  box-sizing: border-box;
  font-family: VT323, "Courier New", monospace;
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(228, 194, 122, 0.35);
  border-radius: 0;
  padding: 5px 10px 3px;
}

.night-find input::placeholder { color: rgba(228, 194, 122, 0.42); }

.night-find input:focus { border-color: var(--gold); }

.chip-row,
.mood-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.chip {
  font-family: VT323, "Courier New", monospace;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(228, 194, 122, 0.35);
  padding: 0 8px 1px;
}

.chip:hover { border-color: var(--gold); }

.chip.on {
  color: #102018;
  background: var(--gold);
  border-color: var(--gold);
}

.mood-pick {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.mood-pick i {
  display: block;
  width: 10px;
  height: 10px;
  margin: 6px;
  border-radius: 50%;
  background: var(--dot, var(--gold));
  box-shadow: 0 0 8px var(--dot, var(--gold));
}

.mood-pick.on i {
  box-shadow: 0 0 0 2px var(--cream), 0 0 10px var(--dot, var(--gold));
}

.night-group {
  margin: 16px 0 0;
  padding: 2px 10px 0;
  font-family: VT323, "Courier New", monospace;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.night-empty {
  margin: 0;
  padding: 14px 10px;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  color: rgba(243, 234, 215, 0.62);
}

.constellation {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 8px;
  min-height: 16px;
}

.dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.dot i {
  display: block;
  width: 8px;
  height: 8px;
  margin: 3px;
  border-radius: 50%;
  background: var(--dot, var(--gold));
  box-shadow: 0 0 8px var(--dot, var(--gold));
}

.dot.on i { box-shadow: 0 0 0 2px var(--night), 0 0 0 3px var(--cream), 0 0 8px var(--dot); }

#list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.track {
  width: 100%;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(243, 234, 215, 0.08);
  border-left: 2px solid transparent;
  padding: 11px 8px 11px 10px;
  color: inherit;
}

.track:hover { background: rgba(243, 234, 215, 0.05); }

.track.on {
  border-left-color: var(--gold);
  background: rgba(243, 234, 215, 0.06);
}

.track-no {
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold);
  padding-top: 4px;
}

.track.on .track-no { color: var(--synth); }

.track-title {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.track.empty .track-title,
.track.empty .track-no,
.track.empty .track-meta { color: rgba(243, 234, 215, 0.38); }

.track-meta {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 234, 215, 0.52);
}

.stats {
  margin: 16px 0 0;
  font-family: VT323, "Courier New", monospace;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: rgba(125, 222, 200, 0.8);
}

.paper-wrap { position: relative; min-width: 0; }

.paper-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 16px -8px -10px 18px;
  background: #ddcfb4;
  transform: rotate(1.1deg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.paper-wrap::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 8% -6%;
  background: radial-gradient(ellipse, rgba(228, 194, 122, 0.2), transparent 68%);
  filter: blur(10px);
}

.tape {
  position: absolute;
  z-index: 3;
  top: -12px;
  left: 54px;
  width: 108px;
  height: 26px;
  background: rgba(228, 205, 156, 0.62);
  border-left: 2px solid rgba(255, 255, 255, 0.28);
  border-right: 2px solid rgba(255, 255, 255, 0.18);
  transform: rotate(-3deg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.paper {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 90px),
    var(--cream);
  color: var(--ink);
  border-radius: 2px 16px 18px 3px;
  overflow: clip;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  animation: rise 0.7s ease both;
  container-type: inline-size;
  container-name: page;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.paper::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, #174e34 0 4px, #e2b340 4px 8px, #9a342c 8px 12px);
}

.wash {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(520px 460px at 100% -6%, color-mix(in srgb, var(--wash, transparent) 50%, transparent), transparent 72%),
    radial-gradient(ellipse 180% 170% at 100% 0%, color-mix(in srgb, var(--wash, transparent) 43%, transparent) 0%, color-mix(in srgb, var(--wash, transparent) 29%, transparent) 52%, color-mix(in srgb, var(--wash, transparent) 21%, transparent) 78%, color-mix(in srgb, var(--wash, transparent) 14%, transparent) 100%),
    radial-gradient(420px 360px at -8% 108%, color-mix(in srgb, var(--wash, transparent) 50%, transparent), transparent 74%);
  opacity: 1;
  filter: saturate(0.5);
  pointer-events: none;
}

.inner {
  position: relative;
  z-index: 1;
  padding: 48px 48px 56px 56px;
}

.kicker {
  margin: 0 0 10px;
  font-family: Outfit, sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5d6e52;
}

h1, .entry-title, .title-in {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-style: italic;
  letter-spacing: -0.035em;
  line-height: 0.96;
  color: #17241c;
}

.welcome h1,
.entry-title {
  margin: 0;
  font-size: clamp(3rem, 8cqi, 4.6rem);
  max-width: 12ch;
  padding-right: 64px;
}

.dek {
  margin: 14px 0 0;
  max-width: 28ch;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 460;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #3c4a3a;
}

.lede {
  max-width: 42ch;
  margin: 16px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #2a2a24;
}

.door-fare,
.door-shelf {
  max-width: 42ch;
  margin: 12px 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

.door-fare { color: #3c4a3a; }
.door-shelf { color: #5c5346; }

.air {
  margin: 16px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  color: #3d5c45;
}

.rule {
  width: 92px;
  height: 4px;
  margin: 16px 0 8px;
  background: linear-gradient(90deg, #174e34 0 33%, #e2b340 33% 66%, #9a342c 66% 100%);
}

.activity {
  margin: 8px 0 0;
  max-width: 46ch;
  font-family: Outfit, sans-serif;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: #5c4a2e;
}

.activity::before { content: "→ "; color: var(--red); }

.when {
  margin: 18px 0 0;
  font-family: Outfit, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a5a42;
}

.prose {
  max-width: 62ch;
  margin-top: 18px;
  font-size: 1.125rem;
  line-height: 1.65;
}

.prose p { margin: 0 0 1em; }

.prose p:last-child { margin-bottom: 0; }

.lead-when { margin-top: 0; }

.page-cut {
  margin: 8px 0 0;
  padding: 12px 16px 16px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 46%),
    #efe4cc;
  border: 1px solid rgba(26, 25, 20, 0.16);
  box-shadow:
    inset 3px 0 0 #174e34,
    inset 6px 0 0 #e2b340,
    inset 9px 0 0 #9a342c;
}

.page-cut .prose {
  max-width: none;
  margin-top: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.name-rule,
html .paper[data-kind="talk"] .rule.name-rule {
  width: 92px;
  height: 4px;
  background: linear-gradient(90deg, #174e34 0 33%, #e2b340 33% 66%, #9a342c 66% 100%);
}

html[data-theme="pythia"] .paper[data-kind="talk"] .rule.name-rule,
html[data-theme="pythia"] .name-rule {
  background: linear-gradient(90deg, #5cefff 0 33%, #ffb04a 33% 66%, #ff4d88 66% 100%);
}

html .paper[data-kind="talk"] .page-cut {
  background:
    linear-gradient(180deg, rgba(226, 179, 64, 0.08), transparent 46%),
    #12201a;
  border-color: rgba(226, 179, 64, 0.35);
  box-shadow:
    inset 3px 0 0 #174e34,
    inset 6px 0 0 #e2b340,
    inset 9px 0 0 #9a342c;
}

html .paper[data-kind="talk"] .page-cut .prose {
  max-width: none;
  padding-left: 0;
  border-left: 0;
}

html[data-theme="pythia"] .page-cut {
  background:
    linear-gradient(180deg, rgba(92, 239, 255, 0.08), transparent 42%),
    #10141e;
  border-color: rgba(92, 239, 255, 0.28);
  box-shadow:
    inset 3px 0 0 #5cefff,
    inset 6px 0 0 #ffb04a,
    inset 9px 0 0 #ff4d88;
}

.read-actions { gap: 18px; margin-top: 18px; }

.read-actions .linkish {
  padding: 5px 10px 4px;
  border: 1px solid #174e34;
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #24382c;
}

.read-actions .linkish:nth-child(2) { border-color: #c4a15a; }
.read-actions .linkish:nth-child(3) { border-color: #9a342c; }

.read-actions .linkish::after { content: none; }

.read-actions .linkish:hover {
  background: rgba(16, 32, 24, 0.05);
  color: #102018;
}

.cassette {
  position: relative;
  margin: 0 0 18px;
  padding: 12px 14px 10px 18px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 46%),
    color-mix(in srgb, var(--tape-tint, #e4c27a) 16%, #efe4cc);
  border: 1px solid rgba(26, 25, 20, 0.16);
  box-shadow:
    inset 3px 0 0 #174e34,
    inset 6px 0 0 #e2b340,
    inset 9px 0 0 #9a342c;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cassette.recording {
  border-color: rgba(154, 52, 44, 0.65);
  box-shadow:
    inset 3px 0 0 #174e34,
    inset 6px 0 0 #e2b340,
    inset 9px 0 0 #9a342c,
    0 0 0 2px rgba(226, 179, 64, 0.55),
    0 0 18px rgba(154, 52, 44, 0.35);
  animation: cassette-rec-glow 1.4s ease-in-out infinite;
}

.cassette.recording::after {
  content: "recording";
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: VT323, "Courier New", monospace;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f8e6d4;
  background: #9a342c;
  padding: 1px 8px 0;
  border: 1px solid #e2b340;
  box-shadow: 2px 2px 0 rgba(26, 25, 20, 0.35);
  pointer-events: none;
}

.cassette.playing:not(.recording) {
  border-color: rgba(228, 194, 122, 0.75);
  box-shadow:
    inset 3px 0 0 #174e34,
    inset 6px 0 0 #e2b340,
    inset 9px 0 0 #9a342c,
    0 0 0 2px rgba(226, 179, 64, 0.45);
}

.cassette.paused:not(.playing):not(.recording)::after {
  content: "paused";
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: VT323, "Courier New", monospace;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #102018;
  background: #c9a24a;
  padding: 1px 8px 0;
  border: 1px solid #102018;
  box-shadow: 2px 2px 0 #9a342c;
  pointer-events: none;
}

.cassette.playing:not(.recording)::after {
  content: "playing";
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: VT323, "Courier New", monospace;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #102018;
  background: #e2b340;
  padding: 1px 8px 0;
  border: 1px solid #102018;
  box-shadow: 2px 2px 0 #9a342c;
  pointer-events: none;
}

@keyframes cassette-rec-glow {
  0%, 100% { box-shadow: inset 3px 0 0 #174e34, inset 6px 0 0 #e2b340, inset 9px 0 0 #9a342c, 0 0 0 2px rgba(226, 179, 64, 0.45), 0 0 12px rgba(154, 52, 44, 0.28); }
  50% { box-shadow: inset 3px 0 0 #174e34, inset 6px 0 0 #e2b340, inset 9px 0 0 #9a342c, 0 0 0 2px rgba(226, 179, 64, 0.75), 0 0 22px rgba(154, 52, 44, 0.48); }
}

.cassette-window {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #1c1914;
  color: #f0d78c;
}

.cassette-transport {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.transport-flag {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: VT323, "Courier New", monospace;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.transport-rec {
  color: #ff9a88;
}

.transport-play {
  color: #e2b340;
}

.rec-led {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff4a3d;
  box-shadow: 0 0 6px rgba(255, 74, 61, 0.85);
  animation: rec-led-blink 1.1s step-end infinite;
}

.cassette.recording .transport-rec {
  display: inline-flex;
}

.cassette.playing:not(.recording) .transport-play {
  display: inline-flex;
}

.cassette-lcd {
  width: 100%;
  font-family: VT323, "Courier New", monospace;
  font-size: 26px;
  letter-spacing: 0.08em;
  text-align: center;
}

@keyframes rec-led-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.reel {
  flex: none;
  width: 26px;
  height: 26px;
  border: 2px solid #c9a24a;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #c9a24a 0 10deg, transparent 10deg 28deg);
}

.cassette.recording .cassette-window {
  background: #2a1210;
  color: #ffb89a;
  box-shadow: inset 0 0 0 1px rgba(226, 179, 64, 0.45);
}

.cassette.recording .cassette-lcd {
  color: #ffd4c8;
  text-shadow: 0 0 8px rgba(154, 52, 44, 0.55);
}

.cassette.playing:not(.recording) .cassette-window {
  background: #141c16;
  color: #e8d08a;
  box-shadow: inset 0 0 0 1px rgba(226, 179, 64, 0.55);
}

.cassette.playing:not(.recording) .cassette-lcd {
  color: #f0d78c;
}

.cassette.live .reel { animation: spin var(--spin, 1.8s) linear infinite; }
.cassette.recording .reel-l { animation-duration: 0.88s; }
.cassette.recording .reel-r { animation-duration: 1.65s; animation-direction: reverse; }
.cassette.rew .reel { animation-direction: reverse; }
.cassette.has-tape .cassette-window { cursor: pointer; }
.cassette.shuttle .cassette-window { touch-action: none; cursor: ns-resize; }
.cassette.ff .cassette-window { transform: translateY(-2px); }
.cassette.rew .cassette-window { transform: translateY(2px); }

@keyframes spin { to { transform: rotate(1turn); } }

.tape-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tape-mode {
  font-family: VT323, "Courier New", monospace;
  font-size: 18px;
  letter-spacing: 0.04em;
  padding: 0 10px 1px;
  color: #3c3428;
  background: transparent;
  border: 1px solid rgba(26, 25, 20, 0.35);
}

.tape-mode.on {
  background: #1c1914;
  color: #f0d78c;
  border-color: #1c1914;
}

.tape-mode[data-mode="lofi"].on {
  background: #9a342c;
  color: #f8e6d4;
  border-color: #9a342c;
  box-shadow: 2px 2px 0 #e2b340;
  transform: rotate(-1.5deg);
}

.tape-mode:disabled { opacity: 0.55; }

.cassette.lofi .cassette-window {
  background: #241416;
  color: #f0b48a;
}

.cassette-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.cassette-keys .solid,
.cassette-keys .ghost { font-size: 20px; }

.deck-stop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 36px;
  padding: 2px 10px 1px;
  font-size: 20px;
}

.deck-stop.on {
  background: #102018;
  color: #f0d78c;
  border-color: #e2b340;
  box-shadow: 2px 2px 0 #9a342c;
}

.deck-play.on {
  background: #102018;
  color: #e2b340;
  border-color: #e2b340;
  box-shadow: 2px 2px 0 #9a342c;
}

.cassette-keys [data-action="tape-rec"].on,
.cassette-keys [data-action="tape-rec"].on:active {
  background: #9a342c;
  color: #f8e6d4;
  border-color: #e2b340;
  transform: translate(1px, 1px);
  box-shadow:
    0 0 0 2px rgba(226, 179, 64, 0.5),
    0 0 12px rgba(154, 52, 44, 0.62),
    0 0 26px rgba(226, 179, 64, 0.32),
    inset 0 0 14px rgba(255, 230, 200, 0.14);
  animation: rec-button-glow 1.15s ease-in-out infinite;
}

@keyframes rec-button-glow {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(226, 179, 64, 0.42),
      0 0 10px rgba(154, 52, 44, 0.48),
      0 0 20px rgba(226, 179, 64, 0.24),
      inset 0 0 10px rgba(255, 230, 200, 0.1);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(226, 179, 64, 0.9),
      0 0 18px rgba(154, 52, 44, 0.78),
      0 0 38px rgba(255, 196, 96, 0.42),
      inset 0 0 18px rgba(255, 240, 210, 0.2);
  }
}

.deck-dub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 36px;
  padding: 2px 6px 1px;
  line-height: 0;
}

.deck-machine {
  width: 36px;
  height: 24px;
  display: block;
  overflow: visible;
}

.deck-machine rect,
.deck-machine circle,
.deck-machine path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.deck-machine .hub,
.deck-machine .deck-head { fill: currentColor; stroke: none; }
.deck-reel { transform-box: fill-box; transform-origin: center; }
.deck-dub.on {
  background: #102018;
  color: #e2b340;
  border-color: #e2b340;
  box-shadow: 2px 2px 0 #9a342c;
}
.deck-dub.on .deck-reel { animation: spin 1.5s linear infinite; }
.deck-dub.on .deck-reel-r { animation-direction: reverse; }

.tape-stack {
  list-style: none;
  margin: 10px 0 0;
  padding: 0 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(280px, 42vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.tape-stack:empty {
  max-height: none;
  overflow: visible;
}

.tape-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(26, 25, 20, 0.12);
  min-width: 0;
}

.tape-row .ghost {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-width: 48px;
  height: 36px;
  font-size: 20px;
  padding: 2px 10px 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.tape-row .linkish {
  flex-shrink: 0;
  padding: 1px 6px 0;
  margin: 0;
  white-space: nowrap;
}

.tape-row .tape-lift {
  margin-left: auto;
  padding: 8px 10px;
}

.tape-row .ghost.tape-words {
  width: 48px;
  max-width: 48px;
  height: 36px;
  padding: 2px 6px 1px;
  line-height: 0;
}

.deck-words {
  width: 32px;
  height: 24px;
  display: block;
  overflow: visible;
  margin: 0 auto;
}

.deck-words rect,
.deck-words path,
.deck-words line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.deck-words .nib {
  fill: currentColor;
  stroke: none;
}

.tape-row .ghost.tape-words:disabled .deck-words {
  animation: words-busy 1.1s ease-in-out infinite;
}

@keyframes words-busy {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (max-width: 820px), (pointer: coarse) {
  .tape-row {
    gap: 8px;
    padding-top: 8px;
  }

  .tape-row .ghost {
    width: auto;
    max-width: none;
    height: 46px;
    font-size: 22px;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0 12px;
  }

  .tape-row .ghost.tape-words {
    width: 46px;
    max-width: 46px;
    height: 46px;
    padding: 0;
  }

  .tape-row .deck-words {
    width: 26px;
    height: 20px;
  }

  .tape-row .linkish {
    font-size: 12px;
    letter-spacing: 0.06em;
    padding: 4px 6px 2px;
  }
}

html[data-shell="expo"] .tape-row .ghost {
  width: auto;
  max-width: none;
  height: 46px;
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0 12px;
}

html[data-shell="expo"] .tape-row .ghost.tape-words {
  width: 46px;
  max-width: 46px;
  height: 46px;
  padding: 0;
}

html[data-shell="expo"] .tape-row .deck-words {
  width: 26px;
  height: 20px;
}

html[data-shell="expo"] .tape-row .linkish {
  font-size: 12px;
}

.tape-row.on .ghost {
  background: #1c1914;
  color: #f0d78c;
  border-color: #1c1914;
}

.cassette > .tape-script { margin-top: 10px; }

.transcript {
  margin: 2px 0 20px;
  border-radius: 4px;
}

.transcript-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: min(360px, 48vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  padding-right: 4px;
}

.transcript-note,
.transcript-live,
.transcript-empty {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #3a3428;
}

.transcript-note span {
  display: block;
  margin-bottom: 3px;
  font-family: Outfit, sans-serif;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d5a32;
}

.transcript-empty { opacity: 0.55; }

.bot-command {
  font-family: VT323, "Courier New", monospace;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #3d5344;
}

.bot-mark {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 6px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: rotate(-8deg);
  filter: drop-shadow(3px 4px 0 rgba(154, 52, 44, 0.55));
}

html .paper[data-kind="talk"] .bot-mark {
  top: 22px;
  left: 4px;
  width: 32px;
  height: 32px;
}

.bot-mark svg { display: block; width: 100%; height: 100%; }

.bot-mark:hover { transform: rotate(-2deg) scale(1.06); }

.bot-card {
  width: min(400px, 100%);
  max-height: min(82vh, 680px);
  overflow-x: hidden;
  overflow-y: auto;
  transform: rotate(1.5deg);
}

.bot-card .line-in {
  display: block;
  width: 100%;
  margin: 2px 0 10px;
  background: transparent;
}

.bot-parts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
}

.bot-part {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  cursor: pointer;
}

.bot-part input { margin-top: 4px; }

.bot-part span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.bot-part b {
  font-family: Outfit, sans-serif;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bot-part i {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.35;
  color: #3a3428;
}

.bot-all { padding-bottom: 8px; border-bottom: 1px solid rgba(26, 25, 20, 0.16); }

.bot-empty {
  margin: 0 0 12px;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .bot-mark, .bot-mark:hover { transform: rotate(-8deg); }
}

.tape-script {
  flex: 1 0 100%;
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #5c4a2e;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  align-items: center;
}

.solid,
.ghost,
.nights-door {
  font-family: VT323, "Courier New", monospace;
  font-size: 22px;
  letter-spacing: 0.03em;
  padding: 6px 14px 4px;
}

.solid {
  background: var(--moss);
  color: var(--cream);
  border: 2px solid var(--moss);
  box-shadow: 3px 3px 0 #c9a24a;
}

.solid:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #c9a24a; }
.solid:active { transform: translate(2px, 2px); box-shadow: none; }

.ghost {
  background: transparent;
  color: var(--moss);
  border: 2px solid var(--moss);
}

.ghost:hover { background: rgba(30, 51, 40, 0.06); }

.door-forgot {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: VT323, "Courier New", monospace;
  font-size: 20px;
  color: var(--moss);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nights-door {
  background: #102018;
  color: #f3ead7;
  border: 2px solid #e2b340;
  box-shadow: 3px 3px 0 #9a342c;
  letter-spacing: 0.06em;
}

.nights-door:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #9a342c; }
.nights-door:active { transform: translate(2px, 2px); box-shadow: none; }

.linkish {
  background: none;
  border: 0;
  padding: 8px 0;
  font-family: Outfit, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6e4034;
}

.linkish:hover { color: var(--red); }

.stamp {
  position: absolute;
  top: 22px;
  right: 20px;
  z-index: 2;
  padding: 7px 8px 6px;
  border: 2px solid rgba(154, 52, 44, 0.72);
  color: rgba(154, 52, 44, 0.82);
  font-family: Outfit, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  transform: rotate(8deg);
  mix-blend-mode: multiply;
}

.stamp.rec { animation: blink 1.15s steps(1) infinite; }

@keyframes blink {
  50% { opacity: 0.25; }
}

.prompt {
  margin: 8px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: #3d5c45;
}

.switch { display: flex; flex-wrap: wrap; margin: 18px 0 4px; }

.seg {
  background: transparent;
  color: var(--moss);
  border: 1px solid var(--moss);
  font-family: Outfit, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 10px;
}

.seg + .seg { margin-left: -1px; }

.seg.on { background: var(--moss); color: var(--cream); }

.field-label {
  display: block;
  margin: 16px 0 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d5a32;
}

.title-in,
.line-in,
.date-in,
.page-body {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  caret-color: var(--red);
}

.title-in {
  margin-top: 6px;
  font-size: clamp(2.2rem, 6cqi, 3.6rem);
  padding: 0 64px 0 0;
}

.title-in::placeholder,
.line-in::placeholder,
.page-body::placeholder { color: rgba(26, 25, 20, 0.32); font-style: italic; }

.line-in,
.date-in {
  font-family: Outfit, sans-serif;
  font-size: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(26, 25, 20, 0.18);
  color-scheme: light;
}

.date-row { max-width: 220px; }

.stones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 8px;
}

.stone {
  width: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5c5144;
  font-family: Outfit, sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.stone i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--stone);
  box-shadow: inset 0 -2px 2px rgba(0, 0, 0, 0.25);
}

.stone.on i { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--moss); }

.page-body {
  display: block;
  margin-top: 8px;
  min-height: 280px;
  resize: vertical;
  font-family: Literata, Georgia, serif;
  font-size: 18px;
  line-height: 32px;
  color-scheme: light;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    rgba(36, 32, 24, 0.14) 31px,
    rgba(36, 32, 24, 0.14) 32px
  );
  background-attachment: local;
}

.medallion {
  position: relative;
  width: 220px;
  height: 220px;
  margin-left: auto;
}

.grooves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 42px, rgba(228, 194, 122, 0.45) 42px 44px, transparent 45px),
    repeating-radial-gradient(circle at 50% 50%, #2a2118 0 1px, #120e0c 2px 4px);
  box-shadow:
    inset 0 0 0 2px rgba(228, 194, 122, 0.4),
    0 24px 50px rgba(0, 0, 0, 0.35);
  animation: spin 46s linear infinite;
}

.grooves::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.16) 48%, transparent 58%);
}

.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 40% 35%, #4a3824, #1a120c 72%);
  box-shadow: 0 0 0 3px rgba(228, 194, 122, 0.75);
}

@keyframes spin { to { transform: rotate(360deg); } }

.welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 8px 18px;
  align-items: center;
}

.keys-slip {
  position: fixed;
  z-index: 30;
  top: 124px;
  right: 28px;
  width: min(340px, calc(100% - 28px));
  padding: 14px 16px 12px 24px;
  background:
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(16, 32, 24, 0.035) 3px 4px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 42%),
    var(--cream);
  color: var(--ink);
  transform: rotate(-2deg);
  box-shadow:
    inset 4px 0 0 #174e34,
    inset 8px 0 0 #e2b340,
    inset 12px 0 0 #9a342c,
    0 22px 48px rgba(0, 0, 0, 0.42);
}

.keys-slip h2 {
  margin: 0 0 8px;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 560;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.keys-tape {
  position: absolute;
  top: -9px;
  right: 28px;
  width: 54px;
  height: 16px;
  background: rgba(228, 205, 156, 0.72);
  transform: rotate(4deg);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.12);
}

.key-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.key-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Outfit, sans-serif;
  font-size: 14px;
  white-space: nowrap;
}

.key-list kbd {
  flex: none;
  min-width: 58px;
  padding: 1px 8px 0;
  text-align: center;
  font-family: VT323, "Courier New", monospace;
  font-size: 20px;
  line-height: 1.2;
  color: #102018;
  background: #fff8ea;
  border: 1px solid rgba(26, 25, 20, 0.28);
  box-shadow: 2px 2px 0 #c9a24a;
}

html[data-theme="pythia"] .keys-slip {
  background:
    linear-gradient(180deg, rgba(92, 239, 255, 0.08), transparent 40%),
    #10141e;
  color: #efe6d6;
  transform: rotate(-1.2deg);
  box-shadow:
    inset 4px 0 0 #5cefff,
    inset 8px 0 0 #ffb04a,
    inset 12px 0 0 #ff4d88,
    0 22px 48px rgba(0, 0, 0, 0.55);
}

html[data-theme="pythia"] .keys-slip h2 {
  font-family: Syne, Outfit, sans-serif;
  font-style: normal;
  font-weight: 700;
  color: #f4fbff;
}

html[data-theme="pythia"] .keys-tape { background: rgba(255, 77, 136, 0.55); }

html[data-theme="pythia"] .cassette {
  background:
    linear-gradient(180deg, rgba(92, 239, 255, 0.08), transparent 42%),
    color-mix(in srgb, var(--tape-tint, #5cefff) 18%, #10141e);
  border-color: rgba(92, 239, 255, 0.28);
  box-shadow:
    inset 3px 0 0 #5cefff,
    inset 6px 0 0 #ffb04a,
    inset 9px 0 0 #ff4d88;
}

html[data-theme="pythia"] .cassette-window {
  background: #070812;
  color: #5cefff;
}

html[data-theme="pythia"] .reel {
  border-color: #5cefff;
  background: repeating-conic-gradient(from 0deg, #5cefff 0 10deg, transparent 10deg 28deg);
}

html[data-theme="pythia"] .tape-row { border-top-color: rgba(92, 239, 255, 0.16); }

html[data-theme="pythia"] .tape-row.on .ghost {
  background: #5cefff;
  color: #061016;
  border-color: #5cefff;
}

html[data-theme="pythia"] .tape-script { color: #d7ecf2; }

html[data-theme="pythia"] .transcript-note,
html[data-theme="pythia"] .transcript-live,
html[data-theme="pythia"] .transcript-empty { color: #d7ecf2; }

html[data-theme="pythia"] .transcript-note span { color: #8fd8ea; }

html .paper[data-kind="talk"] .transcript-note,
html .paper[data-kind="talk"] .transcript-live,
html .paper[data-kind="talk"] .transcript-empty { color: #f4e7cf; }

html .paper[data-kind="talk"] .transcript-note span { color: #e2b340; }

html[data-theme="pythia"] .tape-mode {
  color: #d7ecf2;
  border-color: rgba(92, 239, 255, 0.4);
}

html[data-theme="pythia"] .tape-mode.on {
  background: #5cefff;
  color: #061016;
  border-color: #5cefff;
}

html[data-theme="pythia"] .tape-mode[data-mode="lofi"].on {
  background: #ff4d88;
  color: #1a0610;
  border-color: #ff4d88;
  box-shadow: 2px 2px 0 #ffb04a;
}

html[data-theme="pythia"] .cassette.lofi .cassette-window {
  background: #1a0812;
  color: #ffb07a;
}

html[data-theme="pythia"] .cassette.recording::after {
  color: #1a0610;
  background: #ff4d88;
  border-color: #5cefff;
  box-shadow: 2px 2px 0 #ffb04a;
}

html[data-theme="pythia"] .cassette.playing:not(.recording)::after {
  color: #061016;
  background: #5cefff;
  border-color: #5cefff;
  box-shadow: 2px 2px 0 #ff4d88;
}

html[data-theme="pythia"] .cassette.recording .cassette-window {
  background: #240818;
  color: #ffb8d8;
}

html[data-theme="pythia"] .transport-rec { color: #ffb8d8; }

html[data-theme="pythia"] .rec-led {
  background: #ff4d88;
  box-shadow: 0 0 8px rgba(255, 77, 136, 0.9);
}

html[data-theme="pythia"] .transport-play { color: #5cefff; }

html[data-theme="pythia"] .cassette.playing:not(.recording) .cassette-window {
  background: #081018;
  color: #5cefff;
}

html[data-theme="pythia"] .deck-stop.on,
html[data-theme="pythia"] .deck-play.on {
  background: #061016;
  color: #5cefff;
  border-color: #5cefff;
  box-shadow: 2px 2px 0 #ff4d88;
}

html[data-theme="pythia"] .key-list kbd {
  color: #061016;
  background: #5cefff;
  border-color: #5cefff;
  box-shadow: 2px 2px 0 #ff4d88;
}

.note {
  position: fixed;
  z-index: 28;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%) translateY(8px);
  background: var(--cream);
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  padding: 8px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.note.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.hint {
  position: fixed;
  z-index: 40;
  left: 0;
  top: 0;
  width: max-content;
  max-width: min(240px, calc(100vw - 20px));
  padding: 8px 14px 10px 18px;
  background:
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(16, 32, 24, 0.035) 3px 4px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 34%),
    var(--cream);
  color: var(--ink);
  border-radius: 2px 12px 10px 3px;
  box-shadow:
    inset 3px 0 0 #1f6b45,
    inset 6px 0 0 #e4c27a,
    inset 9px 0 0 #9a342c,
    0 16px 34px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px) rotate(-2deg);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.hint.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) rotate(-1.4deg);
}

.hint.under { transform: translateY(-4px) rotate(1.8deg); }

.hint.under.show { transform: translateY(0) rotate(1.2deg); }

.hint-tape {
  position: absolute;
  top: -8px;
  right: 18px;
  width: 46px;
  height: 14px;
  background: rgba(228, 205, 156, 0.78);
  border-left: 2px solid rgba(255, 255, 255, 0.35);
  border-right: 2px solid rgba(255, 255, 255, 0.16);
  transform: rotate(7deg);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.12);
}

.hint-kicker {
  display: block;
  font-family: VT323, "Courier New", monospace;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3d5344;
  line-height: 1;
  margin-bottom: 3px;
}

.hint-line {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 460;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.transport {
  position: fixed;
  z-index: 22;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(#1c2620, #101612);
  border-top: 1px solid rgba(228, 194, 122, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding-bottom: env(safe-area-inset-bottom);
}

.transport-inner {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
  width: calc(100% - 36px);
  margin: 0 auto;
  padding: 10px 0 12px;
}

.key {
  font-family: VT323, "Courier New", monospace;
  font-size: 20px;
  min-width: 42px;
  height: 36px;
  padding: 0 10px 2px;
  color: var(--gold);
  background: linear-gradient(#2a3830, #17211c);
  border: 1px solid rgba(228, 194, 122, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 0 #070a09;
}

#station,
#tone { position: relative; }

#siren::after,
#tone::after,
#station::after,
#volume::after {
  position: absolute;
  z-index: 3;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 3px;
  font-family: VT323, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  color: #102018;
  background: #f0d78c;
  box-shadow: 1px 1px 0 #9a342c;
}

#siren::after { content: "S"; }
#tone::after { content: "space"; }
#station::after { content: "↑↓"; }
#volume::after { content: "←→"; }

html[data-marks="off"] #siren::after,
html[data-marks="off"] #tone::after,
html[data-marks="off"] #station::after,
html[data-marks="off"] #volume::after { content: none; }

.marks-toggle {
  margin-top: 12px;
  font-family: VT323, "Courier New", monospace;
  font-size: 18px;
  letter-spacing: 0.03em;
  padding: 1px 8px 0;
  color: #102018;
  background: #f0d78c;
  border: 1px solid rgba(26, 25, 20, 0.28);
  box-shadow: 2px 2px 0 #9a342c;
}

.marks-toggle[aria-pressed="false"] {
  background: transparent;
  color: #3c3428;
  box-shadow: none;
}

.key:hover { border-color: var(--gold); }
.key:active { transform: translateY(1px); box-shadow: none; }
.key:disabled { opacity: 0.32; cursor: default; }

.key.lit {
  color: #07110f;
  background: var(--synth);
  border-color: var(--synth);
  box-shadow: 0 0 16px rgba(125, 222, 200, 0.45);
}

.profile {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #e2b340;
  color: #f6e7a8;
  background:
    radial-gradient(circle at 30% 26%, #5a4318, #102018 58%, #070c0a);
  box-shadow:
    inset 0 0 0 2px rgba(226, 179, 64, 0.45),
    0 0 0 3px #1c2620,
    2px 2px 0 #9a342c;
}

.profile svg {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  fill: currentColor;
  filter: drop-shadow(0 0 4px rgba(240, 215, 140, 0.85));
}

.profile[aria-expanded="true"] {
  color: #102018;
  background: radial-gradient(circle at 32% 28%, #fff1c2, #e2b340 52%, #9a342c);
  box-shadow:
    0 0 0 3px #1c2620,
    0 0 16px rgba(226, 179, 64, 0.55);
}

.profile-slip {
  position: fixed;
  z-index: 30;
  right: 16px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  width: min(300px, calc(100% - 28px));
  max-height: calc(100dvh - 108px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 16px 16px 16px 22px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  color: #1a1914;
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 179, 64, 0.45), transparent 42%),
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(16, 32, 24, 0.04) 3px 4px),
    linear-gradient(168deg, #f7f0df, #e7d3a4);
  transform: rotate(-1.2deg);
  box-shadow:
    inset 4px 0 0 #174e34,
    inset 8px 0 0 #e2b340,
    inset 12px 0 0 #9a342c,
    0 22px 48px rgba(0, 0, 0, 0.45);
}

.profile-slip h2 {
  position: relative;
  z-index: 1;
  margin: 2px 0 8px;
  max-width: 9ch;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 560;
  font-size: 2.2rem;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.profile-copy,
.profile-note,
.profile-slip .field-label,
.profile-slip .switch,
.profile-slip .marks-toggle,
.profile-out {
  position: relative;
  z-index: 1;
}

.profile-out {
  margin-top: 16px;
}

.profile-copy {
  margin: 0;
  max-width: 28ch;
  font-size: 15px;
  line-height: 1.45;
}

.profile-note {
  margin: 8px 0 0;
  font-family: VT323, "Courier New", monospace;
  font-size: 18px;
  letter-spacing: 0.03em;
  color: #6a2420;
}

.profile-bolt {
  position: absolute;
  z-index: 0;
  right: -6px;
  bottom: -18px;
  width: 92px;
  height: 92px;
  opacity: 0.18;
  background: #9a342c;
  clip-path: polygon(58% 0, 18% 54%, 46% 54%, 28% 100%, 86% 40%, 54% 40%);
}

.knob {
  position: relative;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #8d7348;
  cursor: ns-resize;
  touch-action: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 10px, rgba(0, 0, 0, 0.4) 11px 12px, transparent 13px),
    radial-gradient(circle at 34% 30%, #7a6852, #2c261e 48%, #100e0c 76%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -7px 8px rgba(0, 0, 0, 0.5),
    0 2px 0 #070a09,
    0 0 0 3px #1c2620;
}

.knob-cap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 11px;
  margin-left: -1px;
  margin-top: -12px;
  border-radius: 1px;
  pointer-events: none;
  background: linear-gradient(#f6edd8, var(--gold));
  transform-origin: 50% 12px;
}

.siren {
  position: relative;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(228, 194, 122, 0.72);
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 46%, #f6edd8 0 2px, #9ae8d6 3px, #1d6a5c 7px, #10211c 11px, #1a221c 14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 10px rgba(125, 222, 200, 0.35),
    0 2px 0 #070a09,
    0 0 0 3px #1c2620;
}

.siren:hover { border-color: var(--synth); }

.siren:active { transform: translateY(1px); box-shadow: inset 0 0 10px rgba(125, 222, 200, 0.35), 0 0 0 3px #1c2620; }

.siren-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: #f6edd8;
  transform: rotate(45deg);
  pointer-events: none;
  box-shadow: 0 0 8px #7ddec8, 8px 0 0 -2px rgba(228, 194, 122, 0.9), -8px 0 0 -2px rgba(125, 222, 200, 0.9);
}

.siren.casting {
  animation: siren-pulse 0.72s ease-in-out infinite;
}

@keyframes siren-pulse {
  50% {
    box-shadow:
      inset 0 0 12px rgba(246, 237, 216, 0.85),
      0 0 16px rgba(125, 222, 200, 0.75),
      0 0 0 3px #1c2620;
  }
}

.lcd {
  flex: none;
  width: min(240px, 22vw);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #0c1410;
  border: 1px solid #2a4034;
  box-shadow: inset 0 0 14px rgba(150, 220, 160, 0.1);
  color: #b7e3a8;
  font-family: VT323, "Courier New", monospace;
  font-size: 22px;
  letter-spacing: 0.04em;
  padding: 4px 12px 2px;
  text-shadow: 0 0 8px rgba(183, 227, 168, 0.45);
}

@media (min-width: 861px) {
  .transport-inner {
    justify-content: flex-start;
    gap: 10px;
  }

  .lcd {
    flex: 1 1 auto;
    width: auto;
    min-height: 46px;
    font-size: 34px;
    line-height: 1;
    padding: 8px 22px 6px;
  }
}

#bars {
  width: 112px;
  height: 28px;
  display: block;
  flex: none;
}

.transport-stat {
  font-family: VT323, "Courier New", monospace;
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 0.06em;
  flex: none;
}

@container page (max-width: 640px) {
  .welcome { grid-template-columns: 1fr; }
  .medallion { width: 180px; height: 180px; margin: 8px auto 0; }
  .welcome h1, .entry-title { padding-right: 58px; }
}

@media (max-width: 860px) {
  #bars,
  .lcd { display: none; }
  .tone-on { display: none; }
  .top,
  .transport {
    position: fixed;
    left: 0;
    right: 0;
  }

  .top { top: 0; }
  .transport { bottom: 0; }

  .transport-inner { width: min(1080px, calc(100% - 16px)); }
  .profile-slip .profile-marks { display: none; }
  .key { min-width: 34px; padding: 0 6px 2px; }
  .knob, .siren, .profile { width: 32px; height: 32px; }
  .profile svg { width: 14px; height: 14px; }
  .transport-stat { font-size: 16px; letter-spacing: 0; }
  .transport-stat { letter-spacing: 0.02em; }

  .nights-toggle { display: inline-block; }

  [data-action="toggle-keys"],
  .keys-slip { display: none !important; }

  #siren::after,
  #tone::after,
  #station::after,
  #volume::after { content: none; }

  .top {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: 12px 14px 10px;
    padding-top: calc(10px + env(safe-area-inset-top));
  }

  .word { font-size: 1.45rem; white-space: nowrap; }
  .brand { min-width: max-content; }
  .top-actions { margin-top: 2px; min-width: 0; }
  .texty { font-size: 18px; padding: 2px 8px 0; }

  .keys-slip {
    top: auto;
    right: 12px;
    bottom: 78px;
    width: min(340px, calc(100% - 24px));
  }

  .moon-readout { display: none; }

  .stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: safe center;
    z-index: auto;
    width: min(720px, calc(100% - 36px));
    padding-top: calc(128px + env(safe-area-inset-top));
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .paper-wrap { width: 100%; }

  .paper { z-index: 5; }

  .nights {
    position: fixed;
    z-index: 19;
    top: calc(112px + env(safe-area-inset-top));
    bottom: calc(84px + env(safe-area-inset-bottom));
    left: 10px;
    width: min(340px, calc(100% - 28px));
    margin: 0;
    padding: 16px 16px 18px;
    background: #0c1210;
    border-radius: 4px 18px 18px 4px;
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.45);
    transform: translateX(calc(-100% - 16px));
    overflow: hidden;
  }

  .nights.open { transform: none; }

  .branch { display: none; }

  .inner { padding: 36px 20px 40px 28px; }

  .paper { min-height: 0; }

  .paper-wrap::before { inset: 12px -4px -8px 10px; }
}

@media (max-width: 420px) {
  .sub { display: none; }
}

@media (min-width: 861px) {
  .nights {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 200px);
    overflow: hidden;
    padding: 4px 16px 12px 8px;
  }

  .scrim { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .paper,
  .grooves,
  .orb,
  .stamp.rec { animation: none; }

  .hint,
  .hint.show,
  .hint.under,
  .hint.under.show {
    transition: none;
    transform: none;
  }

  .siren.casting,
  .reel,
  .deck-reel { animation: none; }

  .nights,
  .note,
  .solid { transition: none; }

  .horizon { animation: none; }
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #3d5344; }
::-webkit-scrollbar-track { background: transparent; }

.door-form { margin-top: 8px; }
.door-agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 2px 0 14px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.door-agree input { margin-top: 4px; }
.door-agree a { color: inherit; }
.door-form .line-in { width: 100%; margin: 0 0 12px; }

.secret { position: relative; }

.secret .line-in { padding-right: 36px; }

.eye {
  position: absolute;
  right: 0;
  bottom: 14px;
  width: 32px;
  height: 28px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: #6d5a32;
  cursor: pointer;
}

.eye svg {
  display: block;
  width: 26px;
  height: 18px;
  margin: 4px auto 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.eye circle { fill: currentColor; stroke: none; }

.eye:hover { color: var(--ink); }

.eye.open { color: var(--ink); }

.eye.open::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-28deg);
}

html[data-theme="pythia"] {
  --gold: #ffb04a;
  --synth: #5cefff;
  --moss: #143f45;
  --night: #070812;
  --red: #ff4d88;
  background: #05060e;
}

html[data-theme="pythia"] body {
  color: #d7e8f2;
  background: #05060e;
  font-family: Sora, Outfit, sans-serif;
}

html[data-theme="pythia"] .sky {
  background:
    repeating-linear-gradient(to bottom, transparent 0 52px, rgba(92, 239, 255, 0.045) 52px 53px),
    repeating-linear-gradient(to right, transparent 0 78px, rgba(92, 239, 255, 0.03) 78px 79px),
    radial-gradient(980px 300px at 50% 112%, rgba(255, 70, 140, 0.32), transparent 62%),
    radial-gradient(420px 280px at 12% 18%, rgba(92, 239, 255, 0.14), transparent 70%),
    radial-gradient(360px 240px at 90% 8%, rgba(255, 176, 74, 0.12), transparent 68%),
    linear-gradient(180deg, #05060e 0%, #100814 58%, #1a0c14 100%);
}

html[data-theme="pythia"][data-band="day"] .sky {
  background:
    repeating-linear-gradient(to bottom, transparent 0 52px, rgba(92, 239, 255, 0.06) 52px 53px),
    repeating-linear-gradient(to right, transparent 0 78px, rgba(92, 239, 255, 0.04) 78px 79px),
    radial-gradient(900px 340px at 50% 108%, rgba(255, 140, 70, 0.28), transparent 60%),
    radial-gradient(480px 300px at 80% 0%, rgba(92, 239, 255, 0.16), transparent 70%),
    linear-gradient(180deg, #0c1420, #14101c 60%, #1c1210);
}

html[data-theme="pythia"] .o1 { background: #145868; }
html[data-theme="pythia"] .o2 { background: #6a1848; }
html[data-theme="pythia"] .o3 { background: #8a4a12; opacity: 0.35; }

html[data-theme="pythia"] .horizon {
  display: block;
  position: fixed;
  z-index: 1;
  left: 8%;
  right: 6%;
  bottom: 22%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 136, 0.15) 12%, #ff4d88 38%, #ffb04a 52%, #5cefff 70%, transparent 92%);
  box-shadow: 0 0 28px rgba(255, 77, 136, 0.45);
  animation: fault 7.5s steps(2, end) infinite;
}

html[data-theme="pythia"] .horizon::after {
  content: "";
  position: absolute;
  left: 61%;
  top: -18px;
  width: 1px;
  height: 18px;
  background: rgba(255, 176, 74, 0.7);
}

@keyframes fault {
  0%, 100% { opacity: 0.9; }
  47% { opacity: 0.9; }
  48% { opacity: 0.2; }
  51% { opacity: 0.85; }
  70% { opacity: 0.85; }
  71% { opacity: 0.35; }
}

html[data-theme="pythia"] .branch { display: none; }

html[data-theme="pythia"] .pythia-vine {
  display: block;
  position: fixed;
  z-index: 1;
  left: -8px;
  bottom: 28px;
  width: 200px;
  height: auto;
  opacity: 0.55;
  pointer-events: none;
}

html[data-theme="pythia"] .bezel i { border-color: rgba(92, 239, 255, 0.7); }

html[data-theme="pythia"] .scan {
  opacity: 0.12;
  background: repeating-linear-gradient(to bottom, rgba(92, 239, 255, 0.16) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
}

html[data-theme="pythia"] .top {
  background: rgba(5, 6, 14, 0.92);
  border-bottom-color: rgba(92, 239, 255, 0.24);
}

html[data-theme="pythia"] .word {
  font-family: Syne, Outfit, sans-serif;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #e9fbff;
  text-shadow: 1px 0 rgba(255, 77, 136, 0.7), -1px 0 rgba(92, 239, 255, 0.7);
}

html[data-theme="pythia"] .sub { color: rgba(92, 239, 255, 0.72); }

html[data-theme="pythia"] .world {
  color: rgba(92, 239, 255, 0.8);
  border-color: rgba(92, 239, 255, 0.35);
}

html[data-theme="pythia"] .world.on {
  color: #061016;
  background: #5cefff;
  border-color: #5cefff;
}

html[data-theme="pythia"] .texty {
  color: #5cefff;
  border-color: rgba(92, 239, 255, 0.4);
}

html[data-theme="pythia"] .moon-disc {
  background: radial-gradient(circle at 50% 50%, transparent 0 10px, #5cefff 11px 13px, #101820 14px);
  box-shadow: 0 0 16px rgba(92, 239, 255, 0.45);
}

html[data-theme="pythia"] .moon-disc > span {
  background: #070812;
  box-shadow: inset 0 0 0 1px rgba(255, 176, 74, 0.4);
}

html[data-theme="pythia"] .nights-head h2,
html[data-theme="pythia"] .bag-panel h2,
html[data-theme="pythia"] .track-title,
html[data-theme="pythia"] .night-empty {
  font-family: Syne, Outfit, sans-serif;
  font-style: normal;
  font-weight: 700;
}

html[data-theme="pythia"] .chip {
  border-color: rgba(92, 239, 255, 0.35);
}

html[data-theme="pythia"] .night-find input {
  color: #5cefff;
  border-color: rgba(92, 239, 255, 0.35);
}

html[data-theme="pythia"] .night-find input::placeholder { color: rgba(92, 239, 255, 0.4); }
html[data-theme="pythia"] .night-find input:focus { border-color: #5cefff; }

html[data-theme="pythia"] .chip.on { color: #061016; }

html[data-theme="pythia"] .track { border-bottom-color: rgba(92, 239, 255, 0.1); }
html[data-theme="pythia"] .track:hover { background: rgba(92, 239, 255, 0.05); }
html[data-theme="pythia"] .track.on { background: rgba(92, 239, 255, 0.07); }

html[data-theme="pythia"] .paper-wrap::before {
  background: #1a1024;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

html[data-theme="pythia"] .paper-wrap::after {
  background: radial-gradient(ellipse, rgba(92, 239, 255, 0.16), transparent 68%);
}

html[data-theme="pythia"] .tape {
  background: rgba(92, 239, 255, 0.22);
  border-left-color: rgba(255, 255, 255, 0.2);
  border-right-color: rgba(255, 77, 136, 0.35);
}

html[data-theme="pythia"] .paper {
  background:
    linear-gradient(180deg, rgba(92, 239, 255, 0.08), transparent 110px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(92, 239, 255, 0.035) 31px 32px),
    linear-gradient(165deg, #161c28, #0c1018 70%);
  color: #efe6d6;
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(92, 239, 255, 0.38),
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 0 90px rgba(255, 77, 136, 0.05);
}

html[data-theme="pythia"] .paper::before {
  width: 10px;
  background: linear-gradient(90deg, #5cefff 0 3px, #ffb04a 3px 6px, #ff4d88 6px 10px);
}

html[data-theme="pythia"] h1,
html[data-theme="pythia"] .entry-title,
html[data-theme="pythia"] .title-in,
html[data-theme="pythia"] .dek,
html[data-theme="pythia"] .air,
html[data-theme="pythia"] .prompt {
  font-family: Syne, Outfit, sans-serif;
  font-style: normal;
  font-weight: 700;
  color: #f4fbff;
}

html[data-theme="pythia"] .dek,
html[data-theme="pythia"] .air,
html[data-theme="pythia"] .prompt {
  font-weight: 500;
  color: #9eefff;
}

html[data-theme="pythia"] .kicker { color: #ffb04a; }

html[data-theme="pythia"] .lede,
html[data-theme="pythia"] .prose,
html[data-theme="pythia"] .page-body,
html[data-theme="pythia"] .bag-copy {
  font-family: Sora, Outfit, sans-serif;
  color: #efe6d6;
}

html[data-theme="pythia"] .rule {
  height: 2px;
  background: linear-gradient(90deg, #5cefff 0 33%, #ffb04a 33% 66%, #ff4d88 66% 100%);
}

html[data-theme="pythia"] .activity,
html[data-theme="pythia"] .when,
html[data-theme="pythia"] .field-label { color: rgba(255, 176, 74, 0.86); }

html[data-theme="pythia"] .stamp {
  border-color: rgba(255, 77, 136, 0.8);
  color: #ff8ab0;
  mix-blend-mode: normal;
}

html[data-theme="pythia"] .solid {
  background: transparent;
  color: #d8fbff;
  border-color: #5cefff;
  box-shadow: 3px 3px 0 #ff4d88;
}

html[data-theme="pythia"] .solid:hover { box-shadow: 4px 4px 0 #ff4d88; }

html[data-theme="pythia"] .ghost,
html[data-theme="pythia"] .seg {
  color: #ffb04a;
  border-color: rgba(255, 176, 74, 0.75);
}

html[data-theme="pythia"] .ghost:hover { background: rgba(255, 176, 74, 0.08); }

html[data-theme="pythia"] .deck-dub.on {
  background: #061016;
  color: #5cefff;
  border-color: #5cefff;
  box-shadow: 2px 2px 0 #ff4d88;
}

html[data-theme="pythia"] .nights-door {
  background: #061016;
  color: #f4fbff;
  border-color: #5cefff;
  box-shadow: 3px 3px 0 #ff4d88;
}

html[data-theme="pythia"] .nights-door:hover { box-shadow: 4px 4px 0 #ff4d88; }

html[data-theme="pythia"] .seg.on {
  background: #ffb04a;
  color: #1a1008;
  border-color: #ffb04a;
}

html[data-theme="pythia"] .linkish { color: #ff8ab0; }

html[data-theme="pythia"] .line-in,
html[data-theme="pythia"] .date-in,
html[data-theme="pythia"] .title-in,
html[data-theme="pythia"] .page-body {
  color: #efe6d6;
  color-scheme: dark;
  border-bottom-color: rgba(92, 239, 255, 0.28);
}

html[data-theme="pythia"] .title-in::placeholder,
html[data-theme="pythia"] .line-in::placeholder,
html[data-theme="pythia"] .page-body::placeholder { color: rgba(239, 230, 214, 0.38); }

html[data-theme="pythia"] .page-body {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    rgba(92, 239, 255, 0.16) 31px,
    rgba(92, 239, 255, 0.16) 32px
  );
}

html[data-theme="pythia"] .stone { color: rgba(239, 230, 214, 0.7); }

html[data-theme="pythia"] .stone.on i {
  box-shadow: 0 0 0 2px #0c1018, 0 0 0 4px #5cefff;
}

html[data-theme="pythia"] .eye { color: #ffb04a; }
html[data-theme="pythia"] .eye.open,
html[data-theme="pythia"] .eye:hover { color: #5cefff; }

html[data-theme="pythia"] .grooves {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 42px, rgba(92, 239, 255, 0.7) 42px 44px, transparent 45px),
    repeating-radial-gradient(circle at 50% 50%, #102028 0 1px, #070910 2px 5px);
  box-shadow: inset 0 0 0 2px rgba(255, 77, 136, 0.55), 0 24px 50px rgba(0, 0, 0, 0.45);
}

html[data-theme="pythia"] .hub {
  background: radial-gradient(circle at 40% 35%, #1a3040, #070910 72%);
  box-shadow: 0 0 0 3px rgba(92, 239, 255, 0.8), 0 0 18px rgba(255, 77, 136, 0.35);
}

html[data-theme="pythia"] .note {
  background: #101820;
  color: #e9fbff;
  font-family: Syne, Outfit, sans-serif;
  font-style: normal;
  border: 1px solid rgba(92, 239, 255, 0.4);
}

html[data-theme="pythia"] .hint {
  background:
    linear-gradient(180deg, rgba(92, 239, 255, 0.08), transparent 40%),
    #10141e;
  color: #efe6d6;
  border-radius: 2px;
  box-shadow:
    inset 3px 0 0 #5cefff,
    inset 6px 0 0 #ffb04a,
    inset 9px 0 0 #ff4d88,
    0 16px 34px rgba(0, 0, 0, 0.5);
  transform: none;
}

html[data-theme="pythia"] .hint.show,
html[data-theme="pythia"] .hint.under,
html[data-theme="pythia"] .hint.under.show { transform: none; }

html[data-theme="pythia"] .hint-tape {
  background: rgba(255, 77, 136, 0.45);
}

html[data-theme="pythia"] .hint-kicker { color: #5cefff; }
html[data-theme="pythia"] .hint-line { font-family: Sora, Outfit, sans-serif; font-style: normal; }

html[data-theme="pythia"] .transport {
  background: linear-gradient(#141a24, #07080e);
  border-top-color: rgba(92, 239, 255, 0.32);
}

html[data-theme="pythia"] .profile {
  color: #f4fbff;
  border-color: #5cefff;
  background: radial-gradient(circle at 30% 26%, #1a3048, #070812 62%);
  box-shadow:
    inset 0 0 0 2px rgba(92, 239, 255, 0.45),
    0 0 0 3px #070812,
    2px 2px 0 #ff4d88;
}

html[data-theme="pythia"] .profile[aria-expanded="true"] {
  color: #061016;
  background: radial-gradient(circle at 32% 28%, #fff, #5cefff 46%, #ff4d88);
}

html[data-theme="pythia"] .profile-slip {
  color: #ffe9c4;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 77, 136, 0.35), transparent 46%),
    #120814;
  box-shadow:
    inset 3px 0 0 #ff4d88,
    inset 6px 0 0 #ffb04a,
    inset 9px 0 0 #5cefff,
    0 22px 48px rgba(0, 0, 0, 0.55);
}

html[data-theme="pythia"] .profile-slip h2 { color: #ffb04a; }
html[data-theme="pythia"] .profile-note { color: #ff8ab0; }
html[data-theme="pythia"] .profile-bolt { background: #ff4d88; }

html[data-theme="pythia"] .lcd {
  background: #061018;
  border-color: #145868;
  color: #9af6ff;
  text-shadow: 0 0 8px rgba(92, 239, 255, 0.55);
}

html[data-theme="pythia"] .marks-toggle {
  color: #061016;
  background: #5cefff;
  border-color: #5cefff;
  box-shadow: 2px 2px 0 #ff4d88;
}

html[data-theme="pythia"] .marks-toggle[aria-pressed="false"] {
  color: #d7ecf2;
  background: transparent;
  border-color: rgba(92, 239, 255, 0.45);
  box-shadow: none;
}

html[data-theme="pythia"] #siren::after,
html[data-theme="pythia"] #tone::after,
html[data-theme="pythia"] #station::after,
html[data-theme="pythia"] #volume::after {
  color: #061016;
  background: #5cefff;
  box-shadow: 1px 1px 0 #ff4d88;
}

html[data-theme="pythia"] .key {
  color: #ffb04a;
  background: linear-gradient(#1a2430, #0c1218);
  border-color: rgba(255, 176, 74, 0.45);
}

html[data-theme="pythia"] .knob {
  border-color: #1c6e7c;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 10px, rgba(92, 239, 255, 0.4) 11px 12px, transparent 13px),
    radial-gradient(circle at 34% 30%, #1c3344, #0a1018 72%);
  box-shadow:
    inset 0 0 10px rgba(92, 239, 255, 0.28),
    0 2px 0 #05060a,
    0 0 0 3px #101820,
    0 0 14px rgba(92, 239, 255, 0.2);
}

html[data-theme="pythia"] .knob-cap { background: linear-gradient(#e9fbff, #5cefff); }

html[data-theme="pythia"] .siren {
  border-color: rgba(255, 77, 136, 0.85);
  background:
    radial-gradient(circle at 50% 46%, #fff6fb 0 2px, #ff4d88 3px, #4a1028 8px, #140810 14px);
  box-shadow:
    inset 0 0 10px rgba(255, 77, 136, 0.45),
    0 2px 0 #05060a,
    0 0 0 3px #101820,
    0 0 12px rgba(255, 77, 136, 0.35);
}

html[data-theme="pythia"] .bag-panel {
  background: rgba(8, 10, 18, 0.94);
  border-color: rgba(92, 239, 255, 0.35);
}

html[data-theme="pythia"] .bag-you { border-top-color: rgba(92, 239, 255, 0.22); }
html[data-theme="pythia"] .bag-you .field-label,
html[data-theme="pythia"] .bag-law a { color: #ffb04a; }
html[data-theme="pythia"] .bag-you .profile-note,
html[data-theme="pythia"] .bag-you label { color: #d7ecf2; }
html[data-theme="pythia"] .bag-you .ghost { color: #5cefff; border-color: rgba(92, 239, 255, 0.45); }

html[data-theme="pythia"] .mini { border-color: rgba(92, 239, 255, 0.4); }

@media (max-width: 860px) {
  .world { font-size: 14px; padding: 0 5px; }
  .worlds { grid-column: 1 / -1; gap: 4px; }
  .brand { gap: 3px; }
  html[data-theme="pythia"] .nights { background: #070812; }
}

html .paper[data-kind="day"] {
  background:
    linear-gradient(90deg, transparent 68px, rgba(154, 52, 44, 0.45) 68px, rgba(154, 52, 44, 0.45) 70px, transparent 70px),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(61, 92, 69, 0.18) 31px 32px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 120px),
    var(--cream);
  border-radius: 2px 14px 18px 2px;
}

html .paper[data-kind="day"] .inner { padding-left: 86px; }

html .paper[data-kind="day"] .entry-title,
html .paper[data-kind="day"] .title-in {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 560;
  text-transform: none;
  color: #17241c;
}

.paper-wrap:has(.paper[data-kind="talk"])::before {
  background: #6a2430;
  transform: rotate(-2.2deg);
}

html .paper[data-kind="talk"] {
  background:
    radial-gradient(circle at 100% 100%, rgba(226, 179, 64, 0.12), transparent 40%),
    radial-gradient(circle at 0% 0%, rgba(106, 36, 48, 0.32), transparent 34%),
    linear-gradient(168deg, #1a332c, #0c1613 68%);
  color: #f3ead6;
  border-radius: 22px 6px 26px 6px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(226, 179, 64, 0.35);
}

html .paper[data-kind="talk"]::before {
  width: 6px;
  background: repeating-linear-gradient(180deg, #e2b340 0 2px, #9a342c 2px 3px, #174e34 3px 4px);
}

html .paper[data-kind="talk"] .inner { padding-left: 42px; }

html .paper[data-kind="talk"] .entry-title,
html .paper[data-kind="talk"] .title-in {
  font-family: Syne, Outfit, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(2.05rem, 5.2cqi, 3.05rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #f8edd6;
  max-width: 16ch;
  line-height: 0.98;
}

html .paper[data-kind="talk"] .kicker,
html .paper[data-kind="talk"] .field-label,
html .paper[data-kind="talk"] .activity,
html .paper[data-kind="talk"] .when {
  color: #e2b340;
}

html .paper[data-kind="talk"] .kicker {
  font-family: VT323, "Courier New", monospace;
  font-size: 16px;
  letter-spacing: 0.22em;
}

html .paper[data-kind="talk"] .rule {
  width: min(100%, 180px);
  height: 1px;
  background: repeating-linear-gradient(90deg, #e2b340 0 5px, transparent 5px 9px);
}

html .paper[data-kind="talk"] .activity::before { content: "“ "; color: #f0d78c; }

html .paper[data-kind="talk"] .air,
html .paper[data-kind="talk"] .prompt {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 460;
  color: #f0d78c;
}

html .paper[data-kind="talk"] .prose,
html .paper[data-kind="talk"] .page-body,
html .paper[data-kind="talk"] .lede {
  font-family: Literata, Georgia, serif;
  color: #f4e7cf;
}

html .paper[data-kind="talk"] .prose {
  max-width: 46ch;
  padding-left: 14px;
  border-left: 1px solid rgba(226, 179, 64, 0.72);
  font-size: 1.05rem;
  line-height: 1.75;
}

html .paper[data-kind="talk"] .prose p:first-of-type::first-letter {
  float: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

html .paper[data-kind="talk"] .stamp {
  border-width: 1px;
  border-color: rgba(226, 179, 64, 0.8);
  color: #f0d78c;
  font-weight: 600;
  mix-blend-mode: normal;
  transform: rotate(-6deg);
}

html .paper[data-kind="talk"] .title-in,
html .paper[data-kind="talk"] .line-in,
html .paper[data-kind="talk"] .date-in,
html .paper[data-kind="talk"] .page-body {
  color: #f6ecd4;
  caret-color: #e2b340;
  color-scheme: dark;
}

html .paper[data-kind="talk"] .line-in,
html .paper[data-kind="talk"] .date-in { border-bottom-color: rgba(226, 179, 64, 0.4); }

html .paper[data-kind="talk"] .title-in::placeholder,
html .paper[data-kind="talk"] .line-in::placeholder,
html .paper[data-kind="talk"] .page-body::placeholder { color: rgba(246, 236, 212, 0.38); }

html .paper[data-kind="talk"] .page-body {
  background-image: none;
}

html .paper[data-kind="talk"] .stone { color: #e7d7b4; }

html .paper[data-kind="talk"] .stone.on i {
  box-shadow: 0 0 0 2px #0c1613, 0 0 0 4px #e2b340;
}

html .paper[data-kind="talk"] .solid,
html .paper[data-kind="talk"] .ghost {
  border-width: 1px;
  font-size: 18px;
  padding: 2px 11px 1px;
}

html .paper[data-kind="talk"] .solid {
  background: #e2b340;
  color: #102018;
  border-color: #e2b340;
  box-shadow: 1px 1px 0 #9a342c;
}

html .paper[data-kind="talk"] .solid:hover { box-shadow: 2px 2px 0 #9a342c; }

html .paper[data-kind="talk"] .ghost,
html .paper[data-kind="talk"] .seg {
  color: #f0d78c;
  border-color: rgba(226, 179, 64, 0.75);
  background: transparent;
}

html .paper[data-kind="talk"] .seg.on {
  background: #e2b340;
  color: #102018;
  border-color: #e2b340;
}

html[data-theme="pythia"] .read-actions .linkish {
  color: #f4fbff;
  border-color: #5cefff;
}
html[data-theme="pythia"] .read-actions .linkish:nth-child(2) { border-color: #ffb04a; }
html[data-theme="pythia"] .read-actions .linkish:nth-child(3) { border-color: #ff4d88; }
html[data-theme="pythia"] .read-actions .linkish:hover { background: rgba(92, 239, 255, 0.08); color: #f4fbff; }

html .paper[data-kind="talk"] .read-actions .linkish {
  color: #f8edd6;
  border-color: #e2b340;
}
html .paper[data-kind="talk"] .read-actions .linkish:hover { background: rgba(226, 179, 64, 0.1); color: #f8edd6; }

html .paper[data-kind="talk"] .wash { opacity: 1; }

.kind-flag {
  position: absolute;
  z-index: 2;
  top: 108px;
  left: 12px;
  margin: 0;
  writing-mode: vertical-rl;
  font-family: VT323, "Courier New", monospace;
  font-size: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #e2b340;
}

.plate {
  position: absolute;
  z-index: 0;
  right: -20px;
  bottom: -28px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(226, 179, 64, 0.28) 0 1px, transparent 1px 4px);
  box-shadow: inset 0 0 0 1px rgba(226, 179, 64, 0.45);
  pointer-events: none;
}

.plate i {
  position: absolute;
  inset: 66px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #fff1c2, #e2b340 46%, #9a342c 82%);
  box-shadow: 0 0 0 1px rgba(226, 179, 64, 0.55);
}

html[data-theme="pythia"] .paper[data-kind="day"] {
  background:
    linear-gradient(180deg, rgba(92, 239, 255, 0.1), transparent 120px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(92, 239, 255, 0.07) 31px 32px),
    linear-gradient(165deg, #161c28, #0c1018 70%);
  color: #efe6d6;
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(92, 239, 255, 0.45),
    0 30px 80px rgba(0, 0, 0, 0.55);
}

html[data-theme="pythia"] .paper[data-kind="day"] .inner { padding-left: 74px; }

html[data-theme="pythia"] .paper[data-kind="day"] .entry-title,
html[data-theme="pythia"] .paper[data-kind="day"] .title-in {
  font-family: Syne, Outfit, sans-serif;
  font-style: normal;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.04em;
  color: #f4fbff;
}

html[data-theme="pythia"] .paper[data-kind="day"] .prose,
html[data-theme="pythia"] .paper[data-kind="day"] .page-body {
  font-family: Sora, Outfit, sans-serif;
  color: #efe6d6;
}

html[data-theme="pythia"] .paper[data-kind="day"]::before {
  width: 10px;
  background: linear-gradient(90deg, #5cefff 0 3px, #ffb04a 3px 6px, #ff4d88 6px 10px);
}

html[data-theme="pythia"] .paper-wrap:has(.paper[data-kind="talk"])::before {
  background: #3a1028;
  transform: rotate(2deg);
}

html[data-theme="pythia"] .paper[data-kind="talk"] {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 77, 136, 0.18), transparent 36%),
    radial-gradient(circle at 90% 80%, rgba(255, 176, 74, 0.12), transparent 40%),
    #140812;
  color: #ffe9c4;
  border-radius: 22px 4px 20px 4px;
  box-shadow:
    0 0 0 1px rgba(255, 77, 136, 0.45),
    0 0 28px rgba(255, 77, 136, 0.1),
    0 24px 60px rgba(0, 0, 0, 0.5);
}

html[data-theme="pythia"] .paper[data-kind="talk"]::before {
  width: 3px;
  background: linear-gradient(#ff4d88, #ffb04a);
}

html[data-theme="pythia"] .paper[data-kind="talk"] .entry-title,
html[data-theme="pythia"] .paper[data-kind="talk"] .title-in,
html[data-theme="pythia"] .paper[data-kind="talk"] .air,
html[data-theme="pythia"] .paper[data-kind="talk"] .prompt {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 560;
  text-transform: none;
  letter-spacing: -0.03em;
  color: #ffb04a;
}

html[data-theme="pythia"] .paper[data-kind="talk"] .prose,
html[data-theme="pythia"] .paper[data-kind="talk"] .page-body {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  color: #ffe7c2;
}

html[data-theme="pythia"] .paper[data-kind="talk"] .kicker { color: #ff8ab0; }

html[data-theme="pythia"] .paper[data-kind="talk"] .kind-flag { color: #ff8ab0; }

html[data-theme="pythia"] .plate {
  background: repeating-radial-gradient(circle at 50% 50%, rgba(255, 77, 136, 0.35) 0 1px, transparent 1px 4px);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 136, 0.5);
}

html[data-theme="pythia"] .plate i {
  background: radial-gradient(circle at 38% 32%, #fff, #5cefff 42%, #ff4d88 82%);
  box-shadow: 0 0 0 1px rgba(255, 176, 74, 0.6);
}

html[data-theme="pythia"] .paper[data-kind="talk"] .solid {
  background: #ff4d88;
  color: #1a0610;
  border-color: #ff4d88;
  box-shadow: 1px 1px 0 #ffb04a;
}

html[data-theme="pythia"] .paper[data-kind="talk"] .seg.on {
  background: #ff4d88;
  color: #1a0610;
  border-color: #ff4d88;
}

@media (max-width: 860px) {
  html .paper[data-kind="day"] .inner,
  html[data-theme="pythia"] .paper[data-kind="day"] .inner { padding-left: 46px; }

  html .paper[data-kind="day"] {
    background:
      linear-gradient(90deg, transparent 34px, rgba(154, 52, 44, 0.45) 34px, rgba(154, 52, 44, 0.45) 36px, transparent 36px),
      repeating-linear-gradient(180deg, transparent 0 31px, rgba(61, 92, 69, 0.18) 31px 32px),
      var(--cream);
  }

  .kind-flag { left: 8px; font-size: 13px; }
  .plate { width: 120px; height: 120px; right: -16px; bottom: -22px; }
  .plate i { inset: 46px; }
}

html .cassette .tape-row.on .ghost {
  background: #1c1914;
  color: #f0d78c;
  border-color: #1c1914;
}

html[data-theme="pythia"] .cassette .tape-row.on .ghost {
  background: #5cefff;
  color: #061016;
  border-color: #5cefff;
}

html .paper[data-kind="talk"] .cassette .solid {
  background: #102018;
  color: #f3ead7;
  border-color: #e2b340;
  box-shadow: 2px 2px 0 #e2b340;
}

html .paper[data-kind="talk"] .cassette-keys [data-action="tape-rec"].on,
html .paper[data-kind="talk"] .cassette-keys [data-action="tape-rec"].on:active {
  background: #9a342c;
  color: #f8e6d4;
  border-color: #e2b340;
}

html .paper[data-kind="talk"] .cassette .ghost,
html .paper[data-kind="talk"] .cassette .tape-mode {
  background: #f7f1e2;
  color: #102018;
  border-color: #102018;
}

html .paper[data-kind="talk"] .cassette .deck-dub.on {
  background: #102018;
  color: #e2b340;
  border-color: #e2b340;
  box-shadow: 2px 2px 0 #9a342c;
}

html .paper[data-kind="talk"] .cassette .tape-mode.on {
  background: #102018;
  color: #f3ead7;
  border-color: #e2b340;
  box-shadow: 2px 2px 0 #e2b340;
}

html .paper[data-kind="talk"] .cassette .tape-mode[data-mode="lofi"].on {
  background: #9a342c;
  color: #f8e6d4;
  border-color: #e2b340;
  box-shadow: 2px 2px 0 #e2b340;
  transform: rotate(-1.5deg);
}

html .paper[data-kind="talk"] .cassette .tape-row.on .ghost,
html .paper[data-kind="talk"] .cassette .tape-row.open .ghost {
  background: #102018;
  color: #f0d78c;
  border-color: #e2b340;
}

html .paper[data-kind="talk"] .cassette .linkish { color: #6a2420; }

html .paper[data-kind="talk"] .transcript {
  padding: 12px 14px 14px;
  background: rgba(8, 14, 12, 0.62);
  border: 1px solid rgba(226, 179, 64, 0.55);
}

html .paper[data-kind="talk"] .transcript-note.on {
  padding-left: 10px;
  border-left: 2px solid #e2b340;
}

html[data-theme="pythia"] .paper[data-kind="talk"] .cassette .solid {
  background: #ff4d88;
  color: #1a0610;
  border-color: #ff4d88;
  box-shadow: 2px 2px 0 #ffb04a;
}

html[data-theme="pythia"] .paper[data-kind="talk"] .cassette-keys [data-action="tape-rec"].on,
html[data-theme="pythia"] .paper[data-kind="talk"] .cassette-keys [data-action="tape-rec"].on:active {
  background: #c9184a;
  color: #fff0f5;
  border-color: #ffb04a;
  animation: rec-button-glow-pythia 1.15s ease-in-out infinite;
}

@keyframes rec-button-glow-pythia {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(255, 176, 74, 0.45),
      0 0 10px rgba(255, 77, 136, 0.55),
      0 0 22px rgba(255, 176, 74, 0.28),
      inset 0 0 10px rgba(255, 240, 248, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(255, 176, 74, 0.92),
      0 0 18px rgba(255, 77, 136, 0.82),
      0 0 38px rgba(255, 120, 180, 0.45),
      inset 0 0 18px rgba(255, 255, 255, 0.18);
  }
}

html[data-theme="pythia"] .paper[data-kind="talk"] .cassette .ghost,
html[data-theme="pythia"] .paper[data-kind="talk"] .cassette .tape-mode {
  background: transparent;
  color: #ffb04a;
  border-color: #ffb04a;
}

html[data-theme="pythia"] .paper[data-kind="talk"] .cassette .deck-dub.on {
  background: #061016;
  color: #5cefff;
  border-color: #5cefff;
  box-shadow: 2px 2px 0 #ff4d88;
}

html[data-theme="pythia"] .paper[data-kind="talk"] .cassette .tape-mode.on {
  background: #5cefff;
  color: #061016;
  border-color: #5cefff;
  box-shadow: 2px 2px 0 #ffb04a;
}

html[data-theme="pythia"] .paper[data-kind="talk"] .cassette .tape-mode[data-mode="lofi"].on {
  background: #ff4d88;
  color: #1a0610;
  border-color: #ff4d88;
  box-shadow: 2px 2px 0 #ffb04a;
  transform: rotate(-1.5deg);
}

html[data-theme="pythia"] .paper[data-kind="talk"] .cassette .tape-row.on .ghost,
html[data-theme="pythia"] .paper[data-kind="talk"] .cassette .tape-row.open .ghost {
  background: #ffb04a;
  color: #1a0610;
  border-color: #ffb04a;
}

html[data-theme="pythia"] .paper[data-kind="talk"] .cassette .linkish { color: #ff8ab0; }

html[data-theme="pythia"] .paper[data-kind="talk"] .transcript {
  background: rgba(12, 4, 10, 0.72);
  border-color: rgba(255, 77, 136, 0.55);
}

html[data-theme="pythia"] .paper[data-kind="talk"] .transcript-note.on { border-left-color: #ffb04a; }

.leave {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(8, 14, 12, 0.62);
}

.leave-card {
  position: relative;
  width: min(360px, 100%);
  padding: 20px 20px 18px 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 120%, rgba(226, 179, 64, 0.38), transparent 48%),
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(16, 32, 24, 0.04) 3px 4px),
    linear-gradient(165deg, #f7f0df, #e7d3a4);
  color: #1a1914;
  transform: rotate(-1.4deg);
  box-shadow:
    inset 4px 0 0 #174e34,
    inset 8px 0 0 #e2b340,
    inset 12px 0 0 #9a342c,
    0 24px 60px rgba(0, 0, 0, 0.5);
}

.leave-card h2 {
  margin: 2px 0 8px;
  max-width: 12ch;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 560;
  font-size: clamp(2rem, 8vw, 2.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.leave-card p { margin: 0 0 16px; max-width: 32ch; line-height: 1.45; }

.leave-tape {
  position: absolute;
  top: 12px;
  right: 18px;
  width: 74px;
  height: 18px;
  background: rgba(228, 205, 156, 0.75);
  transform: rotate(8deg);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.leave-actions { display: flex; flex-wrap: wrap; gap: 8px; }

html[data-theme="pythia"] .leave { background: rgba(6, 4, 12, 0.72); }

html[data-theme="pythia"] .leave-card {
  background:
    radial-gradient(circle at 100% 120%, rgba(255, 77, 136, 0.35), transparent 50%),
    #120814;
  color: #ffe9c4;
  box-shadow:
    inset 3px 0 0 #ff4d88,
    inset 6px 0 0 #ffb04a,
    inset 9px 0 0 #5cefff,
    0 24px 60px rgba(0, 0, 0, 0.55);
}

html[data-theme="pythia"] .leave-card h2 { color: #ffb04a; }
html[data-theme="pythia"] .leave-tape { background: rgba(255, 77, 136, 0.45); }

html[data-theme="pythia"] .leave-card .solid {
  background: #ff4d88;
  color: #1a0610;
  border-color: #ff4d88;
  box-shadow: 2px 2px 0 #ffb04a;
}

html[data-theme="pythia"] .leave-card .ghost {
  color: #ffb04a;
  border-color: #ffb04a;
  background: transparent;
}

.leave-card.bot-card {
  width: min(420px, 100%);
  max-height: min(82vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  transform: rotate(1.2deg);
}

.leave-card.bot-card h2 { max-width: 16ch; }

html[data-theme="pythia"] .leave-card.bot-card .bot-part i,
html[data-theme="pythia"] .leave-card.bot-card .bot-command,
html[data-theme="pythia"] .leave-card.bot-card .bot-empty {
  color: #ffe9c4;
}

html[data-theme="pythia"] .leave-card.bot-card .bot-all {
  border-bottom-color: rgba(255, 233, 196, 0.22);
}

.tear-card {
  transform: rotate(1.1deg);
  padding-bottom: 34px;
  background:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(154, 52, 44, 0.16) 27px 28px),
    linear-gradient(168deg, #f8f1e2, #efe0c4);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 96% 94%, 89% 89%, 81% 95%, 72% 88%, 62% 96%, 51% 89%, 40% 96%, 29% 88%, 18% 95%, 8% 89%, 0 94%);
}

.tear-card::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 28px;
  width: 58px;
  height: 26px;
  background: #f4ecda;
  border: 1px solid rgba(154, 52, 44, 0.45);
  transform: rotate(11deg);
  box-shadow: 2px 2px 0 #9a342c;
  clip-path: polygon(0 28%, 16% 0, 38% 24%, 58% 0, 100% 22%, 100% 100%, 0 100%);
}

html[data-theme="pythia"] .tear-card {
  background:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(255, 77, 136, 0.14) 27px 28px),
    #140812;
  color: #ffe9c4;
}

html[data-theme="pythia"] .tear-card::after {
  background: #1a0610;
  border-color: #ff4d88;
  box-shadow: 2px 2px 0 #ffb04a;
}

.discard-card {
  transform: rotate(-1.4deg);
  background:
    radial-gradient(circle at 0 100%, rgba(23, 78, 52, 0.18), transparent 42%),
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(23, 78, 52, 0.1) 22px 23px),
    linear-gradient(165deg, #f7f1e4, #e7f0df 70%);
  clip-path: polygon(3% 0, 100% 2%, 98% 100%, 0 96%);
  box-shadow:
    inset 0 0 0 1px rgba(23, 78, 52, 0.35),
    8px 10px 0 rgba(23, 78, 52, 0.18);
}

.discard-card .leave-tape { background: rgba(23, 78, 52, 0.55); transform: rotate(-8deg); }

html[data-theme="pythia"] .discard-card {
  background:
    radial-gradient(circle at 100% 0, rgba(92, 239, 255, 0.16), transparent 40%),
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(92, 239, 255, 0.08) 22px 23px),
    #10141c;
  color: #e7f7ff;
  box-shadow:
    inset 0 0 0 1px rgba(92, 239, 255, 0.35),
    8px 10px 0 rgba(255, 77, 136, 0.2);
}

html.ear-locked,
html.ear-locked body {
  overflow: hidden;
}

.ear-lock {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 28px 18px 36px;
  background:
    radial-gradient(520px 280px at 50% 42%, rgba(226, 179, 64, 0.14), transparent 68%),
    rgba(8, 12, 10, 0.94);
  pointer-events: auto;
  touch-action: none;
}

.ear-machine {
  width: min(420px, 100%);
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.45));
}

.ear-paper {
  position: relative;
  min-height: 108px;
  padding: 22px 22px 26px 26px;
  background:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(154, 52, 44, 0.28) 27px 28px),
    linear-gradient(180deg, #f7f1e4, #efe2c8);
  color: #1a1914;
  box-shadow:
    inset 0 0 0 1px rgba(26, 25, 20, 0.18),
    0 1px 0 #fff6;
  transform-origin: 50% 0;
  animation: ear-paper-feed 2.8s steps(1, end) infinite;
}

.ear-kicker {
  margin: 0 0 8px;
  font-family: "VT323", monospace;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a342c;
}

.ear-paper h2 {
  margin: 0 0 12px;
  font-family: "American Typewriter", "Courier New", monospace;
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}

.ear-carriage {
  height: 14px;
  margin-top: -2px;
  background: linear-gradient(#2a241c, #14110e);
  border-radius: 0 0 4px 4px;
  position: relative;
  overflow: hidden;
}

.ear-carriage i {
  position: absolute;
  top: 2px;
  left: 0;
  width: 28px;
  height: 10px;
  background: #e2b340;
  box-shadow: inset 0 0 0 1px #9a342c;
  animation: ear-return 2.8s linear infinite;
}

.ear-keys {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.ear-keys i {
  width: 22px;
  height: 18px;
  border-radius: 3px 3px 5px 5px;
  background: linear-gradient(#f3ead7, #cbb992);
  box-shadow: 0 3px 0 #2a241c;
  transform-origin: 50% 100%;
  animation: ear-key 0.42s ease-in-out infinite;
}

.ear-keys i:nth-child(2) { animation-delay: 0.05s; }
.ear-keys i:nth-child(3) { animation-delay: 0.11s; }
.ear-keys i:nth-child(4) { animation-delay: 0.02s; }
.ear-keys i:nth-child(5) { animation-delay: 0.16s; }
.ear-keys i:nth-child(6) { animation-delay: 0.08s; }
.ear-keys i:nth-child(7) { animation-delay: 0.19s; }
.ear-keys i:nth-child(8) { animation-delay: 0.04s; }
.ear-keys i:nth-child(9) { animation-delay: 0.13s; }
.ear-keys i:nth-child(10) { animation-delay: 0.07s; }

.ear-hold {
  margin: 14px auto 0;
  max-width: 22ch;
  padding: 8px 12px 6px;
  text-align: center;
  font-family: "VT323", monospace;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: #f3ead7;
  background: rgba(8, 12, 10, 0.92);
}

@keyframes ear-return {
  0% { left: 8%; }
  70% { left: 78%; }
  78% { left: 8%; }
  100% { left: 8%; }
}

@keyframes ear-key {
  0%, 70%, 100% { transform: translateY(0); }
  20% { transform: translateY(3px); }
}

@keyframes ear-paper-feed {
  0%, 78% { transform: translateY(0); }
  86% { transform: translateY(6px); }
  100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ear-keys i,
  .ear-carriage i,
  .ear-paper { animation: none; }
}

.lift {
  background:
    radial-gradient(circle at 20% 20%, rgba(226, 179, 64, 0.12), transparent 42%),
    rgba(8, 14, 12, 0.78);
}

.lift-card {
  transform: rotate(-2.8deg) scale(1.02);
  padding-top: 52px;
  background:
    radial-gradient(circle at 88% 8%, rgba(154, 52, 44, 0.35), transparent 38%),
    radial-gradient(circle at 12% 100%, rgba(226, 179, 64, 0.22), transparent 45%),
    repeating-linear-gradient(125deg, rgba(16, 32, 24, 0.06) 0 2px, transparent 2px 9px),
    linear-gradient(158deg, #1a3328, #0c1613 68%);
  color: #f3ead6;
  clip-path: polygon(0 6%, 5% 0, 95% 0, 100% 8%, 100% 100%, 0 100%);
  box-shadow:
    inset 4px 0 0 #174e34,
    inset 8px 0 0 #e2b340,
    inset 12px 0 0 #9a342c,
    0 0 0 2px rgba(226, 179, 64, 0.35),
    0 28px 70px rgba(0, 0, 0, 0.62);
  animation: lift-wobble 4.2s ease-in-out infinite;
}

@keyframes lift-wobble {
  0%, 100% { transform: rotate(-2.8deg) scale(1.02); }
  50% { transform: rotate(-1.4deg) scale(1.025); }
}

.lift-deck {
  position: absolute;
  top: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(220px, 72%);
  padding: 6px 8px;
  background: linear-gradient(180deg, #243830, #102018);
  border: 2px solid #e2b340;
  border-radius: 4px;
  transform: translateX(-50%) rotate(1.5deg);
  box-shadow: 3px 4px 0 #9a342c;
}

.lift-reel {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(243, 234, 215, 0.55);
  background:
    repeating-conic-gradient(from 0deg, #102018 0 14deg, #174e34 14deg 28deg);
  animation: spin 1.4s linear infinite;
}

.lift-reel:last-child { animation-direction: reverse; animation-duration: 1.1s; }

.lift-window {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  padding: 0 6px;
  background: linear-gradient(180deg, #0a1210, #162820);
  border: 1px solid rgba(226, 179, 64, 0.45);
  border-radius: 2px;
}

.lift-spool {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(226, 179, 64, 0.6);
  background: radial-gradient(circle at 35% 35%, #e2b340, #102018 58%);
  animation: spin 0.9s linear infinite;
}

.lift-spool:last-child { animation-duration: 1.15s; animation-direction: reverse; }

.lift-card h2 { color: #f3ead7; max-width: 14ch; }
.lift-card .bag-kicker { color: #e2b340; letter-spacing: 0.12em; }
.lift-copy { color: rgba(243, 234, 214, 0.88); max-width: 34ch; }
.lift-which {
  margin: -6px 0 14px;
  font-family: "VT323", monospace;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #e2b340;
  text-transform: lowercase;
}

.lift-card .solid {
  background: #e2b340;
  color: #102018;
  border-color: #e2b340;
  box-shadow: 3px 3px 0 #9a342c;
}

.lift-card .ghost {
  color: #f3ead7;
  border-color: #e2b340;
  background: rgba(16, 32, 24, 0.45);
}

html[data-theme="pythia"] .lift {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 77, 136, 0.18), transparent 40%),
    rgba(6, 4, 12, 0.82);
}

html[data-theme="pythia"] .lift-card {
  background:
    radial-gradient(circle at 10% 90%, rgba(92, 239, 255, 0.2), transparent 42%),
    radial-gradient(circle at 92% 12%, rgba(255, 77, 136, 0.32), transparent 38%),
    repeating-linear-gradient(125deg, rgba(92, 239, 255, 0.07) 0 2px, transparent 2px 9px),
    #120814;
  color: #ffe9c4;
  box-shadow:
    inset 4px 0 0 #ff4d88,
    inset 8px 0 0 #ffb04a,
    inset 12px 0 0 #5cefff,
    0 0 0 2px rgba(255, 176, 74, 0.4),
    0 28px 70px rgba(0, 0, 0, 0.65);
}

html[data-theme="pythia"] .lift-deck {
  background: linear-gradient(180deg, #1a0610, #061016);
  border-color: #5cefff;
  box-shadow: 3px 4px 0 #ff4d88;
}

html[data-theme="pythia"] .lift-reel {
  border-color: rgba(92, 239, 255, 0.55);
  background: repeating-conic-gradient(from 0deg, #061016 0 14deg, #1a0610 14deg 28deg);
}

html[data-theme="pythia"] .lift-window { border-color: rgba(255, 77, 136, 0.55); }
html[data-theme="pythia"] .lift-spool {
  border-color: #ffb04a;
  background: radial-gradient(circle at 35% 35%, #ffb04a, #061016 58%);
}

html[data-theme="pythia"] .lift-card h2,
html[data-theme="pythia"] .lift-card .bag-kicker,
html[data-theme="pythia"] .lift-which { color: #ffb04a; }

html[data-theme="pythia"] .lift-card .solid {
  background: #ff4d88;
  color: #1a0610;
  border-color: #ff4d88;
  box-shadow: 3px 3px 0 #ffb04a;
}

html[data-theme="pythia"] .lift-card .ghost { color: #f4fbff; border-color: #5cefff; }

@media (prefers-reduced-motion: reduce) {
  .lift-card { animation: none; }
  .lift-reel,
  .lift-spool { animation: none; }
}

.aside-card {
  transform: rotate(2deg);
  padding-top: 28px;
  background:
    radial-gradient(circle at 18% 0, rgba(226, 179, 64, 0.28), transparent 36%),
    linear-gradient(168deg, #1a3328, #0c1613 72%);
  color: #f3ead6;
  clip-path: polygon(0 8%, 8% 0, 92% 0, 100% 7%, 100% 100%, 0 100%);
  box-shadow:
    inset 4px 0 0 #174e34,
    inset 8px 0 0 #e2b340,
    inset 12px 0 0 #9a342c,
    0 24px 60px rgba(0, 0, 0, 0.55);
}

.aside-card h2 { color: #f3ead7; }
.aside-card .bag-kicker { color: #e2b340; }
.aside-card .leave-tape {
  background: rgba(226, 179, 64, 0.72);
  transform: rotate(6deg);
}
.aside-card .solid {
  background: #e2b340;
  color: #102018;
  border-color: #e2b340;
  box-shadow: 3px 3px 0 #9a342c;
}
.aside-card .ghost {
  color: #f3ead7;
  border-color: #e2b340;
}

html[data-theme="pythia"] .aside-card {
  background:
    radial-gradient(circle at 80% 0, rgba(255, 77, 136, 0.28), transparent 42%),
    #120814;
  color: #ffe9c4;
  box-shadow:
    inset 4px 0 0 #ff4d88,
    inset 8px 0 0 #ffb04a,
    inset 12px 0 0 #5cefff,
    0 24px 60px rgba(0, 0, 0, 0.55);
}
html[data-theme="pythia"] .aside-card h2,
html[data-theme="pythia"] .aside-card .bag-kicker { color: #ffb04a; }
html[data-theme="pythia"] .aside-card .solid {
  background: #ff4d88;
  color: #1a0610;
  border-color: #ff4d88;
  box-shadow: 3px 3px 0 #ffb04a;
}
html[data-theme="pythia"] .aside-card .ghost { color: #f4fbff; border-color: #5cefff; }

.tour {
  z-index: 55;
  pointer-events: none;
  background: transparent;
}

.tour-dismiss {
  position: fixed;
  inset: 0;
  z-index: 68;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: default;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

html:not([data-shell="expo"]) .tour.tour-touch .tour-dismiss {
  background: rgba(8, 14, 12, 0.72);
}

html:not([data-shell="expo"]) .tour.tour-touch .tour-ring {
  box-shadow: none !important;
  animation: none !important;
  transition: none !important;
}

html:not([data-shell="expo"]) .tour.tour-touch .tour-card,
html:not([data-shell="expo"]) .tour.tour-touch .tour-card.leave-card {
  overflow: visible;
  max-height: none;
  animation: none;
}

html:not([data-shell="expo"]) .tour.tour-touch .tour-card .leave-actions {
  position: static;
  background: none;
}

html:not([data-shell="expo"]) .tour.tour-touch .tour-actions .ghost,
html:not([data-shell="expo"]) .tour.tour-touch .tour-actions .solid {
  min-height: 44px;
}

.tour-shade {
  display: none;
}

.tour-shade-piece {
  position: fixed;
  z-index: 54;
  pointer-events: none;
  contain: strict;
}

html[data-shell="expo"] .tour-shade:not([hidden]) {
  display: block;
}

html[data-shell="expo"] .tour-shade-piece {
  background: rgba(8, 14, 12, 0.72);
}

.tour-ring {
  position: fixed;
  z-index: 69;
  pointer-events: none;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(8, 14, 12, 0.72);
  border: 2px solid rgba(226, 179, 64, 0.85);
  outline: 1px dashed rgba(255, 77, 136, 0.45);
  outline-offset: 4px;
  animation: tour-ring-pulse 2.6s ease-in-out infinite;
  transition: top 0.35s ease, left 0.35s ease, width 0.35s ease, height 0.35s ease;
}

@keyframes tour-ring-pulse {
  0%, 100% { box-shadow: 0 0 0 9999px rgba(8, 14, 12, 0.72), 0 0 0 0 rgba(226, 179, 64, 0.5); }
  50% { box-shadow: 0 0 0 9999px rgba(8, 14, 12, 0.68), 0 0 18px 4px rgba(255, 77, 136, 0.35); }
}

.tour-card.leave-card {
  overflow-x: hidden;
  overflow-y: auto;
}

.tour-card {
  position: fixed;
  z-index: 70;
  width: min(360px, calc(100vw - 24px));
  max-height: min(52vh, 420px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
  touch-action: manipulation;
  transform: rotate(-1.8deg);
  animation: tour-card-in 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.tour-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.tour-head .bag-kicker {
  margin: 0;
}

.tour-head .tour-step {
  margin: 0;
  flex: none;
  white-space: nowrap;
}

.tour-card .leave-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding-top: 10px;
  margin-top: 8px;
  background: linear-gradient(180deg, transparent, rgba(247, 240, 223, 0.92) 28%);
}

.tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.tour-card-dock {
  width: auto !important;
  max-height: min(36vh, 260px) !important;
  transform: rotate(0.5deg) !important;
  padding: 12px 14px 10px 20px !important;
}

.tour.tour-page .tour-card {
  width: min(320px, calc(100vw - 20px));
  max-height: min(40vh, 300px);
  padding: 14px 14px 10px 22px;
}

.tour.tour-page .tour-card h2 {
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 5.2vw, 2rem);
  line-height: 0.95;
  max-width: none;
}

.tour.tour-page .tour-card p {
  margin: 0 0 10px;
  font-size: clamp(0.86rem, 3.6vw, 0.98rem);
  line-height: 1.42;
  max-width: 36ch;
}

.tour.tour-page .tour-head .tour-step {
  font-size: clamp(14px, 3.5vw, 17px);
}

.tour.tour-page .tour-card .leave-actions {
  gap: 6px;
}

.tour.tour-page .tour-card .solid,
.tour.tour-page .tour-card .ghost {
  font-size: 0.88rem;
  padding: 8px 12px;
}

@media (max-width: 820px) {
  .tour-card {
    width: min(300px, calc(100vw - 20px));
    max-height: min(42vh, 300px);
    padding: 12px 14px 12px 18px;
  }

  .tour-card h2 {
    font-size: clamp(1.3rem, 5.5vw, 1.85rem);
    max-width: none;
  }

  .tour-card #tour-body {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 4px;
  }

  .tour-head .tour-step {
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .tour-card .leave-actions {
    position: static;
    background: none;
    padding-top: 12px;
    margin-top: 10px;
    flex-direction: column;
  }

  .tour-actions .ghost,
  .tour-actions .solid {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

.tour-card-center {
  position: fixed;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: min(300px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  transform: translate(-50%, -50%) rotate(-1.4deg);
}

.tour.tour-page .tour-card.tour-card-center {
  top: 48%;
  transform: translate(-50%, -50%) rotate(0.5deg);
}

.tour-card.tour-card-page-dock {
  top: auto !important;
  bottom: calc(var(--tour-dock, 78px) + 12px);
  left: 58% !important;
  right: auto !important;
  width: min(300px, calc(100vw - 24px));
  max-height: min(34vh, 240px);
  transform: translateX(-50%) rotate(3.2deg);
  transform-origin: 52% 100%;
}

@media (max-width: 820px), (max-height: 740px) {
  .tour-card.tour-card-page-dock {
    padding: 12px 14px 10px 20px;
  }

  .tour-card.tour-card-page-dock h2 {
    font-size: clamp(1.2rem, 5vw, 1.65rem);
  }

  .tour-card.tour-card-page-dock #tour-body {
    font-size: 0.86rem;
    line-height: 1.38;
  }
}

html[data-shell="expo"] .tour-card,
html[data-shell="expo"] .tour-card.leave-card {
  max-height: none;
  overflow-y: visible !important;
}

html[data-shell="expo"] .tour-card.tour-card-expo-fit {
  overflow-y: visible !important;
  -webkit-overflow-scrolling: auto;
}

html[data-shell="expo"] .tour-card.tour-card-expo-fit .tour-orb,
html[data-shell="expo"] .tour-card.tour-card-expo-fit .tour-spark {
  display: none;
}

html[data-shell="expo"] .tour-card.tour-card-expo-fit {
  padding: 10px 12px 10px 16px;
}

html[data-shell="expo"] .tour-card.tour-card-expo-fit .tour-head {
  margin-bottom: 2px;
}

html[data-shell="expo"] .tour-card.tour-card-expo-fit .tour-head .tour-step {
  font-size: 12px;
  letter-spacing: 0.08em;
}

html[data-shell="expo"] .tour-card.tour-card-expo-fit h2 {
  font-size: 1.12rem;
  margin: 0 0 4px;
  line-height: 1.05;
  max-width: none;
}

html[data-shell="expo"] .tour-card.tour-card-expo-fit #tour-body {
  font-size: 0.8rem;
  line-height: 1.32;
  margin-bottom: 4px;
}

html[data-shell="expo"] .tour-card.tour-card-expo-fit .leave-actions {
  position: static;
  background: none;
  padding-top: 6px;
  margin-top: 2px;
}

html[data-shell="expo"] .tour-card.tour-card-expo-fit .tour-actions {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}

html[data-shell="expo"] .tour-card.tour-card-expo-fit .tour-actions .ghost,
html[data-shell="expo"] .tour-card.tour-card-expo-fit .tour-actions .solid {
  width: auto;
  flex: 1 1 calc(50% - 4px);
  font-size: 0.78rem;
  padding: 7px 8px;
}

html[data-shell="expo"] .tour-card.tour-card-expo-tight h2 {
  font-size: 1.02rem;
}

html[data-shell="expo"] .tour-card.tour-card-expo-tight #tour-body {
  font-size: 0.76rem;
  line-height: 1.28;
}

html[data-shell="expo"] .tour-card.tour-card-center {
  transform: rotate(-1.4deg);
}

html[data-shell="expo"] .tour.tour-page .tour-card.tour-card-center {
  transform: rotate(0.5deg);
}

html[data-shell="expo"] .tour-card.tour-card-page-dock {
  max-height: none;
  transform: translateX(-50%) rotate(3.4deg);
}

html[data-shell="expo"] .tour-card.tour-card-page-dock-vv {
  top: var(--tour-page-card-top) !important;
  bottom: auto !important;
  left: var(--tour-page-card-left) !important;
  height: var(--tour-page-card-h, auto);
  max-height: var(--tour-page-card-max-h, none) !important;
  transform: translateX(-50%) rotate(2.6deg);
  transform-origin: 50% 88%;
  padding-bottom: 10px;
}

html[data-shell="expo"] .tour-card.tour-card-page-dock-vv .leave-actions {
  padding-bottom: 2px;
}

html[data-shell="expo"] .tour-ring {
  box-shadow: none !important;
  animation: none !important;
}

html[data-shell="expo"] .tour.tour-page .tour-ring {
  animation: none !important;
}

html[data-shell="expo"] .tour-card,
html[data-shell="expo"] .tour-card-center {
  animation: none !important;
}

html[data-shell="expo"] .tour-spark,
html[data-shell="expo"] .tour-orb,
html[data-shell="expo"] .tour-highlight {
  animation: none !important;
}

html[data-shell="expo"] .tour-highlight {
  filter: none !important;
}

html[data-shell="expo"] .tour-orb {
  filter: blur(6px);
  opacity: 0.4;
}

.tour-card .tour-step {
  font-family: VT323, "Courier New", monospace;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3d5344;
}

.tour-spark {
  animation: tour-spark-wiggle 3.2s ease-in-out infinite;
}

@keyframes tour-spark-wiggle {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(12deg) translateY(-2px); }
}

.tour-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.55;
  pointer-events: none;
}

.tour-orb.o1 {
  width: 64px;
  height: 64px;
  top: -8px;
  left: -12px;
  background: rgba(255, 77, 136, 0.45);
  animation: tour-orb-drift 4.5s ease-in-out infinite;
}

.tour-orb.o2 {
  width: 48px;
  height: 48px;
  bottom: 8px;
  right: 24px;
  background: rgba(226, 179, 64, 0.5);
  animation: tour-orb-drift 5.2s ease-in-out infinite reverse;
}

@keyframes tour-orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -8px); }
}

@keyframes tour-card-in {
  from { opacity: 0; transform: translateY(12px) rotate(-3deg) scale(0.96); }
  to { opacity: 1; transform: translateY(0) rotate(-1.8deg) scale(1); }
}

.tour-card-center {
  animation: tour-card-in-center 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tour-card-in-center {
  from { opacity: 0; transform: translate(-50%, -46%) rotate(-3deg) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(-1.4deg) scale(1); }
}

.tour-highlight {
  position: relative;
  z-index: 46 !important;
  animation: tour-target-glow 2.4s ease-in-out infinite;
}

@keyframes tour-target-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(226, 179, 64, 0)); }
  50% { filter: drop-shadow(0 0 10px rgba(226, 179, 64, 0.55)); }
}

html[data-theme="pythia"] .tour-ring {
  border-color: rgba(92, 239, 255, 0.9);
  outline-color: rgba(255, 176, 74, 0.5);
}

html[data-theme="pythia"] .tour-card {
  background:
    radial-gradient(circle at 12% 0, rgba(255, 77, 136, 0.35), transparent 46%),
    radial-gradient(circle at 100% 100%, rgba(92, 239, 255, 0.22), transparent 40%),
    #120814;
  color: #ffe9c4;
  box-shadow:
    inset 4px 0 0 #ff4d88,
    inset 8px 0 0 #ffb04a,
    inset 12px 0 0 #5cefff,
    0 24px 60px rgba(0, 0, 0, 0.55);
}

html[data-theme="pythia"] .tour-card h2 {
  font-family: Syne, Outfit, sans-serif;
  font-style: normal;
  font-weight: 700;
  color: #ffb04a;
}

html[data-theme="pythia"] .tour-card .tour-step { color: #5cefff; }

html[data-theme="pythia"] .tour-card .solid {
  background: #ff4d88;
  color: #1a0610;
  border-color: #ff4d88;
  box-shadow: 3px 3px 0 #ffb04a;
}

@media (prefers-reduced-motion: reduce) {
  .tour-ring,
  .tour-spark,
  .tour-orb,
  .tour-highlight,
  .tour-card {
    animation: none !important;
  }
}

.tour.tour-page .tour-ring {
  border-color: rgba(255, 77, 136, 0.88);
  outline-color: rgba(125, 154, 114, 0.55);
  animation-name: tour-ring-pulse-page;
}

@keyframes tour-ring-pulse-page {
  0%, 100% { box-shadow: 0 0 0 9999px rgba(8, 14, 12, 0.72), 0 0 0 0 rgba(255, 77, 136, 0.45); }
  50% { box-shadow: 0 0 0 9999px rgba(8, 14, 12, 0.66), 0 0 22px 6px rgba(226, 179, 64, 0.4); }
}

.tour.tour-page .tour-card {
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 77, 136, 0.22), transparent 44%),
    radial-gradient(circle at 0% 100%, rgba(125, 154, 114, 0.28), transparent 42%),
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(16, 32, 24, 0.04) 3px 4px),
    linear-gradient(165deg, #f7f0df, #e7d3a4);
}

.tour.tour-page .tour-orb.o1 { background: rgba(125, 154, 114, 0.55); }
.tour.tour-page .tour-orb.o2 { background: rgba(255, 77, 136, 0.48); }

.tour.tour-page .tour-head .tour-step { color: #9a342c; }

html[data-theme="pythia"] .tour.tour-page .tour-card {
  background:
    radial-gradient(circle at 100% 0, rgba(92, 239, 255, 0.25), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(255, 77, 136, 0.32), transparent 46%),
    #120814;
}

html[data-theme="pythia"] .tour.tour-page .tour-head .tour-step { color: #ffb04a; }

html[data-theme="pythia"] .tour-card .leave-actions {
  background: linear-gradient(180deg, transparent, rgba(18, 8, 20, 0.94) 30%);
}

html[data-theme="pythia"] .bag-tour-row .tour-mini {
  border-color: rgba(92, 239, 255, 0.28);
  color: rgba(244, 251, 255, 0.78);
}

html[data-theme="pythia"] .bag-tour-row .tour-mini:hover {
  border-color: rgba(92, 239, 255, 0.55);
  color: #5cefff;
}

.door-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 4px;
  color: #6d5a32;
  letter-spacing: 0.08em;
  font-size: 15px;
}

.door-or::before,
.door-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #cbb892;
}

.oauth-key {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 5px 10px 5px 6px;
  border: 1px solid #6d5a32;
  background: #f6efe0;
  color: #102018;
  cursor: pointer;
  box-shadow: 2px 2px 0 #9a342c;
}

.oauth-key svg {
  width: 38px;
  height: 38px;
  flex: none;
}

.oauth-key span {
  letter-spacing: 0.12em;
}

.oauth-key:hover {
  background: #fff8ea;
  color: #102018;
}

.find-lamp {
  position: sticky;
  top: var(--chrome-header, 112px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 2px;
  width: fit-content;
  max-width: calc(100% - 86px);
  margin: 0 0 18px;
  padding: 8px 6px 6px;
  background: #fff8ea;
  color: #1a1610;
  border: 1px solid rgba(26, 25, 20, 0.14);
  box-shadow:
    0 10px 22px rgba(26, 25, 20, 0.08),
    3px 3px 0 rgba(154, 52, 44, 0.42);
}

.find-lamp::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #174e34 0 33%, #e2b340 33% 66%, #9a342c 66% 100%);
}

.find-read {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 5.5rem;
  max-width: 11rem;
  padding: 0 8px 1px;
  line-height: 1.1;
}

.find-kicker {
  font-family: Outfit, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6a5a42;
}

.find-word {
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 560;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #6e4034;
}

.find-count {
  margin-top: 1px;
  font-family: VT323, "Courier New", monospace;
  font-size: 20px;
  letter-spacing: 0.03em;
  line-height: 1;
  color: #174e34;
}

.find-step {
  width: 30px;
  height: 32px;
  padding: 0 0 2px;
  border: 0;
  background: transparent;
  color: #174e34;
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  line-height: 1;
}

.find-step:hover { background: rgba(226, 179, 64, 0.38); }

.find-step:disabled {
  opacity: 0.28;
  background: transparent;
}

mark.find-hit {
  border-radius: 2px;
  padding: 0 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  scroll-margin-top: 168px;
  scroll-margin-bottom: 96px;
}

html .paper .entry-title .find-hit,
html .paper .prose .find-hit,
html .paper .when .find-hit,
html .paper .stamp .find-hit,
html .paper .activity .find-hit,
html .paper .transcript-note .find-hit,
html .paper .transcript-note span .find-hit {
  background: #f3d78a;
  color: #1a1610;
  box-shadow: inset 0 -2px 0 rgba(154, 52, 44, 0.38);
}

html .paper .entry-title .find-hit.here,
html .paper .prose .find-hit.here,
html .paper .when .find-hit.here,
html .paper .stamp .find-hit.here,
html .paper .activity .find-hit.here,
html .paper .transcript-note .find-hit.here,
html .paper .transcript-note span .find-hit.here {
  background: #1e3328;
  color: #f6edd8;
  box-shadow: 0 0 0 2px #e2b340;
}

html .paper .find-hit.flash {
  animation: find-glow 0.7s ease;
}

@keyframes find-glow {
  from { box-shadow: 0 0 0 7px rgba(226, 179, 64, 0.55); }
  to { box-shadow: 0 0 0 2px #e2b340; }
}

.stamp:has(.find-hit) { mix-blend-mode: normal; }

.track .find-hit {
  background: rgba(228, 194, 122, 0.22);
  color: #f8efd8;
  box-shadow: inset 0 -1px 0 rgba(228, 194, 122, 0.9);
}

html[data-theme="pythia"] .find-lamp {
  background: #10141c;
  color: #f4fbff;
  border-color: rgba(92, 239, 255, 0.42);
  box-shadow:
    3px 3px 0 rgba(255, 77, 136, 0.5),
    0 12px 28px rgba(0, 0, 0, 0.32);
}

html[data-theme="pythia"] .find-lamp::before {
  background: linear-gradient(90deg, #5cefff 0 33%, #ffb04a 33% 66%, #ff4d88 66% 100%);
}

html[data-theme="pythia"] .find-kicker { color: #ffb04a; }
html[data-theme="pythia"] .find-word { color: #f4fbff; }

html[data-theme="pythia"] .find-count,
html[data-theme="pythia"] .find-step { color: #5cefff; }

html[data-theme="pythia"] .find-step:hover { background: rgba(92, 239, 255, 0.12); }

html[data-theme="pythia"] .paper .entry-title .find-hit,
html[data-theme="pythia"] .paper .prose .find-hit,
html[data-theme="pythia"] .paper .when .find-hit,
html[data-theme="pythia"] .paper .stamp .find-hit,
html[data-theme="pythia"] .paper .activity .find-hit,
html[data-theme="pythia"] .paper .transcript-note .find-hit,
html[data-theme="pythia"] .paper .transcript-note span .find-hit {
  background: rgba(255, 176, 74, 0.34);
  color: #fff6e8;
  box-shadow: inset 0 -2px 0 rgba(255, 176, 74, 0.85);
}

html[data-theme="pythia"] .paper .entry-title .find-hit.here,
html[data-theme="pythia"] .paper .prose .find-hit.here,
html[data-theme="pythia"] .paper .when .find-hit.here,
html[data-theme="pythia"] .paper .stamp .find-hit.here,
html[data-theme="pythia"] .paper .activity .find-hit.here,
html[data-theme="pythia"] .paper .transcript-note .find-hit.here,
html[data-theme="pythia"] .paper .transcript-note span .find-hit.here {
  background: #ffb04a;
  color: #1a1008;
  box-shadow: 0 0 0 2px rgba(92, 239, 255, 0.8);
}

html[data-theme="pythia"] .track .find-hit {
  background: rgba(255, 176, 74, 0.18);
  color: #fff1d6;
  box-shadow: inset 0 -1px 0 rgba(255, 176, 74, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  html .paper .find-hit.flash { animation: none; }
}

.door-oauth-terms {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6d5a32;
}
.door-oauth-terms a { color: inherit; }

.tour-card .tour-spark {
  top: 4px;
  right: auto;
  left: calc(50% - 37px);
}

html:not([data-shell="expo"]) .bag-phone { display: none; }

.bag-door-row { margin-top: 10px; }
.bag-door-row .restore { margin-top: 0; }

.bag-you .profile-note {
  font-family: Literata, Georgia, serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}
.bag-door-row:has(> [hidden]:only-child) { display: none; }
.welcome .actions .linkish {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.door-first { margin-top: 18px; }
.door-first-note,
.door-held,
.guest-note {
  max-width: 42ch;
  margin: 10px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #3d5c45;
}
.door-held {
  padding: 10px 14px;
  border: 1px dashed rgba(61, 92, 69, 0.45);
  border-radius: 8px;
}
.guest-note { margin: 8px 0 14px; }

/* The plan card: yearly first, monthly as the quiet second, three plain lines on what it holds. */
.plan-card {
  margin-top: 18px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(228, 194, 122, 0.45);
  background: rgba(228, 194, 122, 0.06);
}

.plan-gets {
  margin: 10px 0 14px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(243, 234, 215, 0.86);
}

.plan-gets li + li { margin-top: 4px; }

.bag-you .plan-pick {
  display: grid;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  text-align: center;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #16120a;
}

.plan-pick .plan-price { font-size: 1.05rem; font-weight: 700; }
.plan-pick .plan-sub { font-size: 0.8rem; opacity: 0.8; }

.bag-you .plan-month {
  display: block;
  width: 100%;
  margin-top: 8px;
  text-align: center;
}

.trust-note {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(228, 194, 122, 0.3);
}

/* Google and Apple lead the door now; the email form follows. */
.door-form > .door-oauth { margin-top: 8px; }

/* The close-account slip opens from the bag, so it sits above the bag. */
#close-account { z-index: 75; }
