/* ============================================================================
   BARCELONA PRIDE WEEK — LIQUID GLASS
   Bright Pride daytime · mobile-first · WWDC-grade translucency
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f3fb;
  --bg-2: #efeaf7;
  --ink: #17131f;
  --ink-soft: #514b5e;
  --muted: #8b8498;
  --line: rgba(23, 19, 31, 0.08);
  --line-2: rgba(23, 19, 31, 0.13);

  /* Pride gradient */
  --grad: linear-gradient(
    118deg,
    #ff3b6b 0%,
    #ff7a3d 22%,
    #ffc73a 42%,
    #35d39a 60%,
    #3b9bf6 80%,
    #9b5cf6 100%
  );
  --grad-soft: linear-gradient(118deg, #ff3b6b26, #35d39a1f 55%, #9b5cf62b);
  --accent: #7c4dff;

  /* Liquid glass material */
  --glass: rgba(255, 255, 255, 0.5);
  --glass-2: rgba(255, 255, 255, 0.64);
  --glass-3: rgba(255, 255, 255, 0.78);
  --glass-brd: rgba(255, 255, 255, 0.7);
  --blur: saturate(190%) blur(22px);
  --blur-lg: saturate(200%) blur(34px);
  /* specular = crisp top light + faint full rim; used as first box-shadow layer */
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.5),
    inset 0 -8px 20px rgba(255, 255, 255, 0.18);
  --drop: 0 10px 30px rgba(23, 19, 31, 0.1), 0 2px 8px rgba(23, 19, 31, 0.05);
  --drop-lg: 0 22px 50px rgba(23, 19, 31, 0.16);

  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 13px;
  --pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --dur: 0.5s;

  --maxw: 480px;
  --tab-h: 66px;
  --tab-gap: 14px;

  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
    Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "SF Pro Display", var(--font);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
[hidden] {
  display: none !important;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}
button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}
input,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  line-height: 1.0;
}
/* Editorial display face on the key type moments */
.topbar-greet,
.dc-num,
.dc-title,
.poll-title,
.hero-count,
.hero-count-unit,
.tl-title {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 220% 220%;
  animation: gradShift 9s ease infinite;
}

/* ---------- Icons ---------- */
.ico {
  width: 1.35em;
  height: 1.35em;
  flex-shrink: 0;
}

/* ---------- Ambient aurora backdrop (the light glass refracts) ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}
/* Real energy-texture wash (heavily blurred → watermark text dissolves) */
.aurora .tex {
  position: absolute;
  inset: -14%;
  background: url(../assets/tex-03.avif) center / cover no-repeat;
  filter: blur(66px) saturate(1.55);
  opacity: 0.6;
  transform: scale(1.08);
  animation: texDrift 44s ease-in-out infinite;
}
/* Legibility veil so light-glass UI keeps contrast */
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(246, 243, 251, 0.34),
    rgba(246, 243, 251, 0.6)
  );
}
.aurora .blob {
  position: absolute;
  width: 52vmax;
  height: 52vmax;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.28;
  will-change: transform;
}

/* Film grain over the whole page (energy-shapes noise) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.blob.b1 {
  background: radial-gradient(circle, #ff3b6b, transparent 60%);
  top: -20vmax;
  left: -14vmax;
  animation: float1 22s ease-in-out infinite;
}
.blob.b2 {
  background: radial-gradient(circle, #3b9bf6, transparent 60%);
  bottom: -22vmax;
  right: -16vmax;
  animation: float2 26s ease-in-out infinite;
}
.blob.b3 {
  background: radial-gradient(circle, #ffc73a, transparent 62%);
  top: 26%;
  right: -20vmax;
  animation: float3 30s ease-in-out infinite;
}

/* ---------- Glass helpers ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--specular), var(--drop);
}
/* Top gloss sheen on larger panels */
.sheen {
  position: relative;
}
.sheen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0) 42%
  );
  opacity: 0.7;
  pointer-events: none;
}

