:root {
  color-scheme: dark;
  --ink: #f5f8f7;
  --muted: rgba(229, 239, 236, 0.68);
  --panel: rgba(7, 13, 17, 0.38);
  --line: rgba(226, 244, 239, 0.28);
  --glow: rgba(235, 255, 249, 0.72);
  --dream: #ff8f86;
  --inspiration: #ffd89a;
  --challenge: #a6f4d6;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #020508;
  color: var(--ink);
  cursor: none;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: none;
}

.sound-primer {
  position: fixed;
  inset: 0;
  z-index: 41;
  border: 0;
  padding: 0;
  opacity: 0;
  background: transparent;
}

.sound-primer[hidden] {
  display: none;
}

.enter-system {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  border: 0;
  opacity: 0;
  color: rgba(255, 238, 207, 0.9);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow:
    0 0 10px rgba(255, 231, 185, 0.64),
    0 0 24px rgba(255, 190, 112, 0.3);
  transform: translateY(8px);
  transition: opacity 700ms ease, transform 700ms ease;
  animation: enterPulse 2.2s ease-in-out infinite;
}

.enter-system.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.emoji-panel {
  position: fixed;
  z-index: 10050;
  width: min(424px, calc(100vw - 24px));
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 3px;
  border: 1px solid rgba(255, 221, 166, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(5, 10, 14, 0.62);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38), 0 0 26px rgba(255, 221, 166, 0.12);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.emoji-trigger {
  position: fixed;
  z-index: 10049;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 221, 166, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 238, 207, 0.9);
  background: rgba(5, 10, 14, 0.58);
  box-shadow: 0 0 18px rgba(255, 190, 112, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.emoji-trigger[hidden] {
  display: none;
}

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

.emoji-panel button {
  width: 100%;
  aspect-ratio: 1;
  min-width: 0;
  border: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  font-size: 0.92rem;
  line-height: 1;
}

.emoji-panel button:hover,
.emoji-panel button:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, 0.12);
}

.emoji-row {
  display: flex;
  justify-content: flex-start;
  margin: 8px 0 12px;
}

.todo-creator + .emoji-row {
  margin-top: 8px;
  margin-bottom: 10px;
}

.emoji-inline {
  width: 32px;
  height: 30px;
  border: 1px solid rgba(255, 221, 166, 0.24);
  border-radius: 8px;
  padding: 0;
  color: rgba(255, 238, 207, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(6, 10, 13, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 14px rgba(255, 190, 112, 0.08);
  font-size: 0.76rem;
  line-height: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.emoji-inline:hover,
.emoji-inline:focus-visible {
  outline: 0;
  border-color: rgba(255, 238, 207, 0.42);
  color: rgba(255, 250, 235, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 20px rgba(255, 221, 166, 0.18);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cursor-proxy {
  position: fixed;
  z-index: 9999;
  width: 34px;
  height: 52px;
  pointer-events: none;
  background: url("assets/cursor-open.png") center / contain no-repeat;
  transform: translate(-10px, -8px);
  filter: drop-shadow(0 0 10px rgba(255, 228, 183, 0.45));
}

.cursor-proxy::after {
  position: absolute;
  left: 7px;
  top: 8px;
  width: 2px;
  height: 0;
  content: "";
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 56, 45, 0.95), rgba(255, 56, 45, 0));
  box-shadow: 0 0 8px rgba(255, 56, 45, 0.9), 0 0 18px rgba(255, 36, 26, 0.5);
  opacity: 0;
  transform: rotate(-24deg);
  transform-origin: top;
}

body.is-clicking .cursor-proxy {
  width: 40px;
  height: 54px;
  background-image: url("assets/cursor-closed.png");
}

body.is-clicking .cursor-proxy::after {
  height: 34px;
  opacity: 1;
}

body.has-open-dialog {
  cursor: url("assets/cursor-open-small.png") 4 4, auto;
}

body.has-open-dialog button,
body.has-open-dialog input,
body.has-open-dialog textarea {
  cursor: url("assets/cursor-open-small.png") 4 4, pointer;
}

body.has-open-dialog .cursor-proxy {
  display: none;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(143, 193, 255, 0.12), transparent 22%),
    radial-gradient(ellipse at 28% 60%, rgba(255, 197, 132, 0.09), transparent 20%),
    radial-gradient(ellipse at 72% 36%, rgba(166, 244, 214, 0.08), transparent 18%),
    #020407;
  transition: opacity 800ms ease, visibility 800ms ease;
  pointer-events: auto;
  overflow: hidden;
  perspective: 820px;
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 1.5%),
    radial-gradient(ellipse at 50% 55%, rgba(56, 101, 148, 0.24), transparent 32%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 219, 166, 0.08), transparent 54%);
  opacity: 1;
  animation: introWarpScene 2.85s cubic-bezier(0.12, 0.82, 0.18, 1) forwards;
  transform-origin: center;
}

