/* Today's Assignment · v0.1 深色版 */

:root {
  color-scheme: dark;

  --bg-top: #241d15;
  --bg-mid: #141210;
  --bg-deep: #0b0a09;
  --card: #1a1713;
  --card-2: #211c16;
  --ink: #ece4d5;
  --ink-soft: #b6ab97;
  --ink-mute: #7c7365;
  --line: #2e2820;
  --line-strong: #463c2e;
  --accent: #c9603f;
  --accent-2: #e08159;
  --accent-soft: rgba(201, 96, 63, .16);
  --gold: #d9a94e;
  --neg: #e2735f;
  --shadow: 0 16px 36px rgba(0, 0, 0, .5);

  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: ui-serif, Georgia, "Songti SC", "SimSun", "Times New Roman", serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; margin: 0; }

body {
  background: radial-gradient(120% 60% at 50% -10%, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-deep) 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  overflow: hidden;
  overscroll-behavior: none;
}

#app {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* ---------- 屏幕切换 ---------- */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .26s ease, transform .26s ease;
}
.screen.is-active { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- 通用按钮 ---------- */
.btn {
  font-family: inherit;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 13px 20px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
  font-weight: 500;
}
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .4; cursor: default; }
.btn-primary { background: linear-gradient(180deg, #f3ebdb, #e0d5c0); color: #17130e; }
.btn-accent { background: linear-gradient(180deg, #d2704c, #b5543a); color: #fff6ef; }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line-strong); }
.btn-sm { padding: 11px 16px; font-size: 14px; border-radius: 10px; }
.btn-mini {
  padding: 7px 13px;
  font-size: 12.5px;
  border-radius: 999px;
  background: #2c261e;
  color: var(--ink-soft);
}
.btn-mini.is-ready {
  background: linear-gradient(180deg, #d2704c, #b5543a);
  color: #fff6ef;
}

/* ---------- 1 · 进入页 ---------- */
.screen-entry { justify-content: center; padding: 0 34px; }
.entry-frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(236, 228, 213, .09);
  border-radius: 6px;
  pointer-events: none;
}
.entry-inner { position: relative; z-index: 1; }
.entry-kicker {
  margin: 0 0 18px;
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--ink-mute);
}
.entry-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 47px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.5px;
  color: #f4ede0;
}
.entry-rule { width: 46px; height: 2px; background: var(--accent); margin: 28px 0 20px; }
.entry-sub { margin: 0; font-size: 14px; line-height: 1.9; color: var(--ink-soft); }
.btn-enter { margin-top: 38px; width: 100%; }
.entry-foot {
  margin: 18px 0 0;
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: .04em;
}

/* ---------- 2 · 主界面 ---------- */
.screen-home { padding-top: env(safe-area-inset-top); }

.home-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 22px 20px 16px;
}
.who {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  min-width: 0;
}
.who-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #f4ede0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.who-sub { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ink-mute); letter-spacing: .04em; }

.top-actions { display: flex; gap: 8px; flex: none; }
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
}
.pill-count {
  min-width: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
}
.coin-chip { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 600; }
.coin-chip i {
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(140deg, #f0cf7d, #b8892f);
  display: inline-block;
}

.home-main {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 44px 0 20px;
}

.today-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(178deg, #1e1a14 0%, #17140f 100%);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
  overflow: hidden;
}
.today-card:active { transform: scale(.993); }

.today-head { display: flex; align-items: baseline; justify-content: space-between; }
.today-label { font-size: 16px; font-weight: 600; letter-spacing: .03em; color: #f4ede0; }
.today-label::before {
  content: "";
  display: inline-block;
  width: 3px; height: 13px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: -1px;
}
.today-count { font-size: 12px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }

.today-peek {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  flex: none;
}
.peek-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  border-bottom: 1px dashed rgba(255, 255, 255, .07);
}
.peek-row:last-child { border-bottom: 0; }
.peek-mark {
  flex: none;
  width: 15px; height: 15px;
  border-radius: 4px;
  border: 1.2px solid var(--line-strong);
  font-size: 10px;
  line-height: 13px;
  text-align: center;
  color: transparent;
}
.peek-row.is-done .peek-mark { background: var(--accent); border-color: var(--accent); color: #fff6ef; }
.peek-row.is-done .peek-title { color: var(--ink-mute); text-decoration: line-through; }
.peek-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peek-more { padding-top: 10px; font-size: 12px; color: var(--ink-mute); }

.today-go { margin-top: 14px; font-size: 12.5px; color: var(--accent-2); letter-spacing: .03em; }

.side-rail {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-tab {
  width: 28px;
  height: 92px;
  display: grid;
  place-items: center;
  padding: 0;
  writing-mode: vertical-rl;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #1f1a14;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 11.5px;
  letter-spacing: .18em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.side-tab:active { background: #272119; }

.week-bar {
  margin: 14px 16px calc(16px + env(safe-area-inset-bottom));
  padding: 13px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.week-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.week-top span:last-child { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.week-track {
  position: relative;
  height: 5px;
  border-radius: 3px;
  background: #2a241c;
  margin: 10px 0 8px;
}
.week-track i {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #8f4a30, var(--accent-2));
  transition: width .4s ease;
}
.week-tick {
  position: absolute;
  left: 50%; top: -2px;
  width: 1px; height: 9px;
  background: rgba(236, 228, 213, .22);
}
.week-hint { font-size: 10.5px; color: var(--ink-mute); letter-spacing: .02em; }

/* ---------- 页面 ---------- */
.screen-page { background: linear-gradient(180deg, #141110, #0c0b0a); }
.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.page-top h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.page-back {
  background: none;
  border: 0;
  padding: 4px 0;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  min-width: 58px;
  text-align: left;
}
.page-top-pad { min-width: 58px; }
.page-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); }

.balance-card {
  padding: 20px 20px 18px;
  border-radius: 16px;
  background: linear-gradient(150deg, #2b2219 0%, #1a1612 62%);
  border: 1px solid #3a2f22;
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .045);
}
.balance-label { font-size: 11.5px; letter-spacing: .18em; color: rgba(236, 228, 213, .5); }
.balance-num {
  display: block;
  margin: 8px 0 6px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: #f4ede0;
  font-variant-numeric: tabular-nums;
}
.balance-sub { font-size: 12px; color: var(--ink-mute); }
.balance-sub b { color: var(--gold); font-weight: 600; }

.panel {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; }
.panel-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.panel-tag {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  letter-spacing: .04em;
}
.panel-desc { margin: 10px 0 14px; font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); }
.field-row { display: flex; gap: 10px; }
.field {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #100e0b;
  color: var(--ink);
  outline: none;
}
.field:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(224, 129, 89, .14); }
.field::placeholder { color: #6c6355; }
.panel-note { margin: 12px 0 0; font-size: 11.5px; color: var(--ink-mute); }

/* ---------- 商店道具行 ---------- */
.item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, .08);
}
.item-icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(150deg, #35271b, #241b14);
  border: 1px solid #4a3728;
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--serif);
}
.item-main { flex: 1; min-width: 0; }
.item-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #f0e8d9;
}
.item-owned { font-size: 10.5px; font-weight: 400; color: var(--ink-mute); }
.item-owned b { color: var(--ink-soft); font-weight: 600; }
.item-desc { margin-top: 3px; font-size: 11.5px; line-height: 1.55; color: var(--ink-soft); }
.item-limit { margin-top: 4px; font-size: 10.5px; color: var(--ink-mute); }
.item-row .btn { flex: none; }

/* ---------- 背包 ---------- */
.bag-grid { display: flex; flex-direction: column; gap: 10px; }
.bag-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.bag-main { flex: 1; min-width: 0; }
.bag-name { font-size: 13.5px; font-weight: 600; color: #f0e8d9; }
.bag-desc { margin-top: 4px; font-size: 11.5px; line-height: 1.55; color: var(--ink-soft); }
.bag-count {
  flex: none;
  margin-left: 6px;
  padding-left: 6px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.bag-count small { font-size: 10px; color: var(--ink-mute); font-weight: 400; }
.bag-empty {
  padding: 48px 10px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-mute);
}

/* ---------- 完成情况 ---------- */
.history-list { display: flex; flex-direction: column; gap: 10px; }
.hist-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.hist-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hist-date { font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
.hist-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: .06em;
  background: rgba(255, 255, 255, .06);
  color: var(--ink-mute);
}
.hist-badge.live { background: var(--accent-soft); color: var(--accent-2); }
.hist-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 9px;
  font-size: 12px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.hist-gain { color: var(--gold); }
.hist-loss { color: var(--neg); }
.hist-missed {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(201, 96, 63, .12);
  font-size: 11.5px;
  line-height: 1.65;
  color: #e3a591;
}
.hist-missed b { font-weight: 600; }
.hist-empty { padding: 40px 10px; text-align: center; font-size: 13px; color: var(--ink-mute); }

/* ---------- 弹窗 ---------- */
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0);
  transition: background .24s ease;
}
.modal-layer.show { background: rgba(0, 0, 0, .62); }
.modal {
  width: 100%;
  max-width: 380px;
  max-height: 82dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #201b15, #191510);
  border: 1px solid #332c23;
  border-radius: 18px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, .65);
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity .2s ease, transform .26s cubic-bezier(.2, .8, .3, 1);
}
.modal-layer.show .modal { opacity: 1; transform: none; }
.modal-sm { max-width: 300px; }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 10px;
  flex: none;
}
.modal-title { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .03em; }
.modal-close {
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink-mute);
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;
}
.modal-close:active { background: rgba(255, 255, 255, .07); }
.modal-close.is-text { width: auto; padding: 0 6px; font-size: 13px; color: var(--ink-soft); border-radius: 8px; }
.modal-body {
  padding: 0 18px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- 任务列表 ---------- */
.group-label {
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--ink-mute);
  margin: 16px 0 2px;
}
.group-label:first-child { margin-top: 2px; }

