:root {
  --ink: #2d211d;
  --muted: #7c6b64;
  --paper: #fffaf3;
  --paper-deep: #f6eadc;
  --red: #a9362b;
  --red-deep: #76251e;
  --red-soft: #f4d9d1;
  --gold: #d8a83e;
  --gold-soft: #f5e5b9;
  --green: #2f7a69;
  --green-soft: #d9ebe3;
  --line: rgba(74, 45, 32, 0.12);
  --shadow: 0 24px 80px rgba(81, 45, 29, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f9eddd 0%, #fff9f0 38%, #f5ecdf 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea {
  font: inherit;
  font-family: inherit;
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
button, label, select, .check-tile, .upload-button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
a { color: var(--red); }

.page-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(12px);
  pointer-events: none;
  opacity: 0.65;
  z-index: -1;
}
.page-glow-a {
  width: 420px;
  height: 420px;
  top: -210px;
  right: -180px;
  background: radial-gradient(circle, rgba(230, 165, 94, 0.38), rgba(230, 165, 94, 0));
}
.page-glow-b {
  width: 500px;
  height: 500px;
  bottom: -250px;
  left: -260px;
  background: radial-gradient(circle, rgba(176, 78, 49, 0.13), rgba(176, 78, 49, 0));
}

.app-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 20px 18px calc(52px + var(--safe-bottom));
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 34px;
  color: #fff8ee;
  background:
    radial-gradient(circle at 85% 12%, rgba(251, 212, 124, 0.24), transparent 29%),
    radial-gradient(circle at 10% 100%, rgba(255, 190, 166, 0.15), transparent 35%),
    linear-gradient(138deg, #7f2922 0%, #a9362b 48%, #bd503b 100%);
  box-shadow: 0 28px 82px rgba(108, 38, 27, 0.3);
}
.hero::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -70px;
  bottom: -86px;
  border: 1px solid rgba(255, 236, 197, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255, 236, 197, 0.05), 0 0 0 52px rgba(255, 236, 197, 0.04);
}
.hero::after {
  content: "福";
  position: absolute;
  right: 22px;
  top: 60px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 112px;
  line-height: 1;
  color: rgba(255, 235, 194, 0.1);
  transform: rotate(-8deg);
  pointer-events: none;
}
.hero-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 248, 238, 0.92);
}
.brand-seal {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  border: 1px solid rgba(255, 235, 194, 0.55);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 17px;
  color: #fff2ca;
  background: rgba(80, 18, 13, 0.22);
}
.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 235, 194, 0.32);
  border-radius: 999px;
  color: #fff7e8;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}
.ghost-button:active { transform: scale(0.97); }
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 42px 0 30px;
}
.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.eyebrow { color: #f3c977; }
.hero h1 {
  margin: 0;
  max-width: 650px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(40px, 8.6vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.hero h1 span {
  color: #ffe3a7;
  text-shadow: 0 8px 28px rgba(75, 19, 13, 0.24);
}
.hero-description {
  max-width: 570px;
  margin: 20px 0 0;
  color: rgba(255, 247, 235, 0.76);
  font-size: 14px;
  line-height: 1.85;
}
.hero-meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}
.date-ribbon {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(59, 15, 11, 0.28);
  color: rgba(255, 249, 239, 0.82);
  font-size: 12px;
}
.date-icon { color: #f3c977; font-size: 15px; }
.date-ribbon strong {
  margin-left: 3px;
  color: #fff4d5;
  white-space: nowrap;
}
.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 234, 192, 0.2);
  border-radius: 18px;
  background: rgba(255, 236, 198, 0.11);
}
.hero-kpi {
  padding: 13px 12px;
  background: rgba(84, 23, 16, 0.22);
}
.hero-kpi span {
  display: block;
  color: rgba(255, 246, 229, 0.62);
  font-size: 10px;
}
.hero-kpi strong {
  display: block;
  margin-top: 4px;
  color: #fff1c9;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.section { margin-top: 30px; }
.section-heading,
.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 3px 14px;
}
.section-kicker {
  color: var(--red);
  opacity: 0.72;
}
.section-heading h2,
.panel-heading h2,
.rules-content h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.section-note,
.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.player-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 21px;
  border: 1px solid rgba(72, 42, 28, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.92);
  box-shadow: 0 16px 46px rgba(83, 51, 32, 0.08);
}
.player-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--player-color, var(--red));
}
.player-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -80px;
  top: 32px;
  border-radius: 50%;
  background: rgba(169, 54, 43, 0.1);
  background: color-mix(in srgb, var(--player-color, var(--red)) 10%, transparent);
}
.player-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 16px;
  color: white;
  background: var(--player-color, var(--red));
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(169, 54, 43, 0.28);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--player-color, var(--red)) 28%, transparent);
}
.player-identity small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.player-identity h3 {
  margin: 1px 0 2px;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.player-role { color: var(--muted); font-size: 11px; }
.player-total {
  margin-left: auto;
  text-align: right;
}
.player-total span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.player-total strong {
  display: block;
  color: var(--player-color, var(--red));
  font-size: 27px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.player-stage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--player-color, var(--red));
  background: #f8eae6;
  background: color-mix(in srgb, var(--player-color, var(--red)) 10%, white);
  font-size: 10px;
  font-weight: 700;
}
.stage-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.next-reward {
  color: var(--muted);
  font-size: 10px;
}
.track-list { display: grid; gap: 13px; margin-top: 18px; }
.track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 11px;
}
.track-head span { color: var(--muted); }
.track-head strong { font-size: 11px; font-variant-numeric: tabular-nums; }
.track-bar {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 3px;
}
.track-bar i {
  height: 6px;
  border-radius: 999px;
  background: rgba(72, 42, 28, 0.09);
}
.track-bar i.is-filled { background: var(--player-color, var(--red)); }
.track-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}
.track-meta .earned { color: var(--player-color, var(--red)); font-weight: 700; }
.sleep-unlocked {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-weight: 700;
}
.player-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 10px;
}
.player-footer strong { color: var(--ink); }
.player-mini-button {
  border: 0;
  padding: 7px 0;
  color: var(--player-color, var(--red));
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.panel {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(72, 42, 28, 0.09);
  border-radius: var(--radius-xl);
  background: rgba(255, 252, 247, 0.93);
  box-shadow: var(--shadow);
}
.panel-heading { align-items: flex-start; }
.save-state {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 9px;
  font-weight: 700;
}
.player-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin: 20px 0;
  padding: 5px;
  border-radius: 16px;
  background: #f2e9dd;
}
.player-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}
.player-switch button.is-active {
  color: var(--switch-color, white);
  background: #fffdf9;
  box-shadow: 0 7px 20px rgba(85, 48, 27, 0.11);
}
.player-switch button .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--dot-color, var(--red));
}
.checkin-form { display: grid; gap: 15px; }
.form-mode-banner {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 14px 0;
  padding: 13px 14px;
  border: 1px solid rgba(216, 168, 62, 0.32);
  border-radius: 15px;
  color: #6d4b12;
  background: linear-gradient(135deg, #fff8e8, #fffdf8);
}
.form-mode-banner[hidden] { display: none; }
.mode-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fffaf0;
  background: #a9781c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.form-mode-banner strong { display: block; font-size: 11px; line-height: 1.5; }
.form-mode-banner p { margin: 3px 0 0; color: #8a6c39; font-size: 9px; line-height: 1.55; }
.day-picker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.field-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.select-wrap { position: relative; }
.select-wrap select {
  min-height: 40px;
  padding: 8px 35px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fffdf9;
-webkit-appearance: none;
  appearance: none;
  font-size: 12px;
  font-weight: 650;
}
.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  color: var(--muted);
  transform: translateY(-55%);
  pointer-events: none;
}
.day-tip { color: var(--muted); font-size: 10px; }
.mission-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}
.mission-study { border-color: rgba(169, 54, 43, 0.16); background: linear-gradient(135deg, #fff8f4, #fffdfb); }
.mission-family { border-color: rgba(216, 168, 62, 0.25); background: linear-gradient(135deg, #fffbf1, #fffdfb); }
.mission-sleep { border-color: rgba(47, 122, 105, 0.2); background: linear-gradient(135deg, #f5fbf8, #fffdfb); }
.mission-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
}
.mission-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 18px;
  font-weight: 800;
}
.mission-family .mission-icon { color: #9b6d15; background: var(--gold-soft); }
.mission-sleep .mission-icon { color: var(--green); background: var(--green-soft); }
.mission-label {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
}
.mission-label span { margin-right: 5px; color: var(--red); }
.mission-title h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.015em;
}
.mission-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}
.mission-value {
  align-self: start;
  min-width: 43px;
  padding: 6px 8px;
  border-radius: 9px;
  color: var(--red);
  background: var(--red-soft);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}
.mission-family .mission-value { color: #8d6416; background: var(--gold-soft); }
.session-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.check-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 253, 249, 0.8);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.check-tile:active { transform: scale(0.99); }
.check-tile.is-checked {
  border-color: rgba(169, 54, 43, 0.3);
  border-color: color-mix(in srgb, var(--red) 32%, white);
  background: #fff7f3;
}
.check-tile input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1.5px solid rgba(75, 46, 30, 0.2);
  border-radius: 7px;
  background: white;
}
.check-box::after {
  content: "";
  width: 10px;
  height: 6px;
  margin-top: -2px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.15s ease;
}
.check-tile input:checked + .check-box { border-color: var(--red); background: var(--red); }
.check-tile input:checked + .check-box::after { transform: rotate(-45deg) scale(1); }
.mission-sleep .check-tile input:checked + .check-box { border-color: var(--green); background: var(--green); }
.check-copy strong { display: block; font-size: 11px; }
.check-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.check-tile-wide { margin-top: 10px; }
.inline-status { margin-top: 10px; color: var(--muted); font-size: 10px; }
.inline-status.is-complete { color: var(--red); font-weight: 700; }
.select-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 13px;
}
.select-field > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.select-field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fffdf9;
  font-size: 11px;
}
.upload-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed rgba(47, 122, 105, 0.32);
  border-radius: 13px;
  background: rgba(218, 238, 230, 0.26);
}
.upload-copy strong { display: block; font-size: 11px; }
.upload-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.upload-button {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--green);
  background: white;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.upload-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}
