:root {
  color-scheme: dark;
  --bg: #0e0a08;
  --panel: #1a120f;
  --paper: #211613;
  --rule: #5b3924;
  --ink: #f3e0c8;
  --muted: #c39b7a;
  --line: #9b5a31;
  --frame: #2a1710;
  --gold: #e09a48;
  --accent: #e07a2d;
  --accent-dark: #8f361a;
  --warning: #d18a2f;
  --danger: #b5412f;
  --good: #d57c25;
  --chip: #2a1a14;
  --white-mana: #dfd3bf;
  --blue-mana: #6a7ca9;
  --black-mana: #241b1a;
  --red-mana: #b3542e;
  --green-mana: #56724a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
  font-family: Georgia, "Times New Roman", ui-serif, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 122, 47, 0.12), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(255, 180, 111, 0.12), transparent 12%),
    radial-gradient(circle at 15% 10%, rgba(255, 122, 47, 0.18), transparent 18%),
    radial-gradient(circle at 78% 14%, rgba(224, 154, 72, 0.16), transparent 22%),
    radial-gradient(circle at 25% 88%, rgba(181, 65, 47, 0.14), transparent 26%),
    radial-gradient(circle at 86% 84%, rgba(104, 87, 73, 0.12), transparent 24%),
    linear-gradient(135deg, #090606 0%, #1a1110 44%, #0d0807 100%);
  color: var(--ink);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle at 50% 92%, rgba(255, 122, 47, 0.15), transparent 12%),
    radial-gradient(circle at 50% 97%, rgba(255, 188, 110, 0.18), transparent 8%),
    linear-gradient(180deg, transparent 0%, rgba(255, 122, 47, 0.04) 74%, rgba(255, 90, 20, 0.18) 100%);
  mix-blend-mode: screen;
  opacity: 0.85;
}

body::after {
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(255, 204, 129, 0.06) 49%, transparent 52%),
    linear-gradient(65deg, transparent 0 54%, rgba(255, 125, 47, 0.05) 58%, transparent 62%);
  opacity: 0.55;
}

button,
textarea,
select {
  font: inherit;
}

.app-shell {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  height: calc(100vh - 48px);
  min-height: 0;
}

.input-panel,
.results-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(36, 23, 18, 0.96), rgba(14, 10, 8, 0.98)) padding-box,
    linear-gradient(135deg, #4a271a, #9a4c24, #392016, #d26b22, #5c311c) border-box;
  border: 8px solid transparent;
  border-radius: 14px;
  box-shadow: var(--shadow);
  outline: 1px solid rgba(255, 186, 110, 0.15);
  outline-offset: -5px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.input-panel::after,
.results-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -34% -10%;
  height: 48%;
  background: radial-gradient(circle at 50% 0%, rgba(255, 122, 47, 0.22), transparent 60%);
  pointer-events: none;
  filter: blur(4px);
  opacity: 0.7;
}

.input-panel::before,
.results-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(224, 154, 72, 0.18);
  border-radius: 4px;
}

.input-panel {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.results-panel {
  height: calc(100vh - 48px);
  border: 1px solid rgba(255, 196, 126, 0.16);
  background:
    linear-gradient(180deg, rgba(27, 19, 16, 0.94), rgba(11, 8, 7, 0.98));
  padding: 28px;
}

.results-panel * {
  min-width: 0;
}

.brand-block {
  display: grid;
  gap: 8px;
  padding: 13px;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 47, 0.15), transparent 40%),
    linear-gradient(160deg, rgba(26, 18, 15, 0.95), rgba(44, 23, 15, 0.92)),
    var(--rule);
  border: 1px solid rgba(224, 154, 72, 0.26);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 216, 176, 0.12), 0 0 30px rgba(255, 122, 47, 0.08);
}

.brand-topline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.page-header {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.page-header h1 {
  max-width: none;
  line-height: 0.94;
}

.brand-mark {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 196, 134, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(255, 122, 47, 0.16);
  background: #110b09;
}

.brand-link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.brand-link:focus-visible {
  outline: 2px solid rgba(255, 208, 138, 0.9);
  outline-offset: 4px;
  border-radius: 16px;
}

.brand-topline > div {
  min-width: 0;
}

.forge-row {
  padding-top: 4px;
}

.eyebrow {
  margin: 0;
  color: #ffb36b;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 0.88;
  letter-spacing: 0;
  color: #f7ddbf;
  text-shadow: 0 0 18px rgba(255, 122, 47, 0.16);
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  max-width: none;
}

h2 {
  font-size: 1.55rem;
  margin-bottom: 10px;
}

h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.lede {
  color: #dfb38a;
  line-height: 1.45;
  margin-bottom: 0;
}

.mana-row {
  display: flex;
  gap: 7px;
  align-items: center;
}

.mana-pip {
  width: 28px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 219, 175, 0.2);
  box-shadow: inset 0 1px 2px rgba(255, 231, 198, 0.2), 0 1px 2px rgba(0, 0, 0, 0.42);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
}