.intro-stars::before,
.intro-stars::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.65px;
  height: 0.65px;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: screen;
  opacity: 0.92;
  transform-origin: center;
}

.intro-stars::before {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.36));
}

.intro-stars::before {
  box-shadow: var(--intro-stars-far);
  animation: starRushFar 2.35s cubic-bezier(0.1, 0.74, 0.18, 1) forwards;
}

.intro-stars::after {
  width: 0.85px;
  height: 0.85px;
  box-shadow: var(--intro-stars-near);
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.42));
  animation: starRushNear 2.05s cubic-bezier(0.1, 0.78, 0.18, 1) forwards;
}

.intro-title {
  position: relative;
  z-index: 1;
  width: min(660px, 76vw);
  filter: drop-shadow(0 0 22px rgba(255, 244, 219, 0.36));
}

.intro p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(245, 248, 247, 0.88);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 200;
  letter-spacing: 0.18em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.28);
}

.intro-loader {
  position: relative;
  z-index: 1;
  width: min(360px, 56vw);
  height: 6px;
  margin-top: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 221, 166, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 18px rgba(255, 221, 166, 0.12),
    inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.intro-loader span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(166, 244, 214, 0.08), rgba(255, 246, 220, 0.9), rgba(255, 190, 112, 0.2));
  box-shadow:
    0 0 12px rgba(255, 246, 220, 0.82),
    0 0 28px rgba(255, 190, 112, 0.34);
  animation: loadingSweep 1.25s ease-in-out infinite;
}

.intro-status {
  position: relative;
  z-index: 1;
  color: rgba(255, 238, 207, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-shadow: 0 0 12px rgba(255, 221, 166, 0.22);
}

.app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 900ms ease;
}

.app.is-ready {
  opacity: 1;
}

.space-stage,
.space-vignette {
  position: absolute;
  inset: 0;
}

.space-stage {
  z-index: 0;
  background: url("元件/全景图背景/01.jpg") center / cover no-repeat;
  transform: scale(1.08);
  transition: background-image 500ms ease;
}

.space-stage::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(172, 217, 255, 0.62) 0 1px, transparent 1.7px);
  background-position: 0 0, 54px 42px;
  background-size: 140px 110px, 190px 160px;
  opacity: 0.2;
  mix-blend-mode: screen;
  animation: starFloat 28s linear infinite;
}

.space-vignette {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 38%, rgba(1, 5, 8, 0.42) 72%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 34%, rgba(0, 0, 0, 0.5));
}

.top-title {
  position: absolute;
  z-index: 5;
  top: clamp(22px, 4vh, 46px);
  left: 50%;
  width: min(520px, 42vw);
  transform: translateX(-50%);
  pointer-events: none;
}

.top-title::before {
  position: absolute;
  inset: -44% -22% -34%;
  content: "";
  background:
    radial-gradient(ellipse at 22% 52%, rgba(255, 246, 220, 0.2), transparent 35%),
    radial-gradient(ellipse at 78% 52%, rgba(255, 246, 220, 0.2), transparent 35%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 190, 112, 0.12), transparent 62%);
  opacity: 0.75;
  filter: blur(10px);
  animation: titleAura 5.6s ease-in-out infinite;
}

.top-title img {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  pointer-events: none;
  filter:
    drop-shadow(0 0 20px rgba(255, 244, 219, 0.34))
    drop-shadow(0 0 34px rgba(255, 190, 112, 0.16));
}

.welcome-line {
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  width: max-content;
  margin: 0;
  opacity: 0;
  color: rgba(255, 246, 220, 0.86);
  font-size: 0.92rem;
  font-weight: 200;
  letter-spacing: 0.22em;
  text-shadow:
    0 0 16px rgba(255, 246, 220, 0.36),
    0 0 32px rgba(255, 190, 112, 0.18);
  transform: translate(-50%, -6px);
  transition: opacity 900ms ease, transform 900ms ease;
}

.welcome-line.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dream-field {
  position: absolute;
  inset: 0;
  z-index: 3;
  transform-origin: center;
}

.dream-card {
  position: absolute;
  width: clamp(170px, 14vw, 270px);
  min-height: 92px;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02)),
    rgba(5, 11, 14, 0.2);
  box-shadow:
    0 18px 64px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  transform:
    translate(-50%, -50%)
    translate3d(var(--pan-x, 0px), var(--pan-y, 0px), 0)
    perspective(760px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    scale(var(--scale, 1));
  filter: blur(var(--depth-blur, 0px));
  transition: transform 260ms ease, filter 260ms ease, opacity 260ms ease;
  will-change: left, top, opacity, transform, filter;
}