.upload-preview img {
  width: 50px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
  background: #eee;
}
.upload-preview strong { display: block; font-size: 10px; overflow-wrap: anywhere; }
.text-button {
  border: 0;
  padding: 5px 0 0;
  color: var(--red);
  background: transparent;
  font-size: 9px;
  font-weight: 700;
}
.existing-shot {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
}
.notes-field span { display: block; margin: 1px 2px 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.notes-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fffdf9;
  font-size: 11px;
  line-height: 1.6;
}
.notes-field textarea:focus,
select:focus { outline: 2px solid rgba(169, 54, 43, 0.14); outline-offset: 1px; }
.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 3px;
}
.earned-preview span { display: block; color: var(--muted); font-size: 9px; }
.earned-preview strong { display: block; margin-top: 2px; font-size: 23px; font-variant-numeric: tabular-nums; }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 13px 21px;
  border: 0;
  border-radius: 15px;
  color: #fff9ed;
  background: linear-gradient(135deg, #9c3329, #c24d39);
  box-shadow: 0 14px 30px rgba(155, 48, 39, 0.23);
  font-size: 13px;
  font-weight: 800;
}
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { opacity: 0.62; cursor: wait; transform: none; }
.form-message {
  min-height: 16px;
  margin: -5px 2px 0;
  color: var(--red);
  font-size: 10px;
}
.form-message.is-success { color: var(--green); }