.mana-pip.white {
  background: var(--white-mana);
  color: #302516;
}

.mana-pip.blue {
  background: var(--blue-mana);
  color: #102433;
}

.mana-pip.black {
  background: var(--black-mana);
  color: #f7edda;
}

.mana-pip.red {
  background: var(--red-mana);
  color: #fff2de;
}

.mana-pip.green {
  background: var(--green-mana);
  color: #eef6dd;
}

.field-label {
  font-weight: 800;
}

.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.text-button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(61, 36, 24, 0.82);
  color: #ffcf96;
  border-color: rgba(255, 191, 129, 0.3);
  font-size: 0.8rem;
  box-shadow: none;
}

.text-button:hover {
  box-shadow: 0 0 16px rgba(255, 122, 47, 0.16);
}

textarea {
  width: 100%;
  min-height: 380px;
  resize: vertical;
  border: 1px solid rgba(223, 153, 72, 0.4);
  border-radius: 4px;
  background: linear-gradient(180deg, #221610, #1a1210);
  color: var(--ink);
  padding: 14px;
  line-height: 1.45;
  outline-color: var(--gold);
  box-shadow: inset 0 0 16px rgba(80, 49, 18, 0.08);
}

.select-control {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--ink);
  background: linear-gradient(180deg, #221613, #16100d);
  border: 1px solid rgba(223, 153, 72, 0.4);
  border-radius: 5px;
}

.select-control option {
  background: #120c0a;
  color: #f6e2c9;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
}

.check-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.tooltip-control {
  position: relative;
  min-width: 0;
}

.tooltip-control > button {
  width: 100%;
}

.control-tooltip {
  position: absolute;
  z-index: 20;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(300px, calc(100vw - 48px));
  padding: 11px 12px;
  border: 1px solid rgba(255, 177, 101, 0.5);
  border-radius: 7px;
  background: #160e0b;
  color: #f6e2c9;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.control-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 24px;
  border: 7px solid transparent;
  border-top-color: #160e0b;
}

.control-tooltip-wide {
  right: 0;
  left: auto;
  width: min(350px, calc(100vw - 48px));
}

.control-tooltip-wide::after {
  right: 24px;
  left: auto;
}

.control-tooltip span {
  display: block;
  margin-top: 6px;
}

.metric-label-help {
  cursor: help;
  text-decoration: underline dotted rgba(255, 207, 150, 0.55);
  text-underline-offset: 3px;
}

.composition-panel {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(223, 153, 72, 0.25);
  border-radius: 7px;
  background: rgba(31, 20, 15, 0.62);
}

.composition-panel h4 {
  margin: 0 0 12px;
}

.composition-list {
  display: grid;
  gap: 9px;
}

.composition-row {
  display: grid;
  grid-template-columns: minmax(110px, 1.2fr) minmax(90px, 3fr) 48px;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.composition-row span {
  overflow-wrap: normal;
  hyphens: none;
}

.composition-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.composition-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a64520, #ef9b48);
}

.attribution-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attribution-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  padding: 9px 11px;
  border-left: 3px solid #d97833;
  background: rgba(61, 36, 24, 0.52);
}

.attribution-list strong {
  color: #ffbd75;
}

.table-scroll {
  overflow-x: hidden;
}

.win-path-table {
  min-width: 0;
}

.tooltip-control:hover .control-tooltip,
.tooltip-control:focus-within .control-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

button {
  border: 1px solid #ffb165;
  border-radius: 8px;
  background: linear-gradient(180deg, #e07a2d, #8f361a);
  color: #1a100d;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 0 #120c07;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease, border-color 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: #ffd08a;
  filter: brightness(1.08) saturate(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 248, 229, 0.3), 0 0 0 1px rgba(255, 183, 101, 0.2), 0 0 22px rgba(255, 122, 47, 0.2), 0 4px 0 #120c07;
}

button:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4), 0 1px 0 #120c07;
}

