@import url("/theme.css");

:root {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
input, textarea { font: inherit; }
button, .button, pre, code { font-family: var(--mono); }
button { font-size: inherit; }
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #a5482d;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  top: -80px;
  background: #fff;
  padding: 10px;
  z-index: 5;
}
.skip:focus {
  top: 2px;
}
header,
footer,
.guide,
#install {
  width: min(92%, 1360px);
  margin: auto;
}
header,
footer,
nav,
.brand,
.scale,
.choices {
  display: flex;
  align-items: center;
}
header,
footer,
.scale {
  justify-content: space-between;
}
header {
  height: 76px;
}
.brand {
  font: 600 30px/1 var(--mono);
  letter-spacing: -2px;
  gap: 10px;
}
.mark {
  width: 31px;
  height: 30px;
  background: var(--ink);
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 42% 76%, 18% 100%, 18% 76%, 0 76%);
}
.mark:after {
  content: "";
  position: absolute;
  inset: 6px 6px 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0 4px,
    transparent 4px 7px
  );
  transform: skewY(-12deg);
}
nav {
  gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 550;
}
.nav-join,
.copy {
  border: 1px solid currentColor;
  padding: 10px 16px;
  border-radius: 6px;
}
.nav-join span {
  margin-left: 10px;
}
nav a:hover,
.textbtn:hover,
footer a:hover {
  text-decoration: underline;
}
.board {
  position: relative;
  isolation: isolate;
  text-align: center;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 78px) 4% clamp(40px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 48% 110% at 0% 100%, #eab192 0%, #f5dac3 53%, transparent 100%),
    radial-gradient(ellipse 40% 105% at 100% 15%, #e4b88a 0%, #f4ddbd 49%, transparent 100%),
    #faf6ed;
}
/* Two screened ink impressions, printed from opposite edges of the sheet. */
.board::before, .board::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.board::before {
  bottom: 0;
  left: 0;
  width: 46%;
  height: 100%;
  background:
    radial-gradient(ellipse farthest-side at 2% 116%,
      #a44e3299 0% 19%, #aa56394a 19.3% 42%, #b8613e8a 42.3% 46%,
      #bc694c40 46.3% 64%, #bc694c18 64.3% 80%, transparent 80.3%) left bottom / 85% 95% no-repeat;
  mask-image: radial-gradient(circle, #000 0 .8px, transparent 1.2px);
  mask-size: 3.5px 3.5px;
}
.board::after {
  top: 0;
  right: 0;
  width: 39%;
  height: 92%;
  background:
    radial-gradient(ellipse farthest-side at 108% 0%,
      #97613666 0% 38%, #a7713f29 38.4% 52%, #a7713f70 52.4% 56%,
      #b179482e 56.4% 72%, transparent 72.4%) right top / 82% 89% no-repeat;
  mask-image: repeating-linear-gradient(134deg, #000 0 .85px, transparent 1.25px 4px);
}
@media (max-width: 600px) {
  .board::before { width: 40%; height: 65%; }
  .board::after { width: 33%; height: 56%; }
}
/* Move the contours through a stationary print screen to keep the grain crisp. */
@media (prefers-reduced-motion: no-preference) {
  .board::before { animation: ink-swell 8s ease-in-out -1.4s infinite; }
  .board::after { animation: ink-ebb 8s ease-in-out -1.4s infinite; }
  @keyframes ink-swell {
    0%, 100% { background-size: 85% 95%; }
    32% { background-size: 99% 78%; }
    68% { background-size: 81% 100%; }
  }
  @keyframes ink-ebb {
    0%, 100% { background-size: 82% 89%; }
    45% { background-size: 75% 99%; }
    76% { background-size: 97% 82%; }
  }
}
@media (forced-colors: active) {
  .board { background: Canvas; }
  .board::before, .board::after { display: none; }
}
.scale, .invite small, .support, .textbtn, .copy { font-family: var(--mono); }
#remaining {
  display: block;
  font:
    500 clamp(60px, 8.5vw, 124px)/1 var(--mono);
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
h1 {
  font-family: var(--mono);
  font-size: clamp(18px, 2.3vw, 35px);
  letter-spacing: -0.045em;
  margin: 7px 0 24px;
  font-weight: 550;
}
.meter {
  width: 66vw;
  margin: auto;
}
#track {
  --level: 0%;
  height: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece7df;
  box-shadow:
    0 0 0 1px #795d4580,
    0 3px 6px -2px #68463152,
    inset 0 1px 3px #5c412222;
}
.liquid {
  position: relative;
  width: var(--level);
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(0deg, #a74d33, #d77856 43%, #ec9d75 76%, #f5c2a5);
}
.liquid::before, .liquid::after {
  content: "";
  position: absolute;
  inset: 0 -80px;
  background: radial-gradient(ellipse 31px 4px at 50% 0, #ece7df 94%, transparent 100%) 0 0 / 80px 8px repeat-x;
}
.liquid::after {
  top: 3px;
  opacity: .55;
  background: radial-gradient(ellipse 20px 2px at 50% 50%, #ffe0c7, transparent) 0 0 / 70px 5px repeat-x;
}
.liquid i {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20px 70%, #fff0d55c 0 1px, transparent 2px),
    radial-gradient(circle at 62px 48%, #fff0d56b 0 1.4px, transparent 2px);
  background-size: 90px 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .liquid { transition: width 1s ease; }
  .liquid::before { animation: liquid-drift 3.2s linear infinite; }
  .liquid::after { animation: liquid-glint 4.8s linear infinite reverse; }
  .liquid i { animation: liquid-bubbles 7s linear infinite; }
  @keyframes liquid-drift { to { transform: translateX(80px); } }
  @keyframes liquid-glint { to { transform: translateX(70px); } }
  @keyframes liquid-bubbles { to { background-position: 90px 0; } }
}
.scale {
  border-top: 5px solid transparent;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.scale b {
  color: var(--ink);
}
.invite {
  max-width: 550px;
  margin: 24px auto 0;
}
.invite p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 auto 17px;
  text-wrap: pretty;
}
.button {
  background: var(--accent);
  color: var(--ink);
  font-weight: 650;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 13px 19px;
  border: 0;
  border-radius: 5px;
}
.button:hover {
  background: #f2ad91;
}
.button span {
  font-size: 20px;
}
.invite small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 11px;
}
#install-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #dd8a69;
  border: 1px solid #bd6b50;
  box-shadow: inset 0 1px 0 #ffe7ce9c;
}
#install-cta:hover { background: #e89b7d; }
#install-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: -45% auto -45% -60%;
  width: 42%;
  background: linear-gradient(90deg, transparent, #fff4df80, transparent);
  transform: skewX(-23deg);
}
@media (prefers-reduced-motion: no-preference) {
  #install-cta::after { animation: install-shine 4.8s ease-in-out infinite; }
  @keyframes install-shine {
    0%, 68% { transform: translateX(0) skewX(-23deg); }
    96%, 100% { transform: translateX(465%) skewX(-23deg); }
  }
}
.guide,
#install {
  padding: clamp(48px, 5.6vw, 84px) 0;
}
h2 {
  font:
    400 clamp(42px, 5.6vw, 84px)/1.03 var(--serif);
  margin: 0;
  letter-spacing: -0.025em;
}
h3 {
  font-weight: 650;
  font-size: 21px;
  letter-spacing: -0.04em;
}
.setup {
  min-width: 0;
}
.setup h3 {
  margin: 0 0 16px;
}
.setup form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.setup label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.setup input {
  min-width: 0;
  width: 100%;
  border: 1px solid #a4afa2;
  border-radius: 4px;
  padding: 12px;
  background: #fffdf6;
}
.setup .button {
  grid-column: 1/-1;
}
.textbtn {
  background: none;
  border: 0;
  text-decoration: underline;
  text-align: left;
  padding: 5px 0;
  grid-column: 1/-1;
}
.choices {
  flex-wrap: wrap;
  gap: 5px;
}
.choices button,
.copy {
  font-size: 13px;
  padding: 9px 11px;
  background: transparent;
  border: 1px solid #9daa9d;
  border-radius: 4px;
}
.choices button[aria-pressed="true"] {
  color: #fff;
  background: var(--ink);
}
pre {
  padding: 16px;
  color: #f2dfcf;
  background: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
  font-size: 13px;
  border-radius: 5px;
}
.copy:disabled {
  opacity: 0.5;
  cursor: default;
}
#notice {
  min-height: 1.4em;
  color: #34523c;
}
.support,
[data-part="hint"] {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 14px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 680px) {
  header {
    height: 63px;
  }
  .brand {
    font-size: 25px;
  }
  nav {
    gap: 12px;
    font-size: 12px;
  }
  .nav-join {
    padding: 8px;
  }
  #remaining {
    font-size: clamp(58px, 20vw, 128px);
  }
  .invite {
    margin-top: 24px;
  }
  .invite p {
    font-size: 15px;
    max-width: 380px;
  }
  .scale {
    font-size: 10px;
  }
  .setup form {
    grid-template-columns: 1fr;
  }
  .guide,
  #install {
    padding: 42px 0;
  }
  .meter {
    width: 69vw;
  }
}
.guide {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: 6vw;
  align-items: center;
}
.story > p {
  max-width: 37ch;
  line-height: 1.5;
  color: var(--muted);
  font-size: 17px;
}
.guide-link {
  display: inline-block;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 650;
}
#reputation {
  background: var(--panel);
  color: var(--paper);
  padding: clamp(48px, 6vw, 92px) 0;
}
.reputation-layout {
  width: min(92%, 1360px);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 7vw, 112px);
}
.reputation-story { max-width: 530px; }
#reputation h2 { font-size: clamp(48px, 6.6vw, 102px); }
#reputation h2 em { display: block; font-style: normal; color: var(--accent); }
.reputation-story > p {
  max-width: 38ch;
  margin: 22px 0 0;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.48;
}
.reputation-example {
  margin: clamp(24px, 3vw, 44px) 0 0;
  border-left: 2px solid #ba8269;
  padding-left: 16px;
}
.reputation-example a { display: inline-block; color: inherit; margin-top: 12px; font: 14px var(--mono); text-underline-offset: .2em; }
.reputation-example figcaption { font: 12px var(--mono); color: #d7c7bc; }
.reputation-example blockquote {
  max-width: 35ch;
  margin: 8px 0 0;
  font: italic clamp(17px, 1.7vw, 24px)/1.35 Georgia, serif;
}
.reputation-layout img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}
@media (max-width: 700px) {
  .reputation-layout { grid-template-columns: 1fr; }
}
.decision-loop {
  position: relative;
  margin: 0;
  min-width: 0;
}
#decision-playback {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid #aab6a3;
  border-radius: 50%;
  background: var(--paper);
  color: #39332e;
  font: 700 14px system-ui;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  #decision-playback {
    display: none;
  }
}
#decision-scene {
  width: 100%;
  height: auto;
  aspect-ratio: 17 / 10;
  display: block;
  border-radius: 16px;
  background: #eee8de;
}
@media (max-width: 380px) {
  header nav {
    gap: 8px;
  }
  header .brand {
    font-size: 21px;
    gap: 5px;
  }
  header .mark {
    width: 23px;
    height: 23px;
  }
}
#install {
  display: block;
  width: 100%;
  max-width: none;
  padding: clamp(42px, 5vw, 80px) 0;
  background: var(--field);
  border-top: 0;
  position: relative;
  isolation: isolate;
  transition: background-color 0.28s;
}
:where(#install, .install-panel, .theme-layer)[data-theme="claude"] {
  --field: #f4eee5;
  --key: #713d2e;
  --accent-ink: #d97757;
  --tone: #faf9f5;
  --edge: #c6b9a9;
  --pattern: repeating-radial-gradient(
    ellipse at 100% 95%,
    transparent 0 21px,
    #d97757 22px 23px,
    transparent 24px 30px
  );
  --swatch: #f6dfce;
}
.theme-layer {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: var(--pattern);
  opacity: 0;
  transition: opacity 0.38s ease;
  mask-image: linear-gradient(105deg, transparent 8%, #0002 36%, black);
}
:where(#install, .install-panel, .theme-layer)[data-theme="codex"] {
  --field: #f2f3f4;
  --key: #161819;
  --tone: white;
  --edge: #b9babd;
  --accent-ink: #222;
  --swatch: #e5e7eb;
  --pattern:
    repeating-linear-gradient(90deg, transparent 0 27px, #83868c 27px 28px),
    repeating-linear-gradient(0deg, transparent 0 27px, #83868c 27px 28px);
}
:where(#install, .install-panel, .theme-layer)[data-theme="cursor"] {
  --field: #eae8df;
  --key: #26251e;
  --tone: #f7f7f4;
  --edge: #bbb9ae;
  --accent-ink: #58574e;
  --swatch: #deddd3;
  --pattern:
    repeating-linear-gradient(
      30deg,
      transparent 0 35px,
      #77796e 36px 37px,
      transparent 38px 70px
    ),
    repeating-linear-gradient(
      150deg,
      transparent 0 35px,
      #77796e 36px 37px,
      transparent 38px 70px
    );
}
:where(#install, .install-panel, .theme-layer)[data-theme="google"] {
  --field: #eef3ff;
  --key: #174ea6;
  --tone: #fff;
  --edge: #b7c6e0;
  --accent-ink: #3186ff;
  --swatch: #e4edff;
  --pattern:
    radial-gradient(ellipse at 92% 0%, #3186ff 0, transparent 30%),
    radial-gradient(ellipse at 100% 40%, #fc413d 0, transparent 27%),
    radial-gradient(ellipse at 78% 90%, #fbbc04 0, transparent 36%),
    radial-gradient(ellipse at 62% 70%, #00b95c 0, transparent 26%);
}
:where(#install, .install-panel, .theme-layer)[data-theme="github"] {
  --field: #f3f1f7;
  --key: #6623b9;
  --tone: #fff;
  --edge: #c8bfda;
  --accent-ink: #8534f3;
  --swatch: #ede4fa;
  --pattern:
    radial-gradient(circle at center, #8534f3 1.8px, transparent 2px),
    radial-gradient(circle at center, #238636 1.5px, transparent 2px);
}
.theme-layer[data-theme="github"] {
  background-size:
    22px 22px,
    44px 44px;
  background-position:
    0 0,
    11px 11px;
}
.install-inner {
  width: min(92%, 1360px);
  margin: auto;
}
.install-inner > h2 {
  margin-bottom: 25px;
}
.choices {
  gap: 8px;
}
.choices button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  background: var(--tone);
  color: var(--ink);
  border-color: var(--edge);
  font-weight: 600;
}
.choices button[aria-pressed="true"] {
  background: var(--tone);
  color: var(--key);
  box-shadow: inset 0 -3px var(--key);
  border-color: var(--key);
}
.choices img {
  object-fit: contain;
}
.theme-layer.visible {
  opacity: 0.35;
}
.card-window {
  touch-action: pan-y pinch-zoom;
  overflow: clip;
  border-radius: 12px;
  margin: 14px 0 16px;
}
.card-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 0.42s cubic-bezier(0.22, 0.8, 0.22, 1);
}
.install-panel pre {
  height: 7.5em;
  overflow: auto;
}
.install-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4%;
  background: var(--tone);
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: clamp(20px, 3.4vw, 50px);
}
.agent-id {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
}
.agent-id p {
  margin: 0 0 4px;
  font: 13px var(--mono);
  color: var(--key);
}
.agent-id h3 {
  font-size: clamp(30px, 4.2vw, 65px);
  letter-spacing: -0.06em;
  margin: 0;
  line-height: 1;
}
.setup [data-part="steps"] {
  margin-top: 0;
  font-size: 16px;
  line-height: 1.5;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.actions .button,
.secondary {
  font-size: 14px;
  border-radius: 5px;
  padding: 11px 14px;
}
.actions .button {
  background: var(--key);
  color: white;
}
.secondary {
  color: var(--key);
  background: transparent;
  border: 1px solid currentColor;
  font-weight: 600;
}
.actions .textbtn {
  font-size: 12px;
  color: var(--key);
}
.availability {
  font-size: 13px;
  margin: 14px 0 0;
  color: var(--muted);
}
.setup [data-part="hint"] {
  margin-bottom: 0;
}
@media (max-width: 680px) {
  .guide {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .install-panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .agent-id {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }

  .choices button {
    padding: 7px 9px;
  }
  .actions .textbtn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  #install {
    transition: none;
  }
}
/* Each provider has a static composition. Motion plays over it on selection. */
.provider-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(95%, 330px);
  height: 122px;
  background: var(--swatch);
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.provider-art img {
  position: relative;
  width: 62px;
  height: 62px;
  object-fit: contain;
  z-index: 1;
}
.art-lines,
.art-tracer {
  position: absolute;
  pointer-events: none;
}
.install-panel[data-theme="claude"] .art-lines {
  inset: -60%;
  background: repeating-radial-gradient(
    ellipse at 30% 62%,
    transparent 0 11px,
    #b7583547 12px 13px,
    transparent 14px 19px
  );
  transform: rotate(-20deg);
}
.install-panel[data-theme="claude"] .provider-art img {
  width: 68px;
  height: 68px;
  background: #faf9f5;
  box-sizing: content-box;
  border-radius: 50%;
  padding: 12px;
}
.install-panel[data-theme="codex"] .art-lines {
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 6px,
    #1517190b 6px 7px
  );
}
.install-panel[data-theme="codex"] .art-tracer {
  height: 2px;
  width: 90%;
  background: linear-gradient(90deg, transparent, #282b31, transparent);
  top: 80%;
}
.install-panel[data-theme="cursor"] .art-lines {
  inset: -80%;
  transform: rotate(-30deg) skewX(30deg);
  background-image:
    linear-gradient(#25251e22 1px, transparent 1px),
    linear-gradient(90deg, #25251e22 1px, transparent 1px);
  background-size: 25px 25px;
}
.install-panel[data-theme="cursor"] .art-tracer {
  border: 1px dashed #4e4d44;
  width: 84px;
  height: 84px;
}
.install-panel[data-theme="google"] .art-lines {
  width: 155px;
  height: 84px;
  border: 2px solid #3186ff70;
  border-radius: 50%;
  transform: rotate(-20deg);
}
.install-panel[data-theme="google"] .art-tracer {
  width: 148px;
  height: 70px;
  border: 2px solid #00b95c75;
  border-radius: 50%;
  transform: rotate(22deg);
}
.dot-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.dot-wave > i {
  position: static;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4285f4;
  --delay: 0s;
}
.dot-wave > i:nth-child(2) { background: #ea4335; --delay: .14s; }
.dot-wave > i:nth-child(3) { background: #fbbc04; --delay: .28s; }
.dot-wave > i:nth-child(4) { background: #34a853; --delay: .42s; }
.install-panel[data-theme="google"] .art-tracer .dot-wave {
  position: absolute;
  top: 3px;
  right: 6px;
}
.install-panel[data-theme="github"] .art-lines {
  inset: 0;
  background-image: radial-gradient(#8534f340 2px, transparent 2px);
  background-size: 11px 11px;
}
.install-panel[data-theme="github"] .art-tracer {
  inset: 18% 20%;
  border-block: 2px solid #8534f3;
  transform: skew(-28deg);
  border-radius: 20px;
}
.copy-target {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  position: relative;
}
.copy-cue {
  display: grid;
  place-items: center;
  position: relative;
  width: 64px;
  height: 42px;
  flex: none;
  color: var(--accent-ink);
  pointer-events: none;
}
.copy-cue > i,
.copy-cue > b {
  position: absolute;
  display: block;
}
.install-panel[data-theme="claude"] .copy-cue {
  width: 82px;
  height: 61.5px;
  background-image: url("/icons/clawd-point.png");
  background-size: 3000% 100%;
  background-position: 100% center;
  image-rendering: pixelated;
}
.install-panel[data-theme="claude"] [data-part="copy"] {
  background: #d97757;
  color: #141413;
}
.install-panel[data-theme="codex"] .copy-cue:before {
  content: ">_";
  font: 700 24px var(--mono);
  letter-spacing: -0.14em;
}
.install-panel[data-theme="cursor"] .copy-cue i {
  width: 22px;
  height: 28px;
  background: #26251e;
  clip-path: polygon(0 0, 100% 58%, 59% 64%, 42% 100%);
  transform: rotate(33deg);
}
.install-panel[data-theme="github"] .copy-cue i,
.install-panel[data-theme="github"] .copy-cue b {
  border: 2px solid #8534f3;
  width: 36px;
  height: 14px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 20px 0 0;
  transform: translateY(-5px);
}
.install-panel[data-theme="github"] .copy-cue b {
  transform: translateY(6px) scaleY(-1);
  border-color: #238636;
}
@media (prefers-reduced-motion: no-preference) {
  #install.in-view .install-panel:not([inert])[data-theme="claude"] .copy-cue {
    animation: clawd-point 2.9s steps(29, end) infinite;
  }
  #install.in-view .install-panel:not([inert])[data-theme="codex"] .art-tracer {
    animation: codex-scan 1.65s ease-out infinite;
  }
  #install.in-view
    .install-panel:not([inert])[data-theme="codex"]
    .copy-cue:before {
    animation: prompt 1.4s steps(3, end) infinite;
  }
  #install.in-view
    .install-panel:not([inert])[data-theme="cursor"]
    .art-tracer {
    animation: select-area 1.7s ease-out infinite;
  }
  #install.in-view
    .install-panel:not([inert])[data-theme="cursor"]
    .copy-cue
    i {
    animation: aim 1.7s ease-out infinite;
  }
  #install.in-view
    .install-panel:not([inert])[data-theme="google"]
    .art-tracer {
    animation: orbit 3.3s linear infinite;
  }
  #install.in-view
    .install-panel:not([inert])[data-theme="google"]
    .dot-wave > i {
    animation: wave-hop 1.7s ease-in-out var(--delay) infinite;
  }
  #install.in-view .install-panel:not([inert])[data-theme="github"] .copy-cue i,
  #install.in-view .install-panel:not([inert])[data-theme="github"] .copy-cue b,
  #install.in-view
    .install-panel:not([inert])[data-theme="github"]
    .art-tracer {
    animation: merge-lines 2s ease-in-out infinite;
  }
  @keyframes clawd-point {
    from {
      background-position: 0% center;
    }
    to {
      background-position: 100% center;
    }
  }
  @keyframes codex-scan {
    0% {
      top: 15%;
      opacity: 0;
    }
    20% {
      opacity: 1;
    }
    100% {
      top: 80%;
    }
  }
  @keyframes prompt {
    0% {
      clip-path: inset(0 100% 0 0);
    }
    100% {
      clip-path: inset(0);
    }
  }
  @keyframes select-area {
    0% {
      clip-path: inset(0 100% 100% 0);
    }
    70%,
    100% {
      clip-path: inset(0);
    }
  }
  @keyframes aim {
    0% {
      translate: -12px -7px;
    }
    70% {
      translate: 12px 4px;
    }
    85% {
      scale: 0.85;
    }
  }
  @keyframes orbit {
    from {
      transform: rotate(-158deg);
    }
    to {
      transform: rotate(22deg);
    }
  }
  @keyframes wave-hop {
    0%, 44%, 100% { transform: translateY(0); }
    22% { transform: translateY(-9px); }
  }
  @keyframes merge-lines {
    0% {
      clip-path: inset(0 100% 0 0);
    }
    70%,
    100% {
      clip-path: inset(0);
    }
  }
}
@media (max-width: 680px) {
  .provider-art {
    width: 96px;
    height: 74px;
    flex: none;
  }
  .provider-art img {
    width: 40px;
    height: 40px;
  }
  .install-panel[data-theme="claude"] .provider-art img {
    width: 37px;
    height: 37px;
    padding: 6px;
  }
  .copy-cue {
    width: 42px;
  }
  .install-panel[data-theme="claude"] .copy-cue {
    width: 61px;
    height: 45.75px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card-track,
  .theme-layer {
    transition: none;
  }
}

/* Reserve both labels' space so copying or revealing a URL cannot reflow the controls. */
.actions [data-part="copy"] {
  width: 8.4rem;
  justify-content: center;
  white-space: nowrap;
}
.actions [data-part="reveal"] {
  min-width: 16ch;
  white-space: nowrap;
}

.pair-page { max-width: 38rem; padding: 8vh 5vw; margin: auto; }
.pair-page a { text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.launched h1 {
  font-size: clamp(32px, 5.8vw, 84px);
  letter-spacing: -.075em;
  line-height: 1.05;
  margin: 16px 0 12px;
}
#launch-milestone { font: 13px/1.6 var(--mono); color: var(--muted); margin: 0; }
#launch-pilot { display: inline-block; margin: 10px 12px; font: 14px var(--mono); text-decoration: underline; text-underline-offset: 4px; }
#launch-emblem { position: relative; width: 96px; height: 94px; margin: auto; }
.ballot-slot, .ballot-box, .ballot-slip { position: absolute; }
.ballot-slot { inset: 42px 9px 40px; border: 3px solid #473a2e; border-radius: 50%; background: #92694f; }
.ballot-mouth { position: absolute; inset: -8px 0 44px; overflow: hidden; }
.ballot-slip {
  left: 29px; top: 10px; width: 39px; height: 46px; border: 2px solid #473a2e;
  border-radius: 3px; background: #ffdfba; color: #873c26; font: bold 27px/40px var(--mono);
  transform: rotate(-10deg); box-shadow: 2px 2px 0 #c48260;
}
.ballot-box {
  inset: 49px 7px 5px; border-radius: 3px 3px 9px 9px; background: #332922;
  display: flex; gap: 4px; align-items: flex-end; justify-content: center; padding-bottom: 10px;
}
.ballot-box i { width: 7px; height: 9px; background: #e69a74; }
.ballot-box i:nth-child(2) { height: 14px; }
.ballot-box i:last-child { height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .ballot-slip { animation: cast-vote 3.6s ease-in-out infinite; }
  @keyframes cast-vote {
    0%, 22%, 100% { opacity: 1; transform: translateY(0) rotate(-10deg); }
    54%, 65% { opacity: 1; transform: translateY(47px) rotate(0); }
    66% { opacity: 0; transform: translateY(47px); }
    67%, 74% { opacity: 0; transform: translateY(-8px) rotate(-14deg); }
  }
}
