@font-face {
  font-family: "Nouveau Nostalgia";
  src: url("fonts/nouveau-nostalgia.otf") format("opentype"), url("fonts/nouveau-nostalgia.ttf") format("truetype");
  font-display: swap;
}

:root {
  --plum: #3a0d5c;
  --purple: #5a1a8c;
  --magenta: #d6246e;
  --hot-pink: #ff4f9a;
  --pink: #ff8fbd;
  --orange: #ff8a3d;
  --peach: #ffb36b;
  --red: #e4202b;
  --teal: #2fc7c0;
  --mint: #8fe3a0;
  --cream: #fff3e2;
  --cream-2: #ffe3c4;
  --ink: #2a0f1f;
  --ink-soft: #7a3b55;

  --lvl-1: var(--teal);
  --lvl-2: #6fd67f;
  --lvl-3: var(--orange);
  --lvl-4: var(--hot-pink);
  --lvl-5: var(--red);
  --lvl-none: #b58cd6;

  /* Cards: 50px radius with Figma-style 60% corner smoothing. Browsers that support
     corner-shape get a superellipse stretched to 1.6x the radius (how Figma's smoothing
     extends the curve); others fall back to a plain 50px round corner. */
  --card-radius: 50px;   /* short move cards in the Compendium */
  --panel-radius: 30px;  /* taller content cards */
  --card-shadow: 0 6px 14px -6px rgba(24, 39, 75, 0.12), 0 10px 32px -4px rgba(24, 39, 75, 0.10);
  --display: "Nouveau Nostalgia", Italiana, Didot, Georgia, serif;
  --sign: Bungee, Impact, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--plum); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font: 400 16px/1.45 "Stack Sans Text", system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #4a1370 0%, #8a1d86 22%, #d6246e 52%, #ff6a4d 80%, #ff9a4a 100%) fixed;
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
}
@media (prefers-color-scheme: dark) {
  body { background: linear-gradient(180deg, #230838 0%, #4d1053 30%, #8d1a52 65%, #b3402f 100%) fixed; }
}
button { font: inherit; color: inherit; cursor: pointer; }

.hero, .controls, main {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* ---------- Backdrop: ribbons + candy ---------- */
.backdrop { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ribbons { position: absolute; inset: 0; width: 100%; height: 100%; }
.ribbons path { fill: none; stroke: #ffe7c9; stroke-width: 16; opacity: .22; stroke-linecap: round; }
.ribbons path.thin { stroke: #fff; stroke-width: 2; opacity: .35; }

/* ---------- Hero ---------- */
.hero {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: max(22px, env(safe-area-inset-top));
  overflow: hidden;
}
.crown { position: relative; width: min(200px, 56vw); }
.arches { display: block; width: 100%; filter: drop-shadow(0 0 26px rgb(255 140 180 / 55%)); }
.eye {
  position: absolute;
  left: 50%; bottom: 12%;
  width: 30%;
  transform: translateX(-50%);
}
.eye .iris { animation: look 6s ease-in-out infinite; }
.eye .lid { transform-origin: 60px 30px; transform: scaleY(0); animation: blink 5s infinite; }
@keyframes look { 0%, 40%, 100% { transform: translateX(0); } 50%, 70% { transform: translateX(-8px); } 80% { transform: translateX(7px); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(0); } 97% { transform: scaleY(1); } }

.presents {
  position: relative;
  margin: 16px 0 0;
  font: 400 13px/1 Federo, sans-serif;
  letter-spacing: .42em;
  text-transform: uppercase;
  padding-left: .42em; /* balance letter-spacing */
  color: #f3d48f;
}
.presents::before, .presents::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 28px; height: 1px;
  margin: 0 12px 3px;
  background: linear-gradient(90deg, transparent, #e8c27a);
}
.presents::after { transform: scaleX(-1); margin-left: 0; }
h1 {
  position: relative;
  margin: 4px 0 0;
  font: 400 clamp(40px, 11.5vw, 68px)/1.1 "Nouveau Nostalgia", Italiana, Didot, serif;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #a8732f 0%, #e9c77f 28%, #fff1c9 45%, #d9a85a 62%, #b07a36 80%, #f4dc9c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgb(60 0 40 / 55%)) drop-shadow(0 0 18px rgb(255 210 150 / 25%));
}

/* ---------- Sticky controls ---------- */
.controls {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: 8px;
}
.controls::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background: rgb(58 13 92 / 0%);
  transition: background .25s, box-shadow .25s;
  z-index: -1;
}
.controls.stuck::before {
  background: rgb(58 13 92 / 82%);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 4px 0 var(--hot-pink), 0 8px 0 var(--teal);
}

.search-row { display: flex; gap: 8px; }
.search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
  padding: 0 14px;
  min-height: 46px;
  box-shadow: 0 3px 0 var(--red);
}
.search:focus-within { box-shadow: 0 3px 0 var(--red), 0 0 0 3px var(--teal); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-soft); stroke-width: 2.4; stroke-linecap: round; flex: none; }
.search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  color: var(--ink);
  font-size: 16px; /* prevents iOS zoom */
}
.search input::placeholder { color: var(--ink-soft); }

.filter-btn, .random-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex: none;
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  font-weight: 700;
  font-size: 15px;
}
.icon-btn { position: relative; width: 46px; padding: 0; }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .pip { fill: currentColor; stroke: none; }
.filter-btn { background: var(--teal); color: var(--ink); box-shadow: 0 3px 0 #16827d; }
.filter-btn[aria-expanded="true"] { background: var(--mint); }
.filter-btn .badge { position: absolute; top: -4px; right: -4px; box-shadow: 0 0 0 2px var(--cream); }
.random-btn { background: var(--red); color: var(--cream); box-shadow: 0 3px 0 #8e0f17; }
.filter-btn:active, .random-btn:active { transform: translateY(2px); box-shadow: none; }
.badge {
  background: var(--red);
  color: var(--cream);
  border-radius: 999px;
  font-size: 12px;
  min-width: 20px; height: 20px;
  display: inline-grid; place-items: center;
  padding: 0 6px;
}
.badge[hidden] { display: none; }

.level-row { display: flex; gap: 6px; margin-top: 10px; }
.level-row .levels { flex: 1; margin-top: 0; }
.level-row .random-btn { width: 38px; min-height: 38px; }
.level-row .random-btn svg { width: 22px; height: 22px; }
.levels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.levels button {
  --c: var(--cream);
  border: 2px solid rgb(255 243 226 / 55%);
  background: rgb(255 243 226 / 10%);
  border-radius: 999px;
  min-height: 38px;
  font: 400 15px/1 var(--sign);
  color: var(--cream);
}
.levels button:nth-child(2) { --c: var(--lvl-1); }
.levels button:nth-child(3) { --c: var(--lvl-2); }
.levels button:nth-child(4) { --c: var(--lvl-3); }
.levels button:nth-child(5) { --c: var(--lvl-4); }
.levels button:nth-child(6) { --c: var(--lvl-5); }
.levels button[aria-pressed="true"] {
  border-color: var(--cream);
  background: radial-gradient(circle at 35% 30%, #fff9 0 12%, var(--c) 55%);
  color: var(--ink);
  box-shadow: 0 3px 0 rgb(0 0 0 / 25%);
}

.panel {
  margin-top: 12px;
  padding: 4px 14px 12px;
  max-height: 45vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgb(42 15 60 / 72%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 2px solid rgb(255 243 226 / 30%);
  border-radius: 20px;
}
.panel-label {
  margin: 10px 0 8px;
  font: 400 12px/1 var(--sign);
  letter-spacing: .08em;
  color: var(--peach);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 2px solid rgb(255 243 226 / 45%);
  background: transparent;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 500;
  min-height: 34px;
}
.chip[aria-pressed="true"] {
  background: var(--hot-pink);
  border-color: var(--cream);
  color: var(--cream);
  font-weight: 700;
}
.link-btn {
  margin-top: 12px;
  border: 0; background: none; padding: 4px 0;
  color: var(--pink);
  font-size: 14px; font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- List ---------- */
main { z-index: 1; }
.summary {
  margin: 10px 0 0;
  font: 400 12px/1 var(--sign);
  letter-spacing: .06em;
  color: var(--cream-2);
  text-align: center;
}

@supports (corner-shape: superellipse(2)) {
  :root { --card-radius: 80px; --panel-radius: 48px; }
  .move, .c-card { corner-shape: superellipse(1.78); }
}

/* Move cards */
.move {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--card-radius);
  margin-top: 10px;
  scroll-margin-top: 150px;
  box-shadow: 0 6px 8px -6px rgba(24, 39, 75, 0.12), 0 8px 16px -6px rgba(24, 39, 75, 0.08);
  transition: box-shadow .25s ease;
}
.move[open] { box-shadow: 0 8px 28px -6px rgba(24, 39, 75, 0.12), 0 18px 88px -4px rgba(24, 39, 75, 0.14); }
.move.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0%, 40% { background: #fff; transform: scale(1.02); } 100% { transform: none; } }

.move-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 8px 12px;
  padding: 14px 16px;
}
.move-head .tags { grid-column: 1; }
summary.move-head {
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
summary.move-head::-webkit-details-marker { display: none; }
.move-name { font-weight: 700; font-size: 16.5px; line-height: 1.3; overflow-wrap: anywhere; }

.chevron {
  grid-column: 2;
  align-self: end;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--hot-pink);
  box-shadow: 0 2px 0 #b3245f;
  transition: transform .2s;
}
.chevron svg { width: 18px; height: 18px; fill: none; stroke: var(--cream); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.move[open] .chevron { transform: rotate(180deg); box-shadow: 0 -2px 0 #b3245f; }

.candy { display: flex; gap: 3px; padding-top: 4px; }
.candy i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #ecd9c4;
  box-shadow: inset -1px -1px 2px rgb(0 0 0 / 10%);
}
.candy i.on {
  background: radial-gradient(circle at 35% 30%, #fff 0 14%, var(--c) 50%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  box-shadow: 0 1px 2px rgb(0 0 0 / 25%);
}
.candy.none { font: 400 10px/1 var(--sign); color: var(--ink-soft); padding-top: 6px; }

.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 12px;
  font-weight: 500;
  background: #fde4cf;
  border-radius: 999px;
  padding: 3px 10px;
}
.tag.choreo { background: #ffd3e4; }
.tag-btn {
  border: 0;
  color: inherit;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tag-btn:hover { background: #fbd6b8; }
.tag-btn[aria-pressed="true"] { background: var(--hot-pink); color: var(--cream); }

.move-body {
  margin: 0 16px;
  padding: 2px 0 16px;
  border-top: 2px dashed #e8c9ad;
  font-size: 15px;
}
.move-body h3 {
  margin: 14px 0 4px;
  font: 400 12px/1 var(--sign);
  letter-spacing: .06em;
  color: var(--magenta);
}
.move-body p { margin: 0; }
.move-body ul { margin: 0; padding-left: 18px; }
.move-body li::marker { color: var(--hot-pink); }
.move-body li + li { margin-top: 3px; }
.demo-videos { display: grid; gap: 10px; }
.demo { margin: 0; }
.demo video { display: block; width: 100%; max-height: 70vh; border-radius: 14px; background: #2a0f1f; }
.demo figcaption { margin-top: 4px; font-size: 13px; color: var(--ink-soft); }
.notion-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  border-radius: 999px;
}

.empty {
  text-align: center;
  font: 400 26px/1.1 var(--display);
  color: var(--cream);
  padding: 56px 0;
  text-shadow: 2px 2px 0 var(--red);
}
.empty small { display: block; margin-top: 8px; font: 500 14px "Stack Sans Text", sans-serif; text-shadow: none; }

main { padding-bottom: 40px; }


/* ---------- Choreography page ---------- */
.back-bar, .choreo-page main {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.back-bar { padding-top: max(14px, env(safe-area-inset-top)); padding-right: 72px; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px; /* comfortable tap target, no visible box */
  margin-left: -6px;
  color: var(--cream);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.back svg, .c-link-arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.c-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 18px; }
.c-hero .crown { width: min(150px, 42vw); }
.c-icon {
  position: absolute;
  left: 50%; bottom: 8%;
  transform: translateX(-50%);
  font-size: clamp(26px, 8vw, 36px);
}
.c-hero h1 { white-space: normal; font-size: clamp(38px, 11vw, 60px); line-height: 1.05; }
.taught { margin: 8px 0 0; color: var(--cream-2); font-size: 14px; font-style: italic; }

.c-card {
  display: block;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--panel-radius);
  padding: 16px;
  margin-top: 14px;
  box-shadow: var(--card-shadow);
}
.c-card h2 {
  margin: 0 0 12px;
  font: 400 13px/1 var(--sign);
  letter-spacing: .06em;
  color: var(--magenta);
  display: flex;
  align-items: center;
  gap: 8px;
}
.c-card p { margin: 0 0 10px; }
.c-card .notion-link { margin-top: 0; }
.h-count { background: #fde4cf; color: var(--ink); border-radius: 999px; padding: 3px 8px; font: 700 12px "Stack Sans Text", sans-serif; }
.muted { color: var(--ink-soft); }

.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #2a0f1f; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.spotify { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 8px 0 8px 40px;
  border-top: 1px dashed #ecd3bb;
  line-height: 1.35;
}
.steps li:first-child { border-top: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 6px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  font: 700 13px/1 "Stack Sans Text", sans-serif;
  color: var(--cream);
  background: var(--hot-pink);
}
.steps a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--hot-pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.steps em { color: var(--ink-soft); }

.used { list-style: none; margin: 0; padding: 0; }
.used a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed #ecd3bb;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.used li:first-child a { border-top: 0; }
.used .candy { padding-top: 0; }

.copyright { margin: 18px 4px 40px; font-size: 12px; line-height: 1.5; color: var(--cream-2); opacity: .85; }

.c-group {
  margin: 26px 4px 0;
  font: 400 13px/1 Federo, sans-serif;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #f3d48f;
}
.c-card p:last-child { margin-bottom: 0; }
.c-link { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.c-link-icon { font-size: 28px; }
.c-link-main { flex: 1; display: flex; flex-direction: column; }
.c-link-main small { color: var(--ink-soft); font-size: 13px; }
.c-link-arrow { color: var(--hot-pink); }

/* Choreo tag links on move cards */
a.tag.choreo { color: var(--ink); text-decoration: none; }
a.tag.choreo::after { content: " ›"; color: var(--magenta); font-weight: 700; }



/* ---------- About page ---------- */
.about-page .c-hero { padding-top: max(24px, env(safe-area-inset-top)); }
.about-page .c-card p:last-child { margin-bottom: 0; }
.intro .lede { font-size: 19px; font-weight: 700; line-height: 1.35; }
.bio h2 { font: 400 30px/1 "Nouveau Nostalgia", Italiana, serif; letter-spacing: -0.01em; color: var(--magenta); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.pills li { background: #fde4cf; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 500; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.video-grid .embed { grid-column: 1 / -1; }
.lite-yt {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  background: #2a0f1f center / cover no-repeat;
  overflow: hidden;
}
.lite-yt::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='%23fff3e2'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 2px 8px rgb(0 0 0 / 40%);
}



/* About: photo in a rainbow archway */
.photo-arch {
  --w: min(calc(100vw - 32px - 100px), 440px); /* 32px gutters + 2 x ~50px of rainbow bands */
  position: relative;
  width: var(--w);
  aspect-ratio: 3 / 4;
  margin: 44px 0 34px;
  border-radius: 999px 999px 0 0;
  isolation: isolate;
  /* rainbow bands follow the arch shape */
  box-shadow:
    0 0 0 7px #ff8fbd,
    0 0 0 15px #e4202b,
    0 0 0 21px #ffe3b8,
    0 0 0 30px #2fc7c0,
    0 0 0 37px #ff6fae,
    0 0 0 46px #e4202b,
    0 0 50px 50px rgb(255 120 170 / 35%);
}
.photo-arch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: inherit;
}
.about-page .c-hero { padding-top: max(28px, env(safe-area-inset-top)); }

/* ---------- Contact page ---------- */
.offer { list-style: none; margin: 0; padding: 0; }
.offer li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px dashed #ecd3bb; }
.offer li:first-child { border-top: 0; padding-top: 0; }
.offer span { font-size: 24px; line-height: 1.2; }
.offer p { margin: 2px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.insta .c-link-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(45deg, #f9a13a, #e4202b 45%, #c1358f 75%, #7a2fa8);
  color: #fff;
}
.insta .c-link-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Hamburger menu ---------- */
.menu-btn {
  position: absolute;
  z-index: 20;
  top: max(12px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  width: 48px; height: 48px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 0;
  background: none;
  filter: drop-shadow(0 1px 2px rgb(40 0 40 / 45%));
}
.menu-btn span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: #f3d48f; }
.menu-btn span:nth-child(2) { width: 16px; justify-self: end; }

html.menu-open { overflow: hidden; }
.menu { position: fixed; inset: 0; z-index: 50; }
.menu[hidden] { display: none; }
.menu-scrim { position: absolute; inset: 0; background: rgb(30 5 35 / 55%); animation: fade .2s ease-out; }
.menu-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 86vw);
  padding: max(24px, env(safe-area-inset-top)) 24px 24px;
  background: linear-gradient(170deg, #4a1370, #7a1a6a 55%, #b3245f);
  border-left: 3px solid #e8c27a;
  box-shadow: -12px 0 40px rgb(20 0 30 / 40%);
  animation: slide .25s ease-out;
  overflow-y: auto;
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(100%); } }
.menu-close {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin: -6px -8px 0 auto;
  border: 0; border-radius: 50%;
  background: rgb(255 243 226 / 12%);
}
.menu-close svg { width: 22px; height: 22px; fill: none; stroke: #f3d48f; stroke-width: 2.5; stroke-linecap: round; }
.menu-eyebrow {
  margin: 14px 0 18px;
  font: 400 12px/1 Federo, sans-serif;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: #e8c27a;
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li + li { border-top: 1px solid rgb(232 194 122 / 30%); }
.menu a { display: block; padding: 16px 0; text-decoration: none; }
.menu-lock {
  width: 20px; height: 20px;
  margin-left: 8px;
  vertical-align: 4px;
  fill: none;
  stroke: #e8c27a;
  stroke-width: 2;
  stroke-linecap: round;
}
.menu-label { display: inline-block !important; }
.menu-label {
  display: block;
  font: 400 34px/1.1 "Nouveau Nostalgia", Italiana, serif;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #a8732f, #e9c77f 30%, #fff1c9 48%, #d9a85a 70%, #f4dc9c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.menu-sub { display: block; margin-top: 4px; font-size: 13px; color: var(--cream-2); }
.menu-dot { display: inline-block; width: 8px; height: 8px; margin-left: 10px; vertical-align: 8px; border-radius: 50%; background: var(--hot-pink); box-shadow: 0 0 8px var(--hot-pink); }


/* ---------- Password gate ---------- */
html.locked body > :not(.gate):not(.menu):not(.menu-btn):not(.backdrop):not(script) { display: none !important; }
.gate {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 90px max(20px, env(safe-area-inset-left)) 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.gate-lock {
  width: 76px; height: 76px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, #fffaf0, #ffc6d4);
  box-shadow: 0 0 0 6px #ff6fae, 0 0 0 12px #2fc7c0, 0 0 0 18px #e4202b, 0 0 40px 18px rgb(255 140 180 / 40%);
  margin-bottom: 30px;
}
.gate-lock svg { width: 34px; height: 34px; fill: none; stroke: var(--magenta); stroke-width: 2; stroke-linecap: round; }
.gate h1 { white-space: normal; }
.gate-sub { margin: 12px 0 22px; color: var(--cream-2); }
.gate-form { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.gate-field { width: 100%; }
.gate-btn {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: var(--cream);
  font: 400 16px/1 var(--sign);
  letter-spacing: .06em;
  box-shadow: 0 3px 0 #8e0f17;
}
.gate-btn:active { transform: translateY(2px); box-shadow: none; }
.gate-error { margin: 2px 0 0; color: #fff; font-weight: 700; }
.gate-help { margin-top: 26px; color: var(--cream-2); font-size: 14px; }
.gate-help a { color: #f3d48f; font-weight: 700; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }


/* ---------- Admin ---------- */
.menu-panel { display: flex; flex-direction: column; }
.menu-admin {
  margin-top: auto;
  padding: 18px 0 max(6px, env(safe-area-inset-bottom)) !important;
  border-top: 1px solid rgb(232 194 122 / 30%);
  color: var(--cream-2);
  font: 400 12px/1 Federo, sans-serif;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.menu-admin[aria-current="page"] { color: #f3d48f; }
@media (max-width: 600px) {
  .menu-panel { width: 100%; border-left: 0; }
}

.admin-page [hidden] { display: none !important; }
.admin-page .c-hero { padding-top: max(40px, env(safe-area-inset-top)); }
.admin-login { max-width: 420px; margin: 8px auto 0; }
.add-btn { width: 100%; margin-bottom: 14px; }
.admin-search { margin-bottom: 4px; }
.admin-moves { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.admin-moves button {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  text-align: left;
  font-weight: 500;
}
.admin-moves .r-icon { margin-right: 8px; }
.admin-moves small { flex: none; color: var(--ink-soft); font-size: 12px; }
.signout { display: block; margin: 20px auto 40px; color: var(--cream-2); }

.editor h2 { font: 400 13px/1 var(--sign); letter-spacing: .06em; color: var(--magenta); }
.field { display: grid; gap: 6px; margin: 16px 0 0; }
.field > span, .notes-block > summary { font-weight: 700; font-size: 14px; }
.field small { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea, .vid-label {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #ecd3bb;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.4 "Stack Sans Text", sans-serif;
}
.field input:focus, .field textarea:focus, .vid-label:focus { outline: none; border-color: var(--teal); }
.editor .levels button { color: var(--ink-soft); border-color: #ecd3bb; background: #fff; }
.editor .levels button[aria-pressed="true"] { color: var(--ink); }
.editor .chip { color: var(--ink); border-color: #ecd3bb; background: #fff; }
.editor .chip[aria-pressed="true"] { background: var(--hot-pink); border-color: var(--hot-pink); color: var(--cream); }
.notes-block > summary { cursor: pointer; }
.vid-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vid { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: #fde4cf; }
.vid-name { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.vid progress { width: 100%; accent-color: var(--hot-pink); }
.vid .link-btn { margin: 0; justify-self: start; }
.vid-add {
  display: flex; justify-content: center; align-items: center;
  min-height: 48px;
  border: 2px dashed #e8b995;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
.vid-add input { position: absolute; opacity: 0; pointer-events: none; width: 1px; }
.editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.editor-actions .gate-btn { flex: 1 1 100%; }
.editor .gate-error { color: var(--red); }
.link-btn.danger { color: var(--red); }
.editor .link-btn:not(.danger) { color: var(--ink-soft); }
.admin-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgb(255 243 226 / 14%);
}
.admin-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--cream);
  font: 400 14px/1 var(--sign);
  letter-spacing: .04em;
}
.admin-tabs button[aria-selected="true"] { background: var(--cream); color: var(--ink); }
.editor .chip-new { border-style: dashed; color: var(--magenta); font-weight: 700; }
.quick-add { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; }
.quick-add input {
  flex: 1 1 180px;
  min-height: 38px;
  padding: 6px 14px;
  border: 2px solid var(--teal);
  border-radius: 999px;
  font: 400 16px "Stack Sans Text", sans-serif;
  color: var(--ink);
}
.quick-add .link-btn { margin: 0; }
.field-row { display: grid; grid-template-columns: 76px 1fr; gap: 10px; }
.emoji-field input { text-align: center; font-size: 22px; padding-left: 4px; padding-right: 4px; }
.field select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #ecd3bb;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: 400 16px "Stack Sans Text", sans-serif;
}
.check { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--hot-pink); }
.admin-page .back { background: none; border: 0; cursor: pointer; font-family: inherit; }
.toast {
  position: fixed;
  z-index: 30;
  left: 16px; right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 500;
  text-align: center;
  box-shadow: var(--card-shadow);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
