/* =========================================================
   羊年限定 · 十五日赏金活动
   Original oriental-fantasy game UI theme
   ========================================================= */

:root {
  --ink: #f6eedf;
  --muted: #b8b0a0;
  --paper: #071613;
  --paper-deep: #0c2420;
  --red: #c65142;
  --red-deep: #883126;
  --red-soft: rgba(198, 81, 66, 0.16);
  --gold: #d9b56f;
  --gold-bright: #f4d99a;
  --gold-soft: rgba(217, 181, 111, 0.14);
  --green: #72ad95;
  --green-soft: rgba(114, 173, 149, 0.14);
  --line: rgba(217, 181, 111, 0.16);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  --panel: rgba(10, 31, 27, 0.84);
  --panel-strong: rgba(8, 26, 23, 0.96);
  --panel-soft: rgba(22, 52, 45, 0.72);
  --jade: #4d8e7b;
  --jade-bright: #8bc8ae;
  --night: #04100e;
}

html {
  background: #04100e;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 4%, rgba(53, 118, 98, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(163, 66, 51, 0.14), transparent 30rem),
    radial-gradient(circle at 50% 100%, rgba(18, 62, 52, 0.32), transparent 38rem),
    linear-gradient(180deg, #071613 0%, #05110f 48%, #03100d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(217, 181, 111, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 181, 111, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 82%);
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 43%, rgba(217, 181, 111, 0.025) 43.2%, transparent 43.5%),
    linear-gradient(62deg, transparent 0 69%, rgba(114, 173, 149, 0.025) 69.2%, transparent 69.5%);
}

.page-glow {
  opacity: 0.9;
  filter: blur(36px);
}
.page-glow-a {
  background: radial-gradient(circle, rgba(37, 119, 99, 0.22), rgba(37, 119, 99, 0));
}
.page-glow-b {
  background: radial-gradient(circle, rgba(174, 65, 50, 0.12), rgba(174, 65, 50, 0));
}

button,
input,
select,
textarea {
  color: var(--ink);
}

button {
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(244, 217, 154, 0.7);
  outline-offset: 2px;
}

a { color: var(--gold-bright); }

::selection {
  color: #fff9ed;
  background: rgba(180, 70, 57, 0.78);
}

.app-shell {
  width: min(100%, 1080px);
}

.step-nav {
  border: 1px solid rgba(217, 181, 111, 0.2);
  background: rgba(5, 21, 18, 0.9);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.035);
}
.step-nav button { color: rgba(246, 238, 223, 0.55); }
.step-nav button span { color: rgba(217, 181, 111, 0.48); }
.step-nav button.is-active {
  color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(44, 91, 76, 0.78), rgba(13, 43, 36, 0.92));
  box-shadow: inset 0 0 0 1px rgba(217, 181, 111, 0.22), 0 7px 20px rgba(0, 0, 0, 0.24);
}

.screen-heading h1,
.dashboard-intro h1,
.poster-copy h1,
.rule-card h2,
.rule-process h2,
.panel-heading h2,
.admin-tools h3,
.login-identity h2 {
  color: var(--ink);
}

.section-kicker,
.eyebrow {
  color: var(--gold);
}

.screen-heading > p:last-child,
.dashboard-intro > div:first-child > p:last-child {
  color: var(--muted);
}

.secondary-button,
.back-button {
  border-color: rgba(217, 181, 111, 0.22);
  color: var(--ink);
  background: rgba(13, 42, 35, 0.76);
}
.secondary-button:hover,
.back-button:hover {
  border-color: rgba(244, 217, 154, 0.44);
  background: rgba(23, 58, 49, 0.9);
}

.primary-button {
  color: #231a0f;
  border: 1px solid rgba(255, 237, 189, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 245, 209, 0.75), transparent 22%),
    linear-gradient(135deg, #f0d493 0%, #c99d50 58%, #9c6f2e 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px rgba(255, 248, 225, 0.5);
}
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.36), 0 0 22px rgba(217, 181, 111, 0.14);
}
.primary-button:active { transform: translateY(0) scale(0.985); }

/* Rules */
.rules-ledger {
  border-color: rgba(217, 181, 111, 0.17) !important;
  background:
    linear-gradient(135deg, rgba(207, 83, 66, 0.1), transparent 38%),
    linear-gradient(160deg, rgba(16, 50, 42, 0.95), rgba(5, 22, 19, 0.98)) !important;
  box-shadow: var(--shadow);
}
.rules-ledger-aside {
  background:
    radial-gradient(circle at 70% 10%, rgba(217, 181, 111, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(18, 57, 47, 0.72), rgba(7, 25, 21, 0.9)) !important;
  border-color: rgba(217, 181, 111, 0.15) !important;
}
.ledger-calendar span,
.reward-stage,
.rule-card,
.rule-process,
.identity-card,
.login-panel,
.identity-help > div,
.panel,
.player-card,
.review-item,
.record-card,
.dispute-form {
  border-color: rgba(217, 181, 111, 0.16) !important;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(27, 63, 53, 0.67), rgba(7, 25, 21, 0.91)) !important;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.025);
}

