:root {
  --bg: #fff8ea;
  --panel: rgba(255, 251, 243, 0.84);
  --panel-strong: rgba(255, 252, 246, 0.94);
  --text: #674218;
  --text-soft: #8d6332;
  --line: rgba(129, 91, 43, 0.12);
  --shadow: 0 24px 60px rgba(157, 113, 39, 0.18);
  --shadow-soft: 0 16px 30px rgba(160, 112, 35, 0.12);
  --gold: #f7c860;
  --gold-deep: #e3a53b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 215, 170, 0.72), transparent 26%),
    linear-gradient(180deg, #fff9ef 0%, #ffefcf 100%);
  color: var(--text);
  overscroll-behavior: none;
}

body {
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
textarea {
  font: inherit;
}

img,
button {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  padding: 10px 10px calc(14px + env(safe-area-inset-bottom));
}

.phone-frame {
  position: relative;
  z-index: 1;
  padding-bottom: 8px;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.78;
  pointer-events: none;
  z-index: 0;
}

.ambient-left {
  top: 82px;
  left: -18px;
  width: 120px;
  height: 120px;
  background: rgba(255, 213, 119, 0.45);
}

.ambient-right {
  right: -16px;
  bottom: 220px;
  width: 140px;
  height: 140px;
  background: rgba(255, 199, 154, 0.52);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.topbar-tag {
  margin: 0 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.ghost-button,
.primary-button,
.secondary-button,
.action-card,
.fortune-tube-stage,
.brand-dock-cta {
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.ghost-button {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 251, 244, 0.78);
  color: var(--text);
  border: 1px solid var(--line);
}

.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: fadeUp 0.45s ease;
}

.boot-card {
  min-height: min(58vh, 460px);
  border-radius: 32px;
  padding: 24px 20px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(255, 223, 149, 0.64), transparent 28%),
    linear-gradient(180deg, rgba(255, 251, 241, 0.98), rgba(255, 239, 202, 0.82));
}

.boot-card img {
  width: 82px;
  display: block;
  filter: drop-shadow(0 14px 22px rgba(170, 112, 39, 0.16));
  pointer-events: none;
}

.boot-copy {
  margin: 0;
  min-height: 2.8em;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 800;
}

.hero-card,
.boot-card,
.coin-panel,
.share-card,
.fortune-loading-card {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 14px 16px 14px;
  display: grid;
  gap: 10px;
  background:
    radial-gradient(circle at top right, rgba(255, 223, 149, 0.8), transparent 28%),
    linear-gradient(180deg, rgba(255, 251, 241, 0.98), rgba(255, 239, 202, 0.82));
}

.eyebrow,
.section-label,
.share-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-copy h1,
.section-head h2 {
  margin: 8px 0 0;
  font-family: Georgia, serif;
  line-height: 1.1;
}

.hero-copy h1 {
  font-size: clamp(28px, 9vw, 38px);
}

.support-copy {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-soft);
}

.hero-otter {
  display: grid;
  justify-items: center;
}

.hero-otter img {
  display: block;
  width: min(42vw, 158px);
  margin: 0 auto;
  filter: drop-shadow(0 22px 34px rgba(170, 112, 39, 0.18));
  animation: floaty 5.5s ease-in-out infinite;
  pointer-events: none;
}

.action-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  border-radius: 20px;
  text-align: left;
  background: rgba(255, 250, 241, 0.84);
  box-shadow: var(--shadow-soft);
}

.action-card:active {
  transform: translateY(1px);
}

.action-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.action-desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-soft);
}

.action-fortune {
  background: linear-gradient(135deg, rgba(255, 234, 186, 0.95), rgba(255, 248, 237, 0.88));
}

.action-coin {
  background: linear-gradient(135deg, rgba(255, 221, 201, 0.95), rgba(255, 248, 242, 0.9));
}

.section-head {
  position: relative;
  z-index: 2;
  margin-bottom: 8px;
  padding: 4px 2px 0;
}

.section-head-share {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 8vw, 36px);
}

.fortune-stage,
.share-wrap {
  display: grid;
  gap: 10px;
}

.fortune-deck,
.fortune-ritual {
  display: grid;
  gap: 10px;
}

.fortune-bubble {
  position: relative;
  padding: 14px 16px;
  border-radius: 24px;
  background: rgba(255, 252, 246, 0.92);
  box-shadow: 0 14px 26px rgba(160, 112, 35, 0.1);
}

.fortune-bubble::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -10px;
  width: 20px;
  height: 20px;
  background: rgba(255, 252, 246, 0.92);
  transform: rotate(45deg);
  border-radius: 4px;
}