button.secondary {
  background: linear-gradient(180deg, #3d2418, #241612);
  color: #ffcf96;
  border-color: rgba(255, 191, 129, 0.3);
}

button.secondary:hover {
  background: linear-gradient(180deg, #4c2c1b, #2e1711);
}

button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.status,
.notes {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.notes {
  border-top: 2px solid rgba(223, 153, 72, 0.28);
  padding-top: 14px;
}

.notes p {
  margin-bottom: 0;
}

.seo-content {
  position: relative;
  z-index: 1;
  padding: 0 24px 32px;
}

.seo-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px;
  border-top: 1px solid rgba(223, 153, 72, 0.24);
  color: #dfb38a;
  line-height: 1.55;
}

.seo-inner h2 {
  color: #fff0d8;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.faq-grid,
.content-grid,
.example-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.faq-grid article,
.content-card,
.example-card {
  padding: 16px;
  border: 1px solid rgba(223, 153, 72, 0.18);
  border-radius: 6px;
  background: rgba(26, 18, 15, 0.66);
}

.content-card h2,
.content-card h3,
.example-card h2,
.example-card h3 {
  color: #fff0d8;
}

.content-card ul,
.example-card ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.55;
}

.content-card li,
.example-card li {
  margin: 6px 0;
}

.code-block,
.decklist-block {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid rgba(223, 153, 72, 0.22);
  border-radius: 6px;
  background: #120c0a;
  color: #f5dfc5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: pre;
}

.page-panel {
  display: grid;
  gap: 18px;
}

.page-panel a,
.seo-inner a,
.content-card a,
.example-card a {
  color: #ffcf96;
}

.gpt-page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.gpt-hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  grid-template-areas: "copy panel";
  gap: clamp(20px, 4vw, 40px);
  align-items: stretch;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(255, 184, 109, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(132deg, rgba(44, 25, 18, 0.96), rgba(13, 9, 8, 0.98) 58%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 220, 170, 0.08);
  overflow: hidden;
  isolation: isolate;
}

.gpt-hero > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.gpt-hero-copy {
  grid-area: copy;
  align-self: center;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.gpt-brand-link {
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: #f7ddbf;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.gpt-brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 10px;
}

.gpt-hero h1 {
  font-size: clamp(3.1rem, 10vw, 7.2rem);
  line-height: 0.86;
}

.gpt-subhead {
  max-width: 760px;
  margin-bottom: 0;
  color: #fff0d8;
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  line-height: 1.18;
  font-weight: 800;
}

.gpt-intro {
  max-width: 720px;
  margin-bottom: 0;
  color: #dfb38a;
  font-size: 1.05rem;
  line-height: 1.62;
}

.gpt-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.gpt-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(255, 191, 129, 0.28);
  border-radius: 6px;
  color: #fff0d8;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.2;
}

.gpt-button-primary {
  background: linear-gradient(180deg, #e07a2d, #8f361a);
  box-shadow: 0 14px 34px rgba(224, 122, 45, 0.18);
}

.gpt-button-secondary {
  background: rgba(32, 21, 17, 0.88);
}

.gpt-button:hover {
  color: #fff8eb;
  box-shadow: 0 0 24px rgba(255, 122, 47, 0.28);
}

.gpt-hero-panel {
  grid-area: panel;
  align-self: stretch;
  justify-self: stretch;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-width: 0;
  min-height: 100%;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(255, 184, 109, 0.28);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 122, 47, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(15, 10, 8, 0.9), rgba(8, 5, 4, 0.94)),
    rgba(10, 6, 5, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 238, 210, 0.07),
    0 18px 46px rgba(0, 0, 0, 0.22);
}

.gpt-system-card,
.gpt-feature-card,
.gpt-capability-grid div,
.gpt-audience-list span,
.gpt-faq-grid article,
.gpt-note,
.gpt-final-cta {
  border: 1px solid rgba(223, 153, 72, 0.2);
  border-radius: 7px;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 47, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(32, 21, 17, 0.94), rgba(18, 12, 10, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 238, 210, 0.06);
}

.gpt-system-card {
  display: grid;
  align-content: center;
  padding: 20px;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.gpt-system-card strong {
  display: block;
  margin: 8px 0;
  color: #fff0d8;
  font-size: 1.45rem;
  line-height: 1.1;
}

.gpt-system-card p,
.gpt-feature-card p,
.gpt-faq-grid p,
.gpt-note p,
.gpt-final-cta p {
  margin-bottom: 0;
  color: #dfb38a;
  line-height: 1.58;
}

.gpt-card-kicker {
  color: #ffb36b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gpt-system-bridge {
  align-self: center;
  justify-self: center;
  padding: 5px 12px;
  border: 1px solid rgba(255, 191, 129, 0.24);
  border-radius: 999px;
  color: #ffd08a;
  background: rgba(10, 6, 5, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gpt-section {
  margin-top: 22px;
}

.gpt-section-grid,
.gpt-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gpt-feature-wide {
  grid-column: 1 / -1;
}

.gpt-feature-card,
.gpt-note,
.gpt-final-cta {
  padding: 22px;
}

.gpt-feature-card h2,
.gpt-section-head h2,
.gpt-faq-grid h3,
.gpt-note h2,
.gpt-final-cta h2 {
  color: #fff0d8;
}

.gpt-section-head {
  margin-bottom: 14px;
}

.gpt-section-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.gpt-capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.gpt-capability-grid div {
  min-height: 96px;
  display: flex;
  align-items: center;
  padding: 16px;
  color: #f7ddbf;
  font-weight: 800;
  line-height: 1.35;
}

.gpt-audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gpt-audience-list span {
  padding: 10px 12px;
  color: #ffd3a0;
  font-weight: 800;
}

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

.gpt-faq-grid article {
  padding: 18px;
}

.gpt-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.gpt-final-cta > div:first-child {
  max-width: 660px;
}

.gpt-note {
  margin-top: 22px;
  border-color: rgba(255, 137, 78, 0.32);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(232, 129, 55, 0.18), transparent 28%),
    rgba(8, 6, 5, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
  backdrop-filter: blur(12px) saturate(1.08);
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.loading-modal {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 206, 150, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(38, 25, 20, 0.94), rgba(15, 10, 9, 0.96));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 238, 202, 0.08),
    inset 0 0 0 1px rgba(255, 161, 85, 0.06);
}

.loading-modal h2 {
  margin: 2px 0 8px;
  color: #fff0d8;
  font-size: 1.55rem;
  line-height: 1.05;
}

.loading-modal p {
  margin: 0;
  color: #d9b58f;
  line-height: 1.45;
}

.forge-spinner {
  position: relative;
  width: 86px;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    conic-gradient(from 0deg, transparent 0deg, rgba(255, 196, 113, 0.12) 72deg, #ffb165 132deg, #e4572d 172deg, transparent 232deg),
    radial-gradient(circle, rgba(255, 232, 189, 0.14), rgba(255, 136, 64, 0.05) 47%, transparent 49%);
  animation: forgeSpin 1s linear infinite;
  box-shadow:
    0 0 32px rgba(224, 104, 45, 0.28),
    inset 0 0 0 1px rgba(255, 226, 174, 0.12);
}

.forge-spinner::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: #17100d;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.7);
}

.forge-spinner span {
  position: absolute;
  inset: 28px;
  border-radius: inherit;
  background: radial-gradient(circle, #ffe0a7, #d65a2b 58%, transparent 62%);
  box-shadow: 0 0 26px rgba(255, 144, 74, 0.72);
}

.loading-track {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 215, 156, 0.1);
}

.loading-track span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #ffb165, #fff0d8, #e4572d);
  animation: loadingTrack 1.15s ease-in-out infinite;
}

body.loading-active {
  cursor: progress;
}

.empty-state {
  min-height: 420px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  background: rgba(26, 18, 15, 0.72);
  border: 1px solid rgba(223, 153, 72, 0.2);
  border-radius: 5px;
}

.premium-empty {
  gap: 14px;
  min-height: calc(100vh - 112px);
  border: 0;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 198, 116, 0.16), transparent 25%),
    linear-gradient(180deg, rgba(35, 24, 20, 0.9), rgba(13, 9, 8, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 219, 171, 0.07);
}

.premium-empty h2 {
  margin: 0;
  color: #fff0d8;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
}

.premium-empty p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 auto;
  color: #d6b18b;
  line-height: 1.5;
}

.preview-bars {
  display: grid;
  gap: 10px;
  width: min(420px, 80%);
  margin: 16px auto 0;
}

.preview-bars span {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.preview-bars span::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b8512b, #ffd27a);
}

.audit {
  display: grid;
  gap: 22px;
}

.report-header {
  display: grid;
  gap: 6px;
}

.report-header h2 {
  margin-bottom: 0;
  color: #f8e5c9;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

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

.summary-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.metric {
  border: 1px solid rgba(223, 153, 72, 0.12);
  border-radius: 8px;
  background: rgba(25, 17, 14, 0.68);
  padding: 14px;
  min-height: 86px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.metric span {
  display: block;
  color: #d5ad86;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.7rem;
  overflow-wrap: normal;
  hyphens: none;
}

.score-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border: 0;
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 202, 124, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(80, 33, 17, 0.96), rgba(26, 17, 14, 0.97) 62%, rgba(13, 9, 8, 0.98));
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 213, 151, 0.08);
  overflow: hidden;
}

