:root {
  --lavender: 190, 165, 255;
  --purple: 142, 92, 255;
  --deep-purple: 82, 42, 160;
  --lavender-hex: #bea5ff;
  --purple-hex: #8e5cff;
  --star-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%23d8caff' stroke='%238e5cff' stroke-width='1.7' d='M16 2l3.1 9.2 9.7 1.1-7.4 6.4 2.1 9.6L16 23.2 8.5 28.3l2.1-9.6-7.4-6.4 9.7-1.1L16 2z'/%3E%3Ccircle cx='16' cy='16' r='2.4' fill='%236b3fd6'/%3E%3C/svg%3E") 16 16, auto;
  --edge-glow: 0 0 0 1px rgba(255,255,255,.1), 0 12px 30px rgba(0,0,0,.38), 0 0 15px rgba(var(--lavender),.09), inset 0 1px 0 rgba(255,255,255,.16);
  --glass-bg:
    radial-gradient(circle at 13% 0%, rgba(255,255,255,.1), transparent 28%),
    radial-gradient(circle at 92% 108%, rgba(var(--purple),.065), transparent 40%),
    linear-gradient(152deg, rgba(255,255,255,.038), rgba(8,5,16,.22) 100%);
  --glass-panel-bg:
    radial-gradient(circle at 14% -8%, rgba(255,255,255,.1), transparent 30%),
    radial-gradient(circle at 94% 116%, rgba(var(--purple),.075), transparent 44%),
    linear-gradient(152deg, rgba(255,255,255,.035), rgba(5,3,10,.3) 100%);
  --glass-control-bg:
    radial-gradient(circle at 16% 0%, rgba(255,255,255,.075), transparent 32%),
    linear-gradient(150deg, rgba(255,255,255,.028), rgba(10,7,18,.2)),
    rgba(255,255,255,.006);
  --glass-hover-bg:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.13), transparent 30%),
    linear-gradient(150deg, rgba(255,255,255,.07), rgba(18,12,34,.2));
  --liquid-glass-bg:
    radial-gradient(circle at 12% -4%, rgba(255,255,255,.085), transparent 34%),
    radial-gradient(circle at 94% 112%, rgba(var(--purple),.055), transparent 48%),
    linear-gradient(145deg, rgba(255,255,255,.022), rgba(4,2,9,.085));
  --glass-border: rgba(255,255,255,.14);
  --glass-shadow: 0 24px 62px rgba(0,0,0,.5), 0 0 16px rgba(var(--lavender),.04), inset 0 1px 0 rgba(255,255,255,.17);
  --glass-blur: 10px;
  --liquid-glass-blur: 5px;
}

* {
  box-sizing: border-box;
  cursor: var(--star-cursor);
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 18% 16%, rgba(190,165,255,.075), transparent 30%),
    radial-gradient(ellipse at 82% 76%, rgba(92,45,172,.1), transparent 42%),
    linear-gradient(180deg, #050308 0%, #010102 52%, #090310 100%);
  color: white;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: -16vmax;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 26% 18%, rgba(224,214,255,.09), transparent 26%),
    radial-gradient(ellipse at 74% 70%, rgba(142,92,255,.105), transparent 32%),
    linear-gradient(126deg, transparent 24%, rgba(255,255,255,.035) 44%, transparent 62%);
  filter: blur(5px);
  opacity: 0;
  transition: opacity .8s ease .18s;
  animation: ambient-parallax 34s ease-in-out infinite alternate;
}

body.started::before {
  opacity: .44;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(116deg, transparent 8%, rgba(255,255,255,.035) 18%, transparent 31%),
    linear-gradient(292deg, transparent 60%, rgba(var(--lavender),.04) 73%, transparent 85%),
    radial-gradient(ellipse at 50% 38%, rgba(255,255,255,.022), transparent 54%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity .8s ease .18s;
}

body.started::after {
  opacity: .22;
}

.shader-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity .85s ease .2s;
}

body.started .shader-canvas {
  opacity: .26;
}

.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity .85s ease .2s;
}

body.started .particle-canvas {
  opacity: .92;
}

a,
button {
  cursor: var(--star-cursor);
}

.card,
.start-button,
.weather-chip,
.section-toggle,
.section-menu-list,
.section-option,
.thought-peel,
.thought-wall,
.thought-add,
.thought-close,
.thought-note,
.thought-remove,
.links a,
.notebook,
.game-stats span,
.game-frame,
.game-start,
.card > a,
.now-playing,
.now-cover-link {
  --glass-x: 50%;
  --glass-y: 12%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: var(--glass-border);
  background-clip: padding-box;
  backdrop-filter: blur(var(--glass-blur)) saturate(156%) contrast(1.04);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(156%) contrast(1.04);
}

