:root {
  --bg-deep: #04070a;
  --bg-panel: rgba(8, 17, 24, 0.78);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text-main: #eef3f8;
  --text-soft: rgba(238, 243, 248, 0.72);
  --text-dim: rgba(238, 243, 248, 0.52);
  --accent: #d6a54f;
  --accent-strong: #f1cb86;
  --shadow-hard: 0 28px 80px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.28);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --noise-texture: none;
  --panel-outline: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Aptos", "Segoe UI Variable Display", "Bahnschrift", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 15% 15%, rgba(93, 167, 255, 0.14), transparent 24%),
    radial-gradient(circle at 82% 0%, rgba(221, 86, 79, 0.18), transparent 28%),
    linear-gradient(180deg, #091119 0%, var(--bg-deep) 70%);
  overflow-x: hidden;
}

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

body::before {
  background-image: var(--noise-texture);
  opacity: 0.22;
  mix-blend-mode: screen;
}

body::after {
  background:
    linear-gradient(transparent 0, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 54px, 54px 100%;
  opacity: 0.08;
}

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

button {
  cursor: pointer;
}

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

.app-shell {
  min-height: 100vh;
  padding: clamp(12px, 1.8vw, 22px);
}

.experience-shell,
.screen {
  min-height: calc(100vh - 24px);
}

.screen {
  display: none;
}

.screen--active {
  display: block;
  animation: screenFade 260ms ease;
}

.screen-surface {
  position: relative;
  min-height: calc(100vh - 24px);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 35%),
    linear-gradient(135deg, rgba(93, 167, 255, 0.08), transparent 38%),
    var(--bg-panel);
  box-shadow: var(--shadow-hard);
  backdrop-filter: blur(16px);
}

.screen-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--panel-outline);
  background-size: cover;
  opacity: 0.28;
  pointer-events: none;
}

.menu-surface {
  background:
    linear-gradient(90deg, rgba(3, 7, 10, 0.86) 0%, rgba(3, 7, 10, 0.66) 44%, rgba(3, 7, 10, 0.18) 100%),
    linear-gradient(180deg, rgba(23, 39, 52, 0.18), rgba(0, 0, 0, 0.62)),
    url("./policecar.jpg") center center / cover no-repeat;
}

.menu-surface::after,
.briefing-surface::after,
.info-surface::after,
.report-surface::after,
.gameover-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(93, 167, 255, 0.18), transparent 22%),
    radial-gradient(circle at 92% 10%, rgba(221, 86, 79, 0.18), transparent 18%);
}

.menu-layout,
.briefing-layout,
.report-grid,
.info-grid {
  position: relative;
  z-index: 1;
}

.menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.82fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 24px);
  padding: clamp(28px, 4vw, 56px);
}

.hero-copy {
  max-width: 760px;
}

.title-art {
  width: min(100%, 720px);
  margin-bottom: 18px;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

.hero-tagline {
  max-width: 620px;
  margin: 0 0 24px;
  font-size: clamp(1.05rem, 1.25vw + 0.8rem, 1.42rem);
  line-height: 1.6;
  color: var(--text-soft);
}

.menu-actions,
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.showcase-stack {
  display: grid;
  gap: 18px;
}

.showcase-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(7, 14, 20, 0.76);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.showcase-card--wide {
  grid-template-columns: minmax(0, 1fr);
}

.showcase-art {
  min-height: 132px;
  border-radius: 16px;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.showcase-copy h2,
.info-card h2,
.report-card h2,
.casefile-card h3,
.intel-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.showcase-copy p,
.info-card p,
.briefing-summary,
.dispatch-text,
.objective-text,
.player-copy p,
.focus-copy p,
.gameover-copy p,
.credits-block p,
.report-results p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.62;
}

.panel-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(28px, 3vw, 42px) clamp(24px, 3vw, 42px) 0;
}

.panel-header h1,
.briefing-copy h1,
.gameover-copy h1,
.hud-title-group h1 {
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 2vw + 1rem, 3rem);
  line-height: 1.1;
}

