@font-face {
  font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-weight: 900; font-style: normal; font-display: swap;
  src: url("/fonts/inter-latin-900-normal.woff2") format("woff2");
}

:root {
  --ink: #1a1a2e;
  --paper: #fafaf5;
  --red: #e63946;
  --red-hot: #ff4d5a;
  --aqua: #4ea8de;
  --grass: #2ecc71;
  --sunset: #f1c40f;
  --font: "Inter", "Arial Black", Helvetica, sans-serif;
  --line: 3px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-up: 6px 6px 0 var(--ink);
  --snap: 75ms linear;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 700 14px/1.5 var(--font);
}
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.rule { width: 100%; height: 3px; margin: 0; border: 0; background: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

/* Top bar */
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { margin: 0; font-weight: 900; font-size: 16px; line-height: 1.1; text-transform: uppercase; letter-spacing: -0.02em; }
.steps { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.steps li {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px;
  border: var(--line); border-radius: 999px; background: var(--paper);
  font-weight: 900; line-height: 1.35; letter-spacing: 0.04em; text-transform: uppercase;
}
.steps li.done { background: var(--grass); }
.steps li.now { background: var(--sunset); box-shadow: 3px 3px 0 var(--ink); }

/* Stage */
.stage {
  flex: 1; display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 48px;
  align-items: start; align-content: start; padding-top: 64px; padding-bottom: 80px;
}
.actor { background: var(--aqua); border: var(--line); box-shadow: var(--shadow); padding: 16px 16px 0; }
#face { display: block; width: 100%; height: auto; }

.badge {
  display: inline-block; padding: 4px 12px; border: var(--line); border-radius: 999px; background: var(--paper);
  font: 700 14px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.bubble {
  position: relative; background: #fff; border: var(--line); box-shadow: var(--shadow);
  padding: 24px; min-height: 136px; cursor: default;
}
/* The tail: an ink triangle with a white one over it, so the 3px line carries on. */
.bubble::before, .bubble::after {
  content: ""; position: absolute; top: 40px; width: 0; height: 0;
  border-style: solid; border-color: transparent;
}
.bubble::before { left: -27px; border-width: 0 24px 24px 0; border-right-color: var(--ink); }
.bubble::after { left: -17px; top: 43px; border-width: 0 17px 17px 0; border-right-color: #fff; }
.say { margin: 0; font-size: 20px; line-height: 1.35; white-space: pre-line; }
.say.big { font-weight: 900; font-size: 40px; line-height: 1.05; letter-spacing: -0.02em; text-transform: uppercase; }
.say .ghost { visibility: hidden; }

.pop { animation: pop 150ms steps(2, end); }
@keyframes pop { from { transform: translate(4px, 4px); box-shadow: none; } }

.extra { display: grid; gap: 16px; margin-top: 32px; }
.extra:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* Cel button */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border: var(--line); border-radius: 0; box-shadow: var(--shadow);
  background-color: var(--red); color: #fff; cursor: pointer; text-decoration: none;
  font: 900 14px/1 var(--font); letter-spacing: 0.04em; text-transform: uppercase;
  /* The highlight: a flat skewed white band, parked off the left edge. */
  background-image: linear-gradient(105deg, transparent 0 35%, rgb(255 255 255 / 0.3) 35% 65%, transparent 65%);
  background-size: 60% 100%; background-repeat: no-repeat; background-position: -200% 0;
  transition: transform var(--snap), box-shadow var(--snap), background-color var(--snap);
}
.btn--aqua { background-color: var(--aqua); color: var(--ink); }
.btn--paper { background-color: #fff; color: var(--ink); }
.btn--grass { background-color: var(--grass); color: var(--ink); }
.btn--sunset { background-color: var(--sunset); color: var(--ink); }
.btn:active { transform: scaleX(1.1) scaleY(0.9) translate(4px, 8px); box-shadow: none; }
/* Speed lines trailing a lifted button: 3px ink strokes at 15 degrees. */
.btn::after {
  content: ""; position: absolute; left: calc(100% + 16px); top: 50%; width: 64px; height: 36px;
  transform: translateY(-30%) rotate(-15deg); visibility: hidden; pointer-events: none;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 64px 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 11px / 40px 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 22px / 56px 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 33px / 24px 3px no-repeat;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); background-position: 300% 0;
    transition: transform var(--snap), box-shadow var(--snap), background-color var(--snap), background-position 300ms linear; }
  .btn:not(.btn--aqua, .btn--paper, .btn--grass, .btn--sunset):hover { background-color: var(--red-hot); }
  .btn:active { transform: scaleX(1.1) scaleY(0.9) translate(4px, 8px); box-shadow: none; }
  .choices .btn:last-child:hover::after { visibility: visible; }
  .choices .btn:active::after { visibility: hidden; }
}

.link {
  padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
  font: 900 14px/1.35 var(--font); letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px;
}
.link:hover { color: var(--red); }

/* Something to copy: the link, a command, a question for the agent. */
.copy { display: flex; align-items: stretch; background: #fff; border: var(--line); box-shadow: var(--shadow); }
.copy-text { flex: 1; min-width: 0; margin: 0; padding: 16px; font-size: 16px; overflow-wrap: anywhere; }
pre.copy-text { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.copy-btn {
  flex: none; width: 104px; border: 0; border-left: var(--line); border-radius: 0; background: var(--sunset); color: var(--ink);
  cursor: pointer; font: 900 14px/1 var(--font); letter-spacing: 0.04em; text-transform: uppercase;
  transition: transform var(--snap), background-color var(--snap);
}
.copy-btn:active { transform: scaleX(1.1) scaleY(0.9); }
.copy-btn.ok { background: var(--grass); }
.copy-btn.err { background: var(--red); color: #fff; }
@media (hover: hover) { .copy-btn:hover { background: #ffd83a; } .copy-btn.ok:hover { background: var(--grass); } }

.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.foot-nav { display: flex; gap: 24px; }
.noscript { padding-bottom: 48px; font-size: 16px; }

@media (max-width: 860px) {
  .steps li span { display: none; }
  .stage { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; padding-bottom: 48px; }
  .actor { width: 136px; }
  .actor { padding: 8px 8px 0; }
  .bubble::before { left: 40px; top: -27px; border-width: 24px 24px 0 0; border-color: transparent; border-right-color: var(--ink); }
  .bubble::after { left: 43px; top: -17px; border-width: 17px 17px 0 0; border-color: transparent; border-right-color: #fff; }
  .say { font-size: 16px; line-height: 1.5; }
  .say.big { font-size: 28px; line-height: 1.1; }
  .choices .btn { flex: 1 1 auto; }
  .btn::after { display: none; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .copy { flex-direction: column; }
  .copy-btn { width: auto; padding: 12px; border-left: 0; border-top: var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:active, .btn:hover, .copy-btn:active { transform: none; }
}
