:root {
  --ink: #291b35;
  --ink-soft: #604663;
  --paper: #fff1ea;
  --paper-strong: #fffaf5;
  --line: rgba(104, 57, 105, 0.16);
  --red: #df5f68;
  --red-dark: #a83c5b;
  --yellow: #f4c95f;
  --blue: #4c3d7a;
  --green: #648474;
  --plum: #66356d;
  --rose: #f0aaa5;
  --violet: #7c5ab6;
  --gold: #e9b949;
  --white: #fffdf9;
  --shadow: 0 18px 40px rgba(91, 49, 74, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(244, 201, 95, 0.22), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(124, 90, 182, 0.16), transparent 30%),
    linear-gradient(90deg, rgba(91, 49, 74, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(95, 125, 109, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    system-ui,
    sans-serif;
  line-height: 1.62;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 22px;
  background: rgba(255, 250, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--paper-strong);
  background: linear-gradient(135deg, var(--plum), var(--violet));
  border: 2px solid rgba(102, 53, 109, 0.95);
  transform: rotate(-3deg);
  box-shadow: 3px 3px 0 var(--gold);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 800;
}

.desktop-nav a {
  position: relative;
  padding: 22px 0;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 4px;
  content: "";
  background: var(--yellow);
  opacity: 0;
  transform: rotate(-1deg);
  transition: opacity 160ms ease;
}

.desktop-nav a:hover::after {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.safe-exit,
.mobile-safe-exit {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--plum);
  font-size: 13px;
  font-weight: 950;
  background: rgba(255, 250, 245, 0.82);
  border: 1px solid rgba(102, 53, 109, 0.22);
  border-radius: 999px;
  cursor: pointer;
}

.header-cta,
.btn,
.subscribe-form button,
.option-btn,
.tool-copy-btn {
  border: 2px solid rgba(91, 49, 74, 0.9);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(91, 49, 74, 0.2);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.header-cta {
  padding: 9px 14px;
  color: var(--paper-strong);
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--plum), var(--red-dark));
}

.header-cta:hover,
.btn:hover,
.subscribe-form button:hover,
.option-btn:hover,
.tool-copy-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.hero-section {
  position: relative;
  min-height: min(860px, calc(100vh - 64px));
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("./assets/hero-warrior-clear.png");
  background-position: 72% center;
  background-size: cover;
  transform: scale(1.005);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 76% 36%, rgba(244, 201, 95, 0.18), transparent 24%),
    linear-gradient(90deg, rgba(255, 250, 245, 0.95), rgba(255, 250, 245, 0.68) 36%, rgba(255, 250, 245, 0.04) 72%),
    linear-gradient(0deg, rgba(255, 241, 234, 0.92), rgba(255, 241, 234, 0.06) 58%);
}

.hero-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 46px;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  display: inline-block;
  padding: 6px 10px;
  color: var(--plum);
  background: linear-gradient(135deg, rgba(244, 201, 95, 0.88), rgba(240, 170, 165, 0.76));
  border: 1px solid rgba(102, 53, 109, 0.22);
  transform: rotate(-1deg);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(48px, 8vw, 102px);
  font-weight: 1000;
}

h2 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 1000;
}

h3 {
  font-size: 22px;
  font-weight: 950;
}

h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 1000;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 10px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.25;
}

.hero-note {
  max-width: 600px;
  margin: 0 0 28px;
  color: rgba(45, 34, 48, 0.74);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  font-weight: 950;
}

.btn.primary {
  color: var(--paper-strong);
  background: linear-gradient(135deg, var(--plum), var(--red-dark));
}

.btn.secondary {
  color: var(--plum);
  background: linear-gradient(135deg, var(--paper-strong), #fff0d0);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 150px));
  gap: 12px;
}

.hero-stats div {
  min-height: 86px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 250, 244, 0.86);
  border: 1px solid rgba(102, 53, 109, 0.16);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(102, 53, 109, 0.12);
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.hero-stats span {
  font-size: 13px;
  font-weight: 850;
}

.view-stat {
  background: linear-gradient(135deg, rgba(255, 250, 244, 0.94), rgba(244, 201, 95, 0.34)) !important;
}

.warrior-oath {
  width: 100%;
  padding: 34px max(20px, calc((100% - 1180px) / 2));
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 201, 95, 0.18), transparent 28%),
    linear-gradient(135deg, #3e2b59, #6b3568 52%, #a83c5b);
  color: var(--paper-strong);
  border-bottom: 1px solid rgba(102, 53, 109, 0.22);
}