/* ============================================================================
   GATE
   ========================================================================== */
.gate {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px calc(22px + env(safe-area-inset-right)) 40px
    calc(22px + env(safe-area-inset-left));
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.gate.leaving {
  opacity: 0;
  transform: scale(0.97) translateY(-8px);
  pointer-events: none;
}
.gate-inner {
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: rise 0.7s var(--ease-out) both;
}
.brandmark {
  width: 74px;
  height: 74px;
  margin: 0 auto;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
  background-size: 200% 200%;
  animation: gradShift 9s ease infinite;
  box-shadow: var(--specular), 0 12px 30px rgba(124, 77, 255, 0.35);
}
.brandmark .ico {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}
.gate-kicker {
  margin-top: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--muted);
}
.gate-title {
  font-size: clamp(3rem, 14vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-top: 10px;
}
.gate-sub {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.gate-form {
  margin-top: 30px;
  display: grid;
  gap: 14px;
  text-align: left;
}
.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px 4px;
}
.input {
  width: 100%;
  padding: 17px 18px;
  background: var(--glass-3);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-md);
  box-shadow: var(--specular), var(--drop);
  font-size: 1.05rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.input:focus {
  outline: none;
  border-color: rgba(124, 77, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.16), var(--drop);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 1.02rem;
  transition: transform 0.16s var(--ease-spring), box-shadow 0.2s, filter 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active {
  transform: scale(0.96);
}
.btn-primary {
  color: #fff;
  background: var(--grad);
  background-size: 200% 200%;
  box-shadow: var(--specular), 0 10px 26px rgba(255, 59, 107, 0.3);
  animation: gradShift 9s ease infinite;
}
.btn-primary:hover {
  filter: brightness(1.04);
}
.gate-error {
  color: #e11d48;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-top: 2px;
  animation: shake 0.4s;
}
.gate-hint {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ============================================================================
   APP SHELL
   ========================================================================== */
.app {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100dvh;
  animation: fadeIn 0.5s var(--ease-out) both;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg) 78%, transparent),
    color-mix(in srgb, var(--bg) 40%, transparent)
  );
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--line);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
  background-size: 200% 200%;
  animation: gradShift 9s ease infinite;
  box-shadow: var(--specular), 0 6px 16px rgba(124, 77, 255, 0.28);
}
.topbar-mark .ico {
  width: 22px;
  height: 22px;
}
.topbar-brand {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.topbar-greet {
  font-size: 1.14rem;
  font-weight: 800;
}
.topbar-logout {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--pill);
  color: var(--muted);
  background: transparent;
  border: none;
  box-shadow: none;
  transition: color 0.2s, background 0.2s, transform 0.15s var(--ease-spring);
}
.topbar-logout:hover {
  color: var(--ink);
  background: rgba(23, 19, 31, 0.05);
}
.topbar-logout:active {
  transform: scale(0.84);
}
.topbar-logout svg {
  width: 19px;
  height: 19px;
}
.topbar-logout svg path {
  stroke-width: 1.6;
}

.status-chip {
  max-width: var(--maxw);
  margin: 12px auto 0;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--pill);
  color: #a15c00;
  background: rgba(255, 236, 194, 0.6);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 220, 150, 0.7);
  box-shadow: var(--specular);
}
.status-chip .ico {
  width: 15px;
  height: 15px;
}

/* Screens */
.screens {
  padding: 18px 18px
    calc(var(--tab-h) + var(--tab-gap) + 34px + env(safe-area-inset-bottom));
}
.screen {
  display: grid;
  gap: 16px;
}
.screen.switch-in {
  animation: screenIn 0.42s var(--ease-out) both;
}

