:root {
  --bg: #070a12;
  --bg-2: #0d1320;
  --surface: #111827;
  --surface-2: #172033;
  --surface-3: #f6f8fb;
  --text: #f7fbff;
  --text-soft: #b8c4d6;
  --text-muted: #7e8aa1;
  --ink: #111827;
  --ink-soft: #475569;
  --line: rgba(202, 213, 226, 0.16);
  --line-strong: rgba(202, 213, 226, 0.28);
  --primary: #2dd4bf;
  --primary-ink: #042f2e;
  --accent: #f8c14a;
  --danger: #fb7185;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --success: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --container: 1180px;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Fira Code", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(45, 212, 191, 0.08), transparent 28%),
    linear-gradient(240deg, rgba(96, 165, 250, 0.08), transparent 30%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
}

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

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

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.9;
}

:focus-visible {
  outline: 3px solid rgba(45, 212, 191, 0.86);
  outline-offset: 3px;
}

::selection {
  background: rgba(45, 212, 191, 0.32);
  color: var(--text);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-inner {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(7, 10, 18, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  min-height: 58px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(45, 212, 191, 0.36);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.16), rgba(96, 165, 250, 0.10));
}

.brand-mark span {
  border-radius: 3px;
  background: var(--primary);
}

.brand-mark span:nth-child(2) {
  background: var(--accent);
}

.brand-mark span:nth-child(3) {
  background: var(--blue);
}

.brand-text {
  font-size: 1.08rem;
  letter-spacing: 0;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

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

.nav-toggle {
  display: none;
  justify-self: end;
}

.button,
.icon-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  line-height: 1.1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button {
  padding: 0 16px;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 16px 38px rgba(45, 212, 191, 0.18);
}

.button-primary:hover {
  background: #5eead4;
}

.button-soft {
  border-color: rgba(45, 212, 191, 0.26);
  background: rgba(45, 212, 191, 0.11);
  color: var(--text);
}

.button-soft:hover {
  background: rgba(45, 212, 191, 0.18);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
}

.button-ghost:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.button-danger {
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.12);
  color: #fecdd3;
}

.button-danger:hover {
  background: rgba(251, 113, 133, 0.19);
}

.button-large {
  min-height: 52px;
  padding-inline: 20px;
}

.full-width {
  width: 100%;
}

.icon-button {
  width: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--text);
}

.icon-button.subtle {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
}

.flash-stack {
  position: fixed;
  top: 92px;
  right: 20px;
  z-index: 1500;
  width: min(420px, calc(100vw - 40px));
  display: grid;
  gap: 10px;
}

.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(17, 24, 39, 0.94);
  box-shadow: var(--shadow);
}

.flash svg {
  flex: 0 0 auto;
  color: var(--primary);
}

.flash-error svg,
.flash-danger svg {
  color: var(--danger);
}

.eyebrow {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  font-size: 5.25rem;
  max-width: 11ch;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 1.08rem;
}

p {
  margin: 0;
  color: var(--text-soft);
}

.hero-section {
  position: relative;
  min-height: calc(100dvh - 128px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 88px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.6), transparent);
}

.scanline {
  position: absolute;
  top: 16%;
  left: -20%;
  width: 140%;
  height: 160px;
  transform: rotate(-8deg);
  background: linear-gradient(180deg, transparent, rgba(96, 165, 250, 0.07), transparent);
  animation: scan 9s linear infinite;
}

.pulse {
  position: absolute;
  height: 1px;
  width: 36vw;
  background: linear-gradient(90deg, transparent, rgba(248, 193, 74, 0.48), transparent);
}

.pulse-a {
  top: 32%;
  right: 3%;
}

.pulse-b {
  bottom: 24%;
  left: 6%;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(32px, 5vw, 78px);
  align-items: center;
  padding: 92px 0 80px;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.hero-lead {
  max-width: 680px;
  font-size: 1.28rem;
  color: #d8e2f0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
}

.trust-row span,
.filter-chips span,
.signal-row span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.9rem;
  white-space: nowrap;
}

.ops-preview {
  min-height: 580px;
  border: 1px solid rgba(202, 213, 226, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(23, 32, 51, 0.92), rgba(13, 19, 32, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ops-topbar {
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  color: var(--text-soft);
}

.status-dot,
.live-pill span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.12);
}

.ops-time {
  margin-left: auto;
  color: var(--accent);
}

.ops-map {
  position: relative;
  height: 330px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.09), transparent 40%),
    linear-gradient(225deg, rgba(248, 193, 74, 0.08), transparent 38%),
    #0b1020;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}

.node {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.82);
}

.node-critical {
  top: 34%;
  left: 28%;
  background: var(--danger);
  box-shadow: 0 0 0 16px rgba(251, 113, 133, 0.11);
}

.node-warning {
  top: 58%;
  left: 68%;
  background: var(--accent);
  box-shadow: 0 0 0 16px rgba(248, 193, 74, 0.11);
}

.node-stable {
  top: 22%;
  left: 78%;
  background: var(--primary);
  box-shadow: 0 0 0 16px rgba(45, 212, 191, 0.11);
}

.route {
  position: absolute;
  height: 3px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.1), rgba(45, 212, 191, 0.8));
}

.route-a {
  top: 39%;
  left: 30%;
  width: 48%;
  transform: rotate(-12deg);
}

.route-b {
  top: 63%;
  left: 34%;
  width: 36%;
  transform: rotate(15deg);
  background: linear-gradient(90deg, rgba(248, 193, 74, 0.1), rgba(248, 193, 74, 0.8));
}

.ops-feed {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.ops-feed > div {
  min-height: 74px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 14px;
  background: rgba(13, 19, 32, 0.96);
}

.feed-tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.feed-tag.urgent {
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.14);
}

.feed-tag.warning {
  color: #fde68a;
  background: rgba(248, 193, 74, 0.14);
}

.feed-tag.stable {
  color: #ccfbf1;
  background: rgba(45, 212, 191, 0.14);
}

.metrics-band {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  min-height: 148px;
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-left: 1px solid var(--line);
}

.metric:last-child {
  border-right: 1px solid var(--line);
}

.metric strong {
  font-family: var(--font-mono);
  font-size: 2.85rem;
  line-height: 1;
  color: var(--text);
}

.metric span {
  color: var(--text-soft);
}

.content-section {
  padding: clamp(76px, 10vw, 132px) 0;
}

.split-layout,
.contact-grid,
.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section-heading {
  display: grid;
  gap: 18px;
}

.section-heading p {
  max-width: 680px;
}

.section-heading.center {
  margin: 0 auto 32px;
  text-align: center;
  justify-items: center;
}

.feature-list,
.values-grid,
.capability-grid,
.mini-scenarios {
  display: grid;
  gap: 16px;
}

.feature-item,
.value-item,
.capability,
.mini-scenario,
.legal-block,
.editorial-block,
.timeline-step {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.feature-item {
  min-height: 130px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px;
}

.feature-item svg,
.value-item svg,
.capability svg {
  color: var(--primary);
}

.feature-item h3,
.value-item h3,
.capability h3 {
  margin-bottom: 8px;
}

.scenario-strip,
.muted-section {
  background: rgba(246, 248, 251, 0.96);
  color: var(--ink);
}

.scenario-strip p,
.muted-section p,
.scenario-strip .eyebrow,
.muted-section .eyebrow {
  color: var(--ink-soft);
}

.scenario-strip .eyebrow,
.muted-section .eyebrow {
  color: #0f766e;
}

.mini-scenarios {
  grid-template-columns: repeat(4, 1fr);
}

.mini-scenario {
  min-height: 170px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  color: var(--ink);
  background: #ffffff;
  border-color: #e2e8f0;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mini-scenario:hover {
  transform: translateY(-4px);
  border-color: #99f6e4;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}

.mini-scenario span {
  color: #0f766e;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.mini-scenario strong {
  font-size: 1.12rem;
  line-height: 1.25;
}

.contact-form,
.auth-card,
.builder-side,
.game-panel,
.moderation-item,
.tool-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(17, 24, 39, 0.72);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.contact-form,
.auth-form,
.builder-form,
.compact-form,
.admin-note-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
}

label > span,
.composer > label {
  color: var(--text);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

select option {
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(45, 212, 191, 0.72);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: rgba(184, 196, 214, 0.55);
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-grid p {
  max-width: 660px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-soft);
}

.contact-form {
  padding: 24px;
}

.page-hero {
  padding: clamp(78px, 10vw, 132px) 0 64px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(45, 212, 191, 0.12), transparent 38%),
    linear-gradient(250deg, rgba(248, 193, 74, 0.08), transparent 38%);
}

.page-hero h1 {
  max-width: 13ch;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 18px;
  font-size: 1.12rem;
}

.compact-hero {
  padding-bottom: 54px;
}

.two-column-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.principle-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.principle-panel > div {
  min-height: 128px;
  padding: 22px;
  background: rgba(17, 24, 39, 0.84);
}

.principle-panel span {
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
}

.principle-panel strong {
  display: block;
  margin: 5px 0;
  font-size: 1.1rem;
}

.editorial-block,
.legal-block {
  padding: 26px;
}

.editorial-block h2,
.legal-block h2 {
  margin-bottom: 14px;
}

.values-grid,
.capability-grid {
  grid-template-columns: repeat(3, 1fr);
}

.value-item,
.capability {
  padding: 24px;
  background: #ffffff;
  border-color: #e2e8f0;
  color: var(--ink);
}

.value-item p,
.capability p {
  color: var(--ink-soft);
}

.value-item svg,
.capability svg {
  margin-bottom: 18px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-step {
  min-height: 154px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px;
}

.timeline-step > span {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--primary);
}

.timeline-step h2 {
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.legal-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.scenario-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.scenario-toolbar p {
  max-width: 640px;
  margin-top: 10px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.scenario-card {
  position: relative;
  min-height: 356px;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto auto;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.034)),
    rgba(17, 24, 39, 0.72);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.scenario-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--blue));
  opacity: 0.76;
}

.scenario-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.46);
  background:
    linear-gradient(145deg, rgba(45, 212, 191, 0.12), rgba(96, 165, 250, 0.07)),
    rgba(17, 24, 39, 0.84);
  box-shadow: var(--shadow);
}