.ledger-calendar span {
  color: var(--gold-bright);
  background: rgba(6, 23, 19, 0.7) !important;
}
.ledger-seal {
  color: var(--gold-bright) !important;
  border-color: rgba(217, 181, 111, 0.42) !important;
  background: rgba(126, 43, 34, 0.25) !important;
}
.stage-board-note,
.rules-footnote,
.reward-bonus p { color: var(--muted) !important; }
.reward-stage {
  box-shadow: none !important;
}
.reward-stage-1 { border-color: rgba(114, 173, 149, 0.26) !important; }
.reward-stage-2 { border-color: rgba(217, 181, 111, 0.35) !important; }
.reward-stage-3 {
  border-color: rgba(244, 217, 154, 0.62) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 217, 154, 0.2), transparent 52%),
    linear-gradient(155deg, rgba(102, 42, 30, 0.92), rgba(26, 35, 25, 0.96)) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26), inset 0 0 28px rgba(217, 181, 111, 0.06) !important;
}
.reward-stage-1 .stage-rate strong { color: #9cd8c1; }
.reward-stage-2 .stage-rate strong { color: #f0d28f; }
.reward-stage-3 .stage-rate strong { color: #ffe9af; text-shadow: 0 0 18px rgba(244, 217, 154, 0.26); }
.stage-breakdown { border-color: rgba(246, 238, 223, 0.13) !important; }
.reward-bonus {
  color: var(--ink);
  border: 1px solid rgba(217, 181, 111, 0.17);
  background: rgba(7, 26, 22, 0.72) !important;
}
.rule-card::before { height: 2px; opacity: 0.9; }
.rule-card-red { --rule-accent: #db7663; }
.rule-card-green { --rule-accent: #8bc8ae; }
.rule-card-gold { --rule-accent: #e2bd70; }
.rule-number { color: rgba(217, 181, 111, 0.07); }
.rule-icon {
  color: var(--rule-accent);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}
.rule-lead { color: var(--ink); }
.rule-card li { color: var(--muted); }
.rule-process {
  background:
    radial-gradient(circle at 88% 0%, rgba(217, 181, 111, 0.12), transparent 35%),
    linear-gradient(135deg, rgba(21, 56, 47, 0.96), rgba(5, 22, 19, 0.98)) !important;
}
.process-steps > div {
  border-color: rgba(217, 181, 111, 0.14);
  background: rgba(255, 255, 255, 0.028);
}
.process-steps span {
  color: #2d2114;
  background: linear-gradient(145deg, #f0d79b, #b98b43);
}
.process-steps p { color: rgba(246, 238, 223, 0.55); }

/* Identity and login */
.identity-card {
  border: 1px solid rgba(217, 181, 111, 0.17);
}
.identity-card:hover {
  border-color: rgba(217, 181, 111, 0.34);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.035);
}
.identity-card.is-selected {
  border-color: rgba(244, 217, 154, 0.6) !important;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.32), inset 0 0 32px rgba(217, 181, 111, 0.06) !important;
}
.identity-card-glow {
  opacity: 0.5;
  background: radial-gradient(circle, rgba(198, 81, 66, 0.34), transparent 68%);
}
.identity-card-green .identity-card-glow { background: radial-gradient(circle, rgba(114, 173, 149, 0.32), transparent 68%); }
.identity-card-admin .identity-card-glow { background: radial-gradient(circle, rgba(217, 181, 111, 0.28), transparent 68%); }
.identity-card-top small,
.identity-copy small,
.identity-copy em,
.identity-pin-state { color: var(--muted); }
.identity-arrow { color: var(--gold-bright); }
.identity-avatar,
.login-avatar {
  color: #fff8e9;
  border: 1px solid rgba(255, 240, 203, 0.28);
  background: linear-gradient(145deg, #b64b3d, #6c241c);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.2);
}
.identity-card-green .identity-avatar { background: linear-gradient(145deg, #4b957d, #205646); }
.identity-card-admin .identity-avatar { color: #2b2114; background: linear-gradient(145deg, #eed594, #a87935); }
.identity-pin-state {
  border: 1px solid rgba(217, 181, 111, 0.16);
  background: rgba(255, 255, 255, 0.035);
}
.identity-pin-state.is-set { color: var(--jade-bright); background: rgba(114, 173, 149, 0.1); }
.login-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 181, 111, 0.08), transparent 34%),
    var(--panel-strong) !important;
}
.login-close {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
}
.pin-field input,
.admin-field input,
.admin-field select,
.select-field select,
textarea {
  color: var(--ink) !important;
  border-color: rgba(217, 181, 111, 0.24) !important;
  background: rgba(3, 17, 14, 0.78) !important;
}
.pin-field input:focus,
.admin-field input:focus,
.admin-field select:focus,
.select-field select:focus,
textarea:focus {
  outline: 3px solid rgba(217, 181, 111, 0.1) !important;
  border-color: rgba(244, 217, 154, 0.48) !important;
}
.login-security-note,
.identity-help > div {
  color: var(--muted);
  background: rgba(4, 19, 16, 0.58) !important;
}
.login-security-note > span {
  color: var(--jade-bright);
  background: rgba(114, 173, 149, 0.13);
}
.login-message { color: #ef9585; }
.login-message.is-success { color: var(--jade-bright); }

/* =========================================================
   Poster: limited bounty quest
   ========================================================= */
.refined-poster {
  isolation: isolate;
  min-height: 690px;
  padding: 24px 28px 26px;
  border: 1px solid rgba(217, 181, 111, 0.32);
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 82% 12%, rgba(217, 181, 111, 0.15), transparent 30%),
    radial-gradient(ellipse at 8% 70%, rgba(67, 136, 114, 0.2), transparent 36%),
    radial-gradient(ellipse at 68% 105%, rgba(174, 63, 48, 0.18), transparent 39%),
    linear-gradient(132deg, #102a23 0%, #071a16 43%, #0b1714 72%, #1a1711 100%);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.48),
    inset 0 1px rgba(255, 244, 209, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.refined-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 61%, rgba(217, 181, 111, 0.08) 61.1% 61.25%, transparent 61.4%),
    linear-gradient(115deg, transparent 0 70%, rgba(255, 242, 205, 0.045) 70.1% 70.18%, transparent 70.3%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 255, 255, 0.012) 39px, transparent 40px);
  border-radius: inherit;
  -webkit-mask-image: linear-gradient(135deg, transparent 0 5%, black 20%, black 78%, transparent 98%);
  mask-image: linear-gradient(135deg, transparent 0 5%, black 20%, black 78%, transparent 98%);
}

.refined-poster::after {
  content: "";
  position: absolute;
  right: -90px;
  top: 66px;
  z-index: -1;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(217, 181, 111, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(217, 181, 111, 0.025),
    0 0 0 72px rgba(217, 181, 111, 0.018),
    inset 0 0 90px rgba(217, 181, 111, 0.025);
  transform: rotate(-22deg);
}

.refined-poster .poster-aura {
  position: absolute;
  z-index: -1;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(12px);
}
.poster-aura-a {
  left: -110px;
  top: 210px;
  background: radial-gradient(circle, rgba(58, 144, 119, 0.2), transparent 68%);
}
.poster-aura-b {
  right: 16%;
  bottom: -130px;
  background: radial-gradient(circle, rgba(190, 74, 55, 0.2), transparent 68%);
}

.refined-poster .poster-cloud {
  position: absolute;
  z-index: -1;
  width: 210px;
  height: 86px;
  border-top: 1px solid rgba(217, 181, 111, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.refined-poster .poster-cloud::before,
.refined-poster .poster-cloud::after {
  content: "";
  position: absolute;
  height: 42px;
  border-top: 1px solid rgba(217, 181, 111, 0.08);
  border-radius: 50%;
}
.refined-poster .poster-cloud::before { width: 130px; left: 34px; top: -18px; }
.refined-poster .poster-cloud::after { width: 96px; left: 82px; top: 15px; }
.poster-cloud-a { left: 28%; bottom: 94px; transform: rotate(-5deg); }
.poster-cloud-b { right: -20px; bottom: 10px; transform: rotate(9deg) scale(1.25); opacity: 0.6; }

.refined-poster .poster-topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(217, 181, 111, 0.12);
}

.refined-poster .hero-identity {
  gap: 10px;
}

.bounty-brand {
  color: #fff4dc;
  letter-spacing: 0.12em;
}
.bounty-brand .brand-seal {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(244, 217, 154, 0.52);
  border-radius: 11px 4px 11px 4px;
  color: #2a2115;
  background:
    linear-gradient(135deg, rgba(255, 250, 221, 0.75), transparent 38%),
    linear-gradient(145deg, #eed596, #a97b39);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26), inset 0 0 0 1px rgba(255, 249, 220, 0.4);
  text-shadow: 0 1px rgba(255, 248, 224, 0.5);
}

.refined-poster .role-chip {
  color: rgba(246, 238, 223, 0.7);
  border-color: rgba(217, 181, 111, 0.17);
  background: rgba(4, 18, 15, 0.48);
  letter-spacing: 0.03em;
}

.refined-poster .bounty-share {
  color: var(--gold-bright);
  border-color: rgba(217, 181, 111, 0.26);
  background: rgba(4, 20, 16, 0.48);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.refined-poster .bounty-share:hover {
  border-color: rgba(244, 217, 154, 0.5);
  background: rgba(25, 57, 48, 0.74);
}

.refined-poster .poster-main {
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  padding: 40px 0 28px;
  align-items: center;
}

.refined-poster .poster-copy {
  order: 1;
}
.refined-poster .poster-calendar-card {
  order: 2;
}

.limited-ribbon {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  margin-bottom: 20px;
  padding: 5px 10px 5px 6px;
  border: 1px solid rgba(217, 181, 111, 0.23);
  border-radius: 4px 13px 13px 4px;
  color: rgba(246, 238, 223, 0.7);
  background: linear-gradient(90deg, rgba(153, 54, 42, 0.55), rgba(10, 32, 27, 0.62));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}
.limited-ribbon span {
  padding: 4px 7px;
  border-radius: 3px 8px 8px 3px;
  color: #fff2cc;
  background: rgba(174, 65, 50, 0.8);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.limited-ribbon i {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 181, 111, 0.75), transparent);
}
.limited-ribbon b {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.refined-poster .eyebrow {
  margin-bottom: 12px;
  color: rgba(217, 181, 111, 0.83);
  font-size: 8px;
  letter-spacing: 0.24em;
}

.refined-poster .poster-copy h1 {
  max-width: 470px;
  font-size: clamp(41px, 5.5vw, 61px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.refined-poster .poster-copy h1 span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-bright);
  font-family: inherit;
  font-size: 0.34em;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.26em;
  text-shadow: 0 0 28px rgba(244, 217, 154, 0.2);
}
.refined-poster .poster-copy h1 strong {
  display: block;
  color: #fff9ec;
  font-weight: 900;
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.3);
}

.refined-poster .hero-description {
  max-width: 500px;
  margin-top: 18px;
  color: rgba(246, 238, 223, 0.66);
  font-size: 12px;
  line-height: 1.9;
}

.poster-bounty-strip {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  margin-top: 22px;
  padding: 15px 17px 15px 14px;
  border: 1px solid rgba(217, 181, 111, 0.24);
  border-radius: 16px 5px 16px 5px;
  background:
    linear-gradient(100deg, rgba(255, 244, 209, 0.055), transparent 38%),
    rgba(3, 18, 15, 0.62);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 14px 34px rgba(0, 0, 0, 0.16);
}
.poster-bounty-strip::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -70px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(217, 181, 111, 0.12);
  transform: rotate(45deg);
}

.bounty-coin {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border: 1px solid rgba(255, 240, 198, 0.64);
  border-radius: 50%;
  color: #2b2113;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 252, 229, 0.9), transparent 32%),
    linear-gradient(145deg, #f1d999, #bd8c42);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), inset 0 0 0 4px rgba(92, 57, 18, 0.12);
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 900;
}
.bounty-coin::before,
.bounty-coin::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(92, 57, 18, 0.22);
  border-radius: 50%;
}
.bounty-coin::before { inset: 6px; }
.bounty-coin::after { inset: 10px; }
.bounty-coin span { position: relative; z-index: 1; transform: translateY(-1px); }
.bounty-coin i {
  position: absolute;
  right: 4px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 250, 225, 0.78);
}

.bounty-main {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.bounty-main small {
  display: block;
  color: rgba(246, 238, 223, 0.54);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.14em;
}
.bounty-main strong {
  display: block;
  margin: 1px 0;
  color: #f8df9d;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1;
  letter-spacing: -0.055em;
}
.bounty-main strong span {
  margin-right: 2px;
  font-size: 0.5em;
  vertical-align: 0.3em;
  letter-spacing: 0;
}
.bounty-main em {
  display: block;
  overflow: hidden;
  color: rgba(246, 238, 223, 0.52);
  font-size: 7px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bounty-rule {
  position: relative;
  z-index: 1;
  min-width: 112px;
  padding-left: 13px;
  border-left: 1px solid rgba(217, 181, 111, 0.18);
  text-align: right;
}
.bounty-rule > span {
  display: block;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 7px;
  letter-spacing: 0.14em;
}
.bounty-rule b {
  display: block;
  margin: 4px 0 3px;
  color: var(--ink);
  font-size: 10px;
}
.bounty-rule small {
  display: block;
  color: rgba(246, 238, 223, 0.45);
  font-size: 7px;
  line-height: 1.4;
}

.poster-trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}
.poster-trustline span {
  padding: 4px 7px;
  border: 1px solid rgba(217, 181, 111, 0.12);
  border-radius: 999px;
  color: rgba(246, 238, 223, 0.47);
  background: rgba(3, 18, 15, 0.34);
  font-size: 7px;
}
.poster-trustline span::before {
  content: "·";
  margin-right: 4px;
  color: var(--jade-bright);
}

.poster-calendar-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(217, 181, 111, 0.24);
  border-radius: 6px 24px 6px 24px;
  background:
    radial-gradient(circle at 86% 0%, rgba(217, 181, 111, 0.12), transparent 34%),
    linear-gradient(160deg, rgba(23, 58, 49, 0.78), rgba(4, 20, 17, 0.93));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.04);
}
.poster-calendar-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid rgba(217, 181, 111, 0.075);
  border-radius: 3px 18px 3px 18px;
}
.calendar-corner {
  position: absolute;
  z-index: 2;
  width: 30px;
  height: 30px;
  pointer-events: none;
}
.calendar-corner-tl {
  left: 7px;
  top: 7px;
  border-top: 2px solid rgba(244, 217, 154, 0.55);
  border-left: 2px solid rgba(244, 217, 154, 0.55);
}
.calendar-corner-br {
  right: 7px;
  bottom: 7px;
  border-right: 2px solid rgba(244, 217, 154, 0.55);
  border-bottom: 2px solid rgba(244, 217, 154, 0.55);
}

.poster-calendar-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 3px 13px;
  border-bottom: 1px solid rgba(217, 181, 111, 0.12);
}
.poster-calendar-kicker {
  display: block;
  margin-bottom: 5px;
  color: rgba(217, 181, 111, 0.66);
  font-family: Georgia, serif;
  font-size: 7px;
  letter-spacing: 0.17em;
}
.poster-calendar-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.poster-calendar-heading strong {
  color: var(--ink);
  font-family: "Songti SC", "STSong", serif;
  font-size: 25px;
  line-height: 1;
}
.poster-calendar-heading span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.ram-crest {
  position: relative;
  display: grid;
  place-items: center;
  width: 69px;
  height: 54px;
  color: rgba(244, 217, 154, 0.76);
}
.ram-crest svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  filter: drop-shadow(0 0 10px rgba(217, 181, 111, 0.15));
}
.ram-crest > span {
  position: absolute;
  bottom: -2px;
  right: 0;
  color: rgba(244, 217, 154, 0.62);
  font-size: 6px;
  letter-spacing: 0.15em;
}

.poster-calendar-stages {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 11px 3px 9px;
}
.poster-calendar-stages span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(114, 173, 149, 0.15);
  border-radius: 8px;
  color: rgba(246, 238, 223, 0.52);
  background: rgba(3, 18, 15, 0.32);
  font-size: 7px;
}
.poster-calendar-stages span:nth-child(2) {
  border-color: rgba(217, 181, 111, 0.22);
}
.poster-calendar-stages span:nth-child(3) {
  border-color: rgba(218, 102, 77, 0.3);
  color: rgba(255, 238, 205, 0.7);
  background: rgba(107, 42, 31, 0.28);
}
.poster-calendar-stages i {
  color: rgba(246, 238, 223, 0.28);
  font-family: Georgia, serif;
  font-size: 6px;
  font-style: normal;
}
.poster-calendar-stages b {
  color: var(--jade-bright);
  font-size: 8px;
}
.poster-calendar-stages span:nth-child(2) b { 
  color: var(--gold-bright);
}
.poster-calendar-stages span:nth-child(3) b { color: #ffd7a4; }

.poster-calendar-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.poster-day {
  position: relative;
  min-width: 0;
  min-height: 72px;
  padding: 9px 4px 7px;
  overflow: hidden;
  border: 1px solid rgba(114, 173, 149, 0.16);
  border-radius: 9px;
  background: linear-gradient(160deg, rgba(29, 79, 65, 0.43), rgba(4, 20, 17, 0.6));
  text-align: center;
}
.poster-day::after {
  content: "";
  position: absolute;
  right: -9px;
  bottom: -9px;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  transform: rotate(45deg);
}
.poster-day small {
  display: block;
  color: rgba(246, 238, 223, 0.32);
  font-family: Georgia, serif;
  font-size: 6px;
  letter-spacing: 0.04em;
}
.poster-day strong {
  display: block;
  margin: 4px 0 3px;
  color: rgba(246, 238, 223, 0.72);
  font-family: Georgia, "Songti SC", serif;
  font-size: 18px;
  line-height: 1;
}
.poster-day em {
  display: block;
  color: var(--jade-bright);
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}
.poster-day.stage-2 {
  border-color: rgba(217, 181, 111, 0.25);
  background: linear-gradient(160deg, rgba(95, 78, 39, 0.3), rgba(11, 28, 22, 0.68));
}
.poster-day.stage-2 strong { color: rgba(255, 242, 213, 0.84); }
.poster-day.stage-2 em { color: var(--gold-bright); }
.poster-day.stage-3 {
  border-color: rgba(244, 217, 154, 0.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 217, 154, 0.14), transparent 65%),
    linear-gradient(160deg, rgba(116, 47, 35, 0.66), rgba(37, 32, 22, 0.82));
  box-shadow: inset 0 0 16px rgba(244, 217, 154, 0.04);
}
.poster-day.stage-3 strong { color: #fff2cf; }
.poster-day.stage-3 em {
  color: #ffd89a;
  text-shadow: 0 0 10px rgba(255, 207, 133, 0.2);
}

.poster-calendar-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 3px 1px;
  color: rgba(246, 238, 223, 0.46);
  font-size: 7px;
}
.poster-calendar-foot i { color: var(--gold); font-style: normal; }
.poster-calendar-foot strong { color: var(--gold-bright); font-size: 8px; }

.refined-poster .poster-meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.28fr);
  gap: 12px;
  padding-top: 17px;
  border-top: 1px solid rgba(217, 181, 111, 0.12);
}
.refined-poster .date-ribbon {
  min-height: 58px;
  border: 1px solid rgba(217, 181, 111, 0.14);
  border-radius: 13px;
  color: rgba(246, 238, 223, 0.6);
  background: rgba(3, 18, 15, 0.46);
}
.refined-poster .date-icon {
  color: var(--gold-bright);
}
.refined-poster .date-ribbon strong { color: var(--gold-bright); }
.refined-poster .hero-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.refined-poster .hero-kpi {
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid rgba(217, 181, 111, 0.12);
  border-radius: 11px;
  background: rgba(3, 18, 15, 0.4);
  box-shadow: none;
}
.refined-poster .hero-kpi span { color: rgba(246, 238, 223, 0.4); }
.refined-poster .hero-kpi strong { color: rgba(255, 246, 224, 0.8); }