.dream-card.is-done {
  filter: blur(var(--depth-blur, 0px)) saturate(0.9);
}

.dream-card.is-done::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 22px;
  height: 22px;
  content: "";
  background: color-mix(in srgb, var(--medal) 82%, white 18%);
  clip-path: polygon(50% 0%, 64.43% 25%, 93.3% 25%, 78.87% 50%, 93.3% 75%, 64.43% 75%, 50% 100%, 35.57% 75%, 6.7% 75%, 21.13% 50%, 6.7% 25%, 35.57% 25%);
  filter:
    drop-shadow(0 0 10px color-mix(in srgb, var(--medal) 80%, white 20%))
    drop-shadow(0 0 34px color-mix(in srgb, var(--medal) 78%, transparent))
    drop-shadow(0 0 72px color-mix(in srgb, var(--medal) 54%, transparent));
  animation: doneMedalBreath 2.4s ease-in-out infinite;
}

.dream-card time {
  display: block;
  color: rgba(245, 248, 247, 0.7);
  font-size: 0.78rem;
}

.dream-card-type {
  display: inline-block;
  float: none;
  text-align: left;
  color: rgba(245, 248, 247, 0.82);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.22),
    0 0 18px rgba(255, 238, 207, 0.14);
}

.dream-card p {
  margin: 7px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: left;
}

.dream-card img {
  width: 42%;
  max-height: 96px;
  object-fit: cover;
  float: right;
  margin: 0 0 8px 12px;
  border-radius: 6px;
  opacity: 0.92;
}

.captain-log {
  position: absolute;
  z-index: 6;
  top: 96px;
  right: 22px;
  width: min(330px, 24vw);
  min-width: 270px;
  transition: transform 260ms ease;
}

.captain-log.is-collapsed {
  transform: translateX(calc(100% + 12px));
}

.log-toggle {
  position: absolute;
  top: 14px;
  left: -42px;
  width: 48px;
  height: 48px;
  border: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 238, 207, 0.92);
  background: transparent;
  filter:
    drop-shadow(0 0 7px rgba(255, 246, 220, 0.72))
    drop-shadow(0 0 18px rgba(255, 190, 112, 0.38));
  transform-style: preserve-3d;
  animation: logArrowFloat 2.8s ease-in-out infinite;
}

.log-toggle span {
  width: 15px;
  height: 18px;
  display: block;
  background: currentColor;
  clip-path: polygon(18% 0, 100% 50%, 18% 100%);
}

.log-toggle.is-flipping span {
  animation: logArrowFlip 620ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.log-panel,
.modal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow:
    0 26px 100px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.log-panel {
  padding: 18px;
}

.log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.log-header h2,
.modal-card h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.log-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 600;
}

