/* MIRROR 2027 — Icelandic night palette */
:root {
  --night-0: #070B24;
  --night-1: #0C1235;
  --night-2: #121A48;
  --night-3: #1F2A66;
  --line: rgba(191, 210, 255, 0.14);
  --line-strong: rgba(191, 210, 255, 0.28);

  --ink: #E9EEF8;
  --ink-2: #B3BEDF;
  --ink-3: #7F8AB8;

  --ice: #BFE3F2;
  --aurora: #5BF2B0;
  --aurora-2: #7FE6E0;
  --violet: #A48BFF;
  --note: #FFE89A;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --container: 1080px;
  --radius: 14px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--night-0);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--aurora); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ice); }
:focus-visible { outline: 2px solid var(--aurora); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0; }
h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 30ch; letter-spacing: -0.01em; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
sup { font-size: 0.6em; }
button { font: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-3); }
.kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--aurora); margin-bottom: 14px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s, transform 0.6s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 11, 36, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 20px; letter-spacing: 0.08em; user-select: none; }
.brand:hover { color: var(--ink); }
.brand-year { color: var(--ink-3); font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; }
.nav-links { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: rgba(191, 210, 255, 0.08); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--ink); border-radius: 8px; padding: 6px 12px; font-size: 14px; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(7, 11, 36, 0.96); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, #04061A 0%, #0A0F33 38%, #1A1A55 62%, #0B1036 63%, #070B24 100%);
  transition: transform 0.6s;
}
.sky { position: absolute; inset: 0 0 37% 0; pointer-events: none; }
.stars { position: absolute; inset: 0; background-repeat: repeat; opacity: 0.8; }
.stars-a {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, #dfe8ff, transparent),
    radial-gradient(1.5px 1.5px at 200px 160px, #fff, transparent),
    radial-gradient(1px 1px at 60px 210px, #cfd9ff, transparent),
    radial-gradient(1px 1px at 260px 40px, #fff, transparent);
  background-size: 300px 260px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
.stars-b {
  background-image:
    radial-gradient(1px 1px at 50px 120px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 170px 20px, #e7ecff, transparent),
    radial-gradient(1px 1px at 330px 190px, #fff, transparent),
    radial-gradient(1px 1px at 400px 90px, #cfd9ff, transparent);
  background-size: 460px 240px;
  animation: twinkle 9s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.9; } }

.aurora { position: absolute; inset: 0; filter: blur(42px) saturate(1.2); opacity: 0.55; transition: opacity 1.5s, filter 1.5s; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora span:nth-child(1) {
  width: 70%; height: 38%; left: -5%; top: 12%;
  background: radial-gradient(ellipse at center, rgba(91, 242, 176, 0.75), transparent 65%);
  transform: rotate(-12deg); animation: drift1 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) {
  width: 60%; height: 30%; right: -8%; top: 4%;
  background: radial-gradient(ellipse at center, rgba(164, 139, 255, 0.7), transparent 65%);
  transform: rotate(10deg); animation: drift2 28s ease-in-out infinite alternate;
}
.aurora span:nth-child(3) {
  width: 50%; height: 26%; left: 28%; top: 28%;
  background: radial-gradient(ellipse at center, rgba(127, 230, 224, 0.55), transparent 65%);
  animation: drift3 18s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(8%, 6%) rotate(-4deg) scaleX(1.15); } }
@keyframes drift2 { to { transform: translate(-10%, 10%) rotate(18deg) scaleX(0.9); } }
@keyframes drift3 { to { transform: translate(-12%, -8%) scaleX(1.3); } }

body.night .aurora { opacity: 0.95; filter: blur(36px) saturate(1.6); }
body.night .aurora span { animation-duration: 9s; }

.hero-content { position: relative; z-index: 2; text-align: center; padding: calc(var(--nav-h) + 24px) 0 56px; }
.eyebrow { font-family: var(--mono); font-size: clamp(12px, 1.3vw, 14px); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ice); margin: 0 auto 28px; padding: 0 24px; }

.stage { --above-h: clamp(130px, 19vw, 250px); position: relative; }
.above { position: relative; height: var(--above-h); display: flex; align-items: flex-end; justify-content: center; }
.below { position: relative; height: calc(var(--above-h) * 0.72); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 92%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 92%); }

.range { position: absolute; left: 0; width: 100%; pointer-events: none; }
.above .range { bottom: 0; }
.above .range-back { height: 78%; fill: #12174A; }
.above .range-front { height: 64%; fill: #090D2C; }
.below .range { top: 0; transform: scaleY(-1); }
.below .range-back { height: calc(var(--above-h) * 0.78); fill: #12174A; opacity: 0.55; }
.below .range-front { height: calc(var(--above-h) * 0.64); fill: #050822; opacity: 0.8; }

.waterline { height: 1px; background: linear-gradient(90deg, transparent, rgba(191, 227, 242, 0.55) 20%, rgba(191, 227, 242, 0.55) 80%, transparent); position: relative; z-index: 1; }

.title {
  position: relative; z-index: 2; cursor: default;
  font-family: var(--serif); font-weight: 300; line-height: 0.74;
  font-size: clamp(64px, 15vw, 210px); letter-spacing: 0.1em; margin-right: -0.1em;
  color: var(--ink); text-shadow: 0 0 40px rgba(91, 242, 176, 0.18);
}
.title:focus-visible { outline-offset: 12px; }
.t-word { display: inline-block; transition: opacity 0.5s, filter 0.5s; }
.t-claim {
  position: absolute; left: 50%; bottom: 0.08em; transform: translateX(-50%);
  width: max-content; max-width: 92vw; font-size: clamp(24px, 4.2vw, 56px); letter-spacing: 0.01em; line-height: 1.1;
  font-weight: 400; opacity: 0; transition: opacity 0.5s; pointer-events: none;
}

.ripple { position: absolute; inset: 0; filter: url(#water); }
.reflection {
  position: absolute; left: 0; right: 0; top: 0; text-align: center;
  font-family: var(--serif); font-weight: 300; line-height: 0.74;
  font-size: clamp(64px, 15vw, 210px); letter-spacing: 0.1em; margin-right: -0.1em;
  color: rgba(191, 227, 242, 0.42); transform: scaleY(-1); transform-origin: top;
  padding-top: 0.0em;
}
.r-word { display: inline-block; transform: translateY(-100%); transition: opacity 0.5s; }
.r-caveat {
  position: absolute; left: 50%; top: 18%; transform: translateX(-50%); width: max-content; max-width: 92vw;
  font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.6vw, 34px); color: var(--aurora);
  opacity: 0; transition: opacity 0.6s 0.15s; text-shadow: 0 0 18px rgba(91, 242, 176, 0.35);
}
.title.confess .t-word { opacity: 0; filter: blur(6px); }
.title.confess .t-claim { opacity: 1; }
.stage.confess .r-word { opacity: 0; }
.stage.confess .r-caveat { opacity: 1; }

.hero-meta { margin: 8px auto 30px; padding: 0 24px; color: var(--ink-2); font-size: clamp(15px, 1.6vw, 18px); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.hero-meta .dot { color: var(--ink-3); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 0 24px; }

.night-note { position: absolute; z-index: 3; right: 20px; bottom: 16px; max-width: 320px; margin: 0; text-align: right; font-size: 13px; color: var(--ink-3); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
  background: rgba(191, 210, 255, 0.04); transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { color: var(--ink); background: rgba(191, 210, 255, 0.1); border-color: var(--ice); }
.btn-primary { background: var(--aurora); color: #062418; border-color: var(--aurora); }
.btn-primary:hover { background: #8af7c9; color: #062418; border-color: #8af7c9; }
.btn-block { width: 100%; margin-top: 8px; }
.btn.is-pending { background: transparent; color: var(--ink-3); border-style: dashed; border-color: var(--line-strong); cursor: default; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; transition: transform 0.6s; }
.section-alt { background: var(--night-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin-bottom: 40px; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--ink); }

.epigraph { margin: 0 auto 88px; max-width: 760px; text-align: center; }
.epigraph blockquote { margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.4; color: var(--ink); }
.epigraph figcaption { color: var(--ink-3); font-size: 15px; }
.fool { all: unset; cursor: pointer; background-image: linear-gradient(transparent 62%, rgba(91, 242, 176, 0.22) 62%); transition: background-size 0.3s; }
.fool:hover { background-image: linear-gradient(transparent 62%, rgba(91, 242, 176, 0.42) 62%); }
.fool:focus-visible { outline: 2px solid var(--aurora); }

.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.about-grid h2 { margin-bottom: 0; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 24px; } }

.directions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
@media (max-width: 860px) { .directions { grid-template-columns: 1fr; } }
.dir {
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(31, 42, 102, 0.45), rgba(12, 18, 53, 0.2));
  position: relative; overflow: hidden;
}
.dir::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: linear-gradient(90deg, var(--aurora), var(--violet)); opacity: 0.6; }
.dir-icon { font-size: 26px; color: var(--aurora); margin-bottom: 12px; font-family: var(--sans); line-height: 1; }
.dir h3 { margin-bottom: 10px; }
.dir p { color: var(--ink-2); margin: 0; font-size: 16px; }

/* ---------- Reflections carousel ---------- */
.carousel { max-width: 880px; }
.slide-wrap { min-height: 330px; }
.slide {
  border-radius: var(--radius); border: 1px solid var(--line-strong); padding: 32px 36px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(164, 139, 255, 0.14), transparent 55%), var(--night-2);
  transition: opacity 0.35s, transform 0.35s;
}
.slide.out { opacity: 0; transform: translateY(8px); }
.slide-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.slide-dyk { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.slide-tag { font-family: var(--mono); font-size: 12px; color: var(--aurora); border: 1px solid rgba(91, 242, 176, 0.35); border-radius: 999px; padding: 3px 10px; }
.slide h3 { font-size: clamp(21px, 2.4vw, 27px); margin-bottom: 18px; }
.slide-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .slide-cols { grid-template-columns: 1fr; gap: 8px; } .slide { padding: 24px; } }
.slide-cols h4 { margin: 0 0 4px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.slide-cols p { color: var(--ink-2); font-size: 16px; }
.slide-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 16px; padding: 0; list-style: none; }
.slide-chips li { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: rgba(191, 210, 255, 0.07); color: var(--ink-2); }
.slide-cite { margin: 6px 0 0; font-size: 14px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 14px; }
.slide-cite a { color: var(--ink-2); }

.carousel-controls { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.icon-btn:hover { border-color: var(--ice); background: rgba(191, 210, 255, 0.08); }
.dots { display: flex; gap: 8px; flex-wrap: wrap; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line-strong); cursor: pointer; }
.dots button[aria-selected="true"] { background: var(--aurora); width: 24px; border-radius: 6px; }

/* ---------- Topics ---------- */
.topics { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.topics li { background: var(--night-0); padding: 22px 24px; transition: background 0.2s; }
.topics li:hover { background: var(--night-1); }
.topics h3 { font-size: 18px; margin-bottom: 6px; }
.topics p { margin: 0; color: var(--ink-3); font-size: 15px; }

/* ---------- CFP ---------- */
.cfp-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .cfp-grid { grid-template-columns: 1fr; } }
.questions { list-style: none; padding: 0; margin: 0 0 28px; }
.questions li { font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--ink); padding: 12px 0 12px 30px; position: relative; border-bottom: 1px solid var(--line); }
.questions li::before { content: "?"; position: absolute; left: 0; top: 12px; color: var(--aurora); font-family: var(--mono); font-size: 17px; }
.card { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--night-2); padding: 28px; }
.format h3 { margin-bottom: 16px; }
.format dl { margin: 0 0 12px; }
.format dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.format dt { font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding-top: 2px; }
.format dd { margin: 0; color: var(--ink); font-size: 15px; }

/* ---------- Dates ---------- */
abbr[title] { text-decoration: underline dotted var(--ink-3); text-underline-offset: 5px; cursor: help; }
.dates { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .dates { grid-template-columns: 1fr; } }
.dates li { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.dates li.next { border-color: rgba(91, 242, 176, 0.6); background: rgba(91, 242, 176, 0.05); }
.dates li.past time { text-decoration: line-through; color: var(--ink-3); }
.date-label { display: block; font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: 0.04em; margin-bottom: 8px; }
.dates time { font-family: var(--serif); font-size: 30px; color: var(--ink); }
.countdown { margin: 24px 0 0; font-family: var(--mono); font-size: 15px; color: var(--ink-2); }
.countdown b { color: var(--aurora); font-weight: 500; }
.errbar { all: unset; cursor: pointer; border-bottom: 1px dotted var(--aurora); }
.errbar:hover { color: var(--ice); }

/* ---------- Program ---------- */
.keynote { display: grid; grid-template-columns: auto 1fr; gap: 28px; margin-bottom: 56px; align-items: start; }
@media (max-width: 640px) { .keynote { grid-template-columns: 1fr; } }
.keynote h3 { font-size: 28px; }
.keynote .kicker { margin-bottom: 8px; }
.affil { color: var(--ink-3); margin-bottom: 14px; }
.talk-title { font-family: var(--serif); font-style: italic; color: var(--ice); }
.keynote p:last-child { color: var(--ink-2); margin: 0; }
.sub { font-size: 24px; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.tag { font-family: var(--mono); font-size: 12px; color: var(--note); border: 1px solid rgba(255, 232, 154, 0.4); border-radius: 999px; padding: 2px 10px; }

.timeline { list-style: none; padding: 0; margin: 24px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 76px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--aurora), var(--violet)); opacity: 0.5; }
.slot { display: grid; grid-template-columns: 60px 1fr; gap: 40px; padding: 14px 0; position: relative; }
.slot::before { content: ""; position: absolute; left: 71px; top: 22px; width: 11px; height: 11px; border-radius: 50%; background: var(--night-1); border: 2px solid var(--aurora); }
.slot-minor::before, .slot-break::before { border-color: var(--ink-3); width: 9px; height: 9px; left: 72px; top: 23px; }
.slot time { font-family: var(--mono); font-size: 15px; color: var(--ink-2); padding-top: 3px; }
.slot strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--ink); }
.slot span { color: var(--ink-3); font-size: 15px; }
.slot-minor strong, .slot-break strong { font-size: 17px; color: var(--ink-2); }

/* ---------- People ---------- */
.avatar {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; object-fit: cover;
  font-family: var(--serif); font-size: 30px; color: var(--ink);
  background: radial-gradient(circle at 30% 25%, rgba(91, 242, 176, 0.35), transparent 60%), radial-gradient(circle at 75% 80%, rgba(164, 139, 255, 0.45), transparent 60%), var(--night-3);
  border: 1px solid var(--line-strong);
}
.avatar-lg { width: 140px; height: 140px; font-size: 42px; }
img.avatar { object-position: 50% 20%; padding: 0; }
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 860px) { .people { grid-template-columns: repeat(2, 1fr); } }
.person { text-align: center; }
.person .avatar { margin: 0 auto 16px; }
.person h3 { font-size: 19px; margin-bottom: 4px; }
.person h3 a { color: var(--ink); }
.person p { color: var(--ink-3); font-size: 14px; margin: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; background: #050822; font-size: 14px; transition: transform 0.6s; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .brand { margin-bottom: 14px; font-size: 17px; }
.fineprint { color: var(--ink-3); font-size: 13px; }
.fineprint p { margin-bottom: 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.badge { font-family: var(--mono); font-size: 12px; padding: 3px 10px; border-radius: 6px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); }
.badge.ok { color: var(--aurora); border-color: rgba(91, 242, 176, 0.35); }
.badge.fail { color: #FF9AA8; border-color: rgba(255, 154, 168, 0.35); cursor: pointer; }
.badge.fail.win { color: var(--aurora); border-color: rgba(91, 242, 176, 0.35); }
.pval { all: unset; cursor: pointer; font-family: var(--mono); color: var(--ink-2); border-bottom: 1px dotted var(--ink-3); }
.pval.sig { color: var(--aurora); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; width: min(560px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; background: rgba(18, 26, 72, 0.96); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 14px 18px; color: var(--ink); font-size: 15px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  animation: toast-in 0.3s ease-out;
}
.toast small { display: block; color: var(--ink-3); margin-top: 4px; font-size: 13px; }
.toast.leaving { opacity: 0; transform: translateY(8px); transition: 0.3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Easter egg: page mirroring ---------- */
body.mirrored .flip-target { transform: scaleX(-1); }

/* ---------- Easter egg: Reviewer 2 mode ---------- */
.r2-banner {
  position: fixed; z-index: 60; top: var(--nav-h); left: 0; right: 0; padding: 10px 24px;
  background: #3a0d1c; color: #FFD6DE; border-bottom: 1px solid #7a2140; font-family: var(--mono); font-size: 13px;
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; align-items: center;
}
.r2-banner button { all: unset; cursor: pointer; text-decoration: underline; }
.r2-note {
  position: absolute; z-index: 20; width: 230px; padding: 14px 16px 12px; right: 18px; top: 36px;
  background: var(--note); color: #2b2410; font-family: "Comic Sans MS", "Segoe Print", "Bradley Hand", cursive;
  font-size: 15px; line-height: 1.35; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); border-radius: 2px;
  animation: note-in 0.4s cubic-bezier(.2, 1.4, .4, 1) both;
}
.r2-note b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: #8a1c3a; margin-bottom: 4px; }
.r2-note button { margin-top: 10px; font-family: var(--mono); font-size: 11px; background: #2b2410; color: var(--note); border: 0; border-radius: 4px; padding: 4px 8px; cursor: pointer; }
@keyframes note-in { from { opacity: 0; transform: scale(0.6) rotate(0deg); } }
@media (max-width: 760px) { .r2-note { position: relative; right: auto; top: auto; margin: 0 auto 24px; display: block; } }
