:root {
  --bg: rgba(24, 18, 14, .76); --bg-deep: rgba(17, 13, 10, .93); --line: rgba(232, 180, 106, .26); --line2: rgba(246, 238, 224, .1);
  --amber: #e8b46a; --amber-b: #ffd9a0; --green: #8fb89a; --red: #e07a6a; --blue: #8fb3d0;
  --ink: rgba(246, 238, 224, .96); --ink2: rgba(222, 210, 190, .7); --ink3: rgba(190, 178, 158, .46);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --num: "DIN Alternate", "Bahnschrift", ui-monospace, "SF Mono", Menlo, Consolas, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #16110d; color: var(--ink); font-family: var(--sans); font-size: 14px; user-select: none; -webkit-user-select: none; overscroll-behavior: none; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
#hud, #bubbles { position: fixed; inset: 0; pointer-events: none; }
#hud > * { pointer-events: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; color: inherit; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: .01em; }

#boot { position: fixed; inset: 0; background: #16110d; display: grid; place-items: center; z-index: 99; transition: opacity .9s var(--ease); }
#boot.gone { opacity: 0; pointer-events: none; }
.boot-t { font-family: var(--serif); font-size: 34px; letter-spacing: .32em; color: var(--amber-b); text-indent: .32em; }
.boot-s { margin-top: 14px; text-align: center; color: var(--ink3); letter-spacing: .3em; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ── 面板基础 ── */
.glass { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.btn { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(232, 180, 106, .08); color: var(--amber-b); letter-spacing: .08em; transition: all .25s var(--ease); white-space: nowrap; }
.btn:hover { background: rgba(232, 180, 106, .2); border-color: rgba(232, 180, 106, .6); }
.btn.pri { background: linear-gradient(180deg, #f0c27c, #d99a4a); color: #2a1a0c; border-color: transparent; font-weight: 600; box-shadow: 0 6px 22px rgba(232, 160, 80, .35); }
.btn.pri:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.sm { padding: 6px 13px; font-size: 12.5px; letter-spacing: .03em; }
.btn.solid { background: var(--bg-deep); color: var(--amber-b); border-color: var(--line); }
.btn.ghost { background: transparent; color: var(--ink2); border-color: var(--line2); }
.btn:disabled { opacity: .38; pointer-events: none; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; border: 1px solid var(--line2); color: var(--ink2); margin-right: 4px; white-space: nowrap; }
.tag.s0 { color: #9fd0e6; border-color: rgba(143, 200, 230, .4); } .tag.s1 { color: #9fd9a8; border-color: rgba(143, 217, 168, .45); background: rgba(143, 217, 168, .08); }
.tag.s2 { color: var(--amber); border-color: rgba(232, 180, 106, .4); } .tag.s3 { color: #e39a8c; border-color: rgba(224, 122, 106, .45); }
.tag.on { color: var(--amber-b); border-color: rgba(232, 180, 106, .5); background: rgba(232, 180, 106, .1); }
.pos { color: var(--green); } .neg { color: var(--red); } .gold { color: var(--amber-b); }

/* ── 顶栏 ── */
.top { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none !important; }
.top > * { pointer-events: auto; }
.plate { padding: 9px 16px 10px; min-width: 150px; }
.plate h1 { margin: 0; font: 600 19px/1.2 var(--serif); letter-spacing: .14em; color: var(--amber-b); }
.plate p { margin: 4px 0 0; font-size: 12px; color: var(--ink2); letter-spacing: .04em; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip { padding: 7px 13px; border-radius: 999px; font-size: 12.5px; color: var(--ink2); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip b { color: var(--ink); font: 600 14px var(--num); }
.chip.ic { padding: 7px 11px; cursor: pointer; color: var(--amber-b); }
.chip.ic:hover { background: rgba(60, 44, 30, .9); }

/* ── 订单票、杯子、工位栏 ── */
#ticket { position: absolute; top: max(66px, calc(env(safe-area-inset-top) + 58px)); left: 50%; transform: translateX(-50%); padding: 10px 16px 12px; min-width: 300px; text-align: center; transition: opacity .3s, transform .3s var(--ease); }
#ticket.off { opacity: 0; transform: translateX(-50%) translateY(-12px); pointer-events: none; }
#ticket.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(calc(-50% - 7px)); } 75% { transform: translateX(calc(-50% + 7px)); } }
#ticket .t1 { font-size: 11.5px; color: var(--ink3); letter-spacing: .2em; }
#ticket .t2 { font: 600 18px var(--serif); letter-spacing: .08em; margin: 3px 0 9px; color: var(--ink); }
.steps { display: flex; justify-content: center; gap: 6px; align-items: center; }
.steps .st { width: 44px; padding: 5px 0 4px; border-radius: 10px; border: 1px solid var(--line2); font-size: 10.5px; color: var(--ink3); transition: all .25s var(--ease); }
.steps .st em { display: block; font-style: normal; font-size: 18px; line-height: 1.2; filter: grayscale(.7) opacity(.6); }
.steps .st.cur { border-color: var(--amber); color: var(--amber-b); background: rgba(232, 180, 106, .14); transform: translateY(-2px) scale(1.06); box-shadow: 0 0 18px rgba(232, 180, 106, .3); }
.steps .st.cur em, .steps .st.ok em { filter: none; }
.steps .st.ok { border-color: rgba(143, 184, 154, .5); color: var(--green); }
.steps .arr { color: var(--ink3); font-size: 11px; }
.pat { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin-top: 10px; overflow: hidden; }
.pat i { display: block; height: 100%; width: 100%; background: var(--green); transition: width .2s linear; }

#hotbar { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px; transition: opacity .3s, transform .4s var(--ease); }
#hotbar.off { opacity: 0; transform: translateX(-50%) translateY(30px); pointer-events: none; }
.hb { position: relative; width: 62px; height: 62px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); display: grid; place-items: center; align-content: center; gap: 1px; font-size: 11px; color: var(--ink2); transition: all .18s var(--ease); }
.hb em { font-style: normal; font-size: 23px; line-height: 1.1; }
.hb kbd { position: absolute; top: 3px; left: 6px; font: 10px var(--num); color: var(--ink3); }
.hb:hover { background: rgba(232, 180, 106, .1); }
.hb:active { transform: scale(.92); }
.hb.next { border-color: var(--amber); color: var(--amber-b); background: rgba(232, 180, 106, .16); box-shadow: 0 0 20px rgba(232, 180, 106, .35); animation: bob 1s infinite var(--ease); }
@keyframes bob { 50% { transform: translateY(-4px); } }
#prompt { position: absolute; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 92px); left: 50%; transform: translateX(-50%); padding: 7px 16px; border-radius: 999px; font-size: 12.5px; color: var(--ink2); letter-spacing: .05em; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; transition: opacity .4s; }
#prompt.off { opacity: 0; }
#cup { position: absolute; right: 22px; bottom: max(22px, env(safe-area-inset-bottom)); width: 74px; height: 112px; transition: opacity .3s, transform .4s var(--ease); }
#cup.off { opacity: 0; transform: translateY(20px); }
#cup .body { position: absolute; left: 7px; right: 7px; top: 14px; bottom: 0; border: 2px solid rgba(246, 238, 224, .55); border-top: 0; border-radius: 4px 4px 14px 14px; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); background: rgba(255, 255, 255, .06); overflow: hidden; display: flex; flex-direction: column-reverse; }
#cup .body i { display: block; height: 0; transition: height .45s var(--ease); }
#cup .lid { position: absolute; left: 2px; right: 2px; top: 8px; height: 8px; border-radius: 4px; background: var(--amber); transform: scaleX(0); transition: transform .3s var(--ease); }
#cup.sealed .lid { transform: scaleX(1); }
#cup.sealed { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: translateY(-14px) rotate(-6deg); } }
#daybar { position: absolute; top: max(66px, calc(env(safe-area-inset-top) + 58px)); right: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
#daybar.off { display: none; }
.stat { padding: 8px 13px; font-size: 12px; color: var(--ink2); text-align: right; line-height: 1.7; }
.stat b { font: 600 14px var(--num); color: var(--ink); margin-left: 4px; }
#joy { position: absolute; left: 22px; bottom: max(26px, env(safe-area-inset-bottom)); width: 104px; height: 104px; border-radius: 50%; border: 1px solid var(--line); background: rgba(24, 18, 14, .4); display: none; touch-action: none; }
#joy i { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe6bd, #c99450); box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.touch #joy { display: block; }
.touch #joy.off { display: none; }

/* ── 气泡、飘字、提示 ── */
.bubble { position: absolute; left: 0; top: 0; padding: 5px 10px 7px; border-radius: 10px; background: rgba(250, 244, 232, .95); color: #2a1e16; font-size: 12.5px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); display: flex; align-items: center; gap: 6px; will-change: transform; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.bubble b { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.bubble i { position: absolute; left: 8px; right: 8px; bottom: 3px; height: 2px; background: rgba(0, 0, 0, .1); border-radius: 2px; overflow: hidden; }
.bubble u { display: block; height: 100%; width: 100%; background: #8fb89a; }
.bubble.head { outline: 2px solid var(--amber); font-weight: 600; }
.bubble.thanks { background: #dff0e2; } .bubble.angry { background: #f6d6cf; }
.float { position: absolute; font: 700 17px var(--num); color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); animation: floatUp 1.3s var(--ease) forwards; pointer-events: none; }
.float.gold { color: var(--amber-b); font-size: 20px; }
@keyframes floatUp { from { opacity: 0; transform: translate(-50%, 0) scale(.7); } 20% { opacity: 1; transform: translate(-50%, -14px) scale(1.1); } to { opacity: 0; transform: translate(-50%, -64px) scale(1); } }
#toasts { position: absolute; top: 24%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none !important; }
.toast { padding: 9px 18px; border-radius: 999px; background: var(--bg-deep); border: 1px solid var(--line); font-size: 13px; letter-spacing: .04em; animation: toast 3.2s var(--ease) forwards; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.toast.bad { border-color: rgba(224, 122, 106, .6); color: #f3b4a8; } .toast.good { border-color: rgba(143, 184, 154, .6); color: #bfe0c8; }
@keyframes toast { from { opacity: 0; transform: translateY(10px); } 10%, 85% { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px); } }

/* ── 浮层 ── */
.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; background: radial-gradient(ellipse at center, rgba(10, 8, 6, .35), rgba(10, 8, 6, .72)); animation: fade .5s var(--ease); z-index: 5; }
.overlay.clear { background: none; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(100%, 560px); max-height: 100%; overflow: auto; padding: 26px 28px; background: var(--bg-deep); animation: rise .6s var(--ease); scrollbar-width: thin; scrollbar-color: rgba(232, 180, 106, .3) transparent; }
.sheet.wide { width: min(100%, 1060px); }
.sheet.mid { width: min(100%, 760px); }
@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(.985); } }
.sheet h2 { margin: 0 0 6px; font: 600 23px/1.3 var(--serif); letter-spacing: .12em; color: var(--amber-b); }
.sheet h3 { margin: 20px 0 9px; font: 600 13px var(--sans); color: var(--ink3); letter-spacing: .22em; }
.sheet .sub { color: var(--ink2); font-size: 13.5px; line-height: 1.75; margin: 0 0 4px; }
.eyebrow { font-size: 11.5px; letter-spacing: .3em; color: var(--amber); margin-bottom: 8px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 22px; }
.row.between { justify-content: space-between; }
.tipbox { margin-top: 14px; padding: 10px 14px; border-left: 2px solid var(--amber); background: rgba(232, 180, 106, .06); font-size: 12.5px; color: var(--ink2); line-height: 1.7; border-radius: 0 8px 8px 0; }
.tipbox b { color: var(--amber-b); font-weight: 600; margin-right: 6px; }

/* 开场 */
.splash { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; background: radial-gradient(ellipse at 50% 55%, rgba(12, 9, 7, .1), rgba(12, 9, 7, .62)); animation: fade 1.6s var(--ease); }
.splash .card { padding: 38px 52px 34px; background: rgba(20, 15, 11, .58); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); max-width: 560px; }
.splash .k { font-size: 12px; letter-spacing: .42em; color: var(--amber); text-indent: .42em; }
.splash h1 { margin: 16px 0 12px; font: 600 clamp(40px, 8vw, 62px)/1.15 var(--serif); letter-spacing: .26em; text-indent: .26em; color: #fff3dc; text-shadow: 0 0 40px rgba(255, 180, 90, .45); }
.splash p { margin: 0 0 26px; color: var(--ink2); letter-spacing: .14em; line-height: 1.9; font-size: 14px; }
.splash .foot { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 0; right: 0; font-size: 11.5px; color: var(--ink3); letter-spacing: .06em; padding: 0 16px; line-height: 1.7; }
.splash .corner { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink3); letter-spacing: .16em; }
.splash .corner span { padding: 6px 12px; border-radius: 999px; background: rgba(20, 15, 11, .5); border: 1px solid var(--line2); }

/* 选项卡片 */
.cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.card { text-align: left; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .025); transition: all .25s var(--ease); position: relative; }
.card:hover { border-color: rgba(232, 180, 106, .45); background: rgba(232, 180, 106, .06); }
.card.sel { border-color: var(--amber); background: rgba(232, 180, 106, .13); box-shadow: 0 0 0 1px var(--amber) inset; }
.card .c1 { font: 600 16px var(--serif); letter-spacing: .06em; color: var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.card .c1 small { font: 11.5px var(--sans); color: var(--amber); letter-spacing: .02em; }
.card .c2 { margin-top: 6px; font-size: 12px; color: var(--ink2); line-height: 1.65; }
.card .c3 { margin-top: 7px; font: 12px var(--num); color: var(--ink3); }
.chipsel { display: flex; gap: 8px; flex-wrap: wrap; }
.chipsel button { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); transition: all .2s; font-size: 13px; }
.chipsel button:hover { border-color: rgba(232, 180, 106, .45); }
.chipsel button.sel { border-color: var(--amber); background: rgba(232, 180, 106, .15); color: var(--amber-b); }
.field { display: flex; gap: 8px; }
.field input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); outline: none; font: 600 17px var(--serif); letter-spacing: .12em; user-select: text; -webkit-user-select: text; }
.field input:focus { border-color: var(--amber); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin-top: 4px; }
.kv div { padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line2); }
.kv span { display: block; font-size: 11.5px; color: var(--ink3); letter-spacing: .06em; }
.kv b { display: block; margin-top: 3px; font: 600 16.5px var(--num); color: var(--ink); }
.kv b small { font: 11.5px var(--sans); color: var(--ink3); margin-left: 3px; font-weight: 400; }
.verdict { margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.7; border: 1px solid; }
.verdict.g { color: #bfe0c8; border-color: rgba(143, 184, 154, .45); background: rgba(143, 184, 154, .08); }
.verdict.a { color: var(--amber-b); border-color: rgba(232, 180, 106, .45); background: rgba(232, 180, 106, .08); }
.verdict.r { color: #f3b4a8; border-color: rgba(224, 122, 106, .5); background: rgba(224, 122, 106, .08); }

/* 事件 */
.choice { display: block; width: 100%; text-align: left; padding: 12px 16px; margin-top: 9px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .025); transition: all .22s var(--ease); }
.choice:hover { border-color: var(--amber); background: rgba(232, 180, 106, .1); transform: translateX(4px); }
.choice b { display: block; font: 600 15px var(--serif); letter-spacing: .05em; color: var(--ink); }
.choice span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink2); }

/* 月报 */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 14px 0 6px; }
.kpi { padding: 11px 13px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line2); }
.kpi span { font-size: 11.5px; color: var(--ink3); letter-spacing: .08em; }
.kpi b { display: block; margin-top: 4px; font: 600 20px var(--num); }
.kpi small { font-size: 11.5px; color: var(--ink3); }
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.pl { width: 100%; border-collapse: collapse; font-size: 13px; }
.pl td { padding: 5.5px 0; border-bottom: 1px dashed var(--line2); color: var(--ink2); }
.pl td:nth-child(2) { text-align: right; font-family: var(--num); color: var(--ink); width: 96px; }
.pl td:nth-child(3) { text-align: right; font: 11.5px var(--num); color: var(--ink3); width: 50px; }
.pl tr.sum td { border-top: 1px solid var(--line); border-bottom: 0; padding-top: 9px; font-weight: 600; color: var(--ink); font-size: 14.5px; }
.pl .bar { display: inline-block; height: 5px; border-radius: 3px; background: rgba(232, 180, 106, .5); vertical-align: middle; margin-left: 8px; }
.notes { margin: 0; padding: 0; list-style: none; }
.notes li { position: relative; padding: 7px 0 7px 16px; font-size: 13px; line-height: 1.7; color: var(--ink2); border-bottom: 1px dashed var(--line2); }
.notes li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.spark { width: 100%; height: 86px; display: block; margin-top: 4px; }