.history-panel { margin-top: 22px; }
.history-heading { align-items: flex-start; }
.mini-filter { display: flex; gap: 5px; padding: 4px; border-radius: 999px; background: #f3eadf; }
.mini-filter button {
  border: 0;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 700;
}
.mini-filter button.is-active { color: var(--ink); background: white; box-shadow: 0 4px 12px rgba(70, 40, 22, 0.09); }
.history-list { display: grid; gap: 9px; }
.empty-state {
  padding: 33px 18px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.36);
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
}
.empty-state strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; }
.history-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.5);
}
.history-date {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 56px;
  border-radius: 11px;
  color: var(--red);
  background: var(--red-soft);
}
.history-date strong { font-size: 19px; line-height: 1; }
.history-date span { margin-top: 3px; font-size: 9px; }
.history-copy strong { display: block; font-size: 11px; }
.history-copy p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.history-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.history-badge {
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 8px;
  font-weight: 700;
}
.history-badge.neutral { color: var(--muted); background: #f2ece5; }
.history-badge.red { color: var(--red); background: var(--red-soft); }
.history-photo {
  width: 46px;
  height: 56px;
  border-radius: 9px;
  object-fit: cover;
  background: #ece2d8;
}
.history-photo-placeholder { width: 46px; }

.rules-strip {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  margin-top: 22px;
  border-radius: var(--radius-xl);
  color: #fff9ed;
  background: linear-gradient(135deg, #3f2920, #624137);
  box-shadow: 0 24px 64px rgba(64, 39, 25, 0.17);
}
.rules-strip-featured {
  border: 1px solid rgba(239, 194, 103, 0.28);
  box-shadow:
    0 30px 80px rgba(73, 35, 19, 0.25),
    0 0 0 6px rgba(216, 168, 62, 0.035);
}
.rules-strip-featured .rules-art span {
  font-size: 64px;
  text-shadow: 0 8px 34px rgba(244, 198, 98, 0.24);
}
.rules-art {
  display: grid;
  place-content: center;
  min-height: 260px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(239, 194, 103, 0.28), transparent 45%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent);
  border-right: 1px solid rgba(255, 238, 199, 0.13);
}
.rules-art span {
  font-family: "Songti SC", "STSong", serif;
  color: #f2ce7c;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.07em;
}
.rules-art small { margin-top: 8px; color: rgba(255, 246, 228, 0.6); font-size: 10px; }
.rules-content { padding: 27px; }
.rules-content .section-kicker { color: #e7b858; opacity: 1; }
.rules-content h2 { font-size: 28px; }
.stage-board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 238, 199, 0.11);
}
.stage-board-label {
  color: #f8da92;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.stage-board-note {
  color: rgba(255, 246, 228, 0.48);
  font-size: 9px;
  text-align: right;
}
.reward-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.reward-stage {
  --stage-accent: #d9bf87;
  --stage-border: rgba(220, 193, 139, 0.25);
  --stage-bg: linear-gradient(150deg, rgba(255, 247, 228, 0.065), rgba(255, 247, 228, 0.025));
  --stage-shadow: none;
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  padding: 14px 12px 12px;
  border: 1px solid var(--stage-border);
  border-radius: 17px;
  background: var(--stage-bg);
  box-shadow: var(--stage-shadow);
}
.reward-stage::after {
  content: attr(data-step);
  position: absolute;
  z-index: -1;
  right: -3px;
  bottom: -17px;
  color: rgba(255, 244, 216, 0.055);
  font-size: 67px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.09em;
}
.reward-stage-2 {
  --stage-accent: #f2b75e;
  --stage-border: rgba(242, 183, 94, 0.42);
  --stage-bg: linear-gradient(150deg, rgba(191, 109, 35, 0.24), rgba(255, 240, 205, 0.045));
  --stage-shadow: 0 10px 24px rgba(111, 54, 22, 0.12);
}
.reward-stage-3 {
  --stage-accent: #ffd76d;
  --stage-border: rgba(255, 213, 107, 0.7);
  --stage-bg:
    radial-gradient(circle at 95% 0%, rgba(255, 224, 133, 0.22), transparent 42%),
    linear-gradient(145deg, rgba(183, 54, 31, 0.86), rgba(218, 123, 34, 0.38));
  --stage-shadow: 0 16px 34px rgba(136, 48, 15, 0.29), inset 0 1px rgba(255, 239, 187, 0.16);
  transform: translateY(-2px);
}
.reward-stage-3::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -55% -20%;
  background: linear-gradient(110deg, transparent 36%, rgba(255, 241, 177, 0.14) 50%, transparent 64%);
  transform: translateX(-55%);
  animation: reward-shimmer 4.4s ease-in-out infinite;
}
@keyframes reward-shimmer {
  0%, 58% { transform: translateX(-55%); }
  78%, 100% { transform: translateX(55%); }
}
.stage-days {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-height: 29px;
}
.stage-days strong {
  color: var(--stage-accent);
  font-size: 28px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.stage-days span {
  color: rgba(255, 246, 228, 0.55);
  font-size: 8px;
  line-height: 1.35;
}
.reward-stage-3 .stage-days strong { text-shadow: 0 4px 20px rgba(255, 211, 98, 0.34); }
.stage-rate {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 14px;
  white-space: nowrap;
}
.stage-rate strong {
  color: #fff8e9;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(22px, 3.6vw, 34px);
  line-height: 1;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
}
.reward-stage-2 .stage-rate strong {
  color: #ffe5ae;
  font-size: clamp(27px, 4.2vw, 42px);
}
.reward-stage-3 .stage-rate strong {
  color: #fff0a3;
  font-size: clamp(32px, 4.8vw, 50px);
  text-shadow: 0 7px 26px rgba(255, 199, 55, 0.36);
}
.stage-rate small {
  color: rgba(255, 246, 228, 0.54);
  font-size: 7px;
  white-space: normal;
}
.stage-breakdown {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 241, 204, 0.13);
}
.stage-breakdown span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  color: rgba(255, 246, 228, 0.52);
  font-size: 8px;
  white-space: nowrap;
}
.stage-breakdown b {
  color: var(--stage-accent);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.stage-badge {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 7px;
  border: 1px solid var(--stage-border);
  border-radius: 999px;
  color: var(--stage-accent);
  background: rgba(255, 255, 255, 0.045);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.reward-stage-3 .stage-badge {
  color: #5f2a12;
  border-color: rgba(255, 231, 157, 0.82);
  background: linear-gradient(135deg, #ffe89f, #f6b84d);
  box-shadow: 0 5px 14px rgba(255, 192, 68, 0.2);
}
.reward-bonus {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(233, 192, 103, 0.34);
  border-radius: 15px;
  background: linear-gradient(100deg, rgba(233, 192, 103, 0.15), rgba(255, 255, 255, 0.025));
}
.reward-bonus-copy span { display: block; color: rgba(255, 246, 228, 0.58); font-size: 8px; }
.reward-bonus-copy strong { display: block; margin-top: 3px; color: #ffe1a0; font-size: 15px; white-space: nowrap; }
.reward-bonus p { margin: 0; color: rgba(255, 246, 228, 0.56); font-size: 8px; line-height: 1.7; }
.rules-footnote { margin: 15px 0 0; color: rgba(255, 246, 228, 0.5); font-size: 9px; line-height: 1.7; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 4px 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}
#serverStatus { color: var(--green); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + var(--safe-bottom));
  z-index: 20;
  max-width: min(90vw, 460px);
  padding: 12px 16px;
  border-radius: 999px;
  color: white;
  background: rgba(46, 33, 28, 0.94);
  box-shadow: 0 16px 36px rgba(46, 33, 28, 0.22);
  font-size: 11px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: rgba(146, 49, 39, 0.96); }

@media (max-width: 760px) {
  .app-shell { padding: 12px 12px calc(36px + var(--safe-bottom)); }
  .hero { padding: 18px; border-radius: 27px; }
  .hero-copy { padding: 36px 0 26px; }
  .hero h1 { font-size: clamp(38px, 13.3vw, 58px); }
  .hero-description { max-width: 90%; font-size: 12px; }
  .hero-kpis { grid-template-columns: 1fr 1fr; }
  .hero-kpi:last-child { grid-column: 1 / -1; }
  .player-grid { grid-template-columns: 1fr; }
  .player-card { min-height: 0; }
  .panel { padding: 17px; border-radius: 24px; }
  .section-heading { align-items: flex-start; }
  .section-note { max-width: 80px; text-align: right; }
  .mission-head { grid-template-columns: 34px minmax(0, 1fr); }
  .mission-icon { width: 34px; height: 34px; }
  .mission-value { grid-column: 2; justify-self: start; margin-top: 2px; }
  .session-grid { grid-template-columns: 1fr; }
  .upload-block { align-items: flex-start; flex-direction: column; }
  .upload-button { width: 100%; text-align: center; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .earned-preview { display: flex; align-items: baseline; justify-content: space-between; }
  .primary-button { width: 100%; }
  .form-message { min-height: 0; }
  .history-heading { flex-direction: column; }
  .mini-filter { width: 100%; }
  .mini-filter button { flex: 1; }
  .history-item { grid-template-columns: 47px minmax(0, 1fr) auto; gap: 9px; }
  .history-photo, .history-photo-placeholder { width: 40px; height: 50px; }
  .rules-strip { grid-template-columns: 1fr; }
  .rules-art { min-height: 112px; padding: 18px; border-right: 0; border-bottom: 1px solid rgba(255, 238, 199, 0.13); }
  .rules-art span { font-size: 42px; }
  .rules-strip-featured .rules-art span { font-size: 48px; }
  .rules-content { padding: 23px 18px; }
  .reward-stage-grid { gap: 7px; }
  .reward-bonus { grid-template-columns: 1fr; gap: 7px; }
  .stage-board-head { align-items: flex-start; }
  .footer { flex-direction: column; gap: 4px; }
}

@media (max-width: 380px) {
  .hero-topline { align-items: flex-start; }
  .brand-chip span:last-child { max-width: 90px; line-height: 1.25; }
  .date-ribbon { align-items: flex-start; flex-wrap: wrap; border-radius: 15px; }
  .player-head { flex-wrap: wrap; }
  .player-total { width: 100%; margin: 5px 0 0; text-align: left; }
  .player-total strong { display: inline; margin-left: 7px; }
  .player-total span { display: inline; }
  .reward-stage { padding: 11px 8px 10px; border-radius: 14px; }
  .reward-stage-3 { transform: none; }
  .stage-days { display: block; min-height: 0; }
  .stage-days strong { font-size: 24px; }
  .reward-stage-2 .stage-days strong { font-size: 27px; }
  .reward-stage-3 .stage-days strong { font-size: 30px; }
  .stage-days span { display: block; margin-top: 3px; font-size: 7px; }
  .stage-rate { display: block; margin-top: 10px; }
  .stage-rate strong { font-size: 22px; }
  .reward-stage-2 .stage-rate strong { font-size: 26px; }
  .reward-stage-3 .stage-rate strong { font-size: 30px; }
  .stage-rate small { display: block; margin-top: 3px; font-size: 6px; }
  .stage-breakdown { margin-top: 8px; }
  .stage-breakdown span { display: block; white-space: normal; font-size: 7px; }
  .stage-breakdown b { display: block; margin-top: 2px; font-size: 9px; }
  .stage-badge { margin-top: 8px; padding: 3px 5px; font-size: 6px; }
  .reward-bonus { padding: 11px; }
  .reward-bonus p { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.checkin-form.is-readonly .mission-card,
.checkin-form.is-readonly .day-picker-row,
.checkin-form.is-readonly .notes-field { opacity: 0.7; }
.checkin-form.is-preview .mission-card,
.checkin-form.is-preview .day-picker-row,
.checkin-form.is-preview .notes-field { opacity: 1; }
.primary-button:disabled { cursor: not-allowed; opacity: 0.58; box-shadow: none; }
/* Role-aware access and reliable checkbox hit targets */
.hero-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 235, 194, 0.28);
  border-radius: 999px;
  color: #fff2ca;
  background: rgba(63, 17, 12, 0.24);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.permission-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 17px;
  border: 1px solid rgba(169, 54, 43, 0.14);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 250, 243, 0.82);
  box-shadow: 0 12px 34px rgba(81, 45, 29, 0.07);
}
.permission-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 10px;
}
.permission-banner > div { min-width: 0; }
.permission-banner strong { display: block; font-size: 12px; }
.permission-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}
.self-only-note {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.is-audience-view .self-only-note { color: var(--muted); background: #f1e9df; }
.is-audience-view .checkin-panel { border-color: rgba(74, 45, 32, 0.16); }
.is-audience-view .checkin-form { opacity: 0.88; }

.check-tile { position: relative; overflow: hidden; }
.check-tile input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
}
.check-tile input:focus-visible + .check-box {
  outline: 3px solid rgba(169, 54, 43, 0.2);
  outline-offset: 2px;
}
.check-tile input:disabled + .check-box { opacity: 0.56; }
.check-tile input:disabled { cursor: not-allowed; }
.checkin-form.is-readonly .check-tile { cursor: not-allowed; }

@media (max-width: 760px) {
  .hero-identity { align-items: flex-start; }
  .role-chip { max-width: 100%; white-space: normal; }
  .permission-banner { padding: 13px 14px; border-radius: 16px; }
  .permission-banner p { font-size: 9px; }
  .self-only-note { white-space: normal; text-align: right; }
}


/* =========================================================
   四级家庭能量闯关 · shared-entry wizard
   ========================================================= */
.app-shell-wizard {
  width: min(100%, 960px);
  padding-top: 14px;
}
.step-nav {
  position: sticky;
  top: max(8px, env(safe-area-inset-top, 0px));
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: min(100%, 620px);
  margin: 0 auto 16px;
  padding: 5px;
  border: 1px solid rgba(103, 59, 35, 0.1);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 10px 35px rgba(83, 48, 29, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.step-nav button {
  min-width: 0;
  min-height: 44px;
  padding: 6px 4px;
  border: 0;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 750;
}
.step-nav button span {
  display: block;
  margin-bottom: 1px;
  color: #b6a294;
  font-size: 7px;
  letter-spacing: 0.12em;
}
.step-nav button.is-active {
  color: var(--red-deep);
  background: #fff;
  box-shadow: 0 7px 18px rgba(91, 46, 27, 0.11);
}
.step-nav button:disabled { opacity: 0.38; cursor: not-allowed; }
.screen { animation: screen-in 0.32s ease both; }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.screen-topbar,
.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 3px 16px;
}
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 252, 247, 0.78);
  font-size: 10px;
  font-weight: 700;
}
.screen-step {
  color: #aa9588;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.screen-heading {
  margin: 28px 4px 22px;
}
.screen-heading h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(31px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.screen-heading > p:last-child {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.screen-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.secondary-button {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 252, 247, 0.8);
  font-size: 11px;
  font-weight: 750;
}

/* Poster */
.poster-hero {
  min-height: 650px;
  padding: 24px 28px 26px;
}
.poster-hero::after { font-size: 190px; right: 8px; top: 120px; opacity: 0.85; }
.poster-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 28px;
  padding: 40px 0 33px;
}
.poster-reward {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 310px;
  order: 1;
}
.coin-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: min(260px, 66vw);
  aspect-ratio: 1;
}
.coin-medal {
  position: relative;
  z-index: 2;
  display: grid;
  place-content: center;
  width: 72%;
  aspect-ratio: 1;
  padding: 18px;
  border: 2px solid rgba(255, 241, 179, 0.88);
  border-radius: 50%;
  color: #5c2b0b;
  background:
    radial-gradient(circle at 36% 28%, #fff6c6 0 7%, transparent 30%),
    radial-gradient(circle at 50% 50%, #ffeaa2 0 44%, #f6c553 62%, #d88920 100%);
  box-shadow:
    0 28px 60px rgba(49, 15, 8, 0.38),
    inset 0 0 0 8px rgba(132, 71, 11, 0.13),
    inset 0 0 0 14px rgba(255, 249, 210, 0.32),
    0 0 0 12px rgba(247, 198, 80, 0.09),
    0 0 0 28px rgba(247, 198, 80, 0.04);
  text-align: center;
  transform: rotate(-4deg);
  animation: coin-float 4.8s ease-in-out infinite;
}
.coin-medal::before,
.coin-medal::after {
  content: "✦";
  position: absolute;
  color: rgba(113, 52, 7, 0.46);
  font-size: 15px;
}
.coin-medal::before { left: 18%; top: 17%; }
.coin-medal::after { right: 18%; bottom: 17%; }
.coin-medal small {
  display: block;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.coin-medal strong {
  display: block;
  margin: 4px 0 2px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(43px, 8vw, 69px);
  line-height: 0.98;
  letter-spacing: -0.08em;
  text-shadow: 0 2px 0 rgba(255, 251, 216, 0.58);
}
.coin-medal strong span { font-size: 0.48em; vertical-align: 0.32em; letter-spacing: 0; }
.coin-medal em {
  color: rgba(91, 43, 6, 0.66);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.coin-shadow {
  position: absolute;
  bottom: 1%;
  width: 58%;
  height: 12%;
  border-radius: 50%;
  background: rgba(48, 12, 7, 0.34);
  filter: blur(10px);
  transform: rotate(-4deg);
}
.coin-spark {
  position: absolute;
  z-index: 3;
  color: #ffe794;
  text-shadow: 0 0 18px rgba(255, 218, 105, 0.82);
  animation: spark-pulse 2.7s ease-in-out infinite;
}
.coin-spark-a { top: 1%; right: 17%; font-size: 24px; }
.coin-spark-b { left: 9%; bottom: 18%; font-size: 17px; animation-delay: 0.7s; }
.coin-spark-c { right: 4%; bottom: 29%; font-size: 32px; animation-delay: 1.2s; }
@keyframes coin-float {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-8px); }
}
@keyframes spark-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.78); }
  50% { opacity: 1; transform: scale(1.12); }
}
.poster-reward-note {
  margin: 1px 0 0;
  color: rgba(255, 248, 231, 0.6);
  font-size: 9px;
  letter-spacing: 0.04em;
}
.poster-reward-note strong { color: #ffe1a0; }
.poster-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  order: 2;
}
.poster-copy h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(46px, 7vw, 75px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}
.poster-copy h1 span { color: #ffe3a7; }
.poster-meta { margin-top: 2px; }
.poster-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.poster-primary { min-width: 210px; }
.poster-login-link {
  border: 0;
  padding: 9px 4px;
  color: rgba(255, 247, 230, 0.68);
  background: transparent;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.poster-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.poster-feature {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 22px 20px;
  border: 1px solid rgba(91, 55, 35, 0.09);
  border-radius: 23px;
  background: rgba(255, 252, 247, 0.82);
  box-shadow: 0 14px 38px rgba(83, 50, 31, 0.07);
}
.feature-index {
  display: block;
  margin-bottom: 22px;
  color: var(--red);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}
.poster-feature strong {
  display: block;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 19px;
}
.poster-feature p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.poster-share-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 15px 17px;
  border: 1px dashed rgba(169, 54, 43, 0.19);
  border-radius: 18px;
  color: var(--red);
  background: rgba(255, 247, 239, 0.65);
}
.poster-share-note > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #fff;
  background: var(--red);
}
.poster-share-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.poster-share-note strong { color: var(--ink); }