.log-header h2::before {
  width: 16px;
  height: 16px;
  content: "";
  background: rgba(255, 255, 255, 0.96);
  clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 61%, 50% 100%, 40% 61%, 0 50%, 40% 39%);
  filter:
    drop-shadow(0 0 7px rgba(255, 255, 255, 0.75))
    drop-shadow(0 0 18px rgba(255, 221, 166, 0.42));
  animation: starBreath 2.6s ease-in-out infinite;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(8, 13, 17, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 18px rgba(255, 235, 198, 0.12);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.log-list {
  max-height: calc(100vh - 190px);
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.log-item {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
}

.log-item time {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 240, 204, 0.78);
  font-size: 0.78rem;
}

.log-item span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: rgba(245, 248, 247, 0.68);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cockpit {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 0;
  width: min(100vw, 1920px);
  transform: translateX(-50%);
  pointer-events: auto;
}

.cockpit img {
  width: 100%;
  display: block;
  user-select: none;
  pointer-events: auto;
}

.bridge-whisper {
  position: absolute;
  left: 50%;
  top: -19%;
  z-index: 3;
  width: min(260px, 24vw);
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.bridge-whisper time {
  padding: 0;
  border: 0;
  color: rgba(255, 238, 207, 0.94);
  background: transparent;
  font-family: "Consolas", "DIN Alternate", "Courier New", monospace;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-shadow:
    0 0 8px rgba(255, 231, 185, 0.62),
    0 0 18px rgba(255, 126, 72, 0.26),
    0 0 30px rgba(255, 190, 112, 0.16);
}

.bridge-whisper p {
  width: 12em;
  max-width: 12em;
  margin: 0;
  opacity: 0;
  color: rgba(245, 248, 247, 0.76);
  font-size: 0.76rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
  transform: translateY(6px);
  white-space: normal;
  word-break: break-all;
  transition: opacity 900ms ease, transform 900ms ease;
  animation: whisperFloat 4.8s ease-in-out infinite;
}

.bridge-whisper p.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hotspot {
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 0;
  color: transparent;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
}

.hotspot::after {
  content: "";
}

.hotspot:hover,
.hotspot:focus-visible {
  outline: 0;
  box-shadow: none;
}

.hotspot:active {
  transform: none;
}

.call-codex {
  left: 27.8%;
  bottom: 72%;
  width: 16%;
  height: 24%;
  z-index: 4;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(210, 246, 255, 0.32);
  border-radius: 999px 999px 999px 999px / 72% 72% 86% 86%;
  color: rgba(235, 252, 255, 0.92);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), rgba(168, 226, 255, 0.04) 48%, rgba(255, 255, 255, 0.03)),
    rgba(6, 13, 18, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(139, 219, 255, 0.12),
    0 0 20px rgba(138, 216, 255, 0.1);
  text-shadow: 0 0 10px rgba(224, 252, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: perspective(420px) rotateX(17deg) rotateZ(-3deg);
  font-size: clamp(0.68rem, 0.95vw, 0.95rem);
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

.start-explore {
  left: 39.1%;
  bottom: 26%;
  width: 21.8%;
  height: 70%;
  border-radius: 50%;
  clip-path: ellipse(50% 50% at 50% 50%);
  font-size: clamp(1rem, 1.55vw, 1.52rem);
  font-weight: 700;
}

.start-explore::after {
  content: "";
  margin: 0;
}

.web-search {
  left: 56.2%;
  bottom: 72%;
  width: 16%;
  height: 24%;
  z-index: 4;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(210, 246, 255, 0.32);
  border-radius: 999px 999px 999px 999px / 72% 72% 86% 86%;
  color: rgba(235, 252, 255, 0.92);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), rgba(168, 226, 255, 0.04) 48%, rgba(255, 255, 255, 0.03)),
    rgba(6, 13, 18, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(139, 219, 255, 0.12),
    0 0 20px rgba(138, 216, 255, 0.1);
  text-shadow: 0 0 10px rgba(224, 252, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: perspective(420px) rotateX(17deg) rotateZ(3deg);
  font-size: clamp(0.68rem, 0.95vw, 0.95rem);
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

.call-codex::before,
.web-search::before {
  position: absolute;
  inset: -30% auto -30% -40%;
  width: 35%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.74), transparent);
  opacity: 0;
  transform: skewX(-22deg);
}

.call-codex:hover,
.call-codex:focus-visible,
.web-search:hover,
.web-search:focus-visible {
  border-color: rgba(235, 252, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 22px rgba(138, 216, 255, 0.2);
}

.call-codex:hover::before,
.call-codex:focus-visible::before,
.web-search:hover::before,
.web-search:focus-visible::before {
  opacity: 0.9;
  animation: warpSheen 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.warp-button {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 221, 166, 0.38);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255, 238, 207, 0.9);
  background:
    linear-gradient(90deg, transparent, rgba(255, 220, 155, 0.12) 45%, transparent),
    rgba(8, 10, 12, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 14px rgba(255, 190, 112, 0.12);
  text-shadow:
    0 0 8px rgba(255, 231, 185, 0.52),
    0 0 18px rgba(255, 126, 72, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mika-video-button {
  position: relative;
  width: 52px;
  height: 44px;
  border: 1px solid rgba(255, 221, 166, 0.38);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255, 238, 207, 0.9);
  background:
    linear-gradient(90deg, transparent, rgba(255, 220, 155, 0.12) 45%, transparent),
    rgba(8, 10, 12, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 14px rgba(255, 190, 112, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
  text-shadow:
    0 0 8px rgba(255, 231, 185, 0.52),
    0 0 18px rgba(255, 126, 72, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mika-video-button::before {
  position: absolute;
  inset: -40% auto -40% -45%;
  width: 42%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
  opacity: 0;
  transform: skewX(-22deg);
}

.mika-video-button:hover::before,
.mika-video-button:focus-visible::before {
  opacity: 0.95;
  animation: warpSheen 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.warp-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.warp-button::before {
  position: absolute;
  inset: -40% auto -40% -35%;
  width: 34%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
  opacity: 0;
  transform: skewX(-22deg);
}

.warp-button:hover,
.warp-button:focus-visible {
  outline: 0;
  border-color: rgba(255, 238, 202, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 18px rgba(255, 211, 155, 0.22),
    0 0 34px rgba(255, 134, 78, 0.16);
}

.warp-button:hover::before,
.warp-button:focus-visible::before {
  opacity: 0.95;
  animation: warpSheen 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.music-dock {
  position: absolute;
  z-index: 9;
  left: 22px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-panel {
  position: absolute;
  left: 0;
  bottom: 108px;
  width: 218px;
  max-height: 270px;
  padding: 9px;
  border: 1px solid rgba(255, 221, 166, 0.22);
  border-radius: 8px;
  display: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 221, 166, 0.025) 48%, rgba(255, 255, 255, 0.015)),
    rgba(5, 9, 12, 0.34);
  box-shadow:
    0 16px 54px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 18px rgba(255, 190, 112, 0.08);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

.music-now {
  position: absolute;
  left: 0;
  bottom: 56px;
  width: 218px;
  min-height: 42px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 221, 166, 0.28);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: rgba(255, 238, 207, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.018)),
    rgba(6, 10, 12, 0.46);
  box-shadow:
    0 14px 48px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(118%);
  -webkit-backdrop-filter: blur(14px) saturate(118%);
}

.music-now[hidden] {
  display: none;
}

.music-now span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-toggle {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: rgba(255, 238, 207, 0.9);
  background: rgba(255, 255, 255, 0.055);
}

.music-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.music-toggle .pause-icon {
  display: none;
}

.music-now.is-playing .play-icon {
  display: none;
}

.music-now.is-playing .pause-icon {
  display: block;
}

.music-dock.is-open .music-panel {
  display: grid;
  gap: 8px;
}

.music-list {
  max-height: 204px;
  overflow-y: auto;
  display: grid;
  gap: 2px;
  padding-right: 2px;
}

.music-track,
.music-add {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 238, 207, 0.9);
  background: transparent;
}

.music-track {
  position: relative;
  overflow: hidden;
  padding: 0 4px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.7rem;
}

.music-track.is-active {
  color: #fff5df;
  text-shadow: 0 0 10px rgba(255, 221, 166, 0.52);
  box-shadow: none;
}

.music-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.music-add span {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 221, 166, 0.42);
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
}

.music-add small {
  color: rgba(255, 238, 207, 0.72);
  font-size: 0.74rem;
}

.dream-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.breathing-star {
  width: 15px;
  height: 15px;
  display: inline-block;
  background: currentColor;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 69%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
  color: rgba(255, 246, 220, 0.96);
  filter:
    drop-shadow(0 0 5px rgba(255, 246, 220, 0.84))
    drop-shadow(0 0 12px rgba(255, 190, 112, 0.42));
  animation: starBreath 1.8s ease-in-out infinite;
}

#newLogButton,
.music-dock .icon-button,
.warp-button {
  border: 1px solid rgba(255, 221, 166, 0.38);
  overflow: hidden;
  color: rgba(255, 238, 207, 0.9);
  background:
    linear-gradient(90deg, transparent, rgba(255, 220, 155, 0.12) 45%, transparent),
    rgba(8, 10, 12, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 14px rgba(255, 190, 112, 0.12);
  text-shadow:
    0 0 8px rgba(255, 231, 185, 0.52),
    0 0 18px rgba(255, 126, 72, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#newLogButton,
.music-dock .icon-button {
  position: relative;
}

#newLogButton::before,
.music-dock .icon-button::before {
  position: absolute;
  inset: -40% auto -40% -45%;
  width: 42%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
  opacity: 0;
  transform: skewX(-22deg);
}

#newLogButton:hover::before,
#newLogButton:focus-visible::before,
.music-dock .icon-button:hover::before,
.music-dock .icon-button:focus-visible::before {
  opacity: 0.95;
  animation: warpSheen 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.glass-modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  overflow: visible;
}

.glass-modal::backdrop {
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  padding: 24px;
  max-height: calc(100dvh - 28px);
  overflow: auto;
}

.compact-card {
  display: grid;
  gap: 16px;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.05);
}

.date-line {
  margin: 8px 0 14px;
  color: rgba(255, 240, 204, 0.78);
  font-size: 0.82rem;
}

textarea,
input[type="text"],
input[type="password"],
input[type="search"] {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  outline: 0;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.88rem;
}

textarea {
  min-height: 122px;
  resize: vertical;
  padding: 14px;
  line-height: 1.55;
}

input[type="text"],
input[type="password"],
input[type="search"] {
  height: 44px;
  padding: 0 12px;
}

.search-modal .modal-card {
  overflow: visible;
  text-align: center;
}

.search-modal .modal-card::before {
  position: absolute;
  top: -26px;
  left: 50%;
  width: 20px;
  height: 18px;
  z-index: 2;
  content: "";
  background: rgba(255, 246, 220, 0.95);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter:
    drop-shadow(0 0 7px rgba(255, 246, 220, 0.88))
    drop-shadow(0 0 18px rgba(255, 190, 112, 0.48));
  animation: cardPointerFloat 2.2s ease-in-out infinite;
}

.search-modal h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
}

.search-title .breathing-star {
  width: 16px;
  height: 16px;
  color: rgba(255, 244, 212, 0.98);
  filter:
    drop-shadow(0 0 7px rgba(255, 236, 190, 0.9))
    drop-shadow(0 0 16px rgba(255, 183, 105, 0.42));
}

#searchQuery {
  text-align: center;
  caret-color: rgba(255, 238, 207, 0.95);
}

#searchQuery::placeholder {
  text-align: center;
}

textarea:focus,
input:focus {
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.13);
}

.upload-box {
  min-height: 118px;
  margin: 14px 0;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.upload-box input {
  display: none;
}

.upload-box img {
  display: none;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

.upload-box.has-image span {
  display: none;
}

.upload-box.has-image img {
  display: block;
}

.type-tabs,
.choice-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.choice-row {
  grid-template-columns: repeat(2, 1fr);
}

.search-engines {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.engine-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.engine-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  color: rgba(255, 244, 214, 0.98);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.18), transparent 44%),
    rgba(255, 218, 162, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 232, 190, 0.34),
    0 0 10px rgba(255, 216, 154, 0.34),
    0 0 20px rgba(255, 178, 96, 0.14);
}

.google-icon {
  font-family: Georgia, "Times New Roman", serif;
}

.baidu-icon {
  font-size: 0.72rem;
}

.gpt-icon {
  width: 34px;
  border-radius: 9px;
  font-size: 0.66rem;
}

.type-tabs button,
.choice-row button,
.send-button,
.todo-creator button {
  position: relative;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.type-tabs button {
  --tab-accent: rgba(255, 255, 255, 0.5);
  min-height: 50px;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--tab-accent) 24%, transparent), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(8, 13, 17, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 color-mix(in srgb, var(--tab-accent) 22%, transparent);
  text-shadow: 0 0 10px color-mix(in srgb, var(--tab-accent) 42%, transparent);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.type-tabs button[data-type="dream"] {
  --tab-accent: var(--dream);
  border-color: color-mix(in srgb, var(--dream) 62%, white 8%);
}

.type-tabs button[data-type="inspiration"] {
  --tab-accent: var(--inspiration);
  border-color: color-mix(in srgb, var(--inspiration) 62%, white 8%);
}

.type-tabs button[data-type="challenge"] {
  --tab-accent: var(--challenge);
  border-color: color-mix(in srgb, var(--challenge) 62%, white 8%);
}

.type-tabs button::before,
.type-tabs button::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
}

.type-tabs button::before {
  background:
    radial-gradient(circle at 20% 28%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 34%, color-mix(in srgb, var(--tab-accent) 92%, white 8%) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 68%, rgba(255, 246, 220, 0.85) 0 1px, transparent 2px);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--tab-accent) 60%, transparent));
}

.type-tabs button::after {
  inset: -36%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tab-accent) 32%, transparent), transparent 58%);
}