.fortune-bubble p,
.fortune-guide-copy p:last-child,
.share-summary,
.coin-caption,
.question-box span,
.fortune-loading-copy {
  margin: 0;
  line-height: 1.68;
  color: var(--text-soft);
}

.fortune-guide {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 226, 149, 0.74), transparent 26%),
    rgba(255, 249, 237, 0.9);
  box-shadow: 0 16px 28px rgba(160, 112, 35, 0.1);
}

.fortune-guide img {
  width: 92%;
  display: block;
  pointer-events: none;
  animation: floaty 4.8s ease-in-out infinite;
}

.fortune-tube-stage {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 18px 16px 16px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 227, 145, 0.9), transparent 32%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(255, 238, 203, 0.92));
  box-shadow: var(--shadow-soft);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

.fortune-tube-stage::before,
.fortune-tube-stage::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
}

.fortune-tube-stage::before {
  width: 160px;
  height: 160px;
  top: 18px;
  background: radial-gradient(circle, rgba(255, 217, 125, 0.32) 0%, rgba(255, 217, 125, 0) 72%);
  transition: opacity 0.24s ease;
}

.fortune-tube-stage::after {
  width: 12px;
  height: 12px;
  right: 28%;
  top: 34px;
  background: rgba(255, 230, 171, 0.88);
  box-shadow:
    -30px 18px 0 rgba(255, 226, 149, 0.68),
    22px 30px 0 rgba(255, 233, 185, 0.84),
    36px -8px 0 rgba(255, 243, 217, 0.9);
}

.fortune-tube-stage.is-holding::before,
.fortune-tube-stage.is-holding::after {
  opacity: 1;
}

.fortune-tube-stage.is-ready::before,
.fortune-tube-stage.is-ready::after {
  opacity: 1;
}

.fortune-tube-stage:active {
  transform: translateY(1px);
}

.fortune-tube {
  position: relative;
  width: 160px;
  height: 200px;
  display: grid;
  place-items: center;
}

.fortune-stick-bundle {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 118px;
  height: 116px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(199, 144, 63, 0.12) 0 10%, transparent 10% 20%, rgba(199, 144, 63, 0.12) 20% 30%, transparent 30% 40%, rgba(199, 144, 63, 0.12) 40% 50%, transparent 50% 60%, rgba(199, 144, 63, 0.12) 60% 70%, transparent 70% 80%, rgba(199, 144, 63, 0.12) 80% 90%, transparent 90% 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.fortune-stick-bundle::before,
.fortune-stick-bundle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 12px;
  height: 118px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e6b66f 0%, #b7772c 100%);
  box-shadow: 16px 0 0 #d8a862, -16px 0 0 #d8a862, 32px 6px 0 #c98f46, -32px 6px 0 #c98f46;
  transform: translateX(-50%);
}

.fortune-stick-bundle::after {
  width: 10px;
  height: 104px;
  bottom: -4px;
  box-shadow: 24px 4px 0 #c98f46, -24px 4px 0 #c98f46, 40px 12px 0 #d8a862, -40px 12px 0 #d8a862;
  opacity: 0.8;
}

.fortune-tube::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 132px;
  height: 134px;
  transform: translateX(-50%);
  border-radius: 28px 28px 36px 36px;
  background:
    linear-gradient(180deg, rgba(255, 223, 150, 0.95), rgba(216, 144, 53, 0.96));
  border: 1px solid rgba(139, 95, 31, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 18px 34px rgba(157, 113, 39, 0.18);
}

.fortune-tube::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 148px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(177, 104, 30, 0.18), rgba(177, 104, 30, 0.04));
  filter: blur(1px);
}

.fortune-stick {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 14px;
  height: 158px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #f3d39e 0%, #b7772c 100%);
  box-shadow: 0 12px 20px rgba(157, 113, 39, 0.2);
  z-index: 2;
  will-change: transform, opacity;
}

.fortune-stick::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: 28px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #fff5df 0%, #f5dfb0 100%);
  border: 1px solid rgba(139, 95, 31, 0.12);
}

.fortune-tube-stage.is-holding .fortune-tube {
  animation: tubeShake 0.34s ease-in-out infinite;
}

.fortune-tube-stage.is-holding .fortune-stick {
  animation: stickLift 0.34s ease-in-out infinite;
}