.card::before,
.start-button::before,
.weather-chip::before,
.section-toggle::before,
.section-menu-list::before,
.section-option::before,
.thought-peel::before,
.thought-wall::before,
.thought-add::before,
.thought-close::before,
.thought-note::before,
.thought-remove::before,
.links a::before,
.game-stats span::before,
.game-frame::before,
.game-start::before,
.card > a::before,
.now-playing::before,
.now-cover-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,.07) 1px, transparent 18%),
    linear-gradient(90deg, rgba(255,255,255,.18), transparent 18%, transparent 82%, rgba(255,255,255,.1)),
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.24), rgba(255,255,255,.07) 20%, transparent 38%),
    radial-gradient(circle at var(--glass-x) var(--glass-y), rgba(255,255,255,.48), rgba(255,255,255,.12) 18%, transparent 42%),
    radial-gradient(circle at calc(100% - var(--glass-x)) calc(100% - var(--glass-y)), rgba(var(--lavender),.1), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.12), transparent 28%, rgba(255,255,255,.04) 58%, rgba(var(--purple),.06));
  filter: saturate(1.05);
  mix-blend-mode: screen;
  opacity: .34;
  transform: translate3d(var(--glass-pull-x, 0px), var(--glass-pull-y, 0px), 0) scale(1.03);
  transition: opacity .28s ease, transform .28s ease;
}

.card::after,
.start-button::after,
.weather-chip::after,
.section-toggle::after,
.section-menu-list::after,
.section-option::after,
.thought-peel::after,
.thought-wall::after,
.thought-add::after,
.thought-close::after,
.thought-note::after,
.thought-remove::after,
.links a::after,
.game-stats span::after,
.game-frame::after,
.game-start::after,
.card > a::after,
.now-playing::after {
  content: "";
  position: absolute;
  inset: -70%;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(116deg, transparent 35%, rgba(255,255,255,.06) 40%, rgba(255,255,255,.42) 46%, rgba(var(--lavender),.14) 49%, transparent 56%),
    linear-gradient(18deg, transparent 33%, rgba(255,255,255,.075) 49%, transparent 67%);
  filter: blur(.35px);
  opacity: .16;
  transform: translate3d(-20%, -7%, 0) rotate(10deg);
  transition: opacity .32s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}

.card > *,
.section-picker > *,
.section-menu-list > *,
.weather-chip > *,
.thought-wall > *,
.thought-note > *,
.game-frame > *,
.now-playing > * {
  position: relative;
  z-index: 1;
}

.card:hover::before,
.start-button:hover::before,
.weather-chip:hover::before,
.section-toggle:hover::before,
.section-menu-list:hover::before,
.section-option:hover::before,
.thought-peel:hover::before,
.thought-wall:hover::before,
.thought-add:hover::before,
.thought-close:hover::before,
.thought-note:hover::before,
.thought-remove:hover::before,
.links a:hover::before,
.game-stats span:hover::before,
.game-frame:hover::before,
.game-start:hover::before,
.card > a:hover::before,
.now-playing:hover::before,
.now-cover-link:hover::before,
.is-glass-pressing::before {
  opacity: .34;
}

.card:hover::after,
.start-button:hover::after,
.weather-chip:hover::after,
.section-toggle:hover::after,
.section-menu-list:hover::after,
.section-option:hover::after,
.thought-peel:hover::after,
.thought-wall:hover::after,
.thought-add:hover::after,
.thought-close:hover::after,
.thought-note:hover::after,
.thought-remove:hover::after,
.links a:hover::after,
.game-stats span:hover::after,
.game-frame:hover::after,
.game-start:hover::after,
.card > a:hover::after,
.now-playing:hover::after,
.is-glass-pressing::after {
  opacity: .28;
  transform: translate3d(16%, 5%, 0) rotate(10deg);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #000 !important;
}

body.started .loader {
  pointer-events: none;
  animation: loader-exit .95s cubic-bezier(.22, 1, .36, 1) .18s forwards;
}

.loader-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.loader-stars::before,
.loader-stars::after {
  display: none;
}

.intro-star {
  position: absolute;
  top: var(--intro-y);
  right: -12px;
  width: var(--intro-size);
  height: var(--intro-size);
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 5px rgba(255,255,255,.44);
  opacity: var(--intro-opacity);
  animation:
    intro-star-travel var(--intro-duration) linear var(--intro-delay) infinite,
    intro-star-twinkle var(--intro-twinkle-duration) ease-in-out var(--intro-twinkle-delay) infinite alternate;
  will-change: transform, opacity, filter;
}

.intro-star:nth-child(7n) {
  box-shadow: 0 0 8px rgba(255,255,255,.7);
}

.loader-core {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0;
  width: min(82vw, 300px);
  min-height: 120px;
  animation: loader-rise 1.1s cubic-bezier(.22, 1, .36, 1) both;
}


.start-button {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 10px;
  color: rgba(255,255,255,.52);
  font: inherit;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: lowercase;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: start-button-glow 3.8s ease-in-out infinite;
  transition: opacity .28s ease, transform .24s ease, color .24s ease, text-shadow .24s ease;
}

.start-button:hover,
.start-button:focus-visible {
  transform: translateY(-2px);
  color: white;
  background: transparent;
  text-shadow: 0 0 14px rgba(255,255,255,.46);
  outline: none;
}

.loader .start-button::before,
.loader .start-button::after {
  display: none;
}