.scenario-card-head,
.scenario-meta,
.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scenario-index {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 700;
}

.scenario-tag {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  color: #bfdbfe;
  font-size: 0.82rem;
  font-weight: 700;
}

.scenario-card h3 {
  font-size: 1.42rem;
}

.scenario-card p {
  color: #cbd6e6;
}

.scenario-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--text-soft);
}

.scenario-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: 0.88rem;
}

.scenario-meta svg {
  width: 17px;
  height: 17px;
  color: var(--primary);
}

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

.card-action {
  min-height: 44px;
  margin-top: 2px;
  color: var(--primary);
  font-weight: 800;
}

.auth-section {
  min-height: calc(100dvh - 88px);
  display: grid;
  place-items: center;
  padding: 64px 20px;
}

.auth-shell {
  width: min(960px, 100%);
  display: grid;
  gap: 16px;
}

.back-link {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
}

.auth-card {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1fr);
  overflow: hidden;
}

.auth-visual {
  position: relative;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.18), transparent 45%),
    linear-gradient(240deg, rgba(248, 193, 74, 0.14), transparent 45%),
    #0b1020;
}

.auth-ring {
  width: min(68%, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, 0.46);
  box-shadow:
    inset 0 0 0 28px rgba(45, 212, 191, 0.045),
    inset 0 0 0 72px rgba(96, 165, 250, 0.035);
}

.auth-core {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 18px rgba(45, 212, 191, 0.12);
}

.auth-content {
  padding: clamp(28px, 5vw, 58px);
  display: grid;
  align-content: center;
  gap: 18px;
}

.auth-content h1 {
  max-width: 14ch;
  font-size: 4.05rem;
}

.custom-builder {
  padding-top: 54px;
}

.builder-form {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: start;
}

.builder-main {
  display: grid;
  gap: 18px;
}

.builder-side {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
  padding: 18px;
}

.upload-zone {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px dashed rgba(45, 212, 191, 0.42);
  border-radius: var(--radius-md);
  background: rgba(45, 212, 191, 0.06);
}

.upload-zone svg {
  color: var(--primary);
}

.people-editor {
  display: grid;
  gap: 14px;
}

.people-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.people-editor h2 {
  font-size: 1.24rem;
}

.people-list {
  display: grid;
  gap: 10px;
}

.person-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  gap: 8px;
}

.app-page {
  min-height: 100dvh;
}

.app-page .site-footer {
  display: none;
}

.game-shell,
.admin-shell {
  width: min(1540px, calc(100% - 28px));
  margin: 18px auto 28px;
}

.game-shell {
  min-height: calc(100dvh - 122px);
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 330px;
  gap: 14px;
}

.game-panel {
  padding: 18px;
}

.game-side,
.game-tools,
.admin-tools {
  align-self: start;
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.panel-head {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
}

.panel-head h1 {
  font-size: 1.8rem;
  max-width: none;
}

.gauge-board {
  display: grid;
  gap: 12px;
}

.gauge-item {
  display: grid;
  gap: 8px;
}

.gauge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-weight: 700;
}

.gauge-name {
  text-transform: capitalize;
}

.gauge-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.gauge-fill {
  height: 100%;
  width: calc(var(--value, 1) / 6 * 100%);
  border-radius: inherit;
  background: var(--gauge-color, #0f766e);
  transition: width 180ms ease, background 180ms ease;
}

.gauge-item[data-level="0"],
.gauge-item[data-level="1"] {
  --gauge-color: #dc2626;
}

.gauge-item[data-level="2"] {
  --gauge-color: #f97316;
}

.gauge-item[data-level="3"] {
  --gauge-color: #f59e0b;
}

.gauge-item[data-level="4"] {
  --gauge-color: #84cc16;
}

.gauge-item[data-level="5"],
.gauge-item[data-level="6"] {
  --gauge-color: #059669;
}

.gauge-item[data-level] .gauge-top span:last-child {
  color: var(--gauge-color);
}

.gauge-controls {
  display: grid;
  grid-template-columns: 44px 44px;
  gap: 8px;
  justify-content: end;
}

.side-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.game-main {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto;
  gap: 14px;
}

.game-main-head,
.admin-hero,
.column-head {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(17, 24, 39, 0.62);
}

.game-main-head {
  min-height: 112px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.game-main-head h2 {
  font-size: 2rem;
}

.live-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: #bbf7d0;
  background: rgba(52, 211, 153, 0.08);
  white-space: nowrap;
}

.history-stream {
  min-height: 420px;
  max-height: calc(100dvh - 350px);
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(4, 7, 13, 0.48);
}

.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  color: var(--text-soft);
}

.empty-state svg {
  width: 42px;
  height: 42px;
  color: var(--primary);
}

