:root {
  color-scheme: dark;
  --bg: #070b10;
  --surface: #0c1219;
  --surface-2: #101923;
  --line: #1d2a36;
  --text: #eef4f6;
  --muted: #80909e;
  --cyan: #4be4d1;
  --cyan-soft: rgba(75, 228, 209, 0.12);
  --purple: #a52cff;
  --blue: #168bff;
  --red: #ff5263;
  --amber: #ffc45d;
  --font-ui: "Segoe UI", Arial, sans-serif;
  --font-mono: "Cascadia Code", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 68% 22%, rgba(33, 84, 82, 0.13), transparent 31%),
    var(--bg);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.hidden {
  display: none !important;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.boot-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 32px;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(3, 4, 12, 0.94) 0%, rgba(3, 4, 12, 0.72) 48%, rgba(3, 4, 12, 0.9) 100%),
    linear-gradient(0deg, rgba(3, 4, 12, 0.98), transparent 60%),
    url("./assets/codraise-universe.webp") center / cover no-repeat;
}

.boot-screen::before,
.boot-screen::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.boot-screen::before {
  width: min(580px, 85vw);
  aspect-ratio: 1;
  border: 1px solid rgba(165, 44, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(75, 228, 209, 0.02),
    0 0 120px rgba(30, 125, 255, 0.12);
  opacity: 0.55;
}

.boot-screen::after {
  inset: 0;
  background-image:
    linear-gradient(rgba(165, 44, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 139, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle, black, transparent 70%);
}

.boot-mark,
.brand-mark {
  color: var(--cyan);
  font-family: var(--font-mono);
  line-height: 1;
}

.codraise-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  padding: 8px 16px 8px 9px;
  border: 1px solid rgba(165, 44, 255, 0.25);
  background: rgba(6, 7, 18, 0.72);
  backdrop-filter: blur(12px);
}

.codraise-lockup img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(126, 48, 255, 0.35);
}

.codraise-lockup strong,
.codraise-lockup small {
  display: block;
  text-align: left;
}

.codraise-lockup strong {
  letter-spacing: 0.18em;
  font-size: 15px;
}

.codraise-lockup small {
  margin-top: 3px;
  color: #8b96b5;
  font: 8px var(--font-mono);
  letter-spacing: 0.16em;
}

.boot-mark {
  font-size: 66px;
  margin-bottom: 25px;
  text-shadow: 0 0 28px rgba(75, 228, 209, 0.4);
}

.eyebrow,
.micro-label {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  color: var(--cyan);
  font-size: 11px;
}

.boot-screen h1 {
  font-size: clamp(46px, 9vw, 100px);
  line-height: 0.9;
  margin: 12px 0 18px;
  letter-spacing: -0.07em;
  text-shadow: 0 0 50px rgba(108, 48, 255, 0.35);
}

.boot-screen h1 span {
  font-weight: 600;
  color: transparent;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan));
  background-clip: text;
}

.boot-subtitle {
  margin: 0 0 44px;
  color: #aab7c0;
  font-family: var(--font-mono);
}

.primary-button {
  min-width: 280px;
  padding: 16px 18px;
  border: 1px solid #7e54ff;
  background: linear-gradient(90deg, #9d25ff, #147eff, #08c8e8);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  transition: 180ms ease;
}

.primary-button:hover {
  background: transparent;
  color: #c6b2ff;
  box-shadow: 0 0 35px rgba(125, 63, 255, 0.28);
}

.boot-footnote {
  position: absolute;
  bottom: 24px;
  color: #596875;
  font-family: var(--font-mono);
  font-size: 10px;
}

.game-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: 74px 1fr;
}

.topbar {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 16, 0.92);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  font-size: 32px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(79, 70, 255, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.brand small {
  font: 8px var(--font-mono);
  color: var(--muted);
  margin-top: 3px;
}

.case-status {
  font: 10px var(--font-mono);
  letter-spacing: 0.12em;
  color: #9aabb6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.divider {
  height: 14px;
  width: 1px;
  background: var(--line);
}

.timer-wrap {
  justify-self: end;
  text-align: right;
}

.timer-wrap small {
  display: block;
  font: 8px var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.1em;
}

.timer-wrap strong {
  color: var(--amber);
  font: 19px var(--font-mono);
}

.sidebar {
  grid-row: 2;
  border-right: 1px solid var(--line);
  padding: 26px 12px 16px;
  display: flex;
  flex-direction: column;
  background: rgba(8, 13, 19, 0.78);
  min-height: calc(100vh - 74px);
}

.nav-item {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: #788996;
  padding: 13px 12px;
  font: 10px var(--font-mono);
  letter-spacing: 0.06em;
  cursor: pointer;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: linear-gradient(90deg, var(--cyan-soft), transparent);
  border-left-color: var(--cyan);
}

.nav-icon {
  color: var(--cyan);
  font-size: 16px;
}

.nav-badge {
  min-width: 20px;
  text-align: center;
  color: #9fb0bb;
  background: #14202a;
  padding: 2px 5px;
  border-radius: 10px;
}

.sidebar-bottom {
  margin-top: auto;
}

.sound-button,
.accuse-button {
  width: 100%;
  cursor: pointer;
  font: 9px var(--font-mono);
  letter-spacing: 0.06em;
}

.sound-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 12px;
}