/* Rules */
.rules-page-heading { max-width: 760px; }
.rules-page-awards { margin-top: 0; }
.rule-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}
.rule-card {
  position: relative;
  overflow: hidden;
  min-height: 285px;
  padding: 23px 20px;
  border: 1px solid rgba(75, 44, 28, 0.09);
  border-radius: 23px;
  background: rgba(255, 252, 247, 0.86);
  box-shadow: 0 14px 38px rgba(83, 50, 31, 0.07);
}
.rule-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--rule-accent, var(--red));
}
.rule-card-red { --rule-accent: #b44235; }
.rule-card-green { --rule-accent: #3b8574; }
.rule-card-gold { --rule-accent: #d4a13b; }
.rule-number {
  position: absolute;
  right: 17px;
  top: 12px;
  color: rgba(90, 51, 30, 0.06);
  font-size: 62px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.09em;
}
.rule-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--rule-accent);
  background: #f7ece2;
  font-size: 20px;
  font-weight: 800;
}
.rule-card h2 {
  margin: 22px 0 8px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 22px;
}
.rule-lead { min-height: 42px; margin: 0; color: var(--ink); font-size: 11px; font-weight: 650; line-height: 1.7; }
.rule-card ul { display: grid; gap: 8px; margin: 17px 0 0; padding: 0; list-style: none; }
.rule-card li {
  position: relative;
  padding-left: 13px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}
.rule-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rule-accent);
}
.rule-process {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  padding: 27px;
  border-radius: 26px;
  color: #fff8ed;
  background: linear-gradient(135deg, #35231c, #5c3d31);
  box-shadow: 0 20px 55px rgba(65, 38, 24, 0.15);
}
.rule-process h2 { margin: 0; font-family: "Songti SC", "STSong", "SimSun", serif; font-size: 25px; line-height: 1.2; }
.rule-process .section-kicker { color: #e5b75e; }
.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.process-steps > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 242, 209, 0.11);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
}
.process-steps span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 11px;
  border-radius: 8px;
  color: #5d3519;
  background: #edc46f;
  font-size: 9px;
  font-weight: 900;
}
.process-steps strong { display: block; font-size: 11px; }
.process-steps p { margin: 5px 0 0; color: rgba(255, 247, 230, 0.52); font-size: 8px; line-height: 1.6; }

