:root {
  color-scheme: light;
  --sky: #dff8ff;
  --sea: #38c9e8;
  --sea-deep: #1579c8;
  --mint: #8fffd2;
  --lime: #ddff86;
  --sun: #ffe16f;
  --peach: #ff9d74;
  --coral: #ff6f91;
  --berry: #ab6dff;
  --ink: #17324a;
  --muted: #5c7890;
  --soft: rgba(255, 255, 255, 0.7);
  --line: rgba(23, 50, 74, 0.12);
  --glass: rgba(255, 255, 255, 0.64);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --shadow: 0 24px 80px rgba(16, 118, 169, 0.22);
  --radius: 28px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", "Noto Sans Mono CJK SC", monospace;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: #b9f1ff;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.92), transparent 19%),
    radial-gradient(circle at 85% 12%, rgba(255, 225, 111, 0.66), transparent 18%),
    radial-gradient(circle at 8% 84%, rgba(143, 255, 210, 0.48), transparent 24%),
    linear-gradient(180deg, #b9f1ff 0%, #eefcff 44%, #fff3d1 74%, #f9c78e 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  overscroll-behavior-y: none;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: -2;
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(255, 255, 255, 0.44) 62% 64%, transparent 64%),
    repeating-radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 36px);
  opacity: 0.44;
}

body::after {
  z-index: -1;
  top: auto;
  height: 27vh;
  background:
    radial-gradient(100% 82% at 50% 0%, rgba(255, 255, 255, 0.92), transparent 64%),
    linear-gradient(180deg, rgba(75, 210, 224, 0.5), rgba(20, 137, 203, 0.72));
  clip-path: polygon(0 35%, 8% 28%, 16% 36%, 25% 25%, 35% 36%, 45% 23%, 58% 34%, 71% 20%, 82% 32%, 92% 23%, 100% 31%, 100% 100%, 0 100%);
  animation: lazy-wave 9s ease-in-out infinite alternate;
}

button,
input { font: inherit; }

button,
a,
input { -webkit-tap-highlight-color: transparent; }

button { border: 0; }
button:not(:disabled), a { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.58; }

:focus-visible {
  outline: 3px solid rgba(255, 111, 145, 0.72);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.sky-glow {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(44px);
  opacity: 0.56;
}

.sky-glow-a {
  top: 12%;
  left: -70px;
  width: 210px;
  height: 210px;
  background: #8fffd2;
}

.sky-glow-b {
  right: -80px;
  bottom: 18%;
  width: 220px;
  height: 220px;
  background: #ffb6d4;
}

.sun-orb {
  position: fixed;
  top: clamp(36px, 8vw, 72px);
  right: max(20px, calc((100vw - 480px) / 2 - 72px));
  z-index: -1;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7b0 0 28%, #ffe16f 29% 64%, rgba(255, 225, 111, 0) 66%);
  box-shadow: 0 0 70px rgba(255, 201, 78, 0.55);
  opacity: 0.82;
  animation: sun-float 6s ease-in-out infinite;
}

.bubble-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bubble-field span {
  position: absolute;
  bottom: -80px;
  width: var(--size, 18px);
  height: var(--size, 18px);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 6px 6px 12px rgba(255, 255, 255, 0.36);
  animation: bubble-up var(--time, 12s) linear infinite;
}

.bubble-field span:nth-child(1) { left: 10%; --size: 16px; --time: 12s; animation-delay: -1s; }
.bubble-field span:nth-child(2) { left: 24%; --size: 28px; --time: 16s; animation-delay: -7s; }
.bubble-field span:nth-child(3) { left: 48%; --size: 12px; --time: 10s; animation-delay: -3s; }
.bubble-field span:nth-child(4) { left: 65%; --size: 22px; --time: 14s; animation-delay: -5s; }
.bubble-field span:nth-child(5) { left: 82%; --size: 34px; --time: 18s; animation-delay: -9s; }
.bubble-field span:nth-child(6) { left: 91%; --size: 14px; --time: 11s; animation-delay: -4s; }

.app-shell {
  width: min(100%, 500px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 14px env(safe-area-inset-bottom);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 10px 4px;
  color: rgba(23, 50, 74, 0.72);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.site-link,
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(31, 143, 189, 0.12);
}

.site-link { padding: 9px 12px; }
.sound-toggle { padding: 9px 11px; }
.sound-toggle[aria-pressed="true"] {
  border-color: rgba(255, 111, 145, 0.45);
  background: rgba(255, 255, 255, 0.72);
  color: #c83f6b;
}

.shell-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 111, 145, 0.14), 0 0 16px rgba(255, 111, 145, 0.7);
}