.type-tabs button.active[data-type="dream"],
.dream-modal[data-type="dream"] .send-button {
  border-color: color-mix(in srgb, var(--dream) 70%, white 10%);
  box-shadow: 0 0 26px rgba(255, 143, 134, 0.28), inset 0 0 16px rgba(255, 143, 134, 0.14);
}

.type-tabs button.active[data-type="inspiration"],
.dream-modal[data-type="inspiration"] .send-button {
  border-color: color-mix(in srgb, var(--inspiration) 70%, white 10%);
  box-shadow: 0 0 30px rgba(255, 216, 154, 0.34), inset 0 0 16px rgba(255, 216, 154, 0.15);
}

.type-tabs button.active[data-type="challenge"],
.dream-modal[data-type="challenge"] .send-button {
  border-color: color-mix(in srgb, var(--challenge) 70%, white 10%);
  box-shadow: 0 0 26px rgba(166, 244, 214, 0.28), inset 0 0 16px rgba(166, 244, 214, 0.14);
}

.type-tabs button.active {
  transform: translateY(-1px);
}

.type-tabs button.active::before {
  opacity: 0.95;
  animation: tabSparkle 1.45s ease-in-out infinite;
}

.type-tabs button.active::after {
  opacity: 1;
  animation: tabGlowPulse 1.8s ease-in-out infinite;
}