.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .07);
}
.task-row:last-child { border-bottom: 0; }
.task-main {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  border: 0;
  padding: 2px 0;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}
.task-title { display: block; font-size: 14px; line-height: 1.4; color: var(--ink); }
.task-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 11px; color: var(--ink-mute); }
.task-reward { color: var(--gold); font-variant-numeric: tabular-nums; }
.task-reward.neg { color: var(--neg); }
.task-penalty { color: var(--neg); font-variant-numeric: tabular-nums; }
.task-progress { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tag {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .07);
  color: #a89b86;
  font-size: 10px;
  letter-spacing: .04em;
}
.tag.m { background: var(--accent-soft); color: var(--accent-2); }
.task-box {
  flex: none;
  width: 27px; height: 27px;
  border-radius: 7px;
  border: 1.5px solid var(--line-strong);
  background: #100e0b;
  color: #fff6ef;
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.task-box:active { transform: scale(.9); }
.task-box.plus {
  color: var(--accent-2);
  font-size: 16px;
  font-weight: 600;
  background: rgba(201, 96, 63, .12);
  border-color: rgba(201, 96, 63, .45);
}
.task-row.is-done .task-box { background: var(--accent); border-color: var(--accent); }
.task-row.is-done .task-title { color: var(--ink-mute); text-decoration: line-through; }
.task-row.is-done .task-reward { color: var(--ink-mute); }

.task-summary {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-mute);
}