.loader .start-button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.started .start-button {
  opacity: 0;
  transform: translateY(8px) scale(.96);
  animation-play-state: paused;
}

@keyframes intro-star-travel {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-100vw - 32px), var(--intro-drift), 0); }
}

@keyframes intro-star-twinkle {
  0%, 100% {
    opacity: .16;
    filter: brightness(.72);
  }
  48% {
    opacity: var(--intro-opacity);
    filter: brightness(1.65);
  }
  72% {
    opacity: .34;
    filter: brightness(.96);
  }
}

@keyframes start-button-glow {
  0%, 100% {
    opacity: .46;
    text-shadow: 0 0 8px rgba(255,255,255,.12);
  }
  50% {
    opacity: .82;
    text-shadow: 0 0 13px rgba(255,255,255,.3);
  }
}

@keyframes loader-rise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loader-exit {
  to {
    opacity: 0;
    transform: scale(1.015);
    visibility: hidden;
  }
}

.card {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  padding: 26px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background: var(--liquid-glass-bg);
  box-shadow: 0 24px 62px rgba(0,0,0,.38), 0 0 16px rgba(var(--lavender),.035), inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(var(--liquid-glass-blur)) saturate(142%) contrast(1.02);
  -webkit-backdrop-filter: blur(var(--liquid-glass-blur)) saturate(142%) contrast(1.02);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(.98);
  transition: border-color .4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow .4s cubic-bezier(0.25, 0.8, 0.25, 1), transform .4s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform, opacity;
}

body.started .card {
  visibility: visible;
  pointer-events: auto;
  animation: card-reveal .9s cubic-bezier(.22, 1, .36, 1) .42s both;
}

body.no-loader .card {
  animation-delay: .15s;
}