/* 夜间决策 */
.night { display: grid; grid-template-columns: 1fr 292px; gap: 22px; align-items: start; }
.tabs { display: flex; gap: 6px; margin: 14px 0 14px; flex-wrap: wrap; }
.tabs button { padding: 7px 15px; border-radius: 999px; color: var(--ink2); border: 1px solid transparent; font-size: 13.5px; letter-spacing: .06em; }
.tabs button.sel { color: var(--amber-b); border-color: var(--line); background: rgba(232, 180, 106, .1); }
.item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .025); margin-bottom: 7px; }
.item .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
.item .nm { flex: 1; min-width: 0; }
.item .nm b { font: 600 14.5px var(--serif); letter-spacing: .04em; display: block; }
.item .nm > span { display: block; margin-top: 4px; }
.item .sc { font: 600 13px var(--num); width: 34px; text-align: right; }
.radar { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 7px; }
.fl { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line2); text-align: left; background: rgba(255, 255, 255, .02); transition: all .2s; }
.fl:hover { border-color: rgba(232, 180, 106, .5); }
.fl.sel { border-color: var(--amber); background: rgba(232, 180, 106, .12); }
.fl.has { opacity: .5; }
.fl b { display: flex; align-items: center; gap: 6px; font: 600 13.5px var(--serif); }
.fl b i { width: 9px; height: 9px; border-radius: 50%; }
.fl > span { display: block; margin-top: 5px; font-size: 11px; color: var(--ink3); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--amber-b); font-size: 18px; line-height: 1; }
.stepper button:hover { background: rgba(232, 180, 106, .15); }
.stepper b { font: 600 24px var(--num); min-width: 70px; text-align: center; }
.opt { display: flex; gap: 12px; align-items: center; padding: 10px 13px; border-radius: 10px; border: 1px solid var(--line2); margin-bottom: 7px; text-align: left; width: 100%; transition: all .2s; }
.opt:hover { border-color: rgba(232, 180, 106, .45); }
.opt.sel { border-color: var(--amber); background: rgba(232, 180, 106, .11); }
.opt .o1 { flex: 1; } .opt .o1 b { font: 600 14px var(--serif); letter-spacing: .04em; } .opt .o1 span { display: block; font-size: 12px; color: var(--ink2); margin-top: 2px; }
.opt .o2 { font: 600 13px var(--num); color: var(--amber-b); white-space: nowrap; }
.fc { padding: 16px 16px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(232, 180, 106, .045); position: sticky; top: 0; }
.fc h4 { margin: 0 0 10px; font: 600 12px var(--sans); letter-spacing: .22em; color: var(--amber); }
.fc .big { font: 600 27px var(--num); }
.fc .ln { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink2); padding: 4.5px 0; border-bottom: 1px dashed var(--line2); }
.fc .ln b { font: 600 13px var(--num); color: var(--ink); }
.meter { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 6px 0 2px; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--green); transition: width .4s var(--ease); }
.fbar { display: grid; grid-template-columns: 74px 1fr 40px; gap: 6px; align-items: center; font-size: 11.5px; color: var(--ink3); margin-top: 5px; }
.fbar div { height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .07); position: relative; }
.fbar div i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.fbar span:last-child { text-align: right; font-family: var(--num); color: var(--ink2); }

