:root {
  --ink: #070b2b;
  --ink-2: #0b1240;
  --ink-3: #111957;
  --gold: #f4c95d;
  --gold-soft: #ffe7a0;
  --text: #fff8e7;
  --text-2: #c9cbe5;
  --text-3: #8589b5;
  --line: rgba(244, 201, 93, 0.18);
  --card-w: 172px;
  --card-h: 287px;
  --radius: 16px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(120% 60% at 50% -6%, rgba(53, 40, 120, 0.6) 0%, rgba(7, 11, 43, 0) 62%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 54%, var(--ink) 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

.starfield i {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-soft);
  animation: drift linear infinite;
}

@keyframes drift {
  0%,
  100% {
    opacity: 0.25;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.9;
    transform: translate3d(3px, -14px, 0);
  }
}

/* ---------- 顶部 ---------- */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 20px 8px;
}

.brand {
  display: block;
  text-decoration: none;
}

.brand-en {
  display: block;
  color: var(--text);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 4px;
  line-height: 1.1;
}

.brand-cn {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 1.4;
}

.brand-note {
  color: var(--text-3);
  font-size: 12px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.brand-note:hover {
  color: var(--gold-soft);
}

/* ---------- 视图 ---------- */
#views {
  position: relative;
  z-index: 1;
}

.view {
  display: none;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 20px calc(112px + env(safe-area-inset-bottom));
}

.view.is-active {
  display: block;
  animation: fade-up 0.5s ease both;
}

.view-center {
  text-align: center;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  margin: 18px 0 0;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 4px;
}

.title {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.45;
}

.sub {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.8;
}

.ai-note {
  margin: 12px 0 0;
  color: var(--text-3);
  font-size: 12px;
  letter-spacing: 1px;
}

.label {
  margin: 28px 0 0;
  color: rgba(244, 201, 93, 0.75);
  font-size: 12px;
  letter-spacing: 2px;
}

.hint {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

.back {
  margin-top: 8px;
  border: 0;
  color: var(--text-3);
  background: none;
  font-size: 14px;
  cursor: pointer;
}

/* ---------- 今日回声 ---------- */
.daily-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 20px;
}

.daily-title {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 2px;
}

.daily-date {
  color: var(--text-3);
  font-size: 12px;
  letter-spacing: 1px;
}

.daily-sub {
  margin: 10px 0 0;
  color: rgba(201, 203, 229, 0.5);
  font-size: 12px;
  letter-spacing: 2px;
}

.stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 0;
  padding: 22px 0 18px;
  text-align: center;
}

.stage-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(244, 201, 93, 0.24) 0%, rgba(244, 201, 93, 0) 62%),
    radial-gradient(circle, rgba(88, 118, 220, 0.2) 0%, rgba(88, 118, 220, 0) 72%);
  opacity: 0.45;
  animation: glow 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.04);
  }
}

.stage-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border: 1px solid rgba(244, 201, 93, 0.12);
  border-radius: 50%;
  animation: ring 15s ease-in-out infinite;
  pointer-events: none;
}

.stage-ring.inner {
  width: 216px;
  height: 216px;
  margin: -108px 0 0 -108px;
  border-color: rgba(244, 201, 93, 0.08);
  animation-duration: 11s;
  animation-direction: reverse;
}

@keyframes ring {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.97);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.03);
  }
}

/* 翻牌 */
.card3d {
  position: relative;
  width: var(--card-w);
  height: var(--card-h);
  perspective: 1200px;
  transform-style: preserve-3d;
  cursor: pointer;
  animation: float 5s ease-in-out infinite;
}

.card3d.flipped {
  animation: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(-4px);
  }
  50% {
    transform: translateY(4px);
  }
}

.card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 201, 93, 0.45);
  border-radius: var(--radius);
  backface-visibility: hidden;
  transition: transform 0.6s ease;
}

.card-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    linear-gradient(145deg, rgba(244, 201, 93, 0.13), transparent 36%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 6px),
    var(--ink-2);
  box-shadow: inset 0 0 0 5px var(--ink), inset 0 0 0 6px rgba(244, 201, 93, 0.26);
}