.warrior-oath-inner {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 22px;
  align-items: center;
}

.warrior-oath h2 {
  max-width: 420px;
  font-size: clamp(30px, 4vw, 50px);
}

.warrior-oath .eyebrow {
  color: var(--yellow);
}

.oath-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.oath-grid article {
  min-height: 172px;
  padding: 16px;
  background: rgba(255, 250, 245, 0.1);
  border: 1px solid rgba(255, 250, 245, 0.22);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 250, 245, 0.22);
}

.oath-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.24;
}

.oath-grid p {
  margin: 0;
  color: rgba(255, 250, 245, 0.82);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.quick-rescue {
  width: 100%;
  padding: 22px max(20px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, rgba(255, 250, 245, 0.96), rgba(255, 233, 222, 0.96));
  border-bottom: 1px solid var(--line);
}

.quick-rescue-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  align-items: center;
}

.quick-rescue h2 {
  max-width: 520px;
  font-size: clamp(24px, 3vw, 36px);
}

.rescue-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rescue-actions a {
  min-height: 120px;
  padding: 15px;
  background: rgba(255, 250, 245, 0.88);
  border: 1px solid rgba(102, 53, 109, 0.16);
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(102, 53, 109, 0.1);
}

.rescue-actions a:hover {
  transform: translateY(-2px);
}

.rescue-actions span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 8px;
  color: var(--plum);
  font-size: 12px;
  font-weight: 950;
  background: rgba(244, 201, 95, 0.7);
  border-radius: 999px;
}

.rescue-actions strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head p:not(.eyebrow) {
  margin: 12px 0 0;
  color: rgba(21, 21, 21, 0.72);
  font-size: 18px;
}

.row-head {
  max-width: none;
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
}

.scenario-band {
  width: 100%;
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  background:
    radial-gradient(circle at 10% 0%, rgba(244, 201, 95, 0.22), transparent 28%),
    linear-gradient(135deg, #623160, #3f2f68);
  border-bottom: 1px solid rgba(91, 49, 74, 0.18);
}

.scenario-band h2,
.scenario-band .section-head p:not(.eyebrow) {
  color: var(--paper-strong);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.scenario-card {
  min-height: 220px;
  padding: 18px;
  color: var(--paper-strong);
  background: rgba(255, 250, 244, 0.12);
  border: 1px solid rgba(255, 250, 244, 0.28);
  border-radius: 8px;
  cursor: pointer;
}

.scenario-card:hover {
  border-color: var(--yellow);
  background: rgba(255, 250, 244, 0.16);
}

.scenario-card strong {
  display: block;
  margin-bottom: 14px;
  color: var(--yellow);
  font-size: 20px;
  line-height: 1.2;
}

.scenario-card span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  color: var(--plum);
  font-size: 12px;
  font-weight: 950;
  background: var(--yellow);
  border: 1px solid rgba(255, 250, 244, 0.7);
}

.split-intro {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  align-items: start;
}

.warrior-path {
  position: relative;
}

.warrior-path::before {
  position: absolute;
  top: 54px;
  right: 0;
  width: 148px;
  height: 148px;
  content: "";
  background:
    radial-gradient(circle, rgba(244, 201, 95, 0.5), transparent 58%),
    conic-gradient(from 45deg, rgba(102, 53, 109, 0.18), rgba(223, 95, 104, 0.16), rgba(244, 201, 95, 0.26), rgba(102, 53, 109, 0.18));
  border-radius: 50%;
  filter: blur(0.2px);
  opacity: 0.82;
  pointer-events: none;
}

.path-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.path-grid article {
  min-height: 220px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(255, 241, 234, 0.9));
  border: 1px solid rgba(102, 53, 109, 0.16);
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(102, 53, 109, 0.1);
}