.screen { animation: screen-in 360ms cubic-bezier(0.2, 0.78, 0.28, 1) both; }

.screen-inner {
  min-height: calc(100svh - 76px);
  padding: 26px 4px 36px;
}

.intro-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.postcard-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: clamp(24px, 7vh, 50px);
}

.postcard-strip span {
  padding: 7px 5px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  color: rgba(23, 50, 74, 0.68);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(12px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 7vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.92), transparent 18%),
    radial-gradient(circle at 86% 10%, rgba(255, 225, 111, 0.72), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.4));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card::before,
.hero-card::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero-card::before {
  right: -38px;
  bottom: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 201, 232, 0.36), rgba(56, 201, 232, 0));
}

.hero-card::after {
  right: 26px;
  bottom: 24px;
  width: 84px;
  height: 84px;
  border: 2px dashed rgba(21, 121, 200, 0.23);
  border-radius: 50%;
}

.hero-sticker {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px 18px 18px 5px;
  background: linear-gradient(145deg, #ffdf70, #ff8a73);
  color: #7a3500;
  font-size: 0.74rem;
  font-weight: 950;
  transform: rotate(8deg);
  box-shadow: 0 10px 26px rgba(255, 136, 97, 0.24);
}

.kicker,
.section-code {
  margin: 0 0 12px;
  color: #0a9cbc;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.kicker::before {
  display: inline-block;
  width: 24px;
  height: 1px;
  margin: 0 9px 3px 0;
  background: currentColor;
  content: "";
}

.hero-card h1 {
  margin: 0;
  font-size: clamp(3.15rem, 16vw, 5rem);
  font-weight: 950;
  letter-spacing: -0.085em;
  line-height: 0.9;
}

.hero-card h1 span {
  color: #138fc5;
  text-shadow: 0 10px 0 rgba(143, 255, 210, 0.28), 0 18px 40px rgba(31, 143, 189, 0.18);
}

.subtitle {
  max-width: 18em;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.wave-divider {
  width: 100%;
  height: 12px;
  margin-top: 24px;
  background:
    radial-gradient(12px 8px at 12px 10px, transparent 11px, rgba(21, 121, 200, 0.28) 12px, transparent 13px) 0 0 / 24px 12px repeat-x;
  opacity: 0.8;
}

.nickname-form { margin-top: clamp(26px, 7vh, 52px); }

.nickname-form label {
  display: block;
  margin-bottom: 9px;
  color: rgba(23, 50, 74, 0.7);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8), 0 14px 36px rgba(31, 143, 189, 0.13);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.input-wrap:focus-within {
  border-color: rgba(56, 201, 232, 0.85);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 5px rgba(56, 201, 232, 0.13), 0 16px 36px rgba(31, 143, 189, 0.14);
}

.input-wrap span {
  color: #0a9cbc;
  font-family: var(--mono);
  font-weight: 900;
}

.input-wrap input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.input-wrap input::placeholder { color: rgba(92, 120, 144, 0.62); }

.primary-button,
.secondary-button,
.ghost-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 18px;
  border-radius: 18px;
  color: #08374a;
  font-weight: 950;
  transition: transform 130ms ease, filter 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  touch-action: manipulation;
}

.primary-button {
  margin-top: 13px;
  background: linear-gradient(110deg, #8fffd2 0%, #7ee8ff 42%, #ffe16f 100%);
  box-shadow: 0 15px 34px rgba(40, 176, 203, 0.22), inset 0 1px rgba(255, 255, 255, 0.7);
}

.primary-button span:last-child {
  font-family: var(--mono);
  font-size: 1.05rem;
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.option-button:active { transform: scale(0.98); }

.primary-button:hover { filter: brightness(1.04); transform: translateY(-1px); }

.fine-print {
  margin: 16px 0 0;
  color: rgba(23, 50, 74, 0.64);
  font-size: 0.75rem;
  text-align: center;
}

.mini-stats {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  color: rgba(23, 50, 74, 0.58);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 800;
}

.mini-stats span:not(:last-child)::after { margin-left: 8px; content: "·"; }

.quiz-panel { display: flex; flex-direction: column; }

.quiz-head,
.result-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.quiz-head .section-code,
.result-heading-row .section-code { display: block; margin-bottom: 4px; }

.quiz-head p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.quiz-percent { color: #0a9cbc; font-family: var(--mono); font-size: 0.8rem; font-weight: 900; }

.quiz-progress {
  height: 6px;
  margin: 13px 0 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.quiz-progress i {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c0df, #8fffd2, #ffe16f, #ff8c82);
  box-shadow: 0 0 18px rgba(56, 201, 232, 0.45);
  transition: width 300ms ease;
}

.question-stage {
  margin-top: clamp(40px, 9vh, 76px);
  padding: clamp(22px, 6vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 24px 70px rgba(31, 143, 189, 0.14);
  backdrop-filter: blur(18px);
}

.question-stage.is-changing { animation: question-change 380ms ease both; }

.question-index {
  margin: 0 0 9px;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 950;
}

.question-stage h2 {
  max-width: 13em;
  min-height: 2.25em;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.68rem, 7vw, 2.22rem);
  letter-spacing: -0.05em;
  line-height: 1.14;
}

.question-hint { margin: 13px 0 0; color: var(--muted); font-size: 0.8rem; }

.option-list { display: grid; gap: 11px; margin-top: 28px; }

.option-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 64px;
  padding: 12px 15px;
  overflow: hidden;
  border: 1px solid rgba(23, 50, 74, 0.1);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  text-align: left;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72);
  transition: transform 150ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.option-button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, 0.65), transparent 85%);
  transform: translateX(-110%);
  content: "";
}

.option-button.is-selected {
  border-color: rgba(10, 156, 188, 0.54);
  background: linear-gradient(110deg, rgba(126, 232, 255, 0.56), rgba(143, 255, 210, 0.38));
  box-shadow: 0 14px 34px rgba(31, 143, 189, 0.18), inset 0 1px rgba(255, 255, 255, 0.78);
}

.option-button.is-selected::after { animation: option-shine 420ms ease; }

.option-letter {
  display: grid;
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid rgba(23, 50, 74, 0.12);
  border-radius: 12px;
  color: #0a9cbc;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.55);
}

.option-button.is-selected .option-letter {
  border-color: #ffe16f;
  background: #ffe16f;
  color: #6e4b00;
}

.option-copy { flex: 1; font-size: 0.91rem; font-weight: 760; }
.option-check { color: #0a9cbc; font-family: var(--mono); font-weight: 900; opacity: 0; }
.option-button.is-selected .option-check { opacity: 1; }

.submit-answers { margin-top: 18px; animation: button-pop 300ms ease both; }

.loading-panel {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.drink-loader {
  position: relative;
  display: grid;
  width: 142px;
  height: 172px;
  margin-bottom: 40px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-top-width: 8px;
  border-radius: 18px 18px 34px 34px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 24px 50px rgba(31, 143, 189, 0.18), inset 0 0 0 1px rgba(23, 50, 74, 0.05);
  overflow: hidden;
  transform: rotate(-2deg);
}

.drink-fill {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  height: 64%;
  border-radius: 15px 15px 27px 27px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.8), transparent 14%),
    linear-gradient(180deg, rgba(143, 255, 210, 0.86), rgba(56, 201, 232, 0.8));
  animation: soda-level 1.8s ease-in-out infinite alternate;
}

.drink-loader strong {
  position: relative;
  z-index: 2;
  color: rgba(8, 55, 74, 0.62);
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 950;
}

.ice {
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 6px 6px 12px rgba(255, 255, 255, 0.42);
  animation: ice-float 2.4s ease-in-out infinite;
}

.ice-one { top: 58px; left: 35px; transform: rotate(14deg); }
.ice-two { right: 36px; bottom: 44px; transform: rotate(-22deg); animation-delay: -0.8s; }

.straw {
  position: absolute;
  top: -44px;
  right: 42px;
  z-index: 3;
  width: 10px;
  height: 110px;
  border-radius: 999px;
  background: repeating-linear-gradient(180deg, #ff6f91 0 13px, #fff 13px 26px);
  transform: rotate(18deg);
  box-shadow: 0 6px 18px rgba(255, 111, 145, 0.2);
}

.loading-panel .section-code { margin-bottom: 12px; }

.loading-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.85rem, 8vw, 2.45rem);
  letter-spacing: -0.05em;
}

