/* 今天去哪 —— 白底 + 电光蜜桔渐变点缀（Eric 2026-11-25 选定 G）+ 红色印章。普通签卡片保留原来的电车绿标签。手机优先，单列，最宽 480px 居中。 */
:root {
  --tram: #0f5b3f;        /* 电车绿：首屏和分享卡底色 */
  --tram-deep: #0a3f2c;
  --signal: #ffc72c;      /* 信号黄：主按钮、强调 */
  --signal-ink: #2b2200;
  --seal: #d33a2c;        /* 印章红：上上签 */
  --bg: #eaf1ec;
  --slip: #ffffff;
  --ink: #13201a;
  --muted: #5a6b62;
  --line: #d3e0d7;
  --chip: #ffffff;
  --on-tram: #f2f8f4;
  --on-tram-muted: #b9d3c4;
  --font-display: "ZCOOL QingKe HuangYou", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-latin: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tram: #0d4a34; --tram-deep: #072a1e; --signal: #ffcf4a; --seal: #e85546;
    --bg: #0b1410; --slip: #16231c; --ink: #e5efe8; --muted: #92a89b; --line: #26372e; --chip: #16231c;
    --on-tram: #eaf4ee; --on-tram-muted: #9fbfad; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --tram: #0d4a34; --tram-deep: #072a1e; --signal: #ffcf4a; --seal: #e85546;
  --bg: #0b1410; --slip: #16231c; --ink: #e5efe8; --muted: #92a89b; --line: #26372e; --chip: #16231c;
  --on-tram: #eaf4ee; --on-tram-muted: #9fbfad; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font-body); -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.col { max-width: 480px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- 首屏 ---------- */
.hero { background: var(--tram); color: var(--on-tram);
  margin-top: calc(-1 * env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  background-image: repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.035) 46px 48px); }
.hero .col { padding-block: 14px 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--on-tram-muted); }
.brand { font-family: var(--font-latin); font-weight: 700; letter-spacing: .02em; color: var(--on-tram); text-decoration: none; }
.brand b { color: var(--signal); }
.clock { font-variant-numeric: tabular-nums; }
.hero h1 { margin: 0; font: 400 52px/1.05 var(--font-display); letter-spacing: .02em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero .lede { margin: 6px 0 0; color: var(--on-tram-muted); }

.drawrow { display: flex; align-items: center; gap: 18px; }
#draw { flex: none; width: 128px; height: 128px; border-radius: 50%; border: 0; background: var(--signal); color: var(--signal-ink);
  font: 400 34px/1 var(--font-display); box-shadow: 0 6px 0 #c99500, 0 14px 30px rgba(0,0,0,.25); transition: transform .12s, box-shadow .12s; }
#draw small { display: block; font: 600 12px/1.4 var(--font-body); margin-top: 6px; opacity: .75; letter-spacing: .1em; }
#draw:active { transform: translateY(4px); box-shadow: 0 2px 0 #c99500, 0 6px 14px rgba(0,0,0,.25); }
.drawhint { min-width: 0; font-size: 13px; color: var(--on-tram-muted); }
.drawhint strong { display: block; color: var(--on-tram); font-size: 15px; margin-bottom: 2px; }

.label { font-size: 12px; letter-spacing: .12em; color: var(--on-tram-muted); margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid rgba(255,255,255,.28); background: transparent; color: var(--on-tram); padding: 7px 14px; border-radius: 999px; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); font-weight: 600; }

/* ---------- 签 ---------- */
main.col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 0 40px; }
.slip { position: relative; margin-top: -10px; background: var(--slip); border-radius: 6px 6px 18px 18px; padding: 22px 20px 18px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -20px rgba(10,63,44,.45);
  background-image: radial-gradient(circle at 50% 0, var(--bg) 9px, transparent 10px); }