.message-bubble {
  width: min(760px, 92%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.message-bubble.joueur {
  justify-self: end;
  border-color: rgba(45, 212, 191, 0.24);
  background: rgba(45, 212, 191, 0.1);
}

.message-bubble.ia,
.message-bubble.maitre-du-jeu,
.message-bubble.evenement {
  justify-self: start;
}

.message-role {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.message-content {
  color: #e5edf7;
}

.message-content p {
  color: inherit;
}

.composer {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(17, 24, 39, 0.74);
}

.composer-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.composer textarea {
  min-height: 98px;
}

.form-hint {
  min-height: 22px;
  font-size: 0.9rem;
}

.tool-block {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.tool-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-head h2 {
  font-size: 1rem;
}

.tool-head svg {
  color: var(--primary);
}

.timer-display,
.pause-display {
  min-height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 193, 74, 0.24);
  border-radius: var(--radius-md);
  background: rgba(248, 193, 74, 0.08);
  color: #fde68a;
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

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

.span-2 {
  grid-column: span 2;
}

.skeleton-line {
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

.skeleton-line.short {
  width: 72%;
}

.admin-shell {
  display: grid;
  gap: 14px;
}

.admin-hero {
  min-height: 148px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
}

.admin-hero h1 {
  max-width: none;
  font-size: 3.6rem;
}

.admin-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 10px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.moderation-column {
  display: grid;
  gap: 14px;
}

.column-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.column-head h2 {
  font-size: 1.35rem;
}

.count-pill {
  min-width: 42px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.13);
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
}

.moderation-list {
  display: grid;
  gap: 14px;
}

.moderation-item {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.message-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.moderation-copy {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.moderation-copy h3 {
  color: var(--text);
}

.ai-copy {
  border-color: rgba(96, 165, 250, 0.22);
}

.rich-text {
  color: #e5edf7;
}

.rich-text p,
.rich-text div {
  color: inherit;
}

.muted-text {
  color: var(--text-muted);
}

.admin-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(17, 24, 39, 0.62);
}

.admin-tools {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.gauge-board.compact .gauge-item {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.gauge-board.compact .gauge-track {
  grid-column: 1 / -1;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 80ms;
}

.delay-2 {
  transition-delay: 150ms;
}

.delay-3 {
  transition-delay: 220ms;
}

@keyframes scan {
  0% {
    transform: translateY(-70px) rotate(-8deg);
  }
  100% {
    transform: translateY(620px) rotate(-8deg);
  }
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@media (max-width: 1180px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links,
  .nav-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
  }

  .site-header.is-open .nav-links,
  .site-header.is-open .nav-actions {
    display: flex;
  }

  .site-header.is-open .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 10px;
  }

  .site-header.is-open .nav-actions {
    justify-content: flex-start;
  }

  .hero-grid,
  .two-column-hero,
  .split-layout,
  .contact-grid,
  .editorial-grid,
  .builder-form,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .ops-preview {
    min-height: 500px;
  }

  .mini-scenarios,
  .values-grid,
  .capability-grid,
  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .builder-side,
  .game-side,
  .game-tools,
  .admin-tools {
    position: static;
  }

  .game-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .game-tools {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .section-inner {
    width: min(100% - 28px, var(--container));
  }

  .hero-section {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 64px;
  }

  .ops-preview {
    display: none;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .metrics-grid,
  .mini-scenarios,
  .values-grid,
  .capability-grid,
  .scenario-grid,
  .legal-layout,
  .game-shell,
  .game-tools {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 108px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .scenario-toolbar,
  .game-main-head,
  .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-chips,
  .admin-actions {
    justify-content: flex-start;
  }

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

  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 220px;
  }

  .person-row,
  .composer-box {
    grid-template-columns: 1fr;
  }

  .composer-box .button {
    width: 100%;
  }

  .history-stream {
    max-height: none;
  }

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

@media (max-width: 520px) {
  .nav-shell {
    width: min(100% - 20px, 1240px);
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions,
  .button-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .nav-actions .button {
    width: 100%;
  }

  .ops-feed > div {
    grid-template-columns: 1fr;
  }

  .timeline-step {
    grid-template-columns: 1fr;
  }

  .game-shell,
  .admin-shell {
    width: min(100% - 16px, 1540px);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Synial V2 - light premium visual direction */
:root {
  --bg: #f5f7fb;
  --bg-2: #ecf2f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef3f8;
  --text: #101828;
  --text-soft: #46566f;
  --text-muted: #667085;
  --ink: #101828;
  --ink-soft: #475467;
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(15, 23, 42, 0.18);
  --primary: #0f766e;
  --primary-ink: #ffffff;
  --accent: #f59e0b;
  --danger: #e11d48;
  --blue: #2563eb;
  --violet: #7c3aed;
  --success: #059669;
  --shadow: 0 28px 80px rgba(15, 23, 42, 0.13);
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  background: #f5f7fb;
}

body {
  background:
    linear-gradient(180deg, #fbfdff 0%, #f3f7fb 46%, #edf3f8 100%);
  color: var(--text);
}

body::before {
  background:
    linear-gradient(115deg, rgba(37, 99, 235, 0.10), transparent 34%),
    linear-gradient(245deg, rgba(15, 118, 110, 0.10), transparent 35%),
    linear-gradient(180deg, #ffffff, #eef3f8);
}

body::after {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 68%);
}

p {
  color: var(--text-soft);
}

h1,
h2,
h3,
.brand-text {
  color: var(--text);
}

.site-header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
}

.brand-mark {
  border-color: rgba(15, 118, 110, 0.24);
  background: linear-gradient(145deg, #ecfdf5, #eff6ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.brand-mark span:nth-child(1) {
  background: #0f766e;
}

.brand-mark span:nth-child(2) {
  background: #f59e0b;
}

.brand-mark span:nth-child(3) {
  background: #2563eb;
}

.nav-links {
  color: #526173;
}

.nav-links a:hover {
  color: #101828;
  background: #edf3f8;
}

.button-primary {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.18);
}

.button-primary:hover {
  background: #0f766e;
}

.button-soft {
  border-color: rgba(15, 118, 110, 0.18);
  background: #e6faf6;
  color: #075e58;
}

.button-soft:hover {
  background: #d1f6ef;
  border-color: rgba(15, 118, 110, 0.28);
}

.button-ghost {
  border-color: rgba(15, 23, 42, 0.10);
  background: #ffffff;
  color: #344054;
}

.button-ghost:hover {
  color: #101828;
  border-color: rgba(15, 23, 42, 0.18);
  background: #f8fafc;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.button-danger {
  border-color: rgba(225, 29, 72, 0.16);
  background: #fff1f4;
  color: #be123c;
}

.icon-button {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #101828;
}

.eyebrow {
  color: #0f766e;
}

.hero-section {
  min-height: calc(100dvh - 98px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 252, 0.78)),
    linear-gradient(90deg, rgba(15, 118, 110, 0.09), rgba(37, 99, 235, 0.09));
}

.hero-backdrop,
.scanline,
.pulse {
  display: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 0.95fr);
  gap: 60px;
  padding: 70px 0 54px;
}

.hero-copy {
  gap: 24px;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: 4.65rem;
  line-height: 1.02;
}

.hero-lead {
  max-width: 700px;
  color: #344054;
  font-size: 1.22rem;
  line-height: 1.72;
}

.trust-row span,
.filter-chips span,
.signal-row span {
  border-color: rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.78);
  color: #475467;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.ops-preview.product-showcase {
  position: relative;
  min-height: auto;
  padding: 16px;
  overflow: visible;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 34px 110px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

.product-showcase img {
  width: 100%;
  aspect-ratio: 1500 / 1050;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.showcase-card {
  position: absolute;
  display: grid;
  gap: 2px;
  min-width: 214px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.showcase-card span {
  color: #667085;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.showcase-card strong {
  color: #101828;
  font-size: 0.98rem;
}

.showcase-card-top {
  top: 46px;
  right: -26px;
}

.showcase-card-bottom {
  left: -24px;
  bottom: 46px;
}

.metrics-band {
  border-block-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.metric {
  border-color: rgba(15, 23, 42, 0.08);
}

.metric strong {
  color: #101828;
}

.metric span {
  color: #526173;
}

.content-section {
  background: transparent;
}

.feature-item,
.mini-scenario,
.legal-block,
.editorial-block,
.timeline-step,
.contact-form,
.auth-card,
.builder-side,
.game-panel,
.moderation-item,
.tool-block,
.scenario-card,
.game-main-head,
.admin-hero,
.column-head {
  border-color: rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.feature-item {
  grid-template-columns: 58px 1fr;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.94));
}

.feature-item svg,
.value-item svg,
.capability svg,
.tool-head svg {
  color: #0f766e;
}

.scenario-strip,
.muted-section {
  background:
    linear-gradient(180deg, #ffffff, #f4f7fb);
  color: #101828;
  border-block: 1px solid rgba(15, 23, 42, 0.08);
}

.mini-scenario {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
}

.mini-scenario:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 26px 64px rgba(15, 23, 42, 0.12);
}

.contact-section {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.07)),
    #f8fafc;
}

label > span,
.composer > label,
.moderation-copy h3 {
  color: #101828;
}

input,
textarea,
select {
  border-color: rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #101828;
}

input::placeholder,
textarea::placeholder {
  color: #98a2b3;
}

select option {
  color: #101828;
}

.site-footer {
  border-top-color: rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.footer-grid p,
.footer-links a {
  color: #526173;
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.10), transparent 42%),
    linear-gradient(225deg, rgba(37, 99, 235, 0.10), transparent 44%),
    #ffffff;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.page-hero p:not(.eyebrow) {
  color: #344054;
}

.principle-panel {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.principle-panel > div {
  background: rgba(255, 255, 255, 0.92);
}

.principle-panel strong {
  color: #101828;
}

.principle-panel p,
.legal-block p,
.editorial-block p,
.timeline-step p {
  color: #526173;
}

.value-item,
.capability {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.scenario-toolbar p {
  color: #526173;
}

.scenario-card {
  color: #101828;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  border-color: rgba(15, 23, 42, 0.09);
}

.scenario-card::before {
  height: 6px;
  opacity: 1;
  background: linear-gradient(90deg, #0f766e, #2563eb, #f59e0b);
}

.scenario-card:hover {
  border-color: rgba(37, 99, 235, 0.22);
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
}

.scenario-tag {
  background: #eff6ff;
  color: #1d4ed8;
}

.scenario-card p,
.scenario-meta {
  color: #526173;
}

.scenario-index,
.card-action {
  color: #0f766e;
}

.auth-section {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.09), transparent 44%),
    linear-gradient(225deg, rgba(245, 158, 11, 0.08), transparent 45%);
}

.auth-visual {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.14), transparent 45%),
    linear-gradient(240deg, rgba(37, 99, 235, 0.12), transparent 48%),
    #f8fafc;
}

.auth-ring {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow:
    inset 0 0 0 28px rgba(15, 118, 110, 0.06),
    inset 0 0 0 72px rgba(37, 99, 235, 0.045);
}

.auth-core {
  background: #0f766e;
  box-shadow: 0 0 0 18px rgba(15, 118, 110, 0.12);
}

.back-link,
.form-hint,
.muted-text {
  color: #667085;
}

.upload-zone {
  border-color: rgba(15, 118, 110, 0.28);
  background: #ecfdf5;
}

.app-page {
  background: #eef3f8;
}

.game-shell,
.admin-shell {
  color: #101828;
}

.game-main-head,
.admin-hero,
.column-head,
.game-panel,
.tool-block,
.moderation-item {
  background: rgba(255, 255, 255, 0.91);
}

.panel-head h1,
.game-main-head h2,
.admin-hero h1,
.column-head h2,
.tool-head h2 {
  color: #101828;
}

.gauge-top,
.message-meta span {
  color: #526173;
}

.gauge-track {
  background: #e4ebf2;
}

.history-stream {
  border-color: rgba(15, 23, 42, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.70), rgba(248, 250, 252, 0.88));
}

.empty-state {
  color: #667085;
}

.empty-state h3 {
  color: #101828;
}

.message-bubble {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.message-bubble.joueur {
  border-color: rgba(15, 118, 110, 0.20);
  background: #ecfdf5;
}

.message-content,
.rich-text {
  color: #263244;
}

.composer {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.timer-display,
.pause-display {
  border-color: rgba(245, 158, 11, 0.22);
  background: #fffbeb;
  color: #92400e;
}

.message-meta span,
.count-pill {
  background: #f1f5f9;
}

.moderation-copy {
  border-color: rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.ai-copy {
  border-color: rgba(37, 99, 235, 0.16);
  background: #eff6ff;
}

.admin-empty {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.10);
}

.flash {
  background: rgba(255, 255, 255, 0.96);
  color: #101828;
  border-color: rgba(15, 23, 42, 0.10);
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 13ch;
  }

  .product-showcase {
    max-width: 760px;
  }

  .site-header.is-open .nav-links,
  .site-header.is-open .nav-actions {
    background: rgba(255, 255, 255, 0.95);
  }
}

@media (max-width: 820px) {
  .hero-section {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: 3.25rem;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .ops-preview.product-showcase {
    display: block;
    padding: 10px;
  }

  .showcase-card {
    position: static;
    margin-top: 10px;
  }

  .product-showcase img {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 520px) {
  .hero-copy h1 {
    font-size: 2.62rem;
  }

  .hero-grid {
    padding-top: 48px;
  }

  .product-showcase img {
    aspect-ratio: 4 / 3;
  }
}

/* Source-content integration and interaction polish */
.brand-logo {
  width: 42px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.10));
}

.home-source-hero .hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 0.9fr);
}

.home-source-hero .hero-copy h1 {
  max-width: 13ch;
  font-size: 4.35rem;
}

.hero-media {
  position: relative;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 34px 100px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.50), transparent 58%);
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 7px;
  transform: scale(1.01);
}

.hero-media figcaption {
  position: absolute;
  left: 34px;
  bottom: 34px;
  z-index: 2;
  max-width: min(380px, calc(100% - 68px));
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.hero-media figcaption span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #99f6e4;
}

.hero-media figcaption strong {
  font-size: 1.2rem;
}

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

.hero-proof-strip span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #475467;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.hero-proof-strip strong {
  color: #101828;
}

.source-copy {
  display: grid;
  gap: 18px;
}

.source-copy p {
  color: #344054;
  font-size: 1.04rem;
}

.crisis-types-section {
  background: linear-gradient(180deg, #ffffff, #f5f9fc);
  border-block: 1px solid rgba(15, 23, 42, 0.08);
}

.crisis-type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.crisis-type,
.testimonial-card,
.why-item,
.play-parameter-grid > div,
.person-card {
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.crisis-type {
  min-height: 238px;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 12px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.crisis-type:hover,
.why-item:hover,
.play-parameter-grid > div:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
}

.crisis-type svg,
.why-item svg,
.play-parameter-grid svg {
  color: #0f766e;
}

.feedback-section {
  background: #f8fafc;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1fr;
  gap: 16px;
}

.testimonial-card {
  padding: 24px;
}

.testimonial-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: #0f766e;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.testimonial-card strong {
  display: block;
  color: #101828;
  font-size: 3.6rem;
  line-height: 1;
}

.testimonial-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #344054;
}

.testimonial-card li + li {
  margin-top: 8px;
}

.why-section {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.07)), #ffffff;
}

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

.why-item {
  min-height: 168px;
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 14px;
  color: #101828;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.contact-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-brand-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}

.contact-logo-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 4px;
  object-fit: cover;
}

.contact-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.25);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
}