.loading-dots {
  display: inline-block;
  width: 1.5em;
  overflow: hidden;
  vertical-align: bottom;
  animation: dots 1.2s steps(4) infinite;
}

.scan-message {
  min-height: 1.6em;
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.77rem;
  font-weight: 800;
}

.loading-track {
  width: 100%;
  height: 9px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.loading-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c0df, #8fffd2, #ffe16f, #ff8c82);
  box-shadow: 0 0 18px rgba(56, 201, 232, 0.45);
  transition: width 80ms linear;
}

.loading-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 800;
}

.loading-meta strong { color: #0a9cbc; }
.privacy-note { margin: 34px 0 0; color: rgba(23, 50, 74, 0.54); font-size: 0.68rem; }

.result-panel { padding-top: 22px; padding-bottom: 52px; }
.result-heading-row { align-items: end; margin-bottom: 18px; }
.result-heading-row h2 { margin: 0; font-size: 1.18rem; letter-spacing: -0.02em; }
.draw-id { color: var(--muted); font-family: var(--mono); font-size: 0.68rem; font-weight: 900; }

.persona-card {
  --theme: #38c9e8;
  --theme-2: #8fffd2;
  --theme-soft: rgba(56, 201, 232, 0.13);
  position: relative;
  min-height: min(650px, calc(100svh - 190px));
  overflow: hidden;
  padding: clamp(18px, 5vw, 25px);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 5%, color-mix(in srgb, var(--theme) 42%, transparent), transparent 26%),
    radial-gradient(circle at 0 96%, color-mix(in srgb, var(--theme-2) 36%, transparent), transparent 31%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.55) 58%, rgba(255, 245, 216, 0.72));
  box-shadow: 0 28px 80px rgba(31, 143, 189, 0.2), inset 0 1px rgba(255, 255, 255, 0.88);
  isolation: isolate;
  backdrop-filter: blur(20px);
}