.fortune-tube-stage.is-dropping .fortune-stick,
.fortune-stick.drop {
  animation: stickDrop 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fortune-tube-stage.is-reset .fortune-tube {
  animation: tubeNudge 0.22s ease;
}

.fortune-tube-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 249, 235, 0.92);
  color: var(--text);
  font-weight: 700;
  text-align: center;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.fortune-draw-card {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 16px;
  height: 176px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3d39e 0%, #b7772c 100%);
  box-shadow: 0 16px 28px rgba(157, 113, 39, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 84px) scale(0.72) rotate(-9deg);
  transform-origin: center bottom;
}

.fortune-draw-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: 30px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #fff5df 0%, #f5dfb0 100%);
  border: 1px solid rgba(139, 95, 31, 0.12);
}

.fortune-draw-card.reveal {
  animation: drawCardReveal 0.58s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fortune-tube-stage.is-ready .fortune-tube-label {
  background: linear-gradient(180deg, rgba(247, 200, 96, 0.96), rgba(255, 240, 198, 0.96));
  box-shadow:
    0 14px 28px rgba(227, 165, 59, 0.2),
    0 0 0 8px rgba(247, 200, 96, 0.14);
  color: #6a3d0a;
  transform: scale(1.04);
  animation: readyPulse 0.9s ease-in-out infinite alternate;
}

.fortune-tube-stage.is-ready {
  box-shadow:
    var(--shadow-soft),
    0 0 0 2px rgba(247, 200, 96, 0.28);
}

@keyframes readyPulse {
  from {
    box-shadow:
      0 14px 28px rgba(227, 165, 59, 0.2),
      0 0 0 6px rgba(247, 200, 96, 0.1);
  }
  to {
    box-shadow:
      0 16px 32px rgba(227, 165, 59, 0.28),
      0 0 0 12px rgba(247, 200, 96, 0.2);
  }
}

.fortune-loading-card,
.coin-panel,
.share-card {
  border-radius: 28px;
  padding: 15px;
}

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

.fortune-loading-card {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(255, 223, 149, 0.78), transparent 30%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(255, 238, 203, 0.9));
}

.fortune-loading-image {
  width: min(34vw, 132px);
  pointer-events: none;
  animation: floaty 4.2s ease-in-out infinite;
}

.fortune-loading-copy {
  max-width: 290px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.hidden {
  display: none !important;
}

.result-actions,
.share-card-head {
  display: flex;
  gap: 12px;
}

.soft-tag,
.brand-benefit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 244, 214, 0.92);
  color: var(--text);
  font-size: 12px;
}

.primary-button,
.secondary-button {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
}

.primary-button {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #5d3710;
  box-shadow: 0 16px 30px rgba(207, 144, 32, 0.26);
}

.secondary-button {
  background: rgba(255, 249, 238, 0.94);
  color: var(--text);
  box-shadow: 0 12px 24px rgba(170, 112, 39, 0.12);
}

.question-box {
  display: grid;
  gap: 10px;
}

.question-copy {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.coin-stage {
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  min-height: 186px;
  perspective: 1200px;
  touch-action: none;
}

.coin {
  position: relative;
  width: min(46vw, 164px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transition: transform 0.45s ease-out;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.coin.holding {
  animation: coinLiftSpin 0.9s ease-in-out infinite;
}

.coin.coin-reset {
  animation: coinNudge 0.24s ease;
}

.coin.resolving {
  animation: coinDrop 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.coin.show-no {
  transform: rotateY(180deg);
}

.coin-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 50%;
  overflow: hidden;
}

.coin-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 28px rgba(141, 99, 39, 0.18));
  pointer-events: none;
}

.coin-back {
  transform: rotateY(180deg);
}

.coin-progress {
  width: min(74vw, 268px);
  height: 12px;
  margin: 0 auto 6px;
  border-radius: 999px;
  background: rgba(255, 248, 229, 0.98);
  border: 1px solid rgba(184, 122, 53, 0.2);
  box-shadow: inset 0 1px 3px rgba(141, 99, 39, 0.12);
  overflow: hidden;
}

.coin-progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7c860, #e3a53b);
  box-shadow: 0 0 18px rgba(243, 185, 84, 0.55);
  transition: width 0.08s linear;
}

.coin-progress-tip {
  margin: 0 auto 6px;
  padding: 12px 14px;
  border-radius: 18px;
  text-align: center;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  background: rgba(255, 238, 192, 0.98);
  border: 1px solid rgba(184, 122, 53, 0.18);
  box-shadow: 0 16px 32px rgba(170, 112, 39, 0.16);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: default;
}

.coin-progress-tip.is-action {
  cursor: pointer;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #5d3710;
  box-shadow: 0 16px 30px rgba(207, 144, 32, 0.26);
  width: auto;
  min-width: 154px;
  max-width: 210px;
  justify-self: center;
  padding: 10px 16px;
  font-size: 15px;
}