.back-glyph {
  color: var(--gold);
  font-size: 30px;
}

.back-caption {
  color: rgba(244, 201, 93, 0.7);
  font-size: 10px;
  letter-spacing: 3px;
}

.card-front {
  background: #f4efe2;
  transform: rotateY(180deg);
}

.card-front img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-front img.is-reversed {
  transform: rotate(180deg);
}

.card3d.flipped .card-back {
  transform: rotateY(-180deg);
}

.card3d.flipped .card-front {
  transform: rotateY(0);
}

.badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 8px;
  color: #f7eed4;
  background: #a45e55;
  font-size: 11px;
}

#dailyBefore,
#dailyAfter {
  text-align: center;
}

.card-name {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 1px;
}

.card-name em {
  margin-left: 6px;
  color: rgba(244, 201, 93, 0.8);
  font-size: 13px;
  font-style: normal;
}

.card-en {
  margin: 6px 0 0;
  color: rgba(244, 201, 93, 0.55);
  font-size: 11px;
  letter-spacing: 3px;
}

.quote {
  max-width: 320px;
  margin: 18px auto 0;
  color: rgba(255, 248, 231, 0.9);
  font-size: 16px;
  line-height: 1.9;
}

.keywords {
  margin: 16px 0 0;
  font-size: 12px;
  letter-spacing: 1px;
}

.keywords span {
  color: var(--text-3);
}

.keywords b {
  margin-left: 10px;
  color: var(--gold-soft);
  font-weight: 400;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

/* ---------- 按钮 ---------- */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  max-width: 320px;
  margin: 18px auto 0;
  border: 1px solid rgba(244, 201, 93, 0.5);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(17, 25, 87, 0.55);
  font-size: 16px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover,
.btn-outline:hover {
  background: rgba(23, 32, 104, 0.8);
  box-shadow: 0 0 34px rgba(244, 201, 93, 0.26);
}

.btn-primary:active,
.btn-outline:active {
  transform: scale(0.98);
}

.link {
  border: 0;
  padding: 8px;
  color: var(--gold);
  background: none;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
}

.link.soft {
  color: rgba(201, 203, 229, 0.72);
}

.link:hover {
  opacity: 0.75;
}

.ask-block {
  margin-top: 56px;
  text-align: center;
}

.ask-block h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
}

/* ---------- 三个入口 ---------- */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 142px;
  padding: 16px 13px;
  border: 1px solid rgba(244, 201, 93, 0.16);
  border-radius: 14px;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 12%, rgba(244, 201, 93, 0.08), transparent 34%),
    rgba(11, 18, 64, 0.47);
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.entry-card:hover {
  border-color: rgba(244, 201, 93, 0.4);
  background:
    radial-gradient(circle at 82% 12%, rgba(244, 201, 93, 0.14), transparent 38%),
    rgba(17, 25, 87, 0.7);
  transform: translateY(-1px);
}

.entry-card:active {
  transform: scale(0.98);
}

.entry-glyph {
  color: var(--gold-soft);
  font-size: 17px;
  line-height: 1;
}