.send-button {
  width: 100%;
  margin-top: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 224, 178, 0.08)),
    rgba(255, 255, 255, 0.06);
}

.explore-mark {
  width: fit-content;
  min-height: 34px;
  margin-top: 14px;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 246, 220, 0.9);
  background: transparent;
  text-shadow: 0 0 10px rgba(255, 221, 166, 0.36);
}

.explore-mark .breathing-star {
  width: 13px;
  height: 13px;
  color: rgba(255, 248, 224, 0.98);
  filter:
    drop-shadow(0 0 7px rgba(255, 248, 224, 0.95))
    drop-shadow(0 0 16px rgba(255, 190, 112, 0.56));
}

.explore-mark:hover,
.explore-mark:focus-visible {
  outline: 0;
  color: #fff7df;
  text-shadow:
    0 0 10px rgba(255, 246, 220, 0.62),
    0 0 20px rgba(255, 190, 112, 0.28);
}

.explore-mark:disabled {
  opacity: 0.58;
}

.delete-dream {
  position: absolute;
  right: 50px;
  top: 16px;
  width: 24px;
  height: 24px;
  border: 0;
  display: grid;
  place-items: center;
  opacity: 0.44;
  color: rgba(255, 238, 207, 0.78);
  background: transparent;
  filter: drop-shadow(0 0 7px rgba(255, 190, 112, 0.16));
  transition: opacity 160ms ease, transform 160ms ease, filter 160ms ease;
}

