.ui { position: fixed; inset: 0; pointer-events: none; color: #c9d6d4; z-index: 5;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.ui .zh { display: block; }
.ui .en { display: block; font-size: 0.62em; letter-spacing: 0.04em; opacity: 0.62; margin-top: 2px; }
.ui .d-row .en, .ui .d-v .en, .ui .bad .en { display: inline; margin: 0 0 0 6px; }
.ui .u { font-size: 0.6em; opacity: 0.6; margin-left: 3px; }
.ui .who { display: block; font-size: 11px; letter-spacing: 0.2em; opacity: 0.5; margin-bottom: 4px; }
.ui > div { opacity: 0; transition: opacity 0.6s ease; }
.ui > div.on { opacity: 1; }

.ui .title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%); transition: opacity 1.4s ease; }
.ui .title.on { pointer-events: auto; }
.title-zh { font-size: 64px; letter-spacing: 0.5em; margin-left: 0.5em; font-weight: 300; color: #e4ecea; }
.title-en { font-size: 13px; letter-spacing: 0.7em; margin: 6px 0 0 0.7em; opacity: 0.6; }
.title-ch { font-size: 14px; letter-spacing: 0.12em; margin-top: 12px; text-align: center; max-width: 90vw; color: #dfe8e6;
  background: rgba(2,6,8,.6); padding: 7px 16px 6px; border-radius: 2px; }
.ui .chapters { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.ui .ch-btn { pointer-events: auto; background: rgba(2,6,8,.6); color: #aebcba; border: 1px solid rgba(200,220,215,.12); border-radius: 2px;
  padding: 7px 16px 6px; font: inherit; font-size: 14px; letter-spacing: 0.12em; cursor: pointer; text-shadow: inherit;
  transition: color 0.3s, border-color 0.3s, background 0.3s; }
.ui .ch-btn .en { letter-spacing: 0.06em; }
.ui .ch-btn:hover { color: #dfe8e6; border-color: rgba(220,235,230,.4); }
.ui .ch-btn.sel { color: #eef4f2; cursor: default; border-color: rgba(225,238,234,.7); background: rgba(22,40,44,.75); }
.ui .btn { pointer-events: auto; margin-top: 34px; background: rgba(4,10,12,.55); color: #dfe8e6; border: 1px solid rgba(200,220,215,.35);
  padding: 9px 30px 8px; font: inherit; font-size: 18px; letter-spacing: 0.3em; cursor: pointer; border-radius: 2px; text-shadow: inherit; }
.ui .btn .en { letter-spacing: 0.2em; }
.ui .btn .k { display: block; font-size: 10px; opacity: 0.45; margin-top: 3px; letter-spacing: 0.1em; }
.ui .btn:hover { background: rgba(30,50,55,.5); border-color: rgba(220,235,230,.6); }
.ui .keys { font-size: 12px; opacity: 0.45; margin-top: 30px; text-align: center; max-width: 92vw; line-height: 1.5; }

.ui .objective { position: absolute; left: 22px; top: 18px; font-size: 14px; max-width: 46vw; letter-spacing: 0.04em; transition: opacity 1.2s ease; }
.ui .subtitle { position: absolute; left: 50%; bottom: 9vh; transform: translateX(-50%); text-align: center; font-size: 18px;
  letter-spacing: 0.06em; max-width: 80vw; transition: opacity 0.5s ease; }
.ui .prompt { position: absolute; left: 50%; top: 72%; transform: translateX(-50%); font-size: 14px; opacity: 0; text-align: center; }
.ui .prompt.on { opacity: 0.85; }

.ui .wrist { position: absolute; right: 22px; bottom: 18px; width: 112px; padding: 8px 10px 9px; text-align: right;
  font-family: ui-monospace, "SF Mono", Consolas, monospace; background: rgba(4,10,12,.28); border-radius: 3px; color: #b9d0cc; }
.ui .wrist.on { opacity: 0.88; }
.w-row { font-size: 17px; line-height: 1.25; }
.w-small { font-size: 12px; opacity: 0.7; }
.w-line { font-size: 12px; color: #d8c79a; opacity: 0; transition: opacity 0.6s; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
.w-line.on { opacity: 0.9; }
.w-logger { color: #e3c25a; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
.w-bar { position: relative; height: 3px; margin: 5px 0 4px; background: rgba(180,200,200,.15); }
.w-fill { position: absolute; right: auto; left: 0; top: 0; bottom: 0; background: #8fc2b6; transition: background 0.4s; }
.w-tick { position: absolute; top: -2px; width: 1px; height: 7px; background: rgba(220,230,230,.35); }
.wrist[data-level="turn"] .w-fill { background: #d6b25a; }
.wrist[data-level="turn"] { color: #e0c98c; }
.wrist[data-level="low"] .w-fill { background: #d0573f; }
.wrist[data-level="low"] { color: #ec8d78; animation: lowgas 1.2s ease-in-out infinite; }
@keyframes lowgas { 50% { color: #b9d0cc; } }

.ui .vignette { position: absolute; inset: 0; --b: 0; transition: none;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) calc((1 - var(--b)) * 70%), rgba(0,0,0,1) calc((1 - var(--b)) * 70% + 22%)); }
.ui .vignette.on { opacity: 1; }
.ui .fade { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity 1.2s ease; }

.ui .panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 300px; max-width: 86vw; padding: 26px 34px 24px;
  background: rgba(3,8,10,.62); border: 1px solid rgba(190,210,205,.14); border-radius: 3px; text-align: center; }
.ui .panel.on { pointer-events: auto; }
.p-title { font-size: 22px; letter-spacing: 0.3em; margin-bottom: 14px; }
.d-rows { text-align: left; font-size: 14px; margin: 6px 0 18px; }
.d-row { display: flex; justify-content: space-between; gap: 28px; padding: 5px 0; border-bottom: 1px solid rgba(190,210,205,.08); }
.d-k .en { opacity: 0.5; }
.d-v { font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }
.bad { color: #e0a27a; }
.d-zhou { font-size: 16px; margin: 4px 0 0; line-height: 1.5; }
.d-teaser { font-size: 14px; margin: 18px auto 0; padding-top: 14px; border-top: 1px solid rgba(190,210,205,.1); line-height: 1.5; opacity: 0.72; max-width: 30em; }
.d-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.ui .d-btns .btn { margin-top: 0; font-size: 16px; letter-spacing: 0.2em; padding: 9px 22px 8px; }
.ui .btn:disabled { opacity: 0.4; cursor: default; background: rgba(8,16,18,.2); border-color: rgba(200,220,215,.18); }
.ui .subtitle.narr .zh { opacity: 0.85; }
@media (max-width: 600px) { .title-zh { font-size: 44px; } .ui .panel { padding: 18px 16px; } .d-row { gap: 12px; } }
