/* ===== NumPlay · minimal dark · v20260927b ===== */
:root {
  --bg: #0F0F12;
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --text: #EDEAE2;
  --dim: #8E897B;
  --gold: #D4A853;
  --gold-soft: rgba(212, 168, 83, 0.12);
  --gold-line: rgba(212, 168, 83, 0.35);
  --dark: #1A150A;
  /* legacy aliases kept neutral so any stray reference stays on-palette */
  --pink: #D4A853;
  --green: #D4A853;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}
.app { height: 100%; height: 100dvh; position: relative; }

/* Screen transitions — quiet fade only */
.screen {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: none; flex-direction: column;
  padding: 0 22px calc(22px + env(safe-area-inset-bottom));
  overflow: hidden;
}
.screen.active { display: flex; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Top bar ===== */
.bar { display: flex; align-items: center; gap: 12px; padding: calc(18px + env(safe-area-inset-top)) 0 18px; }
.btn-back {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; flex: none;
}
.btn-back:active { transform: scale(.92); }
.bar-title { font-size: 17px; font-weight: 600; letter-spacing: .08em; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.bar-badge { font-size: 13px; color: var(--dim); white-space: nowrap; }

/* ===== Home ===== */
#screen-home { justify-content: center; align-items: center; text-align: center; }
.home-inner { display: flex; flex-direction: column; align-items: center; gap: 0; }
.logo-box { margin-bottom: 8vh; }
.logo-dice { font-size: clamp(56px, 20vw, 96px); cursor: pointer; line-height: 1; }
.logo-title {
  font-size: clamp(38px, 12vw, 58px); font-weight: 700; letter-spacing: .1em; margin-top: 14px;
  color: var(--gold);
}
.logo-title span { display: block; font-size: .45em; letter-spacing: .5em; margin-top: 6px; color: var(--dim); }
.logo-sub { color: var(--dim); letter-spacing: .3em; font-size: 13px; margin-top: 16px; }
.home-hint { color: var(--dim); line-height: 1.9; font-size: 15px; margin-bottom: 5vh; }

/* Main button — solid gold, no gradient, no glow */
.btn-main {
  width: min(78vw, 320px); height: 60px; border: none; border-radius: 999px;
  background: var(--gold);
  color: var(--dark); font-size: 22px; font-weight: 700; letter-spacing: .35em; text-indent: .35em;
  cursor: pointer; transition: transform .15s ease, opacity .2s ease;
}
.btn-main:hover { opacity: .92; }
.btn-main:active { transform: scale(.97); }
.btn-main.small { height: 50px; font-size: 16px; width: min(72vw, 300px); letter-spacing: .2em; text-indent: .2em; }
/* ghost2 = secondary action: thin gold outline, transparent bg */
.btn-main.ghost2 {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold-line);
}
.btn-ghost {
  height: 48px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--text); font-size: 14px; font-weight: 500; letter-spacing: .08em; cursor: pointer;
  transition: transform .15s ease, border-color .2s ease;
  width: min(72vw, 300px); align-self: center;
}
.btn-ghost:active { transform: scale(.97); }
.btn-ghost.now { border-color: var(--gold-line); color: var(--gold); }
.home-foot { position: absolute; bottom: calc(28px + env(safe-area-inset-bottom)); color: var(--dim); font-size: 12px; letter-spacing: .05em; }

/* ===== Game picker ===== */
.pick-grid { display: flex; flex-direction: column; gap: 12px; padding-top: 3vh; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-height: 0; }
.pick-card {
  display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); cursor: pointer; transition: background .2s ease;
  animation: fadeIn .35s ease both;
}
.pick-card:hover { background: rgba(255,255,255,.06); }
.pick-card:active { transform: scale(.99); }
.pick-icon { font-size: 30px; }
.pick-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pick-name { font-size: 17px; font-weight: 600; }
.pick-desc { font-size: 13px; color: var(--dim); }
.pick-go { margin-left: auto; font-size: 22px; color: var(--dim); }