.persona-card::before,
.persona-card::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.persona-card::before {
  right: -62px;
  bottom: -64px;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, color-mix(in srgb, var(--theme) 24%, transparent) 0 2px, transparent 2px 18px);
  opacity: 0.54;
}

.persona-card::after {
  inset: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 24px 24px, color-mix(in srgb, var(--theme) 40%, transparent) 0 2px, transparent 2px),
    linear-gradient(rgba(255, 255, 255, 0.46) 1px, transparent 1px);
  background-size: 34px 34px, 100% 18px;
  mask-image: linear-gradient(145deg, black, transparent 62%);
}

.persona-card.theme-sea { --theme: #38c9e8; --theme-2: #8fffd2; }
.persona-card.theme-sunset { --theme: #ff9d74; --theme-2: #ffe16f; }
.persona-card.theme-soda { --theme: #8fffd2; --theme-2: #38c9e8; }
.persona-card.theme-coral { --theme: #ff6f91; --theme-2: #ffe16f; }
.persona-card.theme-night { --theme: #7b8cff; --theme-2: #ff93d2; }
.persona-card.theme-rain { --theme: #5eb7ff; --theme-2: #c0f7ff; }

.persona-card.rarity-n { --theme: #9ab0c0; --theme-2: #d8edf5; }
.persona-card.rarity-r { --theme: #38c9e8; --theme-2: #8fffd2; }
.persona-card.rarity-sr { --theme: #ff9d74; --theme-2: #ffe16f; }
.persona-card.rarity-ssr { --theme: #ff6f91; --theme-2: #ffe16f; }
.persona-card.rarity-ur {
  border-color: transparent;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 213, 0.72)) padding-box,
    linear-gradient(115deg, #8fffd2, #7ee8ff, #ffe16f, #ff9d74, #ff6f91, #8fffd2) border-box;
  box-shadow: 0 0 70px rgba(255, 111, 145, 0.22), 0 30px 86px rgba(31, 143, 189, 0.24);
  animation: ur-arrive 780ms ease both;
}

.card-watermark {
  position: absolute;
  right: -8px;
  bottom: 42px;
  z-index: -1;
  color: rgba(21, 121, 200, 0.055);
  font-family: var(--mono);
  font-size: clamp(4.5rem, 21vw, 6.8rem);
  font-weight: 950;
  letter-spacing: -0.1em;
  transform: rotate(-8deg);
}

.card-sparkles {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.92) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 28%, rgba(255, 255, 255, 0.82) 0 2px, transparent 3px),
    radial-gradient(circle at 52% 72%, rgba(255, 255, 255, 0.75) 0 2px, transparent 3px);
  animation: sparkle 2.5s ease-in-out infinite alternate;
}

.persona-card-head,
.persona-card-footer,
.status-label,
.rarity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.persona-card-head {
  padding-bottom: clamp(11px, 3vw, 16px);
  border-bottom: 1px solid rgba(23, 50, 74, 0.1);
}

.persona-card-head p,
.persona-card-head h3 { margin: 0; }

.persona-card-head p {
  color: var(--theme);
  font-family: var(--mono);
  font-size: clamp(0.44rem, 1.8vw, 0.58rem);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.persona-card-head h3 {
  margin-top: 2px;
  color: var(--ink);
  font-size: clamp(0.86rem, 3.5vw, 1.08rem);
  letter-spacing: 0.06em;
}

.persona-icon {
  display: grid;
  width: clamp(38px, 10vw, 48px);
  height: clamp(38px, 10vw, 48px);
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--theme) 52%, white 20%);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.44);
  color: var(--theme);
  font-size: clamp(1.08rem, 5vw, 1.42rem);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--theme) 16%, transparent), inset 0 1px rgba(255, 255, 255, 0.7);
}

.identity-block { padding: clamp(12px, 3.2vw, 17px) 0 clamp(10px, 2.5vw, 14px); }

.nickname-line {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.48rem, 2.1vw, 0.63rem);
  font-weight: 800;
}

.nickname-line strong { color: var(--ink); font-weight: 900; }

.identity-block h4 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.48rem, 7.2vw, 2.12rem);
  letter-spacing: -0.065em;
  line-height: 1.1;
}