.refined-poster .poster-actions {
  margin-top: 18px;
}
.refined-poster .poster-primary {
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 5px 16px 5px 16px;
  letter-spacing: 0.04em;
}
.refined-poster .poster-login-link {
  color: rgba(246, 238, 223, 0.54);
}
.refined-poster .poster-login-link:hover { color: var(--gold-bright); }

.poster-feature-grid {
  gap: 12px;
  margin-top: 14px;
}
.quest-card {
  min-height: 206px;
  padding: 20px 19px 17px;
  border: 1px solid rgba(217, 181, 111, 0.14) !important;
  border-radius: 5px 22px 5px 22px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 181, 111, 0.075), transparent 34%),
    linear-gradient(150deg, rgba(19, 51, 43, 0.82), rgba(5, 22, 18, 0.94)) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24) !important;
}
.quest-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  bottom: 19px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--quest-accent), transparent);
}
.quest-study { --quest-accent: #d76b5a; }
.quest-family { --quest-accent: #7ebda6; }
.quest-sleep { --quest-accent: #dfb868; }
.quest-card .feature-index {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: var(--quest-accent);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
}
.quest-card .feature-index b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(217, 181, 111, 0.35);
  border: 1px solid color-mix(in srgb, var(--quest-accent) 45%, transparent);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 10px;
}
.quest-emblem {
  position: absolute;
  right: 18px;
  top: 51px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(217, 181, 111, 0.28);
  border: 1px solid color-mix(in srgb, var(--quest-accent) 32%, transparent);
  border-radius: 50%;
  color: #f4e7c3;
  color: color-mix(in srgb, var(--quest-accent) 75%, white);
  background: rgba(3, 18, 15, 0.44);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 19px;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.02);
}
.quest-emblem::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(217, 181, 111, 0.18);
  border: 1px solid color-mix(in srgb, var(--quest-accent) 18%, transparent);
  border-radius: 50%;
}
.quest-card > strong {
  display: block;
  padding-right: 58px;
  color: var(--ink);
  font-size: 19px;
}
.quest-card > p {
  min-height: 42px;
  padding-right: 48px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}
.quest-reward {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  padding-top: 11px;
  border-top: 1px solid rgba(217, 181, 111, 0.1);
}
.quest-reward span {
  color: rgba(246, 238, 223, 0.4);
  font-size: 8px;
}
.quest-reward b {
  color: var(--quest-accent);
  font-family: Georgia, serif;
  font-size: 20px;
}