.path-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--paper-strong);
  font-weight: 1000;
  background: linear-gradient(135deg, var(--plum), var(--violet));
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(102, 53, 109, 0.22);
}

.path-grid p {
  margin: 10px 0 0;
  color: rgba(45, 34, 48, 0.72);
}

.help-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.help-list article,
.pattern-card,
.case-card,
.battle-card,
.restart-card,
.kit-item {
  background: var(--white);
  border: 1px solid rgba(91, 49, 74, 0.16);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(91, 49, 74, 0.1);
}

.help-list article {
  min-height: 210px;
  padding: 20px;
}

.help-list span {
  display: inline-block;
  margin-bottom: 22px;
  padding: 4px 8px;
  color: var(--paper-strong);
  font-weight: 950;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 999px;
}

.help-list p,
.pattern-card p,
.case-card p,
.battle-card p,
.restart-card p,
.kit-item p {
  margin: 10px 0 0;
  color: rgba(21, 21, 21, 0.72);
}

.case-people {
  display: inline-block;
  margin-top: 14px !important;
  padding: 7px 9px;
  color: var(--plum) !important;
  font-size: 13px;
  font-weight: 950;
  background: rgba(244, 201, 95, 0.42);
  border: 1px solid rgba(102, 53, 109, 0.14);
  border-radius: 8px;
}

.pattern-card-brief {
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 244, 223, 0.92), rgba(255, 250, 245, 0.9));
  border: 1px solid rgba(102, 53, 109, 0.14);
  border-radius: 8px;
}

.pattern-card-brief span {
  display: block;
  margin-bottom: 4px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 1000;
}

.pattern-card-brief strong {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(41, 27, 53, 0.84);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pattern-reply {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 12px !important;
  color: rgba(102, 53, 109, 0.9) !important;
  font-size: 14px;
  font-weight: 950;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.case-card-brief {
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 241, 234, 0.96), rgba(229, 238, 229, 0.78));
  border: 1px solid rgba(102, 53, 109, 0.14);
  border-radius: 8px;
}

.case-card-brief span,
.case-radar span {
  display: block;
  margin-bottom: 4px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 1000;
}

.case-card-brief strong {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(41, 27, 53, 0.82);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.case-signal {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 12px !important;
  color: rgba(41, 27, 53, 0.78) !important;
  font-size: 14px;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.content-section.alt {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  background:
    radial-gradient(circle at 85% 10%, rgba(244, 201, 95, 0.18), transparent 26%),
    #f5dfdc;
  border-block: 2px solid var(--line);
}

.search-wrap {
  min-width: min(100%, 310px);
}

.search-wrap label,
.subscribe-form label,
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid rgba(91, 49, 74, 0.24);
  border-radius: 8px;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.chip {
  min-height: 36px;
  padding: 7px 12px;
  color: var(--ink);
  font-weight: 900;
  background: var(--paper-strong);
  border: 1px solid rgba(91, 49, 74, 0.2);
  border-radius: 999px;
  cursor: pointer;
}

.chip.active {
  color: var(--paper-strong);
  background: linear-gradient(135deg, var(--plum), var(--violet));
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pattern-card,
.case-card {
  position: relative;
  min-height: 310px;
  padding: 18px;
  overflow: hidden;
  cursor: pointer;
}

.pattern-card {
  min-height: 390px;
}

.case-card {
  min-height: 430px;
}

.pattern-card::before,
.case-card::before {
  position: absolute;
  top: 14px;
  right: -30px;
  width: 110px;
  height: 28px;
  content: attr(data-stamp);
  display: grid;
  place-items: center;
  color: var(--paper-strong);
  font-size: 11px;
  font-weight: 1000;
  background: linear-gradient(135deg, var(--red-dark), var(--plum));
  border: 1px solid rgba(91, 49, 74, 0.3);
  transform: rotate(16deg);
}

.pattern-card:hover,
.case-card:hover {
  transform: translateY(-2px);
}

.card-code {
  display: inline-flex;
  margin-bottom: 38px;
  padding: 4px 8px;
  color: var(--paper-strong);
  font-size: 12px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--plum), var(--violet));
  border-radius: 999px;
}

.danger {
  display: flex;
  gap: 2px;
  margin-top: 16px;
  color: var(--red);
  font-size: 16px;
  letter-spacing: 0.06em;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tag {
  padding: 3px 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  background: rgba(244, 201, 95, 0.74);
  border: 1px solid rgba(91, 49, 74, 0.16);
  border-radius: 999px;
}

.test-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(124, 90, 182, 0.12), transparent 28%),
    linear-gradient(135deg, #eef1e5, #f8e7dc);
  border-block: 1px solid rgba(91, 49, 74, 0.16);
}

.test-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.test-copy p:not(.eyebrow) {
  font-size: 19px;
}

.warning-strip {
  margin-top: 24px;
  padding: 16px;
  color: var(--ink);
  font-weight: 900;
  background: rgba(241, 207, 114, 0.7);
  border: 1px solid rgba(91, 49, 74, 0.18);
  border-radius: 8px;
}

.test-card {
  min-height: 440px;
  padding: 24px;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid rgba(91, 49, 74, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(91, 49, 74, 0.16);
}

.progress-bar {
  height: 12px;
  margin: 14px 0 28px;
  overflow: hidden;
  background: rgba(21, 21, 21, 0.12);
  border: 1px solid rgba(91, 49, 74, 0.2);
  border-radius: 999px;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--plum), var(--red), var(--gold));
}