.delete-dream svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.delete-dream:hover,
.delete-dream:focus-visible {
  outline: 0;
  opacity: 0.92;
  transform: translateY(-1px) rotate(-4deg);
  filter:
    drop-shadow(0 0 7px rgba(255, 238, 202, 0.5))
    drop-shadow(0 0 16px rgba(255, 143, 134, 0.24));
}

.password-line {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.form-error {
  margin: 6px 0 0;
  color: rgba(255, 219, 176, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(255, 190, 112, 0.2);
}

.detail-card img {
  display: none;
  width: 100%;
  max-height: 260px;
  margin: 10px 0 14px;
  object-fit: cover;
  border-radius: 8px;
}

.detail-card img[src] {
  display: block;
}

.detail-card p {
  line-height: 1.8;
}

.steps-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.steps-panel h3 {
  margin: 0 0 10px;
  color: rgba(255, 246, 220, 0.9);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(255, 221, 166, 0.2);
}

.steps-creator {
  margin-top: 0;
}

.steps-list {
  max-height: 142px;
  overflow: auto;
  padding-right: 4px;
}

.steps-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
}

.detail-card {
  overflow: visible;
  border-color: rgba(255, 255, 255, 0.54);
  box-shadow:
    0 32px 120px rgba(0, 0, 0, 0.54),
    0 0 34px rgba(255, 255, 255, 0.34),
    0 0 78px rgba(255, 221, 166, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.detail-card::before {
  position: absolute;
  top: -26px;
  left: 50%;
  width: 20px;
  height: 18px;
  z-index: 2;
  content: "";
  background: rgba(255, 246, 220, 0.95);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter:
    drop-shadow(0 0 7px rgba(255, 246, 220, 0.88))
    drop-shadow(0 0 18px rgba(255, 190, 112, 0.48));
  animation: cardPointerFloat 2.2s ease-in-out infinite;
}

.video-card video {
  width: 100%;
  max-height: min(62vh, 480px);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.36);
}

.video-empty {
  margin: 12px 0 0;
  color: rgba(255, 240, 204, 0.64);
  font-size: 0.82rem;
}

.log-editor {
  width: min(640px, calc(100vw - 32px));
}

#logDialog {
  width: min(680px, calc(100vw - 24px));
}

.log-editor textarea {
  min-height: 160px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.todo-creator {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.todo-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.todo-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  border-radius: 6px;
  transition: color 180ms ease, background 180ms ease;
}

.todo-item:hover {
  background: rgba(255, 255, 255, 0.045);
}

.todo-check {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: transparent;
}

.todo-item.done {
  color: rgba(163, 195, 174, 0.46);
}

.todo-item.done .todo-check {
  background: rgba(135, 175, 145, 0.35);
  box-shadow: inset 0 0 0 4px rgba(2, 5, 8, 0.62);
}

@keyframes introWarpScene {
  from {
    transform: scale(0.88);
    filter: brightness(0.78) saturate(0.92);
  }

  72% {
    transform: scale(1.14);
    filter: brightness(1.18) saturate(1.16);
  }

  to {
    transform: scale(1.08);
    filter: brightness(1.05) saturate(1.05);
  }
}

@keyframes loadingSweep {
  0% {
    transform: translateX(-105%);
    opacity: 0.52;
  }

  45% {
    opacity: 1;
  }

  100% {
    transform: translateX(245%);
    opacity: 0.78;
  }
}

@keyframes whisperFloat {
  0%,
  100% {
    translate: 0 -2px;
  }

  50% {
    translate: 0 4px;
  }
}

@keyframes enterPulse {
  0%,
  100% {
    text-shadow:
      0 0 8px rgba(255, 231, 185, 0.5),
      0 0 20px rgba(255, 190, 112, 0.2);
  }

  50% {
    text-shadow:
      0 0 14px rgba(255, 246, 220, 0.9),
      0 0 34px rgba(255, 190, 112, 0.42),
      0 0 56px rgba(255, 126, 72, 0.18);
  }
}

@keyframes starRushFar {
  0% {
    opacity: 0;
    transform: translateZ(-520px) scale(0.22);
  }

  18% {
    opacity: 0.82;
  }

  76% {
    opacity: 0.78;
    transform: translateZ(250px) scale(1.34);
  }

  100% {
    opacity: 0.64;
    transform: translateZ(250px) scale(1.34);
  }
}

@keyframes starRushNear {
  0% {
    opacity: 0;
    transform: translateZ(-620px) scale(0.12);
  }

  10% {
    opacity: 1;
  }

  72% {
    opacity: 0.95;
    transform: translateZ(360px) scale(1.62);
  }

  100% {
    opacity: 0.58;
    transform: translateZ(360px) scale(1.62);
  }
}

@keyframes starFloat {
  to {
    background-position: 280px 220px, -260px 260px;
  }
}

@keyframes warpSheen {
  from {
    transform: translateX(0) skewX(-22deg);
  }

  to {
    transform: translateX(520%) skewX(-22deg);
  }
}

@keyframes titleAura {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.84;
    transform: scale(1.04);
  }
}

@keyframes logArrowFloat {
  0%,
  100% {
    opacity: 0.68;
    transform: translateY(-3px) rotateX(-12deg);
  }

  50% {
    opacity: 1;
    transform: translateY(4px) rotateX(16deg);
  }
}

@keyframes tabSparkle {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(4px) scale(0.96);
  }

  50% {
    opacity: 0.95;
    transform: translateY(-3px) scale(1.02);
  }
}