.sound-button span:first-child {
  color: var(--cyan);
  margin-right: 5px;
}

.accuse-button {
  border: 1px solid rgba(255, 82, 99, 0.55);
  color: var(--red);
  padding: 13px 8px;
  background: rgba(255, 82, 99, 0.06);
}

.accuse-button:hover {
  background: var(--red);
  color: #fff;
}

.workspace {
  grid-column: 2;
  grid-row: 2;
  padding: clamp(24px, 4vw, 58px);
  overflow: hidden;
}

.panel {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  animation: panel-in 280ms ease;
}

.panel.active {
  display: block;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 34px;
}

.panel-heading h2 {
  font-size: clamp(29px, 4vw, 46px);
  letter-spacing: -0.045em;
  margin: 6px 0 0;
}

.classification,
.terminal-health {
  border: 1px solid rgba(255, 82, 99, 0.4);
  color: var(--red);
  padding: 8px 11px;
  font: 9px var(--font-mono);
  letter-spacing: 0.1em;
}

.heading-note {
  color: var(--muted);
  max-width: 350px;
  font-size: 12px;
  text-align: right;
}

.case-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 18px;
}

.agent-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(165, 44, 255, 0.1), rgba(22, 139, 255, 0.05)),
    var(--surface);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 118px;
  position: relative;
  overflow: hidden;
}

.agent-card::after {
  display: none;
}

.agent-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(131, 70, 255, 0.4);
}

.agent-card h3 {
  margin: 4px 0;
  font-size: 19px;
}

.agent-card p:last-child {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  margin: 0;
}

.robin-agent .micro-label {
  color: #d346ff;
}

.atlas-agent .micro-label {
  color: #20b8ff;
}

.victim-card,
.briefing-card,
.mission-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(16, 25, 35, 0.85), rgba(9, 14, 20, 0.75));
}

.victim-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  padding: 22px;
}

.victim-portrait {
  min-height: 260px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #eef2f7;
  font: 700 66px var(--font-display);
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 30px),
    linear-gradient(165deg, #12171f, #0a0d12);
}

/* etiqueta de perícia "ÓBITO" */
.victim-portrait::before {
  content: "ÓBITO";
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #190409;
  font: 700 11px var(--font-display);
  letter-spacing: 0.14em;
  padding: 3px 9px;
  border-radius: 3px;
}

/* moldura de foto de evidência */
.victim-portrait::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.scan-line {
  position: absolute;
  inset: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: scan 3.5s linear infinite;
}

@keyframes scan {
  from { top: 0; }
  to { top: 100%; }
}

.victim-data {
  padding: 10px 14px 6px 26px;
}

.victim-data h3 {
  font-size: 25px;
  margin: 8px 0 5px;
}

.victim-data > p:not(.micro-label) {
  color: var(--muted);
  font-size: 12px;
}

.victim-data dl {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.victim-data dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.victim-data dt {
  color: var(--muted);
  font: 9px var(--font-mono);
}

.victim-data dd {
  margin: 0;
  font-size: 11px;
}

.briefing-card {
  padding: 28px;
}

.card-kicker {
  color: var(--cyan);
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  font: 10px var(--font-mono);
  letter-spacing: 0.15em;
}

.briefing-card p {
  color: #afbdc5;
  line-height: 1.75;
  font-size: 13px;
}

.briefing-card blockquote {
  margin: 20px 0;
  padding: 14px 17px;
  border-left: 2px solid var(--red);
  background: rgba(255, 82, 99, 0.05);
  font: 12px var(--font-mono);
  color: #e1e7ea;
}

.inline-action {
  border: 0;
  border-bottom: 1px solid var(--cyan);
  padding: 8px 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  font: 10px var(--font-mono);
  letter-spacing: 0.07em;
}

.inline-action span {
  margin-left: 12px;
}

.mission-card {
  grid-column: 1 / -1;
  padding: 25px 28px;
  display: grid;
  grid-template-columns: 0.6fr 1.2fr 1.6fr;
  gap: 25px;
  align-items: center;
}

.mission-card h3 {
  font-size: 18px;
  line-height: 1.4;
}

.mission-list {
  display: flex;
  justify-content: flex-end;
}

.mission-list div {
  border-left: 1px solid var(--line);
  padding: 7px 18px;
}

.mission-list span {
  color: var(--cyan);
  font: 10px var(--font-mono);
}

.mission-list p {
  margin: 5px 0 0;
  color: #aebbc3;
  font-size: 10px;
}

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

.suspect-card {
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: 180ms ease;
}

.suspect-card:hover {
  border-color: rgba(75, 228, 209, 0.55);
  transform: translateY(-3px);
}

.suspect-visual {
  height: 190px;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle at center, rgba(75, 228, 209, 0.12), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025), rgba(255,255,255,.025) 1px, transparent 1px, transparent 4px),
    #0a1118;
}

