:root {
  --ink: #15121c;
  --pink: #ff027d;
  --off-white: #faf9fb;
  --dim: #6b6875;
  --line: #2a2533;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--off-white); }
body {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kicker { color: var(--dim); margin: 0; font-size: 13px; }
h1 { margin: 0; font-size: clamp(28px, 7vw, 44px); line-height: 1.1; text-transform: lowercase; }
.prompt { color: var(--pink); }
.idea { margin: 0; color: var(--dim); }
.stage { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 0; }
button {
  font: inherit;
  background: var(--pink);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
}
button.ghost { background: transparent; color: var(--pink); border: 2px solid var(--pink); }
input, textarea, select {
  font: inherit;
  color: var(--off-white);
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 44px;
  width: 100%;
}
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.card { border: 2px solid var(--line); border-radius: 16px; padding: 16px; }
.pink { color: var(--pink); }
.foot { color: var(--dim); font-size: 13px; }

/* git tarot */
.lede { margin: 0; color: var(--dim); }
.controls { display: flex; gap: 12px; flex-wrap: wrap; }
.spread { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slot { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pos { margin: 0; font-size: 11px; color: var(--dim); text-align: center; overflow-wrap: anywhere; }
button.tarot {
  width: 100%;
  aspect-ratio: 2 / 3.3;
  border-radius: 14px;
  padding: 8px;
  background: var(--ink);
  color: var(--pink);
  border: 2px solid var(--pink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  transition: transform 0.25s ease;
}
button.tarot:hover { transform: translateY(-3px); }
.back-mark { font-size: clamp(22px, 7vw, 40px); }
.back-sub { font-size: 11px; color: var(--dim); font-weight: 400; }
button.tarot.open { background: var(--pink); color: var(--ink); }
button.tarot.rev .face { transform: rotate(180deg); }
.face { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.num { font-size: 12px; }
.cmd { font-size: clamp(13px, 3.6vw, 20px); line-height: 1.2; overflow-wrap: anywhere; }
.cname { font-size: 11px; font-weight: 400; }
.reading { display: flex; flex-direction: column; gap: 14px; }
.row p { margin: 0; }
.rpos { color: var(--dim); font-size: 13px; }
.rcmd { font-weight: 700; }
.verdict { margin: 0; padding-top: 12px; border-top: 2px solid var(--line); }
.pos { min-height: 2.8em; display: flex; align-items: flex-end; justify-content: center; }