.coin-helper {
  margin: 0;
  text-align: center;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.coin-prompt-label {
  margin: 4px 0 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(141, 99, 50, 0.7);
}

.coin-prompt-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 2px;
}

.coin-prompt-chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 248, 229, 0.72);
  color: rgba(103, 66, 24, 0.82);
  font-size: 12px;
  line-height: 1.4;
}

.coin-result {
  margin-top: 2px;
  text-align: center;
}

.coin-answer {
  margin: 0;
  font-size: 34px;
  font-family: Georgia, serif;
  line-height: 1.05;
}

.coin-caption,
.coin-reflection,
.coin-guidance {
  margin: 6px 0 0;
  line-height: 1.5;
}

.coin-reflection {
  color: var(--text-soft);
}

.coin-caption {
  font-size: 15px;
  font-weight: 700;
}

.coin-reflection:empty,
.coin-guidance:empty {
  display: none;
}

.share-card {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(255, 219, 120, 0.72), transparent 28%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(255, 236, 204, 0.92));
  box-shadow: 0 18px 36px rgba(157, 113, 39, 0.14);
}

.share-mascot {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 68px;
  height: 68px;
  object-fit: contain;
  pointer-events: none;
}

.share-qr-float {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 76px;
}

.share-mascot-qr {
  position: static;
  width: 60px;
  height: 60px;
  border-radius: 0 !important;
  background: transparent;
  padding: 0;
}

.share-qr-copy {
  margin: 0;
  font-size: 9px;
  line-height: 1.25;
  color: var(--text-soft);
  text-align: center;
}

.share-card-head {
  justify-content: flex-start;
  padding-right: 92px;
  min-height: 82px;
}

.share-card h3 {
  margin: 8px 0 0;
  font-size: 26px;
  font-family: Georgia, serif;
}

.share-home-button {
  min-height: 40px;
  padding: 0 14px;
  flex-shrink: 0;
}

.share-date {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

.share-summary {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
  color: var(--text);
}

.share-affirmation-card {
  margin-top: 8px;
  padding: 13px 15px;
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.88);
  box-shadow: 0 12px 24px rgba(170, 112, 39, 0.08);
}

.share-affirmation-label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.share-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.share-pills span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 248, 229, 0.92);
  font-size: 12px;
}

.share-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
  opacity: 0.92;
}

.share-lists > div {
  margin-top: 6px;
  padding: 12px 12px 10px;
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.62);
}

.share-lists h4 {
  margin: 0;
  font-size: 15px;
  font-family: Georgia, serif;
}

.share-lists ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--text-soft);
  line-height: 1.58;
  font-size: 13px;
}

.share-lists li + li {
  margin-top: 4px;
}

.share-note {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 232, 182, 0.85), rgba(255, 246, 228, 0.9));
  color: var(--text);
  line-height: 1.62;
}

.share-note-primary {
  font-size: 16px;
  font-weight: 700;
}

.share-note-label {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.share-note-text {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.56;
  color: var(--text);
}

.share-brand {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(140, 96, 35, 0.2);
}

.share-brand img {
  width: 50px;
  height: 50px;
  border-radius: 16px;
}

.share-entry-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5b939, #e99827);
  color: #fffdf8;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(201, 131, 26, 0.24);
}

.share-brand-name,
.brand-dock-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.share-brand-copy,
.share-brand-subcopy,
.brand-dock-tagline,
.brand-dock-subline {
  margin: 4px 0 0;
  line-height: 1.45;
  color: var(--text-soft);
}

.share-brand-subcopy {
  font-size: 12px;
}

.brand-dock {
  position: relative;
  width: 100%;
  margin-top: 10px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-radius: 22px;
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 20px 40px rgba(157, 113, 39, 0.16);
}

.brand-dock-main {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 8px;
  align-items: center;
}

.brand-dock-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.brand-dock-tagline {
  font-size: 11px;
}

.brand-dock-subline {
  font-size: 9px;
  line-height: 1.35;
}

.brand-dock-subline:empty {
  display: none;
}

.brand-dock-cta {
  border-radius: 999px;
  padding: 9px 12px;
  background: linear-gradient(135deg, #8a5a20 0%, #b87a35 100%);
  color: #fffaf3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(138, 90, 32, 0.2);
  white-space: nowrap;
}

.brand-dock-entry {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.9);
  padding: 4px;
  justify-self: center;
}

.brand-dock-benefits {
  display: none;
}