.section-head {
  margin-top: 10px;
}
.section-head h3 {
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-head h3 .ico {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.section-head .muted {
  margin-top: 4px;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

/* ---------- Status pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill.confirmed {
  color: #0f9d6a;
  background: rgba(53, 211, 154, 0.16);
}
.pill.flexible {
  color: #b45309;
  background: rgba(255, 199, 58, 0.2);
}
.pill.pending {
  color: var(--muted);
  background: rgba(139, 132, 152, 0.14);
  border: 1px dashed var(--line-2);
}

/* ---------- Hero (overview) ---------- */
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 26px 24px 22px;
  color: #fff;
  background: var(--grad);
  background-size: 220% 220%;
  animation: gradShift 10s ease infinite;
  box-shadow: var(--specular), 0 20px 46px rgba(124, 77, 255, 0.32);
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28),
    rgba(255, 255, 255, 0) 46%
  );
  pointer-events: none;
}
.hero-card.reveal.in {
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.hero-card > * {
  position: relative;
  z-index: 1;
}
.hero-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.9;
}
.hero-count {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 6px;
  font-weight: 800;
}
.hero-count > span:first-child {
  font-size: clamp(4.2rem, 23vw, 5.6rem);
  line-height: 0.86;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
}
.hero-count-unit {
  font-size: 1.05rem;
  line-height: 1.05;
  font-weight: 800;
  opacity: 0.95;
}
.hero-line {
  margin-top: 12px;
  font-size: 0.98rem;
  opacity: 0.96;
}
.hero-people {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 6px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--pill);
  font-size: 0.85rem;
  font-weight: 700;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.avatar {
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.hero-chip .avatar {
  width: 24px;
  height: 24px;
  font-size: 0.72rem;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}

/* ---------- Day grid (overview) ---------- */
.daygrid {
  display: grid;
  gap: 12px;
}
.daycard {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--specular), var(--drop);
  transition: transform 0.2s var(--ease-spring);
}
.daycard:active {
  transform: scale(0.99);
}
.dc-date {
  text-align: center;
  padding-top: 2px;
}
.dc-dow {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.dc-num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 0.95;
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dc-month {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.dc-body {
  min-width: 0;
}
.dc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dc-title {
  font-size: 1.08rem;
  font-weight: 800;
}
.dc-blurb {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Timeline (plans) ---------- */
.timeline {
  display: grid;
  gap: 10px;
}
.tl-day {
  display: grid;
  gap: 10px;
}
.tl-dayhead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.tl-dayhead .d {
  font-size: 0.88rem;
  font-weight: 800;
}
.tl-dayhead .line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.tl-event {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  border-left: 3px solid var(--muted);
  box-shadow: var(--specular), var(--drop);
}
.tl-event.confirmed {
  border-left-color: #10b981;
}
.tl-event.flexible {
  border-left-color: #f59e0b;
}
.tl-event.pending {
  border-left-color: var(--muted);
  border-left-style: dashed;
}
.tl-time {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-soft);
}
.tl-title {
  font-weight: 700;
  font-size: 0.98rem;
}
.tl-place {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}
.tl-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed var(--line);
}
.tl-note a {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Host itinerary editor ---------- */
.tl-main {
  min-width: 0;
}
.tl-edit {
  align-self: flex-start;
  margin-top: 1px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--accent);
  background: rgba(124, 77, 255, 0.09);
  border: 1px solid var(--line);
  transition: transform 0.14s var(--ease-spring), background 0.2s;
}
.tl-edit:active {
  transform: scale(0.88);
}
.tl-edit .ico {
  width: 15px;
  height: 15px;
}
.tl-add {
  width: 100%;
  padding: 11px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--line-2);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.86rem;
  background: rgba(124, 77, 255, 0.05);
  transition: transform 0.14s var(--ease-spring), background 0.2s;
}
.tl-add:active {
  transform: scale(0.99);
}
.tl-reset {
  margin-top: 8px;
  width: 100%;
  padding: 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.tl-editor {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(124, 77, 255, 0.35);
  box-shadow: var(--specular), var(--drop);
}
.tl-editor input,
.tl-editor select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}
.tl-editor input:focus,
.tl-editor select:focus {
  outline: none;
  border-color: rgba(124, 77, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.14);
}
.ed-actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}
.ed-actions button {
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  transition: transform 0.14s var(--ease-spring);
}
.ed-actions button:active {
  transform: scale(0.95);
}
.ed-save {
  flex: 1;
  color: #fff;
  background: var(--grad);
  background-size: 200% 200%;
  box-shadow: var(--specular);
}
.ed-cancel {
  background: var(--glass-2);
  border: 1px solid var(--glass-brd);
}
.ed-del {
  color: #e11d48;
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.22);
}