.entry-card b {
  display: block;
  margin-top: 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.entry-card i {
  display: block;
  margin-top: 6px;
  color: rgba(201, 203, 229, 0.62);
  font-size: 11px;
  font-style: normal;
  line-height: 1.55;
}

/* ---------- 三个方向 ---------- */
.themes {
  margin-top: 48px;
}

.theme {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 12px;
  padding: 16px 14px;
  border: 1px solid rgba(244, 201, 93, 0.14);
  border-radius: 14px;
  background: rgba(11, 18, 64, 0.5);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.theme:hover {
  border-color: rgba(244, 201, 93, 0.4);
  background: rgba(17, 25, 87, 0.74);
  transform: scale(0.99);
}

.theme .glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(244, 201, 93, 0.2);
  border-radius: 50%;
  color: var(--gold-soft);
  background: rgba(244, 201, 93, 0.05);
  font-size: 15px;
}

.theme-main {
  flex: 1;
  margin-left: 14px;
}

.theme-main b {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.theme-main i {
  display: block;
  margin-top: 2px;
  color: rgba(201, 203, 229, 0.55);
  font-size: 12px;
  font-style: normal;
}

.theme .arrow {
  color: rgba(244, 201, 93, 0.5);
}

/* ---------- 提问 ---------- */
.ask-card {
  position: relative;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 25, 87, 0.4);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ask-card:focus-within {
  border-color: rgba(244, 201, 93, 0.55);
  box-shadow: 0 0 28px rgba(244, 201, 93, 0.14);
}

.ask-card textarea {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--text);
  background: none;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.8;
  resize: none;
}

.ask-card textarea::placeholder {
  color: rgba(133, 137, 181, 0.7);
}

.counter {
  display: block;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 12px;
  text-align: right;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  padding: 7px 14px;
  border: 1px solid rgba(244, 201, 93, 0.16);
  border-radius: 999px;
  color: var(--text-2);
  background: rgba(17, 25, 87, 0.4);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  border-color: rgba(244, 201, 93, 0.45);
  color: var(--gold-soft);
}

.chip.is-active {
  border-color: rgba(244, 201, 93, 0.6);
  color: var(--gold-soft);
  background: rgba(244, 201, 93, 0.1);
}

.spreads {
  margin-top: 12px;
}

.spread {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(244, 201, 93, 0.14);
  border-radius: 14px;
  background: rgba(11, 18, 64, 0.5);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.spread:hover {
  border-color: rgba(244, 201, 93, 0.4);
  background: rgba(17, 25, 87, 0.72);
}

.spread.is-active {
  border-color: rgba(244, 201, 93, 0.6);
  background: rgba(244, 201, 93, 0.08);
}

.spread-main {
  flex: 1;
}

.spread-main b {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.spread-main i {
  display: block;
  margin-top: 3px;
  color: rgba(201, 203, 229, 0.55);
  font-size: 12px;
  font-style: normal;
}

.spread-count {
  color: var(--text-3);
  font-size: 12px;
  letter-spacing: 1px;
}

/* ---------- 静心 / 洗牌 ---------- */
.breath-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  margin: 60px auto 0;
  border: 1px solid rgba(244, 201, 93, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(244, 201, 93, 0.14);
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.count {
  color: var(--gold-soft);
  font-size: 56px;
  font-weight: 300;
}

.shuffle-stage {
  position: relative;
  width: 200px;
  height: 240px;
  margin: 70px auto 0;
}

.mini-card {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 120px;
  height: 200px;
  margin-left: -60px;
  border: 1px solid rgba(244, 201, 93, 0.45);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(244, 201, 93, 0.13), transparent 36%),
    var(--ink-2);
}

.mini-card.a {
  animation: shuffle-a 2.4s ease-in-out infinite;
}

.mini-card.b {
  animation: shuffle-b 2.4s ease-in-out infinite;
}

.mini-card.c {
  animation: shuffle-c 2.4s ease-in-out infinite;
}

@keyframes shuffle-a {
  0%,
  100% {
    transform: translateX(-46px) rotate(-9deg);
  }
  50% {
    transform: translateX(-10px) rotate(-2deg);
  }
}

@keyframes shuffle-b {
  0%,
  100% {
    transform: translateY(-6px) rotate(0deg);
  }
  50% {
    transform: translateY(6px) rotate(3deg);
  }
}

@keyframes shuffle-c {
  0%,
  100% {
    transform: translateX(46px) rotate(9deg);
  }
  50% {
    transform: translateX(10px) rotate(2deg);
  }
}

/* ---------- 抽卡 ---------- */
.draw-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.draw-slot {
  position: relative;
  width: 96px;
  height: 160px;
  perspective: 900px;
  cursor: pointer;
  transition: opacity 0.4s ease;
}

.draw-slot .card-face {
  border-radius: 10px;
}

.draw-slot .back-glyph {
  font-size: 20px;
}

.draw-slot .back-caption {
  font-size: 8px;
  letter-spacing: 1px;
}

.draw-slot.done {
  cursor: default;
}

.draw-slot.faded {
  opacity: 0.35;
}

.slot-pos {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 11px;
  text-align: center;
}

/* ---------- 结果 ---------- */
.reading-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.reading-card {
  width: 104px;
  text-align: center;
}

.reading-card img {
  display: block;
  width: 100%;
  border: 1px solid rgba(244, 201, 93, 0.28);
  border-radius: 10px;
  background: #f4efe2;
}

.reading-card img.is-reversed {
  transform: rotate(180deg);
}

.reading-card b {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.reading-card i {
  display: block;
  color: rgba(244, 201, 93, 0.7);
  font-size: 11px;
  font-style: normal;
}

.block {
  margin-top: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 18, 64, 0.5);
}

.block h3 {
  margin: 0 0 8px;
  color: rgba(244, 201, 93, 0.85);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
}

.block p {
  margin: 0 0 10px;
  color: rgba(255, 248, 231, 0.88);
  font-size: 14px;
  line-height: 1.9;
}

.block p:last-child {
  margin-bottom: 0;
}

.block .pos {
  color: var(--gold-soft);
}

.followup {
  margin-top: 36px;
}

.followup-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 25, 87, 0.42);
}

.followup-row:focus-within {
  border-color: rgba(244, 201, 93, 0.5);
}

.followup-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--text);
  background: none;
  font-family: inherit;
  font-size: 14px;
}