.option-stack {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.option-btn {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  text-align: left;
  font-weight: 900;
  background: var(--white);
}

.option-btn:hover {
  background: #f5dfcc;
}

.result-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 10px;
  color: var(--paper-strong);
  font-weight: 1000;
  background: linear-gradient(135deg, var(--plum), var(--red-dark));
  border: 1px solid rgba(91, 49, 74, 0.3);
  border-radius: 999px;
}

.action-plan {
  padding: 16px;
  background: linear-gradient(135deg, rgba(229, 238, 229, 0.92), rgba(255, 244, 223, 0.88));
  border: 1px solid rgba(95, 125, 109, 0.22);
  border-radius: 10px;
}

.tools-section {
  width: min(1180px, calc(100% - 40px));
}

.shield-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: -8px 0 18px;
  padding: 15px 16px;
  background: linear-gradient(135deg, rgba(229, 238, 229, 0.94), rgba(255, 244, 223, 0.9));
  border: 1px solid rgba(95, 125, 109, 0.22);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(95, 125, 109, 0.1);
}

.shield-note strong {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 1000;
}

.shield-note span {
  color: rgba(45, 34, 48, 0.74);
}

.tool-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}

.tool-tabs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.tool-tab {
  min-height: 56px;
  padding: 12px;
  text-align: left;
  font-weight: 950;
  background: var(--paper-strong);
  border: 1px solid rgba(91, 49, 74, 0.18);
  border-radius: 8px;
  cursor: pointer;
}

.tool-tab.active {
  color: var(--paper-strong);
  background: var(--plum);
}