.play-intro-section {
  background: #ffffff;
}

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

.play-parameter-grid > div {
  min-height: 144px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.play-parameter-grid span {
  color: #101828;
  font-weight: 800;
}

.source-scenario-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.source-scenario-card {
  min-height: 0;
  padding: 0;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.scenario-image {
  position: relative;
  aspect-ratio: 1.4 / 1;
  overflow: hidden;
  background: #e2e8f0;
}

.scenario-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.44));
}

.scenario-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.source-scenario-card:hover .scenario-image > img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

.scenario-card-content {
  min-height: 264px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 20px;
}

.source-scenario-card .card-action {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 12px;
}

.disabled-card {
  opacity: 0.82;
  cursor: not-allowed;
}

.disabled-card:hover {
  transform: none;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.people-grid {
  display: grid;
  gap: 18px;
}

.person-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1fr);
  overflow: hidden;
}

.person-image {
  min-height: 100%;
  background: #e2e8f0;
}

.person-image img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.person-copy {
  padding: clamp(26px, 4vw, 46px);
  display: grid;
  align-content: center;
  gap: 16px;
}

.person-copy h2 {
  font-size: 2.45rem;
}

.callout-block {
  background: #111827;
}

.callout-block h2,
.callout-block p {
  color: #ffffff;
}

.source-legal-layout .wide {
  grid-column: 1 / -1;
}

.footer-credits {
  margin-top: 24px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #667085;
  font-size: 0.92rem;
}

.nav-links.is-open,
.nav-actions.is-open {
  display: flex;
}

@media (max-width: 1180px) {
  .home-source-hero .hero-grid,
  .person-card {
    grid-template-columns: 1fr;
  }

  .crisis-type-grid,
  .why-grid,
  .source-scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .home-source-hero .hero-copy h1 {
    font-size: 3.15rem;
  }

  .hero-media img {
    min-height: 320px;
  }

  .crisis-type-grid,
  .why-grid,
  .source-scenario-grid,
  .play-parameter-grid {
    grid-template-columns: 1fr;
  }

  .person-image img {
    min-height: 260px;
  }

  .footer-credits {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .home-source-hero .hero-copy h1 {
    font-size: 2.42rem;
  }

  .hero-media {
    padding: 8px;
  }

  .hero-media::before {
    inset: 8px;
  }

  .hero-media figcaption {
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: none;
  }
}

/* Synial identity and game interface refinement */
.sketch-character,
.empty-sketch {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.08));
}

.sketch-panel,
.sketch-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 42%),
    linear-gradient(225deg, rgba(245, 158, 11, 0.10), transparent 48%),
    #ffffff;
}

.sketch-panel::before,
.sketch-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  pointer-events: none;
}

.hero-sketch-note,
.play-sketch-note {
  width: fit-content;
  max-width: 360px;
  min-height: 92px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 10px 16px 10px 8px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  color: #344054;
  font-weight: 800;
}

.hero-sketch-note .sketch-character,
.play-sketch-note .sketch-character {
  width: 112px;
}

.play-sketch-note {
  margin-top: 22px;
  background: #fffdf5;
}

.synial-auth-card .auth-visual {
  padding: 26px;
  align-content: center;
  gap: 22px;
}

.auth-character {
  width: min(84%, 280px);
  justify-self: center;
}

.auth-mini-card {
  width: min(100%, 270px);
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.auth-mini-card span {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-mini-card strong {
  color: #101828;
  font-size: 1.25rem;
}

.lab-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 28px;
}

.lab-sketch {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 10px;
}

.lab-sketch .sketch-character {
  width: 220px;
}

.lab-builder-form {
  align-items: stretch;
}

.field-card,
.lab-builder-side,
.admin-inject-panel,
.moderation-section,
.admin-voice-roster {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
}

.field-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.field-card span,
.lab-upload-zone span,
.pause-admin-grid span {
  color: #101828;
  font-weight: 800;
}

.field-card textarea {
  min-height: 138px;
  background: #f8fafc;
}

.lab-builder-side {
  padding: 18px;
}

.lab-upload-zone {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.lab-upload-zone:hover,
.lab-upload-zone.is-dragging {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.48);
  background: #f0fdfa;
  box-shadow: 0 18px 42px rgba(15, 118, 110, 0.10);
}

.lab-upload-zone input[type="file"] {
  width: 100%;
  min-height: 44px;
}

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

.game-page,
.admin-page,
.custom-page {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.10), transparent 34%),
    linear-gradient(225deg, rgba(37, 99, 235, 0.08), transparent 42%),
    #eef3f8;
}

.command-shell {
  grid-template-columns: 300px minmax(0, 1fr) 360px;
  gap: 16px;
}

.mission-panel,
.command-tools,
.command-main > *,
.control-hero,
.control-tools .tool-block,
.admin-inject-panel,
.moderation-section,
.admin-voice-roster {
  border-radius: 8px;
}

.mission-panel,
.command-tools,
.control-tools {
  gap: 16px;
}

.mission-panel .panel-head p:not(.eyebrow) {
  color: #667085;
  font-size: 0.95rem;
}

.side-sketch {
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 8px;
}

.side-sketch .sketch-character {
  width: 150px;
}

.command-head {
  border-color: rgba(15, 23, 42, 0.10);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 42%),
    #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.command-history {
  min-height: 500px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.96));
}

.empty-sketch {
  width: 150px;
  margin-inline: auto;
}

.message-bubble {
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.message-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.10);
}

.command-composer {
  position: sticky;
  bottom: 12px;
}

.command-composer textarea,
.admin-message-container textarea {
  background: #f8fafc;
}

.voice-tool input,
.voice-tool select,
.pause-admin-grid input,
#playersTable input,
#playersTable select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #101828;
  padding: 0 12px;
  font: inherit;
}

.pause-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
}

.pause-overlay[hidden] {
  display: none;
}

.pause-overlay-card {
  width: min(460px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: #ffffff;
  text-align: center;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.26);
}

.pause-overlay-card h2 {
  font-size: 2rem;
}

.pause-overlay-timer {
  min-width: 180px;
  padding: 14px 18px;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pause-overlay-card .button {
  min-width: 190px;
  justify-content: center;
}

.control-room-shell {
  gap: 16px;
}

.control-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px auto;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.10), transparent 44%),
    linear-gradient(225deg, rgba(245, 158, 11, 0.10), transparent 42%),
    #ffffff;
}

.control-hero h1 {
  font-size: 3.15rem;
}

.admin-hero-sketch {
  align-self: end;
  margin: 0;
}

.admin-hero-sketch .sketch-character {
  width: 190px;
}

.control-grid {
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
}

.admin-inject-panel,
.moderation-section {
  padding: 18px;
}

.moderation-section {
  display: grid;
  gap: 14px;
}

.moderation-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-note-form {
  display: grid;
  gap: 10px;
}

.pause-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.pause-admin-grid label {
  display: grid;
  gap: 8px;
}

.pause-budget {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475467;
  font-weight: 700;
}

.pause-budget b {
  color: #101828;
  font-family: var(--font-mono);
}

.voice-roster-head {
  justify-content: space-between;
  align-items: center;
}

.voice-roster-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-voice-roster {
  padding: 18px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

#playersTable {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0 8px;
}

#playersTable th {
  padding: 0 10px 6px;
  color: #667085;
  font-size: 0.82rem;
  text-align: left;
  text-transform: uppercase;
}

#playersTable td {
  padding: 10px;
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

#playersTable td:first-child {
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px 0 0 8px;
}

#playersTable td:last-child {
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0 8px 8px 0;
}

.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.row-status {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #475467;
  font-size: 0.88rem;
  font-weight: 700;
}

@media (max-width: 1260px) {
  .command-shell,
  .control-grid,
  .control-hero {
    grid-template-columns: 1fr;
  }

  .game-side,
  .game-tools,
  .admin-tools,
  .builder-side {
    position: static;
  }

  .admin-hero-sketch {
    display: none;
  }
}

@media (max-width: 820px) {
  .lab-hero-grid,
  .moderation-actions,
  .pause-admin-grid {
    grid-template-columns: 1fr;
  }

  .lab-sketch {
    display: none;
  }

  .hero-sketch-note,
  .play-sketch-note {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .hero-sketch-note .sketch-character,
  .play-sketch-note .sketch-character {
    width: 86px;
  }

  .command-composer {
    position: static;
  }

  .composer-box {
    grid-template-columns: 1fr;
  }

  .control-hero h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 520px) {
  .hero-sketch-note,
  .play-sketch-note,
  .side-sketch {
    display: none;
  }

  .synial-auth-card .auth-visual {
    min-height: 280px;
  }

  .auth-character {
    width: 210px;
  }

  .admin-actions {
    justify-content: stretch;
  }

  .admin-actions .button,
  .admin-actions form,
  .admin-actions form .button {
    width: 100%;
  }
}

/* Synial character system v2 */
.sketch-character,
.empty-sketch {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 14px 14px rgba(15, 23, 42, 0.08));
}

.character-scene,
.character-callout {
  --character-wash: rgba(15, 118, 110, 0.10);
  --character-accent: rgba(245, 158, 11, 0.24);
  position: relative;
  isolation: isolate;
  margin: 0;
}

.character-scene::before,
.character-callout::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: var(--character-wash);
  clip-path: polygon(8% 20%, 84% 5%, 98% 58%, 76% 92%, 13% 83%, 0 44%);
}

.character-scene::after,
.character-callout::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  height: 4px;
  border-radius: 999px;
  background: var(--character-accent);
  transform: rotate(-2deg);
}

.character-callout {
  width: fit-content;
  max-width: 390px;
  min-height: 104px;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: #344054;
  font-weight: 800;
}

.character-callout::before {
  inset: 14px auto 10px 18px;
  width: 132px;
}

.character-callout::after {
  left: 24px;
  bottom: 14px;
  width: 112px;
}

.character-callout .sketch-character {
  width: 124px;
  transform: translateY(4px);
}

.hero-character-callout {
  margin-left: -6px;
}

.play-character-callout {
  grid-template-columns: 132px;
  min-height: 116px;
  margin-top: 24px;
}