/* ---------- 小弹窗内容 ---------- */
.detail-title { font-size: 16px; font-weight: 600; margin: 2px 0 10px; line-height: 1.4; }
.detail-desc { font-size: 13px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 16px; }
.detail-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
}
.detail-reward b { color: var(--gold); font-size: 15px; }

.confirm-q { margin: 0 0 14px; font-size: 14px; line-height: 1.6; }
.confirm-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
}
.confirm-task-reward { color: var(--gold); font-weight: 600; flex: none; }
.modal-foot { display: flex; gap: 10px; margin-top: 18px; }
.modal-foot .btn { flex: 1; padding: 12px 10px; font-size: 14px; }

/* ---------- 周活跃 ---------- */
.tier-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .07);
}
.tier-row:last-child { border-bottom: 0; }
.tier-main { flex: 1; min-width: 0; }
.tier-title { font-size: 14px; font-weight: 600; }
.tier-sub { margin-top: 4px; font-size: 11.5px; color: var(--ink-mute); line-height: 1.5; }
.tier-row.is-claimed .tier-title { color: var(--ink-mute); }
.week-progress-box { margin-bottom: 6px; }
.week-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.week-track.big { height: 6px; margin: 0 0 4px; }

/* ---------- 个人主页 ---------- */
.profile-name-row { display: flex; gap: 10px; }
.profile-count { text-align: right; font-size: 10.5px; color: var(--ink-mute); margin: 6px 0 0; }
.stat-grid { display: flex; gap: 10px; margin: 18px 0; }
.stat {
  flex: 1;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}
