/* ============================================================
   Northbridge — game interface
   Warm, ordinary, slightly tired. The state is in the details.
   ============================================================ */

* { box-sizing: border-box; }

:root {
  --bg: #12110f;
  --bg-deep: #0c0b0a;
  --panel: #1a1815;
  --panel-hi: #211e1a;
  --line: #302b24;
  --line-hi: #4a4135;
  --text: #e9e3d7;
  --muted: #9b9184;
  --dim: #6f665b;
  --amber: #d7a44c;
  --amber-hi: #efc06a;
  --health: #8fae7a;
  --money: #c9a227;
  --danger: #b5543f;
  --cold: #8fb2b4;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;
}

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(1200px 700px at 50% 20%, #1b1916 0%, #12110f 48%, #0c0b0a 100%);
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; }

/* ---------- atmosphere ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.skyline {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 34vh;
  color: #1c1915;
  opacity: .85;
  z-index: 0;
  pointer-events: none;
}

.city-feed {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 34px;
  padding: .4rem 2rem;
  border-bottom: 1px solid rgba(74, 65, 53, .35);
  background: rgba(10, 9, 8, .55);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  overflow: hidden;
  white-space: nowrap;
}

.feed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(215, 164, 76, .6);
  flex: 0 0 auto;
  animation: feedPulse 3.4s ease-in-out infinite;
}

@keyframes feedPulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

.feed-label {
  color: var(--amber);
  flex: 0 0 auto;
}

.feed-text {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- layout ---------- */

.game {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 300px;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
}

.game-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.city-mark {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: .58rem;
  line-height: 1.6;
  letter-spacing: .14em;
  opacity: .65;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left center;
  white-space: nowrap;
}

.city-mark-line {
  width: 1px;
  height: 54px;
  background: var(--line-hi);
}

.panels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.8rem, 1.6vw, 1.4rem);
  min-width: 0;
}

/* ---------- action panels ---------- */

.panel {
  position: relative;
  width: clamp(170px, 16vw, 212px);
  height: clamp(244px, 32vh, 292px);
  padding: 1.25rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: .22rem;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    linear-gradient(160deg, rgba(38, 34, 28, .92) 0%, rgba(22, 20, 17, .96) 62%, rgba(17, 16, 14, .98) 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  transition: background .22s ease;
}

.panel:hover,
.panel:focus-visible {
  transform: translateY(-5px);
  border-color: var(--line-hi);
  background:
    linear-gradient(160deg, rgba(45, 40, 33, .96) 0%, rgba(26, 23, 19, .98) 62%, rgba(19, 17, 15, 1) 100%);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .38);
  outline: none;
}

.panel:hover::before,
.panel:focus-visible::before { background: var(--amber); }

.panel-icon {
  position: absolute;
  top: 1.15rem;
  left: 1.1rem;
  width: 46px;
  height: 46px;
  color: var(--amber);
  opacity: .82;
}

.panel-icon svg { width: 100%; height: 100%; }

.panel-kicker {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: .85;
}

.panel-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.7vw, 1.62rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: .2rem;
}

.panel-note {
  font-size: .76rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 15em;
}

.panel-state {
  display: block;
  margin-top: .45rem;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  min-height: 1em;
}

.panel-stamp {
  position: absolute;
  top: 1.2rem;
  right: 1rem;
  padding: .18rem .38rem;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--mono);
  font-size: .52rem;
  letter-spacing: .16em;
  transform: rotate(6deg);
  opacity: 0;
  transition: opacity .2s ease;
}

.panel.done {
  opacity: .55;
  filter: saturate(.45);
  cursor: default;
  transform: none;
}

.panel.done:hover { transform: none; box-shadow: 0 18px 44px rgba(0, 0, 0, .28); }
.panel.done .panel-stamp { opacity: .9; }
.panel.done .panel-state { color: var(--amber); opacity: .8; }

/* ---------- mechanics ---------- */

.mechanics {
  align-self: center;
  width: 100%;
  max-width: 300px;
  justify-self: end;
  border: 1px solid rgba(74, 65, 53, .55);
  border-radius: 3px;
  background: rgba(17, 16, 14, .72);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.mechanics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid rgba(74, 65, 53, .35);
}

.mechanics-label {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
}

.mechanics-toggle {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  font-size: .8rem;
}

.mechanics-toggle:hover { border-color: var(--line-hi); color: var(--text); }

.mechanics-body {
  padding: .85rem .9rem 1rem;
}