.suspect-visual span {
  font: 56px var(--font-mono);
  color: #57717b;
}

.suspect-visual::after {
  content: "ID VERIFICADA";
  position: absolute;
  right: 11px;
  bottom: 10px;
  color: var(--cyan);
  font: 8px var(--font-mono);
}

.suspect-copy {
  padding: 20px;
}

.suspect-copy small {
  color: var(--cyan);
  font: 9px var(--font-mono);
}

.suspect-copy h3 {
  margin: 7px 0 5px;
  font-size: 19px;
}

.suspect-copy p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}

.suspect-state {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 13px;
  color: #a2b0b8;
  font: 9px var(--font-mono);
}

.suspect-state .heard {
  color: var(--cyan);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.evidence-empty {
  min-height: 380px;
  border: 1px dashed #263541;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
}

.evidence-empty span {
  font-size: 42px;
  color: #344753;
}

.evidence-empty h3 {
  color: #a9b7bf;
  margin: 14px 0 3px;
}

.evidence-empty p {
  font-size: 12px;
}

.evidence-card {
  min-height: 185px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 20px;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.evidence-card:hover {
  border-color: var(--cyan);
}

.evidence-card::before {
  content: attr(data-index);
  position: absolute;
  right: 15px;
  top: 15px;
  color: #344651;
  font: 10px var(--font-mono);
}

.evidence-type {
  color: var(--cyan);
  font: 9px var(--font-mono);
  letter-spacing: 0.1em;
}

.evidence-card h3 {
  font-size: 16px;
  margin: 30px 0 8px;
}

.evidence-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.terminal-health {
  border-color: rgba(75, 228, 209, 0.3);
  color: var(--cyan);
}

.terminal-health span {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  margin-right: 5px;
}

.terminal-layout {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 18px;
}

.terminal-window {
  border: 1px solid #253642;
  background: #05090d;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.terminal-bar {
  border-bottom: 1px solid #1d2b35;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0d141a;
}

.terminal-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34424c;
}

.terminal-bar span:first-child { background: var(--red); }
.terminal-bar span:nth-child(2) { background: var(--amber); }
.terminal-bar span:nth-child(3) { background: var(--cyan); }

.terminal-bar p {
  margin: 0 auto;
  color: #627481;
  font: 9px var(--font-mono);
}

.terminal-output {
  flex: 1;
  padding: 22px;
  overflow-y: auto;
  max-height: 445px;
  color: #c4d2d8;
  font: 12px/1.65 var(--font-mono);
}

.terminal-output p {
  margin: 2px 0;
}

.terminal-output .command-echo {
  color: var(--cyan);
  margin-top: 15px;
}

.terminal-output .terminal-alert {
  color: var(--amber);
}

.terminal-output .terminal-danger {
  color: var(--red);
}

.terminal-muted {
  color: #596b77;
}

.terminal-form {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #1d2b35;
  padding: 15px 20px;
  font: 11px var(--font-mono);
}

.terminal-form label {
  color: var(--cyan);
}

.terminal-form input {
  flex: 1;
  color: #e8f3f3;
  background: transparent;
  outline: 0;
  border: 0;
  font-family: var(--font-mono);
}

.command-guide {
  border: 1px solid var(--line);
  padding: 18px;
  background: var(--surface);
}

.command-guide button {
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: #d2dbdf;
  text-align: left;
  font: 11px var(--font-mono);
  cursor: pointer;
}

.command-guide button:hover {
  color: var(--cyan);
  padding-left: 5px;
}

.command-guide button span {
  display: block;
  color: #5f707c;
  margin-top: 3px;
  font-size: 9px;
}

.timeline {
  position: relative;
  max-width: 780px;
  padding-left: 110px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 87px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #273a45;
}

.timeline-event {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 0 0 24px;
  margin-bottom: 24px;
}

.timeline-event::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(75, 228, 209, 0.08);
  position: absolute;
  left: -27px;
  top: 5px;
}

.timeline-time {
  position: absolute;
  left: -110px;
  width: 72px;
  text-align: right;
  color: var(--cyan);
  font: 12px var(--font-mono);
}