/* ===== Input ===== */
.input-card { padding-top: 2vh; display: flex; flex-direction: column; gap: 14px; flex: 1; overflow-y: auto; }
.input-hero { font-size: 20px; font-weight: 600; letter-spacing: .02em; line-height: 1.6; text-align: center; margin: 1.5vh 0 2.5vh; color: var(--text); }
.input-hero::after { content: ""; display: block; width: 32px; height: 2px; border-radius: 1px; margin: 16px auto 0; background: var(--gold); }
.picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.picker-divider {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--dim);
  border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px;
}
.picker-divider .pick-mini { font-style: normal; font-size: 11px; opacity: .75; }
#partner-card { display: flex; flex-direction: column; gap: 12px; }
#partner-card[hidden] { display: none; }
.picker {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 4px;
  cursor: pointer; transition: border-color .2s ease;
}
.picker:focus-within { border-color: var(--gold-line); }
.picker-label { font-size: 11px; color: var(--dim); letter-spacing: .15em; padding: 2px 0 0 4px; }
.picker-label em { font-style: normal; color: var(--gold); font-size: 11px; }
.picker-select {
  width: 100%; background: transparent; color: var(--text); border: none; outline: none;
  font-size: 20px; font-weight: 600; appearance: none; -webkit-appearance: none;
  padding: 4px 22px 4px 2px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D4A853' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.picker-select option { background: #1A1A1E; color: var(--text); font-weight: 500; }

/* Gender toggle + name */
.opt-row { display: flex; align-items: center; gap: 12px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.seg-btn {
  padding: 9px 20px; background: transparent; color: var(--dim); border: none;
  font-size: 14px; font-weight: 500; cursor: pointer; letter-spacing: .08em;
}
.seg-btn[aria-pressed="true"] { background: var(--gold); color: var(--dark); }
.name-input {
  flex: 1; min-width: 0; height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font-size: 15px; padding: 0 18px; outline: none;
  -webkit-user-select: text; user-select: text; font-family: inherit;
}
.name-input:focus { border-color: var(--gold-line); }
.name-input::placeholder { color: var(--dim); }

.input-tip { color: var(--dim); font-size: 13px; margin: 0 auto; }

/* ===== Result page ===== */
.result-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 40px; }
.result-lead {
  background: var(--gold-soft);
  border: 1px solid var(--gold-line); border-radius: 16px;
  padding: 20px; margin: 8px 0 14px;
  font-size: 17px; font-weight: 600; line-height: 1.85;
  animation: fadeIn .4s ease both;
  -webkit-user-select: text; user-select: text;
}
.result-lead b { color: var(--gold); font-weight: 700; }
.result-story {
  background: var(--card);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; margin: 8px 0 20px; font-size: 15.5px; line-height: 1.9;
  color: var(--text);
  cursor: pointer;
  -webkit-user-select: text; user-select: text;
}
.result-story b { color: var(--gold); font-weight: 600; }
.cards { display: flex; flex-direction: column; gap: 14px; }
.card {
  border-radius: 16px; padding: 20px; border: 1px solid var(--line);
  background: var(--card); position: relative;
  animation: fadeIn .4s ease both;
  -webkit-user-select: text; user-select: text;
}
.card-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.card-icon { font-size: 16px; color: var(--gold); }
.card-title { font-size: 12px; color: var(--dim); letter-spacing: .1em; display: inline-flex; align-items: center; gap: 6px; }
.card-group {
  font-size: 10px; color: var(--gold); border: 1px solid var(--gold-line);
  border-radius: 999px; padding: 1px 8px; letter-spacing: .05em; flex: none;
}
.card-number { font-size: 24px; font-weight: 700; color: var(--gold); margin-left: auto; text-align: right; }
.card-keyword { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text); line-height: 1.6; }
.card-keyword b, .card-desc b { color: var(--gold); font-weight: 600; }
.card-desc { font-size: 14.5px; color: var(--dim); line-height: 1.85; }
.card-plain {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.8; color: var(--text);
}
.card-plain::before { content: "💡 Plain: "; color: var(--gold); font-weight: 600; }
.card-extra { font-size: 13px; color: var(--dim); line-height: 1.8; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }

/* Playful sign-off */
.fun-tip {
  margin-top: 16px; padding: 12px 16px; border-radius: 12px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  font-size: 13px; line-height: 1.8; color: var(--text);
  text-align: center;
}

/* Verdict trace panel */
.verdict-panel { margin-top: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.vp-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; background: transparent; border: none; color: var(--text);
  font-size: 14px; font-weight: 600; cursor: pointer; letter-spacing: .05em;
}
.vp-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.vp-body.open { max-height: 60vh; overflow-y: auto; }
.vp-body { padding: 0 18px; }
.vp-body.open { padding: 0 18px 16px; }
.verdict-item { border-top: 1px solid var(--line); padding: 14px 0; }
.verdict-item:first-of-type { border-top: none; }
.v-title { font-size: 14px; font-weight: 600; color: var(--gold); margin-bottom: 6px; }
.v-text { font-size: 13.5px; color: var(--dim); line-height: 1.8; }
.v-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.rule-tag {
  font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--gold);
  border: 1px solid var(--gold-line); background: transparent;
  border-radius: 999px; padding: 2px 10px;
}
.v-src { font-size: 11.5px; color: var(--dim); }

.result-actions { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.result-foot { text-align: center; color: var(--dim); font-size: 11.5px; margin-top: 22px; letter-spacing: .05em; line-height: 1.7; }

/* toast */
.toast, .toast.achieve {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(80px);
  background: #1C1C20; border: 1px solid var(--line); color: var(--text);
  padding: 13px 24px; border-radius: 999px; font-size: 14px; z-index: 19;
  transition: transform .3s ease; pointer-events: none; max-width: 84vw; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.achieve {
  bottom: 90px; background: var(--gold);
  color: var(--dark); font-weight: 700; border: none;
}

/* Share modal */
.modal {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 30; background: rgba(0, 0, 0, .7);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .25s ease; backdrop-filter: blur(6px);
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(86vw, 380px); border-radius: 20px; padding: 22px;
  background: #16161A;
  border: 1px solid var(--line); text-align: center;
  display: flex; flex-direction: column; gap: 14px;
  animation: fadeIn .3s ease both;
}
.modal-title { font-size: 16px; font-weight: 600; letter-spacing: .12em; color: var(--gold); }
#share-canvas { width: 100%; border-radius: 12px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.modal-actions .btn-main, .modal-actions .btn-ghost { width: 100%; height: 48px; font-size: 15px; }

/* Easter egg */
.easter {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.95);
  z-index: 40; max-width: 80vw; text-align: center;
  background: #16161A;
  border: 1px solid var(--gold-line); border-radius: 18px;
  padding: 26px 28px; color: var(--text); font-size: 16px; font-weight: 500; line-height: 1.85;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.easter.pop { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ===== Luck ring ===== */
.score-ring {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 10px 0 6px; animation: fadeIn .4s ease both;
}
.ring-svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 6; }
.ring-fg {
  fill: none; stroke: var(--gold) !important; stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 327;
  transition: stroke-dashoffset 1s ease;
}
.ring-text { display: flex; flex-direction: column; align-items: flex-start; }
.ring-num { font-size: 32px; font-weight: 700; color: var(--gold); line-height: 1; }
.ring-label { font-size: 13px; color: var(--dim); margin-top: 6px; }

/* ===== Game switcher ===== */
.game-switcher {
  margin-top: 20px; padding: 16px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--card);
}
.gs-title { font-size: 12px; color: var(--dim); letter-spacing: .1em; margin-bottom: 12px; }
.gs-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-btn {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background .2s ease;
}
.gs-btn:active { transform: scale(.96); }
.gs-btn.current { background: var(--gold); color: var(--dark); border-color: transparent; font-weight: 600; }
.gs-icon { font-size: 15px; }

/* ===== Desktop (≥900px) — centered column, no side shadows ===== */
@media (min-width: 900px) {
  .app { max-width: 480px; margin: 0 auto; }
  .card:hover { background: rgba(255,255,255,.06); }
  .pick-card { animation-delay: 0s !important; }
}
@media (min-width: 900px) and (min-height: 700px) {
  body { display: flex; align-items: center; justify-content: center; }
}

/* ===== Account / subscription / question / export ===== */
.mono { font-family: ui-monospace, Consolas, monospace; }

.account-chip {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font-size: 13px; font-weight: 500; letter-spacing: .05em; z-index: 5;
}
.account-chip:active { transform: scale(.94); }
.account-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }

.home-status { color: var(--dim); font-size: 13px; margin: 16px 0 6px; letter-spacing: .05em; }
.btn-mini-link {
  background: transparent; border: none; color: var(--gold);
  font-size: 13px; font-weight: 500; letter-spacing: .08em; cursor: pointer;
  padding: 6px 10px; text-decoration: underline; text-underline-offset: 4px;
}
.btn-mini-link:active { opacity: .7; }

/* Upgrade banner */
.upgrade-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 4px 0 14px; padding: 14px 16px; border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  animation: fadeIn .4s ease both;
}
.ub-text { display: flex; align-items: center; gap: 10px; }
.ub-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--dark);
  background: var(--gold);
  padding: 3px 10px; border-radius: 999px; flex: none;
}
.ub-line { font-size: 13.5px; color: var(--text); font-weight: 500; }
.ub-btn {
  flex: none; border: none; border-radius: 999px; cursor: pointer;
  background: var(--gold);
  color: var(--dark); font-weight: 700; font-size: 13px; padding: 8px 16px;
}
.ub-btn:active { transform: scale(.95); }

/* ===== Subscribe ===== */
.sub-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 40px; }
.sub-hero { text-align: center; margin: 4vh 0 4vh; }
.sub-hero-title {
  font-size: 22px; font-weight: 700; letter-spacing: .04em;
  color: var(--text); line-height: 1.5;
}
.sub-hero-sub { color: var(--dim); font-size: 14px; line-height: 1.9; margin-top: 12px; }
.tier-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .tier-grid { grid-template-columns: 1fr 1fr; } }
.tier-card {
  position: relative; border-radius: 18px; padding: 24px 22px;
  border: 1px solid var(--line); background: var(--card);
  display: flex; flex-direction: column; gap: 8px;
}
.tier-card:hover { border-color: var(--gold-line); }
.tier-card.recommended {
  border: 1px solid var(--gold);
  background: var(--gold-soft);
}
.tier-rec-tag {
  position: absolute; top: -11px; right: 18px;
  background: var(--gold);
  color: var(--dark); font-size: 11px; font-weight: 700; letter-spacing: .1em;
  padding: 3px 12px; border-radius: 999px;
}
.tier-name { font-size: 18px; font-weight: 700; letter-spacing: .08em; }
.tier-price { font-size: 36px; font-weight: 700; color: var(--gold); line-height: 1; }
.tier-per { font-size: 14px; color: var(--dim); font-weight: 400; }
.tier-tagline { font-size: 13.5px; color: var(--dim); font-weight: 500; }
.tier-feats { list-style: none; padding: 0; margin: 10px 0 16px; display: flex; flex-direction: column; gap: 10px; }
.tier-feats li { font-size: 14px; color: var(--text); line-height: 1.6; }
.tier-buy {
  margin-top: auto; height: 48px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--gold);
  color: var(--dark); font-size: 15px; font-weight: 700; letter-spacing: .12em;
}
.tier-buy:active { transform: scale(.97); }
.sub-note { margin-top: 24px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.sub-note #sub-current-line { color: var(--gold); font-size: 14px; font-weight: 600; }
.sub-disclaimer { color: var(--dim); font-size: 12px; line-height: 1.7; }

/* ===== Account ===== */
.acct-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 40px; }
.acct-card {
  border-radius: 16px; border: 1px solid var(--line); background: var(--card);
  padding: 8px 18px; margin-top: 4px;
}
.acct-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.acct-row:last-child { border-bottom: none; }
.acct-label { color: var(--dim); font-size: 14px; }
.acct-val { font-size: 15px; font-weight: 600; }
.acct-val.mono { font-size: 12px; color: var(--dim); }
.acct-actions { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; align-items: center; }
.acct-actions .btn-ghost { width: 100%; max-width: 340px; }
.acct-block { margin-top: 12px; }
.acct-block-title { font-size: 13px; color: var(--dim); letter-spacing: .1em; margin: 6px 4px 12px; }
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-item {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card);
}
.oi-top { display: flex; justify-content: space-between; align-items: center; }
.oi-tier { font-weight: 700; color: var(--gold); }
.oi-status { font-size: 12px; color: var(--dim); }
.oi-status.paid { color: var(--gold); }
.oi-meta { font-size: 12px; color: var(--dim); margin-top: 4px; }
.acct-empty { color: var(--dim); font-size: 13px; text-align: center; padding: 16px; }
.acct-foot { text-align: center; color: var(--dim); font-size: 11.5px; line-height: 1.8; margin-top: 24px; }