.rarity-row { justify-content: flex-start; margin-top: 8px; }

.rarity-badge {
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--theme) 58%, white 16%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme) 13%, white 55%);
  color: var(--theme);
  font-family: var(--mono);
  font-size: clamp(0.48rem, 2vw, 0.6rem);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.serial-number {
  color: rgba(92, 120, 144, 0.78);
  font-family: var(--mono);
  font-size: clamp(0.42rem, 1.8vw, 0.55rem);
  font-weight: 800;
}

.status-block {
  padding: clamp(8px, 2vw, 11px) 0;
  border-top: 1px solid rgba(23, 50, 74, 0.1);
  border-bottom: 1px solid rgba(23, 50, 74, 0.1);
}

.status-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.45rem, 1.9vw, 0.59rem);
  font-weight: 800;
}

.status-label strong {
  color: var(--theme);
  font-size: clamp(0.6rem, 2.3vw, 0.74rem);
}

.coolness-track {
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 50, 74, 0.08);
}

.coolness-track i {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--theme), var(--theme-2));
  box-shadow: 0 0 12px color-mix(in srgb, var(--theme) 45%, transparent);
  transition: width 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.buff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(9px, 2.6vw, 14px);
  margin-top: clamp(10px, 2.5vw, 14px);
}

.buff-grid section,
.card-footer-grid section { min-width: 0; }
.buff-grid section + section { padding-left: clamp(9px, 2.6vw, 14px); border-left: 1px solid rgba(23, 50, 74, 0.1); }

.info-label {
  display: block;
  margin-bottom: 4px;
  color: var(--theme);
  font-family: var(--mono);
  font-size: clamp(0.42rem, 1.75vw, 0.55rem);
  font-weight: 950;
  letter-spacing: 0.05em;
}

.debuff-label { color: var(--coral); }

.buff-grid p,
.card-footer-grid p {
  margin: 0;
  color: rgba(23, 50, 74, 0.86);
  font-size: clamp(0.55rem, 2.2vw, 0.69rem);
  font-weight: 650;
  line-height: 1.48;
}

.tag-section,
.diagnosis-section { margin-top: clamp(9px, 2.3vw, 13px); }
.result-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.result-tags span {
  padding: 3px 8px;
  border: 1px solid rgba(23, 50, 74, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: rgba(23, 50, 74, 0.78);
  font-size: clamp(0.44rem, 1.85vw, 0.57rem);
  font-weight: 750;
}

.diagnosis-section > div { display: grid; gap: 2px; }

.diagnosis-section p {
  margin: 0;
  color: rgba(23, 50, 74, 0.9);
  font-size: clamp(0.52rem, 2.16vw, 0.67rem);
  font-weight: 650;
  line-height: 1.42;
}

.diagnosis-section p::before {
  margin-right: 5px;
  color: var(--theme);
  content: "≈";
  font-family: var(--mono);
  font-size: 0.95em;
  font-weight: 900;
}

.card-footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(9px, 2.6vw, 14px);
  margin-top: clamp(9px, 2.3vw, 13px);
  padding-top: clamp(8px, 2vw, 11px);
  border-top: 1px solid rgba(23, 50, 74, 0.1);
}

.persona-card-footer {
  position: absolute;
  right: clamp(18px, 5vw, 25px);
  bottom: clamp(13px, 3vw, 17px);
  left: clamp(18px, 5vw, 25px);
  color: rgba(92, 120, 144, 0.64);
  font-family: var(--mono);
  font-size: clamp(0.37rem, 1.55vw, 0.49rem);
  font-weight: 850;
  letter-spacing: 0.04em;
}

.share-copy-preview {
  margin: 15px 4px 0;
  color: rgba(23, 50, 74, 0.68);
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.result-actions .primary-button { grid-column: 1 / -1; margin-top: 0; }

.secondary-button,
.ghost-button {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.52);
  color: rgba(23, 50, 74, 0.82);
  font-size: 0.8rem;
  backdrop-filter: blur(12px);
}

