:root {
  --desktop: #31656a;
  --desktop-dark: #1e4246;
  --chrome: #d0cbc0;
  --chrome-light: #eee8da;
  --chrome-dark: #5c5b58;
  --ink: #171717;
  --muted: #4d4b46;
  --paper: #f7f1df;
  --red: #b6382f;
  --red-dark: #7e201c;
  --teal: #0d7779;
  --teal-light: #8cd7ce;
  --green: #3f8e3f;
  --shadow: rgba(0, 0, 0, 0.36);
  --font-pixel: "Courier New", Courier, monospace;
  --font-ui: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--desktop); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.35;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(0deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(135deg, var(--desktop), var(--desktop-dark));
}
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #f4cf58; outline-offset: 3px; }
[hidden] { display: none !important; }

.desktop { position: relative; min-height: 100vh; padding: 18px; }
.system-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  max-width: 1280px;
  margin: 0 auto 14px;
  padding: 6px 10px;
  color: #f7ffff;
  font-family: var(--font-pixel);
  font-size: 13px;
  background: #15373c;
  border: 2px solid #0b2023;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.18);
}
.system-strip__brand, .system-strip__readouts { display: flex; align-items: center; gap: 10px; min-width: 0; }
.system-strip__readouts { flex-wrap: wrap; justify-content: flex-end; }

.pixel-hat, .window-icon, .boot-logo {
  position: relative;
  width: 22px;
  height: 16px;
  image-rendering: pixelated;
  background: #171717;
  border: 2px solid #060606;
  box-shadow: inset 0 -4px 0 #8d2d2a;
}
.pixel-hat::before, .window-icon::before, .boot-logo::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: -8px;
  height: 11px;
  background: #242424;
  border: 2px solid #060606;
  border-bottom: 0;
}

.window {
  width: min(1280px, 100%);
  margin: 0 auto;
  background: var(--chrome);
  border: 2px solid var(--ink);
  box-shadow: 0 24px 60px var(--shadow), inset 2px 2px 0 var(--chrome-light), inset -2px -2px 0 var(--chrome-dark);
}
.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 6px 9px;
  color: #f7ffff;
  font-family: var(--font-pixel);
  font-size: 14px;
  background: linear-gradient(90deg, #1b4f85, #0d7779);
  border-bottom: 2px solid var(--ink);
}
.titlebar__name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.titlebar__name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-actions { display: flex; gap: 5px; }
.window-actions span {
  width: 20px;
  height: 18px;
  background: var(--chrome);
  border: 2px solid #121212;
  box-shadow: inset 2px 2px 0 var(--chrome-light), inset -2px -2px 0 var(--chrome-dark);
}