.play-character-callout::before {
  width: 140px;
}

.play-character-callout::after {
  width: 118px;
}

.play-character-callout .sketch-character {
  width: 132px;
}

.lab-character-scene {
  min-height: 250px;
  display: grid;
  place-items: center;
}

.lab-character-scene::before {
  width: 230px;
  height: 198px;
  left: 12px;
  top: 26px;
}

.lab-character-scene::after {
  left: 52px;
  right: 44px;
  bottom: 32px;
}

.lab-character-scene .sketch-character {
  width: 218px;
  transform: rotate(-1deg);
}

.side-character-scene {
  min-height: 172px;
  display: grid;
  place-items: center;
}

.side-character-scene::before {
  width: 156px;
  height: 130px;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
}

.side-character-scene::after {
  left: 72px;
  right: 72px;
  bottom: 18px;
}

.side-character-scene .sketch-character {
  width: 148px;
}

.admin-hero-character {
  align-self: end;
  min-height: 190px;
  display: grid;
  place-items: end center;
}

.admin-hero-character::before {
  width: 188px;
  height: 150px;
  right: 2px;
  bottom: 22px;
}

.admin-hero-character::after {
  width: 148px;
  right: 22px;
  bottom: 18px;
}

.admin-hero-character .sketch-character {
  width: 182px;
}

.auth-visual {
  overflow: hidden;
}

.synial-auth-card .auth-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 310px;
  height: 238px;
  background: rgba(15, 118, 110, 0.10);
  clip-path: polygon(8% 16%, 86% 3%, 100% 56%, 74% 94%, 15% 84%, 0 42%);
}

.synial-auth-card .auth-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 220px;
  height: 4px;
  bottom: 132px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.24);
  transform: rotate(-2deg);
}

.synial-auth-card .auth-character,
.synial-auth-card .auth-mini-card {
  position: relative;
  z-index: 1;
}

.auth-mini-card {
  border-radius: 8px;
}

.empty-state .empty-sketch,
.pause-overlay-card .empty-sketch {
  width: 150px;
  max-width: 46%;
  margin-inline: auto;
}

.empty-state .empty-sketch {
  margin-bottom: 6px;
}

.pause-overlay-card .empty-sketch {
  max-width: 180px;
}

.sketch-panel,
.sketch-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sketch-panel::before,
.sketch-card::before {
  display: none;
}

@media (max-width: 1260px) {
  .admin-hero-character {
    display: none;
  }
}

@media (max-width: 820px) {
  .character-callout {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 86px;
  }

  .character-callout .sketch-character {
    width: 92px;
  }

  .character-callout::before {
    width: 100px;
    inset: 8px auto 8px 8px;
  }

  .character-callout::after {
    left: 14px;
    width: 82px;
  }

  .lab-character-scene {
    display: none;
  }
}

@media (max-width: 520px) {
  .character-callout,
  .side-character-scene {
    display: none;
  }
}

/* Final UX pass: navigation, contact anchors, player/admin separation */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

.app-page .site-header,
.app-page .site-footer {
  display: none;
}

.app-page #main {
  min-height: 100dvh;
}

@media (min-width: 1181px) {
  .nav-toggle {
    display: none !important;
  }
}

@media (max-width: 1180px) {
  .site-header.is-open {
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  }

  .site-header.is-open .nav-shell {
    align-items: start;
  }

  .site-header.is-open .nav-links,
  .site-header.is-open .nav-actions {
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  }

  .site-header.is-open .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .site-header.is-open .nav-links a {
    justify-content: flex-start;
  }
}

.illustrated-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 28px;
}

.about-character-scene,
.method-character-scene,
.legal-character-scene {
  min-height: 246px;
  display: grid;
  place-items: center;
}

.about-character-scene::before,
.method-character-scene::before,
.legal-character-scene::before {
  width: 230px;
  height: 190px;
  left: 16px;
  top: 28px;
}

.about-character-scene::after,
.method-character-scene::after,
.legal-character-scene::after {
  left: 46px;
  right: 42px;
  bottom: 34px;
}

.about-character-scene .sketch-character,
.method-character-scene .sketch-character,
.legal-character-scene .sketch-character {
  width: 214px;
}

.method-character-scene {
  --character-wash: rgba(37, 99, 235, 0.10);
}

.legal-character-scene {
  --character-wash: rgba(245, 158, 11, 0.12);
}

.callout-block {
  position: relative;
  overflow: hidden;
}

.callout-character-scene {
  width: 132px;
  min-height: 112px;
  float: right;
  margin: -8px 0 12px 18px;
  --character-wash: rgba(255, 255, 255, 0.12);
  --character-accent: rgba(245, 158, 11, 0.42);
}

.callout-character-scene::before {
  width: 122px;
  height: 102px;
  left: 4px;
  top: 8px;
}

.callout-character-scene::after {
  left: 18px;
  right: 16px;
  bottom: 8px;
}

.callout-character-scene .sketch-character {
  width: 116px;
  filter: invert(1) drop-shadow(0 14px 14px rgba(0, 0, 0, 0.12));
  mix-blend-mode: normal;
}

.player-command-shell {
  width: min(1640px, calc(100% - 28px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 18px 0;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 16px;
}

.player-command-shell .mission-panel,
.player-command-shell .command-tools,
.player-command-shell .command-head,
.player-command-shell .command-history,
.player-command-shell .command-composer {
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
}

.mission-panel {
  position: relative;
}

.mission-note {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475467;
  font-weight: 800;
}

.mission-note svg {
  width: 17px;
  height: 17px;
  color: #0f766e;
}

.player-command-shell .gauge-board {
  gap: 14px;
}

.player-command-shell .gauge-item {
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.player-command-shell .gauge-track {
  height: 13px;
}

.player-command-shell .gauge-top {
  font-size: 0.96rem;
}

.player-command-shell .command-main {
  grid-template-rows: auto minmax(560px, 1fr) auto;
}

.player-command-shell .command-history {
  min-height: min(62dvh, 720px);
  max-height: calc(100dvh - 260px);
  padding: 20px;
}

.player-command-shell .message-bubble {
  width: min(860px, 94%);
  padding: 18px;
}

.player-command-shell .command-composer textarea {
  min-height: 116px;
}

.player-command-shell .timer-tool .timer-display {
  min-height: 112px;
  font-size: 2.65rem;
}

.tool-copy {
  margin-top: -4px;
  color: #667085;
  font-size: 0.92rem;
}

.player-command-shell .voice-tool {
  align-self: start;
}

.player-command-shell .voice-tool .tool-head h2 {
  font-size: 1.06rem;
}

.admin-page .control-room-shell {
  min-height: 100dvh;
  margin-top: 0;
  padding-top: 18px;
}

@media (max-width: 1260px) {
  .illustrated-hero-grid,
  .player-command-shell {
    grid-template-columns: 1fr;
  }

  .about-character-scene,
  .method-character-scene,
  .legal-character-scene {
    justify-self: start;
    min-height: 180px;
  }

  .about-character-scene .sketch-character,
  .method-character-scene .sketch-character,
  .legal-character-scene .sketch-character {
    width: 170px;
  }

  .player-command-shell .command-main {
    grid-template-rows: auto minmax(460px, 1fr) auto;
  }

  .player-command-shell .command-history {
    max-height: none;
  }
}

@media (max-width: 820px) {
  .site-header.is-open .nav-links {
    grid-template-columns: 1fr;
  }

  .about-character-scene,
  .method-character-scene,
  .legal-character-scene,
  .callout-character-scene {
    display: none;
  }

  .player-command-shell {
    width: min(100% - 16px, 1640px);
    padding: 10px 0;
  }

  .player-command-shell .command-history {
    min-height: 420px;
    padding: 14px;
  }

  .player-command-shell .timer-tool .timer-display {
    min-height: 86px;
    font-size: 2.1rem;
  }
}

/* Contextual SYNIAL character variants */
.person-card-illustrated .person-copy {
  position: relative;
}

.person-context-character {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 126px;
  min-height: 118px;
  pointer-events: none;
}

.person-context-character::before {
  width: 124px;
  height: 102px;
  left: 0;
  top: 10px;
}

.person-context-character::after {
  left: 14px;
  right: 12px;
  bottom: 7px;
}

.person-context-character .sketch-character {
  width: 118px;
  transform: translateY(1px) rotate(-1deg);
}

.person-card-illustrated .person-copy .eyebrow,
.person-card-illustrated .person-copy h2 {
  max-width: calc(100% - 144px);
}

.paul-context-character {
  --character-wash: rgba(37, 99, 235, 0.10);
  --character-accent: rgba(15, 118, 110, 0.20);
}

.pierre-context-character {
  --character-wash: rgba(245, 158, 11, 0.12);
  --character-accent: rgba(251, 113, 133, 0.20);
}

.person-context-character + p {
  padding-right: 128px;
}

.scenario-image::after {
  z-index: 1;
}

.scenario-character-badge {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  width: 86px;
  height: 92px;
  display: grid;
  place-items: center;
  isolation: isolate;
  pointer-events: none;
  transition: transform 180ms ease;
}

.scenario-character-badge::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 82px;
  height: 72px;
  left: 2px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.90);
  clip-path: polygon(9% 20%, 86% 4%, 98% 58%, 76% 92%, 13% 82%, 0 44%);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.scenario-character-badge::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 12px;
  bottom: 12px;
  height: 3px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.36);
  transform: rotate(-2deg);
}

.scenario-character-badge img {
  position: relative;
  width: 76px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 8px 8px rgba(15, 23, 42, 0.12));
}

.source-scenario-card:hover .scenario-character-badge {
  transform: translateY(-4px) rotate(-1deg);
}

.voice-character-scene {
  justify-self: end;
  width: 94px;
  min-height: 92px;
  margin-top: -8px;
  margin-bottom: -4px;
  --character-wash: rgba(15, 118, 110, 0.09);
}

.voice-character-scene::before {
  width: 92px;
  height: 78px;
  right: 0;
  top: 10px;
}

.voice-character-scene::after {
  right: 12px;
  bottom: 6px;
  width: 66px;
}

.voice-character-scene .sketch-character {
  width: 84px;
}