.followup-row input::placeholder {
  color: rgba(133, 137, 181, 0.7);
}

.followup-row button {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(244, 201, 93, 0.45);
  border-radius: 50%;
  color: var(--gold-soft);
  background: rgba(244, 201, 93, 0.08);
  font-size: 16px;
  cursor: pointer;
}

.followup-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 201, 93, 0.1);
}

.followup-item b {
  display: block;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 500;
}

.followup-item p {
  margin: 6px 0 0;
  color: rgba(255, 248, 231, 0.82);
  font-size: 14px;
  line-height: 1.85;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 34px;
}

/* ---------- 我的回声 ---------- */
.echo-item {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 18, 64, 0.5);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.echo-item:hover {
  border-color: rgba(244, 201, 93, 0.38);
  background: rgba(17, 25, 87, 0.7);
}

.echo-item .meta {
  color: var(--text-3);
  font-size: 12px;
  letter-spacing: 1px;
}

.echo-item .q {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 15px;
}

.echo-item .e {
  margin: 8px 0 0;
  color: rgba(201, 203, 229, 0.7);
  font-size: 13px;
  line-height: 1.8;
}

.empty {
  margin-top: 40px;
  padding: 32px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 18, 64, 0.4);
  text-align: center;
}

.empty p {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 14px;
}