.score-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 5px;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 214, 143, 0.18), transparent 18%),
    radial-gradient(circle at 88% 12%, rgba(255, 122, 47, 0.16), transparent 22%);
  opacity: 0.85;
}

.score-hero > * {
  position: relative;
}

.score-ring {
  position: relative;
  width: 172px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 3px solid #21150c;
  background:
    radial-gradient(circle at center, rgba(255, 191, 115, 0.18), transparent 42%),
    conic-gradient(var(--ember) calc(var(--score) * 10%), #5e3625 0);
  box-shadow: inset 0 0 0 10px rgba(30, 16, 12, 0.5), 0 0 24px rgba(255, 122, 47, 0.25);
}

.score-hero[data-heat="low"] .score-ring {
  filter: brightness(0.9);
}

.score-hero[data-heat="medium"] .score-ring {
  filter: brightness(1.05);
}

.score-hero[data-heat="high"] .score-ring {
  filter: brightness(1.15) saturate(1.1);
  box-shadow: inset 0 0 0 10px rgba(30, 16, 12, 0.44), 0 0 32px rgba(255, 122, 47, 0.42), 0 0 56px rgba(255, 180, 111, 0.18);
}

.score-hero[data-heat="inferno"] .score-ring {
  filter: brightness(1.24) saturate(1.2);
  box-shadow: inset 0 0 0 10px rgba(30, 16, 12, 0.38), 0 0 40px rgba(255, 122, 47, 0.55), 0 0 90px rgba(255, 201, 119, 0.3);
}

.score-ring::before {
  content: "";
  position: absolute;
  width: 198px;
  height: 198px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 165, 82, 0.24), transparent 65%);
  filter: blur(4px);
  z-index: -1;
}