.slip.drop { animation: drop .5s cubic-bezier(.2,.9,.3,1.2); }
@keyframes drop { from { transform: translateY(-24px) rotate(-1.5deg); opacity: .3; } to { transform: none; opacity: 1; } }
.sliphead { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.stamp { position: absolute; right: 16px; top: 34px; width: 74px; height: 74px; border: 3px solid var(--seal); color: var(--seal); border-radius: 50%;
  display: grid; place-items: center; font: 400 20px/1 var(--font-display); transform: rotate(-14deg); opacity: .9; }
.slip.drop .stamp { animation: stamp .35s .35s both; }
@keyframes stamp { from { transform: rotate(-14deg) scale(1.8); opacity: 0; } to { transform: rotate(-14deg) scale(1); opacity: .9; } }
.kind { display: inline-block; margin-top: 14px; font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--tram); color: var(--on-tram); letter-spacing: .08em; }
.pname { margin: 8px 84px 0 0; font: 400 34px/1.15 var(--font-display); text-wrap: balance; }
.pen { margin: 4px 0 0; font: 500 14px/1.4 var(--font-latin); color: var(--muted); }
.pdesc { margin: 12px 0 0; font-size: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.facts b { color: var(--ink); font-weight: 600; }
.fallback { margin: 10px 0 0; font-size: 13px; color: var(--seal); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; font-size: 15px; font-weight: 600; text-decoration: none; }
.btn.primary { grid-column: 1 / -1; background: var(--tram); border-color: var(--tram); color: var(--on-tram); }
.btn.share { border-color: var(--signal); background: var(--signal); color: var(--signal-ink); }
.note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- 今日限定 / 排一天 ---------- */
.sect h2 { margin: 0 0 10px; font: 400 26px/1.2 var(--font-display); display: flex; align-items: baseline; gap: 10px; }
.special { display: block; text-decoration: none; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--slip); }
.special + .special { margin-top: 8px; }
.special .when { font-size: 12px; color: var(--seal); letter-spacing: .06em; }
.special .t { font-weight: 700; font-size: 16px; margin: 2px 0; }
.special .d { font-size: 14px; color: var(--muted); }
.more { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--muted); }


footer.col { padding-block: 0 32px; font-size: 12px; color: var(--muted); }
footer a { color: var(--ink); }

/* ---------- 分享弹层 ---------- */
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(5,20,13,.72); display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sheet .box { width: min(100%, 400px); max-height: 100%; overflow-y: auto; background: var(--slip); border-radius: 18px; padding: 16px; display: grid; gap: 12px; }
.sheet img { width: 100%; border-radius: 10px; display: block; -webkit-touch-callout: default; }
.sheet p { margin: 0; font-size: 14px; text-align: center; }
.sheet .row { display: flex; gap: 8px; }
.sheet .row .btn { flex: 1; }