.timeline-event h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.timeline-event p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(2, 5, 8, 0.82);
  backdrop-filter: blur(12px);
  padding: 24px;
  display: grid;
  place-items: center;
}

.modal {
  width: min(700px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #2a3b46;
  background: #0c131a;
  padding: clamp(25px, 5vw, 45px);
  position: relative;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.5);
  animation: modal-in 180ms ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.98) translateY(7px); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  right: 17px;
  top: 14px;
  border: 0;
  background: transparent;
  color: #768994;
  font-size: 25px;
  cursor: pointer;
}

.modal h2 {
  font-size: 34px;
  margin: 8px 0;
}

.modal-intro {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.profile-meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font: 10px var(--font-mono);
  margin-bottom: 25px;
}

.statement {
  border-left: 2px solid var(--cyan);
  background: rgba(75, 228, 209, 0.05);
  padding: 18px;
  color: #cad5da;
  font-size: 13px;
  line-height: 1.75;
}

.statement-action {
  width: 100%;
  margin-top: 20px;
  border: 1px solid var(--line);
  background: #111c24;
  color: var(--cyan);
  padding: 13px;
  cursor: pointer;
  font: 10px var(--font-mono);
}

.evidence-detail {
  margin-top: 25px;
  border: 1px solid var(--line);
  background: #070c11;
  padding: 22px;
  color: #b9c7ce;
  white-space: pre-line;
  font: 12px/1.75 var(--font-mono);
}

.accusation-card form {
  display: grid;
  gap: 18px;
}

.accusation-card label {
  color: #8da0ab;
  font: 9px var(--font-mono);
  letter-spacing: 0.1em;
}

.accusation-card select {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  color: #e4ecef;
  background: #080d12;
  border: 1px solid #2a3a45;
  outline: 0;
}

.submit-accusation {
  width: 100%;
  margin-top: 8px;
}

.result-card {
  text-align: center;
}

.result-symbol {
  font: 68px var(--font-mono);
  color: var(--cyan);
}

.result-card.failed .result-symbol {
  color: var(--red);
}

.result-card h2 {
  font-size: 38px;
}

.result-card p {
  color: #9fafb7;
  line-height: 1.7;
  font-size: 13px;
}

.score {
  margin: 25px 0;
  padding: 18px;
  border: 1px solid var(--line);
  font: 12px var(--font-mono);
  color: var(--amber);
}

.restart-button {
  margin: 20px auto 0;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  max-width: 340px;
  padding: 14px 17px;
  border: 1px solid rgba(75, 228, 209, 0.35);
  background: #0d181e;
  color: #d9e4e7;
  font: 10px/1.5 var(--font-mono);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 220ms ease;
}

.toast.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .game-shell {
    grid-template-columns: 74px 1fr;
  }

  .sidebar {
    padding-inline: 7px;
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .nav-item > span:not(.nav-icon) {
    display: none;
  }

  .sound-button span:last-child {
    display: none;
  }

  .accuse-button {
    font-size: 0;
  }

  .accuse-button::after {
    content: "!";
    font-size: 18px;
  }

  .case-grid,
  .terminal-layout {
    grid-template-columns: 1fr;
  }

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

  .mission-list {
    justify-content: flex-start;
  }

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

  .command-guide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  .game-shell {
    display: block;
    padding-bottom: 72px;
  }

  .topbar {
    height: 65px;
    grid-template-columns: 1fr auto;
    padding: 0 14px;
  }

  .case-status {
    display: none;
  }

  .sidebar {
    position: fixed;
    z-index: 15;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: auto;
    height: 66px;
    border: 0;
    border-top: 1px solid var(--line);
    background: #080e14;
    flex-direction: row;
    padding: 5px;
  }

  .nav-item {
    padding: 5px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .nav-item.active {
    border-left: 0;
    border-bottom-color: var(--cyan);
  }

  .sidebar-bottom {
    margin: 0;
    display: flex;
  }

  .sound-button {
    display: none;
  }

  .accuse-button {
    width: 48px;
    height: 48px;
    padding: 0;
  }

  .workspace {
    padding: 28px 16px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 25px;
  }

  .heading-note {
    text-align: left;
  }

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

  .victim-portrait {
    min-height: 190px;
  }

  .victim-data {
    padding: 22px 4px 0;
  }

  .mission-list {
    flex-direction: column;
  }

  .mission-list div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .terminal-layout {
    display: block;
  }

  .terminal-window {
    min-height: 440px;
  }

  .command-guide {
    margin-top: 14px;
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    padding-left: 80px;
  }

  .timeline::before {
    left: 62px;
  }

  .timeline-time {
    left: -82px;
    width: 55px;
  }
}