.weather-chip {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 164px;
  height: 96px;
  padding: 10px 12px;
  color: white;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  background: var(--liquid-glass-bg);
  box-shadow: 0 12px 32px rgba(0,0,0,.2), 0 0 18px rgba(var(--lavender),.045), inset 0 1px 0 rgba(255,255,255,.24), inset 0 -1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(var(--liquid-glass-blur)) saturate(142%);
  -webkit-backdrop-filter: blur(var(--liquid-glass-blur)) saturate(142%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: height .55s cubic-bezier(.22, 1, .36, 1), border-color .28s ease, box-shadow .28s ease;
}

.weather-chip.is-open {
  height: calc(100vh - 36px);
  border-color: rgba(var(--lavender),.42);
  box-shadow: 0 16px 42px rgba(0,0,0,.34), 0 0 22px rgba(var(--lavender),.13), inset 0 1px 0 rgba(255,255,255,.32);
  outline: none;
}

body.started .weather-chip {
  visibility: visible;
  pointer-events: auto;
  animation: weather-reveal .72s cubic-bezier(.22, 1, .36, 1) .5s both;
}

.card::before,
.weather-chip::before {
  opacity: .2;
}

.card::after,
.weather-chip::after {
  opacity: .09;
}

.card:hover::before,
.weather-chip:hover::before {
  opacity: .25;
}

.card:hover::after,
.weather-chip:hover::after {
  opacity: .16;
}

.section-menu {
  --menu-x: -50%;
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(var(--menu-x), -8px);
}

body.started .section-menu {
  visibility: visible;
  pointer-events: auto;
  animation: section-menu-reveal .72s cubic-bezier(.22, 1, .36, 1) .5s both;
}

body.no-loader .section-menu {
  animation-delay: .25s;
}

.section-picker {
  position: relative;
  min-width: 178px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  text-transform: lowercase;
}

.section-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 34px 8px 12px;
  color: white;
  font: inherit;
  font-size: 12px;
  text-align: left;
  text-transform: lowercase;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: var(--glass-bg);
  box-shadow: 0 10px 26px rgba(0,0,0,.22), 0 0 16px rgba(var(--lavender),.055), inset 0 1px 0 rgba(255,255,255,.24);
  backdrop-filter: blur(var(--glass-blur)) saturate(152%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(152%);
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.section-label {
  color: rgba(255,255,255,.5);
}

.section-toggle:hover,
.section-toggle:focus-visible,
.section-picker.is-open .section-toggle {
  border-color: rgba(var(--lavender),.48);
  background: var(--glass-hover-bg);
  box-shadow:
    0 10px 28px rgba(0,0,0,.24),
    0 0 18px rgba(var(--lavender),.12),
    inset 0 1px 0 rgba(255,255,255,.22);
  outline: none;
}

.section-picker::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(255,255,255,.72);
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
  transition: transform .18s ease;
}

.section-picker.is-open::after {
  transform: translateY(-30%) rotate(225deg);
}

.section-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 7;
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: var(--glass-panel-bg);
  box-shadow: 0 14px 34px rgba(0,0,0,.28), 0 0 18px rgba(var(--lavender),.07), inset 0 1px 0 rgba(255,255,255,.22);
  backdrop-filter: blur(var(--glass-blur)) saturate(152%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(152%);
}

.section-menu-list[hidden] {
  display: none;
}

.section-option {
  min-height: 34px;
  padding: 8px 12px;
  color: white;
  font: inherit;
  font-size: 12px;
  text-align: left;
  text-transform: lowercase;
  border: 0 solid transparent;
  border-radius: 12px;
  background: var(--glass-control-bg);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.section-option:hover,
.section-option:focus-visible,
.section-option.is-active {
  border-color: rgba(var(--lavender),.38);
  background: var(--glass-hover-bg);
  box-shadow: 0 8px 20px rgba(0,0,0,.2), 0 0 14px rgba(var(--lavender),.11), inset 0 1px 0 rgba(255,255,255,.2);
  outline: none;
}

.weather-place {
  margin: 0 0 4px;
  color: rgba(255,255,255,.5);
  font-size: 10px;
  line-height: 1;
  text-transform: lowercase;
}

.weather-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.weather-main span:first-child {
  color: white;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 16px rgba(var(--lavender),.45);
}

.weather-main span:last-child {
  min-width: 0;
  overflow: hidden;
  color: rgba(255,255,255,.66);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: lowercase;
}

.weather-expanded {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  max-height: 0;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-7px);
  transition: max-height .55s cubic-bezier(.22, 1, .36, 1), opacity .24s ease .08s, visibility .24s ease .08s, transform .34s cubic-bezier(.22, 1, .36, 1) .08s;
}

.weather-chip.is-open .weather-expanded {
  flex: 1;
  max-height: calc(100vh - 124px);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .weather-chip:hover {
    height: calc(100vh - 36px);
    border-color: rgba(var(--lavender),.42);
    box-shadow: 0 16px 42px rgba(0,0,0,.34), 0 0 22px rgba(var(--lavender),.13), inset 0 1px 0 rgba(255,255,255,.32);
  }

  .weather-chip:hover .weather-expanded {
    flex: 1;
    max-height: calc(100vh - 124px);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
  }
}

.weather-section-title,
.weather-news-head p {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.weather-section-title {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.weather-details {
  display: grid;
  gap: 0;
  margin: 7px 0 0;
}

.weather-details div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.weather-details dt,
.weather-details dd {
  margin: 0;
  font-size: 10px;
  line-height: 1.2;
  text-transform: lowercase;
}

.weather-details dt {
  color: rgba(255,255,255,.45);
}

.weather-details dd {
  overflow: hidden;
  color: rgba(255,255,255,.8);
  text-align: right;
  text-overflow: ellipsis;
  text-shadow: 0 0 10px rgba(var(--lavender),.32);
  white-space: nowrap;
}

.weather-news {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin-top: 13px;
}

.weather-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.weather-news-head span {
  color: rgba(var(--lavender),.86);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(var(--lavender),.46);
}

.weather-news-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(var(--lavender),.36) transparent;
  scrollbar-width: thin;
}

.weather-news-item {
  display: block;
  padding: 9px 0;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.065);
  transition: color .18s ease, text-shadow .18s ease;
}

.weather-news-item:hover,
.weather-news-item:focus-visible {
  color: white;
  text-shadow: 0 0 12px rgba(var(--lavender),.54);
  outline: none;
}

.weather-news-title {
  display: block;
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.35;
}

.weather-news-meta,
.weather-news-state {
  display: block;
  margin: 4px 0 0;
  overflow: hidden;
  color: rgba(255,255,255,.38);
  font-size: 9px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thought-peel {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 4;
  width: 42px;
  min-height: 178px;
  padding: 14px 8px;
  color: rgba(255,255,255,.82);
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  text-transform: lowercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border: 1px solid rgba(255,255,255,.2);
  border-right: 0;
  border-radius: 18px 0 0 18px;
  background: var(--glass-bg);
  box-shadow: 0 12px 30px rgba(0,0,0,.26), 0 0 16px rgba(var(--lavender),.075), inset 0 1px 0 rgba(255,255,255,.22);
  backdrop-filter: blur(var(--glass-blur)) saturate(152%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(152%);
  opacity: 0;
  visibility: hidden;
  transform: translate(10px, -50%);
  transition: opacity .45s ease, transform .28s ease, border-color .24s ease, box-shadow .24s ease;
}

body.started .thought-peel {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

.thought-peel:hover,
.thought-peel:focus-visible,
body.thoughts-open .thought-peel {
  border-color: rgba(var(--lavender),.44);
  box-shadow: var(--edge-glow);
  outline: none;
}

.thought-wall {
  position: fixed;
  top: 50%;
  right: 58px;
  z-index: 5;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  width: min(88vw, 440px);
  height: min(72vh, 520px);
  padding: 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  background: var(--glass-panel-bg);
  box-shadow: 0 18px 42px rgba(0,0,0,.36), 0 0 20px rgba(var(--lavender),.08), inset 0 1px 0 rgba(255,255,255,.24);
  backdrop-filter: blur(var(--glass-blur)) saturate(152%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(152%);
  opacity: 0;
  visibility: hidden;
  transform: translate(18px, -50%) scale(.98);
  pointer-events: none;
  transition: opacity .32s ease, visibility .32s ease, transform .32s cubic-bezier(.22, 1, .36, 1);
}

body.thoughts-open .thought-wall {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%) scale(1);
  pointer-events: auto;
}

.thought-wall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.thought-wall-head p {
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: 13px;
  text-transform: lowercase;
}

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

.thought-add,
.thought-close {
  padding: 8px 10px;
  color: white;
  font: inherit;
  font-size: 11px;
  text-transform: lowercase;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: var(--glass-bg);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.thought-add:hover,
.thought-close:hover,
.thought-add:focus-visible,
.thought-close:focus-visible {
  background:
    var(--glass-hover-bg);
  border-color: rgba(var(--lavender),.44);
  box-shadow: var(--edge-glow);
  outline: none;
}

.thought-board {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 18%, rgba(var(--lavender),.08), transparent 34%),
    radial-gradient(circle at 84% 76%, rgba(var(--purple),.075), transparent 34%),
    rgba(255,255,255,.025);
}

.thought-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: rgba(255,255,255,.34);
  font-size: 12px;
  text-transform: lowercase;
  pointer-events: none;
}

.thought-note {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 7px;
  width: 156px;
  height: 138px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  background: var(--glass-control-bg);
  box-shadow: 0 10px 24px rgba(0,0,0,.26), 0 0 12px rgba(var(--lavender),.065), inset 0 1px 0 rgba(255,255,255,.2);
  touch-action: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.thought-note.is-dragging {
  border-color: rgba(var(--lavender),.5);
  box-shadow: 0 12px 28px rgba(0,0,0,.34), 0 0 16px rgba(var(--lavender),.14);
  z-index: 2;
}

.thought-note-grip {
  color: rgba(255,255,255,.48);
  font-size: 10px;
  text-transform: lowercase;
  user-select: none;
}

.thought-remove {
  width: 20px;
  height: 20px;
  padding: 0;
  color: rgba(255,255,255,.55);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  border: 0;
  border-radius: 50%;
  background: var(--glass-control-bg);
}

.thought-remove:hover,
.thought-remove:focus-visible {
  color: white;
  background: var(--glass-hover-bg);
  outline: none;
}

.thought-note textarea {
  grid-column: 1 / -1;
  width: 100%;
  height: 100%;
  resize: none;
  color: rgba(255,255,255,.86);
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  border: 0;
  outline: none;
  background: transparent;
}

.thought-note textarea::placeholder {
  color: rgba(255,255,255,.36);
}

.moon-main {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.moon-image {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 9px rgba(var(--lavender),.36));
}

.moon-main span {
  min-width: 0;
  overflow: hidden;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: lowercase;
}

body.started .card:hover {
  border-color: rgba(255,255,255,.2);
  box-shadow:
    0 28px 70px rgba(0,0,0,.54),
    0 0 17px rgba(var(--lavender),.08),
    inset 0 1px 0 rgba(255,255,255,.2);
  transform: translateY(-2px);
}

@keyframes card-reveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
  border: 1px solid rgba(255,255,255,.14);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.avatar:hover {
  border-color: rgba(var(--lavender),.62);
  box-shadow: 0 10px 24px rgba(0,0,0,.22), 0 0 16px rgba(var(--lavender),.18);
  transform: scale(1.04);
}

body.game-active .card {
  z-index: 3;
  padding-top: 26px;
  padding-bottom: 26px;
}

body.game-active .avatar {
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
}

body.game-active h1 {
  font-size: 34px;
}

body.game-active .tag,
body.game-active .bio,
body.game-active .now-playing {
  display: none;
}

body.game-active .game-panel {
  margin-top: 16px;
}

body.notebook-active .card {
  padding-top: 26px;
  padding-bottom: 26px;
}

body.notebook-active h1,
body.notebook-active .tag,
body.notebook-active .bio,
body.notebook-active .now-playing {
  display: none;
}

body.notebook-active .notebook-panel {
  margin-top: 16px;
}

h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -1px;
}

.tag {
  margin: 6px 0 12px;
  color: rgba(255,255,255,.48);
  font-size: 13px;
}

.bio {
  margin: 0 auto 16px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  line-height: 1.5;
}

.tab-panel {
  min-height: 204px;
}

.tab-panel[hidden] {
  display: none;
}

.links {
  display: grid;
  gap: 8px;
}

.links a {
  padding: 11px 13px;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  background: var(--glass-control-bg);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
  transition: transform .24s ease, background .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.links a:hover {
  transform: translateY(-2px);
  background: var(--glass-hover-bg);
  border-color: rgba(var(--lavender),.54);
  box-shadow: var(--edge-glow);
}

.notebook-panel {
  display: grid;
  gap: 8px;
}

.notebook {
  width: 100%;
  min-height: 212px;
  resize: vertical;
  padding: 14px;
  color: rgba(255,255,255,.86);
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  outline: none;
  background: var(--glass-panel-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -14px 26px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.18);
  backdrop-filter: blur(var(--glass-blur)) saturate(152%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(152%);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.notebook:focus {
  border-color: rgba(var(--lavender),.48);
  box-shadow: 0 0 16px rgba(var(--lavender),.12), inset 0 1px 0 rgba(255,255,255,.26), inset 0 -14px 26px rgba(0,0,0,.12);
}

.notebook::placeholder {
  color: rgba(255,255,255,.34);
}

.notebook-status {
  margin: 0;
  color: rgba(255,255,255,.4);
  font-size: 11px;
  text-align: right;
  text-transform: lowercase;
}

.game-panel {
  display: grid;
  gap: 10px;
  align-content: start;
}

.game-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  color: rgba(255,255,255,.56);
  font-size: 11px;
  text-transform: lowercase;
}

.game-stats span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background: var(--glass-control-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

.game-stats strong {
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 0 14px rgba(var(--lavender),.5);
}

.game-frame {
  position: relative;
  width: 100%;
  max-width: 330px;
  aspect-ratio: 360 / 430;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 70% 14%, rgba(var(--lavender),.105), transparent 28%),
    #030307;
  box-shadow: 0 16px 34px rgba(0,0,0,.26), 0 0 18px rgba(var(--lavender),.08), inset 0 1px 0 rgba(255,255,255,.16);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.game-frame:hover,
.game-frame:focus-within {
  border-color: rgba(var(--lavender),.5);
  box-shadow: var(--edge-glow);
  transform: translateY(-1px);
}

.flappy-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #040309;
  touch-action: manipulation;
}

.game-start {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  min-width: 92px;
  padding: 9px 16px;
  color: white;
  font: inherit;
  font-size: 12px;
  text-transform: lowercase;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: var(--glass-bg);
  box-shadow: 0 10px 22px rgba(0,0,0,.2), 0 0 14px rgba(var(--lavender),.08), inset 0 1px 0 rgba(255,255,255,.24);
  backdrop-filter: blur(var(--glass-blur)) saturate(152%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(152%);
  touch-action: manipulation;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.game-start:hover,
.game-start:focus-visible {
  outline: none;
  transform: translateX(-50%) translateY(-1px);
  border-color: rgba(var(--lavender),.6);
  background: var(--glass-hover-bg);
  box-shadow: var(--edge-glow);
}

.game-hint {
  margin: 0;
  color: rgba(255,255,255,.42);
  font-size: 11px;
  text-transform: lowercase;
}

.card > a {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 16px;
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: var(--glass-control-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.card > a:hover {
  transform: translateY(-2px);
  background: var(--glass-hover-bg);
  border-color: rgba(var(--purple),.55);
  box-shadow: var(--edge-glow);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.gallery img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.15);
  object-fit: cover;
  cursor: var(--star-cursor);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.gallery img:focus-visible,
.gallery img:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(var(--lavender),.55);
  box-shadow: 0 14px 30px rgba(0,0,0,.24), 0 0 16px rgba(var(--lavender),.14);
  outline: none;
}

@media (min-width: 721px) {
  .photos-page .card {
    width: min(92vw, 980px);
  }

  .photos-page .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .photos-page .gallery img {
    aspect-ratio: 4 / 3;
    height: 100%;
  }
}

body.lightbox-open {
  overflow: hidden;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(48px, 1fr) minmax(0, min(86vw, 980px)) minmax(48px, 1fr);
  grid-template-rows: minmax(22px, 1fr) auto minmax(22px, 1fr);
  align-items: center;
  justify-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 48% 42%, rgba(var(--lavender),.12), transparent 36%),
    rgba(3,2,8,.64);
  backdrop-filter: blur(8px) saturate(132%);
  -webkit-backdrop-filter: blur(8px) saturate(132%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.photo-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-frame {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  gap: 10px;
  width: 100%;
  max-height: 86vh;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  background: var(--glass-panel-bg);
  box-shadow: 0 18px 44px rgba(0,0,0,.36), 0 0 18px rgba(var(--lavender),.09), inset 0 1px 0 rgba(255,255,255,.28);
  backdrop-filter: blur(8px) saturate(148%);
  -webkit-backdrop-filter: blur(8px) saturate(148%);
  transform: translateY(8px) scale(.985);
  transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}

.photo-lightbox.is-open .lightbox-frame {
  transform: translateY(0) scale(1);
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: min(74vh, 760px);
  object-fit: contain;
  border-radius: 16px;
  background: #040309;
}

.lightbox-caption {
  min-height: 14px;
  margin: 0;
  color: rgba(255,255,255,.54);
  font-size: 11px;
  text-align: center;
  text-transform: lowercase;
}

.lightbox-close,
.lightbox-nav {
  color: white;
  border: 1px solid rgba(255,255,255,.22);
  background: var(--glass-bg);
  box-shadow: 0 10px 24px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.24);
  backdrop-filter: blur(8px) saturate(148%);
  -webkit-backdrop-filter: blur(8px) saturate(148%);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  border-color: rgba(var(--lavender),.52);
  background: var(--glass-hover-bg);
  box-shadow: var(--edge-glow);
  outline: none;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font: inherit;
  font-size: 24px;
  line-height: 1;
}

.lightbox-nav {
  grid-row: 2;
  width: 42px;
  height: 58px;
  border-radius: 999px;
  font: inherit;
  font-size: 34px;
  line-height: 1;
}

.lightbox-prev {
  grid-column: 1;
  justify-self: end;
}

.lightbox-next {
  grid-column: 3;
  justify-self: start;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  transform: translateY(-1px);
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  transform: translateY(-1px) scale(1.03);
}

.now-playing {
  --cover-r: 190;
  --cover-g: 165;
  --cover-b: 255;
  --cover-image: none;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  max-height: 0;
  margin: 0;
  padding: 0 8px;
  color: white;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: blur(var(--glass-blur)) saturate(152%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(152%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: max-height .46s cubic-bezier(.22, 1, .36, 1), margin .46s cubic-bezier(.22, 1, .36, 1), padding .46s cubic-bezier(.22, 1, .36, 1), opacity .24s ease, visibility .24s ease, transform .36s cubic-bezier(.22, 1, .36, 1), border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.now-playing.has-cover::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), transparent 1px),
    radial-gradient(circle at 16% 38%, rgba(var(--lavender), .12), transparent 34%),
    var(--cover-image);
  background-position: center;
  background-size: auto, auto, cover;
  opacity: .1;
}

.now-playing.has-cover-glow::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), transparent 1px),
    radial-gradient(circle at 16% 38%, rgba(var(--cover-r), var(--cover-g), var(--cover-b), .18), transparent 34%),
    radial-gradient(circle at var(--glass-x) var(--glass-y), rgba(255,255,255,.24), rgba(255,255,255,.08) 18%, transparent 40%),
    var(--cover-image);
  background-position: center;
  background-size: auto, auto, auto, cover;
  opacity: .14;
}

.card.is-player-open .now-playing,
.card:focus-within .now-playing {
  max-height: 60px;
  margin-top: 15px;
  padding: 8px;
  border-width: 1px;
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.018);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.075);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.card.is-player-open .now-playing.has-cover-glow,
.card:focus-within .now-playing.has-cover-glow {
  border-color: rgba(var(--cover-r), var(--cover-g), var(--cover-b), .2);
  background:
    radial-gradient(circle at 12% 34%, rgba(var(--cover-r), var(--cover-g), var(--cover-b), .08), transparent 38%),
    rgba(255,255,255,.018);
  box-shadow:
    0 0 13px rgba(var(--cover-r), var(--cover-g), var(--cover-b), .07),
    inset 0 1px 0 rgba(255,255,255,.09);
}

.card.is-player-open .now-playing:hover,
.card:focus-within .now-playing:hover {
  border-color: rgba(var(--lavender),.26);
  background: rgba(255,255,255,.03);
  box-shadow:
    0 0 14px rgba(var(--lavender),.06),
    inset 0 1px 0 rgba(255,255,255,.1);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .now-playing {
    max-height: 60px;
    margin-top: 15px;
    padding: 8px;
    border-width: 1px;
    border-color: rgba(255,255,255,.1);
    background: rgba(255,255,255,.018);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.075);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .card:hover .now-playing.has-cover-glow {
    border-color: rgba(var(--cover-r), var(--cover-g), var(--cover-b), .2);
    background:
      radial-gradient(circle at 12% 34%, rgba(var(--cover-r), var(--cover-g), var(--cover-b), .08), transparent 38%),
      rgba(255,255,255,.018);
    box-shadow:
      0 0 13px rgba(var(--cover-r), var(--cover-g), var(--cover-b), .07),
      inset 0 1px 0 rgba(255,255,255,.09);
  }

  .card:hover .now-playing:hover {
    border-color: rgba(var(--lavender),.26);
    background: rgba(255,255,255,.03);
    box-shadow:
      0 0 14px rgba(var(--lavender),.06),
      inset 0 1px 0 rgba(255,255,255,.1);
  }
}

.now-cover-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.16), transparent 38%),
    radial-gradient(circle at 70% 75%, rgba(var(--purple),.14), transparent 42%),
    rgba(255,255,255,.045);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.now-cover-link:hover {
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 0 12px rgba(var(--lavender),.09);
  transform: scale(1.025);
}

.now-playing.has-cover-glow .now-cover-link {
  border-color: rgba(var(--cover-r), var(--cover-g), var(--cover-b), .34);
  box-shadow: 0 10px 22px rgba(0,0,0,.22), 0 0 14px rgba(var(--cover-r), var(--cover-g), var(--cover-b), .18);
}

.now-cover-link::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent, rgba(var(--cover-r), var(--cover-g), var(--cover-b), .48), transparent, rgba(var(--purple),.36), transparent);
  opacity: 0;
  animation: album-ring 4.5s linear infinite;
}