@keyframes tabGlowPulse {
  0%,
  100% {
    transform: scale(0.82);
    opacity: 0.32;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.72;
  }
}

@keyframes cardPointerFloat {
  0%,
  100% {
    opacity: 0.58;
    transform: translateX(-50%) translateY(-4px) rotateY(-16deg);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(5px) rotateY(18deg);
  }
}

@keyframes doneMedalBreath {
  0%,
  100% {
    opacity: 0.82;
    filter:
      drop-shadow(0 0 10px color-mix(in srgb, var(--medal) 76%, white 24%))
      drop-shadow(0 0 30px color-mix(in srgb, var(--medal) 70%, transparent))
      drop-shadow(0 0 62px color-mix(in srgb, var(--medal) 46%, transparent));
  }

  50% {
    opacity: 1;
    filter:
      drop-shadow(0 0 14px rgba(255, 255, 255, 0.98))
      drop-shadow(0 0 42px color-mix(in srgb, var(--medal) 86%, transparent))
      drop-shadow(0 0 84px color-mix(in srgb, var(--medal) 64%, transparent));
  }
}

@keyframes logArrowFlip {
  0% {
    transform: scaleY(1) rotateX(0deg);
  }

  16% {
    transform: scaleY(0.2) rotateX(112deg);
  }

  32% {
    transform: scaleY(1.08) rotateX(240deg);
  }

  50% {
    transform: scaleY(0.22) rotateX(360deg);
  }

  68% {
    transform: scaleY(1.08) rotateX(500deg);
  }

  84% {
    transform: scaleY(0.24) rotateX(612deg);
  }

  100% {
    transform: scaleY(1) rotateX(720deg);
  }
}

@keyframes starBreath {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.86) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.13) rotate(12deg);
  }
}

.click-ripple {
  position: fixed;
  z-index: 9998;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255, 221, 166, 0.72);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 246, 220, 0.18), transparent 62%);
  box-shadow:
    0 0 12px rgba(255, 238, 202, 0.52),
    0 0 24px rgba(255, 190, 112, 0.26),
    inset 0 0 8px rgba(255, 221, 166, 0.22);
  animation: clickRipple 560ms ease-out forwards;
}

@keyframes clickRipple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.2);
  }
}

@keyframes breatheGlow {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.18);
  }
}

@media (max-width: 980px) {
  .top-title {
    width: min(460px, 64vw);
  }

  .captain-log {
    width: min(310px, 72vw);
    right: 14px;
  }

  .dream-card {
    width: 230px;
  }

  .music-dock {
    bottom: 88px;
  }
}

@media (max-width: 680px) {
  .cockpit {
    width: 145vw;
  }

  .top-title {
    width: 72vw;
  }

  .captain-log {
    top: 76px;
  }

  .glass-modal {
    width: calc(100vw - 20px);
  }
}