.poster-share-note {
  border: 1px dashed rgba(217, 181, 111, 0.18) !important;
  color: var(--gold) !important;
  background: rgba(4, 20, 16, 0.58) !important;
}
.poster-share-note > span {
  color: #2b2114 !important;
  background: linear-gradient(145deg, #f0d89c, #b48842) !important;
}
.poster-share-note p { color: var(--muted) !important; }
.poster-share-note strong { color: var(--ink) !important; }


/* =========================================================
   Dashboard · bounty desk
   ========================================================= */
.dashboard-screen { position: relative; }
.dashboard-topbar {
  border: 1px solid rgba(217, 181, 111, 0.18);
  background:
    radial-gradient(circle at 84% 0%, rgba(217, 181, 111, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(12, 39, 33, 0.96), rgba(5, 20, 17, 0.96));
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.035);
}
.brand-chip-dark { color: var(--ink); }
.brand-chip-dark .brand-seal {
  color: #2d2114;
  border-color: rgba(255, 237, 189, 0.55);
  background: linear-gradient(145deg, #f0d89c, #b48842);
  box-shadow: 0 0 18px rgba(217, 181, 111, 0.13);
}
.role-chip-dark {
  color: var(--gold-bright);
  border-color: rgba(217, 181, 111, 0.22);
  background: rgba(217, 181, 111, 0.08);
}
.ghost-button-dark {
  color: rgba(246, 238, 223, 0.72);
  border-color: rgba(217, 181, 111, 0.19);
  background: rgba(21, 53, 45, 0.58);
}
.ghost-button-dark:hover {
  color: var(--gold-bright);
  border-color: rgba(244, 217, 154, 0.38);
  background: rgba(31, 72, 60, 0.7);
}
.dashboard-intro h1 {
  color: var(--ink);
  text-shadow: 0 10px 38px rgba(0, 0, 0, 0.32);
}
.dashboard-day-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 181, 111, 0.26);
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(217, 181, 111, 0.12), transparent 48%),
    linear-gradient(135deg, #6f2b22, #371b16);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 239, 197, 0.09);
}
.dashboard-day-card::after {
  content: "";
  position: absolute;
  width: 78px;
  height: 78px;
  right: -34px;
  bottom: -42px;
  border: 1px solid rgba(244, 217, 154, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(244, 217, 154, 0.035), 0 0 0 24px rgba(244, 217, 154, 0.025);
}
.dashboard-day-card span { color: rgba(246, 238, 223, 0.52); }
.dashboard-day-card strong { color: #ffe3a2; letter-spacing: 0.02em; }
.preview-notice {
  color: #f0dca9;
  border-color: rgba(217, 181, 111, 0.26);
  background:
    linear-gradient(90deg, rgba(217, 181, 111, 0.11), transparent),
    rgba(27, 52, 40, 0.72);
  box-shadow: inset 3px 0 rgba(217, 181, 111, 0.38);
}
.preview-notice > span { color: var(--gold-bright); }
.preview-notice strong { color: var(--ink); }
.preview-notice p { color: rgba(246, 238, 223, 0.66); }

.panel {
  border-color: rgba(217, 181, 111, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 181, 111, 0.055), transparent 30%),
    linear-gradient(160deg, rgba(11, 37, 31, 0.94), rgba(5, 21, 18, 0.97));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.025);
}
.panel-heading { border-color: rgba(217, 181, 111, 0.12) !important; }
.panel-heading h2 { color: var(--ink); }
.panel-heading p:not(.section-kicker) { color: var(--muted); }
.save-state {
  color: var(--jade-bright);
  border: 1px solid rgba(114, 173, 149, 0.2);
  background: rgba(114, 173, 149, 0.09);
}
.current-day-row {
  border: 1px solid rgba(217, 181, 111, 0.13);
  background:
    linear-gradient(90deg, rgba(217, 181, 111, 0.07), transparent),
    rgba(18, 46, 39, 0.64);
}
.current-day-row > div span { color: rgba(246, 238, 223, 0.43); }
.current-day-row > div strong { color: var(--ink); }
.current-day-badge {
  color: #b9e6d2;
  border: 1px solid rgba(114, 173, 149, 0.2);
  background: rgba(114, 173, 149, 0.12);
}
.current-day-badge.is-preview {
  color: var(--gold-bright);
  border-color: rgba(217, 181, 111, 0.22);
  background: rgba(217, 181, 111, 0.1);
}

.mission-card {
  position: relative;
  overflow: hidden;
  border-radius: 5px 20px 5px 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 181, 111, 0.08), transparent 36%),
    linear-gradient(145deg, rgba(15, 45, 38, 0.9), rgba(6, 25, 21, 0.94));
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--mission-accent) 9%, transparent), transparent 36%),
    linear-gradient(145deg, rgba(15, 45, 38, 0.9), rgba(6, 25, 21, 0.94));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}
.mission-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--mission-accent), transparent);
}
.mission-study { --mission-accent: #df7665; border-color: rgba(223, 118, 101, 0.22); }
.mission-family { --mission-accent: #d9b56f; border-color: rgba(217, 181, 111, 0.23); }
.mission-sleep { --mission-accent: #83bea8; border-color: rgba(131, 190, 168, 0.21); }
.mission-icon {
  color: var(--mission-accent);
  border: 1px solid rgba(217, 181, 111, 0.24);
  border: 1px solid color-mix(in srgb, var(--mission-accent) 26%, transparent);
  border-radius: 50%;
  background: rgba(4, 20, 16, 0.6);
  box-shadow: inset 0 0 16px rgba(217, 181, 111, 0.06);
  box-shadow: inset 0 0 16px color-mix(in srgb, var(--mission-accent) 6%, transparent);
}
.mission-family .mission-icon,
.mission-sleep .mission-icon {
  color: var(--mission-accent);
  background: rgba(4, 20, 16, 0.6);
}
.mission-label { color: rgba(246, 238, 223, 0.44); }
.mission-label span { color: var(--mission-accent); }
.mission-title h3 { color: var(--ink); }
.mission-title p { color: var(--muted); }
.mission-status {
  padding-top: 9px;
  border-top: 1px solid rgba(217, 181, 111, 0.09);
  color: rgba(246, 238, 223, 0.5);
}
.mission-status.is-complete { color: var(--mission-accent); }

.session-grid { gap: 9px; }
.check-tile {
  min-height: 62px;
  border-color: rgba(217, 181, 111, 0.13);
  background: rgba(3, 19, 16, 0.48);
  cursor: pointer;
  user-select: none;
}
.check-tile:hover {
  border-color: rgba(244, 217, 154, 0.34);
  border-color: color-mix(in srgb, var(--mission-accent, var(--gold)) 35%, transparent);
  background: rgba(22, 55, 46, 0.56);
}
.check-tile.is-checked {
  border-color: rgba(244, 217, 154, 0.46);
  background:
    linear-gradient(90deg, rgba(244, 217, 154, 0.1), transparent),
    rgba(24, 61, 50, 0.92);
  box-shadow: inset 3px 0 rgba(244, 217, 154, 0.58);
  border-color: color-mix(in srgb, var(--mission-accent, var(--gold)) 48%, transparent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--mission-accent, var(--gold)) 10%, transparent), transparent),
    rgba(15, 45, 37, 0.82);
  box-shadow: inset 3px 0 color-mix(in srgb, var(--mission-accent, var(--gold)) 58%, transparent);
}
.check-tile input:focus-visible + .check-box {
  outline: 2px solid rgba(244, 217, 154, 0.72);
  outline-offset: 2px;
}
.check-box {
  width: 25px;
  height: 25px;
  border: 1.5px solid rgba(244, 217, 154, 0.34);
  border-radius: 7px;
  background: rgba(3, 18, 15, 0.72);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.28);
}
.check-tile input:checked + .check-box,
.mission-sleep .check-tile input:checked + .check-box {
  border-color: var(--mission-accent, var(--gold-bright));
  background: var(--mission-accent, var(--gold));
  box-shadow: 0 0 15px rgba(244, 217, 154, 0.18);
  box-shadow: 0 0 15px color-mix(in srgb, var(--mission-accent, var(--gold)) 18%, transparent);
}
.check-copy strong { color: var(--ink); }
.check-copy small { color: rgba(246, 238, 223, 0.47); }
.check-tile-wide { margin-top: 11px; }

.select-field > span,
.notes-field > span { color: rgba(246, 238, 223, 0.54); }
.select-field select,
.notes-field textarea,
.pin-field input,
.admin-field input,
.admin-field select {
  border: 1px solid rgba(217, 181, 111, 0.18);
  color: var(--ink);
  background: rgba(2, 16, 13, 0.68);
  caret-color: var(--gold-bright);
}
.select-field select { min-height: 45px; }
.notes-field textarea {
  min-height: 94px;
  border-radius: 5px 15px 5px 15px;
  padding: 12px;
  resize: vertical;
}
.select-field select:focus,
.notes-field textarea:focus,
.pin-field input:focus,
.admin-field input:focus,
.admin-field select:focus {
  outline: 2px solid rgba(244, 217, 154, 0.18);
  border-color: rgba(244, 217, 154, 0.5);
}
.select-field option { color: #f6eedf; background: #0b2620; }
.notes-field > span { display: block; margin: 0 2px 7px; font-size: 9px; font-weight: 750; }

.upload-block {
  border: 1px dashed rgba(131, 190, 168, 0.32);
  background:
    linear-gradient(90deg, rgba(114, 173, 149, 0.07), transparent),
    rgba(3, 19, 16, 0.42);
}
.upload-copy strong { color: var(--ink); }
.upload-copy span { color: rgba(246, 238, 223, 0.48); }
.upload-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c7eadc;
  border: 1px solid rgba(131, 190, 168, 0.3);
  background: rgba(114, 173, 149, 0.1);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}