.menu-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 5px 8px;
  background: var(--chrome-light);
  border-bottom: 2px solid var(--chrome-dark);
}
.menu-bar button {
  min-height: 30px;
  border: 0;
  padding: 4px 11px;
  color: var(--ink);
  background: transparent;
  font-family: var(--font-pixel);
  font-size: 14px;
}
.menu-bar button:hover, .menu-bar button:focus-visible { background: #c0e8e3; }

.game-board {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 260px;
  gap: 10px;
  min-height: 660px;
  padding: 10px;
  background: #8a867b;
}
.panel, .playfield {
  border: 2px solid var(--ink);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.46), inset -2px -2px 0 rgba(0, 0, 0, 0.28);
}
.panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  background: var(--paper);
}
h1, h2, p, ol { margin: 0; }
h1 { font-family: var(--font-pixel); font-size: 27px; line-height: 1.05; }
h2 { font-family: var(--font-pixel); font-size: 16px; line-height: 1.15; }
.lede { margin-top: 8px; color: var(--muted); font-family: var(--font-pixel); font-size: 13px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat {
  min-width: 0;
  padding: 8px;
  background: #fff8e8;
  border: 2px solid var(--ink);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.08);
}
.stat span, .meter__label span, .milestone span, .receipt span, .ad-box span, .statusbar, .field-readout {
  font-family: var(--font-pixel);
  font-size: 12px;
}
.stat span { display: block; color: var(--muted); }
.stat strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #a91f1b;
  font-family: var(--font-pixel);
  font-size: 21px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hat-license {
  display: grid;
  gap: 12px;
  padding: 10px;
  background:
    linear-gradient(45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25% 75%, rgba(0, 0, 0, 0.05) 75%) 0 0 / 18px 18px,
    #d9d0bd;
  border: 2px solid var(--ink);
}
.meter { display: grid; gap: 8px; }
.meter__label { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.meter__label strong { font-family: var(--font-pixel); font-size: 13px; text-align: right; }
.meter__track { height: 28px; padding: 4px; background: #fff8e8; border: 2px solid var(--ink); }
.meter__track span {
  display: block;
  width: 0%;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--green) 0 12px, #6faa50 12px 18px);
  transition: width 150ms steps(5);
}
.meter__track--heat span { background: repeating-linear-gradient(90deg, #d8b13f 0 10px, #c1512d 10px 18px, #7e201c 18px 24px); }
.milestone { padding: 9px; background: #fff8e8; border: 2px dotted var(--ink); font-family: var(--font-pixel); }
.milestone span { display: block; color: var(--muted); }
.milestone strong { display: block; margin-top: 3px; color: var(--red-dark); font-size: 15px; }

.control-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.button, .ad-box button, .popup__actions button {
  min-height: 42px;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--chrome);
  font-family: var(--font-pixel);
  font-size: 13px;
  line-height: 1;
  box-shadow: inset 2px 2px 0 #fff, inset -3px -3px 0 var(--chrome-dark);
}
.button:hover, .ad-box button:hover, .popup__actions button:hover { background: #f8f0cf; }
.button:active, .ad-box button:active, .popup__actions button:active {
  transform: translate(1px, 1px);
  box-shadow: inset -2px -2px 0 #fff, inset 3px 3px 0 var(--chrome-dark);
}
.button--primary, .popup__actions button[data-action="primary"] {
  color: #fff;
  background: var(--teal);
  box-shadow: inset 2px 2px 0 var(--teal-light), inset -3px -3px 0 #064244;
}
.button--danger, .popup__actions button[data-action="danger"] {
  color: #fff;
  background: var(--red);
  box-shadow: inset 2px 2px 0 #e16c62, inset -3px -3px 0 var(--red-dark);
}

.playfield {
  position: relative;
  min-width: 0;
  overflow: hidden;
  min-height: 660px;
  cursor: none;
  touch-action: none;
  background: #2e3e3d;
  isolation: isolate;
}
.playfield::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)), url("assets/hatswat-office-stage.png") center / cover no-repeat;
}
.playfield::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.32);
}
.scanlines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 14;
  opacity: 0.16;
  background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(0, 0, 0, 0.34) 5px 6px);
  mix-blend-mode: multiply;
}
.field-readout, .event-banner {
  position: absolute;
  z-index: 11;
  color: #f7ffff;
  background: rgba(16, 28, 28, 0.82);
  border: 2px solid #0d1010;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.25);
}
.field-readout { top: 14px; padding: 6px 8px; }
.field-readout--left { left: 14px; }
.field-readout--right { right: 14px; }
.event-banner {
  top: 54px;
  left: 50%;
  min-width: min(360px, calc(100% - 36px));
  padding: 8px 12px;
  transform: translateX(-50%);
  color: #fff8e8;
  font-family: var(--font-pixel);
  font-size: 14px;
  text-align: center;
  animation: banner-in 240ms steps(4) both;
}
.clerk {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  width: min(225px, 34vw);
  max-width: none;
  image-rendering: pixelated;
  filter: drop-shadow(13px 14px 0 rgba(0, 0, 0, 0.32));
  transform: translateX(-50%);
  transform-origin: 50% 92%;
  transition: transform 90ms steps(2), width 90ms steps(2);
}
.playfield.is-swatting .clerk { width: min(340px, 50vw); transform: translateX(-44%) translateY(5px); }
.speech-bubble {
  position: absolute;
  right: 18px;
  bottom: 24px;
  z-index: 10;
  max-width: 245px;
  padding: 9px 10px;
  font-family: var(--font-pixel);
  font-size: 13px;
  background: #fff8e8;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.25);
}
.speech-bubble::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 22px;
  width: 14px;
  height: 14px;
  background: #fff8e8;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.fly-layer, .effect-layer { pointer-events: none; position: absolute; inset: 0; z-index: 7; }
