/* ============================================================
   CITY INDEX · 2027 城市机会匹配
   视觉语言：深蓝黑数据简报 / 青绿机会色 / 琥珀点缀 / 雷达坐标
   与情绪类测试的墨紫暗黑风刻意拉开距离
   ============================================================ */
:root {
  --bg: #0b1220;
  --surface: #131d2e;
  --surface-2: #19263b;
  --line: rgba(140, 180, 205, 0.16);
  --line-strong: rgba(61, 220, 151, 0.4);
  --txt: #e8f1f5;
  --muted: #8ca0b3;
  --muted-2: #5f7488;
  --accent: #3ddc97;
  --accent-2: #ffb454;
  --cool: #5aa9e6;
  --accent-soft: rgba(61, 220, 151, 0.12);
  --danger: #ff7a85;
  --ok: #3ddc97;
  --radius: 14px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* 数据网格背景 + 冷色环境光 */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(90, 169, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 169, 230, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.35) 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.35) 70%, transparent);
}
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 380px at 12% -8%, rgba(61, 220, 151, 0.16), transparent 70%),
    radial-gradient(520px 420px at 106% 14%, rgba(90, 169, 230, 0.16), transparent 70%),
    radial-gradient(620px 460px at 50% 112%, rgba(255, 180, 84, 0.08), transparent 70%);
}

.app {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px;
  min-height: 100vh; min-height: 100dvh;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 22px calc(38px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
}

/* ---------- 屏幕切换 ---------- */
.screen { display: none; flex: 1; flex-direction: column; animation: fadeUp .42s cubic-bezier(.2,.8,.2,1) both; }
.screen.is-active { display: flex; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 通用 ---------- */
.hl { color: var(--accent); }
.muted { color: var(--muted); }
.fineprint { color: var(--muted-2); font-size: 11px; text-align: center; margin: 18px 0 0; letter-spacing: .03em; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.btn {
  appearance: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 800; border-radius: 11px;
  padding: 15px 18px; transition: transform .16s, filter .16s, opacity .16s;
  letter-spacing: .02em;
}
.btn:active { transform: scale(.975); }
.btn-primary {
  color: #07150f; background: linear-gradient(135deg, #7cf0bd, #3ddc97 55%, #1fb87c);
  box-shadow: 0 8px 22px rgba(61, 220, 151, .28), inset 0 1px 0 rgba(255,255,255,.4);
  white-space: nowrap;
}
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-lg { width: 100%; padding: 18px; font-size: 17px; margin-top: 22px; }
.btn-ghost { background: rgba(140,180,205,.08); color: var(--txt); border: 1px solid var(--line); }
.arrow { margin-left: 6px; }

/* ---------- 门禁：雷达坐标 ---------- */
.gate-top { padding-top: 12px; }
.gate-hero { position: relative; width: 148px; height: 148px; margin: 0 auto 16px; }
.radar-ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid rgba(61, 220, 151, 0.22);
}
.radar-ring.r1 { width: 144px; height: 144px; border-color: rgba(61,220,151,.14); }
.radar-ring.r2 { width: 100px; height: 100px; border-color: rgba(61,220,151,.26); }
.radar-ring.r3 { width: 54px;  height: 54px;  border-color: rgba(61,220,151,.4); box-shadow: 0 0 22px rgba(61,220,151,.12) inset; }
.radar-cross { position: absolute; background: rgba(90, 169, 230, 0.18); }
.radar-cross.x { left: 0; right: 0; top: 50%; height: 1px; }
.radar-cross.y { top: 0; bottom: 0; left: 50%; width: 1px; }
.radar-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.radar-dot.d1 { left: 26px; top: 44px; }
.radar-dot.d2 { right: 34px; top: 74px; background: var(--cool); box-shadow: 0 0 12px var(--cool); width: 6px; height: 6px; }
.radar-dot.d3 { left: 62px; bottom: 26px; width: 5px; height: 5px; }
.radar-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 24px; color: var(--accent); line-height: 1;
  animation: corePulse 3s ease-in-out infinite;
}
@keyframes corePulse { 0%,100% { opacity: .85; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.12); } }
.brandline { margin-top: 10px; font-size: 10px; letter-spacing: .26em; color: var(--muted); text-align: center; font-family: var(--mono); }
.hero-title { font-size: 48px; line-height: 1.1; margin: 12px 0 0; letter-spacing: -.03em; font-weight: 900; text-align: center; }
.hero-title span { color: var(--accent); }
.hero-sub { font-size: 15px; font-weight: 600; margin: 12px 0 0; text-align: center; color: var(--muted); }
.hero-sub .hl { color: var(--accent-2); }
.hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; max-width: 320px; margin: 18px auto 0; }
.hero-points span {
  font-size: 11px; color: var(--muted); background: rgba(140,180,205,.06);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; text-align: left;
}
.hero-points b { font-family: var(--mono); color: var(--accent); margin-right: 5px; font-size: 10px; }
.hero-desc { color: var(--muted); font-size: 13px; margin: 16px 0 0; text-align: center; line-height: 1.75; }