.ghost-button { color: rgba(23, 50, 74, 0.6); background: rgba(255, 255, 255, 0.28); }
.secondary-button:hover,
.ghost-button:hover { border-color: rgba(56, 201, 232, 0.54); background: rgba(255, 255, 255, 0.72); }

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: env(safe-area-inset-top);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 65, 91, 0.42);
  backdrop-filter: blur(10px);
}

.modal-sheet {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100svh - 18px);
  overflow-y: auto;
  padding: 12px 16px calc(22px + env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: rgba(242, 253, 255, 0.92);
  box-shadow: 0 -24px 80px rgba(21, 121, 200, 0.28);
  animation: sheet-up 300ms ease both;
  backdrop-filter: blur(20px);
}

.modal-grabber {
  width: 38px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(23, 50, 74, 0.2);
}

.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-heading span { color: #0a9cbc; font-family: var(--mono); font-size: 0.58rem; font-weight: 950; }
.modal-heading h2 { margin: 3px 0 0; color: var(--ink); font-size: 1.15rem; }

.modal-heading button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(23, 50, 74, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
  font-size: 1.4rem;
}

.modal-sheet > p { margin: 8px 0 14px; color: var(--muted); font-size: 0.72rem; }

.share-image-wrap {
  display: grid;
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(23, 50, 74, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, #dff8ff, #fff2cc);
}

.share-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: default;
}

.image-generating {
  padding: 40px 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 20px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  left: 20px;
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: auto;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 760;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 12px 34px rgba(21, 121, 200, 0.18);
  backdrop-filter: blur(14px);
}

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

@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes question-change { 0% { opacity: 0; transform: translateX(12px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes option-shine { to { transform: translateX(110%); } }
@keyframes button-pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
@keyframes dots { 0% { width: 0; } 100% { width: 1.5em; } }
@keyframes lazy-wave { from { transform: translateX(-1.6%) translateY(0); } to { transform: translateX(1.6%) translateY(6px); } }
@keyframes sun-float { 50% { transform: translateY(8px) rotate(6deg); } }
@keyframes bubble-up { from { transform: translateY(0) translateX(0); opacity: 0; } 12% { opacity: 0.82; } 78% { opacity: 0.55; } to { transform: translateY(-112vh) translateX(36px); opacity: 0; } }
@keyframes sparkle { 50% { opacity: 0.38; transform: translateY(2px); } }
@keyframes soda-level { 50% { transform: translateY(4px); } }
@keyframes ice-float { 50% { transform: translateY(-7px) rotate(25deg); } }
@keyframes ur-arrive { 0% { filter: brightness(1.25); transform: scale(0.96) rotate(-1deg); } 55% { filter: brightness(1.08); transform: scale(1.015) rotate(0.5deg); } 100% { filter: brightness(1); transform: scale(1) rotate(0); } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (min-width: 700px) {
  body { padding: 32px 0; }

  .app-shell {
    min-height: calc(100vh - 64px);
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 32px 100px rgba(31, 143, 189, 0.18);
    backdrop-filter: blur(18px);
  }

  .screen-inner { min-height: calc(100vh - 150px); }
}

@media (max-width: 359px) {
  .app-shell { padding-right: 10px; padding-left: 10px; }
  .sound-toggle { font-size: 0.58rem; }
  .persona-card { padding: 15px; }
  .persona-card-footer { right: 15px; bottom: 11px; left: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================
   Summer FX pack · 动效层
   轻量 DOM + CSS 动画，不依赖图片素材
   ========================= */
.bubble-field span:nth-child(7) { left: 6%; --size: 10px; --time: 9s; animation-delay: -6s; }
.bubble-field span:nth-child(8) { left: 33%; --size: 18px; --time: 13s; animation-delay: -10s; }
.bubble-field span:nth-child(9) { left: 58%; --size: 9px; --time: 8.5s; animation-delay: -2.5s; }
.bubble-field span:nth-child(10) { left: 74%; --size: 26px; --time: 15s; animation-delay: -12s; }
.bubble-field span:nth-child(11) { left: 88%; --size: 12px; --time: 10.5s; animation-delay: -1.5s; }
.bubble-field span:nth-child(12) { left: 41%; --size: 34px; --time: 19s; animation-delay: -14s; }

body[data-screen="loading"] .bubble-field span,
body[data-screen="result"] .bubble-field span { animation-duration: calc(var(--time, 12s) * 0.78); }
body[data-result-pool="rain"] .sun-orb { opacity: 0.42; filter: blur(1px); }
body[data-result-pool="rain"] .sky-glow-b { background: #8ad7ff; }
body[data-result-pool="fire"] .sun-orb,
body[data-result-pool="sunset"] .sun-orb { transform: scale(1.08); }

.shore-sparkles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.shore-sparkles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.76), 0 0 26px rgba(126, 232, 255, 0.42);
  animation: shore-twinkle 3.4s ease-in-out infinite;
}

.shore-sparkles span:nth-child(1) { top: 18%; left: 18%; animation-delay: -0.4s; }
.shore-sparkles span:nth-child(2) { top: 32%; right: 14%; animation-delay: -1.2s; }
.shore-sparkles span:nth-child(3) { top: 68%; left: 10%; animation-delay: -2.1s; }
.shore-sparkles span:nth-child(4) { top: 77%; right: 22%; animation-delay: -0.9s; }
.shore-sparkles span:nth-child(5) { top: 48%; left: 50%; animation-delay: -2.7s; }

.floating-stickers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-stickers span {
  position: absolute;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 16px 40px rgba(31, 143, 189, 0.12);
  font-size: 1.18rem;
  opacity: 0.68;
  backdrop-filter: blur(12px);
  animation: sticker-drift 7.5s ease-in-out infinite;
}

.floating-stickers span:nth-child(1) { top: 17%; left: max(6px, calc((100vw - 560px) / 2)); transform: rotate(-9deg); animation-delay: -1s; }
.floating-stickers span:nth-child(2) { top: 34%; right: max(8px, calc((100vw - 570px) / 2)); transform: rotate(8deg); animation-delay: -2.4s; }
.floating-stickers span:nth-child(3) { bottom: 23%; left: max(10px, calc((100vw - 620px) / 2)); transform: rotate(12deg); animation-delay: -4s; }
.floating-stickers span:nth-child(4) { bottom: 38%; right: max(12px, calc((100vw - 620px) / 2)); transform: rotate(-12deg); animation-delay: -5.2s; }

.primary-button,
.secondary-button,
.ghost-button,
.sound-toggle,
.site-link,
.option-button {
  position: relative;
  overflow: hidden;
}

.primary-button::after,
.secondary-button::after,
.ghost-button::after,
.sound-toggle::after,
.site-link::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 8%, rgba(255, 255, 255, 0.5), transparent 78%);
  content: "";
  transform: translateX(-120%);
  opacity: 0;
}

.primary-button:hover::after,
.secondary-button:hover::after,
.ghost-button:hover::after,
.sound-toggle:hover::after,
.site-link:hover::after {
  animation: sun-glint 780ms ease;
}

.sound-toggle[aria-pressed="true"] span {
  display: inline-block;
  animation: music-bounce 1.1s ease-in-out infinite;
}

.hero-card {
  transform-origin: 50% 70%;
  animation: hero-breathe 5.6s ease-in-out infinite;
}

.hero-sticker { animation: sticker-wiggle 3.8s ease-in-out infinite; }
.wave-divider { animation: wave-slide 1.8s linear infinite; }
.question-stage { position: relative; }
.question-stage::after {
  position: absolute;
  right: 24px;
  bottom: -8px;
  width: 48px;
  height: 14px;
  border-radius: 50%;
  background: rgba(56, 201, 232, 0.16);
  content: "";
  filter: blur(8px);
  animation: soft-shadow 2.2s ease-in-out infinite;
}

.option-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(31, 143, 189, 0.16), inset 0 1px rgba(255, 255, 255, 0.78);
}

.option-button.is-selected { animation: selected-bob 420ms ease; }

.loader-bubble {
  position: absolute;
  z-index: 4;
  bottom: 20px;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  animation: loader-bubble-up 1.5s ease-in-out infinite;
}
.loader-bubble.bubble-one { left: 40px; animation-delay: -0.2s; }
.loader-bubble.bubble-two { left: 68px; width: 14px; height: 14px; animation-delay: -0.7s; }
.loader-bubble.bubble-three { left: 92px; width: 8px; height: 8px; animation-delay: -1.1s; }
.drink-loader { animation: drink-wobble 2.8s ease-in-out infinite; }
.straw { animation: straw-sway 2.8s ease-in-out infinite; }

.persona-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 70%;
  --shine-y: 18%;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.persona-card.is-tilting {
  box-shadow: 0 34px 90px rgba(31, 143, 189, 0.26), inset 0 1px rgba(255, 255, 255, 0.92);
}

.persona-card.is-revealed { animation: card-summer-pop 840ms cubic-bezier(0.16, 1.2, 0.24, 1) both; }
.persona-card.rarity-ur.is-revealed { animation: card-summer-pop 840ms cubic-bezier(0.16, 1.2, 0.24, 1) both, ur-rainbow 2.4s linear infinite; }

.card-shine {
  position: absolute;
  inset: -1px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.22) 12%, transparent 34%),
    linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.24), transparent 64%);
  mix-blend-mode: screen;
  transition: opacity 160ms ease;
}