.tool-panel {
  min-height: 480px;
  padding: 22px;
  background: var(--white);
  border: 1px solid rgba(91, 49, 74, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(91, 49, 74, 0.1);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.tool-output {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.tool-progress {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  padding: 14px;
  background: linear-gradient(135deg, rgba(244, 201, 95, 0.34), rgba(255, 250, 245, 0.88));
  border: 1px solid rgba(102, 53, 109, 0.16);
  border-radius: 10px;
}

.tool-progress strong {
  color: var(--plum);
  font-weight: 1000;
}

.tool-progress span {
  color: rgba(45, 34, 48, 0.7);
}

.output-box {
  padding: 16px;
  background: #fff4df;
  border: 1px solid rgba(91, 49, 74, 0.16);
  border-radius: 8px;
}

.output-box strong {
  display: block;
  margin-bottom: 6px;
}

.tool-copy-btn {
  margin-top: 14px;
  padding: 10px 12px;
  color: var(--paper-strong);
  font-weight: 950;
  background: var(--green);
}

.tool-link-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 14px;
  padding: 10px 12px;
  color: var(--paper-strong);
  font-weight: 950;
  background: linear-gradient(135deg, var(--plum), var(--violet));
  border: 1px solid rgba(91, 49, 74, 0.22);
  border-radius: 8px;
}

.soft-danger {
  min-height: 42px;
  padding: 9px 14px;
  color: var(--red-dark);
  font-weight: 950;
  background: rgba(255, 250, 245, 0.84);
  border: 1px solid rgba(168, 60, 91, 0.24);
  border-radius: 999px;
  cursor: pointer;
}

.shield-pack-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  background:
    radial-gradient(circle at 88% 0%, rgba(244, 201, 95, 0.16), transparent 28%),
    linear-gradient(135deg, #fffaf5, #f5e4ec);
  border-block: 1px solid var(--line);
}

.shield-pack-empty {
  padding: 22px;
  color: rgba(45, 34, 48, 0.72);
  background: rgba(255, 250, 245, 0.72);
  border: 1px dashed rgba(102, 53, 109, 0.24);
  border-radius: 10px;
}

.shield-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.shield-pack-card {
  padding: 18px;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(102, 53, 109, 0.16);
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(102, 53, 109, 0.1);
}

.shield-pack-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.shield-pack-meta span {
  padding: 4px 8px;
  color: var(--paper-strong);
  font-size: 12px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--plum), var(--violet));
  border-radius: 999px;
}

.shield-pack-meta time {
  color: rgba(45, 34, 48, 0.56);
  font-size: 12px;
}

.shield-pack-card p {
  max-height: 180px;
  overflow: auto;
  color: rgba(45, 34, 48, 0.76);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.checklist-group {
  margin-top: 18px;
}

.checklist-group h4 {
  display: inline-flex;
  padding: 4px 9px;
  color: var(--paper-strong);
  background: linear-gradient(135deg, var(--plum), var(--violet));
  border-radius: 999px;
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checklist input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
}

.battle-grid,
.restart-grid,
.kit-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.battle-card,
.restart-card,
.kit-item {
  padding: 20px;
}

.battle-card {
  min-height: 360px;
}

.battle-card ul,
.restart-card ul,
.modal-panel ul,
.tool-panel ul {
  padding-left: 20px;
}

.battle-card li,
.restart-card li,
.modal-panel li,
.tool-panel li {
  margin: 6px 0;
}

.restart-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  background: #e5eee5;
  border-block: 2px solid var(--line);
}

.restart-copy {
  max-width: 740px;
  margin-bottom: 28px;
}

.kits-section {
  padding-bottom: 116px;
}

.kits-panel {
  padding: 28px;
  background: var(--plum);
  color: var(--paper-strong);
  border: 1px solid rgba(91, 49, 74, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.kits-panel .kit-item {
  color: var(--ink);
}

.subscribe-form {
  max-width: 620px;
  margin-top: 24px;
}

.subscribe-form > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.subscribe-form button {
  min-height: 44px;
  padding: 0 16px;
  color: var(--plum);
  font-weight: 950;
  background: var(--yellow);
}

.subscribe-form button:disabled {
  opacity: 0.72;
  cursor: default;
}

.subscribe-form small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 248, 232, 0.72);
}

.site-footer {
  display: grid;
  gap: 12px;
  padding: 28px max(20px, calc((100% - 1180px) / 2)) 104px;
  color: rgba(255, 250, 245, 0.82);
  background: linear-gradient(135deg, #291b35, #66356d);
  border-top: 2px solid rgba(244, 201, 95, 0.44);
}

.site-footer strong {
  color: var(--paper-strong);
  font-size: 18px;
  font-weight: 1000;
}

.site-footer p {
  max-width: 860px;
  margin: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer a,
.site-footer button {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--paper-strong);
  font-weight: 950;
  background: rgba(255, 250, 245, 0.12);
  border: 1px solid rgba(255, 250, 245, 0.22);
  border-radius: 999px;
  cursor: pointer;
}

.mobile-nav {
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 19;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 250, 244, 0.96);
  border: 1px solid rgba(91, 49, 74, 0.16);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(91, 49, 74, 0.18);
  backdrop-filter: blur(16px);
}