/* Crowd-sourced hike ideas: avatar sizing */
#hike-added .avatar {
  width: 42px;
  height: 42px;
  font-size: 0.9rem;
}
.hike-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--specular), var(--drop);
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.hike-note .ico {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- Sights (three-state vibe) ---------- */
.sights-list {
  display: grid;
  gap: 10px;
}
.sight {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--specular), var(--drop);
}
.sight.wanted {
  box-shadow: var(--specular), 0 0 0 2px rgba(124, 77, 255, 0.3), var(--drop);
}
.sight-name {
  font-weight: 800;
  font-size: 1rem;
}
.sight-tag {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124, 77, 255, 0.1);
  padding: 2px 7px;
  border-radius: var(--pill);
  margin-left: 4px;
  white-space: nowrap;
}
.sight-sub {
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 2px;
}
.sight-sub a {
  color: var(--accent);
  font-weight: 700;
}
.sight-status {
  margin-top: 9px;
  display: flex;
  align-items: center;
  min-height: 22px;
}
.sight-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--pill);
}
.sight-badge.want {
  color: var(--accent);
  background: rgba(124, 77, 255, 0.14);
}
.sight-badge.go {
  color: #0f9d6a;
  background: rgba(16, 185, 129, 0.16);
}
.sight-badge.all {
  color: var(--muted);
  background: rgba(139, 132, 152, 0.14);
}
.sight-badge.skip {
  color: var(--muted);
  background: rgba(139, 132, 152, 0.12);
}
.sight-seenby {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 8px;
}
.sight-avs {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}
.s-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  margin-right: -6px;
}
.sight-choice {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.sc-btn {
  flex: 1;
  padding: 9px 4px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s,
    transform 0.14s var(--ease-spring);
}
.sc-btn:active {
  transform: scale(0.95);
}
.sc-btn.active[data-set="want"] {
  background: rgba(124, 77, 255, 0.16);
  border-color: var(--accent);
  color: var(--accent);
}
.sc-btn.active[data-set="seen"] {
  background: rgba(16, 185, 129, 0.16);
  border-color: #10b981;
  color: #0f9d6a;
}
.sc-btn.active[data-set="skip"] {
  background: rgba(139, 132, 152, 0.18);
  border-color: var(--muted);
  color: var(--ink-soft);
}

/* ---------- Glyph tiles (poll / link / note icons) ---------- */
.glyph {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--glass-brd);
  color: var(--accent);
  box-shadow: var(--specular);
}
.glyph .ico {
  width: 55%;
  height: 55%;
}

/* ---------- Polls ---------- */
.polls {
  display: grid;
  gap: 14px;
}
.poll {
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--specular), var(--drop);
}
.poll-head {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.poll-head .glyph {
  width: 46px;
  height: 46px;
}
.poll-title {
  font-size: 1.1rem;
  font-weight: 800;
}
.poll-desc {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 3px;
}
.poll-options {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}
.poll-wait {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.poll-wait.done {
  color: #0f9d6a;
}
.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.14s var(--ease-spring),
    background 0.2s, box-shadow 0.2s;
  text-align: left;
  width: 100%;
}
.opt:active {
  transform: scale(0.98);
}
.opt-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--grad-soft);
  transition: width 0.6s var(--ease-out);
  z-index: 0;
}
/* Keep the fill as an absolute background bar; everything else sits above it.
   (Must exclude .opt-fill or it gets pulled back into flow and shoves the row.) */
