:root {
  color-scheme: dark;
  --bg: #0f1828;
  --top: #141f31;
  --panel: #182538;
  --panel2: #22324a;
  --notice: #152d62;
  --line: #334962;
  --text: #eef5ff;
  --muted: #a8bbd2;
  --blue: #2f73ef;
  --yellow: #f7c51f;
  --orange: #ff9f1c;
  --violet: #aa57eb;
  --green: #32c86a;
  --cyan: #28bfd0;
  --red: #ff4657;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}
button { border: 0; color: inherit; font: inherit; }
.shell { width: min(1560px, calc(100vw - 120px)); min-width: 1180px; margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 90px;
  background: var(--top);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.identity { display: flex; align-items: center; gap: 14px; }
.home-trigger { padding: 0; background: transparent; text-align: left; cursor: pointer; }
.level-pill {
  min-width: 64px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue);
  text-align: center;
  font-weight: 800;
  font-size: 20px;
}
h1, h2, p { margin: 0; }
h1 { font-size: 23px; }
.identity p { margin-top: 4px; color: #d9e8fa; font-size: 20px; }
.resources { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.resource, .icon-btn, .lang-btn {
  height: 48px;
  border-radius: 8px;
  background: var(--panel2);
  border: 1px solid rgba(255,255,255,.05);
  cursor: pointer;
}
.resource { padding: 0 16px; min-width: 78px; font-size: 18px; }
.resource strong { color: #bfdcff; font-size: 21px; }
.resource.money strong { color: var(--yellow); }
.resource.ap strong { color: #72b0ff; }
.icon-btn { width: 50px; font-size: 20px; }
.lang-btn { padding: 0 16px; }
.resource:hover, .icon-btn:hover, .lang-btn:hover, .bottom-nav button:hover { background: #2a3c57; }

.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 32px;
  padding: 30px 0 126px;
}
.main-col, .side-col { display: grid; gap: 30px; align-content: start; }
.notice-card, .panel, .side-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.notice-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  padding: 18px 24px;
  background: var(--notice);
  border-color: #25539c;
}
.notice-icon { padding-top: 4px; color: var(--yellow); font-size: 25px; }
.notice-lines { display: grid; gap: 9px; align-content: center; }
.notice-line {
  padding: 0;
  background: transparent;
  text-align: left;
  color: #f2f7ff;
  font-size: 21px;
  line-height: 1.45;
  cursor: pointer;
}
.panel { position: relative; padding: 34px 36px; }
.panel.nav-pulse,
.side-card.nav-pulse {
  animation: nav-pulse .9s ease-out;
}
.side-card { padding: 36px 34px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.panel-head h2, .side-card h2 { font-size: 28px; }
.side-card h2 { font-size: 32px; }
.panel-head span { color: #8fb8f3; }

.random-card, .dialog-card {
  padding: 20px;
  border: 1px solid #2b3e58;
  border-radius: 10px;
  background: #111b2a;
}
.random-title, .dialog-speaker { color: var(--yellow); font-weight: 800; margin-bottom: 10px; }
.random-text, .dialog-text { color: #d8e8fb; line-height: 1.75; font-size: 17px; }
.dialog-options { display: grid; gap: 12px; margin-top: 20px; }
.dialog-option {
  padding: 14px 16px;
  border: 1px solid #405672;
  border-radius: 8px;
  background: #22324a;
  text-align: left;
  cursor: pointer;
}
.dialog-option:hover { border-color: #75b1ff; background: #263954; }
.option-effect { display: block; margin-top: 6px; color: #9dc4f8; font-size: 13px; }
.done-card { color: #cfe0f6; line-height: 1.7; }

.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(250px, 1fr)); gap: 27px 22px; }
.stat-head { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 20px; color: #dfefff; }
.bar { height: 15px; border-radius: 999px; overflow: hidden; background: #35465c; }
.bar-fill { height: 100%; border-radius: inherit; transition: width .2s ease; }

.actions-panel { overflow: hidden; }
.actions-grid { display: grid; grid-template-columns: repeat(4, minmax(165px, 1fr)); gap: 16px; }
.action-card {
  min-height: 142px;
  padding: 22px 20px;
  border: 1px solid #40546f;
  border-radius: 12px;
  background: #223149;
  text-align: left;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.action-card:hover { transform: translateY(-2px); border-color: #73a8ff; background: #263954; }
.action-card.selected { border-color: var(--yellow); background: #263f64; box-shadow: inset 0 0 0 1px rgba(247,197,31,.35); }
.action-card.locked-card { opacity: .45; transform: none; }
.action-icon { display: block; margin-bottom: 12px; font-size: 32px; }
.action-card h3 { margin: 0 0 8px; font-size: 23px; }
.action-card p, .side-card p, .modal-text { color: #bfd0e5; line-height: 1.55; font-size: 17px; }
.side-card p { display: flex; justify-content: space-between; gap: 18px; margin-top: 18px; font-size: 21px; }
.side-card p strong { color: var(--yellow); font-size: 22px; text-align: right; }
.action-card p { min-height: 28px; overflow: visible; font-size: 17px; white-space: nowrap; }
.effects { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.effect { padding: 4px 8px; border-radius: 6px; background: rgba(47,115,239,.17); color: #bcd8ff; font-size: 12px; }
.actions-lock {
  display: none;
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 30px;
  z-index: 2;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  border-radius: 14px;
  background: #f2b705;
  color: #06111f;
  font-weight: 800;
  font-size: 23px;
  line-height: 1.45;
  cursor: pointer;
}
.actions-lock:hover { filter: brightness(1.06); }
.actions-panel.locked .actions-lock { display: flex; }
.commit-btn {
  min-height: 86px;
  margin-top: 20px;
  font-size: 23px;
  line-height: 1.45;
}
.commit-btn:disabled { opacity: .45; cursor: not-allowed; }
.commit-btn.blocked {
  opacity: 1;
  background: #f2b705;
  color: #06111f;
  cursor: pointer;
}

.quick-list { display: grid; gap: 22px; margin: 26px 0 0; font-size: 22px; }
.quick-list div { display: flex; justify-content: space-between; gap: 16px; }
dt, dd { margin: 0; }
dt { color: var(--muted); }
dd { color: var(--yellow); font-weight: 800; text-align: right; font-size: 24px; }
.primary-btn { width: 100%; min-height: 50px; margin-top: 22px; border-radius: 8px; background: var(--blue); cursor: pointer; font-weight: 800; font-size: 18px; }
.side-card .primary-btn { min-height: 56px; font-size: 20px; }
.primary-btn.commit-btn {
  min-height: 86px;
  font-size: 23px;
  line-height: 1.45;
}

.floating-message {
  position: fixed;
  right: 38px;
  bottom: 116px;
  z-index: 15;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #226ce3;
  font-size: 32px;
  cursor: pointer;
}
.floating-message span {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e94655;
  font-size: 14px;
  font-weight: 800;
}
.floating-message span.hidden { display: none; }
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 14;
  background: rgba(24,36,53,.98);
  border-top: 1px solid var(--line);
}
.bottom-inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 10px 0; }
.bottom-nav button { min-height: 74px; display: grid; place-items: center; gap: 4px; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.bottom-nav button.active { background: #22324a; color: white; }
.bottom-nav button span { font-size: 14px; }

.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 22px; background: rgba(5,10,18,.72); }
.modal.hidden { display: none; }
.modal.focus-modal {
  background: rgba(5,10,18,.76);
  backdrop-filter: blur(8px);
}
.modal-card { width: min(720px, 100%); padding: 26px; border: 1px solid #4b6280; border-radius: 14px; background: #172438; box-shadow: 0 30px 80px rgba(0,0,0,.42); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--yellow); }
#modal-close { width: 40px; height: 40px; border-radius: 8px; background: #263954; cursor: pointer; }
.locked-modal #modal-close { display: none; }
.modal-card h2 { margin: 0 0 12px; }
.modal-options { display: grid; gap: 10px; margin-top: 22px; }
.modal-options button { padding: 14px 16px; border: 1px solid #405672; border-radius: 8px; background: #22324a; text-align: left; cursor: pointer; }
.modal-options button:hover { border-color: #75b1ff; }
.modal-options button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.modal-options button:disabled:hover {
  border-color: #405672;
}

.large-modal .modal-card {
  width: min(720px, calc(100vw - 42px));
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #202d40;
}
.large-modal .modal-head {
  display: none;
}
.large-modal #modal-kicker {
  display: none;
}
.large-modal .modal-card h2 {
  margin: 0;
  color: #f4f8ff;
  font-size: 30px;
  line-height: 1.2;
}
.large-modal #modal-title,
.effects-mode #modal-title {
  display: none;
}
.large-modal .modal-text {
  padding: 34px 30px 0;
  color: #c1cfdf;
  font-size: 21px;
  line-height: 1.75;
}
.large-modal .modal-options {
  gap: 16px;
  margin: 26px 30px 32px;
}
.large-modal .modal-options button {
  display: block;
  width: 100%;
  min-height: 60px;
  border-color: transparent;
  border-radius: 12px;
  background: var(--blue);
  text-align: center;
  color: #f0f6ff;
  font-size: 20px;
  font-weight: 800;
}
.large-hero {
  margin: 4px 0 18px;
  text-align: center;
  font-size: 58px;
}
.large-title {
  margin: -4px 0 22px;
  text-align: center;
  color: #f4f8ff;
  font-size: 30px;
  line-height: 1.2;
}
.large-bubble,
.settlement-bubble {
  padding: 22px 24px;
  border-radius: 12px;
  background: #2b3b51;
  color: #edf4ff;
  font-size: 21px;
  line-height: 1.75;
}
.large-effects {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
  padding: 22px;
  border-radius: 12px;
  background: #2b3b51;
  font-size: 24px;
  font-weight: 800;
}
.loading-modal .modal-card {
  width: min(640px, calc(100vw - 42px));
  background: #202d40;
}
.loading-modal .modal-text {
  padding: 0;
}
.loading-modal .modal-options {
  display: none;
}
.loading-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 0 34px;
  background: #34465b;
  color: #f4f8ff;
  font-size: 28px;
  font-weight: 900;
}
.loading-head span {
  font-size: 24px;
}
.loading-body {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 62px 30px 70px;
}
.loading-hourglass {
  font-size: 64px;
  line-height: 1;
  animation: hourglass-pulse 1.1s ease-in-out infinite;
}
.loading-tip {
  min-height: 34px;
  color: #e5eefb;
  text-align: center;
  font-size: 21px;
  line-height: 1.45;
}
.loading-tip.tip-pop {
  animation: tip-pop .28s ease-out;
}
.loading-progress {
  width: min(580px, 100%);
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #3a4b60;
}
.loading-progress div {
  height: 100%;
  border-radius: inherit;
  background: #438cff;
  animation: loading-fill 3s linear forwards;
}
@keyframes loading-fill {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes hourglass-pulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes tip-pop {
  from { transform: translateY(8px); opacity: .35; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes nav-pulse {
  0% {
    border-color: #f6cf27;
    box-shadow: 0 0 0 0 rgba(246, 207, 39, .45);
  }
  45% {
    border-color: #f6cf27;
    box-shadow: 0 0 0 8px rgba(246, 207, 39, .12);
  }
  100% {
    border-color: var(--line);
    box-shadow: 0 0 0 0 rgba(246, 207, 39, 0);
  }
}
.finance-modal .modal-card {
  width: min(640px, calc(100vw - 42px));
  background: #202d40;
}
.finance-modal .modal-text {
  padding: 0;
}
.finance-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 0 34px;
  background: #34465b;
  color: #f4f8ff;
  font-size: 28px;
  font-weight: 900;
}
.finance-head span {
  font-size: 24px;
}
.finance-body {
  display: grid;
  justify-items: center;
  padding: 56px 30px 18px;
}
.finance-hero {
  margin-bottom: 20px;
  font-size: 68px;
  line-height: 1;
}
.finance-body h3 {
  margin: 0 0 24px;
  color: #f4f8ff;
  font-size: 30px;
  line-height: 1.2;
}
.finance-lines {
  width: min(580px, 100%);
  padding: 20px 22px;
  border-radius: 12px;
  background: #2b3b51;
}
.finance-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 5px 0;
  color: #aebed2;
  font-size: 21px;
  line-height: 1.45;
}
.finance-row strong {
  white-space: nowrap;
  font-size: 22px;
}
.finance-row strong.positive {
  color: #4ade80;
}
.finance-row strong.negative {
  color: #ff6575;
}
.finance-row strong.neutral {
  color: #c8d4e4;
}
.finance-divider {
  height: 1px;
  margin: 10px 0;
  background: rgba(201, 214, 232, .22);
}
.finance-total {
  color: #edf4ff;
  font-weight: 900;
}
.finance-total strong,
.finance-total strong.positive,
.finance-total strong.negative,
.finance-total strong.neutral {
  color: #f6cf27;
}
.finance-note {
  max-width: 540px;
  margin: 20px 0 0;
  color: #91a4bc;
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
}
.finance-modal .modal-options {
  justify-items: center;
  margin-top: 20px;
}
.finance-modal .modal-options button {
  width: auto;
  min-width: 144px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 10px;
}
.review-modal .modal-card {
  width: min(820px, calc(100vw - 42px));
}
.review-modal #modal-title {
  display: block;
  padding: 30px 32px 0;
  font-size: 30px;
}
.review-modal .modal-text {
  max-height: min(68vh, 720px);
  overflow: auto;
  padding: 22px 32px 0;
}
.review-modal .modal-options {
  margin-top: 22px;
}
.review-count {
  margin-bottom: 18px;
  color: #aebed2;
  font-size: 18px;
}
.answer-history {
  display: grid;
  gap: 16px;
}
.answer-record {
  padding: 20px;
  border: 1px solid #405672;
  border-radius: 12px;
  background: #26364c;
}
.answer-record-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: #92a8c1;
  font-size: 15px;
}
.answer-record-head strong {
  color: #f6cf27;
}
.answer-record h3 {
  margin: 0 0 12px;
  color: #f4f8ff;
  font-size: 24px;
  line-height: 1.25;
}
.answer-question {
  margin: 0 0 14px;
  color: #d8e8fb;
  font-size: 18px;
  line-height: 1.65;
}
.answer-choice {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #203049;
}
.answer-choice span {
  color: #91a4bc;
  font-size: 15px;
}
.answer-choice strong {
  color: #f4f8ff;
  font-size: 20px;
  line-height: 1.35;
}
.answer-reply {
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #2b3b51;
  color: #edf4ff;
  font-size: 18px;
  line-height: 1.65;
}
.answer-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #1f2f45;
  font-size: 18px;
  font-weight: 900;
}
.review-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 46px 20px 34px;
  text-align: center;
}
.review-empty div {
  font-size: 54px;
}
.review-empty h3 {
  margin: 0;
  color: #f4f8ff;
  font-size: 26px;
}
.review-empty p {
  max-width: 520px;
  color: #aebed2;
  font-size: 18px;
  line-height: 1.6;
}
.annual-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: -34px -30px 30px;
  padding: 26px 34px;
  background: #2669df;
  color: #f4f8ff;
}
.annual-medal {
  font-size: 42px;
}
.annual-hero h3 {
  margin: 0;
  font-size: 31px;
  line-height: 1.2;
}
.annual-hero p {
  margin-top: 4px;
  color: #d8e8ff;
  font-size: 20px;
}
.annual-review-card {
  padding: 26px 30px;
  border-radius: 14px;
  background: #2b3b51;
  color: #edf4ff;
  font-size: 21px;
  line-height: 1.78;
}
.annual-review-card p + p {
  margin-top: 22px;
}
.annual-speaker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #dbeaff;
  font-size: 22px;
}
.annual-speaker span {
  font-size: 34px;
}
.annual-sign {
  margin-top: 30px;
  text-align: center;
  color: #94a9c1;
  font-size: 17px;
}
.annual-summary {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 24px;
  padding: 20px;
  border-radius: 12px;
  background: #26364c;
  color: #dbeaff;
  font-size: 18px;
  font-weight: 800;
}
.annual-summary span {
  color: #f5c935;
}
.annual-warning {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 101, 117, .45);
  border-radius: 12px;
  background: rgba(255, 70, 87, .12);
  color: #ffb6bf;
  font-size: 19px;
  line-height: 1.6;
}
.ending-modal .modal-card {
  width: min(640px, calc(100vw - 42px));
  background: #202d40;
}
.ending-modal.failure .modal-card {
  background: linear-gradient(180deg, #513243 0%, #202d40 44%);
}
.ending-modal.success .modal-card {
  background: linear-gradient(180deg, #263f3a 0%, #202d40 44%);
}
.ending-modal.final .modal-card {
  background: linear-gradient(180deg, #23406f 0%, #202d40 44%);
}
.ending-page {
  padding-top: 6px;
  text-align: center;
}
.ending-icon {
  margin: 0 0 14px;
  font-size: 76px;
  line-height: 1;
}
.ending-page h3 {
  margin: 0;
  color: #ff6b72;
  font-size: 35px;
  line-height: 1.2;
}
.ending-modal.success .ending-page h3 {
  color: #55e68d;
}
.ending-modal.final .ending-page h3 {
  color: #d9eaff;
}
.ending-subtitle {
  max-width: 520px;
  margin: 12px auto 28px;
  color: #d6e2f1;
  font-size: 20px;
  line-height: 1.65;
}
.ending-stats-card {
  display: grid;
  gap: 13px;
  margin-top: 0;
  padding: 24px 22px;
  border-radius: 12px;
  background: #303b52;
  text-align: left;
}
.ending-stats-card h4 {
  margin: 0 0 8px;
  color: #f2f7ff;
  font-size: 22px;
}
.ending-stats-card div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #aebed2;
  font-size: 19px;
}
.ending-stats-card strong {
  color: #f6cf27;
  text-align: right;
}
.ending-stats-card div:first-of-type strong {
  color: #78aefc;
}
.ending-modal .modal-options {
  margin-top: 30px;
}
.ending-modal .modal-options button {
  min-height: 60px;
  border-color: transparent;
  border-radius: 10px;
  background: var(--blue);
  text-align: center;
  font-size: 21px;
  font-weight: 900;
}

.message-modal .modal-card {
  width: min(780px, calc(100vw - 42px));
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #202d40;
}
.message-modal .modal-head {
  min-height: 112px;
  margin: 0;
  padding: 26px 38px;
  background: #34465c;
}
.message-modal #modal-kicker {
  display: none;
}
.message-modal #modal-close {
  align-self: flex-start;
}
.message-modal .modal-card h2 {
  margin: 0;
  color: #f4f8ff;
  font-size: 34px;
  line-height: 1.2;
}
.message-modal .modal-text {
  padding: 34px 32px 0;
  color: #c1cfdf;
}
.message-subtitle {
  margin: -6px 0 24px;
  color: #aebbd0;
  font-size: 21px;
}
.message-bubble {
  padding: 26px 28px;
  border-radius: 12px;
  background: #2b3b51;
  color: #edf4ff;
  font-size: 24px;
  line-height: 1.7;
}
.message-reply-label {
  margin-top: 32px;
  color: #aebbd0;
  font-size: 21px;
}
.message-modal .modal-options {
  gap: 18px;
  margin: 26px 32px 34px;
}
.message-modal .modal-options button {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  column-gap: 16px;
  min-height: 86px;
  padding: 20px 24px;
  border-color: #51677f;
  border-radius: 12px;
  background: #2b3b51;
  color: #f0f6ff;
  font-size: 23px;
  line-height: 1.45;
}
.message-modal .modal-options button:hover {
  border-color: #7fb4ff;
  background: #31465f;
}
.message-modal .reply-icon {
  font-size: 25px;
}
.message-modal .option-effect {
  grid-column: 2;
  margin-top: 6px;
  color: #8fb8f3;
  font-size: 14px;
}
.message-modal.choice-mode .option-effect {
  display: none;
}
.reply-mode .modal-options button,
.effects-mode .modal-options button {
  display: block;
  width: 100%;
  min-height: 86px;
  text-align: center;
  background: var(--blue);
  border-color: transparent;
  font-size: 23px;
  font-weight: 800;
}
.result-bubble {
  min-height: 86px;
  display: flex;
  align-items: center;
  font-size: 24px;
}
.effects-mode .modal-head {
  display: none;
}
.effects-mode .modal-text {
  padding-top: 34px;
  text-align: center;
}
.effects-hero {
  font-size: 54px;
  margin: 0 0 12px;
}
.effects-title {
  margin: 0;
  color: #f4f8ff;
  font-size: 30px;
}
.effects-subtitle {
  margin-top: 12px;
  color: #aebbd0;
  font-size: 18px;
}
.effect-summary {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
  padding: 22px;
  border-radius: 12px;
  background: #2b3b51;
  font-size: 24px;
  font-weight: 800;
}
.effect-positive { color: #4ade80; }
.effect-negative { color: #ff6575; }
.effect-neutral { color: #c7d4e5; }

.home-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: block;
  padding: 50px 24px 80px;
  overflow: auto;
  background: #0f1828;
}
.home-overlay.hidden { display: none; }
.home-card {
  width: min(840px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 1px solid #4b6280;
  border-radius: 18px;
  background: #172438;
  box-shadow: none;
  overflow: hidden;
}
.home-kicker { display: none; }
.home-title {
  padding: 36px 40px 26px;
  text-align: center;
}
.home-title h2 {
  margin: 0;
  font-size: 64px;
  line-height: 1.12;
  color: #d8edf4;
}
.home-title h2::after {
  content: "模拟器";
  color: var(--yellow);
}
.home-title h2 {
  font-size: 0;
}
.home-title h2::before {
  content: "体制";
  font-size: 64px;
}
.home-title h2::after {
  font-size: 64px;
}
.home-title p { margin-top: 18px; color: #a9c4e6; font-size: 22px; }
.home-section {
  padding: 26px 40px;
  border-top: 1px solid #2f435d;
}
.home-section h3 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 26px;
}
.goal-list {
  display: grid;
  gap: 18px;
  color: #dceaff;
  font-size: 20px;
  line-height: 1.55;
}
.goal-list strong { color: var(--yellow); }
.failure-list {
  margin: 0;
  padding-left: 22px;
  color: #aebfd4;
  line-height: 1.8;
  font-size: 17px;
}
.rules-collapsed p { color: #bfd0e5; line-height: 1.75; font-size: 17px; }
.name-field { display: grid; gap: 8px; padding: 26px 40px 0; color: #dfefff; }
.name-field input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #405672;
  border-radius: 8px;
  background: #101a2a;
  color: white;
  font: inherit;
}
.home-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 22px 40px 36px; }
.secondary-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  background: #263954;
  cursor: pointer;
}
.secondary-btn:disabled { opacity: .45; cursor: not-allowed; }
.toast { position: fixed; left: 50%; bottom: 104px; z-index: 50; max-width: min(720px, calc(100vw - 40px)); padding: 12px 16px; border: 1px solid #4b6382; border-radius: 8px; background: rgba(14,22,35,.96); opacity: 0; transform: translate(-50%, 12px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1200px) {
  .shell { width: calc(100vw - 48px); min-width: 0; }
  .game-grid { grid-template-columns: 1fr; }
  .side-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .shell { width: calc(100vw - 28px); }
  .topbar-inner { align-items: stretch; flex-direction: column; padding: 12px 0; }
  .stats-grid, .actions-grid, .side-col { grid-template-columns: 1fr; }
  .panel, .side-card { padding: 22px 18px; }
  .home-title h2::before, .home-title h2::after { font-size: 42px; }
  .home-title p { font-size: 18px; }
  .home-section, .name-field, .home-actions { padding-left: 22px; padding-right: 22px; }
}