.mobile-safe-exit {
  position: fixed;
  right: 14px;
  bottom: 78px;
  z-index: 18;
  display: none;
  min-height: 40px;
  background: rgba(255, 250, 245, 0.94);
  box-shadow: 0 10px 24px rgba(91, 49, 74, 0.14);
  backdrop-filter: blur(14px);
}

.mobile-nav a {
  min-height: 52px;
  display: grid;
  place-items: center;
  color: var(--plum);
  font-size: 13px;
  font-weight: 950;
}

.mobile-nav a + a {
  border-left: 1px solid rgba(91, 49, 74, 0.1);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.modal[aria-hidden="false"] {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 34, 48, 0.42);
}

.modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(820px, calc(100% - 28px));
  max-height: min(84vh, 820px);
  overflow: auto;
  padding: 28px;
  background: var(--paper-strong);
  border: 1px solid rgba(91, 49, 74, 0.18);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(45, 34, 48, 0.26);
  transform: translate(-50%, -50%);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  color: var(--paper-strong);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  background: var(--plum);
  border: 1px solid rgba(91, 49, 74, 0.22);
  border-radius: 6px;
  cursor: pointer;
}

.modal-title-block {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(91, 49, 74, 0.18);
}

.modal-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 8px;
  color: var(--paper-strong);
  font-size: 12px;
  font-weight: 950;
  background: var(--green);
  border-radius: 999px;
}

.modal-panel h2 {
  font-size: clamp(30px, 5vw, 52px);
}

.modal-section {
  margin-top: 20px;
}

.pattern-scene,
.pattern-decode,
.pattern-reply-box {
  padding: 16px;
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid rgba(91, 49, 74, 0.14);
  border-radius: 8px;
}

.pattern-reply-box {
  color: var(--paper-strong);
  background: linear-gradient(135deg, var(--plum), var(--red-dark));
  border-color: rgba(91, 49, 74, 0.24);
}

.pattern-reply-box h3,
.pattern-reply-box p {
  color: var(--paper-strong);
}

.pattern-reply-box p {
  font-size: 18px;
  font-weight: 950;
}

.case-radar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 22px;
}

.case-radar article {
  min-height: 132px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 244, 223, 0.94), rgba(255, 250, 245, 0.98));
  border: 1px solid rgba(91, 49, 74, 0.16);
  border-radius: 8px;
}

.case-radar strong {
  display: block;
  color: rgba(41, 27, 53, 0.84);
  font-size: 14px;
  line-height: 1.55;
}

.modal-section h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.quote-card {
  margin: 20px 0;
  padding: 16px;
  font-size: 20px;
  font-weight: 950;
  background: rgba(241, 207, 114, 0.74);
  border: 1px solid rgba(91, 49, 74, 0.16);
  border-radius: 8px;
  transform: rotate(-0.5deg);
}