@media (max-width: 1180px) {
  .person-context-character {
    top: 22px;
    right: 22px;
  }
}

@media (max-width: 820px) {
  .person-context-character {
    display: none;
  }

  .person-context-character + p {
    padding-right: 0;
  }

  .person-card-illustrated .person-copy .eyebrow,
  .person-card-illustrated .person-copy h2 {
    max-width: none;
  }

  .scenario-character-badge {
    width: 72px;
    height: 78px;
    right: 8px;
    bottom: 8px;
  }

  .scenario-character-badge::before {
    width: 68px;
    height: 60px;
  }

  .scenario-character-badge img {
    width: 64px;
  }
}

@media (max-width: 520px) {
  .scenario-character-badge,
  .voice-character-scene {
    display: none;
  }
}

/* Player cockpit and subtle character polish */
html:has(body.game-page) {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

body.game-page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

body.game-page .skip-link {
  display: none;
}

body.game-page #main {
  height: 100dvh;
  overflow: hidden;
}

.player-command-shell {
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  padding: 12px 0;
  grid-template-columns: minmax(230px, 260px) minmax(0, 1fr) minmax(260px, 300px);
  gap: 12px;
  overflow: hidden;
}

.player-command-shell .mission-panel,
.player-command-shell .command-main,
.player-command-shell .command-tools {
  position: static;
  align-self: stretch;
  min-height: 0;
  height: 100%;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}

.player-command-shell .mission-panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
}

.player-command-shell .panel-head {
  gap: 2px;
  padding-bottom: 4px;
}

.player-command-shell .panel-head h1 {
  font-size: 1.48rem;
}

.player-command-shell .panel-head p:not(.eyebrow) {
  font-size: 0.86rem;
  line-height: 1.35;
}

.player-command-shell .side-character-scene {
  min-height: 86px;
}

.player-command-shell .side-character-scene::before {
  width: 94px;
  height: 76px;
  top: 7px;
}

.player-command-shell .side-character-scene::after {
  left: 86px;
  right: 86px;
  bottom: 7px;
}

.player-command-shell .side-character-scene .sketch-character {
  width: 78px;
  opacity: 0.84;
}