.mechanics.collapsed .mechanics-body { display: none; }
.mechanics.collapsed .mechanics-head { border-bottom: none; }

.mechanics-lede {
  margin: 0 0 .7rem;
  font-family: var(--serif);
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text);
}

.mechanics-rule {
  margin: 0 0 .55rem;
  font-size: .72rem;
  line-height: 1.5;
  color: var(--muted);
}

.mechanics-day {
  margin-top: .8rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(74, 65, 53, .35);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.mechanics-day-label {
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}

.mechanics-day-text {
  font-family: var(--serif);
  font-size: .78rem;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
}

/* ---------- HUD ---------- */

.hud {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: .85rem 2rem;
  min-height: 88px;
  border-top: 1px solid rgba(74, 65, 53, .45);
  background: linear-gradient(180deg, rgba(14, 13, 11, .92), rgba(10, 9, 8, .98));
  backdrop-filter: blur(10px);
}

.hud-left { display: flex; align-items: center; }

.day-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.day-main {
  display: flex;
  align-items: baseline;
  gap: .35rem;
}

.day-label {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-right: .1rem;
}

.day-number {
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--amber);
}

.day-of {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--dim);
}

.day-meta {
  display: flex;
  flex-direction: column;
  gap: .12rem;
}

.day-name {
  font-size: .78rem;
  color: var(--text);
  letter-spacing: .02em;
}

.day-date {
  font-family: var(--mono);
  font-size: .6rem;
  color: var(--dim);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.day-dots {
  display: flex;
  gap: 5px;
  margin-left: .4rem;
}

.day-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--line-hi);
  background: transparent;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.day-dot.done {
  background: var(--line-hi);
  border-color: var(--line-hi);
}

.day-dot.active {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 9px rgba(215, 164, 76, .55);
}

.hud-center {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  justify-content: center;
}

.stat {
  width: clamp(150px, 16vw, 210px);
}

.stat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .32rem;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

.stat-value {
  color: var(--text);
  letter-spacing: .04em;
}

.stat-bar {
  height: 7px;
  border: 1px solid rgba(74, 65, 53, .55);
  border-radius: 1px;
  background: #1b1815;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  width: 100%;
  transition: width .5s cubic-bezier(.2, .8, .2, 1), background .3s ease;
}