.score-ring strong {
  width: 122px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 239, 216, 0.95), rgba(255, 190, 115, 0.9) 55%, rgba(184, 84, 29, 0.96));
  color: #1a100d;
  display: grid;
  place-items: center;
  font-size: 2.3rem;
}

.score-hero[data-heat="high"] .score-ring strong,
.score-hero[data-heat="inferno"] .score-ring strong {
  background: radial-gradient(circle at 35% 30%, rgba(255, 246, 228, 1), rgba(255, 215, 146, 0.97) 42%, rgba(255, 132, 52, 0.98) 72%, rgba(170, 62, 18, 1));
  box-shadow: inset 0 0 0 1px rgba(255, 246, 228, 0.22), 0 0 20px rgba(255, 122, 47, 0.2);
}

.score-hero[data-heat="inferno"] .score-ring::after {
  content: "";
  position: absolute;
  width: 174px;
  height: 174px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 199, 92, 0.22), transparent 58%);
  filter: blur(12px);
  animation: pulseFire 1.8s ease-in-out infinite;
}

.score-hero[data-heat="inferno"] .score-ring > * {
  position: relative;
  z-index: 1;
}

.score-copy {
  display: grid;
  gap: 10px;
}

.hero-kicker {
  color: #ffd18b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-copy h3 {
  margin: 0;
  color: #fff0d8;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
}

.score-copy p {
  max-width: 68ch;
  margin: 0;
  color: #efd0ae;
  font-size: 1rem;
  line-height: 1.5;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.hero-meta span,
.confidence-badge {
  border-radius: 999px;
  background: rgba(255, 214, 143, 0.12);
  color: #ffdca3;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 850;
}

.section {
  border-top: 1px solid rgba(223, 153, 72, 0.13);
  padding-top: 20px;
}

.priority-section {
  border-top: 0;
  padding-top: 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}

.section-heading h3 {
  margin: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: rgba(255, 181, 99, 0.1);
  border: 1px solid rgba(255, 191, 129, 0.14);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.88rem;
  font-weight: 750;
  max-width: 100%;
  overflow-wrap: normal;
  hyphens: none;
}

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

.dash-widget {
  display: grid;
  gap: 9px;
  min-height: 132px;
  padding: 16px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(38, 26, 21, 0.9), rgba(18, 13, 11, 0.86));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 219, 171, 0.06);
}

.dash-widget span,
.score-meter-head span {
  color: #d6ae88;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dash-widget strong {
  color: #ffe5bf;
  font-size: 1.9rem;
  line-height: 1;
}