.stat-label { font-size: 10.5px; letter-spacing: .12em; color: var(--ink-mute); }
.stat-num { display: block; margin-top: 6px; font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-num.quota { color: var(--gold); }
.use-log { margin-top: 14px; font-size: 11.5px; color: var(--ink-mute); line-height: 1.9; }
.use-log b { color: var(--ink-soft); font-weight: 500; }

.profile-tools { display: flex; gap: 10px; margin-top: 12px; }
.profile-tools .btn { flex: 1; padding: 10px 8px; font-size: 13px; }
.profile-note { margin: 10px 0 0; font-size: 10.5px; line-height: 1.65; color: var(--ink-mute); }
.card-note { margin: 8px 0 0; font-size: 11px; color: var(--ink-mute); text-align: right; }
.card-note b { color: var(--gold); font-weight: 600; }

/* ---------- 任务获取器 ---------- */
.draw-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 88px;
  margin: 4px 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: radial-gradient(120% 100% at 50% 0%, rgba(201, 96, 63, .18), rgba(255, 255, 255, .02));
  color: #f4ede0;
}
.draw-num {
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-family: var(--serif);
}
.draw-unit { font-size: 13px; color: var(--ink-mute); }

.wheel-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.wheel-tabs::-webkit-scrollbar { display: none; }
.wheel-tab {
  flex: none;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--ink-mute);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
}
.wheel-tab.is-active {
  background: var(--accent-soft);
  border-color: rgba(201, 96, 63, .45);
  color: var(--accent-2);
  font-weight: 600;
}

.wheel-slots { display: flex; flex-direction: column; gap: 8px; }
.wheel-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  transition: background .12s ease, border-color .12s ease;
}
.wheel-slot.is-rolling { border-color: var(--accent-2); background: rgba(201, 96, 63, .12); }
.wheel-slot.is-hit { border-color: var(--accent); background: var(--accent-soft); }
.slot-no { flex: none; width: 16px; text-align: center; font-size: 11px; color: var(--ink-mute); }
.slot-input {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
}
.slot-input::placeholder { color: #615a4e; }
.slot-odds { flex: none; font-size: 10px; color: var(--ink-mute); }

.draw-note {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.section-title {
  margin: 22px 0 2px;
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--ink-mute);
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(30px + env(safe-area-inset-bottom));
  transform: translate(-50%, 14px);
  z-index: 200;
  max-width: 78vw;
  padding: 9px 16px;
  border-radius: 999px;
  background: #efe6d6;
  color: #1a1611;
  font-size: 12.5px;
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .22s ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