/* ===== Question ===== */
.q-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 40px; }
.q-card {
  border-radius: 16px; border: 1px solid var(--line); background: var(--card);
  padding: 22px; display: flex; flex-direction: column; gap: 14px; margin-top: 4px;
}
.q-hint { color: var(--dim); font-size: 14px; line-height: 1.8; }
.q-input {
  width: 100%; min-height: 100px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0,0,0,.2); color: var(--text); font-size: 15px; padding: 12px 14px;
  outline: none; resize: vertical; font-family: inherit; line-height: 1.7;
  -webkit-user-select: text; user-select: text;
}
.q-input:focus { border-color: var(--gold-line); }
.q-meta { font-size: 12px; color: var(--dim); }
.q-answer {
  margin-top: 16px; border-radius: 16px; padding: 22px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  display: flex; flex-direction: column; gap: 12px;
  animation: fadeIn .4s ease both;
  -webkit-user-select: text; user-select: text;
}
.q-answer-label { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .15em; }
.q-answer-body { font-size: 15.5px; line-height: 1.9; }
.q-answer-body b { color: var(--gold); font-weight: 600; }
.q-answer .btn-ghost { width: 100%; max-width: 220px; align-self: center; }

/* Payment / password modals */
.pay-info { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.pay-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--dim); }
.pay-row b { color: var(--text); }
.pay-warn { font-size: 12px; color: var(--dim); line-height: 1.7; }
.paid-msg { font-size: 15px; line-height: 1.8; }
.paid-pwd { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.paid-pwd-label { font-size: 13px; color: var(--dim); }
.paid-pwd-row { display: flex; flex-direction: column; gap: 8px; }
.paid-pwd-row .btn-main, .paid-pwd-row .btn-ghost { width: 100%; }
.setpwd-hint { font-size: 13px; color: var(--dim); line-height: 1.8; }
.modal-card .name-input { width: 100%; }

/* ===== v20260927a · Decision panel + AI Guide styles ===== */

/* Home ask entry button */
.home-ask-entry { margin-top: 10px; }

/* Decision panel (top of result page) */
.decision-panel {
  background: var(--gold-soft);
  border: 1.5px solid var(--gold);
  border-radius: 18px;
  padding: 20px;
  margin: 8px 0 16px;
  display: flex; flex-direction: column; gap: 14px;
  animation: fadeIn .4s ease both;
  -webkit-user-select: text; user-select: text;
}
.dp-question { font-size: 13px; color: var(--dim); line-height: 1.6; }
.dp-decision {
  font-size: 26px; font-weight: 800; color: var(--gold);
  text-align: center; line-height: 1.4; letter-spacing: .04em;
  padding: 10px 0;
}
.dp-label { font-size: 11px; color: var(--gold); letter-spacing: .15em; margin-bottom: 6px; font-weight: 700; }
.dp-reason { font-size: 14.5px; line-height: 1.85; color: var(--text); }
.dp-reason b { color: var(--gold); font-weight: 600; }
.dp-actions { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.dp-actions li { font-size: 14px; line-height: 1.8; color: var(--text); }
.dp-timing {
  font-size: 13px; color: var(--gold);
  background: rgba(0,0,0,.2); border: 1px dashed var(--gold-line);
  border-radius: 10px; padding: 10px 14px; line-height: 1.6;
}

/* Ask-choice screen */
.ask-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 40px; }
.ask-hero {
  text-align: center; font-size: 22px; font-weight: 700; color: var(--gold);
  margin: 3vh 0 3vh; letter-spacing: .1em;
}
.ask-choice { display: flex; flex-direction: column; gap: 14px; margin-top: 2vh; }
.ask-choice-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 26px 20px; border-radius: 18px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card);
  color: var(--text); transition: transform .15s ease, border-color .2s ease;
}
.ask-choice-card:active { transform: scale(.98); }
.ask-choice-card.decision {
  border: 1.5px solid var(--gold);
  background: var(--gold-soft);
}
.ask-choice-icon { font-size: 40px; line-height: 1; }
.ask-choice-name { font-size: 19px; font-weight: 700; letter-spacing: .08em; }
.ask-choice-card.decision .ask-choice-name { color: var(--gold); }
.ask-choice-desc { font-size: 13px; color: var(--dim); line-height: 1.6; text-align: center; }