.dash-widget p,
.score-meter p {
  margin: 0;
  color: #cda985;
  font-size: 0.86rem;
  line-height: 1.35;
}

.meter-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.meter-track span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b8512b, #f0a557);
}

.dash-widget.elite .meter-track span,
.score-meter.elite .meter-track span {
  background: linear-gradient(90deg, #d3a345, #ffe09a);
}

.dash-widget.good .meter-track span,
.score-meter.good .meter-track span,
.dash-widget.mana .meter-track span {
  background: linear-gradient(90deg, #4f8a58, #9fd06f);
}

.dash-widget.ok .meter-track span,
.score-meter.ok .meter-track span,
.dash-widget.pilot .meter-track span {
  background: linear-gradient(90deg, #476d9d, #83a6e8);
}

.dash-widget.risk .meter-track span,
.score-meter.risk .meter-track span {
  background: linear-gradient(90deg, #9f352d, #f07350);
}

.shell-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shell-strip span {
  display: grid;
  gap: 3px;
  min-width: 128px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 211, 152, 0.1);
  color: #ffe0b4;
  font-weight: 850;
}

.shell-strip small {
  color: #cda985;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.vector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(18, 13, 11, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 219, 171, 0.06);
}

.score-meter {
  display: grid;
  gap: 8px;
  padding: 12px 0;
}

.score-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.score-meter-head strong {
  color: #ffe4bd;
  font-size: 1.1rem;
}

.recommendation-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recommendation-card {
  display: grid;
  gap: 7px;
  padding: 15px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(39, 27, 22, 0.9), rgba(19, 13, 11, 0.88));
  box-shadow: inset 0 0 0 1px rgba(255, 219, 171, 0.07), 0 14px 28px rgba(0, 0, 0, 0.22);
}

.recommendation-card strong {
  color: #ffe3ba;
  font-size: 1rem;
}

.recommendation-card p {
  margin: 0;
  color: #ceb08f;
  line-height: 1.42;
}

.recommendation-impact {
  justify-self: start;
  border-radius: 999px;
  background: rgba(94, 145, 83, 0.18);
  color: #bfe58d;
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.strategy-panel {
  display: grid;
  gap: 14px;
}

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

.strategy-summary div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 211, 152, 0.08);
}

.strategy-summary span {
  color: #cda985;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategy-summary strong {
  color: #ffe2b9;
  font-size: 1rem;
}

.identity-bars {
  display: grid;
  gap: 10px;
}

.identity-bar {
  display: grid;
  gap: 7px;
}

.identity-bar > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #ffe0b4;
}

.identity-bar p {
  margin: 0;
  color: #cda985;
  font-size: 0.84rem;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.network-grid .dash-widget {
  min-height: 118px;
}

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

.compact-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: #d6b18b;
}

.pair-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.pair-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 211, 152, 0.075);
}

.pair-card strong {
  color: #ffe0b4;
}

.pair-card span {
  color: #bfe58d;
  font-weight: 900;
}

.pair-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: #cda985;
  line-height: 1.38;
}

.opportunity-list,
.sequence-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.opportunity-card,
.sequence-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(93, 121, 180, 0.09);
  box-shadow: inset 0 0 0 1px rgba(156, 185, 255, 0.06);
}

.opportunity-card strong,
.sequence-card strong {
  color: #dce8ff;
}

.opportunity-card span {
  color: #bfe58d;
  font-weight: 900;
}

.opportunity-card p,
.sequence-card p,
.sequence-card span {
  grid-column: 1 / -1;
  margin: 0;
  color: #c7d4ef;
  line-height: 1.38;
}

.sequence-card span {
  color: #aebbd4;
}

.compact-bars {
  margin-top: 14px;
}

.relationship-card {
  background: rgba(81, 126, 86, 0.1);
  box-shadow: inset 0 0 0 1px rgba(132, 190, 119, 0.08);
}

.state-transition-card {
  background: rgba(212, 143, 58, 0.1);
  box-shadow: inset 0 0 0 1px rgba(232, 169, 88, 0.1);
}

.resource-card {
  background: rgba(72, 112, 156, 0.1);
  box-shadow: inset 0 0 0 1px rgba(134, 176, 224, 0.09);
}

.recursive-card {
  background: rgba(93, 121, 180, 0.12);
}

.recursive-card p {
  display: grid;
  gap: 4px;
}

.missing-branch-card {
  background: rgba(181, 65, 47, 0.12);
  box-shadow: inset 0 0 0 1px rgba(224, 92, 72, 0.1);
}

.missing-branch-card strong {
  color: #ffd0c6;
}