.eyebrow {
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

.info-surface {
  background:
    linear-gradient(180deg, rgba(3, 8, 11, 0.88), rgba(5, 10, 14, 0.92)),
    url("./policebriefing.jpg") center center / cover no-repeat;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px clamp(24px, 3vw, 42px);
}

.info-card,
.credits-block,
.report-card,
.casefile-card,
.player-card,
.intel-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(5, 12, 18, 0.82);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.info-card,
.credits-block,
.casefile-card,
.player-card,
.intel-card,
.report-card {
  padding: 22px;
}

.credits-block {
  margin: 0 clamp(24px, 3vw, 42px) clamp(24px, 3vw, 42px);
}

.briefing-surface {
  background:
    linear-gradient(90deg, rgba(5, 11, 15, 0.88) 0%, rgba(5, 11, 15, 0.42) 60%, rgba(5, 11, 15, 0.22) 100%),
    url("./policebriefing.jpg") center center / cover no-repeat;
}

.briefing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 24px);
  padding: clamp(30px, 4vw, 56px);
}

.briefing-copy {
  max-width: 760px;
}

.briefing-summary {
  margin-top: 20px;
  max-width: 60ch;
  font-size: 1.05rem;
}

.briefing-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.briefing-list li {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 12, 18, 0.54);
  color: var(--text-soft);
}

.launch-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(5, 12, 18, 0.84);
  box-shadow: var(--shadow-soft);
}

.launch-art {
  min-height: 360px;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  margin-bottom: 18px;
}

.launch-button,
.cta-button,
.ghost-button,
.action-button {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.launch-button,
.cta-button {
  padding: 15px 22px;
  color: #10161c;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffde9f 0%, #d6a54f 100%);
  box-shadow: 0 14px 24px rgba(214, 165, 79, 0.22);
}

.launch-button:hover,
.cta-button:hover,
.ghost-button:hover,
.action-button:hover {
  transform: translateY(-2px);
}

.cta-button--secondary {
  color: var(--text-main);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 16, 23, 0.92);
  box-shadow: var(--shadow-soft);
}

.cta-button--danger,
.action-button--danger {
  color: #fff3f2;
  background:
    linear-gradient(180deg, rgba(255, 150, 150, 0.18), rgba(160, 32, 32, 0.72)),
    rgba(76, 11, 11, 0.94);
  box-shadow: 0 14px 24px rgba(204, 54, 54, 0.22);
}

.cta-button--full {
  width: 100%;
}

.ghost-button {
  padding: 12px 18px;
  color: var(--text-main);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(6, 14, 20, 0.86);
}

.case-surface {
  padding: 22px;
}

.case-surface[data-location="bar"] {
  --accent: #d69237;
  --accent-strong: #f0c76f;
}

.case-surface[data-location="park"] {
  --accent: #86af4d;
  --accent-strong: #bbdc7d;
}

.case-surface[data-location="bank"] {
  --accent: #56a0d8;
  --accent-strong: #9fd2fa;
}

.case-surface[data-location="alley"] {
  --accent: #b263d8;
  --accent-strong: #d8a9f3;
}

.case-surface[data-location="house"] {
  --accent: #d27862;
  --accent-strong: #f3b29f;
}

.case-surface[data-location="dui"] {
  --accent: #e5b84e;
  --accent-strong: #fbe08d;
}

.top-hud {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.hud-case-label {
  margin: 6px 0 0;
  color: var(--text-soft);
}

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

.stat-chip {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
    rgba(7, 13, 19, 0.92);
}

.stat-chip span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.stat-chip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
}

.scene-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.72fr);
  gap: 18px;
}

.scene-column {
  display: grid;
  gap: 18px;
}

.scene-visual {
  position: relative;
  min-height: 410px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58)),
    linear-gradient(135deg, rgba(93, 167, 255, 0.12), transparent 40%);
  box-shadow: var(--shadow-soft);
}

.scene-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.08) 44%, rgba(0, 0, 0, 0.24) 100%);
  pointer-events: none;
}

.scene-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 24px;
}

.scene-overlay h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.5rem, 1.2vw + 1rem, 2.2rem);
}

.scene-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.scene-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(6, 14, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-strong);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.note-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.note-list li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

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