.persona-card.is-tilting .card-shine,
.persona-card.is-revealed .card-shine { opacity: 0.72; }

.persona-icon { animation: icon-float 3s ease-in-out infinite; }
.rarity-badge { animation: badge-pulse 2.6s ease-in-out infinite; }
.coolness-track i { position: relative; overflow: hidden; }
.coolness-track i::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  content: "";
  animation: meter-shimmer 1.4s ease-in-out infinite;
}

.tap-ripple,
.burst-bubble,
.summer-confetti {
  position: fixed;
  z-index: 140;
  pointer-events: none;
}

.tap-ripple {
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: rgba(126, 232, 255, 0.2);
  box-shadow: 0 0 0 0 rgba(126, 232, 255, 0.3);
  animation: tap-ripple 700ms ease-out forwards;
}

.burst-bubble {
  width: var(--bubble-size, 12px);
  height: var(--bubble-size, 12px);
  margin: calc(var(--bubble-size, 12px) / -2) 0 0 calc(var(--bubble-size, 12px) / -2);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(126, 232, 255, 0.2);
  box-shadow: inset 4px 4px 10px rgba(255, 255, 255, 0.54), 0 0 16px rgba(126, 232, 255, 0.36);
  animation: bubble-burst 820ms ease-out forwards;
}