.player-command-shell .gauge-board {
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.player-command-shell .gauge-item {
  padding: 8px 10px;
  gap: 5px;
}

.player-command-shell .gauge-top {
  font-size: 0.85rem;
  line-height: 1.2;
}

.player-command-shell .gauge-track {
  height: 9px;
}

.player-command-shell .mission-note {
  min-height: 36px;
  margin-top: 0;
  font-size: 0.86rem;
}

.player-command-shell .command-main {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.player-command-shell .command-head {
  min-height: 0;
  padding: 12px 14px;
}

.player-command-shell .command-head h2 {
  font-size: 1.46rem;
}

.player-command-shell .command-head .eyebrow {
  margin-bottom: 8px;
}

.player-command-shell .live-pill {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.player-command-shell .command-history {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 14px;
  gap: 10px;
}

.player-command-shell .empty-state {
  min-height: 100%;
  gap: 8px;
}

.player-command-shell .empty-state .empty-sketch {
  width: 108px;
}

.player-command-shell .message-bubble {
  width: min(780px, 94%);
  padding: 14px;
}

.player-command-shell .command-composer {
  position: static;
  padding: 12px;
  gap: 8px;
}

.player-command-shell .command-composer > label {
  font-size: 0.88rem;
}

.player-command-shell .composer textarea {
  min-height: 78px;
  max-height: 112px;
  line-height: 1.4;
}

.player-command-shell .composer-box {
  gap: 10px;
}

.player-command-shell .composer-box .button {
  min-height: 78px;
}

.player-command-shell .form-hint {
  min-height: 16px;
  font-size: 0.82rem;
  line-height: 1.25;
}

.player-command-shell .command-tools {
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.player-command-shell .command-tools .tool-block {
  padding: 12px;
  gap: 10px;
}

.player-command-shell .tool-head h2 {
  font-size: 0.98rem;
}

.player-command-shell .timer-tool .timer-display {
  min-height: 74px;
  font-size: 2.1rem;
}

.player-command-shell .tool-copy {
  font-size: 0.82rem;
  line-height: 1.35;
}

.player-command-shell .voice-character-scene {
  display: none;
}

.player-command-shell .voice-tool .compact-form {
  gap: 10px;
}

.player-command-shell .voice-tool input,
.player-command-shell .voice-tool select {
  min-height: 40px;
  padding: 0 10px;
}

.player-command-shell .voice-tool .button {
  min-height: 42px;
}

.scenario-character-badge {
  right: 10px;
  bottom: 8px;
  width: 46px;
  height: 52px;
  opacity: 0.18;
  transition: opacity 180ms ease, transform 180ms ease;
}

.scenario-character-badge::before,
.scenario-character-badge::after {
  display: none;
}

.scenario-character-badge img {
  width: 42px;
  filter: drop-shadow(0 6px 8px rgba(15, 23, 42, 0.10));
}

.source-scenario-card:hover .scenario-character-badge,
.source-scenario-card:focus-visible .scenario-character-badge {
  opacity: 0.42;
  transform: translateY(-2px);
}

@media (max-height: 780px) and (min-width: 1081px) {
  .player-command-shell {
    padding: 8px 0;
  }

  .player-command-shell .mission-panel,
  .player-command-shell .command-main,
  .player-command-shell .command-tools {
    max-height: calc(100dvh - 16px);
  }

  .player-command-shell .side-character-scene {
    display: none;
  }

  .player-command-shell .panel-head p:not(.eyebrow) {
    display: none;
  }

  .player-command-shell .timer-tool .timer-display {
    min-height: 64px;
    font-size: 1.9rem;
  }

  .player-command-shell .composer textarea {
    min-height: 70px;
  }

  .player-command-shell .composer-box .button {
    min-height: 70px;
  }
}

@media (max-width: 1080px) {
  body.game-page {
    height: auto;
    overflow: auto;
  }

  body.game-page #main {
    height: auto;
    overflow: visible;
  }

  .player-command-shell {
    height: auto;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .player-command-shell .mission-panel,
  .player-command-shell .command-main,
  .player-command-shell .command-tools {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .player-command-shell .command-history {
    min-height: 420px;
  }
}

/* Compatibility pass: player gauge split and lighter static-page balance */
.admin-entry-link {
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.admin-entry-link:hover,
.admin-entry-link:focus-visible {
  color: #0f766e;
  background: #ffffff;
  border-color: rgba(15, 118, 110, 0.22);
}

.player-command-shell .player-gauge-board {
  align-content: start;
}

.player-command-shell .side-gauge-tool {
  gap: 10px;
}

.player-command-shell .inline-side-gauge-tool {
  display: grid;
  gap: 9px;
  align-self: start;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.player-command-shell .inline-side-gauge-tool .tool-head {
  padding-bottom: 6px;
}

.player-command-shell .inline-side-gauge-tool .tool-head h2 {
  font-size: 0.95rem;
}

.player-command-shell .crisis-character-tool {
  min-height: 148px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.player-command-shell .side-gauge-board {
  gap: 8px;
}

.player-command-shell .side-gauge-board .gauge-item {
  padding: 8px 10px;
  gap: 5px;
}

.player-command-shell .side-gauge-board .gauge-top {
  font-size: 0.85rem;
  line-height: 1.2;
}

.player-command-shell .pause-player-actions {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.player-command-shell .pause-player-actions .button {
  min-height: 40px;
  justify-content: center;
  border-color: rgba(245, 158, 11, 0.32);
  background: #fffbeb;
  color: #92400e;
}

.player-command-shell .pause-player-actions .button:hover {
  border-color: rgba(245, 158, 11, 0.50);
  background: #fef3c7;
}

.pause-player-copy {
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.25;
}

.pause-player-copy strong {
  color: #92400e;
  font-family: var(--font-mono);
}

.player-command-shell .side-gauge-board .gauge-track {
  height: 9px;
}

.home-source-hero .hero-proof-strip {
  width: min(100%, 640px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-source-hero .hero-proof-strip span {
  min-height: 58px;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 12px;
  white-space: normal;
}

.home-source-hero .hero-proof-strip span::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0f766e;
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.10);
}

.story-section {
  padding-block: clamp(58px, 7vw, 94px);
  background: #ffffff;
  border-block: 1px solid rgba(15, 23, 42, 0.08);
}

.story-section .split-layout {
  align-items: center;
}

.story-section .source-copy {
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.story-section .source-copy p {
  font-size: 1rem;
  line-height: 1.62;
}

@media (max-width: 820px) {
  .home-source-hero .hero-proof-strip {
    grid-template-columns: 1fr;
  }
}

/* Final refinement: Home balance and crisis-room tone */
.home-source-hero .hero-proof-strip {
  width: min(100%, 680px);
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: none;
  gap: 10px;
}

.home-source-hero .hero-proof-strip span {
  min-height: 44px;
  justify-content: flex-start;
  border-radius: 999px;
  padding: 0 14px;
  white-space: nowrap;
}

.home-source-hero .hero-proof-strip span::before {
  display: none;
}

.home-source-hero .hero-media {
  border-color: rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  transform: translateY(-28px);
}

.home-source-hero .hero-media::before {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.32)),
    linear-gradient(120deg, rgba(15, 118, 110, 0.08), transparent 42%);
}

.home-source-hero .hero-media img {
  opacity: 0.93;
  filter: saturate(0.92) contrast(0.98);
}

.story-section {
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
}

.story-section .source-copy {
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.story-section .source-copy p {
  font-size: 1rem;
  line-height: 1.68;
}

body.game-page {
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.10), transparent 36%),
    linear-gradient(245deg, rgba(185, 28, 28, 0.07), transparent 42%),
    #dfe7ef;
}

body.game-page::before {
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.08), transparent 34%),
    linear-gradient(245deg, rgba(15, 118, 110, 0.08), transparent 36%),
    #dfe7ef;
}

body.game-page::after {
  opacity: 0.58;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
}

.player-command-shell {
  grid-template-columns: minmax(232px, 262px) minmax(0, 1fr) minmax(268px, 306px);
}

.player-command-shell .mission-panel,
.player-command-shell .command-tools,
.player-command-shell .command-history,
.player-command-shell .command-composer {
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.14);
}

.player-command-shell .command-head {
  border-color: rgba(15, 23, 42, 0.28);
  background:
    linear-gradient(90deg, rgba(185, 28, 28, 0.18), transparent 38%),
    #172033;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.20);
}

.player-command-shell .command-head h2,
.player-command-shell .command-head p,
.player-command-shell .command-head .eyebrow {
  color: #f8fafc;
}

.player-command-shell .command-head .eyebrow span {
  background: #f59e0b;
}

.player-command-shell .live-pill {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.12);
  color: #fffbeb;
}

.player-command-shell .live-pill span {
  background: #f59e0b;
  box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.16);
}

.player-command-shell .side-character-scene,
.player-command-shell .voice-character-scene,
.player-command-shell .empty-state .empty-sketch {
  display: none;
}

.player-command-shell .mission-panel {
  grid-template-rows: auto auto minmax(84px, 1fr) auto;
}

.player-command-shell .panel-head {
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.player-command-shell .panel-head h1 {
  color: #111827;
}

.player-command-shell .panel-head p:not(.eyebrow) {
  color: #475569;
}

.player-command-shell .tool-block {
  border-color: rgba(15, 23, 42, 0.16);
  background: #ffffff;
}

.player-command-shell .tool-head {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.player-command-shell .tool-head svg {
  color: #0f766e;
}

.player-command-shell .timer-tool {
  border-color: rgba(245, 158, 11, 0.34);
  background:
    linear-gradient(120deg, rgba(245, 158, 11, 0.10), transparent 58%),
    #ffffff;
}

.player-command-shell .timer-tool .timer-display {
  border-color: rgba(245, 158, 11, 0.34);
  background: #fffbeb;
  color: #92400e;
}

.player-command-shell .gauge-item {
  border-color: rgba(15, 23, 42, 0.12);
  border-left: 4px solid var(--gauge-color, #0f766e);
  background: #ffffff;
}

.player-command-shell .gauge-top {
  color: #334155;
}

.player-command-shell .gauge-track {
  background: #e2e8f0;
}

.player-command-shell .command-history {
  background:
    linear-gradient(rgba(15, 23, 42, 0.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.026) 1px, transparent 1px),
    #f8fafc;
  background-size: 28px 28px;
}

.player-command-shell .empty-state {
  color: #475569;
}

.player-command-shell .empty-state h3 {
  color: #111827;
}

.player-command-shell .message-bubble {
  border-color: rgba(15, 23, 42, 0.14);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.player-command-shell .message-bubble.joueur {
  border-color: rgba(15, 118, 110, 0.34);
  background: #f0fdfa;
}

.player-command-shell .message-bubble.ia,
.player-command-shell .message-bubble.evenement {
  border-left: 4px solid rgba(245, 158, 11, 0.78);
}

.player-command-shell .message-content {
  color: #1f2937;
}

.player-command-shell .command-composer {
  border-top: 3px solid rgba(15, 118, 110, 0.54);
  background: #ffffff;
}

.player-command-shell .composer textarea,
.player-command-shell .voice-tool input,
.player-command-shell .voice-tool select {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.18);
}

.player-command-shell .button-primary {
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.18);
}

.player-command-shell .button-primary:hover {
  background: #115e59;
}

.player-command-shell .button-soft {
  border-color: rgba(15, 118, 110, 0.24);
  background: #ecfdf5;
  color: #0f766e;
}

.player-command-shell .admin-entry-link {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #eef2f7;
  color: #475569;
}

.player-command-shell .admin-entry-link:hover,
.player-command-shell .admin-entry-link:focus-visible {
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.28);
  background: #fffbeb;
}

@media (max-width: 820px) {
  .home-source-hero .hero-proof-strip {
    display: flex;
  }

  .home-source-hero .hero-proof-strip span {
    white-space: normal;
  }
}

/* Locked responsive command room: keep the player page inside the viewport. */
@media (max-width: 1080px) {
  body.game-page,
  body.game-page #main {
    height: 100dvh;
    overflow: hidden;
  }

  .player-command-shell {
    width: calc(100% - 12px);
    height: 100dvh;
    min-height: 0;
    padding: 6px 0;
    grid-template-columns: 1fr;
    grid-template-rows: clamp(112px, 16dvh, 132px) minmax(0, 1fr) clamp(198px, 27dvh, 226px);
    gap: 6px;
    overflow: hidden;
  }

  .player-command-shell .mission-panel,
  .player-command-shell .command-main,
  .player-command-shell .command-tools {
    height: 100%;
    max-height: none;
    overflow: hidden;
  }

  .player-command-shell .mission-panel {
    position: relative;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 7px;
    padding: 9px;
  }

  .player-command-shell .mission-panel .panel-head {
    min-height: 28px;
    padding: 0 42px 6px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  }

  .player-command-shell .mission-panel .panel-head h1 {
    font-size: 1.12rem;
  }

  .player-command-shell .mission-panel .panel-head p:not(.eyebrow),
  .player-command-shell .mission-panel .panel-head .eyebrow {
    display: none;
  }

  .player-command-shell .admin-entry-link {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    min-height: 32px;
    justify-content: center;
    padding: 0;
  }

  .player-command-shell .admin-entry-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .player-command-shell .player-gauge-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .player-command-shell .gauge-item {
    padding: 6px;
    gap: 4px;
    border-left-width: 3px;
  }

  .player-command-shell .gauge-top {
    gap: 5px;
    font-size: 0.72rem;
  }

  .player-command-shell .gauge-top span:last-child {
    display: none;
  }

  .player-command-shell .gauge-track {
    height: 7px;
  }

  .player-command-shell .command-main {
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 6px;
  }

  .player-command-shell .command-head {
    min-height: 54px;
    padding: 8px 10px;
  }

  .player-command-shell .command-head .eyebrow,
  .player-command-shell .live-pill {
    display: none;
  }

  .player-command-shell .command-head h2 {
    font-size: 1.08rem;
  }

  .player-command-shell .command-history {
    min-height: 0;
    padding: 8px;
    gap: 8px;
  }

  .player-command-shell .empty-state {
    min-height: 100%;
    gap: 6px;
  }

  .player-command-shell .empty-state h3 {
    font-size: 1rem;
  }

  .player-command-shell .empty-state p {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .player-command-shell .message-bubble {
    padding: 10px;
  }

  .player-command-shell .command-composer {
    padding: 8px;
    gap: 5px;
  }

  .player-command-shell .command-composer > label {
    display: none;
  }

  .player-command-shell .composer-box {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 6px;
    align-items: stretch;
  }

  .player-command-shell .composer textarea {
    min-height: 56px;
    max-height: 64px;
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .player-command-shell .composer-box .button {
    width: 48px;
    min-height: 56px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .player-command-shell .composer-box .button svg {
    width: 18px;
    height: 18px;
    margin: 0;
  }

  .player-command-shell .form-hint {
    min-height: 12px;
    overflow: hidden;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .player-command-shell .command-tools {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
    padding: 8px;
    align-content: stretch;
  }

  .player-command-shell .command-tools .tool-block {
    min-height: 0;
    padding: 8px;
    gap: 6px;
  }

  .player-command-shell .tool-head {
    gap: 6px;
    padding-bottom: 4px;
  }

  .player-command-shell .tool-head h2 {
    font-size: 0.8rem;
  }

  .player-command-shell .tool-head svg {
    width: 16px;
    height: 16px;
  }

  .player-command-shell .timer-tool .timer-display {
    min-height: 42px;
    font-size: 1.28rem;
  }

  .player-command-shell .tool-copy {
    display: none;
  }

  .player-command-shell .voice-tool {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .player-command-shell .voice-tool .compact-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
    gap: 6px;
    align-items: end;
  }

  .player-command-shell .voice-tool label {
    gap: 4px;
  }

  .player-command-shell .voice-tool label > span {
    font-size: 0.72rem;
  }

  .player-command-shell .voice-tool input,
  .player-command-shell .voice-tool select {
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.84rem;
  }

  .player-command-shell .voice-tool .button {
    width: 42px;
    min-height: 34px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .player-command-shell .voice-tool .button svg {
    width: 17px;
    height: 17px;
    margin: 0;
  }

  .player-command-shell .voice-tool .form-hint {
    grid-column: 1 / -1;
  }

  .player-command-shell .side-gauge-tool {
    grid-column: 2;
    grid-row: 1;
  }

  .player-command-shell .side-gauge-board {
    gap: 5px;
  }

  .player-command-shell .side-gauge-board .gauge-item {
    padding: 5px 6px;
    gap: 3px;
  }
}

@media (max-width: 560px) {
  .player-command-shell {
    width: 100%;
    padding: 4px;
    grid-template-rows: 116px minmax(0, 1fr) 220px;
    gap: 5px;
  }

  .player-command-shell .mission-panel,
  .player-command-shell .command-main,
  .player-command-shell .command-tools {
    border-radius: 7px;
  }

  .player-command-shell .player-gauge-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-command-shell .command-head h2 {
    font-size: 1rem;
  }

  .player-command-shell .command-tools {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Brand character chart: transparent WebP assets. */
.sketch-character[src*="bonhommes_charte"],
.empty-sketch[src*="bonhommes_charte"],
.scenario-character-badge img[src*="bonhommes_charte"] {
  mix-blend-mode: normal;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(15, 23, 42, 0.09));
}

.character-scene .sketch-character[src*="bonhommes_charte"],
.character-callout .sketch-character[src*="bonhommes_charte"] {
  transform-origin: center bottom;
}

.scenario-character-badge img[src*="bonhommes_charte"] {
  width: 42px;
  max-height: 52px;
  opacity: 0.92;
}

.callout-character-scene .sketch-character[src*="bonhommes_charte"] {
  filter: invert(1) drop-shadow(0 14px 14px rgba(0, 0, 0, 0.12));
}

/* Final character placement tweaks. */
.hero-character-callout {
  max-width: 520px;
  min-height: 148px;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 16px;
  margin-left: clamp(18px, 4vw, 76px);
}

.hero-character-callout::before {
  inset: 4px auto 4px 4px;
  width: 202px;
  height: 136px;
}

.hero-character-callout::after {
  left: 26px;
  bottom: 7px;
  width: 166px;
}

.hero-character-callout .sketch-character[src*="bonhommes_charte"] {
  width: 184px;
}

.inline-character {
  width: fit-content;
  margin-top: 14px;
}

.inline-character::before {
  width: 132px;
  height: 104px;
  left: 4px;
  top: 16px;
}

.inline-character::after {
  left: 18px;
  bottom: 4px;
  width: 102px;
}

.home-source-character .sketch-character {
  width: 136px;
}

.home-story-character .sketch-character {
  width: 132px;
}

.contact-character-scene {
  width: 118px;
  min-height: 112px;
  margin-top: 16px;
}

.contact-character-scene::before {
  width: 112px;
  height: 92px;
  left: 3px;
  top: 12px;
}

.contact-character-scene::after {
  left: 18px;
  bottom: 6px;
  width: 76px;
}

.contact-character-scene .sketch-character {
  width: 102px;
}

.play-character-callout {
  min-height: 154px;
  grid-template-columns: 174px;
  margin-top: 12px;
}

.play-character-callout::before {
  inset: 2px auto 4px 4px;
  width: 178px;
  height: 138px;
}

.play-character-callout::after {
  left: 24px;
  bottom: 5px;
  width: 128px;
}

.play-character-callout .sketch-character[src*="bonhommes_charte"] {
  width: 174px;
}

.method-character-scene {
  min-height: 292px;
}

.about-hero .illustrated-hero-grid,
.method-hero .illustrated-hero-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.method-character-scene::before {
  width: 286px;
  height: 224px;
}

.method-character-scene::after {
  width: 212px;
}

.method-character-scene .sketch-character[src*="bonhommes_charte"] {
  width: 292px;
}

.timeline-step {
  align-items: center;
}

.timeline-step > span,
.timeline-step > div {
  align-self: center;
}

.timeline-step > span {
  line-height: 1;
}

.about-character-scene {
  min-height: 292px;
}

.about-character-scene::before {
  width: 288px;
  height: 220px;
}

.about-character-scene::after {
  width: 214px;
}

.about-character-scene .sketch-character[src*="bonhommes_charte"] {
  width: 292px;
}

.paul-context-character {
  top: 16px;
  right: 30px;
  width: 82px;
  min-height: 94px;
}

.paul-context-character::before {
  width: 84px;
  height: 80px;
}

.paul-context-character::after {
  left: 11px;
  right: 11px;
}

.paul-context-character .sketch-character[src*="bonhommes_charte"] {
  width: 56px;
}

.admin-hero-character {
  align-self: start;
  transform: translateY(-10px);
}

.gauge-character-scene {
  position: static;
  align-self: start;
  justify-self: center;
  width: 118px;
  min-height: 108px;
  margin-top: 4px;
  transform: none;
  opacity: 0.76;
  pointer-events: none;
}

.gauge-character-scene::before {
  width: 112px;
  height: 90px;
  left: 3px;
  top: 10px;
}

.gauge-character-scene::after {
  left: 20px;
  right: 20px;
  bottom: 5px;
}

.gauge-character-scene .sketch-character {
  width: 102px;
}

.crisis-character-tool .gauge-character-scene {
  width: 154px;
  min-height: 136px;
  margin-top: 0;
}

.crisis-character-tool .gauge-character-scene::before {
  width: 148px;
  height: 114px;
}

.crisis-character-tool .gauge-character-scene .sketch-character {
  width: 134px;
}

@media (max-width: 1260px) {
  .hero-character-callout {
    margin-left: 0;
  }

  .method-character-scene .sketch-character[src*="bonhommes_charte"],
  .about-character-scene .sketch-character[src*="bonhommes_charte"] {
    width: 230px;
  }
}

@media (max-height: 780px), (max-width: 1080px) {
  .gauge-character-scene {
    display: none;
  }
}

@media (max-width: 820px) {
  .contact-character-scene,
  .inline-character {
    display: none;
  }

  .hero-character-callout,
  .play-character-callout {
    min-height: 112px;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .hero-character-callout .sketch-character[src*="bonhommes_charte"],
  .play-character-callout .sketch-character[src*="bonhommes_charte"] {
    width: 112px;
  }
}

/* Responsive polish only below desktop widths; full-width desktop layout is untouched. */
@media (max-width: 1180px) {
  .home-source-hero .hero-media {
    transform: none;
  }

  .nav-shell {
    align-items: center;
  }

  .nav-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 980px) {
  .content-section,
  .page-hero {
    padding-block: clamp(54px, 9vw, 82px);
  }

  .section-inner,
  .nav-shell {
    width: min(var(--container), calc(100% - 28px));
  }

  .contact-grid,
  .split-layout,
  .illustrated-hero-grid {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .testimonial-card,
  .scenario-card,
  .person-card {
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  html,
  body {
    overflow-x: hidden;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .section-inner,
  .nav-shell {
    width: min(var(--container), calc(100vw - 20px));
  }

  .home-source-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .home-source-hero .hero-copy {
    padding-inline: 10px;
  }

  .home-source-hero .hero-copy,
  .home-source-hero .hero-actions,
  .home-source-hero .hero-lead,
  .home-source-hero .hero-proof-strip {
    min-width: 0;
    max-width: 100%;
  }

  .home-source-hero .hero-proof-strip span {
    white-space: normal;
  }

  .home-source-hero .hero-copy h1 {
    color: #202939;
    font-size: clamp(2.2rem, 9.6vw, 3.15rem);
    max-width: 100%;
  }

  .page-hero h1,
  .compact-hero h1,
  .illustrated-hero-grid h1 {
    font-size: clamp(2.05rem, 8.4vw, 2.85rem);
    max-width: 12ch;
  }

  .page-hero p:not(.eyebrow),
  .compact-hero p:not(.eyebrow) {
    width: min(34ch, calc(100vw - 28px));
    max-width: min(34ch, calc(100vw - 28px));
  }

  body:not(.game-page) .section-heading h2 {
    max-width: min(13ch, calc(100vw - 28px));
  }

  .home-source-hero .hero-lead {
    color: #475467;
  }

  .home-source-hero .eyebrow {
    color: #0f766e;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.25rem);
    max-width: 100%;
  }

  h2 {
    font-size: clamp(2rem, 8vw, 2.55rem);
  }

  .nav-actions {
    display: none;
  }

  .contact-links a {
    flex: 1 1 148px;
    justify-content: center;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-grid {
    padding-block: 68px 52px;
  }
}

@media (max-width: 560px) {
  .section-inner,
  .nav-shell {
    width: min(var(--container), calc(100vw - 20px));
  }

  .home-source-hero .hero-copy h1 {
    font-size: clamp(1.95rem, 8vw, 2.3rem);
    max-width: 13ch;
  }

  .home-source-hero .hero-lead {
    max-width: 31ch;
  }

  .page-hero h1,
  .compact-hero h1,
  .illustrated-hero-grid h1 {
    font-size: clamp(1.95rem, 8vw, 2.35rem);
    max-width: 11ch;
  }

  .page-hero p:not(.eyebrow),
  .compact-hero p:not(.eyebrow) {
    width: min(29ch, calc(100vw - 28px));
    max-width: min(29ch, calc(100vw - 28px));
  }

  body:not(.game-page) .section-heading h2 {
    font-size: clamp(1.8rem, 7.4vw, 2.2rem);
    max-width: min(11ch, calc(100vw - 28px));
  }

  .home-source-hero .hero-actions,
  .home-source-hero .hero-proof-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button-large,
  .hero-actions .button {
    max-width: 100%;
    width: 100%;
    justify-content: center;
  }

  .contact-links {
    flex-direction: column;
  }
}

@media (max-width: 1080px) {
  .player-command-shell {
    grid-template-rows: clamp(166px, 22dvh, 204px) minmax(0, 1fr) clamp(176px, 24dvh, 212px);
  }

  .player-command-shell .mission-panel {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .player-command-shell .inline-side-gauge-tool {
    grid-column: auto;
    grid-row: auto;
    padding: 7px;
    gap: 5px;
  }

  .player-command-shell .inline-side-gauge-tool .tool-head {
    display: none;
  }

  .player-command-shell .inline-side-gauge-tool .side-gauge-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-command-shell .pause-player-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .player-command-shell .pause-player-actions .button {
    min-height: 32px;
    font-size: 0.78rem;
  }

  .player-command-shell .crisis-character-tool {
    display: none;
  }
}

@media (max-width: 560px) {
  .player-command-shell {
    grid-template-rows: 174px minmax(0, 1fr) 196px;
  }
}

/* Player interface finishing touches. */
.player-command-shell .indicator-intro {
  gap: 5px;
  padding-bottom: 0;
  border-bottom: 0;
}

.player-command-shell .main-indicator-section,
.player-command-shell .inline-side-gauge-tool {
  min-height: 0;
}

.player-command-shell .main-indicator-section {
  display: grid;
  gap: 8px;
}

.player-command-shell .panel-section-head {
  padding-bottom: 2px;
}

.player-command-shell .panel-section-title {
  margin: 0;
  max-width: none;
  color: #111827;
  font-size: 1.48rem;
  line-height: 1.08;
}

.player-command-shell .command-head {
  padding-inline: 22px 18px;
}

.player-command-shell .crisis-character-tool {
  min-height: 150px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.player-command-shell .crisis-character-tool .gauge-character-scene {
  opacity: 0.92;
}

.player-command-shell .crisis-character-tool .gauge-character-scene::before,
.player-command-shell .crisis-character-tool .gauge-character-scene::after {
  display: none;
}

.player-command-shell .admin-entry-link {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.player-command-shell .admin-entry-link:hover,
.player-command-shell .admin-entry-link:focus-visible {
  background: transparent;
  border-color: transparent;
  color: #92400e;
}

@media (max-width: 1080px) {
  .player-command-shell .indicator-intro p:not(.eyebrow) {
    display: none;
  }

  .player-command-shell .main-indicator-section {
    gap: 5px;
  }

  .player-command-shell .panel-section-title {
    font-size: 1.04rem;
  }

  .player-command-shell .command-head {
    padding-inline: 14px;
  }
}
