/* =========================================================
   Puzzle Universe: the look of the studio pages
   (login, my universe, admin). Night and Day versions.
   Apps keep their own look and only use theme.css.
   ========================================================= */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root, html[data-theme="night"] {
  --bg: #0a0713;
  --bg-grad: radial-gradient(120% 80% at 50% 0%, #170d2a 0%, #0a0713 60%);
  --ink: #f6efe4;
  --ink-2: #cfc4dd;
  --muted: #9a8fb2;
  --line: rgba(255, 240, 225, .09);
  --line-2: rgba(255, 240, 225, .16);
  --glass: rgba(24, 16, 44, .58);
  --glass-2: rgba(36, 24, 64, .66);
  --solid: #160f2a;
  --solid-2: #1d1434;
  --soft: rgba(255, 255, 255, .045);
  --soft-2: rgba(255, 255, 255, .09);
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  --topbar: linear-gradient(to bottom, rgba(10, 7, 19, .82), rgba(10, 7, 19, .45));
  --orbit: rgba(255, 240, 225, .14);
  --veil: rgba(6, 4, 12, .8);
  --stage: radial-gradient(ellipse at 50% 50%, rgba(60, 30, 90, .35), rgba(12, 8, 24, .2) 70%);
  --neb-a: rgba(255, 79, 163, .30);
  --neb-b: rgba(255, 181, 71, .20);
  --neb-c: rgba(69, 227, 181, .14);
  --grain: .07;
  --mint-ink: #45e3b5;
  --coral-ink: #ff8a7d;
  color-scheme: dark;
}
html[data-theme="day"] {
  --bg: #fbf4ec;
  --bg-grad: linear-gradient(180deg, #ffe9d8 0%, #fbf1f4 32%, #f1e9fb 64%, #e9f2ff 100%);
  --ink: #22183a;
  --ink-2: #4a3f63;
  --muted: #7a6f92;
  --line: rgba(50, 25, 80, .10);
  --line-2: rgba(50, 25, 80, .18);
  --glass: rgba(255, 255, 255, .62);
  --glass-2: rgba(255, 255, 255, .82);
  --solid: #fffaf4;
  --solid-2: #ffffff;
  --soft: rgba(60, 30, 90, .045);
  --soft-2: rgba(60, 30, 90, .085);
  --shadow: 0 30px 80px -24px rgba(80, 40, 110, .35);
  --topbar: linear-gradient(to bottom, rgba(255, 247, 240, .86), rgba(255, 247, 240, .55));
  --orbit: rgba(60, 30, 90, .18);
  --veil: rgba(250, 240, 250, .82);
  --stage: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .75), rgba(255, 255, 255, .25) 70%);
  --neb-a: rgba(255, 122, 184, .28);
  --neb-b: rgba(255, 181, 71, .32);
  --neb-c: rgba(111, 211, 255, .30);
  --grain: .035;
  --mint-ink: #0e8f6a;
  --coral-ink: #c8402f;
  color-scheme: light;
}
:root {
  --amber: #ffb547;
  --coral: #ff6f61;
  --mint: #45e3b5;
  --violet: #a58bff;
  --rose: #ff7ab8;
  --sky: #6fd3ff;
  --tint: #ffb547;
  --display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Poppins', system-ui, sans-serif;
  --gap: 24px;           /* room between things */
  --gap-l: 40px;
  --sec: 120px;          /* room between the big parts */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.5, .5, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body.uv {
  margin: 0; min-height: 100vh;
  background: var(--bg-grad) fixed, var(--bg);
  color: var(--ink);
  font: 400 16px/1.7 var(--body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: color .5s;
}
.uv ::selection { background: var(--amber); color: #1a0f00; }
.uv button { font: inherit; color: inherit; }
.uv a { color: inherit; }

/* ---------- sky ---------- */
.uv-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.uv-neb { position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .55; transition: background 1.2s; }
.uv-neb.n1 { width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle, var(--neb-a), transparent 65%); animation: uv-drift1 38s ease-in-out infinite alternate; }
.uv-neb.n2 { width: 55vmax; height: 55vmax; right: -20vmax; top: 30vh; background: radial-gradient(circle, var(--neb-b), transparent 65%); animation: uv-drift2 44s ease-in-out infinite alternate; }
.uv-neb.n3 { width: 50vmax; height: 50vmax; left: 20vw; bottom: -30vmax; background: radial-gradient(circle, var(--neb-c), transparent 65%); animation: uv-drift1 52s ease-in-out infinite alternate-reverse; }
.uv-neb.n4 { width: 46vmax; height: 46vmax; left: 30vw; top: 20vh; background: radial-gradient(circle, color-mix(in srgb, var(--tint) 22%, transparent), transparent 65%); opacity: .5; transition: background 1.4s var(--ease); }
@keyframes uv-drift1 { to { transform: translate(8vw, 6vh) scale(1.12); } }
@keyframes uv-drift2 { to { transform: translate(-10vw, -8vh) scale(.92); } }
.uv-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: var(--grain); mix-blend-mode: overlay;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.uv-glow {
  position: fixed; z-index: 1; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(circle, color-mix(in srgb, var(--tint) 10%, transparent), transparent 60%);
}
.uv-page { position: relative; z-index: 2; }
.uv-wrap { width: min(1200px, 100% - 64px); margin-inline: auto; }
@media (max-width: 640px) { .uv-wrap { width: calc(100% - 40px); } }

/* ---------- top bar ---------- */
.uv-top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  background: var(--topbar); border-bottom: 1px solid var(--line);
}
.uv-top .uv-wrap { display: flex; align-items: center; gap: 16px; height: 76px; }
.uv-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.uv-mark { width: 36px; height: 36px; position: relative; flex: none; }
.uv-mark .core { position: absolute; inset: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6dd, var(--amber) 45%, #c2410c); box-shadow: 0 0 16px rgba(255, 181, 71, .7); }
.uv-mark .orbit { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--line-2); transform: rotateX(68deg); animation: uv-ring 9s linear infinite; }
.uv-mark .orbit::after { content: ''; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px var(--rose); }
@keyframes uv-ring { to { transform: rotateX(68deg) rotateZ(360deg); } }
.uv-name { font: 600 17px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.uv-name small { display: block; font: 500 11px/1.4 var(--body); margin-top: 5px !important; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.uv-pills { display: flex; align-items: center; gap: 12px; }
.uv-pill {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 9px; border-radius: 999px;
  background: var(--soft); border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: background .3s, border-color .3s, transform .3s var(--spring);
}
.uv-pill:hover { background: var(--soft-2); border-color: var(--line-2); transform: translateY(-1px); }
.uv-pill .lbl { color: var(--muted); font-weight: 500; }
.uv-pill svg { flex: none; }
.uv-icon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none;
  background: var(--soft); border: 1px solid var(--line); transition: background .3s, transform .4s var(--spring);
}
.uv-icon:hover { background: var(--soft-2); transform: rotate(-10deg) scale(1.06); }
.uv-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--display); border: 0; cursor: pointer;
  background: conic-gradient(from 200deg, var(--amber), var(--rose), var(--violet), var(--amber)); color: #1b0f22; flex: none;
  transition: transform .4s var(--spring), box-shadow .3s;
}
.uv-avatar:hover { transform: scale(1.08); box-shadow: 0 0 0 4px var(--soft-2); }