/* Identity */
.identity-heading { max-width: 720px; }
.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.identity-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 208px;
  padding: 19px;
  border: 1px solid rgba(75, 44, 28, 0.1);
  border-radius: 24px;
  color: var(--ink);
  background: rgba(255, 252, 247, 0.9);
  box-shadow: 0 16px 45px rgba(83, 50, 31, 0.08);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.identity-card:hover { transform: translateY(-2px); box-shadow: 0 21px 54px rgba(83, 50, 31, 0.12); }
.identity-card:active { transform: scale(0.99); }
.identity-card.is-selected { border-color: rgba(169, 54, 43, 0.36); box-shadow: 0 20px 55px rgba(114, 48, 27, 0.15); }
.identity-card-glow {
  position: absolute;
  z-index: -1;
  width: 160px;
  height: 160px;
  right: -62px;
  top: -65px;
  border-radius: 50%;
  background: rgba(169, 54, 43, 0.12);
  transition: transform 0.25s ease;
}
.identity-card-green .identity-card-glow { background: rgba(47, 122, 105, 0.13); }
.identity-card-admin .identity-card-glow { background: rgba(153, 117, 64, 0.15); }
.identity-card.is-selected .identity-card-glow { transform: scale(1.28); }
.identity-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.identity-card-top small { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: 0.13em; }
.identity-arrow { color: var(--red); font-size: 18px; }
.identity-main { display: flex; align-items: center; gap: 13px; margin-top: 30px; }
.identity-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 18px;
  color: white;
  background: linear-gradient(145deg, #ad3c30, #d0634e);
  box-shadow: 0 12px 26px rgba(160, 54, 42, 0.22);
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
  font-weight: 900;
}
.identity-card-green .identity-avatar { background: linear-gradient(145deg, #2d7566, #56a18d); box-shadow: 0 12px 26px rgba(47, 122, 105, 0.22); }
.identity-card-admin .identity-avatar { color: #47301e; background: linear-gradient(145deg, #e8c77a, #b99147); box-shadow: 0 12px 26px rgba(165, 125, 55, 0.2); }
.identity-copy { display: block; min-width: 0; }
.identity-copy small { display: block; color: var(--red); font-size: 8px; font-weight: 850; letter-spacing: 0.09em; }
.identity-card-green .identity-copy small { color: var(--green); }
.identity-card-admin .identity-copy small { color: #997541; }
.identity-copy strong { display: block; margin-top: 3px; font-family: "Songti SC", "STSong", "SimSun", serif; font-size: 23px; line-height: 1.2; }
.identity-copy em { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.identity-pin-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 24px;
  padding: 6px 8px;
  border-radius: 999px;
  color: #9b6b16;
  background: #fff3d3;
  font-size: 8px;
  font-weight: 750;
}
.identity-pin-state.is-set { color: var(--green); background: var(--green-soft); }
.identity-pin-state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.login-panel {
  position: relative;
  max-width: 570px;
  margin: 16px auto 0;
  padding: 24px;
  border: 1px solid rgba(169, 54, 43, 0.17);
  border-radius: 25px;
  background: rgba(255, 252, 247, 0.97);
  box-shadow: 0 24px 70px rgba(85, 46, 28, 0.15);
  animation: login-in 0.26s ease both;
}
@keyframes login-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.login-close {
  position: absolute;
  right: 15px;
  top: 13px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #f4ebe2;
  font-size: 20px;
  line-height: 1;
}
.login-identity { display: flex; align-items: center; gap: 13px; padding-right: 32px; }
.login-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #a9362b, #cf6450);
  font-family: "Songti SC", "STSong", serif;
  font-size: 23px;
  font-weight: 900;
}
.login-identity h2 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 24px; }
.login-identity p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.login-form { display: grid; gap: 12px; margin-top: 20px; }
.pin-field > span { display: block; margin: 0 2px 7px; color: var(--muted); font-size: 9px; font-weight: 750; }
.pin-field input {
  width: 100%;
  height: 54px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fffdf9;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.38em;
  text-align: center;
}
.pin-field input:focus { outline: 3px solid rgba(169, 54, 43, 0.12); border-color: rgba(169, 54, 43, 0.3); }
.login-button { width: 100%; margin-top: 4px; }
.login-message { min-height: 16px; margin: 0; color: var(--red); font-size: 10px; text-align: center; }
.login-message.is-success { color: var(--green); }
.login-security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 11px 12px;
  border-radius: 13px;
  color: var(--muted);
  background: #f6eee5;
}
.login-security-note > span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 8px;
  font-weight: 800;
}
.login-security-note p { margin: 0; font-size: 8px; line-height: 1.65; }
.identity-help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 720px; margin: 16px auto 0; }
.identity-help > div { padding: 14px 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 252, 247, 0.55); }
.identity-help strong { font-size: 10px; }
.identity-help p { margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.65; }