.stat-fill.health { background: linear-gradient(90deg, #6f8c5f, var(--health)); }
.stat-fill.money { background: linear-gradient(90deg, #9b7c1c, var(--money)); }
.stat-fill.low { background: linear-gradient(90deg, #7d3326, var(--danger)); }

.hud-right { display: flex; justify-content: flex-end; }

.next-card {
  width: clamp(160px, 15vw, 205px);
  padding: .62rem .85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .12rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(28, 25, 21, .8);
  color: var(--text);
  cursor: pointer;
  transition: all .2s ease;
}

.next-card .next-label {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.next-card .next-sub {
  font-size: .64rem;
  color: var(--dim);
  line-height: 1.35;
}

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

.next-card:not(:disabled) {
  border-color: var(--amber);
  background: var(--amber);
  color: #17130d;
  box-shadow: 0 0 24px rgba(215, 164, 76, .18);
}

.next-card:not(:disabled) .next-sub { color: rgba(23, 19, 13, .7); }
.next-card:not(:disabled):hover { background: var(--amber-hi); border-color: var(--amber-hi); }

/* ---------- overlay ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(7, 6, 5, .82);
  backdrop-filter: blur(7px);
}

.overlay[hidden] { display: none; }

.overlay-card {
  width: min(720px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border: 1px solid var(--line-hi);
  border-radius: 4px;
  background:
    linear-gradient(170deg, rgba(30, 27, 23, .98), rgba(19, 17, 15, .99));
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
  animation: cardIn .24s cubic-bezier(.2, .8, .2, 1);
}

.overlay-card.narrow { width: min(540px, 94vw); }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.scene-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .55rem;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}

.scene-category { color: var(--amber); }

.scene-title {
  margin: 0 0 .2rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.12;
  font-weight: 400;
  color: var(--text);
}

.scene-kicker {
  margin: 0 0 1.15rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  color: var(--muted);
}

.scene-body {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(.98rem, 1.3vw, 1.08rem);
  line-height: 1.72;
  color: #d8d1c4;
}

.scene-request {
  margin: 1.15rem 0;
  padding: .95rem 1.05rem;
  border-left: 2px solid var(--cold);
  background: rgba(12, 17, 19, .72);
  color: #a9c4c6;
  font-family: var(--mono);
  font-size: .76rem;
  line-height: 1.55;
}

.scene-request-label {
  display: block;
  margin-bottom: .32rem;
  font-size: .55rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6f8f91;
}

.scene-request strong {
  display: block;
  color: #d3e6e7;
  font-weight: 500;
}

.scene-note {
  margin: 1rem 0 0;
  padding: .8rem .9rem;
  border: 1px solid rgba(143, 178, 180, .28);
  background: rgba(143, 178, 180, .05);
  font-size: .76rem;
  line-height: 1.55;
  color: #a9c4c6;
}

.scene-note-label {
  display: block;
  margin-bottom: .3rem;
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6f8f91;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.3rem;
}

.btn {
  padding: .62rem 1rem;
  border: 1px solid var(--line-hi);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-size: .78rem;
  line-height: 1.25;
  cursor: pointer;
  transition: all .18s ease;
}

.btn:hover { border-color: var(--amber); color: var(--amber-hi); }
.btn:focus-visible { outline: 1px solid var(--amber); outline-offset: 2px; }

.btn-primary {
  border-color: var(--amber);
  background: var(--amber);
  color: #17130d;
  font-weight: 600;
}

.btn-primary:hover { background: var(--amber-hi); border-color: var(--amber-hi); color: #17130d; }

.btn-ghost {
  border-color: transparent;
  color: var(--muted);
}

.btn-ghost:hover { border-color: var(--line-hi); color: var(--text); }

.btn-danger { border-color: rgba(181, 84, 63, .55); color: #d58a79; }
.btn-danger:hover { border-color: var(--danger); color: #f0a08e; background: rgba(181, 84, 63, .08); }

.btn-small { padding: .42rem .7rem; font-size: .68rem; }

/* ---------- venue choice ---------- */

.choice-intro {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

.choice-card {
  position: relative;
  padding: 1.1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .38rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(24, 22, 19, .72);
  cursor: pointer;
  transition: all .18s ease;
}

.choice-card:hover {
  border-color: var(--amber);
  background: rgba(32, 28, 23, .85);
  transform: translateY(-2px);
}

.choice-card.small:hover { border-color: var(--line-hi); }

.choice-tier {
  font-family: var(--mono);
  font-size: .54rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}

.choice-card.small .choice-tier { color: var(--dim); }

.choice-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--text);
}

.choice-kicker {
  font-family: var(--mono);
  font-size: .58rem;
  line-height: 1.45;
  color: var(--muted);
}

.choice-ask {
  margin-top: .35rem;
  padding-top: .55rem;
  border-top: 1px solid rgba(74, 65, 53, .35);
  font-family: var(--mono);
  font-size: .56rem;
  line-height: 1.5;
  color: var(--dim);
}

.choice-card.big .choice-ask { color: #9bb6b8; }

.choice-arrow {
  position: absolute;
  right: .9rem;
  bottom: .8rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: .8rem;
  transition: transform .18s ease, color .18s ease;
}

.choice-card:hover .choice-arrow { transform: translateX(3px); color: var(--amber); }

.choice-back {
  margin-top: 1.1rem;
  display: flex;
  justify-content: flex-start;
}

/* ---------- why ---------- */

.why-title {
  margin: 0 0 .35rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.why-short {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: .98rem;
  line-height: 1.65;
  color: #d8d1c4;
}

.why-deep {
  margin: .9rem 0 0;
  padding: 1rem;
  border: 1px solid rgba(143, 178, 180, .22);
  background: rgba(12, 17, 19, .55);
  font-family: var(--mono);
  font-size: .7rem;
  line-height: 1.7;
  color: #a9c4c6;
}

.why-deep-label {
  display: block;
  margin-bottom: .45rem;
  font-size: .54rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6f8f91;
}

.flow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .8rem;
}

.flow-chip {
  padding: .24rem .45rem;
  border: 1px solid rgba(143, 178, 180, .28);
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .06em;
  color: #9bb6b8;
}

.flow-arrow { color: #4d686a; font-family: var(--mono); font-size: .6rem; align-self: center; }

/* ---------- webcam ---------- */

.cam-frame {
  position: relative;
  margin: 1rem 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(143, 178, 180, .45);
  background: #050708;
}

.cam-frame video,
.cam-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scaleX(-1);
}

.cam-frame img { transform: none; }

.cam-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 8, .45), transparent 22%, transparent 78%, rgba(5, 7, 8, .55)),
    repeating-linear-gradient(180deg, rgba(143, 178, 180, .045) 0 1px, transparent 1px 4px);
}

.cam-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #8fb2b4;
  border-style: solid;
  z-index: 2;
  opacity: .8;
}

.cam-corner.tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.cam-corner.tr { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.cam-corner.bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
.cam-corner.br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

.cam-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(143, 178, 180, .85), transparent);
  box-shadow: 0 0 14px rgba(143, 178, 180, .45);
  animation: scan 2.2s linear infinite;
  z-index: 3;
}

@keyframes scan {
  0% { top: 8%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 92%; opacity: 0; }
}

.cam-status {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9bb6b8;
  text-shadow: 0 1px 4px #000;
}

.cam-count {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 4.5rem;
  color: #d3e6e7;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .8);
}

.cam-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  font-family: var(--mono);
  font-size: .68rem;
  line-height: 1.6;
  color: #5e7a7c;
  background:
    radial-gradient(circle at 50% 42%, rgba(143, 178, 180, .08), transparent 42%),
    #050708;
}

.cam-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem .9rem;
  margin: .9rem 0 0;
  font-family: var(--mono);
  font-size: .62rem;
  line-height: 1.5;
  color: var(--muted);
}