@media (max-width: 1060px) {
  .desktop-nav {
    display: none;
  }

  .card-grid,
  .battle-grid,
  .restart-grid,
  .kit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-intro,
  .test-shell,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .tool-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 58px;
    padding: 0 14px;
  }

  .brand {
    max-width: 78vw;
    font-size: 14px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
  }

  .header-cta {
    display: none;
  }

  .safe-exit {
    display: none;
  }

  .hero-section {
    min-height: calc(100svh - 58px);
    align-items: end;
  }

  .hero-bg {
    background-position: 60% 10%;
    background-size: cover;
    opacity: 1;
  }

  .hero-overlay {
    background:
      radial-gradient(circle at 62% 20%, rgba(244, 201, 95, 0.14), transparent 24%),
      linear-gradient(0deg, rgba(255, 241, 234, 0.99), rgba(255, 241, 234, 0.9) 35%, rgba(255, 241, 234, 0.18) 70%),
      linear-gradient(90deg, rgba(255, 250, 245, 0.98), rgba(255, 250, 245, 0.72) 48%, rgba(255, 250, 245, 0.02) 86%);
  }

  .hero-content {
    width: min(100% - 28px, 520px);
    padding: 40px 0 24px;
  }

  h1 {
    max-width: 330px;
    font-size: clamp(42px, 15vw, 60px);
  }

  h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  h3 {
    font-size: 20px;
  }

  .hero-copy {
    max-width: 320px;
    margin-top: 16px;
    font-size: 22px;
  }

  .hero-note {
    max-width: 315px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .btn {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    text-align: center;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-stats div {
    min-height: 74px;
    padding: 10px 8px;
  }

  .hero-stats strong {
    font-size: 25px;
  }

  .hero-stats span {
    font-size: 11px;
  }

  .section {
    width: min(100% - 28px, 520px);
    padding: 54px 0;
  }

  .warrior-oath {
    padding: 30px 14px;
  }

  .warrior-oath-inner {
    display: block;
  }

  .warrior-oath h2 {
    max-width: 330px;
    margin-bottom: 16px;
    font-size: 32px;
  }

  .oath-grid {
    grid-template-columns: 1fr;
  }

  .oath-grid article {
    min-height: 132px;
  }

  .quick-rescue {
    padding: 26px 14px;
  }

  .quick-rescue-inner {
    display: block;
  }

  .quick-rescue h2 {
    max-width: 360px;
    margin-bottom: 16px;
    font-size: 28px;
  }

  .rescue-actions {
    grid-template-columns: 1fr;
  }

  .rescue-actions a {
    min-height: 92px;
    padding: 14px;
  }

  .rescue-actions strong {
    font-size: 17px;
  }

  .scenario-band,
  .content-section.alt,
  .test-section,
  .restart-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .section-head {
    margin-bottom: 20px;
  }

  .section-head p:not(.eyebrow) {
    font-size: 16px;
  }

  .row-head {
    display: block;
  }

  .search-wrap {
    margin-top: 18px;
  }

  .help-list,
  .card-grid,
  .case-grid,
  .battle-grid,
  .restart-grid,
  .kit-list,
  .shield-pack-grid,
  .path-grid,
  .field-grid,
  .checklist {
    grid-template-columns: 1fr;
  }

  .shield-pack-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .shield-pack-card p {
    max-height: none;
  }

  .warrior-path::before {
    top: 42px;
    right: -28px;
    width: 108px;
    height: 108px;
    opacity: 0.55;
  }

  .path-grid article {
    min-height: 156px;
  }

  .path-grid span {
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
  }

  .pattern-card,
  .case-card {
    min-height: 240px;
    padding: 16px;
  }

  .pattern-card {
    min-height: 340px;
  }

  .case-card {
    min-height: 360px;
  }

  .pattern-card-brief strong {
    -webkit-line-clamp: 3;
  }

  .case-card-brief strong {
    -webkit-line-clamp: 4;
  }

  .case-radar {
    grid-template-columns: 1fr;
  }

  .case-radar article {
    min-height: auto;
  }

  .scenario-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .scenario-card {
    min-height: 156px;
  }

  .test-card,
  .tool-panel {
    padding: 18px;
  }

  .test-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .option-btn {
    min-height: 50px;
  }

  .tool-link-btn,
  .tool-copy-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .tool-tabs {
    grid-template-columns: 1fr;
  }

  .tool-progress {
    display: block;
  }

  .tool-progress strong,
  .tool-progress span {
    display: block;
  }

  .tool-progress span {
    margin-top: 4px;
  }

  .shield-note {
    display: block;
  }

  .shield-note strong {
    display: block;
    margin-bottom: 4px;
  }

  .subscribe-form > div {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    display: grid;
  }

  .mobile-safe-exit {
    display: inline-flex;
    align-items: center;
  }

  .modal-panel {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 88svh;
    padding: 22px 18px 28px;
    border-radius: 18px 18px 0 0;
    transform: none;
  }

  .modal-panel h2 {
    font-size: 31px;
  }
}