.player-portrait {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
}

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

.tool-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.tool-chip img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
}

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

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 66px;
  padding: 12px 16px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(6, 14, 20, 0.9);
}

.action-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.button-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.button-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intel-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.3fr) minmax(280px, 0.82fr);
  gap: 18px;
  margin-top: 18px;
}

.roster-list,
.transcript-log,
.evidence-list,
.report-results {
  display: grid;
  gap: 12px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.character-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 10px;
  text-align: left;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.character-card.is-active {
  border-color: rgba(241, 203, 134, 0.64);
  box-shadow: 0 0 0 1px rgba(241, 203, 134, 0.18) inset;
  background: rgba(241, 203, 134, 0.08);
}

.character-card img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 14px;
}

.character-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.character-role,
.character-status,
.evidence-detail,
.report-results small {
  display: block;
  color: var(--text-soft);
  line-height: 1.5;
}

.focus-panel {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.focus-portrait {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 18px;
}

.log-entry {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.log-entry--player {
  border-color: rgba(93, 167, 255, 0.24);
  background: rgba(93, 167, 255, 0.08);
}

.log-entry--radio,
.log-entry--system {
  border-color: rgba(214, 165, 79, 0.22);
  background: rgba(214, 165, 79, 0.08);
}

.log-speaker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.log-entry p {
  margin: 0;
}

.evidence-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.evidence-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
}

.evidence-item h4,
.report-results h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.empty-state {
  padding: 18px;
  border-radius: 16px;
  color: var(--text-soft);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.report-surface {
  padding: clamp(28px, 4vw, 46px);
  background:
    linear-gradient(180deg, rgba(3, 8, 11, 0.9), rgba(3, 8, 11, 0.94)),
    url("./policebriefing.jpg") center center / cover no-repeat;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
  margin-top: 24px;
}

.report-stats {
  display: grid;
  gap: 14px;
}

.report-stats div,
.report-results article {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.report-stats span {
  display: block;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
}

.report-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 1.5rem;
}

.seal-art {
  width: 120px;
}

.gameover-surface {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: stretch;
  padding: clamp(22px, 3vw, 42px);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 90, 90, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(8, 3, 3, 0.98), rgba(16, 4, 4, 0.95));
}

.gameover-art {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.gameover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 14px 6px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: 14px;
  color: var(--text-main);
  background: rgba(6, 14, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 10;
}

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

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

.overlay-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(93, 167, 255, 0.16), transparent 22%),
    radial-gradient(circle at 80% 0%, rgba(214, 165, 79, 0.14), transparent 18%),
    rgba(2, 5, 8, 0.78);
  backdrop-filter: blur(14px);
}

.overlay-panel {
  position: relative;
  width: min(980px, 100%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(6, 12, 18, 0.96);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.52);
  overflow: hidden;
}

.overlay-panel--license {
  padding: 24px;
}

.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.overlay-header h2 {
  margin: 4px 0 0;
  font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem);
}

.license-stage {
  min-height: 420px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 20%, rgba(93, 167, 255, 0.12), transparent 22%),
    radial-gradient(circle at 82% 10%, rgba(214, 165, 79, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(5, 11, 16, 0.92);
  padding: 18px;
}

.license-card-svg {
  width: min(100%, 860px);
  height: auto;
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.34));
}

.license-caption {
  margin: 16px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

@keyframes screenFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

@media (max-width: 1180px) {
  .menu-layout,
  .briefing-layout,
  .scene-layout,
  .intel-layout,
  .report-grid,
  .gameover-surface {
    grid-template-columns: 1fr;
  }

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

  .top-hud {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .info-grid,
  .action-grid,
  .tool-row {
    grid-template-columns: 1fr;
  }

  .focus-panel,
  .showcase-card {
    grid-template-columns: 1fr;
  }

  .screen-surface,
  .screen {
    min-height: auto;
  }

  .scene-visual {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 10px;
  }

  .screen-surface {
    border-radius: 22px;
  }

  .menu-actions,
  .report-actions,
  .hero-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .overlay-modal {
    padding: 12px;
  }
}