/* day / night switch: a sun that becomes a moon */
.uv-theme { position: relative; overflow: hidden; }
.uv-theme .th-sun, .uv-theme .th-moon { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .7s var(--spring), opacity .4s; }
html[data-theme="day"] .uv-theme .th-moon, html:not([data-theme="day"]) .uv-theme .th-sun { transform: translateY(120%) rotate(90deg); opacity: 0; }

/* the person menu */
.uv-menu-wrap { position: relative; }
.uv-menu {
  position: absolute; right: 0; top: calc(100% + 12px); width: 260px; padding: 10px; border-radius: 22px; z-index: 80;
  background: var(--solid); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transform-origin: top right; transition: opacity .25s, transform .35s var(--spring), visibility .25s;
}
.uv-menu.open { opacity: 1; visibility: visible; transform: none; }
.uv-menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.uv-menu .who b { display: block; font: 600 15px var(--display); }
.uv-menu .who span { font-size: 14px; color: var(--muted); word-break: break-all; }
.uv-menu a, .uv-menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 14px; border: 0; background: none;
  font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; text-align: left;
}
.uv-menu a:hover, .uv-menu button:hover { background: var(--soft-2); }

/* ---------- type + buttons ---------- */
.uv-eyebrow { display: flex; align-items: center; gap: 14px; font: 600 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.uv-eyebrow b { color: var(--tint-ink, var(--amber)); font-weight: 700; }
html[data-theme="day"] .uv-eyebrow b { color: #c26a00; }
.uv-eyebrow::after { content: ''; height: 1px; width: 56px; background: linear-gradient(to right, var(--line-2), transparent); }
.uv h1, .uv h2, .uv h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; margin: 0; }
.uv h1, .uv h2 { font-weight: 800; letter-spacing: -.035em; }
.uv em.s { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }

.uv-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 30px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 0; white-space: nowrap;
  transition: transform .4s var(--spring), box-shadow .4s, background .3s, opacity .3s;
}
.uv-btn-sun { background: linear-gradient(135deg, #ffd27a, var(--amber) 45%, #ff8a3d); color: #2a1300 !important; box-shadow: 0 10px 40px -10px rgba(255, 160, 60, .7), inset 0 1px 0 rgba(255, 255, 255, .6); }
.uv-btn-sun:hover { box-shadow: 0 16px 50px -8px rgba(255, 160, 60, .85), inset 0 1px 0 rgba(255, 255, 255, .6); }
.uv-btn-ghost { background: var(--soft); border: 1px solid var(--line-2); color: var(--ink); }
.uv-btn-ghost:hover { background: var(--soft-2); }
.uv-btn[disabled] { opacity: .55; cursor: wait; }
.uv-btn .arr { transition: transform .4s var(--spring); }
.uv-btn:hover .arr { transform: translateX(4px); }
.uv-link { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; padding: 8px; }
.uv-link:hover { color: var(--ink); }

.uv-card { position: relative; border-radius: 30px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.uv-glowcard::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 58%, var(--amber) 72%, var(--rose) 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: uv-ang 7s linear infinite;
}
@keyframes uv-ang { to { --ang: 360deg; } }

.uv-input {
  width: 100%; height: 56px; padding: 0 18px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--soft);
  color: var(--ink); font: 500 17px var(--body); transition: border-color .25s, box-shadow .25s, background .25s;
}
.uv-input::placeholder { color: var(--muted); }
.uv-input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber) 18%, transparent); background: var(--soft-2); }
.uv-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* ---------- planets ---------- */
.planet {
  --s: 50px; position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); padding: 0; border: 0; background: none;
  cursor: pointer; will-change: transform; transition: opacity .6s var(--ease); -webkit-tap-highlight-color: transparent; outline: none;
}
.planet.gone { opacity: 0; pointer-events: none; }
.orb {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; z-index: 1;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55) 0, var(--c1) 22%, var(--c2) 72%, #07040d 100%);
  box-shadow: 0 0 calc(var(--s) * .45) color-mix(in srgb, var(--c1) 40%, transparent);
  transition: transform .45s var(--spring), box-shadow .45s;
}
html[data-theme="day"] .orb { background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .75) 0, var(--c1) 24%, var(--c2) 82%, #2a1830 100%); box-shadow: 0 calc(var(--s) * .12) calc(var(--s) * .35) -6px color-mix(in srgb, var(--c2) 55%, transparent); }
.orb .tex { position: absolute; inset: 0; background-image: var(--tex); background-size: calc(var(--s) * .5); opacity: .32; mix-blend-mode: overlay; animation: uv-surf var(--spd, 16s) linear infinite; }
@keyframes uv-surf { to { background-position: calc(var(--s) * 2) 0; } }
.orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 30%, transparent 38%, rgba(4, 2, 10, .72) 100%); }
html[data-theme="day"] .orb::after { background: radial-gradient(circle at 34% 30%, transparent 45%, rgba(40, 10, 50, .45) 100%); }
.planet.ringed::before, .planet.ringed::after {
  content: ''; position: absolute; left: -38%; right: -38%; top: 39%; height: 22%; border-radius: 50%;
  border: calc(var(--s) * .045) solid color-mix(in srgb, var(--c1) 75%, white); opacity: .75; transform: rotate(-16deg); pointer-events: none;
  transition: transform .45s var(--spring);
}
html[data-theme="day"] .planet.ringed::before, html[data-theme="day"] .planet.ringed::after { border-color: color-mix(in srgb, var(--c2) 70%, var(--c1)); }
.planet.ringed::before { z-index: 0; }
.planet.ringed::after { z-index: 2; border-top-color: transparent !important; border-left-color: transparent !important; border-right-color: transparent !important; }
.planet.locked .orb { filter: grayscale(.85) brightness(.7); }