/* ---------- 底部导航 ---------- */
.plan-chip {
  padding: 5px 12px;
  border: 1px solid rgba(244, 201, 93, 0.35);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(244, 201, 93, 0.08);
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-chip {
  padding: 5px 12px;
  border: 1px solid rgba(201, 203, 229, 0.28);
  border-radius: 999px;
  color: rgba(201, 203, 229, 0.85);
  background: rgba(17, 25, 87, 0.4);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-chip:hover {
  border-color: rgba(244, 201, 93, 0.5);
  color: var(--gold-soft);
}

.plan-chip:hover {
  background: rgba(244, 201, 93, 0.16);
}

.plan-chip.is-active {
  border-color: rgba(244, 201, 93, 0.7);
  background: rgba(244, 201, 93, 0.18);
}

/* ---------- 解锁弹层 ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet[hidden] {
  display: none;
}

.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 26, 0.72);
}

.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(244, 201, 93, 0.28);
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, #101a44 0%, #070b2b 100%);
  animation: sheet-up 0.32s ease both;
}

@keyframes sheet-up {
  from {
    opacity: 0.6;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sheet-title {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 1px;
}

.about-panel .eyebrow {
  margin-top: 0;
}

.about-copy {
  margin: 14px 0 0;
  color: rgba(201, 203, 229, 0.78);
  font-size: 14px;
  line-height: 1.9;
}

.sheet-sub {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.8;
}

.plans {
  margin-top: 18px;
}

.plan {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(244, 201, 93, 0.14);
  border-radius: 12px;
  background: rgba(11, 18, 64, 0.55);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.plan:hover {
  border-color: rgba(244, 201, 93, 0.42);
  background: rgba(17, 25, 87, 0.7);
}

.plan.is-main {
  border-color: rgba(244, 201, 93, 0.5);
  background: rgba(244, 201, 93, 0.08);
}

.plan b {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.plan span {
  color: var(--gold-soft);
  font-size: 15px;
}

.plan i {
  margin-left: auto;
  color: rgba(201, 203, 229, 0.6);
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

/* 扫码支付 */
.pay-box {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(244, 201, 93, 0.2);
  border-radius: 14px;
  background: rgba(11, 18, 64, 0.6);
  text-align: center;
}

.pay-box[hidden] {
  display: none;
}

.qr {
  display: flex;
  justify-content: center;
  min-height: 190px;
  align-items: center;
  color: var(--text-2);
  font-size: 13px;
}

.qr img {
  display: block;
  width: 180px;
  height: 180px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
}

.pay-hint {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 13px;
}

/* 分享图预览 */
.share-preview {
  margin: 16px 0;
  text-align: center;
}

.share-preview img {
  display: inline-block;
  width: 100%;
  max-width: 280px;
  border: 1px solid rgba(244, 201, 93, 0.22);
  border-radius: 12px;
}

.sheet-note {
  margin: 16px 0 0;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.7;
}

.redeem-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.redeem-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(244, 201, 93, 0.22);
  border-radius: 10px;
  color: var(--text);
  background: rgba(17, 25, 87, 0.5);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.redeem-row input::placeholder {
  color: rgba(133, 137, 181, 0.65);
  letter-spacing: 0;
  text-transform: none;
}

.redeem-row input:focus {
  outline: none;
  border-color: rgba(244, 201, 93, 0.6);
}

.redeem-row button {
  flex: 0 0 auto;
  padding: 0 20px;
  border: 1px solid rgba(244, 201, 93, 0.5);
  border-radius: 10px;
  color: var(--gold-soft);
  background: rgba(244, 201, 93, 0.12);
  font-size: 14px;
  cursor: pointer;
}

.redeem-row button:disabled {
  opacity: 0.55;
  cursor: default;
}

.sheet-msg {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 12.5px;
}

.sheet-msg.is-error {
  color: #e2a0a0;
}

.sheet-msg.is-ok {
  color: #a8d8a0;
}

.spread-paid {
  margin-left: 6px;
  color: rgba(244, 201, 93, 0.75);
  font-size: 11px;
  font-style: normal;
}

.tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(244, 201, 93, 0.12);
  background: rgba(7, 11, 43, 0.92);
  backdrop-filter: blur(12px);
}

.tab {
  flex: 1;
  max-width: 150px;
  border: 0;
  padding: 8px 4px;
  color: var(--text-3);
  background: none;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tab.is-active {
  color: var(--gold);
}

.disclaimer {
  margin: 40px 0 0;
  color: rgba(133, 137, 181, 0.62);
  font-size: 11px;
  line-height: 1.8;
}

.view-center .disclaimer {
  margin-top: 60px;
}

@media (max-width: 360px) {
  :root {
    --card-w: 150px;
    --card-h: 250px;
  }

  .entry-grid {
    gap: 7px;
  }

  .entry-card {
    min-height: 138px;
    padding: 14px 10px;
  }

  .entry-card b {
    font-size: 13px;
  }

  .entry-card i {
    font-size: 10.5px;
  }

  .draw-slot {
    width: 82px;
    height: 137px;
  }
}

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