/* Dashboard */
.dashboard-screen { padding: 2px 0 30px; }
.dashboard-topbar {
  padding: 14px 16px;
  border: 1px solid rgba(74, 45, 32, 0.09);
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.88);
  box-shadow: 0 12px 38px rgba(72, 41, 25, 0.08);
}
.brand-chip-dark { color: var(--ink); }
.brand-chip-dark .brand-seal { color: var(--red); border-color: rgba(169, 54, 43, 0.22); background: var(--red-soft); }
.role-chip-dark { color: var(--red-deep); border-color: rgba(169, 54, 43, 0.14); background: var(--red-soft); }
.dashboard-top-actions { display: flex; align-items: center; gap: 7px; }
.ghost-button-dark { color: var(--muted); border-color: var(--line); background: #fffaf4; }
.dashboard-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 4px 19px;
}
.dashboard-intro h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(31px, 6vw, 52px);
  letter-spacing: -0.05em;
  line-height: 1.1;
}
.dashboard-intro > div:first-child > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.dashboard-day-card {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 13px 15px;
  border-radius: 17px;
  color: #fff7e8;
  background: linear-gradient(140deg, #6f231d, #a43a2e);
  box-shadow: 0 13px 28px rgba(111, 34, 27, 0.16);
  text-align: right;
}
.dashboard-day-card span { display: block; color: rgba(255, 247, 229, 0.63); font-size: 8px; }
.dashboard-day-card strong { display: block; margin-top: 4px; color: #ffe4a4; font-size: 16px; }
.preview-notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 13px 15px; border: 1px solid rgba(216, 168, 62, 0.27); border-radius: 16px; color: #7a5717; background: #fff7df; }
.preview-notice > span { font-size: 16px; }
.preview-notice p { margin: 0; font-size: 9px; line-height: 1.65; }
.preview-notice strong { display: block; margin-bottom: 2px; }
.dashboard-player-grid { margin-bottom: 2px; }
.dashboard-layout { display: block; }
.checkin-panel, .review-panel { margin-top: 16px; }
.checkin-panel .panel-heading h2,
.review-panel .panel-heading h2,
.history-panel .panel-heading h2 { font-size: 23px; }
.current-day-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7ede2;
}
.current-day-row > div span { display: block; color: var(--muted); font-size: 8px; }
.current-day-row > div strong { display: block; margin-top: 3px; font-size: 12px; }
.current-day-badge { padding: 5px 9px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 8px; font-weight: 800; }
.current-day-badge.is-preview { color: #8b651b; background: #fff1c7; }
.mission-status { margin: 10px 2px 0; color: var(--muted); font-size: 9px; }
.mission-status.is-complete { color: var(--red); font-weight: 750; }
.review-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 13px; }
.review-summary > div { padding: 12px; border-radius: 13px; background: #f6ede3; }
.review-summary span { display: block; color: var(--muted); font-size: 8px; }
.review-summary strong { display: block; margin-top: 4px; font-size: 23px; }
.review-queue { display: grid; gap: 8px; }
.review-item { padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: #fffdf9; }
.review-item-head { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  border-radius: 11px;
  color: white;
  background: var(--player-color, var(--red));
  font-size: 15px;
  font-weight: 850;
}
.review-item-head > div { min-width: 0; }
.review-item-head strong { display: block; font-size: 11px; }
.review-item-head > div span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.review-status { margin-left: auto; padding: 5px 7px; border-radius: 999px; font-size: 7px; font-weight: 800; white-space: nowrap; }
.review-status.pending { color: #8a6419; background: #fff0c5; }
.review-status.revoked { color: var(--red); background: var(--red-soft); }
.review-item-actions, .record-review-actions { display: flex; gap: 6px; margin-top: 10px; }
.review-action { min-height: 34px; padding: 7px 11px; border: 0; border-radius: 10px; font-size: 8px; font-weight: 800; }
.review-action.confirm { color: #fff; background: var(--green); }
.review-action.revoke { color: var(--red); background: var(--red-soft); }
.review-action:disabled { opacity: 0.55; cursor: wait; }
.history-panel { margin-top: 16px; }
.history-list { display: grid; gap: 9px; }
.record-card { padding: 16px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255, 253, 249, 0.86); }
.record-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.record-person { display: flex; align-items: center; gap: 9px; }
.record-avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #fff;
  background: var(--player-color, var(--red));
  font-size: 15px;
  font-weight: 850;
}
.record-person strong { display: block; font-size: 11px; }
.record-person span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.record-summary { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 5px; text-align: right; }
.record-summary span, .record-summary b { padding: 5px 7px; border-radius: 999px; font-size: 7px; }
.record-summary span { color: var(--green); background: var(--green-soft); }
.record-summary b { color: #8b651b; background: #fff0c4; }
.record-tracks { display: grid; gap: 7px; margin-top: 11px; }
.record-track { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px; border-radius: 13px; background: #f8f1e8; }
.record-track.is-done { background: #fdf8f0; }
.record-track-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--muted); background: #eee4d8; font-size: 14px; }
.record-track.is-done .record-track-icon { color: var(--red); background: var(--red-soft); }
.record-track-copy { min-width: 0; }
.record-track-copy strong { display: block; font-size: 9px; }
.record-track-copy p { margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: 8px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.record-track-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.review-badge { padding: 4px 6px; border-radius: 999px; font-size: 7px; font-weight: 750; white-space: nowrap; }
.review-badge.pending { color: #896218; background: #ffefbf; }
.review-badge.confirmed { color: var(--green); background: var(--green-soft); }
.review-badge.revoked { color: var(--red); background: var(--red-soft); }
.review-badge.none { color: var(--muted); background: #eee5dc; }
.record-review-actions { margin-top: 0; }
.record-review-actions .review-action { min-height: 28px; padding: 5px 8px; font-size: 7px; }
.record-photo { display: grid; gap: 4px; justify-items: end; color: var(--muted); font-size: 7px; text-decoration: none; }
.record-photo img { width: 54px; height: 70px; border-radius: 8px; object-fit: cover; background: #ebe0d4; }
.record-note { margin: 11px 0 0; padding: 9px 11px; border-left: 2px solid #d7b987; color: var(--muted); background: #fbf6ed; font-size: 8px; line-height: 1.65; }

/* Mobile */
@media (max-width: 760px) {
  .app-shell-wizard { padding: 9px 10px calc(32px + var(--safe-bottom)); }
  .step-nav { margin-bottom: 10px; border-radius: 16px; }
  .step-nav button { min-height: 40px; font-size: 9px; }
  .poster-hero { min-height: 0; padding: 17px 16px 19px; border-radius: 28px; }
  .poster-hero::after { top: 160px; right: -12px; font-size: 150px; }
  .poster-main { grid-template-columns: 1fr; gap: 8px; padding: 22px 0 20px; }
  .poster-reward { min-height: 230px; order: 1; }
  .poster-copy { order: 2; text-align: center; }
  .poster-copy h1 { font-size: clamp(41px, 13.2vw, 61px); }
  .poster-copy .eyebrow { margin-top: 7px; }
  .hero-description { max-width: none; margin-top: 14px; font-size: 11px; line-height: 1.7; }
  .coin-orbit { width: min(230px, 61vw); }
  .coin-medal strong { font-size: clamp(42px, 14vw, 62px); }
  .poster-reward-note { margin-top: 4px; }
  .poster-meta { margin-top: 4px; }
  .poster-actions { flex-direction: column; gap: 7px; margin-top: 13px; }
  .poster-primary { width: 100%; min-width: 0; }
  .poster-feature-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
  .poster-feature { min-height: 0; padding: 17px 18px; border-radius: 18px; }
  .feature-index { margin-bottom: 10px; }
  .poster-feature strong { font-size: 17px; }
  .poster-feature p { font-size: 9px; }
  .poster-share-note { margin-top: 9px; padding: 13px; border-radius: 16px; }
  .screen-topbar { margin-bottom: 6px; }
  .screen-heading { margin: 20px 4px 17px; }
  .screen-heading h1 { font-size: 37px; }
  .screen-heading > p:last-child { font-size: 10px; }
  .rules-strip { border-radius: 24px; }
  .rules-content { padding: 20px 14px 18px; }
  .reward-stage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .reward-stage { padding: 11px 8px 10px; border-radius: 14px; }
  .stage-rate strong { font-size: 23px; }
  .reward-stage-2 .stage-rate strong { font-size: 28px; }
  .reward-stage-3 .stage-rate strong { font-size: 33px; }
  .stage-rate small { font-size: 6px; }
  .stage-breakdown span { font-size: 7px; }
  .stage-breakdown b { font-size: 8px; }
  .rule-card-grid { grid-template-columns: 1fr; gap: 8px; }
  .rule-card { min-height: 0; padding: 19px 18px; border-radius: 19px; }
  .rule-card h2 { margin-top: 15px; }
  .rule-lead { min-height: 0; }
  .rule-process { grid-template-columns: 1fr; gap: 17px; padding: 21px 16px; border-radius: 22px; }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-grid { grid-template-columns: 1fr; gap: 8px; }
  .identity-card { min-height: 154px; padding: 17px; border-radius: 19px; }
  .identity-main { margin-top: 20px; }
  .identity-avatar { width: 49px; height: 49px; border-radius: 16px; }
  .identity-pin-state { margin-top: 17px; }
  .identity-help { grid-template-columns: 1fr; margin-top: 10px; }
  .login-panel { padding: 20px 16px; border-radius: 21px; }
  .screen-actions { flex-direction: column-reverse; align-items: stretch; }
  .screen-actions .primary-button, .screen-actions .secondary-button { width: 100%; }
  .dashboard-topbar { align-items: flex-start; padding: 12px; }
  .dashboard-top-actions { flex-direction: column; }
  .dashboard-top-actions .ghost-button { min-height: 31px; padding: 5px 9px; font-size: 9px; }
  .dashboard-intro { align-items: stretch; flex-direction: column; gap: 13px; margin: 22px 3px 15px; }
  .dashboard-intro h1 { font-size: 36px; }
  .dashboard-day-card { min-width: 0; text-align: left; }
  .panel { padding: 15px; border-radius: 21px; }
  .review-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .review-summary > div { padding: 9px 7px; }
  .review-summary strong { font-size: 20px; }
  .record-card { padding: 12px; border-radius: 16px; }
  .record-card-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .record-summary { justify-content: flex-start; text-align: left; }
  .record-track { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 7px; padding: 8px; }
  .record-track-icon { width: 30px; height: 30px; }
  .record-track-copy p { white-space: normal; }
  .record-review-actions { flex-direction: column; }
}

@media (max-width: 370px) {
  .brand-chip { font-size: 10px; }
  .brand-seal { width: 26px; height: 26px; font-size: 15px; }
  .ghost-button { padding: 7px 9px; font-size: 9px; }
  .poster-copy h1 { font-size: 39px; }
  .hero-kpis { grid-template-columns: 1fr; }
  .hero-kpi:last-child { grid-column: auto; }
  .hero-kpi { padding: 10px; }
  .coin-orbit { width: 205px; }
  .reward-stage-grid { gap: 4px; }
  .reward-stage { padding: 9px 6px; }
  .stage-days { display: block; min-height: 0; }
  .stage-days strong { display: block; font-size: 22px; }
  .stage-days span { display: block; margin-top: 2px; font-size: 6px; }
  .stage-rate { display: block; margin-top: 9px; }
  .stage-rate strong { display: block; font-size: 20px; }
  .reward-stage-2 .stage-rate strong { font-size: 24px; }
  .reward-stage-3 .stage-rate strong { font-size: 28px; }
  .stage-rate small { display: block; margin-top: 2px; font-size: 6px; }
  .stage-breakdown { margin-top: 7px; padding-top: 7px; }
  .stage-breakdown span { display: block; white-space: normal; font-size: 6px; }
  .stage-breakdown b { display: block; margin-top: 2px; }
  .stage-badge { padding: 3px 4px; font-size: 6px; }
  .screen-heading h1, .dashboard-intro h1 { font-size: 32px; }
  .review-status { font-size: 6px; }
  .record-track { grid-template-columns: 28px minmax(0, 1fr); }
  .record-track-side { grid-column: 2; align-items: flex-start; flex-direction: row; justify-content: space-between; }
}


/* Admin password reset */
.admin-tools { margin-top: 18px; padding-top: 17px; border-top: 1px solid rgba(96, 63, 38, 0.14); }
.admin-tools-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-tools-heading h3 { margin: 3px 0 0; font-size: 16px; }
.admin-tools-heading > span { flex: none; padding: 5px 8px; border-radius: 999px; color: #7b4d28; background: #efe0cd; font-size: 8px; font-weight: 800; }
.admin-tools-help { margin: 8px 0 12px; color: var(--muted); font-size: 9px; line-height: 1.65; }
.admin-reset-form { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.admin-field { min-width: 0; }
.admin-field > span { display: block; margin: 0 2px 6px; color: var(--muted); font-size: 8px; font-weight: 750; }
.admin-field input, .admin-field select { width: 100%; min-height: 40px; border: 1px solid rgba(87, 55, 31, 0.22); border-radius: 10px; padding: 0 10px; color: var(--ink); background: rgba(255, 255, 255, 0.88); font: inherit; font-size: 11px; }
.admin-field input:focus, .admin-field select:focus { outline: 3px solid rgba(169, 54, 43, 0.12); border-color: rgba(169, 54, 43, 0.35); }
.admin-reset-form .primary-button { width: auto; min-height: 40px; padding: 0 14px; font-size: 10px; white-space: nowrap; }
.admin-reset-message { min-height: 16px; margin: 8px 0 0; color: #a93b30; font-size: 9px; font-weight: 700; }
.admin-reset-message.is-success { color: var(--green); }
@media (max-width: 760px) {
  .admin-reset-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .admin-field-wide { grid-column: 1 / -1; }
  .admin-reset-form .primary-button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
}

/* Preview-only bounty simulator */
.bounty-simulator {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 17px;
  border: 1px solid rgba(224, 184, 91, 0.36);
  border-radius: 19px;
  color: #f8efdc;
  background:
    radial-gradient(circle at 92% 5%, rgba(222, 178, 76, 0.18), transparent 31%),
    radial-gradient(circle at 5% 100%, rgba(66, 132, 111, 0.28), transparent 42%),
    linear-gradient(145deg, #14211f 0%, #1b2b27 60%, #253128 100%);
  box-shadow: inset 0 1px 0 rgba(255, 242, 209, 0.08), 0 16px 38px rgba(21, 36, 32, 0.2);
}
.bounty-simulator::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -64px;
  bottom: -76px;
  border: 1px solid rgba(233, 197, 111, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(233, 197, 111, 0.04), 0 0 0 36px rgba(233, 197, 111, 0.025);
  pointer-events: none;
}
.simulator-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.simulator-head .section-kicker { color: #d7b66a; }
.simulator-head h3 { margin: 3px 0 0; font-family: "Songti SC", "STSong", "SimSun", serif; font-size: 20px; letter-spacing: 0.04em; }
.simulator-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 6px 9px;
  border: 1px solid rgba(120, 216, 170, 0.24);
  border-radius: 999px;
  color: #bde9cf;
  background: rgba(62, 132, 98, 0.17);
  font-size: 8px;
  font-weight: 800;
}
.simulator-live i { width: 6px; height: 6px; border-radius: 50%; background: #72d2a0; box-shadow: 0 0 0 4px rgba(114, 210, 160, 0.1); }
.simulator-help { position: relative; z-index: 1; margin: 8px 0 13px; color: rgba(247, 236, 211, 0.62); font-size: 9px; line-height: 1.65; }
.simulator-status {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(229, 193, 104, 0.2);
  border-radius: 13px;
  background: rgba(4, 12, 10, 0.28);
}
.simulator-status span { color: rgba(247, 236, 211, 0.55); font-size: 8px; }
.simulator-status strong { color: #ffe08d; font-size: 13px; text-align: right; }
.simulator-status small { grid-column: 1 / -1; color: rgba(247, 236, 211, 0.58); font-size: 8px; line-height: 1.5; }
.simulator-levels { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.simulator-level {
  min-width: 0;
  padding: 11px 8px 10px;
  border: 1px solid rgba(229, 193, 104, 0.21);
  border-radius: 12px;
  color: #f8efdc;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.simulator-level:hover { transform: translateY(-2px); border-color: rgba(244, 206, 112, 0.48); }
.simulator-level span { display: block; color: rgba(247, 236, 211, 0.62); font-size: 8px; font-weight: 750; }
.simulator-level strong { display: block; margin-top: 5px; color: #f5c757; font-family: "DIN Alternate", "Arial Narrow", sans-serif; font-size: 23px; line-height: 1; letter-spacing: -0.04em; }
.simulator-level small { display: block; margin-top: 6px; color: rgba(247, 236, 211, 0.48); font-size: 7px; white-space: nowrap; }
.simulator-level.is-active {
  border-color: rgba(255, 211, 99, 0.72);
  background: linear-gradient(155deg, rgba(205, 157, 48, 0.3), rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 0 1px rgba(255, 211, 99, 0.12), 0 9px 22px rgba(6, 16, 13, 0.28);
}
.simulator-level:disabled, .simulator-reset:disabled { opacity: 0.55; cursor: wait; transform: none; }
.simulator-reset {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 35px;
  margin-top: 9px;
  border: 1px solid rgba(244, 229, 199, 0.16);
  border-radius: 10px;
  color: rgba(249, 239, 216, 0.72);
  background: rgba(255, 255, 255, 0.035);
  font-size: 9px;
  font-weight: 750;
}
.simulator-reset:hover { color: #fff5df; border-color: rgba(244, 229, 199, 0.34); }
.simulator-message { position: relative; z-index: 1; min-height: 15px; margin: 8px 1px 0; color: rgba(247, 236, 211, 0.51); font-size: 8px; line-height: 1.5; }
.simulator-message.is-success { color: #a8e0bd; }
.simulator-message.is-error { color: #ffaaa0; }
@media (max-width: 420px) {
  .bounty-simulator { padding: 14px 12px; border-radius: 16px; }
  .simulator-level { padding: 10px 6px 9px; }
  .simulator-level strong { font-size: 21px; }
  .simulator-level small { white-space: normal; }
}