:root {
  --bg: #1A1410;
  --bg-2: #241B14;
  --card: #2A2218;
  --card-2: #34291D;
  --amber: #C8A35A;
  --amber-2: #D4A574;
  --copper: #B8860B;
  --brown: #8B4513;
  --green: #2D5A3D;
  --text: #F0E6D3;
  --muted: rgba(240,230,211,.68);
  --faint: rgba(240,230,211,.22);
  --shadow: 0 24px 80px rgba(0,0,0,.42);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(200,163,90,.18), transparent 34%),
    radial-gradient(circle at 15% 18%, rgba(45,90,61,.2), transparent 28%),
    linear-gradient(180deg, #1A1410 0%, #120E0B 100%);
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.app {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 18px calc(28px + env(safe-area-inset-bottom));
  position: relative;
}
.screen { display: none; min-height: 100vh; animation: rise .36s ease both; }
.screen.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
#screen-start { position: relative; }
#screen-start .hero { padding-bottom: 56px; }
.icp-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(14px + env(safe-area-inset-bottom));
  padding: 0 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(240,230,211,.42);
}
.icp-footer a {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease;
}
.icp-footer a:hover { color: rgba(200,163,90,.86); }
.eyebrow { color: var(--amber); letter-spacing: .16em; font-size: 12px; text-transform: uppercase; }
.logo-mark { font-size: 15px; font-weight: 800; letter-spacing: .12em; color: var(--amber); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", "Noto Serif SC", serif; margin: 0; }
h1 { font-size: clamp(48px, 14vw, 74px); line-height: 1.12; letter-spacing: -.05em; }
.hero-sub { font-size: 18px; line-height: 1.72; color: var(--muted); margin: 0; }
.notice { border-left: 3px solid var(--amber); padding: 10px 12px; color: var(--muted); background: rgba(200,163,90,.07); border-radius: 0 14px 14px 0; }
.btn {
  border: 0;
  min-height: 50px;
  border-radius: 999px;
  padding: 14px 18px;
  color: #1A1410;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(200,163,90,.18);
  cursor: pointer;
}
.btn.secondary { color: var(--text); background: rgba(240,230,211,.08); box-shadow: none; border: 1px solid var(--faint); }
.btn.ghost { color: var(--amber); background: transparent; box-shadow: none; border: 1px solid rgba(200,163,90,.32); }
.stack { display: grid; gap: 12px; }
.sig-mark { font-family: ui-sans-serif, system-ui, -apple-system, sans-serif; font-size: 11px; font-weight: 400; letter-spacing: .16em; color: rgba(240,230,211,.28); vertical-align: baseline; margin-left: 12px; }
.sig-mark sup { font-size: 7px; color: rgba(240,230,211,.35); margin-left: 1px; }
.topbar { position: sticky; top: 0; z-index: 10; padding: 14px 0 12px; backdrop-filter: blur(14px); background: linear-gradient(180deg, rgba(26,20,16,.92), rgba(26,20,16,.58)); }
.progress-row { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.progress { flex: 1; height: 8px; border-radius: 999px; background: rgba(240,230,211,.12); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--brown)); transition: width .28s ease; }
.quiz-wrap { min-height: calc(100vh - 84px); display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 20px 0 32px; }
.question-meta { display:flex; justify-content: space-between; align-items: center; color: var(--amber); font-size: 12px; letter-spacing:.08em; text-transform: uppercase; }
.question { font-size: clamp(25px, 7vw, 34px); line-height: 1.25; letter-spacing: -.04em; min-height: 3.9em; }
.anchor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.anchor-card {
  border: 1px solid rgba(240,230,211,.14);
  background: linear-gradient(180deg, rgba(42,34,24,.96), rgba(36,27,20,.96));
  border-radius: 22px;
  padding: 14px;
  min-height: 158px;
  box-shadow: 0 14px 44px rgba(0,0,0,.22);
  display: grid;
  align-content: start;
  position: relative;
  overflow: hidden;
}
.anchor-card::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 50% 0, rgba(200,163,90,.12), transparent 38%); pointer-events:none; }
.anchor-label { color: var(--amber); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; position:relative; }
.anchor-text { position:relative; line-height: 1.58; font-size: 15px; }
.choice-panel { padding: 10px 2px 8px; }
.choice-hint { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.cup-scale-wrap { position: relative; padding: 2px 0 0; }
.cup-scale { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: center; z-index: 1; }
.cup-btn {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(240,230,211,.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(240,230,211,.10), transparent 38%),
    linear-gradient(180deg, rgba(240,230,211,.05), rgba(240,230,211,.02)),
    rgba(240,230,211,.04);
  display: grid;
  place-items: center;
  justify-self: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 24px rgba(0,0,0,.16);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.cup-btn:hover { border-color: rgba(200,163,90,.28); }
.cup-btn:active { transform: scale(.94); }
.cup-btn.selected {
  border-color: rgba(200,163,90,.96);
  background:
    radial-gradient(circle at 50% 35%, rgba(240,230,211,.12), transparent 36%),
    rgba(200,163,90,.14);
  box-shadow:
    0 0 0 1px rgba(200,163,90,.55),
    0 0 0 5px rgba(200,163,90,.08),
    0 12px 26px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.cup {
  display:block;
  border-radius:50%;
  background: radial-gradient(circle at 35% 30%, #F1D89A, var(--amber) 42%, var(--brown) 100%);
  box-shadow: 0 0 18px rgba(200,163,90,.2);
  opacity:.92;
}
.cup.left-strong, .cup.right-strong { width:18px; height:18px; }
.cup.left-soft, .cup.right-soft { width:12px; height:12px; opacity:.78; }
.cup.neutral { width:7px; height:7px; opacity:.58; background: rgba(240,230,211,.6); box-shadow:none; }
.scale-labels { display:grid; grid-template-columns:1fr 1fr 1fr; margin-top:8px; color:rgba(240,230,211,.52); font-size:11px; }
.scale-labels span:nth-child(2) { text-align:center; }
.scale-labels span:nth-child(3) { text-align:right; }
.choice-caption { display:none; }
.nav-row { display: flex; gap: 10px; margin-top: 8px; }
.nav-row .btn { flex: 1; }
.loading { min-height: 100vh; display:grid; place-items:center; text-align:center; gap:18px; }
.shaker { width: 70px; height: 96px; margin: 0 auto 16px; border: 2px solid var(--amber); border-radius: 18px 18px 26px 26px; transform-origin: center bottom; animation: shake .72s ease-in-out infinite; position:relative; }
.shaker::before { content:""; position:absolute; top:-18px; left:14px; right:14px; height:18px; border:2px solid var(--amber); border-bottom:0; border-radius:12px 12px 0 0; }
@keyframes shake { 0%,100%{ transform: rotate(-6deg) translateX(-2px);} 50%{ transform: rotate(7deg) translateX(3px);} }
.result-hero { padding: 26px 0 18px; min-height: 92vh; display: flex; flex-direction: column; justify-content:center; gap: 14px; }
.result-card { border:1px solid rgba(240,230,211,.13); background: linear-gradient(180deg, rgba(42,34,24,.96), rgba(26,20,16,.98)); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.result-title { display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; margin-top: 2px; }
.result-name { font-size: clamp(42px, 12vw, 62px); line-height: 1; letter-spacing: -.06em; }
.code-pill {
  display:inline-flex;
  align-items:center;
  min-height: 32px;
  border:1px solid rgba(200,163,90,.34);
  border-radius:999px;
  padding:7px 11px 6px;
  color:var(--amber);
  background: linear-gradient(180deg, rgba(200,163,90,.09), rgba(200,163,90,.025));
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight:800;
  letter-spacing:.16em;
  font-size:13px;
  line-height:1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.tagline { font-size: 18px; line-height: 1.55; margin: 8px 0 0; color: var(--text); }
.drink-pair { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top: 14px; }
.drink-tag {
  border:1px solid rgba(200,163,90,.22);
  border-radius:18px;
  padding:12px;
  background:rgba(200,163,90,.055);
  min-width:0;
}
.drink-kind { color:rgba(240,230,211,.50); font-size:11px; letter-spacing:.12em; text-transform:uppercase; margin-bottom:7px; }
.drink-cn { color:var(--text); font-weight:800; line-height:1.25; font-size:15px; }
.drink-en { color:var(--amber); line-height:1.25; font-size:12px; margin-top:5px; word-break:break-word; }
.drink-reason { color:rgba(240,230,211,.58); font-size:12px; line-height:1.52; margin-top:7px; }
.bars { display:grid; gap:10px; margin-top: 18px; }
.bar-line { display:grid; gap:6px; }
.bar-head { display:flex; justify-content:space-between; color:var(--muted); font-size:13px; }
.bar-desc { color:rgba(200,163,90,.55); font-size:11px; margin:-1px 0 5px; }
.bar-track { height: 10px; border-radius:999px; background:rgba(240,230,211,.11); overflow:hidden; }
.bar-track i { display:block; height:100%; width:50%; border-radius:inherit; background:linear-gradient(90deg,var(--amber),var(--brown)); }
.actions { display:grid; grid-template-columns:1fr; gap:10px; margin-top: 16px; }
.detail-section { padding: 28px 0; display:grid; gap:14px; }
.detail-block {
  border:1px solid rgba(240,230,211,.105);
  border-radius:22px;
  padding:17px 17px 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(200,163,90,.08), transparent 42%),
    linear-gradient(180deg, rgba(240,230,211,.052), rgba(240,230,211,.026));
  position:relative;
  overflow:hidden;
}
.detail-block::before {
  content:"";
  position:absolute;
  left:0; top:18px; bottom:18px;
  width:3px;
  border-radius:999px;
  background:linear-gradient(180deg, var(--amber), rgba(139,69,19,.72));
  opacity:.9;
}
.detail-block h3 { display:grid; gap:4px; margin:0 0 9px; }
.detail-kicker { color:rgba(200,163,90,.66); font-size:10px; letter-spacing:.18em; text-transform:uppercase; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.detail-title { color:var(--text); font-size:18px; line-height:1.2; font-family: Georgia, "Times New Roman", "Noto Serif SC", serif; letter-spacing:-.02em; }
.detail-block p { margin:0; color:var(--muted); line-height:1.72; }
details { border:1px solid rgba(240,230,211,.12); border-radius:20px; padding:14px; background:rgba(240,230,211,.04); }
summary { cursor:pointer; color:var(--amber); font-weight:800; }
.all-types { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px; }
.type-chip { border:1px solid rgba(240,230,211,.12); border-radius:14px; padding:10px; background:rgba(0,0,0,.12); }
.type-chip b { display:block; color:var(--text); font-size:13px; margin-bottom:6px; }
.type-drink { color:var(--muted); font-size:12px; line-height:1.4; margin-top:5px; }
.type-drink strong { display:block; color:rgba(240,230,211,.78); font-weight:700; }
.type-drink em { display:block; color:rgba(200,163,90,.72); font-style:normal; font-size:11px; margin-top:1px; }
.footer-note { color:rgba(240,230,211,.5); text-align:center; font-size:12px; padding: 24px 0 0; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(20px); opacity:0; pointer-events:none; background:#F0E6D3; color:#1A1410; padding:10px 14px; border-radius:999px; box-shadow:var(--shadow); z-index:50; transition:.2s ease; white-space:nowrap; }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.share-preview { display:none; margin-top: 14px; }
.share-preview.show { display:block; }
.share-preview img { width:100%; border-radius:20px; border:1px solid rgba(240,230,211,.14); }
/* —— 今天喝什么 Drink Picker —— */
.dp-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
}
.dp-hero h2 { font-size: clamp(30px, 8vw, 42px); letter-spacing: -.03em; }
.dp-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.dp-col { display: flex; flex-direction: column; }
.dp-col-title {
  text-align: center;
  color: var(--amber);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-weight: 400;
}
.dp-card {
  border: 1px solid rgba(240,230,211,.14);
  background: linear-gradient(180deg, rgba(42,34,24,.96), rgba(36,27,20,.96));
  border-radius: 22px;
  padding: 14px 10px;
  height: 210px;
  box-shadow: 0 14px 44px rgba(0,0,0,.22);
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
}
.dp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0, rgba(200,163,90,.12), transparent 38%);
  pointer-events: none;
}
.dp-rolling {
  min-height: 48px;
  display: grid;
  place-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: filter .18s ease, opacity .18s ease;
}
.dp-rolling.rolling {
  filter: blur(2px);
  opacity: .6;
}
.dp-rolling.settled {
  animation: dp-settle .3s ease;
}
@keyframes dp-settle {
  0% { transform: scale(.96); }
  60% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.dp-name-cn {
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}
.dp-name-cn.wildcard {
  color: var(--amber);
  font-style: italic;
}
.dp-name-en {
  color: var(--amber);
  font-size: 11px;
  line-height: 1.3;
  margin-top: 4px;
  word-break: break-word;
  position: relative;
  z-index: 1;
}
.dp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .28s ease .15s, transform .28s ease .15s;
  position: relative;
  z-index: 1;
}
.dp-tags.visible { opacity: 1; transform: translateY(0); }
.dp-tag {
  display: inline-block;
  font-size: 10px;
  color: var(--amber);
  background: rgba(200,163,90,.10);
  border: 1px solid rgba(200,163,90,.20);
  border-radius: 999px;
  padding: 2px 7px;
  letter-spacing: .04em;
}
.dp-taste, .dp-recipe {
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .28s ease .15s, transform .28s ease .15s;
  position: relative;
  z-index: 1;
}
.dp-taste.visible, .dp-recipe.visible { opacity: 1; transform: translateY(0); }
.dp-taste {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 10px;
}
.dp-recipe {
  color: rgba(240,230,211,.48);
  font-size: 11px;
  line-height: 1.45;
  margin-top: 6px;
}
.dp-dice-wrap {
  position: relative;
  margin-top: 8px;
  min-height: 44px;
}
.dp-dice {
  width: 100%;
  min-height: 40px;
  padding: 6px;
  font-size: 18px;
  line-height: 1;
  transition: transform .15s ease, opacity .3s ease;
}
.dp-dice:active { transform: scale(.92); }
.dp-dice.shaking { animation: dice-shake .5s ease; }
.dp-dice.gone {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
}
@keyframes dice-shake {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-12deg); }
  30% { transform: rotate(10deg); }
  45% { transform: rotate(-8deg); }
  60% { transform: rotate(6deg); }
  75% { transform: rotate(-3deg); }
  90% { transform: rotate(1deg); }
}
.dp-dice-hint {
  text-align: center;
  color: var(--amber);
  font-size: 13px;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  padding: 8px 0 4px;
}
.dp-dice-hint.show { opacity: .72; }
#dp-back-btn { margin-top: auto; }

@media (min-width: 520px) { .actions { grid-template-columns:1fr 1fr; } .hero { padding-top: 30px; } .dp-columns { gap: 14px; } .dp-card { padding: 18px 14px; height: 230px; } }