.effect-layer { z-index: 9; }
.fly {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  image-rendering: pixelated;
  filter: drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.28));
  will-change: transform;
}
.fly[data-kind="tiny"] { filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.28)); }
.fly[data-kind="gold"], .fly[data-kind="crown"] {
  filter: drop-shadow(0 0 8px rgba(244, 205, 83, 0.48)) drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.28));
}
.hat-cursor {
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 13;
  width: 82px;
  max-width: none;
  image-rendering: pixelated;
  filter: drop-shadow(6px 7px 0 rgba(0, 0, 0, 0.35));
  transform: translate(-50%, -50%) rotate(-11deg);
  transform-origin: 50% 50%;
  will-change: transform;
}
.hat-cursor.is-swatting { animation: hat-swat 160ms steps(3) 1; }
.effect {
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  image-rendering: pixelated;
  animation: effect-pop 720ms steps(6) forwards;
}
.sandwich-prop {
  position: absolute;
  z-index: 6;
  width: 150px;
  max-width: none;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 10px rgba(255, 230, 114, 0.55)) drop-shadow(8px 9px 0 rgba(0, 0, 0, 0.3));
  animation: sandwich-float 7s steps(32) both;
}

.printer { min-height: 325px; padding: 10px; background: #fff8e8; border: 2px solid var(--ink); overflow: hidden; }
.printer ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 276px;
  margin-top: 10px;
  padding-left: 22px;
  overflow: auto;
  font-family: var(--font-pixel);
  font-size: 13px;
}
.printer li::marker { color: var(--red); }
.receipt, .ad-box {
  padding: 11px;
  background: #c9e8e2;
  border: 2px solid var(--ink);
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.1);
}
.receipt { display: grid; gap: 6px; background: #fff8e8; }
.receipt span, .ad-box span { display: block; color: var(--red-dark); }
.receipt strong, .ad-box strong { display: block; font-family: var(--font-pixel); font-size: 18px; }
.receipt p, .ad-box p { color: var(--muted); font-family: var(--font-pixel); font-size: 13px; }
.ad-box { margin-top: auto; }
.ad-box p { margin: 8px 0 10px; }
.ad-box button { width: 100%; }
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 8px 10px;
  background: var(--chrome-light);
  border-top: 2px solid var(--chrome-dark);
}
.statusbar span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.boot-screen, .modal-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 18, 18, 0.46);
}
.boot-box, .popup {
  width: min(460px, 100%);
  background: var(--chrome);
  border: 2px solid var(--ink);
  box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.3), inset 2px 2px 0 var(--chrome-light), inset -2px -2px 0 var(--chrome-dark);
}
.boot-box { display: grid; gap: 13px; justify-items: start; padding: 22px; font-family: var(--font-pixel); }
.boot-logo { width: 42px; height: 24px; }
.boot-box h2 { font-size: 22px; }
.boot-track { width: 100%; height: 24px; padding: 3px; border: 2px solid var(--ink); background: #fff8e8; }
.boot-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--teal) 0 14px, #79c8bd 14px 20px);
  transform-origin: left;
  animation: boot 1150ms steps(18) both;
}
.popup { width: min(420px, 100%); }
.popup__titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 6px 8px;
  color: #fff;
  background: var(--red);
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-pixel);
}
.popup__titlebar button { width: 26px; height: 24px; border: 2px solid var(--ink); padding: 0; background: var(--chrome); font-family: var(--font-pixel); }
.popup__body { display: grid; gap: 12px; padding: 16px; font-family: var(--font-pixel); }
.popup__receipt { display: flex; justify-content: space-between; gap: 12px; padding: 10px; background: #fff8e8; border: 2px dotted var(--ink); }
.popup__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 16px; }
.popup__actions button:first-child:last-child { grid-column: 1 / -1; }
.toast-layer {
  pointer-events: none;
  position: fixed;
  top: 74px;
  right: 22px;
  z-index: 25;
  display: grid;
  gap: 8px;
  width: min(330px, calc(100vw - 44px));
}
.toast {
  padding: 10px 12px;
  background: #fff8e8;
  border: 2px solid var(--ink);
  box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.22);
  font-family: var(--font-pixel);
  font-size: 13px;
  animation: toast-in 220ms steps(4) both;
}