.upload-button:hover {
  color: #052019;
  border-color: #a7d8c5;
  background: #a7d8c5;
}
.upload-preview {
  border: 1px solid rgba(217, 181, 111, 0.14);
  background: rgba(3, 19, 16, 0.58);
}
.upload-preview img { border: 1px solid rgba(244, 217, 154, 0.18); }
.upload-preview strong { color: var(--ink); }
.upload-preview .text-button { color: var(--gold-bright); }
.existing-shot {
  border-color: rgba(114, 173, 149, 0.15) !important;
  color: var(--muted) !important;
  background: rgba(114, 173, 149, 0.07) !important;
}
.existing-shot a { color: var(--jade-bright); }
.submit-row {
  border-color: rgba(217, 181, 111, 0.16) !important;
  background:
    radial-gradient(circle at 0% 50%, rgba(217, 181, 111, 0.09), transparent 30%),
    rgba(5, 23, 19, 0.72) !important;
}
.earned-preview span { color: var(--muted); }
.earned-preview strong { color: var(--gold-bright); }
.form-message { color: #efa090; }
.form-message.is-success { color: var(--jade-bright); }

/* =========================================================
   Player cards · bounty calendar
   ========================================================= */
.player-card {
  border: 1px solid rgba(217, 181, 111, 0.14);
  border-radius: 5px 24px 5px 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 181, 111, 0.1), transparent 34%),
    linear-gradient(155deg, rgba(13, 42, 35, 0.94), rgba(5, 22, 18, 0.97));
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--player-color, var(--gold)) 11%, transparent), transparent 34%),
    linear-gradient(155deg, rgba(13, 42, 35, 0.94), rgba(5, 22, 18, 0.97));
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.03);
}
.player-card::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--player-color, var(--gold)), transparent);
  opacity: 0.9;
}
.player-card::after {
  top: 45px;
  background: radial-gradient(circle, rgba(217, 181, 111, 0.12), transparent 68%);
  background: radial-gradient(circle, color-mix(in srgb, var(--player-color, var(--gold)) 13%, transparent), transparent 68%);
}
.player-card.is-self-card {
  border-color: rgba(217, 181, 111, 0.3);
  border-color: color-mix(in srgb, var(--player-color, var(--gold)) 32%, transparent);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(217, 181, 111, 0.08);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28), inset 0 0 0 1px color-mix(in srgb, var(--player-color, var(--gold)) 8%, transparent);
}
.avatar {
  border: 1px solid rgba(244, 217, 154, 0.48);
  border: 1px solid color-mix(in srgb, var(--player-color, var(--gold)) 54%, #ffe5ac);
  border-radius: 50%;
  color: #fff4d5;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(145deg, #4b7868, #071612);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(145deg, color-mix(in srgb, var(--player-color, var(--gold)) 78%, #213b31), color-mix(in srgb, var(--player-color, var(--gold)) 54%, #071612));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), inset 0 0 0 3px rgba(3, 18, 15, 0.2);
}
.player-identity small { color: rgba(246, 238, 223, 0.4); }
.player-identity h3 { color: var(--ink); }
.player-role { color: var(--muted); }
.player-total span { color: rgba(246, 238, 223, 0.42); }
.player-total strong {
  color: var(--gold-bright);
  text-shadow: 0 0 18px rgba(244, 217, 154, 0.12);
}
.stage-pill {
  color: #f2dba7;
  color: color-mix(in srgb, var(--player-color, var(--gold)) 72%, #f8e8bb);
  border: 1px solid rgba(217, 181, 111, 0.26);
  border: 1px solid color-mix(in srgb, var(--player-color, var(--gold)) 28%, transparent);
  background: rgba(3, 19, 16, 0.46);
}
.next-reward { color: rgba(246, 238, 223, 0.48); }
.track-list { gap: 17px; }
.track-head { margin-bottom: 7px; }
.track-head span { color: rgba(246, 238, 223, 0.68); font-weight: 750; }
.track-head strong { color: var(--gold-bright); }
.sleep-unlocked { color: var(--jade-bright); }

.calendar-stage-key {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}
.calendar-stage-key span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid rgba(217, 181, 111, 0.1);
  border-radius: 5px;
  color: rgba(246, 238, 223, 0.48);
  background: rgba(3, 18, 15, 0.42);
  font-size: 6px;
  white-space: nowrap;
}
.calendar-stage-key b { font-family: Georgia, serif; font-size: 7px; }
.key-stage-1 { border-color: rgba(114, 173, 149, 0.18) !important; }
.key-stage-1 b { color: #9bd5be; }
.key-stage-2 { border-color: rgba(217, 181, 111, 0.22) !important; }
.key-stage-2 b { color: var(--gold-bright); }
.key-stage-3 {
  border-color: rgba(218, 112, 90, 0.25) !important;
  background: linear-gradient(90deg, rgba(155, 60, 47, 0.14), rgba(3, 18, 15, 0.42)) !important;
}
.key-stage-3 b { color: #ffd29b; }
.calendar-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}
.calendar-day {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  place-items: center;
  min-width: 0;
  min-height: 52px;
  padding: 5px 3px 4px;
  overflow: hidden;
  border: 1px solid rgba(217, 181, 111, 0.12);
  border-radius: 7px;
  color: rgba(246, 238, 223, 0.42);
  background: rgba(4, 21, 17, 0.58);
  font: inherit;
  line-height: 1;
}
button.calendar-day { cursor: pointer; }
button.calendar-day:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 217, 154, 0.35);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}
.calendar-day small {
  color: currentColor;
  font-size: 6px;
  opacity: 0.72;
  letter-spacing: 0.04em;
}
.calendar-day strong {
  color: rgba(246, 238, 223, 0.68);
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 500;
}
.calendar-day em {
  color: currentColor;
  font-family: Georgia, serif;
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
}
.calendar-day > i {
  position: absolute;
  right: 4px;
  top: 4px;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  font-size: 6px;
  font-style: normal;
  font-weight: 850;
  background: rgba(3, 18, 15, 0.7);
}
.calendar-day.stage-1 { color: #8dc3ae; border-color: rgba(114, 173, 149, 0.17); }
.calendar-day.stage-2 {
  color: #e0bd72;
  border-color: rgba(217, 181, 111, 0.23);
  background: linear-gradient(160deg, rgba(70, 57, 31, 0.42), rgba(4, 21, 17, 0.66));
}
.calendar-day.stage-3 {
  color: #ffcca0;
  border-color: rgba(218, 112, 90, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 176, 105, 0.1), transparent 52%),
    linear-gradient(160deg, rgba(112, 44, 34, 0.45), rgba(25, 25, 17, 0.7));
}
.calendar-day.stage-2 strong { color: rgba(255, 245, 218, 0.8); }
.calendar-day.stage-3 strong { color: #fff0ca; }
.calendar-day.stage-3 em { text-shadow: 0 0 9px rgba(255, 198, 116, 0.22); }
.calendar-day.is-none { opacity: 0.58; }
.calendar-day.is-pending {
  opacity: 1;
  border-color: rgba(244, 217, 154, 0.54);
  box-shadow: inset 0 0 0 1px rgba(244, 217, 154, 0.08), 0 0 14px rgba(217, 181, 111, 0.09);
}
.calendar-day.is-pending > i { color: #2d2114; background: var(--gold-bright); }
.calendar-day.is-confirmed {
  opacity: 1;
  border-color: rgba(131, 190, 168, 0.5);
  background:
    linear-gradient(150deg, rgba(46, 102, 82, 0.58), rgba(7, 29, 23, 0.8));
  box-shadow: inset 0 0 0 1px rgba(131, 190, 168, 0.08);
}
.calendar-day.is-confirmed > i { color: #072019; background: #9bd5be; }
.calendar-day.is-disputed {
  opacity: 1;
  border-color: rgba(235, 113, 91, 0.64);
  background: linear-gradient(150deg, rgba(142, 49, 38, 0.6), rgba(37, 21, 18, 0.86));
  box-shadow: 0 0 15px rgba(198, 81, 66, 0.12);
}
.calendar-day.is-disputed > i { color: #fff1df; background: #c65142; }
.calendar-day.is-revoked {
  opacity: 0.6;
  border-color: rgba(246, 238, 223, 0.1);
  background: rgba(22, 28, 25, 0.55);
  filter: grayscale(0.85);
}
.calendar-day.is-revoked > i { color: #b7b0a4; background: rgba(50, 54, 51, 0.9); }
.calendar-day.can-dispute {
  cursor: crosshair;
  border-style: dashed;
}
.calendar-day.can-dispute::after {
  content: "核验";
  position: absolute;
  left: 50%;
  bottom: 2px;
  padding: 1px 3px;
  border-radius: 3px;
  color: #ffd9a5;
  background: rgba(130, 47, 37, 0.86);
  font-size: 5px;
  opacity: 0;
  transform: translateX(-50%) translateY(3px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.calendar-day.can-dispute:hover::after,
.calendar-day.can-dispute:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.calendar-track .track-meta {
  align-items: center;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(217, 181, 111, 0.08);
  color: rgba(246, 238, 223, 0.38);
}
.track-meta .earned { color: var(--gold-bright); }
.pending-inline { color: #e0bd72; font-weight: 650; }
.player-footer {
  border-top-color: rgba(217, 181, 111, 0.13);
  color: rgba(246, 238, 223, 0.43);
}
.player-footer strong { color: var(--gold-bright); }
.self-only-note {
  color: #9bd5be !important;
  border: 1px solid rgba(114, 173, 149, 0.17);
  background: rgba(114, 173, 149, 0.08) !important;
}
.self-only-note.muted-self {
  color: #e0bd72 !important;
  border-color: rgba(217, 181, 111, 0.17);
  background: rgba(217, 181, 111, 0.08) !important;
}

/* =========================================================
   Review desk · shared records · dialog
   ========================================================= */
.review-summary > div {
  border: 1px solid rgba(217, 181, 111, 0.13);
  background:
    linear-gradient(145deg, rgba(217, 181, 111, 0.06), transparent),
    rgba(4, 21, 17, 0.62);
}
.review-summary span { color: rgba(246, 238, 223, 0.42); }
.review-summary strong { color: var(--gold-bright); }
.review-item {
  border: 1px solid rgba(217, 181, 111, 0.13);
  border-radius: 5px 16px 5px 16px;
  background: rgba(5, 23, 19, 0.74);
}
.review-item.is-dispute {
  border-color: rgba(219, 102, 82, 0.38);
  background:
    linear-gradient(90deg, rgba(147, 51, 39, 0.13), transparent 42%),
    rgba(18, 27, 22, 0.84);
}
.review-item-head strong { color: var(--ink); }
.review-item-head > div span { color: var(--muted); }
.review-avatar {
  border: 1px solid rgba(217, 181, 111, 0.34);
  border: 1px solid color-mix(in srgb, var(--player-color, var(--gold)) 38%, transparent);
  color: #fff2d2;
  background: #315b4e;
  background: color-mix(in srgb, var(--player-color, var(--gold)) 50%, #071612);
}
.review-status {
  color: rgba(246, 238, 223, 0.55);
  border: 1px solid rgba(217, 181, 111, 0.12);
  background: rgba(3, 18, 15, 0.54);
}
.review-status.pending { color: #f1d28d; border-color: rgba(217, 181, 111, 0.22); background: rgba(217, 181, 111, 0.08); }
.review-status.dispute { color: #ffc0ad; border-color: rgba(219, 102, 82, 0.25); background: rgba(198, 81, 66, 0.12); }
.review-status.revoked { color: #b8b0a0; }
.review-dispute-note {
  border: 1px solid rgba(219, 102, 82, 0.18);
  background: rgba(123, 42, 33, 0.12);
}
.review-dispute-note span { color: #ffc0ad; }
.review-dispute-note p { color: rgba(246, 238, 223, 0.62); }
.review-action {
  min-height: 36px;
  border-radius: 8px;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.review-action:hover { transform: translateY(-1px); filter: brightness(1.08); }
.review-action.confirm {
  color: #062018;
  border: 1px solid rgba(190, 234, 215, 0.38);
  background: linear-gradient(135deg, #a4d7c3, #5fa78d);
}
.review-action.revoke {
  color: #ffb9a9;
  border: 1px solid rgba(219, 102, 82, 0.35);
  background: rgba(132, 43, 33, 0.28);
}
.admin-tools {
  border-top-color: rgba(217, 181, 111, 0.13);
}
.admin-tools-heading h3 { color: var(--ink); }
.admin-tools-heading > span {
  color: var(--gold-bright);
  border: 1px solid rgba(217, 181, 111, 0.17);
  background: rgba(217, 181, 111, 0.08);
}
.admin-tools-help { color: var(--muted); }
.admin-field > span { color: rgba(246, 238, 223, 0.5); }
.admin-reset-message { color: #ef9b8c; }
.admin-reset-message.is-success { color: var(--jade-bright); }

.history-panel .panel-heading { border-color: rgba(217, 181, 111, 0.12); }
.record-card {
  border: 1px solid rgba(217, 181, 111, 0.12);
  border-radius: 5px 18px 5px 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 181, 111, 0.07), transparent 26%),
    rgba(5, 23, 19, 0.68);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--player-color, var(--gold)) 7%, transparent), transparent 26%),
    rgba(5, 23, 19, 0.68);
}
.record-card-head { border-bottom-color: rgba(217, 181, 111, 0.1); }
.record-avatar {
  border: 1px solid rgba(217, 181, 111, 0.38);
  border: 1px solid color-mix(in srgb, var(--player-color, var(--gold)) 42%, transparent);
  color: #fff2d2;
  background: #2d574a;
  background: color-mix(in srgb, var(--player-color, var(--gold)) 48%, #071612);
}
.record-person strong { color: var(--ink); }
.record-person span { color: var(--muted); }
.record-summary span {
  color: #a9dbc7;
  border: 1px solid rgba(114, 173, 149, 0.15);
  background: rgba(114, 173, 149, 0.08);
}
.record-summary b {
  color: #f1d28d;
  border: 1px solid rgba(217, 181, 111, 0.14);
  background: rgba(217, 181, 111, 0.08);
}
.record-track {
  border: 1px solid transparent;
  background: rgba(2, 17, 14, 0.5);
}
.record-track.is-done {
  border-color: rgba(217, 181, 111, 0.08);
  background: rgba(15, 42, 34, 0.55);
}
.record-track.has-dispute {
  border-color: rgba(219, 102, 82, 0.25);
  background: rgba(89, 34, 28, 0.2);
}
.record-track-icon {
  color: rgba(246, 238, 223, 0.45);
  border: 1px solid rgba(217, 181, 111, 0.1);
  background: rgba(3, 18, 15, 0.55);
}
.record-track.is-done .record-track-icon {
  color: var(--gold-bright);
  border-color: rgba(217, 181, 111, 0.18);
  background: rgba(217, 181, 111, 0.08);
}
.record-track-copy strong { color: rgba(246, 238, 223, 0.82); }
.record-track-copy p { color: var(--muted); }
.review-badge { border: 1px solid transparent; }
.review-badge.pending { color: #f1d28d; border-color: rgba(217, 181, 111, 0.2); background: rgba(217, 181, 111, 0.08); }
.review-badge.confirmed { color: #a9dbc7; border-color: rgba(114, 173, 149, 0.18); background: rgba(114, 173, 149, 0.08); }
.review-badge.revoked { color: #ef9b8c; border-color: rgba(198, 81, 66, 0.2); background: rgba(198, 81, 66, 0.08); }
.review-badge.none { color: rgba(246, 238, 223, 0.35); background: rgba(246, 238, 223, 0.035); }
.dispute-state {
  border: 1px solid rgba(219, 102, 82, 0.2);
  color: #ffc0ad;
  background: rgba(198, 81, 66, 0.08);
}
.dispute-state.is-valid { color: #a9dbc7; border-color: rgba(114, 173, 149, 0.18); background: rgba(114, 173, 149, 0.08); }
.dispute-state.is-invalid { color: #ffc0ad; }
.dispute-action {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px dashed rgba(217, 181, 111, 0.3);
  border-radius: 7px;
  color: #efd396;
  background: rgba(217, 181, 111, 0.06);
  font-size: 7px;
  font-weight: 800;
}
.dispute-action:hover {
  color: #231a0f;
  border-color: var(--gold-bright);
  background: var(--gold-bright);
}
.record-own-note { color: rgba(246, 238, 223, 0.32); font-size: 7px; }
.record-photo { color: var(--muted); }
.record-photo span { color: var(--jade-bright); }
.record-photo img { border: 1px solid rgba(244, 217, 154, 0.16); background: rgba(3, 18, 15, 0.5); }
.record-note {
  border-left-color: rgba(217, 181, 111, 0.35);
  color: var(--muted);
  background: rgba(3, 18, 15, 0.4);
}
.empty-state {
  border: 1px dashed rgba(217, 181, 111, 0.16);
  color: var(--muted);
  background: rgba(3, 18, 15, 0.34);
}
.empty-state strong { color: rgba(246, 238, 223, 0.72); }

.dispute-dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid rgba(217, 181, 111, 0.28);
  border-radius: 5px 24px 5px 24px;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(198, 81, 66, 0.12), transparent 34%),
    linear-gradient(155deg, #0d2b24, #061a16);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6), inset 0 1px rgba(255, 255, 255, 0.04);
}
.dispute-dialog::backdrop {
  background: rgba(1, 10, 8, 0.78);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.dispute-form {
  position: relative;
  margin: 0;
  padding: 26px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.dispute-form h2 { color: var(--ink); }
.dispute-close {
  color: rgba(246, 238, 223, 0.58);
  border: 1px solid rgba(217, 181, 111, 0.14);
  background: rgba(3, 18, 15, 0.54);
}
.dispute-close:hover { color: var(--gold-bright); border-color: rgba(217, 181, 111, 0.35); }
.dispute-context { color: var(--muted); }
.dispute-reason-field > span { color: rgba(246, 238, 223, 0.54); }
.dispute-reason-field textarea {
  border: 1px solid rgba(217, 181, 111, 0.18);
  color: var(--ink);
  background: rgba(2, 16, 13, 0.72);
  caret-color: var(--gold-bright);
}
.dispute-reason-field textarea:focus {
  border-color: rgba(244, 217, 154, 0.5);
  outline: 2px solid rgba(244, 217, 154, 0.16);
}
.dispute-help { color: rgba(246, 238, 223, 0.42); }
.dispute-actions { border-color: rgba(217, 181, 111, 0.11) !important; }

.toast {
  color: #1d170f;
  border: 1px solid rgba(255, 241, 201, 0.65);
  background: linear-gradient(135deg, #f1d89f, #c69a51);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}
.footer { color: rgba(246, 238, 223, 0.34); }
.footer span { border-color: rgba(217, 181, 111, 0.1); }

/* =========================================================
   Small-screen game layout
   ========================================================= */
@media (max-width: 760px) {
  .app-shell-wizard { padding: 8px 9px calc(28px + var(--safe-bottom)); }
  .step-nav { border-radius: 13px; }
  .refined-poster {
    padding: 15px 14px 17px !important;
    border-radius: 4px 24px 4px 24px !important;
  }
  .refined-poster .poster-topbar {
    align-items: flex-start;
    gap: 8px;
  }
  .refined-poster .hero-identity { gap: 5px; }
  .refined-poster .role-chip {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .refined-poster .bounty-share {
    min-height: 33px;
    padding: 6px 9px;
    font-size: 9px;
  }
  .refined-poster .poster-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    padding: 21px 0 17px;
  }
  .refined-poster .poster-copy { text-align: left; }
  .refined-poster .eyebrow { font-size: 7px; }
  .refined-poster .poster-copy h1 {
    margin-top: 5px;
    font-size: clamp(38px, 12vw, 54px);
  }
  .refined-poster .hero-description {
    margin-top: 13px;
    font-size: 10px;
    line-height: 1.75;
  }
  .poster-bounty-strip {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 9px 11px;
    margin-top: 16px;
    padding: 12px;
  }
  .bounty-coin { width: 44px; height: 44px; font-size: 18px; }
  .bounty-main strong { font-size: 34px; }
  .bounty-rule {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    padding: 8px 2px 0 0;
    border-top: 1px solid rgba(217, 181, 111, 0.12);
    border-left: 0;
    text-align: left;
  }
  .bounty-rule b { margin-left: auto; font-size: 9px; }
  .bounty-rule small { display: none; }
  .poster-trustline { justify-content: flex-start; }
  .poster-calendar-card {
    min-height: 0;
    padding: 13px 11px 10px;
    border-radius: 4px 18px 4px 18px;
  }
  .poster-calendar-head { margin-bottom: 9px; }
  .poster-calendar-heading strong { font-size: 24px; }
  .poster-calendar-heading span { font-size: 9px; }
  .ram-crest { width: 54px; height: 46px; }
  .ram-crest > span { font-size: 5px; }
  .poster-calendar-stages { gap: 4px; margin-bottom: 7px; }
  .poster-calendar-stages span { padding: 5px 4px; font-size: 7px; }
  .poster-calendar-stages i { display: none; }
  .poster-calendar-grid { gap: 4px; }
  .poster-day { min-height: 48px; padding: 4px 2px; border-radius: 6px; }
  .poster-day small { font-size: 5px; }
  .poster-day strong { font-size: 13px; }
  .poster-day em { font-size: 6px; }
  .poster-calendar-foot { margin-top: 7px; font-size: 6px; }
  .poster-calendar-foot strong { font-size: 7px; }
  .refined-poster .poster-meta { grid-template-columns: 1fr; gap: 7px; }
  .refined-poster .date-ribbon { min-height: 46px; }
  .refined-poster .hero-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .refined-poster .hero-kpi { min-height: 50px; padding: 7px; }
  .refined-poster .hero-kpi span { font-size: 6px; }
  .refined-poster .hero-kpi strong { font-size: 8px; line-height: 1.4; }
  .refined-poster .poster-actions { margin-top: 13px; }
  .refined-poster .poster-primary { min-height: 47px; }

  .poster-feature-grid { margin-top: 10px; }
  .quest-card { min-height: 174px; padding: 17px 16px 14px; }
  .quest-emblem { width: 42px; height: 42px; top: 45px; font-size: 17px; }
  .quest-card > strong { font-size: 17px; }
  .quest-card > p { min-height: 0; font-size: 8px; }

  .dashboard-topbar {
    align-items: flex-start;
    gap: 9px;
    padding: 12px;
    border-radius: 4px 17px 4px 17px;
  }
  .brand-chip-dark { font-size: 9px; }
  .brand-chip-dark .brand-seal { width: 25px; height: 25px; font-size: 14px; }
  .role-chip-dark { max-width: 165px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dashboard-top-actions { gap: 5px; }
  .dashboard-top-actions .ghost-button { min-height: 30px; padding: 5px 8px; }
  .dashboard-intro { margin: 20px 3px 14px; }
  .dashboard-intro h1 { font-size: 34px; }
  .dashboard-day-card { min-height: 68px; padding: 11px 13px; }
  .panel { padding: 14px; border-radius: 4px 20px 4px 20px; }
  .checkin-panel .panel-heading h2,
  .review-panel .panel-heading h2,
  .history-panel .panel-heading h2 { font-size: 21px; }
  .current-day-row { padding: 10px 11px; }
  .mission-card { padding: 15px 13px; }
  .mission-head { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
  .mission-icon { width: 34px; height: 34px; font-size: 16px; }
  .mission-title h3 { font-size: 14px; line-height: 1.45; }
  .mission-title p { font-size: 9px; line-height: 1.6; }
  .session-grid { grid-template-columns: 1fr; gap: 7px; }
  .check-tile { min-height: 58px; padding: 10px; }
  .check-box { width: 26px; height: 26px; }
  .select-field { grid-template-columns: 1fr; gap: 6px; }
  .select-field select { min-height: 46px; }
  .upload-block { align-items: stretch; flex-direction: column; gap: 9px; }
  .upload-button { width: 100%; min-height: 44px; }
  .submit-row { align-items: stretch; flex-direction: column; gap: 10px; }
  .submit-row .primary-button { width: 100%; min-height: 46px; }

  .player-grid { grid-template-columns: 1fr; gap: 10px; }
  .player-card { padding: 16px 13px; border-radius: 4px 20px 4px 20px; }
  .player-head { gap: 9px; }
  .avatar { width: 43px; height: 43px; font-size: 19px; }
  .player-identity h3 { font-size: 18px; }
  .player-identity small { font-size: 8px; }
  .player-role { font-size: 9px; }
  .player-total span { font-size: 8px; }
  .player-total strong { font-size: 23px; }
  .player-stage-row { margin-top: 13px; }
  .stage-pill { font-size: 8px; }
  .next-reward { font-size: 8px; text-align: right; }
  .track-list { gap: 15px; margin-top: 14px; }
  .calendar-stage-key span { display: block; padding: 4px 3px; text-align: center; font-size: 5px; }
  .calendar-stage-key b { display: block; margin-top: 2px; font-size: 7px; }
  .calendar-progress { gap: 4px; }
  .calendar-day { min-height: 49px; padding: 4px 1px 3px; }
  .calendar-day small { font-size: 5px; }
  .calendar-day strong { font-size: 13px; }
  .calendar-day em { font-size: 6px; }
  .calendar-day > i { top: 3px; right: 3px; width: 12px; height: 12px; font-size: 5px; }
  .player-footer { flex-wrap: wrap; gap: 6px; font-size: 8px; }
  .player-footer > span:nth-child(2) { order: 3; flex-basis: 100%; }

  .review-summary { gap: 4px; }
  .review-summary > div { padding: 8px 6px; }
  .review-item { padding: 11px; }
  .review-item-actions { flex-wrap: wrap; }
  .review-action { min-height: 37px; flex: 1 1 auto; }
  .admin-reset-form { grid-template-columns: 1fr 1fr; }
  .admin-field-wide,
  .admin-reset-form .primary-button { grid-column: 1 / -1; }
  .record-track { grid-template-columns: 31px minmax(0, 1fr); gap: 7px; }
  .record-track-side { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .record-track-side > * { flex: 0 0 auto; }
  .record-photo { grid-column: 2; justify-items: start; }
  .record-photo img { width: 52px; height: 68px; }
  .dispute-form { padding: 21px 17px 18px; }
  .dispute-actions { flex-direction: column-reverse; }
  .dispute-actions button { width: 100%; min-height: 45px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (max-width: 370px) {
  .refined-poster .role-chip { display: none; }
  .refined-poster .poster-copy h1 { font-size: 36px; }
  .bounty-rule b { font-size: 8px; }
  .refined-poster .hero-kpis { grid-template-columns: 1fr; }
  .refined-poster .hero-kpi { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
  .calendar-day { min-height: 46px; }
  .player-total strong { font-size: 21px; }
  .calendar-stage-key span { font-size: 4.5px; }
}

/* Rules ledger rebuilt: readable calendar, amount hierarchy, staged reward cards */
.rules-ledger {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
  border: 1px solid rgba(217, 181, 111, 0.19);
  border-radius: 26px 6px 26px 6px;
  background:
    linear-gradient(135deg, rgba(207, 83, 66, 0.11), transparent 36%),
    linear-gradient(155deg, rgba(16, 50, 42, 0.97), rgba(4, 20, 17, 0.99)) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 246, 220, 0.035);
}
.rules-ledger-aside {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  padding: 27px 24px 25px;
  border-right: 1px solid rgba(217, 181, 111, 0.14);
  background:
    radial-gradient(circle at 84% 8%, rgba(217, 181, 111, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(22, 65, 53, 0.82), rgba(6, 24, 20, 0.94)) !important;
}
.ledger-ornament {
  position: absolute;
  z-index: -1;
  right: -20px;
  top: -40px;
  color: rgba(217, 181, 111, 0.045);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 180px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(8deg);
}
.ledger-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.ledger-date-range {
  margin: 10px 0 0;
  color: var(--ink) !important;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(22px, 2.35vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.ledger-date-range i {
  margin: 0 4px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 0.66em;
  font-style: normal;
  opacity: 0.7;
}
.ledger-subtitle {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}
.ledger-calendar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 20px;
}
.ledger-calendar .ledger-day {
  display: flex;
  min-width: 0;
  min-height: 49px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(217, 181, 111, 0.13);
  border-radius: 12px 3px 12px 3px;
  color: var(--ink) !important;
  background: rgba(213, 228, 207, 0.055) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025) !important;
}
.ledger-calendar .ledger-day-1 {
  border-color: rgba(129, 189, 162, 0.23);
  background: linear-gradient(150deg, rgba(62, 129, 107, 0.22), rgba(7, 30, 24, 0.7)) !important;
}
.ledger-calendar .ledger-day-2 {
  border-color: rgba(224, 181, 95, 0.36);
  background: linear-gradient(150deg, rgba(173, 117, 40, 0.24), rgba(37, 31, 17, 0.78)) !important;
}
.ledger-calendar .ledger-day-3 {
  border-color: rgba(247, 207, 112, 0.52);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 219, 126, 0.17), transparent 58%),
    linear-gradient(150deg, rgba(151, 60, 38, 0.55), rgba(62, 34, 17, 0.84)) !important;
  box-shadow: inset 0 0 18px rgba(255, 217, 113, 0.055), 0 7px 18px rgba(0, 0, 0, 0.16) !important;
}
.ledger-day small {
  color: rgba(246, 238, 223, 0.43);
  font-size: 6px;
  font-weight: 750;
  letter-spacing: 0.08em;
}
.ledger-day b {
  color: #fff2cc;
  font-size: 16px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ledger-day-2 b { color: #f6d993; }
.ledger-day-3 b { color: #ffe6a2; text-shadow: 0 0 14px rgba(255, 203, 81, 0.24); }
.ledger-stage-key {
  display: grid;
  gap: 5px;
  margin-top: 13px;
}
.ledger-stage-key span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(246, 238, 223, 0.5);
  font-size: 8px;
}
.ledger-stage-key i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #70ae95;
  box-shadow: 0 0 8px rgba(112, 174, 149, 0.42);
}
.ledger-stage-key span:nth-child(2) i { background: #d8ae60; box-shadow: 0 0 8px rgba(216, 174, 96, 0.42); }
.ledger-stage-key span:nth-child(3) i { background: #f1c96e; box-shadow: 0 0 8px rgba(241, 201, 110, 0.48); }
.ledger-stage-key b {
  margin-left: auto;
  color: #eed79e;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}
.ledger-caption {
  display: grid;
  gap: 3px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(217, 181, 111, 0.13);
}
.ledger-caption > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.06em;
}
.ledger-caption strong {
  color: #ffe8ad;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(42px, 5vw, 65px);
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: -0.075em;
  text-shadow: 0 9px 30px rgba(217, 181, 111, 0.18);
  font-variant-numeric: tabular-nums;
}
.ledger-caption strong small {
  margin-right: 3px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 0.38em;
  letter-spacing: 0;
}
.ledger-caption em {
  color: rgba(246, 238, 223, 0.43);
  font-size: 8px;
  font-style: normal;
}
.rules-ledger-aside .ledger-seal {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(217, 181, 111, 0.36);
  border-radius: 50%;
  color: #e9ca84;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(126, 43, 34, 0.3);
  transform: rotate(-8deg);
}
.rules-ledger-main {
  min-width: 0;
  padding: 27px 27px 25px;
}
.rules-ledger-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.rules-ledger-heading h2 {
  margin: 7px 0 0;
  color: var(--ink) !important;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.12;
}
.ledger-rule-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(217, 181, 111, 0.2);
  border-radius: 999px;
  color: #e7ca8c;
  background: rgba(217, 181, 111, 0.07);
  font-size: 8px;
  font-weight: 750;
}
.rules-ledger .stage-board-head {
  margin-top: 18px;
  border-bottom-color: rgba(217, 181, 111, 0.12);
}
.rules-ledger .reward-stage-grid { align-items: stretch; }
.rules-ledger .reward-stage { min-height: 196px; }
.rules-ledger .reward-bonus { margin-top: 12px; }
.rules-ledger .rules-footnote { margin-top: 13px; }

@media (max-width: 760px) {
  .rules-ledger {
    grid-template-columns: 1fr;
    border-radius: 22px 4px 22px 4px;
  }
  .rules-ledger-aside {
    padding: 21px 18px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(217, 181, 111, 0.14);
  }
  .ledger-ornament { right: -8px; top: -27px; font-size: 138px; }
  .ledger-kicker { font-size: 7px; }
  .ledger-date-range { margin-top: 8px; font-size: 25px; }
  .ledger-subtitle { margin-top: 5px; font-size: 8px; }
  .ledger-calendar { gap: 5px; margin-top: 15px; }
  .ledger-calendar .ledger-day { min-height: 45px; border-radius: 10px 3px 10px 3px; }
  .ledger-day small { font-size: 5px; }
  .ledger-day b { font-size: 15px; }
  .ledger-stage-key { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
  .ledger-stage-key span { display: block; padding: 7px 6px; border-radius: 9px; background: rgba(255, 255, 255, 0.025); font-size: 6px; line-height: 1.4; }
  .ledger-stage-key i { display: none; }
  .ledger-stage-key b { display: block; margin: 2px 0 0; font-size: 7px; }
  .ledger-caption { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2px 12px; margin-top: 15px; padding-top: 14px; }
  .ledger-caption > span { align-self: end; }
  .ledger-caption strong { grid-row: span 2; font-size: 47px; }
  .ledger-caption em { align-self: start; font-size: 7px; }
  .rules-ledger-aside .ledger-seal { width: 34px; height: 34px; right: 16px; bottom: 15px; font-size: 7px; }
  .rules-ledger-main { padding: 20px 15px 19px; }
  .rules-ledger-heading { display: block; }
  .rules-ledger-heading h2 { font-size: 27px; }
  .ledger-rule-pill { display: inline-flex; margin-top: 10px; padding: 6px 8px; font-size: 7px; }
  .rules-ledger .stage-board-head { align-items: flex-start; margin-top: 15px; }
  .rules-ledger .stage-board-label { font-size: 9px; }
  .rules-ledger .stage-board-note { max-width: 45%; font-size: 7px; }
  .rules-ledger .reward-stage-grid { gap: 5px; }
  .rules-ledger .reward-stage { min-height: 0; padding: 12px 7px 10px; border-radius: 13px; }
  .rules-ledger .stage-days { display: block; min-height: 0; }
  .rules-ledger .stage-days strong { display: block; font-size: 22px; }
  .rules-ledger .stage-days span { display: block; margin-top: 3px; font-size: 6px; }
  .rules-ledger .stage-rate { display: block; margin-top: 11px; }
  .rules-ledger .stage-rate strong { display: block; overflow: hidden; font-size: 24px; text-overflow: ellipsis; }
  .rules-ledger .reward-stage-2 .stage-rate strong { font-size: 28px; }
  .rules-ledger .reward-stage-3 .stage-rate strong { font-size: 32px; }
  .rules-ledger .stage-rate small { display: block; margin-top: 2px; font-size: 6px; }
  .rules-ledger .stage-breakdown { gap: 4px; margin-top: 8px; padding-top: 7px; }
  .rules-ledger .stage-breakdown span { display: block; font-size: 6px; white-space: normal; }
  .rules-ledger .stage-breakdown b { display: block; margin-top: 1px; font-size: 8px; }
  .rules-ledger .stage-badge { margin-top: 8px; padding: 3px 5px; font-size: 6px; }
  .rules-ledger .reward-bonus { gap: 6px; padding: 11px; border-radius: 13px; }
  .rules-ledger .reward-bonus-copy strong { font-size: 13px; }
  .rules-ledger .reward-bonus p { font-size: 7px; }
  .rules-ledger .rules-footnote { font-size: 8px; line-height: 1.65; }
}

/* Verification states · punishments and task confirmation */
.calendar-day.is-cheating {
  opacity: 1;
  border-color: rgba(238, 105, 80, 0.72);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 5px, transparent 5px 10px),
    linear-gradient(150deg, rgba(117, 29, 24, 0.76), rgba(28, 17, 16, 0.92));
  box-shadow: inset 0 0 0 1px rgba(238, 105, 80, 0.08), 0 0 15px rgba(198, 81, 66, 0.16);
}
.calendar-day.is-cheating > i { color: #fff4ec; background: #b83f31; }
.review-status.cheating {
  color: #ffc0ad;
  border-color: rgba(238, 105, 80, 0.32);
  background: rgba(150, 44, 34, 0.2);
}
.review-badge.cheating {
  color: #ffc0ad;
  border-color: rgba(238, 105, 80, 0.28);
  background: rgba(150, 44, 34, 0.18);
}
.dispute-state.is-invalid.is-cheating {
  color: #ffd2c3;
  border-color: rgba(238, 105, 80, 0.32);
  background: rgba(150, 44, 34, 0.2);
}
.review-action.cheating {
  color: #fff0e8;
  border: 1px solid rgba(255, 146, 116, 0.36);
  background: linear-gradient(135deg, #a43c2d, #6f241e);
  box-shadow: 0 5px 14px rgba(82, 22, 17, 0.2);
}
.review-locked {
  display: grid;
  gap: 3px;
  max-width: 210px;
  padding: 7px 9px;
  border: 1px solid rgba(238, 105, 80, 0.22);
  border-radius: 8px;
  background: rgba(116, 35, 28, 0.16);
  text-align: left;
}
.review-locked strong {
  color: #ffc0ad;
  font-size: 8px;
}
.review-locked span {
  color: rgba(255, 220, 206, 0.64);
  font-size: 7px;
  line-height: 1.55;
}
.player-adjustment {
  display: block;
  margin-top: 4px;
  color: rgba(241, 210, 141, 0.68);
  font-size: 6px;
  font-weight: 700;
  line-height: 1.45;
}
.family-task-summary {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(126, 189, 166, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(126, 189, 166, 0.1), transparent),
    rgba(3, 18, 15, 0.48);
}
.family-task-summary strong {
  color: #d8f1e6;
  font-size: 9px;
}
.family-task-summary span {
  color: rgba(232, 242, 235, 0.58);
  font-size: 8px;
  line-height: 1.65;
}
.family-task-list {
  display: grid;
  gap: 7px;
}
.family-task-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(217, 181, 111, 0.14);
  border-radius: 9px;
  color: rgba(246, 238, 223, 0.74);
  background: rgba(3, 18, 15, 0.48);
  font-size: 8px;
  cursor: pointer;
}
.family-task-option:hover {
  border-color: rgba(244, 217, 154, 0.32);
  background: rgba(217, 181, 111, 0.07);
}
.family-task-option input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: #d9b56f;
}
.family-task-radio { display: none; }
.record-summary b.cheating-summary {
  color: #ffc0ad;
  border-color: rgba(238, 105, 80, 0.25);
  background: rgba(150, 44, 34, 0.2);
}



/* WeChat mobile compatibility: native form controls stay at 16px on phones
   so iOS does not zoom the page when a field receives focus. */
@media (max-width: 760px) {
  .select-field select,
  .notes-field textarea,
  .admin-field input,
  .admin-field select,
  .dispute-reason-field textarea {
    font-size: 16px;
  }
}