/* ---------- section dividers ---------- */
.uv-div { position: relative; height: 200px; margin: 72px auto 24px; pointer-events: none; }
.uv-div svg.path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.uv-div .trail { fill: none; stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 2 7; }
.uv-div .draw { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.uv-div .comet { filter: drop-shadow(0 0 8px var(--dc)) drop-shadow(0 0 18px var(--dc)); }
.uv-div .badge {
  position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
  display: grid; place-items: center; font: 600 16px var(--display); color: var(--ink);
  background: var(--solid); border: 1px solid var(--line-2);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--dc) 10%, transparent), 0 0 40px -6px var(--dc);
  transform: scale(0) rotate(-120deg); transition: transform .9s var(--spring) .75s;
}
.uv-div .badge::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--dc) 60%, transparent); animation: uv-spin 14s linear infinite; }
.uv-div .badge i { font-style: normal; color: var(--dc); }
html[data-theme="day"] .uv-div .badge i { filter: brightness(.7) saturate(1.4); }
.uv-div .lbl {
  position: absolute; left: 50%; top: calc(50% + 56px); transform: translateX(-50%); white-space: nowrap;
  font: 600 12px var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}
.uv-div .lbl span { display: inline-block; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.uv-div.go .badge { transform: none; }
.uv-div.go .lbl span { opacity: 1; transform: none; }
@keyframes uv-spin { to { transform: rotate(360deg); } }

/* ---------- toasts, modal, tour ---------- */
.uv-toasts { position: fixed; z-index: 500; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(360px, calc(100% - 32px)); }
.uv-toast { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 20px; background: var(--solid-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: uv-tin .7s var(--spring) both; }
.uv-toast.out { animation: uv-tout .4s var(--ease) both; }
@keyframes uv-tin { from { opacity: 0; transform: translateY(30px) scale(.9); } }
@keyframes uv-tout { to { opacity: 0; transform: translateX(40px); } }
.uv-toast .tx b { display: block; font: 600 15px var(--display); margin-bottom: 2px; }
.uv-toast .tt { font-size: 14px; color: var(--ink-2); }

.uv-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: var(--veil); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.uv-modal.open { opacity: 1; visibility: visible; }
.uv-modal-card { width: min(460px, 100%); padding: 34px; border-radius: 30px; background: var(--solid); border: 1px solid var(--line-2); text-align: center; transform: scale(.9); transition: transform .5s var(--spring); box-shadow: var(--shadow); }
.uv-modal.open .uv-modal-card { transform: none; }
.uv-modal-card h3 { font-size: 24px; margin: 14px 0 10px; }
.uv-modal-card p { color: var(--ink-2); margin: 0 0 24px; }

.uv-consent {
  position: fixed; z-index: 700; left: 20px; bottom: 20px; width: min(420px, calc(100% - 40px)); padding: 20px; border-radius: 22px;
  background: var(--solid-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: uv-tin .7s var(--spring) both;
}
.uv-consent.out { animation: uv-tout .4s var(--ease) both; }
.uv-consent p { margin: 0 0 14px; font-size: 15px; color: var(--ink-2); }
.uv-consent div { display: flex; gap: 10px; justify-content: flex-end; }
.uv-consent .uv-btn { height: 44px; padding: 0 18px; font-size: 15px; }
@media (max-width: 480px) { .uv-consent { left: 16px; bottom: 16px; width: calc(100% - 32px); } .uv-consent div .uv-btn { flex: 1; } }

/* ---------- footer ---------- */
footer.uv-foot { position: relative; margin-top: 140px; padding: 88px 0 44px; color: var(--ink-2); font-size: 15px; border-top: 1px solid var(--line); background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 70%, transparent)); }
.uf-orbit { position: absolute; left: 0; right: 0; top: -1px; height: 2px; overflow: hidden; }
.uf-orbit span { position: absolute; top: 0; width: 220px; height: 2px; background: linear-gradient(90deg, transparent, var(--amber), var(--rose), transparent); animation: ufRun 7s linear infinite; }
@keyframes ufRun { from { left: -240px; } to { left: 100%; } }
.uf-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px; }
.uf-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.uf-logo b { font: 600 18px var(--display); color: var(--ink); }
.uf-brand p { margin: 0 0 22px; line-height: 1.75; max-width: 40ch; color: var(--muted); }
.uf-mail { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--soft); text-decoration: none; font-weight: 500; transition: background .25s, transform .3s var(--spring); }
.uf-mail:hover { background: var(--soft-2); transform: translateY(-2px); }
.uf-col h4 { margin: 4px 0 22px; font: 600 13px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.uf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.uf-col a { color: var(--muted); text-decoration: none; transition: color .2s; position: relative; }
.uf-col a:hover { color: var(--ink); }
.uf-col a::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.uf-col a:hover::after { transform: scaleX(1); }
.uf-bottom { margin-top: 72px; padding-top: 30px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: space-between; font-size: 13px; color: var(--muted); line-height: 1.7; }
.uf-bottom span:nth-child(2) { flex: 1 1 380px; }
.uf-heart { color: #ff5c8a; }
@media (max-width: 900px) { .uf-grid { grid-template-columns: 1fr 1fr; gap: 44px; } .uf-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { footer.uv-foot { margin-top: 96px; padding-top: 64px; } .uf-grid { grid-template-columns: 1fr; gap: 36px; } }

@media (max-width: 640px) {
  .uv-top .uv-wrap { height: 64px; gap: 10px; }
  .uv-name small, .uv-pill .lbl, .uv-hide-s { display: none; }
  .uv-name { font-size: 14px; }
  .uv-pill { padding: 0 10px 0 6px; height: 36px; gap: 5px; }
  .uv-pills { gap: 8px; }
  .uv-icon, .uv-avatar { width: 36px; height: 36px; }
  .uv-div { height: 160px; margin-top: 48px; }
}
@media (max-width: 420px) { .uv-brand .uv-name { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .uv *, .uv *::before, .uv *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
}
/* ---------- day / night switch: a 3D sun or moon flies out, winks and bursts ---------- */
.uv-burst { position: fixed; inset: 0; z-index: 9999; pointer-events: none; perspective: 900px; overflow: hidden; }
.ub-cover { position: absolute; inset: 0; clip-path: circle(0 at 50% 50%); }
.uv-burst.to-day .ub-cover { background: radial-gradient(circle at 50% 50%, #fffdf6, #fbf4ec 55%, #f7e7ef); }
.uv-burst.to-night .ub-cover { background: radial-gradient(circle at 50% 50%, #2a1a4a, #120b24 50%, #0a0713); }
.ub-orb { position: absolute; left: 0; top: 0; width: var(--ob); height: var(--ob); margin: calc(var(--ob) / -2) 0 0 calc(var(--ob) / -2); transform-style: preserve-3d; will-change: transform; opacity: 0; }
.ub-ball { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.to-day .ub-ball { background: radial-gradient(circle at 36% 30%, #fffbe8, #ffe07a 30%, #ffb547 62%, #f07a2a); box-shadow: 0 0 60px 18px rgba(255, 190, 80, .65), 0 0 140px 40px rgba(255, 140, 60, .3), inset -10px -14px 26px rgba(200, 80, 0, .35); }
.to-night .ub-ball { background: radial-gradient(circle at 36% 30%, #ffffff, #e6e0ff 35%, #b9aee0 70%, #8a7fc0); box-shadow: 0 0 60px 16px rgba(190, 170, 255, .55), 0 0 140px 40px rgba(120, 100, 255, .25), inset -10px -14px 26px rgba(60, 40, 120, .35); }
.ub-ball svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ub-rays { position: absolute; inset: -46%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 200, 90, .6) 0 6deg, transparent 6deg 22deg); -webkit-mask: radial-gradient(circle, transparent 30%, #000 34%, transparent 70%); mask: radial-gradient(circle, transparent 30%, #000 34%, transparent 70%); animation: uv-spin 5s linear infinite; }
.to-night .ub-rays { inset: -30%; background: radial-gradient(circle, rgba(200, 190, 255, .4), transparent 62%); -webkit-mask: none; mask: none; animation: none; }
.ub-eye, .ub-yawn { transform-box: fill-box; transform-origin: center; }
.ub-orb.wink .ub-eye.r { animation: ubWink .42s ease-in-out; }
.ub-orb.wink .ub-ball { animation: ubBoing .5s cubic-bezier(.34, 1.56, .64, 1); }
.ub-orb.wink .ub-yawn { animation: ubYawn .5s ease-in-out; }
@keyframes ubWink { 40%, 60% { transform: scaleY(.08); } }
@keyframes ubBoing { 30% { transform: scale(1.12, .88); } 65% { transform: scale(.95, 1.06); } }
@keyframes ubYawn { 50% { transform: scale(1.5, 2.2); } }
.ub-z { position: absolute; right: -6%; top: 2%; font: 800 22px var(--display, sans-serif); color: #fff; text-shadow: 0 0 12px #a58bff; opacity: 0; }
.ub-z.z2 { right: -22%; top: -18%; font-size: 30px; }
.ub-orb.wink .ub-z { animation: ubZ .9s ease-out forwards; }
.ub-orb.wink .ub-z.z2 { animation-delay: .15s; }
@keyframes ubZ { 0% { opacity: 0; transform: translate(0, 10px) scale(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -26px) scale(1.1) rotate(12deg); } }
.ub-wave { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 3px solid #fff; opacity: 0; }
.to-day .ub-wave { border-color: #ffd27a; box-shadow: 0 0 30px #ffb547, inset 0 0 30px #ffb547; }
.to-night .ub-wave { border-color: #c8b8ff; box-shadow: 0 0 30px #a58bff, inset 0 0 30px #a58bff; }
.ub-p { position: absolute; will-change: transform, opacity; }
.ub-p.star { clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%); }
.ub-p.dot { border-radius: 50%; }

/* ---------- comfort choices that change the look ---------- */
html.no-sky .uv-sky, html.no-sky .uv-neb { display: none; }
html.hc[data-theme] { --ink-2: var(--ink); --muted: color-mix(in srgb, var(--ink) 84%, var(--bg)); --line: color-mix(in srgb, var(--ink) 30%, transparent); --line-2: color-mix(in srgb, var(--ink) 50%, transparent); }
html[data-accent="rose"] { --amber: #ff7ab8; }
html[data-accent="mint"] { --amber: #45e3b5; }
html[data-accent="sky"] { --amber: #6fd3ff; }
html[data-accent="violet"] { --amber: #b39bff; }
html[data-accent] .uv-btn-sun { background: linear-gradient(135deg, color-mix(in srgb, var(--amber) 50%, #fff), var(--amber) 48%, color-mix(in srgb, var(--amber) 72%, #000)); box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--amber) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .6); }
