:root {
  --ink: #142028;
  --ink-soft: #3c515b;
  --muted: #5d7179;
  --line: #d4e0e4;
  --field: #e7eef0;
  --card: #f7fafa;
  --white: #ffffff;
  --brass: #c4842a;
  --brass-deep: #8a5c14;
  --brass-soft: #f4e6cf;
  --cinnabar: #9e3b2f;
  --cinnabar-soft: #f6e6e2;
  --celadon: #2c6d64;
  --celadon-soft: #e4f1ee;
  --night: #0e1c22;
  --night-2: #17313a;
  --fog: #f3f7f6;
  --serif: "Songti SC", "STSong", "PMingLiU", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --num: "Bahnschrift", "Segoe UI", "PingFang SC", sans-serif;
  --safe: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sans);
  color: var(--fog);
  background: #08141a;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: 0.45; }
img { max-width: 100%; }

.studio {
  min-height: 100%;
  display: flex;
  background:
    radial-gradient(520px 520px at 88% -10%, rgba(196, 132, 42, 0.16), transparent 60%),
    linear-gradient(180deg, #10242c 0%, #08141a 42%, #071116 100%);
}
.rail {
  width: 276px;
  flex: none;
  height: 100vh;
  overflow: auto;
  padding: 22px 16px 28px;
  background: rgba(8, 20, 26, 0.72);
  border-right: 1px solid rgba(228, 181, 106, 0.16);
  position: sticky;
  top: 0;
}
.rail::-webkit-scrollbar { width: 0; }
.brand-mark { width: 28px; height: 28px; color: #e4b56a; }
.brand-kicker {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #e4b56a;
}
.brand-name {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f4f7f6;
}
.brand-sub { margin: 6px 0 0; color: #9bb0b6; font-size: 12px; line-height: 1.5; }
.rail-actions { display: flex; gap: 8px; margin: 16px 0 8px; }
.rail-actions button, .seg button, .catalog-btn {
  border: 1px solid rgba(228, 181, 106, 0.28);
  color: #e4b56a;
  border-radius: 4px;
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}
.rail-actions button.on, .seg button.on { background: #e4b56a; color: #1c1408; border-color: #e4b56a; }
.rail-group { margin-top: 16px; }
.rail-group h3 {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #7f969c;
}
.rail-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  color: #d5e2e4;
  padding: 7px 8px;
  border-radius: 4px;
  font-size: 13px;
}
.rail-item small { margin-left: auto; color: #7f969c; font-size: 10px; letter-spacing: 0.08em; }
.rail-item.on { background: rgba(228, 181, 106, 0.12); color: #f3e2c4; }
.rail-item:hover { background: rgba(255, 255, 255, 0.04); }
.rail-controls { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.06); }
.rail-controls p { margin: 10px 0 6px; font-size: 11px; letter-spacing: 0.12em; color: #7f969c; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; }
.mask { display: none; }
.catalog-btn { display: none; }

.stage {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
}
.stage.board-mode { align-items: flex-start; overflow: auto; }
.device-slot { width: 410px; height: 868px; }
.device {
  width: 410px;
  height: 868px;
  padding: 10px;
  border-radius: 40px;
  background: #1a2428;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(228, 181, 106, 0.28);
  transform-origin: top left;
}
.screen {
  width: 390px;
  height: 844px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  background: var(--field);
}
.board {
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 18px 14px;
  padding: 8px 8px 28px;
}
.board-card { color: #d5e2e4; text-align: left; }
.board-card b { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; }
.board-card small { color: #7f969c; font-size: 11px; }
.thumb {
  width: 156px;
  height: 338px;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  position: relative;
}
.thumb .mp {
  width: 390px;
  height: 844px;
  transform: scale(0.4);
  transform-origin: top left;
  pointer-events: none;
}

.mp {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--field);
  color: var(--ink);
  position: relative;
}
.mp.ink { background: var(--night); color: var(--fog); }
.wx { flex: none; position: relative; z-index: 5; }
.mp.paper .wx { background: rgba(247, 250, 250, 0.94); border-bottom: 1px solid rgba(20, 32, 40, 0.06); }
.mp.ink .wx { background: transparent; }
.wx-status, .wx-nav { display: flex; align-items: center; }
.wx-status { height: 28px; padding: 10px 16px 0; justify-content: space-between; }
.wx-time { font-size: 13px; font-weight: 700; font-family: var(--num); letter-spacing: 0.2px; }
.wx-sys { display: flex; align-items: center; gap: 5px; }
.wx-nav { position: relative; height: 44px; }
.wx-back, .wx-side {
  width: 44px;
  height: 40px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}
.wx-title {
  position: absolute;
  left: 96px;
  right: 96px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wx-capsule {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 87px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  overflow: visible;
  z-index: 6;
}
.mp.paper .wx-capsule {
  border: 1px solid rgba(20, 32, 40, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #142028;
}
.mp.ink .wx-capsule {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
}
.wx-capsule button { flex: 1; height: 100%; display: grid; place-items: center; border-radius: 0; }
.wx-capsule button:active { background: rgba(127, 127, 127, 0.12); }
.wx-split { width: 1px; height: 18px; background: currentColor; opacity: 0.22; flex: none; }
.cap-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  background: #f7fafa;
  color: var(--ink);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(8, 20, 28, 0.2);
  overflow: hidden;
  text-align: left;
}
.cap-menu header {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.cap-menu header svg { width: 22px; height: 22px; color: var(--brass-deep); }
.cap-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  font-size: 14px;
  color: var(--ink);
  border-top: 1px solid #eef3f4;
}
.cap-menu button:active { background: #eef3f4; }

.mp-body { flex: 1; min-height: 0; overflow: auto; position: relative; }
.mp-body.col { display: flex; flex-direction: column; }
.grow { flex: 1; }
.mp-body::-webkit-scrollbar { width: 0; }
.pad { padding: 16px 16px 20px; }
.dock {
  flex: none;
  padding: 10px 16px calc(12px + var(--safe));
  background: rgba(247, 250, 250, 0.96);
  border-top: 1px solid var(--line);
}
.mp.ink .dock { background: #10242c; border-top-color: rgba(255,255,255,0.06); }
.tab {
  flex: none;
  height: calc(54px + var(--safe));
  padding: 4px 6px var(--safe);
  display: flex;
  background: #f7fafa;
  border-top: 1px solid var(--line);
}
.tab button { flex: 1; color: #7d9198; font-size: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.tab button svg { width: 22px; height: 22px; }
.tab button.on { color: var(--ink); font-weight: 700; }
.tab button.on svg { color: var(--brass-deep); }
.homebar {
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 8;
}
.homebar i { width: 128px; height: 5px; border-radius: 3px; background: #142028; }
.mp.ink .homebar i { background: rgba(255,255,255,0.86); }

.kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--brass-deep);
}
.mp.ink .kicker { color: #e4b56a; }
h1 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.25;
  margin: 6px 0 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h2 { font-size: 16px; margin: 0; }
.lead { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.mp.ink .lead { color: #b7c6cb; }
.sec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 700;
}
.sec span, .muted { color: var(--muted); font-weight: 500; }
.phase {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 700;
  background: var(--brass-soft);
  color: var(--brass-deep);
}
.phase.p2 { background: var(--celadon-soft); color: var(--celadon); }
.phase.p3 { background: #efe6d4; color: #6d5420; }

.hero {
  margin: 12px 16px 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--night);
  color: var(--fog);
}
.hero .who { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hero .name { font-family: var(--serif); font-size: 28px; margin: 2px 0 0; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(228, 181, 106, 0.45);
  color: #e4b56a;
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.seal {
  width: 58px;
  height: 58px;
  border: 1.5px solid #c45a4c;
  color: #f0b2a8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: 0.08em;
  transform: rotate(-8deg);
  flex: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stats div { padding-top: 12px; }
.stats div + div { border-left: 1px solid rgba(255,255,255,0.08); padding-left: 12px; }
.stats b { display: block; font-family: var(--num); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.stats small { color: #9bb0b6; font-size: 11px; }

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 0 rgba(20, 32, 40, 0.04);
}
.card + .card { margin-top: 10px; }
.task { display: flex; gap: 12px; }
.task i { width: 3px; border-radius: 2px; background: var(--brass); flex: none; }
.task b { display: block; font-size: 16px; margin: 2px 0 4px; }
.task p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.week em { font-style: normal; color: var(--muted); font-size: 11px; }
.day {
  height: 36px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--num);
  font-size: 13px;
  position: relative;
  color: var(--ink);
}
.day.done { background: var(--celadon-soft); color: var(--celadon); }
.day.miss { background: var(--cinnabar-soft); color: var(--cinnabar); }
.day.today { box-shadow: inset 0 0 0 1.5px var(--brass); }
.day.future { color: #a9b8be; }

.medals { display: flex; gap: 8px; }
.medal {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 16px;
  border: 1px solid var(--line);
  color: #9aabb2;
  background: #fff;
}
.medal.on { background: var(--night); color: #e4b56a; border-color: var(--night); }
.medal.now { border-color: var(--brass); color: var(--brass-deep); }

.entry { width: 100%; text-align: left; border-radius: 14px; padding: 16px; margin-bottom: 10px; }
.entry.dark { background: var(--night); color: var(--fog); }
.entry.light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(196, 132, 42, 0.45); }
.entry small { display: block; letter-spacing: 0.14em; font-size: 11px; margin-bottom: 6px; color: #e4b56a; }
.entry.light small { color: var(--brass-deep); }
.entry strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.entry p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: #b7c6cb; }
.entry.light p { color: var(--muted); }

.row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.row b { display: block; font-size: 15px; font-weight: 650; }
.row small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.row em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.row .lock { color: var(--cinnabar); }
.row .ok { color: var(--celadon); }
.row .now { color: var(--brass-deep); }

.btn {
  height: 48px;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.btn.primary { background: var(--brass); color: #1c1408; }
.btn.primary:active { background: #b57822; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.mp.ink .btn.line { color: var(--fog); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.btn.ghost { background: var(--night); color: #f4f7f6; }
.btn.danger { background: var(--cinnabar); color: #fff; }
.btn.ok { background: var(--celadon); color: #fff; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1; }
.btn.slim { height: 36px; font-size: 13px; width: auto; padding: 0 12px; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.mp.ink .field label { color: #b7c6cb; }
input, textarea, select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
}
textarea { height: 88px; padding: 10px 12px; resize: none; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(196, 132, 42, 0.35); border-color: var(--brass); }
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 26, 0.46);
  z-index: 20;
  display: flex;
  align-items: flex-end;
}
.sheet {
  width: 100%;
  background: #f7fafa;
  color: var(--ink);
  border-radius: 16px 16px 0 0;
  padding: 12px 16px calc(16px + var(--safe));
  max-height: 78%;
  overflow: auto;
}
.sheet h3 { font-family: var(--serif); font-size: 22px; margin: 6px 0 8px; }
.handle { width: 36px; height: 4px; border-radius: 2px; background: #d4e0e4; margin: 0 auto 8px; }
.toast {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -8px);
  background: rgba(14, 28, 34, 0.92);
  color: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  z-index: 30;
  max-width: 240px;
  text-align: center;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.toast.show { opacity: 1; }

.closed {
  position: absolute;
  inset: 0;
  background: #08141a;
  color: #f4f7f6;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}
.closed svg { width: 48px; height: 48px; color: #e4b56a; }
.closed h2 { font-family: var(--serif); font-size: 26px; margin: 14px 0 8px; }
.closed p { margin: 0 0 20px; color: #9bb0b6; font-size: 13px; }
.closed .btn { width: 180px; }

.ruler { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.ruler button {
  flex: 1 1 42px;
  height: 54px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--num);
  font-size: 14px;
}
.ruler button.on { background: var(--night); color: #e4b56a; box-shadow: none; }
.ruler button small { display: block; font-family: var(--sans); font-size: 10px; color: inherit; opacity: 0.7; }

.stage-view {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px 20px;
  text-align: center;
}
.progress-line { width: 100%; height: 2px; background: #d4e0e4; margin-bottom: 12px; }
.progress-line i { display: block; height: 100%; background: var(--brass); }
.pcard {
  width: 188px;
  height: 268px;
  background: #f7f8f6;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(8, 20, 24, 0.16);
  position: relative;
  color: #142028;
}
.pcard.red { color: #9e3b2f; }
.pcard .corner { position: absolute; top: 12px; left: 14px; text-align: left; font-family: var(--num); font-size: 22px; line-height: 1; }
.pcard .corner svg { display: block; margin-top: 4px; width: 16px; height: 16px; }
.pcard .pip { position: absolute; inset: 0; display: grid; place-items: center; }
.pcard .pip svg { width: 72px; height: 72px; }
.huge {
  font-family: var(--num);
  font-size: 92px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.glyph {
  width: 168px;
  height: 168px;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px var(--line);
}
.glyph svg { width: 92px; height: 92px; }
.answer-box {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--num);
  font-size: 40px;
  letter-spacing: 0.04em;
}
.mic {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--night);
  color: #e4b56a;
  display: grid;
  place-items: center;
  margin: 8px auto;
}
.mic.holding { transform: scale(0.96); background: var(--brass); color: #1c1408; }
.mic svg { width: 28px; height: 28px; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.keys button {
  height: 48px;
  background: #fff;
  border-radius: 8px;
  font-family: var(--num);
  font-size: 20px;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.keys button:active { background: var(--brass-soft); }

.breath {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(228, 181, 106, 0.55);
  display: grid;
  place-items: center;
  margin: 12px auto 18px;
  animation: breath 4.8s ease-in-out infinite;
}
.breath b { font-family: var(--serif); font-size: 28px; font-weight: 700; }
@keyframes breath {
  0%, 100% { transform: scale(0.84); }
  50% { transform: scale(1); }
}
.audio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
}
.audio .wave { flex: 1; height: 28px; display: flex; align-items: center; gap: 3px; }
.audio .wave i {
  width: 3px;
  height: 8px;
  background: var(--celadon);
  border-radius: 2px;
  animation: wave 1.1s ease-in-out infinite alternate;
}
.audio .wave i:nth-child(2n) { animation-delay: 0.15s; height: 16px; }
.audio .wave i:nth-child(3n) { animation-delay: 0.3s; height: 22px; }
@keyframes wave { to { transform: scaleY(0.45); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  height: 34px;
  padding: 0 10px;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
}
.chips button.on { background: var(--night); color: #f4f7f6; box-shadow: none; }

.radar-wrap { background: #fff; border-radius: 12px; padding: 8px 8px 4px; }
.radar-wrap svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 14px; justify-content: center; font-size: 11px; color: var(--muted); padding-bottom: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; }
.delta { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.delta b { font-family: var(--num); }

.scale { display: flex; gap: 6px; }
.scale button {
  flex: 1;
  height: 36px;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--num);
}
.scale button.on { background: var(--night); color: #e4b56a; }
.q { padding: 12px 0; border-bottom: 1px solid var(--line); }
.q p { margin: 0 0 8px; font-size: 14px; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { border-collapse: collapse; min-width: 520px; font-size: 12px; }
th, td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; white-space: nowrap; }
th { background: #f0f5f6; font-weight: 700; color: var(--ink-soft); }
.tabs-mini { display: flex; gap: 6px; overflow: auto; padding-bottom: 8px; }
.tabs-mini button { flex: none; height: 30px; padding: 0 8px; border-radius: 4px; background: #fff; font-size: 12px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.tabs-mini button.on { background: var(--night); color: #fff; }

.person { display: flex; gap: 10px; align-items: center; }
.avatar {
  width: 36px;
  height: 36px;
  background: var(--night);
  color: #e4b56a;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  flex: none;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #c5d2d6; display: inline-block; margin-right: 4px; }
.dot.live { background: var(--celadon); }
.dot.wait { background: var(--brass); }
.dot.off { background: #c5d2d6; }

.banner {
  margin: 12px 16px 0;
  padding: 10px 12px;
  background: var(--brass-soft);
  color: #6d4e12;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}
.banner.bad { background: var(--cinnabar-soft); color: var(--cinnabar); }
.banner.ok { background: var(--celadon-soft); color: var(--celadon); }

.lockplate {
  margin: 28px 16px;
  padding: 22px 16px;
  text-align: center;
  background: #fff;
  border-radius: 14px;
}
.lockplate .seal { margin: 0 auto 12px; }
.steps { display: flex; gap: 6px; margin: 8px 0 14px; }
.steps i { flex: 1; height: 3px; background: #d4e0e4; border-radius: 2px; }
.steps i.on { background: var(--brass); }
.choice { display: flex; gap: 8px; }
.choice button { flex: 1; height: 42px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.choice button.on { background: var(--night); color: #fff; }

.note {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin: 8px 0 0;
}
.score-hero { text-align: center; padding: 8px 0 4px; }
.score-hero b { font-family: var(--num); font-size: 64px; letter-spacing: -0.04em; display: block; line-height: 1; }
.peg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.peg {
  background: #fff;
  border-radius: 10px;
  padding: 8px 4px 10px;
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}
.peg.on { box-shadow: inset 0 0 0 1.5px var(--brass); background: #fffaf2; }
.peg svg { width: 36px; height: 36px; }
.peg b { display: block; font-family: var(--num); font-size: 12px; }
.peg small { color: var(--muted); font-size: 11px; }
.seq { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.seq i {
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-items: center;
  font-family: var(--num);
  font-style: normal;
  box-shadow: inset 0 0 0 1px var(--line);
}
.seq i.hit { background: var(--celadon-soft); color: var(--celadon); }
.seq i.bad { background: var(--cinnabar-soft); color: var(--cinnabar); }

.login-panel {
  margin-top: 28px;
  background: #f7fafa;
  color: var(--ink);
  border-radius: 18px 18px 0 0;
  padding: 18px 16px 36px;
}
.accounts { margin-top: 8px; }
.accounts button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}
.mark-lg { width: 54px; height: 54px; color: #e4b56a; }

@media (prefers-reduced-motion: reduce) {
  .breath, .audio .wave i { animation: none; }
}
@media (max-width: 860px) {
  .rail {
    position: fixed;
    z-index: 30;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    background: #0c1c22;
  }
  .rail.open { transform: none; }
  .mask { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 25; opacity: 0; pointer-events: none; }
  .mask.show { opacity: 1; pointer-events: auto; }
  .catalog-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 22;
    width: 100%;
    height: 44px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    background: #0e1c22;
  }
  .stage { padding: 8px 0 52px; }
  .device { box-shadow: none; }
}