.now-playing.is-playing .now-cover-link::after {
  opacity: .42;
}

.now-cover-fallback {
  position: absolute;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: lowercase;
}

.now-cover {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
}

.now-playing.has-cover .now-cover {
  opacity: 1;
}

.now-playing.is-playing .now-cover {
  animation: album-cover-drift 3s ease-in-out infinite;
}

.now-info {
  min-width: 0;
  text-align: left;
}

.now-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 3px;
  color: rgba(255,255,255,.42);
  font-size: 9px;
  line-height: 1;
  text-transform: lowercase;
}

.now-label span:first-child {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.36);
  box-shadow: 0 0 12px rgba(255,255,255,.2);
}

.now-playing.is-playing .now-label span:first-child {
  background: rgb(var(--cover-r), var(--cover-g), var(--cover-b));
  box-shadow: 0 0 14px rgba(var(--cover-r), var(--cover-g), var(--cover-b), .72);
  animation: now-dot 1.2s ease-in-out infinite;
}

.now-track,
.now-artist {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-track {
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.now-track:hover {
  text-decoration: underline;
  text-shadow: 0 0 12px rgba(var(--cover-r), var(--cover-g), var(--cover-b), .42);
}

.now-artist {
  margin: 2px 0 0;
  color: rgba(255,255,255,.48);
  font-size: 10px;
}

@keyframes section-menu-reveal {
  to {
    opacity: 1;
    transform: translate(var(--menu-x), 0);
  }
}

@keyframes weather-reveal {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes album-ring {
  to { transform: rotate(360deg); }
}

@keyframes album-cover-drift {
  0%, 100% { transform: scale(1.02) rotate(0deg); }
  50% { transform: scale(1.045) rotate(.5deg); }
}

@keyframes now-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

@keyframes ambient-parallax {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}

@media (max-width: 560px) {
  body {
    min-height: 100svh;
    padding: 18px 0;
  }

  .loader-core {
    width: min(86vw, 280px);
    min-height: 100px;
    gap: 0;
  }

  .start-button {
    padding: 10px;
    font-size: 10px;
  }

  .card {
    width: min(90vw, 400px);
    padding: 23px 20px;
    border-radius: 20px;
  }

  h1 {
    font-size: 36px;
  }

  .links {
    gap: 10px;
  }

  .links a {
    padding: 11px 13px;
    border-radius: 11px;
  }

  .tab-panel {
    min-height: 204px;
  }

  .notebook {
    min-height: 194px;
  }

  .game-stats span {
    min-height: 32px;
  }

  .game-frame {
    max-width: min(100%, 316px);
    border-radius: 16px;
  }

  .game-start {
    bottom: 12px;
    min-width: 86px;
    padding: 8px 14px;
  }

  .now-playing {
    bottom: auto;
    grid-template-columns: 40px minmax(0, 1fr);
    width: 100%;
    border-radius: 12px;
  }

  .card.is-player-open .now-playing,
  .card:focus-within .now-playing {
    max-height: 56px;
    margin-top: 12px;
    padding: 7px;
  }

  .now-cover-link {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .weather-chip {
    top: 14px;
    left: 14px;
    width: 150px;
    height: 90px;
    padding: 9px 10px;
    border-radius: 14px;
  }

  .weather-chip.is-open {
    height: calc(100vh - 28px);
  }

  .section-menu {
    --menu-x: 0px;
    top: 14px;
    right: 14px;
    left: auto;
  }

  .section-picker {
    min-width: 128px;
  }

  .section-label {
    display: none;
  }

  .section-toggle {
    grid-template-columns: 1fr;
    padding: 8px 30px 8px 12px;
  }

  .weather-main span:first-child {
    font-size: 20px;
  }

  .weather-main span:last-child {
    max-width: 82px;
  }

  .moon-main span {
    max-width: 102px;
  }

  .thought-peel {
    width: 38px;
    min-height: 154px;
    font-size: 11px;
  }

  .thought-wall {
    top: 50%;
    right: 48px;
    width: calc(100vw - 70px);
    height: min(68vh, 480px);
    padding: 12px;
    border-radius: 18px;
  }

  .thought-note {
    width: 144px;
    height: 128px;
  }

  .photo-lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(18px, 1fr) auto auto minmax(18px, 1fr);
    gap: 12px;
    padding: 18px 14px;
  }

  .lightbox-frame {
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: 78vh;
    border-radius: 18px;
  }

  .lightbox-image {
    max-height: 66vh;
    border-radius: 13px;
  }

  .lightbox-nav {
    grid-row: 3;
    width: 46px;
    height: 42px;
    font-size: 30px;
  }

  .lightbox-prev {
    grid-column: 1;
    justify-self: end;
  }

  .lightbox-next {
    grid-column: 2;
    justify-self: start;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader-stars,
  .loader-stars::before,
  .loader-stars::after,
  .loader-core,
  .start-button,
  body::before,
  .now-cover-link::after,
  .now-playing.is-playing .now-cover,
  .now-playing.is-playing .now-label span:first-child {
    animation-duration: .01ms;
    animation-iteration-count: 1;
    animation-delay: 0s;
  }

  .photo-lightbox,
  .lightbox-frame,
  .lightbox-close,
  .lightbox-nav {
    transition-duration: .01ms;
  }

  body.started .loader {
    animation: loader-exit .45s ease 1.25s forwards;
  }

  body.started .card {
    animation: card-reveal .45s ease 1.45s both;
  }

  body.started .weather-chip {
    animation: weather-reveal .45s ease 1.5s both;
  }

  body.started .section-menu {
    animation: section-menu-reveal .45s ease 1.5s both;
  }
}