/* Ask input form */
.ask-form { display: flex; flex-direction: column; gap: 14px; margin-top: 2vh; }
.ask-form-hero { font-size: 17px; font-weight: 600; text-align: center; color: var(--text); }
.ask-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ask-tag {
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font-size: 13px; transition: border-color .2s ease, background .2s ease;
}
.ask-tag:active { transform: scale(.96); }
.ask-tag:hover { border-color: var(--gold-line); color: var(--gold); }
.ask-birth-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line);
}
.ask-birth-label { font-size: 12px; color: var(--dim); letter-spacing: .1em; }
.ask-birth-value { flex: 1; font-size: 14px; color: var(--text); font-weight: 500; }
.ask-birth-edit {
  background: transparent; border: none; color: var(--gold);
  font-size: 13px; cursor: pointer; padding: 4px 8px;
}
.ask-gender { align-self: center; }
.ask-foot { text-align: center; font-size: 12px; color: var(--dim); line-height: 1.7; margin-top: 4px; }

/* AI Guide chat */
.ai-scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 12px 0 12px; display: flex; flex-direction: column; gap: 12px;
}
.ai-msg {
  max-width: 86%; padding: 12px 16px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.8;
  -webkit-user-select: text; user-select: text;
  animation: fadeIn .3s ease both;
}
.ai-msg.user {
  align-self: flex-end; background: var(--gold); color: var(--dark);
  border-bottom-right-radius: 4px; font-weight: 500;
}
.ai-msg.ai {
  align-self: flex-start; background: var(--card); border: 1px solid var(--line);
  color: var(--text); border-bottom-left-radius: 4px;
}
.ai-msg.ai b { color: var(--gold); font-weight: 600; }
.ai-loading { color: var(--dim); font-style: italic; }
.ai-input-row {
  display: flex; gap: 10px; align-items: flex-end;
  padding-top: 8px;
}
.ai-input {
  flex: 1; min-height: 44px; max-height: 120px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  font-size: 15px; padding: 10px 16px; outline: none; resize: none;
  font-family: inherit; line-height: 1.5;
  -webkit-user-select: text; user-select: text;
}
.ai-input:focus { border-color: var(--gold-line); }
.ai-input::placeholder { color: var(--dim); }
#btn-ai-send { flex: none; width: 70px; }
.ai-disclaimer {
  text-align: center; font-size: 11px; color: var(--dim);
  padding-top: 6px; line-height: 1.6;
}

/* ===== v20260927b · P0: one-liner / today-action / disclosures / delete / privacy ===== */