.cam-meta span { color: var(--dim); }
.cam-meta strong { color: #a9c4c6; font-weight: 400; }

/* ---------- outcome ---------- */

.outcome-title {
  margin: 0 0 .55rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 400;
  line-height: 1.25;
}

.outcome-body {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.7;
  color: #d8d1c4;
}

.outcome-deltas {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 1rem;
}

.delta {
  padding: .25rem .5rem;
  border: 1px solid var(--line-hi);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .04em;
  color: var(--muted);
}

.delta.good { border-color: rgba(143, 174, 122, .4); color: #a9c48f; }
.delta.bad { border-color: rgba(181, 84, 63, .45); color: #d58a79; }

.outcome-stamp {
  display: inline-block;
  margin-top: .2rem;
  padding: .22rem .45rem;
  border: 1px solid rgba(74, 65, 53, .7);
  font-family: var(--mono);
  font-size: .52rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  transform: rotate(-2deg);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  top: 54px;
  left: 50%;
  z-index: 500;
  max-width: min(560px, 90vw);
  padding: .7rem 1rem;
  border: 1px solid var(--line-hi);
  border-left: 2px solid var(--amber);
  background: rgba(18, 16, 13, .96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  font-size: .76rem;
  line-height: 1.5;
  color: var(--text);
  opacity: 0;
  transform: translate(-50%, -10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- interstitial ---------- */

.interstitial {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(900px 600px at 50% 40%, #191713 0%, #0b0a09 62%, #070605 100%);
}

.interstitial[hidden] { display: none; }

.interstitial-inner {
  max-width: 620px;
  text-align: center;
  animation: cardIn .5s cubic-bezier(.2, .8, .2, 1);
}

.interstitial-kicker {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--amber);
}

.interstitial-title {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--text);
}

.interstitial-sub {
  margin: 0 0 1.6rem;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- responsive ---------- */

@media (max-width: 1240px) {
  .game { grid-template-columns: minmax(0, 1fr) 280px; }
  .game-left { display: none; }
}

@media (max-width: 1000px) {
  body { overflow: auto; }
  .game {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 1.2rem 1.2rem 1.6rem;
    gap: 1.4rem;
  }
  .panels { flex-wrap: wrap; }
  .mechanics { max-width: none; justify-self: stretch; }
  .hud {
    grid-template-columns: 1fr;
    gap: .8rem;
    padding: 1rem 1.2rem;
  }
  .hud-center { justify-content: flex-start; }
  .hud-right { justify-content: flex-start; }
  .next-card { width: 100%; }
  .stat { width: min(46vw, 260px); }
}

@media (max-width: 640px) {
  .city-feed { padding: .4rem 1rem; font-size: .56rem; }
  .panels { gap: .7rem; }
  .panel {
    width: 100%;
    height: auto;
    min-height: 150px;
    padding: 1rem;
  }
  .panel-icon { width: 34px; height: 34px; top: 1rem; left: 1rem; }
  .panel-title { font-size: 1.3rem; }
  .panel-note { max-width: none; }
  .choice-grid { grid-template-columns: 1fr; }
  .cam-meta { grid-template-columns: 1fr; }
  .hud-center { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .stat { width: 100%; }
  .day-card { flex-wrap: wrap; }
  .overlay { padding: .7rem; }
  .overlay-card { padding: 1.1rem; max-height: 94vh; }
}