@media (max-height: 860px) {
  .app-shell {
    padding-top: 8px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .topbar {
    margin-bottom: 6px;
  }

  .topbar-tag,
  .eyebrow,
  .section-label,
  .share-kicker {
    font-size: 11px;
  }

  .hero-card,
  .coin-panel,
  .share-card,
  .fortune-loading-card {
    padding: 12px;
    border-radius: 24px;
  }

  .hero-otter img {
    width: min(34vw, 132px);
  }

  .hero-copy h1,
  .section-head h2 {
    font-size: 26px;
  }

  .support-copy {
    font-size: 12px;
  }

  .action-grid {
    gap: 8px;
    margin-top: 8px;
  }

  .action-card {
    padding: 12px;
  }

  .action-title {
    font-size: 16px;
  }

  .fortune-bubble,
  .fortune-guide {
    padding: 12px;
  }

  .fortune-guide {
    grid-template-columns: 76px 1fr;
    gap: 10px;
  }

  .fortune-tube {
    width: 146px;
    height: 184px;
  }

  .fortune-tube-stage {
    padding: 14px 14px 12px;
  }

  .fortune-loading-image {
    width: min(28vw, 110px);
  }

  .coin-stage {
    min-height: 160px;
  }

  .coin {
    width: min(38vw, 138px);
  }

  .coin-answer {
    font-size: 30px;
  }

  .coin-progress-tip {
    font-size: 15px;
    padding: 10px 12px;
  }

  .coin-prompt-chip {
    font-size: 11px;
    padding: 6px 9px;
  }

  .share-card-head {
    padding-right: 78px;
    min-height: 74px;
  }

  .share-mascot-qr {
    width: 54px;
    height: 54px;
  }

  .share-qr-copy {
    font-size: 9px;
  }

  .share-card h3 {
    font-size: 24px;
  }

  .share-note,
  .share-affirmation-card,
  .share-lists > div {
    padding: 10px 12px;
  }

  .share-note-text,
  .share-summary {
    font-size: 15px;
  }

  .share-lists ul {
    font-size: 12px;
    line-height: 1.5;
  }

  .share-brand {
    grid-template-columns: 46px 1fr auto;
    gap: 10px;
  }

  .share-brand img {
    width: 44px;
    height: 44px;
  }

  .share-entry-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .brand-dock {
    margin-top: 8px;
    padding: 7px 9px calc(7px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .app-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .brand-dock-cta {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 6px;
  }

  .brand-dock-icon {
    width: 40px;
    height: 40px;
  }

  .share-lists {
    grid-template-columns: 1fr;
  }

  .share-card-head {
    padding-right: 84px;
  }

  .section-head-share {
    align-items: center;
  }

  .section-head h2 {
    font-size: 30px;
  }

  .fortune-guide {
    grid-template-columns: 92px 1fr;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes tubeShake {
  0% {
    transform: rotate(-4deg) translateY(0);
  }

  25% {
    transform: rotate(3deg) translateY(-2px);
  }

  50% {
    transform: rotate(-2deg) translateY(1px);
  }

  75% {
    transform: rotate(4deg) translateY(-1px);
  }

  100% {
    transform: rotate(-3deg) translateY(0);
  }
}

@keyframes stickLift {
  0% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
  }

  100% {
    transform: translateX(-50%) translateY(-4px);
  }
}

@keyframes stickDrop {
  0% {
    transform: translateX(-50%) translateY(-6px) rotate(0deg);
    opacity: 1;
  }

  60% {
    transform: translateX(-42%) translateY(92px) rotate(7deg);
    opacity: 1;
  }

  100% {
    transform: translateX(-24%) translateY(144px) rotate(12deg);
    opacity: 0;
  }
}

@keyframes drawCardReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, 84px) scale(0.72) rotate(-9deg);
  }

  48% {
    opacity: 1;
    transform: translate(-50%, -16px) scale(1.12) rotate(5deg);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -2px) scale(1) rotate(0deg);
  }
}

@keyframes tubeNudge {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.97);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes coinLiftSpin {
  0% {
    transform: translateY(0) rotateY(0deg) rotateX(0deg) scale(1);
  }

  50% {
    transform: translateY(-18px) rotateY(360deg) rotateX(16deg) scale(1.04);
  }

  100% {
    transform: translateY(-8px) rotateY(720deg) rotateX(0deg) scale(1.02);
  }
}

@keyframes coinNudge {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.94);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes coinDrop {
  0% {
    transform: translateY(-8px) rotateY(720deg) rotateX(0deg) scale(1.02);
  }

  60% {
    transform: translateY(16px) rotateY(1080deg) rotateX(8deg) scale(0.98);
  }

  100% {
    transform: translateY(0) rotateY(1260deg) rotateX(0deg) scale(1);
  }
}