.one-liner {
  font-size: 22px; font-weight: 800; line-height: 1.5;
  color: var(--gold); text-align: center;
  padding: 14px 18px; margin: 6px 0 8px;
  animation: fadeIn .4s ease both;
  -webkit-user-select: text; user-select: text;
}
.one-liner b { color: var(--gold); }

.today-action {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--card); border: 1px solid var(--gold-line);
  border-radius: 14px; padding: 14px 16px; margin: 4px 0 12px;
  animation: fadeIn .4s ease both;
}
.ta-icon { font-size: 18px; line-height: 1.4; }
.ta-text { font-size: 14.5px; line-height: 1.7; color: var(--text); }

.sub-disclosure { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; }
.sd-toggle {
  width: 100%; background: transparent; border: none; color: var(--dim);
  font-size: 13px; cursor: pointer; padding: 8px 0; text-align: left;
  letter-spacing: .05em;
}
.sd-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.sd-body.open { max-height: 600px; overflow-y: auto; }
.sd-list { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.sd-list li { font-size: 12.5px; color: var(--dim); line-height: 1.7; }
.sd-list b { color: var(--text); }
.sd-list a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.acct-danger { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.btn-danger {
  width: 100%; max-width: 340px; height: 48px; border-radius: 999px; cursor: pointer;
  background: transparent; color: #FF6B6B; font-size: 15px; font-weight: 600;
  border: 1.5px solid #FF6B6B; letter-spacing: .08em;
}
.btn-danger:active { transform: scale(.97); }
.acct-danger-tip { font-size: 11.5px; color: var(--dim); text-align: center; line-height: 1.6; }
.danger-title { color: #FF6B6B; }
.delete-warn { font-size: 14.5px; line-height: 1.8; color: var(--text); }

.privacy-card { text-align: left; }
.privacy-body { display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; }
.privacy-body p { font-size: 13.5px; line-height: 1.8; color: var(--dim); }
.privacy-body b { color: var(--text); }

/* ===== v20260927c · P1: notifications / history / events / radar ===== */

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; inset: 0; cursor: pointer; border-radius: 999px;
  background: rgba(255,255,255,.12); transition: background .2s;
}
.switch-slider::before {
  content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  border-radius: 50%; background: #fff; transition: transform .2s;
}
.switch input:checked + .switch-slider { background: var(--gold); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); background: var(--dark); }

.notif-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card); display: flex; flex-direction: column; gap: 12px; }
.notif-row { display: flex; align-items: center; justify-content: space-between; }
.notif-label { font-size: 14.5px; color: var(--text); font-weight: 500; }
.notif-sub-label { font-size: 12px; color: var(--dim); letter-spacing: .1em; margin: 4px 0 2px; }
.notif-seg { align-self: flex-start; }
.notif-time {
  background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-size: 15px; padding: 8px 12px; outline: none; font-family: inherit;
}
.notif-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.notif-cat { font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.notif-cat input { accent-color: var(--gold); }
.notif-tip { font-size: 11.5px; color: var(--dim); line-height: 1.6; }

.his-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 40px; }
.his-tip { font-size: 12px; color: var(--gold); text-align: center; margin: 8px 0; }
.his-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.his-item {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer;
}
.his-item:active { transform: scale(.99); }
.his-icon { font-size: 22px; }
.his-main { flex: 1; min-width: 0; }
.his-name { font-size: 14.5px; font-weight: 600; }
.his-ol { font-size: 13px; color: var(--gold); line-height: 1.5; margin-top: 2px; }
.his-date { font-size: 11.5px; color: var(--dim); margin-top: 4px; }
.his-go { color: var(--dim); font-size: 20px; }

.events-card { border: 1px solid var(--gold-line); border-radius: 14px; padding: 14px; background: var(--gold-soft); margin-bottom: 12px; }
.ec-title { font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 10px; letter-spacing: .05em; }
.events-list { display: flex; flex-direction: column; gap: 8px; }
.ev-item { display: flex; gap: 10px; align-items: flex-start; }
.ev-date { flex: none; font-size: 11px; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 6px; padding: 2px 6px; margin-top: 2px; }
.ev-main { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.5; }
.ev-main span { color: var(--dim); }