.engine-note,
.matchup-coaching {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.engine-note {
  padding: 14px;
  border-radius: 10px;
  background: rgba(210, 133, 52, 0.08);
  box-shadow: inset 0 0 0 1px rgba(224, 154, 72, 0.08);
}

.engine-note h4,
.matchup-coaching h4 {
  margin: 0;
}

.engine-note p {
  margin: 0;
}

.coaching-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(24, 18, 16, 0.72);
  box-shadow: inset 0 0 0 1px rgba(224, 154, 72, 0.08);
}

.coaching-card strong {
  color: #f0d5aa;
}

.coaching-card span {
  color: #bfe58d;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coaching-card p {
  margin: 0;
  color: #d2b592;
}

.disclosure {
  border-top: 1px solid rgba(223, 153, 72, 0.13);
  padding-top: 14px;
}

.disclosure summary {
  cursor: pointer;
  color: #ffe0b4;
  font-size: 1rem;
  font-weight: 900;
  list-style-position: outside;
}

.disclosure > *:not(summary) {
  margin-top: 12px;
}

.scores-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.94rem;
  background: rgba(20, 14, 12, 0.82);
  border: 1px solid rgba(223, 153, 72, 0.2);
}

.scores-table th,
.scores-table td {
  border-bottom: 1px solid rgba(223, 153, 72, 0.16);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.scores-table th:first-child,
.scores-table td:first-child {
  width: 24%;
}

.scores-table th:nth-child(2),
.scores-table td:nth-child(2) {
  text-align: right;
  width: 76px;
  font-weight: 800;
}

.scores-table th:nth-child(3),
.scores-table td:nth-child(3) {
  width: auto;
}

.scores-table.win-path-table th:first-child,
.scores-table.win-path-table td:first-child {
  width: 22%;
}

.scores-table.win-path-table th:nth-child(2),
.scores-table.win-path-table td:nth-child(2),
.scores-table.win-path-table th:nth-child(3),
.scores-table.win-path-table td:nth-child(3) {
  width: 72px;
}

.scores-table.win-path-table th:nth-child(4),
.scores-table.win-path-table td:nth-child(4) {
  width: auto;
}

.scores-table.win-path-table th:nth-child(5),
.scores-table.win-path-table td:nth-child(5) {
  width: 24%;
}

.list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.trade-list,
.builder-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.trade-card {
  border: 1px solid rgba(223, 153, 72, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(42, 25, 19, 0.98), rgba(24, 16, 14, 0.96));
  padding: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 223, 0.08), 0 0 16px rgba(255, 122, 47, 0.04);
  overflow-wrap: normal;
  hyphens: none;
}

.trade-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.trade-action {
  margin-bottom: 6px;
}

.trade-type {
  display: inline-block;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 191, 129, 0.28);
  border-radius: 999px;
  background: rgba(255, 181, 99, 0.08);
  color: #ffbf8b;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.score-badge {
  min-width: 96px;
  border: 1px solid rgba(223, 153, 72, 0.24);
  border-radius: 50%;
  background: radial-gradient(circle, #351d15, #1c1210);
  padding: 8px;
  text-align: center;
}

.score-badge span {
  display: block;
  color: #d5ad86;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.score-badge strong {
  display: block;
  font-size: 1.45rem;
}

.score-badge.good strong,
.score-badge.good .score-delta {
  color: #ffb36b;
}

.score-badge.bad strong,
.score-badge.bad .score-delta {
  color: #ff8b63;
}

.card-detail {
  margin: 10px 0;
  border: 1px solid rgba(223, 153, 72, 0.2);
  border-radius: 4px;
  background: rgba(20, 14, 12, 0.82);
  padding: 10px;
  font-size: 0.95rem;
  line-height: 1.42;
  overflow-wrap: normal;
  hyphens: none;
}

.card-detail p {
  margin-bottom: 6px;
}

.warning {
  border: 1px solid var(--warning);
  border-left-width: 6px;
  border-radius: 4px;
  background: rgba(79, 43, 19, 0.75);
  padding: 11px 12px;
  box-shadow: inset 0 0 18px rgba(255, 122, 47, 0.08);
  overflow-wrap: normal;
  hyphens: none;
}

.warning.critical,
.warning.major {
  border-left-color: var(--danger);
  background: rgba(90, 29, 21, 0.72);
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  justify-items: end;
  pointer-events: none;
  z-index: 50;
  padding: 0;
}