.opt > *:not(.opt-fill) {
  position: relative;
  z-index: 1;
}
.opt-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.opt-check .ico {
  width: 13px;
  height: 13px;
  color: #fff;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s, transform 0.25s var(--ease-spring);
}
.opt-label {
  font-weight: 700;
  font-size: 0.95rem;
  flex: 1;
}
.opt-count {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
}
.opt-avs {
  display: flex;
}
.opt-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  margin-left: -6px;
  animation: pop 0.4s var(--ease-spring) both;
}
.opt.mine {
  border-color: rgba(124, 77, 255, 0.5);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.12);
}
.opt.mine .opt-check {
  border-color: var(--accent);
  background: var(--accent);
}
.opt.mine .opt-check .ico {
  opacity: 1;
  transform: none;
}

/* Poll meta */
.poll-meta {
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.poll-meta summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.poll-meta summary::-webkit-details-marker {
  display: none;
}
.poll-meta summary .ico {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.poll-meta[open] summary .ico {
  transform: rotate(90deg);
}
.meta-rows {
  margin-top: 10px;
  display: grid;
  gap: 7px;
}
.meta-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  font-size: 0.84rem;
}
.meta-row .k {
  color: var(--muted);
  font-weight: 700;
}
.meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: var(--pill);
  border: 1px solid var(--glass-brd);
  background: var(--glass-2);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--specular);
  transition: transform 0.14s;
}
.chip-link .ico {
  width: 14px;
  height: 14px;
}
.chip-link:active {
  transform: scale(0.95);
}

/* ---------- Suggestions (crowd-sourced ideas) ---------- */
.suggest-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
  padding: 10px;
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--specular), var(--drop);
}
.suggest-input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  box-shadow: none;
}
.suggest-input:focus {
  outline: none;
  border-color: rgba(124, 77, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.14);
  background: rgba(255, 255, 255, 0.85);
}
.suggest-add {
  flex-shrink: 0;
  padding: 0 20px;
  border-radius: var(--r-sm);
  color: #fff;
  font-weight: 700;
  background: var(--grad);
  background-size: 200% 200%;
  animation: gradShift 9s ease infinite;
  box-shadow: var(--specular), 0 8px 20px rgba(124, 77, 255, 0.24);
  transition: transform 0.16s var(--ease-spring);
}
.suggest-add:active {
  transform: scale(0.94);
}
.suggestions {
  display: grid;
  gap: 9px;
}
.suggestion {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--specular), var(--drop);
  animation: pop 0.4s var(--ease-spring) both;
}
.suggestion .avatar {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
  margin-top: 1px;
}
.s-body {
  flex: 1;
  min-width: 0;
}
.s-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.s-text {
  font-size: 0.96rem;
  font-weight: 600;
  margin-top: 1px;
  overflow-wrap: anywhere;
}
.suggestions-empty {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
  text-align: center;
  padding: 8px 4px;
}

/* ---------- Edit / remove controls (suggestions + crew hike ideas) ---------- */
.sg-controls {
  display: flex;
  gap: 4px;
  align-self: flex-start;
  margin-left: auto;
}
.sg-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(23, 19, 31, 0.05);
  border: 1px solid var(--line);
  transition: transform 0.14s var(--ease-spring), color 0.2s, background 0.2s;
}
.sg-btn:hover {
  color: var(--ink);
}
.sg-btn:active {
  transform: scale(0.86);
}
.sg-btn .ico {
  width: 14px;
  height: 14px;
}
.suggestion.editing,
.link.editing {
  display: block;
}
.sg-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}
.sg-input:focus {
  outline: none;
  border-color: rgba(124, 77, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.14);
}
.sg-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}
.sg-actions button {
  padding: 9px 15px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.14s var(--ease-spring);
}
.sg-actions button:active {
  transform: scale(0.95);
}
.sg-save {
  color: #fff;
  background: var(--grad);
  background-size: 200% 200%;
  box-shadow: var(--specular);
}
.sg-cancel {
  background: var(--glass-2);
  border: 1px solid var(--glass-brd);
}