.panel {
  margin-top: 30px; position: relative;
  background: rgba(19, 29, 46, 0.92); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 16px 40px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.04);
}
.panel::before { content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 70%); }
.panel-label { display: block; font-size: 11px; font-weight: 800; color: var(--muted); margin-bottom: 12px; letter-spacing: .1em; font-family: var(--mono); }
.input-row { display: flex; gap: 10px; }
.code-input {
  flex: 1; min-width: 0; height: 52px; padding: 0 15px;
  background: rgba(6, 12, 22, 0.7); color: var(--txt); border: 1px solid var(--line);
  border-radius: 10px; font-family: var(--mono); font-size: 15px; letter-spacing: .12em;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.code-input::placeholder { color: var(--muted-2); letter-spacing: .02em; }
.code-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-row .btn { height: 52px; padding: 0 16px; }
.code-msg { min-height: 20px; margin: 12px 0 0; font-size: 12px; line-height: 1.5; }
.code-msg.error { color: var(--danger); }
.code-msg.ok { color: var(--ok); }

.demo-box { margin-top: 16px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.demo-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: transparent; color: var(--muted); border: 0; cursor: pointer;
  padding: 12px 15px; font-family: inherit; font-size: 12px;
}
.demo-toggle .chev { transition: transform .2s; }
.demo-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.demo-list { padding: 0 15px 13px; display: grid; gap: 8px; }
.demo-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.demo-code {
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent);
  background: var(--accent-soft); padding: 5px 10px; border-radius: 7px; cursor: pointer;
}
.demo-note { font-size: 11px; color: var(--muted-2); }