.radar-panel { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 18px; }
.rp-title { font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 10px; letter-spacing: .05em; }
.radar-chart { display: flex; justify-content: center; }
.radar-svg { width: 100%; max-width: 300px; height: auto; }
.radar-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; justify-content: center; }
.rl-item { font-size: 11.5px; color: var(--dim); display: inline-flex; align-items: center; gap: 5px; }
.rl-item i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* ===== v20260927d · P2 AI history / calendar / sync / reports ===== */

/* AI past questions panel */
.bar-history-btn {
  background: transparent; border: none; color: var(--gold);
  font-size: 18px; cursor: pointer; padding: 4px 8px; flex: none;
}
.ai-history-panel {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 6;
  background: #0F0F12; display: flex; flex-direction: column;
  animation: fadeIn .25s ease;
}
.ai-hp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top)) 18px 14px;
  font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: .05em;
}
.ai-hp-close { background: transparent; border: none; color: var(--dim); font-size: 18px; cursor: pointer; }
.ai-hp-list { flex: 1; overflow-y: auto; padding: 0 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.ai-hp-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: var(--card); }
.ai-hp-item:active { transform: scale(.99); }
.ai-hp-q { font-size: 14px; font-weight: 600; color: var(--text); }
.ai-hp-a { font-size: 12.5px; color: var(--dim); line-height: 1.6; margin-top: 4px; }
.ai-hp-date { font-size: 11px; color: var(--dim); margin-top: 6px; }

/* Star calendar */
.cal-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-top: 4px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.cal-nav-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--text); font-size: 22px; cursor: pointer;
}
.cal-month-label { font-size: 17px; font-weight: 700; color: var(--gold); }
.cal-note { font-size: 11.5px; color: var(--dim); text-align: center; margin: 6px 0 12px; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; color: var(--dim); padding-bottom: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4px; text-align: center;
}
.cal-cell.empty { border: none; background: transparent; }
.cal-cell.highlight { border-color: var(--gold-line); background: var(--gold-soft); }
.cal-day { font-size: 13px; font-weight: 600; }
.cal-cell.highlight .cal-day { color: var(--gold); }
.cal-mark { font-size: 8.5px; color: var(--dim); line-height: 1.2; margin-top: 2px; }

/* Multi-device sync */
.sync-status { font-size: 13.5px; line-height: 1.7; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.sync-status.on { color: #5CE1A6; border-color: rgba(92,225,166,.3); }
.sync-status.off { color: var(--dim); }
.sync-status a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* Review reports */
.report-row { display: flex; flex-direction: column; gap: 10px; }
.report-row .btn-ghost { width: 100%; max-width: 340px; align-self: center; }
.pro-tag { font-style: normal; font-size: 10px; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }

/* ===== v20260927e · Batch A feedback / push nudge / upgrade CTA ===== */

.fld-label { display: block; font-size: 12px; color: var(--dim); margin: 12px 0 6px; letter-spacing: .05em; }
.fb-textarea {
  width: 100%; box-sizing: border-box; background: rgba(0,0,0,.2);
  border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical; outline: none;
}
.fb-input {
  width: 100%; box-sizing: border-box; background: rgba(0,0,0,.2);
  border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  padding: 10px 12px; font-size: 14px; font-family: inherit; outline: none;
}
#fb-type { flex-wrap: wrap; gap: 6px; }

.ai-upgrade-cta { margin: 8px 0 4px; align-self: flex-start; }

.push-nudge {
  position: sticky; bottom: calc(12px + env(safe-area-inset-bottom));
  margin-top: 16px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--gold-line); background: var(--gold-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  animation: fadeIn .3s ease;
}
.pn-text { font-size: 13.5px; color: var(--text); flex: 1; }
.pn-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.pn-x { background: transparent; border: none; color: var(--dim); font-size: 16px; cursor: pointer; padding: 4px; }