/* ---------- Food form ---------- */
.food-form {
  padding: 18px;
  display: grid;
  gap: 15px;
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--specular), var(--drop);
}
.food-field {
  display: grid;
}
.textarea {
  width: 100%;
  min-height: 66px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.textarea:focus {
  outline: none;
  border-color: rgba(53, 211, 154, 0.6);
  box-shadow: 0 0 0 4px rgba(53, 211, 154, 0.15);
  background: rgba(255, 255, 255, 0.85);
}
.food-save {
  color: #fff;
  background: var(--grad);
  background-size: 200% 200%;
  animation: gradShift 9s ease infinite;
  box-shadow: var(--specular), 0 10px 24px rgba(53, 211, 154, 0.26);
}
.food-save.saved {
  background: #10b981;
  animation: none;
}

/* Host panel */
.host-panel {
  display: grid;
  gap: 12px;
}
.host-card {
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--specular), var(--drop);
}
.host-card h4 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 9px;
}
.host-card h4 .avatar {
  width: 26px;
  height: 26px;
  font-size: 0.75rem;
}
.host-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  font-size: 0.86rem;
  padding: 6px 0;
  border-top: 1px dashed var(--line);
  margin-top: 6px;
}
.host-row .k {
  color: var(--muted);
  font-weight: 700;
}
.host-empty {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
  margin-top: 6px;
}

/* ---------- Links & notes ---------- */
.links,
.notes {
  display: grid;
  gap: 10px;
}
.link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--specular), var(--drop);
  transition: transform 0.16s var(--ease-spring);
}
.link:active {
  transform: scale(0.985);
}
.link .glyph {
  width: 44px;
  height: 44px;
}
.link-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.link-label {
  font-weight: 700;
  font-size: 0.96rem;
}
.link-sub {
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-chev {
  color: var(--muted);
  flex-shrink: 0;
}
.link-chev .ico {
  width: 20px;
  height: 20px;
}
/* Hike cards: allow the sub text to wrap onto multiple lines */
.hikes .link {
  align-items: flex-start;
}
.hikes .link .glyph {
  margin-top: 1px;
}
.hikes .link-sub {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.note {
  padding: 15px 16px;
  border-radius: var(--r-md);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--specular), var(--drop);
}
.note-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.note-top .glyph {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.note-top .t {
  font-weight: 800;
  flex: 1;
}
.note-body {
  margin-top: 9px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  white-space: pre-line; /* honour \n line breaks in config note bodies */
}
.footer-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-note code {
  background: rgba(124, 77, 255, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ---------- Wi-Fi card ---------- */
.wifi-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--specular), var(--drop);
}
.wifi-qr {
  width: 116px;
  height: 116px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--sh-sm);
  display: grid;
  place-items: center;
}
.wifi-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
.wifi-info {
  flex: 1;
  min-width: 0;
}
.wifi-k {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.wifi-ssid {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 1px 0 9px;
  overflow-wrap: anywhere;
}
.wifi-pass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(124, 77, 255, 0.1);
  border: 1px solid var(--line-2);
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  text-align: left;
  transition: background 0.2s, color 0.2s, transform 0.14s var(--ease-spring);
}
.wifi-pass:active {
  transform: scale(0.97);
}
.wifi-pass.copied {
  background: rgba(16, 185, 129, 0.16);
  color: #0f9d6a;
  border-color: rgba(16, 185, 129, 0.4);
}
.wifi-copy-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- Skeleton shimmer ---------- */
.skeleton {
  border-radius: var(--r-lg);
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.3) 30%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.3) 70%
  );
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  height: 128px;
  border: 1px solid var(--glass-brd);
}