/* ---------- 引导页 ---------- */
.section-eyebrow { color: var(--accent); font-size: 10px; letter-spacing: .2em; font-weight: 800; margin-top: 12px; font-family: var(--mono); }
.section-title { font-size: 32px; line-height: 1.28; margin: 12px 0 0; letter-spacing: -.02em; font-weight: 900; }
.section-lead { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

.rarity-card { margin-top: 26px; padding: 18px 16px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rarity-card-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; margin-bottom: 14px; }
.rarity-card-head .muted { font-weight: 400; font-size: 11px; }
.rarity-list { display: grid; gap: 4px; }
.rarity-row { display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.rarity-row:first-child { border-top: 0; }
.rarity-glyph { font-size: 18px; text-align: center; }
.rarity-name { font-weight: 600; }
.rarity-tag { font-size: 10px; padding: 3px 7px; border-radius: 6px; border: 1px solid currentColor; opacity: .9; }
.rarity-pct { color: var(--muted-2); font-family: var(--mono); font-size: 12px; min-width: 34px; text-align: right; }
.lock { color: var(--muted-2); font-size: 11px; }
.meta-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 22px; }
.meta-row span { flex: 1; text-align: center; background: rgba(140,180,205,.06); border: 1px solid var(--line); border-radius: 10px; padding: 11px 4px; font-size: 11px; color: var(--muted); }
.meta-row b { color: var(--txt); font-family: var(--mono); font-size: 16px; margin-right: 3px; }

/* ---------- 答题 ---------- */
.quiz-top { display: flex; align-items: center; gap: 14px; padding-top: 6px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(140,180,205,.08);
  border: 1px solid var(--line); color: var(--txt); cursor: pointer; font-size: 18px; line-height: 1;
}
.icon-btn:disabled { opacity: .3; cursor: default; }
.quiz-counter { font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--accent); }
.quiz-badge { margin-left: auto; font-size: 10px; color: var(--muted); border: 1px solid var(--line); padding: 4px 9px; border-radius: 6px; font-family: var(--mono); }
.progress { height: 4px; background: rgba(140,180,205,.12); border-radius: 4px; margin: 20px 0 38px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--cool), var(--accent)); border-radius: 4px; transition: width .35s cubic-bezier(.2,.8,.2,1); }
.quiz-body { flex: 1; }
.q-index { color: var(--accent-2); font-family: var(--mono); font-size: 11px; letter-spacing: .18em; font-weight: 700; }
.q-text { font-size: 23px; line-height: 1.5; margin: 14px 0 30px; font-weight: 800; letter-spacing: -.01em; }
.options { display: grid; gap: 11px; }
.option {
  width: 100%; display: flex; gap: 14px; align-items: center; text-align: left;
  padding: 16px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--txt);
  font-family: inherit; font-size: 14px; line-height: 1.5;
  transition: border-color .18s, background .18s, transform .18s;
  animation: fadeUp .35s both;
}
.option:active { transform: scale(.985); }
.option:hover { border-color: var(--line-strong); background: var(--surface-2); }
.option.is-picked { border-color: var(--accent); background: var(--accent-soft); }
.opt-key {
  flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(140,180,205,.1); color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 800;
}
.option.is-picked .opt-key { background: var(--accent); color: #07150f; }
.quiz-hint { text-align: center; color: var(--muted-2); font-size: 11px; margin: 26px 0 0; }

/* 分页题目 */
.q-block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.q-block:first-child { padding-top: 0; }
.q-block .qb-opt { animation: optIn .4s both; }
.q-block .qb-opt:nth-child(1){animation-delay:.03s}.q-block .qb-opt:nth-child(2){animation-delay:.08s}.q-block .qb-opt:nth-child(3){animation-delay:.13s}.q-block .qb-opt:nth-child(4){animation-delay:.18s}
@keyframes optIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.qb-title { font-size: 14px; font-weight: 700; line-height: 1.55; margin-bottom: 12px; }
.qb-opts { display: grid; gap: 9px; }
.qb-opt {
  display: flex; align-items: center; gap: 12px; padding: 14px 15px;
  border-radius: 11px; border: 1px solid var(--line); background: rgba(140,180,205,.05);
  color: var(--muted); font-size: 14px; font-family: inherit; cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.qb-opt:hover { border-color: var(--line-strong); }
.qb-opt:active { transform: scale(.985); }
.qb-opt.picked { border-color: var(--accent); background: var(--accent-soft); color: var(--txt); font-weight: 700; }
.qb-key { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 7px; background: rgba(140,180,205,.12); font-family: var(--mono); font-size: 12px; font-weight: 800; }
.qb-opt.picked .qb-key { background: var(--accent); color: #07150f; }
.q-nav { display: flex; gap: 10px; margin-top: 26px; padding-top: 20px; }
.q-nav .btn { flex: 1; font-size: 14px; }

/* 模式切换 / 产品卡 */
.mode-bar { display: flex; gap: 8px; margin: 18px 0 16px; padding: 4px; background: rgba(140,180,205,.05); border: 1px solid var(--line); border-radius: 12px; }
.mode-btn {
  flex: 1; appearance: none; border: 0; cursor: pointer; font-family: inherit;
  padding: 11px 8px; border-radius: 8px; font-size: 13px; font-weight: 700;
  background: transparent; color: var(--muted); transition: background .2s, color .2s;
}
.mode-btn.active { background: linear-gradient(135deg, #7cf0bd, #3ddc97); color: #07150f; box-shadow: 0 4px 14px rgba(61,220,151,.24); }
.product-list { display: grid; gap: 12px; margin-top: 24px; }
.product-card {
  display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 14px;
  width: 100%; text-align: left; cursor: pointer; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  color: var(--txt); font-family: inherit; transition: border-color .18s, background .18s, transform .18s;
  animation: fadeUp .35s both;
}
.product-card:active { transform: scale(.985); }
.product-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.pc-glyph { width: 50px; height: 50px; border-radius: 11px; display: grid; place-items: center; font-size: 26px; border: 1px solid currentColor; background: rgba(61,220,151,.06); }
.pc-name { display: block; font-size: 15px; font-weight: 800; line-height: 1.4; }
.pc-desc { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.pc-meta { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted-2); margin-top: 6px; }
.pc-badge { font-size: 10px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; border: 1px solid currentColor; font-weight: 700; }
.pc-arrow { color: var(--muted-2); font-size: 18px; }

/* ---------- 结果页 ---------- */
.result-eyebrow { text-align: center; color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: .2em; font-weight: 800; margin-top: 6px; }
.result-verdict { text-align: center; font-size: 21px; line-height: 1.5; font-weight: 800; margin: 12px 0 26px; }

.share-card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 26px 22px 22px;
  background: linear-gradient(155deg, #101c2e 0%, #12253a 45%, #14203a 100%);
  border: 1px solid rgba(61, 220, 151, 0.32);
  box-shadow: 0 18px 50px rgba(0,0,0,.35), inset 0 0 0 1px rgba(61,220,151,.1);
}
.share-card::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  top: -150px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(61,220,151,.16), transparent 70%); pointer-events: none;
}
.share-card::after {
  content: ""; position: absolute; width: 12px; height: 12px; border-top: 2px solid var(--accent-2); border-left: 2px solid var(--accent-2);
  bottom: 14px; right: 14px; opacity: .6; pointer-events: none;
}
.sc-head { display: flex; align-items: center; gap: 14px; position: relative; }
.sc-glyph {
  flex: none; width: 68px; height: 68px; border-radius: 12px; display: grid; place-items: center;
  font-size: 30px; background: var(--accent-soft); border: 1px solid var(--accent);
  box-shadow: 0 6px 18px rgba(0,0,0,.3); overflow: hidden;
}
.sc-glyph img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes avatarFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.sc-name { font-size: 27px; font-weight: 900; line-height: 1.2; }
.sc-hotel { color: var(--muted); font-size: 12px; margin-top: 4px; }
.sc-rarity {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--accent-2);
  border: 1px solid var(--accent-2); border-radius: 6px; padding: 4px 10px;
}
.sc-quote {
  position: relative; margin: 22px 0 20px; padding: 18px 18px 18px 40px; border-radius: 12px;
  background: rgba(90,169,230,.07); border: 1px solid rgba(90,169,230,.22);
  font-size: 16px; font-weight: 600; line-height: 1.6;
}
.sc-quote::before { content: '"'; position: absolute; left: 14px; top: 8px; font-size: 40px; font-weight: 800; color: var(--cool); opacity: .6; line-height: 1; }
.sc-mid { display: flex; align-items: center; gap: 20px; position: relative; }
.ring { flex: none; width: 104px; height: 104px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(140,180,205,.14); stroke-width: 8; }
.ring-bar { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1); }
.ring-num { position: absolute; top: 0; left: 0; width: 104px; height: 104px; text-align: center; font-family: var(--mono); font-size: 27px; font-weight: 800; color: var(--accent); line-height: 104px; }
.ring-label { text-align: center; margin-top: -12px; font-size: 10px; color: var(--muted-2); width: 104px; flex: none; }
.sc-stats { flex: 1; }
.sc-stats-label { font-size: 11px; color: var(--muted-2); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: 11px; padding: 5px 10px; border-radius: 6px; background: rgba(140,180,205,.1); border: 1px solid var(--line); color: var(--txt); }
.sc-contrast { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); position: relative; }
.sc-contrast b { color: var(--txt); }