@keyframes boot { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hat-swat {
  0% { transform: translate(-50%, -50%) rotate(-18deg) scale(1); }
  55% { transform: translate(-52%, -54%) rotate(24deg) scale(1.22); }
  100% { transform: translate(-50%, -50%) rotate(-9deg) scale(1); }
}
@keyframes effect-pop {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.66) rotate(-8deg); }
  70% { opacity: 1; transform: translate(-50%, -62%) scale(1.04) rotate(4deg); }
  100% { opacity: 0; transform: translate(-50%, -78%) scale(1.16) rotate(7deg); }
}
@keyframes banner-in {
  from { transform: translateX(-50%) translateY(-10px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
@keyframes sandwich-float {
  0% { left: -170px; top: 16%; transform: rotate(-8deg); }
  45% { top: 29%; transform: rotate(7deg); }
  100% { left: calc(100% + 170px); top: 19%; transform: rotate(-4deg); }
}
@keyframes toast-in {
  from { transform: translateX(18px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 1060px) {
  .game-board { grid-template-columns: 250px minmax(0, 1fr); }
  .panel--right { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 240px 240px; align-items: start; }
  .ad-box { margin-top: 0; }
}
@media (max-width: 780px) {
  .desktop { padding: 10px; }
  .system-strip { align-items: flex-start; flex-direction: column; }
  .game-board { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .playfield { order: -1; }
  .panel--left { order: 0; }
  .panel--right { grid-template-columns: minmax(0, 1fr); }
  .playfield { min-height: 490px; }
  .clerk { width: min(190px, 45vw); }
  .playfield.is-swatting .clerk { width: min(290px, 64vw); }
  .speech-bubble { right: 8px; bottom: 7px; max-width: 210px; }
  .statusbar { align-items: flex-start; flex-direction: column; }
  .statusbar span:first-child { white-space: normal; }
}
@media (max-width: 480px) {
  h1 { font-size: 24px; }
  .stat-grid, .control-stack, .popup__actions { grid-template-columns: minmax(0, 1fr); }
  .playfield { min-height: 430px; }
  .field-readout { font-size: 11px; }
  .hat-cursor { width: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.yard-mark {
  position: relative;
  width: 24px;
  height: 18px;
  image-rendering: pixelated;
  background: var(--red);
  border: 2px solid #060606;
  box-shadow: inset 0 -4px 0 var(--red-dark);
}

.yard-mark::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 16px;
  width: 3px;
  height: 14px;
  background: #060606;
}

.yard-mark::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 3px;
  height: 4px;
  background: #fff8e8;
}

.meter-stack {
  display: grid;
  gap: 12px;
  padding: 10px;
  background:
    linear-gradient(45deg, rgba(0, 0, 0, 0.045) 25%, transparent 25% 75%, rgba(0, 0, 0, 0.045) 75%) 0 0 / 18px 18px,
    #dcd3bf;
  border: 2px solid var(--ink);
}

.meter--good .meter__track span {
  background: repeating-linear-gradient(90deg, #3d934c 0 12px, #73b65f 12px 18px);
}

.meter--ego .meter__track span {
  background: repeating-linear-gradient(90deg, #d8922d 0 11px, #c85e31 11px 19px);
}

.meter--risk .meter__track span {
  background: repeating-linear-gradient(90deg, var(--red) 0 10px, var(--red-dark) 10px 18px);
}

.meter--drama .meter__track span {
  background: repeating-linear-gradient(90deg, #6a4c92 0 10px, #a05e9d 10px 17px);
}

.playfield::before {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)),
    url("assets/open-house/open-house-stage.png") center / cover no-repeat;
}

.agent {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  width: 145px;
  height: 190px;
  transform: translateX(-50%);
  filter: drop-shadow(12px 14px 0 rgba(0, 0, 0, 0.32));
  transform-origin: 50% 92%;
  transition: transform 90ms steps(2);
}

.agent__head {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 54px;
  height: 58px;
  transform: translateX(-50%);
  background: #d8a470;
  border: 2px solid var(--ink);
  border-radius: 6px 6px 3px 3px;
  box-shadow: inset 0 -10px 0 rgba(130, 68, 37, 0.22);
}

.agent__head::before,
.agent__head::after {
  content: "";
  position: absolute;
  top: 26px;
  width: 6px;
  height: 6px;
  background: var(--ink);
}

.agent__head::before {
  left: 13px;
}

.agent__head::after {
  right: 13px;
}

.agent__body {
  position: absolute;
  left: 50%;
  top: 64px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 88px;
  transform: translateX(-50%);
  color: #fff;
  background: #245a87;
  border: 2px solid var(--ink);
  font-family: var(--font-pixel);
  font-size: 12px;
  box-shadow: inset 0 -18px 0 rgba(0, 0, 0, 0.16);
}

.agent__sign {
  position: absolute;
  left: 50%;
  bottom: 7px;
  display: grid;
  place-items: center;
  width: 120px;
  height: 42px;
  transform: translateX(-50%) rotate(-2deg);
  color: #fff;
  background: var(--red);
  border: 2px solid var(--ink);
  font-family: var(--font-pixel);
  font-size: 20px;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.18);
}

.playfield.is-handling .agent {
  transform: translateX(-50%) translateY(5px) rotate(-3deg) scale(1.05);
}

.incident-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 9;
}

.incident {
  pointer-events: auto;
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto 5px;
  column-gap: 7px;
  width: 132px;
  min-height: 62px;
  padding: 7px;
  color: var(--ink);
  background: #fffdf4;
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.25);
  font-family: var(--font-pixel);
  text-align: left;
  user-select: none;
  transform-origin: 50% 55%;
  will-change: transform;
}

.incident:hover,
.incident:focus-visible {
  background: #fff0c6;
}

.incident__icon {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--teal);
  border: 2px solid var(--ink);
  font-size: 13px;
  line-height: 1;
}

.incident__label {
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.05;
}

.incident__action {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.08;
}

.incident__timer {
  grid-column: 1 / -1;
  height: 5px;
  margin-top: 5px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid var(--ink);
}

.incident__timer span {
  display: block;
  width: 100%;
  height: 100%;
  background: #3d934c;
  transform-origin: left;
}

.incident--neighbor .incident__icon,
.incident--seller .incident__icon,
.incident--zillow .incident__icon {
  background: var(--red);
}

.incident--inspector .incident__icon,
.incident--appraiser .incident__icon {
  background: #6a4c92;
}

.incident--investor .incident__icon {
  background: #236136;
}

.incident--hgtv .incident__icon,
.incident--firstTimer .incident__icon {
  background: #245a87;
}

.clipboard-cursor {
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 17;
  width: 54px;
  height: 66px;
  transform: translate(-50%, -50%) rotate(-9deg);
  filter: drop-shadow(5px 6px 0 rgba(0, 0, 0, 0.3));
  will-change: transform;
}

.clipboard-cursor::before {
  content: "";
  position: absolute;
  inset: 8px 6px 0;
  background: #d49a39;
  border: 2px solid var(--ink);
}

.clipboard-cursor::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  width: 25px;
  height: 15px;
  background: var(--chrome);
  border: 2px solid var(--ink);
}

.clipboard-cursor span {
  position: absolute;
  left: 14px;
  right: 12px;
  top: 25px;
  height: 4px;
  background: var(--ink);
  box-shadow: 0 10px 0 var(--ink), 0 20px 0 var(--ink);
}

.clipboard-cursor.is-handling {
  animation: clipboard-stamp 160ms steps(3) 1;
}

.effect--good {
  background: #3d934c;
}

.effect--neutral {
  background: #245a87;
}

@keyframes clipboard-stamp {
  0% {
    transform: translate(-50%, -50%) rotate(-15deg) scale(1);
  }
  55% {
    transform: translate(-51%, -55%) rotate(18deg) scale(1.18);
  }
  100% {
    transform: translate(-50%, -50%) rotate(-7deg) scale(1);
  }
}