/* ============================================================================
   FLOATING GLASS TAB BAR
   ========================================================================== */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--tab-gap) + env(safe-area-inset-bottom));
  width: calc(100% - 28px);
  max-width: 424px;
  height: var(--tab-h);
  padding: 8px;
  display: flex;
  z-index: 30;
  border-radius: 26px;
  background: var(--glass-2);
  -webkit-backdrop-filter: var(--blur-lg);
  backdrop-filter: var(--blur-lg);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--specular), 0 14px 36px rgba(23, 19, 31, 0.2),
    0 4px 12px rgba(23, 19, 31, 0.08);
}
.tab-indicator {
  position: absolute;
  top: 8px;
  left: 8px;
  height: calc(100% - 16px);
  width: 25%;
  border-radius: 19px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.55)
  );
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 12px rgba(124, 77, 255, 0.16);
  transition: transform 0.45s var(--ease-spring), width 0.3s var(--ease-out);
  z-index: 0;
}
.tab {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.25s, transform 0.15s;
}
.tab .ico {
  width: 23px;
  height: 23px;
  stroke-width: 1.9;
}
.tab:active {
  transform: scale(0.9);
}
.tab.is-active {
  color: var(--accent);
}

/* Nav-rail brand — desktop only */
.rail-brand {
  display: none;
}

/* ============================================================================
   DESKTOP — left-pinned nav rail + content column
   ========================================================================== */
@media (min-width: 960px) {
  /* Nav rail pinned to the LEFT EDGE of the screen (full height) */
  .tabbar {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    transform: none;
    width: 248px;
    height: 100vh;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 24px 16px;
    border-radius: 0;
    border-top: none;
    border-right: 1px solid var(--line);
  }
  .tab-indicator {
    display: none;
  }
  .rail-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 10px 20px;
  }
  .rail-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--grad);
    background-size: 200% 200%;
    animation: gradShift 9s ease infinite;
    box-shadow: var(--specular), 0 6px 16px rgba(124, 77, 255, 0.28);
  }
  .rail-mark .ico {
    width: 19px;
    height: 19px;
  }
  .rail-word {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--muted);
  }
  .tab {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 13px;
    padding: 11px 14px;
    border-radius: var(--r-md);
    font-size: 0.95rem;
  }
  .tab .ico {
    width: 22px;
    height: 22px;
  }
  .tab.is-active {
    background: var(--grad-soft);
    color: var(--accent);
  }

  /* Content fills the area to the RIGHT of the rail (left-aligned, capped) */
  #main.app {
    margin: 0 0 0 248px;
    max-width: none;
    padding: 0;
  }
  .topbar {
    max-width: none;
    padding-left: 34px;
    padding-right: 30px;
  }
  .status-chip {
    margin: 16px 0 0 34px;
  }
  .screens {
    max-width: 1180px;
    margin: 0;
    padding: 26px 34px 72px;
  }
  /* brand already lives in the rail — declutter the top bar */
  .topbar-mark,
  .topbar-brand {
    display: none;
  }
  /* two-column card grids */
  .daygrid,
  .polls,
  .links,
  .notes,
  .sights-list,
  .hikes,
  .suggestions,
  .host-panel {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Confetti ---------- */
.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

/* ============================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes gradShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vmax, 5vmax) scale(1.12); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-7vmax, -4vmax) scale(1.08); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5vmax, 6vmax) scale(1.15); }
}
@keyframes texDrift {
  0%, 100% { transform: scale(1.08) translate(0, 0); }
  50% { transform: scale(1.18) translate(-3%, 2%); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pop {
  0% { opacity: 0; transform: scale(0.4); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes screenIn {
  from { opacity: 0; transform: translateY(14px) scale(0.995); }
  to { opacity: 1; transform: none; }
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* ============================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .aurora .blob {
    animation: none;
  }
  .confetti {
    display: none;
  }
}