/* 结局 */
.rank { font: 600 clamp(38px, 7vw, 54px) var(--serif); letter-spacing: .22em; text-indent: .22em; color: #fff3dc; text-shadow: 0 0 36px rgba(255, 180, 90, .5); margin: 6px 0 4px; text-align: center; }
.center { text-align: center; }

@media (max-width: 860px) {
  .night, .two { grid-template-columns: 1fr; }
  .fc { position: static; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .sheet { padding: 20px 18px; }
}
@media (max-width: 620px) {
  body { font-size: 13px; }
  .plate { padding: 7px 12px 8px; min-width: 0; } .plate h1 { font-size: 15.5px; } .plate p { font-size: 11px; }
  .chip { padding: 5px 9px; font-size: 11px; } .chip b { font-size: 12.5px; }
  .chip.hide-s { display: none; }
  #ticket { min-width: 250px; padding: 8px 10px 10px; top: max(60px, calc(env(safe-area-inset-top) + 52px)); } #ticket .t2 { font-size: 16px; margin-bottom: 7px; }
  .steps .st { width: 40px; }
  #hotbar { gap: 5px; padding: 6px; } .hb { width: 49px; height: 54px; font-size: 10px; } .hb em { font-size: 20px; } .hb kbd { display: none; }
  #cup { right: 10px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 76px); transform: scale(.8); transform-origin: right bottom; }
  #joy { left: 12px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 78px); width: 88px; height: 88px; }
  #prompt { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 74px); font-size: 11.5px; }
  #daybar { top: auto; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 200px); right: 10px; }
  .splash .card { padding: 28px 22px 26px; } .splash p { font-size: 13px; letter-spacing: .08em; }
  .splash .corner span:last-child { display: none; }
}