.summer-confetti {
  color: #0a9cbc;
  font-size: 1.05rem;
  font-weight: 950;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
  animation: summer-confetti 1050ms ease-out forwards;
}

.toast.is-visible { animation: toast-splash 380ms ease both; }

@keyframes shore-twinkle {
  0%, 100% { opacity: 0.16; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.36); }
}

@keyframes sticker-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -13px; }
}

@keyframes sun-glint {
  0% { opacity: 0; transform: translateX(-120%); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%); }
}

@keyframes music-bounce {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-2px) rotate(-7deg); }
}

@keyframes hero-breathe {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-4px) rotate(-0.35deg); }
}

@keyframes sticker-wiggle {
  0%, 100% { transform: rotate(8deg) scale(1); }
  46% { transform: rotate(2deg) scale(1.03); }
  54% { transform: rotate(12deg) scale(1.03); }
}

@keyframes wave-slide { to { background-position-x: 24px; } }
@keyframes soft-shadow { 50% { transform: scale(1.18); opacity: 0.45; } }
@keyframes selected-bob { 0% { transform: scale(0.98); } 65% { transform: scale(1.018); } 100% { transform: scale(1); } }
@keyframes drink-wobble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) translateY(-4px); } }
@keyframes straw-sway { 0%, 100% { transform: rotate(18deg); } 50% { transform: rotate(22deg) translateY(2px); } }
@keyframes loader-bubble-up { 0% { transform: translateY(24px) scale(0.6); opacity: 0; } 30% { opacity: 0.85; } 100% { transform: translateY(-76px) scale(1.1); opacity: 0; } }
@keyframes card-summer-pop { 0% { opacity: 0; transform: perspective(900px) rotateX(7deg) rotateY(-5deg) scale(0.92) translateY(18px); } 62% { opacity: 1; transform: perspective(900px) rotateX(-1deg) rotateY(1deg) scale(1.018) translateY(-2px); } 100% { opacity: 1; transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1) translateY(0); } }
@keyframes ur-rainbow { to { filter: hue-rotate(360deg); } }
@keyframes icon-float { 50% { transform: translateY(-3px) rotate(3deg); } }
@keyframes badge-pulse { 50% { box-shadow: 0 0 18px color-mix(in srgb, var(--theme) 24%, transparent); } }
@keyframes meter-shimmer { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes tap-ripple { to { width: 86px; height: 86px; margin: -43px 0 0 -43px; opacity: 0; box-shadow: 0 0 0 18px rgba(126, 232, 255, 0); } }
@keyframes bubble-burst { to { transform: translate(var(--dx), var(--dy)) scale(1.4); opacity: 0; } }
@keyframes summer-confetti { 0% { transform: translate(0, 0) rotate(0) scale(0.8); opacity: 0; } 16% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1.2); opacity: 0; } }
@keyframes toast-splash { 0% { transform: translateY(10px) scale(0.96); } 70% { transform: translateY(-2px) scale(1.02); } 100% { transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .tap-ripple,
  .burst-bubble,
  .summer-confetti {
    display: none !important;
  }
}