@media (prefers-reduced-motion: reduce) { .slip.drop, .slip.drop .stamp { animation: none; } #draw { transition: none; } }

/* ---------- v1.1 ---------- */
:root { --good: #c42a1f; --good-bg: #fff6ee; --special: #2c3a7a; --special-bg: #f1f3ff; --gold: #c9971f; --magic-bg: #17130b; --magic-ink: #fff3d1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --good: #ff6b5c; --good-bg: #2a1512; --special: #9fb0ff; --special-bg: #161b33; --gold: #e6b84a; } }
:root[data-theme="dark"] { --good: #ff6b5c; --good-bg: #2a1512; --special: #9fb0ff; --special-bg: #161b33; --gold: #e6b84a; }
.small { font-size: 13px; } .muted { color: var(--muted); }
.link { border: 0; background: none; padding: 4px 0; color: var(--muted); text-decoration: underline; font-size: 14px; }
.minirow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mini { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: var(--on-tram); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.mini.demo { border-color: var(--signal); color: var(--signal); }
.starbox { margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--line); background: var(--slip); display: grid; gap: 8px; }
.starbox p { margin: 0; }
.starhead { display: flex; justify-content: space-between; align-items: center; }
.chip.light { border-color: var(--line); color: var(--ink); font-size: 13px; padding: 5px 10px; }
.chip.light[aria-pressed="true"] { background: var(--tram); border-color: var(--tram); color: var(--on-tram); }
.chip:disabled { opacity: .45; }
main.col > .slip:first-child { margin-top: -10px; }
.starbox + .slip { margin-top: 0; }
.pstar { margin: 8px 0 0; font-size: 14px; color: var(--muted); font-style: italic; }
.actions { grid-template-columns: 1fr 1fr 1fr; }
.btn.primary { grid-column: auto; }
.benefit { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--good); color: #fff; display: grid; gap: 4px; }
.benlabel { font-size: 12px; letter-spacing: .1em; opacity: .85; }
.benbtn { margin-top: 6px; background: #fff; color: var(--good); border-color: #fff; min-height: 40px; }

/* 四种签的皮肤 */
.slip.tier-good { background-color: var(--good-bg); box-shadow: inset 0 0 0 3px var(--good), inset 0 0 0 7px var(--good-bg), inset 0 0 0 8px var(--good), 0 18px 40px -20px rgba(160,30,20,.5); }
.slip.tier-good .kind { background: var(--good); }
.slip.tier-special { background-color: var(--special-bg); box-shadow: 0 18px 40px -20px rgba(30,40,100,.5); }
.slip.tier-special .kind { background: var(--special); color: var(--special-bg); }
.slip.tier-special .stamp { border-color: var(--special); color: var(--special); }
.slip.tier-magic { background-color: var(--magic-bg); color: var(--magic-ink); box-shadow: inset 0 0 0 3px #e6b84a, inset 0 0 0 8px var(--magic-bg), inset 0 0 0 9px #e6b84a, 0 20px 50px -18px rgba(230,184,74,.55);
  background-image: radial-gradient(circle at 50% 0, var(--bg) 9px, transparent 10px), radial-gradient(circle at 80% 10%, rgba(230,184,74,.18), transparent 45%); }
.slip.tier-magic .pen, .slip.tier-magic .pstar, .slip.tier-magic .facts, .slip.tier-magic .sliphead, .slip.tier-magic .more { color: #cbb68a; }
.slip.tier-magic .facts b { color: var(--magic-ink); }
.slip.tier-magic .facts { border-color: rgba(230,184,74,.4); }
.slip.tier-magic .kind { background: #e6b84a; color: var(--magic-bg); }
.slip.tier-magic .stamp { border-color: #e6b84a; color: #e6b84a; }
.slip.tier-magic .btn { border-color: rgba(230,184,74,.5); color: var(--magic-ink); }
.slip.tier-magic .btn.primary { background: #e6b84a; border-color: #e6b84a; color: var(--magic-bg); }
.slip.tier-magic .benefit { background: linear-gradient(135deg, #b8862b, #e6b84a); color: var(--magic-bg); }
.slip.tier-magic .benbtn { color: #8a6417; }

/* 魔法签全屏 */
.magic { position: fixed; inset: 0; z-index: 30; background: radial-gradient(circle at 50% 45%, #2b2210, #050402 70%); display: grid; place-items: center; cursor: pointer; }
.magic canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.magictext { position: relative; text-align: center; color: #e6b84a; font: 400 64px/1.1 var(--font-display); letter-spacing: .1em; animation: magicIn 1.2s cubic-bezier(.2,.9,.3,1.1) both; text-shadow: 0 0 30px rgba(230,184,74,.6); }
.magictext span { display: block; font-size: 34px; }
.magictext small { display: block; font: 500 14px var(--font-body); color: #cbb68a; letter-spacing: .3em; margin-top: 10px; }
@keyframes magicIn { from { transform: scale(.4); opacity: 0; filter: blur(8px); } to { transform: none; opacity: 1; filter: none; } }

/* 福利卡 */
.bsheet { position: fixed; inset: 0; z-index: 25; background: rgba(5,10,8,.8); display: grid; place-items: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
.bcard { position: relative; overflow: hidden; width: min(100%, 400px); max-height: 100%; overflow-y: auto; border-radius: 20px; background: var(--good-bg); color: var(--ink); border: 4px solid var(--good); }
.bcard.tier-magic { background: var(--magic-bg); color: var(--magic-ink); border-color: #e6b84a; }
.bcmark { position: absolute; inset: -40%; pointer-events: none; opacity: .09; overflow: hidden; }
.bcmark div { font: 700 18px/2.6 var(--font-latin); white-space: normal; word-break: break-all; width: 100%; transition: transform 1s linear; }
.bcin { position: relative; padding: 18px; display: grid; gap: 6px; text-align: center; }
.bctop { display: flex; justify-content: space-between; align-items: center; font-size: 13px; letter-spacing: .1em; color: var(--good); font-weight: 700; }
.bcard.tier-magic .bctop { color: #e6b84a; }
.bcdemo { margin: 4px 0; padding: 6px 10px; border-radius: 8px; background: var(--signal); color: var(--signal-ink); font-size: 13px; font-weight: 600; }
.bcshop { font: 400 26px/1.2 var(--font-display); margin-top: 6px; }
.bcwhat { font: 400 36px/1.15 var(--font-display); color: var(--good); }
.bcard.tier-magic .bcwhat { color: #e6b84a; }
.bcclock { font: 700 44px/1 var(--font-latin); font-variant-numeric: tabular-nums; margin-top: 10px; }
.bcdate { font-size: 14px; }
.bcleft { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bcrule { margin: 6px 0; font-size: 12px; opacity: .8; }
.bcconfirm { margin: 0; font-size: 13px; color: var(--good); }
.bcard.expired { filter: grayscale(1); }
.bcard.expired .bcclock { opacity: .5; }
.btn:disabled { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .magictext { animation: none; } .bcmark div { transition: none; } }

/* 排满一整天 */
.daysub { margin: -4px 0 10px; }
#dayBtn { width: 100%; }
.day { list-style: none; margin: 14px 0 0 6px; padding: 0; border-left: 2px solid var(--tram); }
.day li { position: relative; padding: 0 0 14px 16px; }
.day li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--tram); }
.day li.now::before { background: var(--signal); border-color: var(--signal); }
.day li.past { opacity: .55; }
.day .h { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.day a { font-weight: 700; text-decoration: none; color: var(--ink); }
.day .tag { font-size: 11px; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--special); color: var(--special-bg); vertical-align: 2px; }
.day .d { font-size: 13px; color: var(--muted); }

/* 魔法签：元宝雨 / 爱心雨 + 福利条闪光 */
.rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; border-radius: inherit; }
.slip > *:not(.rain) { position: relative; z-index: 1; }
.slip .stamp { position: absolute; z-index: 3; }
.bcin { z-index: 1; }
.slip.tier-magic .benefit { position: relative; overflow: hidden; z-index: 3; box-shadow: 0 0 0 2px #ffe08a, 0 0 24px rgba(255,215,100,.7); animation: glow 1.6s ease-in-out infinite; }
.slip.tier-magic .benefit::after { content: ""; position: absolute; inset: -20% auto -20% -40%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-20deg); animation: shine 2.2s ease-in-out infinite; pointer-events: none; }
.bcard.tier-magic .bcwhat { animation: glowText 1.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 2px #fff3c4, 0 0 40px rgba(255,215,100,1); } }
@keyframes glowText { 50% { text-shadow: 0 0 18px rgba(255,215,100,.9); } }
@keyframes shine { 0% { left: -40%; } 60%, 100% { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .slip.tier-magic .benefit, .slip.tier-magic .benefit::after, .bcard.tier-magic .bcwhat { animation: none; } }

/* 我的福利 + 提示 */
.mini.ben { border-color: #ffb3c9; color: #ffd1de; background: rgba(255,143,177,.18); font-weight: 600; }
.wlist { display: grid; gap: 8px; }
.witem { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--good); background: var(--good-bg); color: var(--ink); }
.witem.tier-magic { border-color: #e6b84a; background: var(--magic-bg); color: var(--magic-ink); }
.witem .wt { font-size: 12px; letter-spacing: .1em; color: var(--good); font-weight: 700; }
.witem.tier-magic .wt { color: #e6b84a; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; max-width: calc(100% - 32px); }

/* 预览模式条（上线前隐藏） */
.previewbar { background: #2b2d42; color: #f1f1f6; position: relative; z-index: 5; }
.previewbar .col { padding-block: 8px; display: grid; gap: 6px; }
.pvlabel { font-size: 12px; letter-spacing: .08em; opacity: .8; }
.pvbtns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pvbtns button { border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #f1f1f6; border-radius: 8px; padding: 7px 0; font-size: 13px; font-weight: 600; }
.pvbtns .pv-good { border-color: #ff7a6e; color: #ffb3ab; }
.pvbtns .pv-special { border-color: #9fb0ff; color: #c7d0ff; }
.pvbtns .pv-magic { border-color: #e6b84a; color: #ffe08a; background: rgba(230,184,74,.12); }
.previewbar { margin-top: calc(-1 * env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); }
.previewbar:not([hidden]) + .hero { margin-top: 0; padding-top: 0; }

.plucky { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,143,177,.25), rgba(230,184,74,.25)); color: #ffe7a8; font-size: 14px; font-weight: 600; }
.magictext small { letter-spacing: .12em; max-width: 86vw; margin-inline: auto; line-height: 1.6; }

/* 特殊签：流动虚线 + 晃动小插图 */
.ants { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); overflow: visible; pointer-events: none; z-index: 0; }
.ants rect { fill: none; stroke: var(--special); stroke-width: 2.5; stroke-dasharray: 10 8; width: calc(100% - 2px); height: calc(100% - 2px); animation: ants 1.2s linear infinite; }
@keyframes ants { to { stroke-dashoffset: -36; } }
.sheet .box { position: relative; }
.sway { position: absolute; z-index: 4; pointer-events: none; transform-origin: 50% 85%; animation: sway 2.6s ease-in-out infinite; filter: drop-shadow(0 3px 4px rgba(20,26,54,.25)); }
.sway canvas { display: block; }
.sw-tr { top: -18px; right: 70px; } .sw-tl { top: -20px; left: -14px; }
.sw-bl { bottom: -16px; left: -10px; } .sw-br { bottom: -18px; right: -8px; }
.sheet .sw-tr { right: -14px; }
@keyframes sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg) translateY(-2px); } }
.slip.tier-special { overflow: visible; }
@media (prefers-reduced-motion: reduce) { .ants rect, .sway { animation: none; } }
.slip > .ants, .slip > .sway, .box > .ants, .box > .sway { position: absolute; }
.slip > .ants, .box > .ants { z-index: 0; }
.slip > .sway, .box > .sway { z-index: 4; }
.box > .ants { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.box > .sw-tl { top: 6px; left: 6px; } .box > .sw-tr { top: 6px; right: 6px; }
.box > .sw-bl { bottom: 70px; left: 6px; } .box > .sw-br { bottom: 70px; right: 6px; }

/* 意见反馈按钮 */
.feedback { position: fixed; z-index: 15; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: var(--bg); text-decoration: none; font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
footer.col { padding-bottom: 72px; }

/* 抽签按钮放在首屏右下角（选完场景和心情的位置），右手大拇指好按（Eric 2026-11-25） */
.drawrow { margin-top: 4px; }
.drawrow #draw { order: 2; margin-left: auto; }
.drawrow .drawhint { order: 1; }


/* ===== 配色 G「电光蜜桔」：白底，渐变只用在标题、抽签按钮、选中项、分享图标题和网址 ===== */
:root {
  --grad: linear-gradient(120deg, #FF8A00, #FF3D77);
  --tram: #FF8A00; --signal: #FF3D77; --signal-ink: #ffffff;
  --bg: #ffffff; --slip: #ffffff; --ink: #1A1420; --muted: #706878; --line: #EEE8EC; --chip: #ffffff;
  --on-tram: #1A1420; --on-tram-muted: #706878;
  --slip-normal: linear-gradient(135deg, #FFF4E8, #FFEEF3); --slip-edge: #FFE6DC;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tram: #FF8A00; --signal: #FF5A86; --bg: #141016; --slip: #1E1820; --ink: #F2ECF0; --muted: #A89FAA; --line: #2E2630; --chip: #1E1820;
    --on-tram: #F2ECF0; --on-tram-muted: #A89FAA; --slip-normal: linear-gradient(135deg, #2A1E18, #2A1822); --slip-edge: #3A2A2A;
  }
}
:root[data-theme="dark"] {
  --tram: #FF8A00; --signal: #FF5A86; --bg: #141016; --slip: #1E1820; --ink: #F2ECF0; --muted: #A89FAA; --line: #2E2630; --chip: #1E1820;
  --on-tram: #F2ECF0; --on-tram-muted: #A89FAA; --slip-normal: linear-gradient(135deg, #2A1E18, #2A1822); --slip-edge: #3A2A2A;
}
.hero { background: var(--bg); background-image: none; border-bottom: 1px solid var(--line); }
.brand b, .hero h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip { border-color: var(--line); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; }
.mini { border-color: var(--line); background: var(--slip); color: var(--muted); }
.mini.ben { border-color: #FFC2D4; background: #FFF0F5; color: #D6336C; }
#draw { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(255, 61, 119, .33), inset 0 -3px 0 rgba(0,0,0,.08); }
#draw:active { box-shadow: 0 4px 10px rgba(255, 61, 119, .33); }
/* 普通签卡片：很浅的渐变签纸底，标签和导航按钮保留原来的电车绿 */
.slip { --tram: #0f5b3f; --on-tram: #f2f8f4; --signal: #ffc72c; --signal-ink: #2b2200; }
.slip.tier-normal { background: var(--slip-normal); border: 1px solid var(--slip-edge); box-shadow: 0 2px 14px rgba(60, 20, 40, .06); }