.city-match-big { font-family: var(--mono); }

.rank-block { margin-top: 26px; }
.rank-title { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 12px; display: flex; justify-content: space-between; }
.rank-row { display: grid; grid-template-columns: 22px 1fr 96px; align-items: center; gap: 10px; padding: 8px 0; font-size: 12px; border-bottom: 1px solid var(--line); }
.rank-row.me .rank-name { color: var(--accent); font-weight: 800; }
.rank-no { color: var(--muted-2); font-family: var(--mono); }
.rank-name { display: flex; gap: 7px; align-items: center; }
.rank-bar { height: 5px; border-radius: 5px; background: rgba(140,180,205,.13); overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--muted-2); border-radius: 5px; }
.rank-row.me .rank-bar i { background: var(--accent); }
.rank-pct { text-align: right; color: var(--muted-2); font-family: var(--mono); }

.state-bars { display: grid; gap: 14px; }
.state-row { display: grid; gap: 6px; }
.state-row-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.state-row-head b { font-weight: 700; }
.state-row-head .sv { font-family: var(--mono); font-size: 14px; font-weight: 800; }
.state-row-head .sn { font-size: 10px; padding: 2px 7px; border-radius: 6px; margin-left: 6px; }
.state-track { height: 7px; border-radius: 7px; background: rgba(140,180,205,.12); overflow: hidden; }
.state-fill { height: 100%; border-radius: 7px; width: 0; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.state-explain { font-size: 11px; color: var(--muted); line-height: 1.55; }

.radar-wrap { display: grid; place-items: center; margin: 8px 0; }
.radar-wrap img { width: 100%; max-width: 340px; height: auto; display: block; }
.radar-legend { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.radar-legend span { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }

.axis-result { display: grid; gap: 12px; }
.axis-row { padding: 14px 16px; border-radius: 11px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.axis-row-title { font-size: 12px; color: var(--muted); }
.axis-row-val { font-size: 20px; font-weight: 800; margin-top: 4px; }
.axis-row-track { height: 6px; border-radius: 6px; background: rgba(140,180,205,.12); margin-top: 10px; overflow: hidden; }
.axis-row-fill { height: 100%; border-radius: 6px; }

/* 彩蛋 */
.egg-box { margin-top: 22px; }
.egg-title { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.egg-list { display: grid; gap: 10px; }
.egg { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 11px; background: rgba(61,220,151,.02); }
.egg.unlocked { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.egg-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(140,180,205,.09); font-size: 16px; }
.egg.unlocked .egg-icon { background: var(--accent); color: #07150f; }
.egg-name { font-size: 13px; font-weight: 700; }
.egg-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.egg-action { margin-left: auto; flex: none; font-size: 11px; color: var(--accent); cursor: pointer; border: 1px solid var(--accent); border-radius: 8px; padding: 5px 10px; background: transparent; font-family: inherit; }

.result-card-preview { margin-top: 22px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); }
.result-card-preview img { width: 100%; display: block; }
.disclaimer-strip { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: rgba(140,180,205,.06); border: 1px solid var(--line); font-size: 11px; color: var(--muted-2); line-height: 1.6; }

.share-text-wrap { margin-top: 24px; }
.share-text-wrap label { display: block; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.share-textarea {
  width: 100%; min-height: 168px; resize: vertical; padding: 14px;
  background: rgba(6,12,22,.6); color: var(--txt); border: 1px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: 12px; line-height: 1.7; outline: none;
}
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.result-actions .btn { font-size: 13px; padding: 14px 10px; }
.result-actions .wide { grid-column: 1 / -1; }
.restart-btn { width: 100%; margin-top: 18px; background: transparent; border: 0; color: var(--muted-2); font-family: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 50; left: 50%; bottom: 40px; transform: translate(-50%, 20px);
  background: rgba(19,29,46,.98); border: 1px solid var(--line-strong); color: var(--txt);
  padding: 11px 18px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; box-shadow: 0 12px 34px rgba(0,0,0,.4);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 大屏微调 ---------- */
@media (min-width: 520px) {
  .app { padding-top: 50px; }
  .hero-title { font-size: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