.toast {
  min-width: min(360px, calc(100vw - 36px));
  max-width: 480px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 191, 129, 0.24);
  background: linear-gradient(180deg, rgba(31, 18, 13, 0.96), rgba(13, 8, 7, 0.98));
  color: #f6e2c9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 122, 47, 0.12);
  transform: translateY(12px);
  opacity: 0;
  animation:
    toastIn var(--toast-in, 280ms) ease forwards,
    toastOut var(--toast-out, 440ms) ease forwards var(--toast-hold, 2600ms);
}

.toast strong {
  color: #ffd08a;
}

.toast.good {
  border-color: rgba(255, 191, 129, 0.28);
}

.toast.warn {
  border-color: rgba(255, 137, 78, 0.42);
}

.toast.error {
  border-color: rgba(255, 101, 72, 0.52);
}

.site-footer {
  margin-top: 2rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 166, 91, 0.18);
  background:
    linear-gradient(180deg, rgba(12, 7, 4, 0.2), rgba(10, 5, 3, 0.9)),
    rgba(5, 3, 2, 0.92);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 238, 220, 0.8);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 196, 126, 0.92);
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffd08a;
  text-shadow: 0 0 14px rgba(255, 128, 34, 0.35);
}

.footer-home {
  font-weight: 700;
}

@keyframes toastIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(14px); }
}

@media (max-width: 640px) {
  .toast-stack {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .toast {
    min-width: 0;
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes pulseFire {
  0%, 100% { transform: scale(0.96); opacity: 0.55; }
  50% { transform: scale(1.04); opacity: 0.92; }
}

@keyframes forgeSpin {
  to { transform: rotate(360deg); }
}

@keyframes loadingTrack {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(240%); }
}

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

.mini-card {
  border: 1px solid rgba(223, 153, 72, 0.2);
  border-radius: 5px;
  background: rgba(20, 14, 12, 0.82);
  padding: 13px;
}

.mini-card p:last-child {
  margin-bottom: 0;
}

.muted {
  color: #d0aa86;
}

.deck-output {
  margin: 0;
  max-height: 520px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid rgba(223, 153, 72, 0.2);
  border-radius: 5px;
  background: rgba(20, 14, 12, 0.84);
  color: var(--ink);
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.45;
}

.upgrade-card {
  overflow-wrap: normal;
  hyphens: none;
}

@media (max-width: 980px) {
  .app-shell {
    padding: 12px 12px 0;
  }

  .gpt-page-shell {
    padding: 12px;
  }

  .workspace,
  .two-col,
  .gpt-hero,
  .gpt-section-grid,
  .gpt-two-col,
  .gpt-faq-grid {
    grid-template-columns: 1fr;
  }

  .gpt-hero {
    grid-template-areas:
      "copy"
      "panel";
    min-height: auto;
    padding: 24px;
  }

  .gpt-hero-panel {
    min-height: auto;
    grid-template-rows: auto auto auto;
  }

  .gpt-final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace {
    height: auto;
  }

  .input-panel {
    position: static;
    height: auto;
    min-height: auto;
  }

  .results-panel {
    height: auto;
    min-height: 0;
  }

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

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

  .trade-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .gpt-hero,
  .gpt-feature-card,
  .gpt-note,
  .gpt-final-cta {
    padding: 16px;
  }

  .gpt-cta-row,
  .gpt-button {
    width: 100%;
  }

  .gpt-brand-mark {
    width: 48px;
    height: 48px;
  }

  .results-panel,
  .input-panel {
    padding: 16px;
  }

  .input-panel {
    gap: 12px;
  }

  .brand-block {
    gap: 6px;
    padding: 11px;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
  }

  .check-option {
    order: 2;
  }

  .evolution-label {
    order: 3;
  }

  .select-control {
    order: 4;
  }

  .controls {
    order: 5;
  }

  .deck-field-heading {
    order: 6;
  }

  #deckInput {
    order: 7;
    min-height: 260px;
    max-height: 42dvh;
  }

  .status {
    order: 8;
  }

  .notes {
    order: 9;
  }

  .summary-grid,
  .score-hero,
  .controls {
    grid-template-columns: 1fr;
  }

  .score-hero {
    gap: 18px;
    padding: 22px;
  }

  .score-ring {
    width: 148px;
    margin: 0 auto;
  }

  .dashboard-grid,
  .score-bars,
  .vector-grid,
  .strategy-summary,
  .network-grid,
  .network-columns {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .control-tooltip-wide {
    right: auto;
    left: 0;
  }

  .control-tooltip-wide::after {
    right: auto;
    left: 24px;
  }

  .composition-row {
    grid-template-columns: 1fr 44px;
  }

  .composition-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
