:root {
  color-scheme: light;
  --ink: #11110f;
  --paper: #f4f1e8;
  --paper-white: #fffdf6;
  --muted: #77736b;
  --signal: #ff4e35;
  --signal-dark: #c72716;
  --human: #70d6a5;
  --ai: #ffc247;
  --violet: #716eff;
  --mono: "Courier New", "Noto Sans Mono CJK SC", "Microsoft YaHei", monospace;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--mono);
}

button,
input,
textarea { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.turing-page {
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(17, 17, 15, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 15, .035) 1px, transparent 1px);
  background-size: 8px 8px;
  letter-spacing: -.02em;
}

.turing-topbar {
  height: 58px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 2px solid var(--ink);
  background: rgba(244, 241, 232, .94);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.wordmark {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  cursor: pointer;
}

.wordmark span { color: var(--signal); }
.wordmark:hover { color: var(--signal-dark); }

.top-actions {
  justify-self: end;
  display: flex;
  gap: 8px;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.icon-button:hover {
  color: var(--paper);
  background: var(--ink);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.sound-button svg {
  width: 19px;
  height: 19px;
  overflow: visible;
}

.sound-button .speaker-shape {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.sound-button .sound-wave,
.sound-button .mute-mark {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.sound-button .mute-mark { display: none; }
.sound-button.is-muted .sound-wave { display: none; }
.sound-button.is-muted .mute-mark { display: block; }

.turing-main {
  width: min(1100px, calc(100% - 32px));
  min-height: calc(100vh - 104px);
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.home-screen {
  width: 100%;
  padding: 62px 0 46px;
}

.home-simple {
  min-height: min(660px, calc(100vh - 150px));
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.home-simple h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(76px, 11vw, 148px);
  font-weight: 900;
  line-height: .83;
  letter-spacing: -.055em;
}

.home-simple h1 span {
  color: var(--paper);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 5px 5px 0 var(--signal);
}

.home-simple .home-actions {
  width: min(620px, 100%);
  margin-top: 54px;
}

.home-simple .home-actions > button {
  width: 100%;
  min-height: 58px;
}

.home-secondary:disabled {
  opacity: .38;
  cursor: not-allowed;
  box-shadow: 2px 2px 0 var(--ink);
}

.home-secondary:disabled:hover {
  color: var(--ink);
  background: transparent;
  transform: none;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(400px, .97fr);
  gap: 54px;
  align-items: center;
}

.home-copy h1 {
  margin: 24px 0 20px;
  font-family: var(--display);
  font-size: clamp(74px, 8.4vw, 122px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.045em;
}

.home-copy h1 span {
  color: var(--paper);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 5px 5px 0 var(--signal);
}

.home-copy > p {
  max-width: 550px;
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}

.home-actions {
  margin-top: 30px;
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.home-actions .start-button {
  width: min(320px, 100%);
  margin: 0;
  padding: 0 24px;
}

.home-actions .start-button b {
  font-size: 20px;
  font-weight: 900;
}

.home-actions .start-button span {
  font-size: 13px;
}

.home-secondary {
  min-height: 50px;
  padding: 0 19px;
  border: 3px solid var(--ink);
  color: var(--ink);
  background: transparent;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.home-secondary:hover {
  color: var(--paper);
  background: var(--ink);
}

.home-record {
  margin-top: 24px;
  display: flex;
  gap: 17px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
}

.home-record b { color: var(--ink); }

.home-simple .home-record {
  margin-top: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.home-stage {
  min-height: min(610px, calc(100vh - 230px));
  padding: 34px 0 12px;
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  isolation: isolate;
}

.home-stage::before,
.home-stage::after {
  content: "";
  width: 76px;
  height: 18px;
  position: absolute;
  border-top: 2px solid var(--ink);
}

.home-stage::before {
  top: 4px;
  left: 0;
  border-left: 2px solid var(--ink);
}

.home-stage::after {
  right: 0;
  bottom: 0;
  border-right: 2px solid var(--ink);
  transform: rotate(180deg);
}

.home-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.home-kicker span {
  padding: 7px 10px;
  color: var(--paper);
  background: var(--ink);
}

.home-kicker b {
  padding-bottom: 4px;
  border-bottom: 2px solid var(--signal);
}

.home-stage h1 {
  margin: 25px 0 18px;
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(78px, 10vw, 136px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.06em;
}

.title-question {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .11em;
  white-space: nowrap;
}

.title-question small {
  font-size: .43em;
  letter-spacing: -.025em;
}

.title-question strong {
  font: inherit;
}

.title-answer {
  display: block;
  margin-top: .08em;
  color: var(--paper);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 5px 5px 0 var(--signal);
  white-space: nowrap;
}

.home-lede {
  max-width: 620px;
  margin: 0;
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.home-stage .home-actions {
  width: min(650px, 100%);
  margin-top: 34px;
  position: relative;
  z-index: 1;
}

.home-stage .home-actions > button {
  width: 50%;
  min-height: 58px;
}

.home-stage .home-actions .start-button {
  width: 50%;
}

.home-stage .home-record {
  margin-top: 23px;
  position: relative;
  z-index: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.earth-orbit {
  width: 168px;
  height: 168px;
  position: absolute;
  z-index: 0;
  top: 74px;
  right: 12px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  opacity: .1;
  transform: rotate(10deg);
}

.earth-orbit::before,
.earth-orbit::after,
.earth-orbit i {
  content: "";
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.earth-orbit::before {
  width: 58px;
  height: 158px;
}

.earth-orbit::after {
  width: 158px;
  height: 58px;
}

.earth-orbit i {
  width: 128px;
  height: 128px;
  border-color: var(--signal);
}

.earth-orbit b {
  font-family: var(--display);
  font-size: 42px;
}

.earth-orbit span {
  position: absolute;
  bottom: -20px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .17em;
  white-space: nowrap;
}

.home-terminal {
  min-height: 470px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 3px solid var(--ink);
  background: var(--paper-white);
  box-shadow: 9px 9px 0 var(--ink);
  transform: rotate(1deg);
}

.terminal-head,
.terminal-verdict {
  min-height: 54px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.terminal-head {
  border-bottom: 3px solid var(--ink);
  font-size: 9px;
  letter-spacing: .1em;
}

.terminal-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.terminal-head i {
  width: 8px;
  height: 8px;
  display: inline-block;
  background: #28b469;
  box-shadow: 1px 1px 0 var(--ink);
}

.terminal-body {
  padding: 24px 19px;
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.terminal-system {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.terminal-message {
  max-width: 72%;
  display: grid;
  gap: 5px;
}

.terminal-message small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .09em;
}

.terminal-message strong {
  padding: 11px 13px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 14px;
}

.terminal-message.is-you {
  align-self: flex-end;
  text-align: right;
}

.terminal-message.is-you strong {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--signal);
}

.terminal-verdict {
  border-top: 3px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  font-size: 9px;
  letter-spacing: .09em;
}

.terminal-verdict b {
  padding: 8px 11px;
  color: var(--ink);
  background: var(--ai);
  box-shadow: 2px 2px 0 var(--paper);
  font-size: 10px;
}

.home-facts {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--ink);
  background: var(--ink);
  gap: 2px;
}

.home-facts > div {
  min-height: 82px;
  padding: 15px;
  display: grid;
  align-content: center;
  gap: 6px;
  background: var(--paper);
}

.home-facts b {
  color: var(--signal-dark);
  font-size: 15px;
}

.home-facts span {
  color: var(--muted);
  font-size: 9px;
}

.intro-screen {
  width: 100%;
  padding: 68px 0 48px;
  text-align: center;
}

.eyebrow,
.compliance-mark {
  display: inline-block;
  padding: 7px 11px;
  color: var(--paper);
  background: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

.intro-screen h1 {
  margin: 28px 0 18px;
  font-family: var(--display);
  font-size: clamp(58px, 10vw, 126px);
  font-weight: 900;
  line-height: .84;
  letter-spacing: -.045em;
}

.intro-screen h1 span {
  color: var(--paper);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 5px 5px 0 var(--signal);
}

.lede {
  max-width: 650px;
  margin: 0 auto 34px;
  font-size: 15px;
  line-height: 1.8;
}

.login-card {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 26px;
  position: relative;
  text-align: left;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.card-label {
  position: absolute;
  top: -13px;
  left: 18px;
  padding: 4px 8px;
  color: var(--paper);
  background: var(--ink);
  font-size: 10px;
  letter-spacing: .13em;
}

.login-card > label {
  display: block;
  margin: 4px 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 2px;
  border-bottom: 3px solid var(--ink);
}

.name-row > span {
  color: var(--signal);
  font-weight: 900;
}

.name-row input {
  width: 100%;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 18px;
  font-weight: 800;
}

.name-row input::placeholder {
  color: #8b887f;
  font-weight: 400;
}

.caret {
  width: 8px;
  height: 18px;
  flex: 0 0 auto;
  background: var(--signal);
  animation: blink 1s steps(1) infinite;
}

.assigned-id {
  margin: 10px 0 0;
  color: #5e5c56;
  font-size: 11px;
  letter-spacing: .07em;
}

.retention-line {
  margin: 9px 0 0;
  padding: 8px 10px;
  border: 2px dashed var(--signal);
  color: #8d2518;
  background: #fff1e8;
  font-size: 10px;
  font-weight: 900;
}

.start-button,
.next-button {
  width: 100%;
  min-height: 50px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 3px solid var(--ink);
  border-radius: 0;
  color: #fff;
  background: var(--signal);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.start-button:hover,
.next-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.start-button:disabled,
.next-button:disabled {
  opacity: .55;
  cursor: wait;
}

.login-card .start-button span { font-size: 21px; }

.rules-grid {
  max-width: 760px;
  margin: 48px auto 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  border: 2px solid var(--ink);
  background: var(--ink);
  text-align: left;
}

.rules-grid > div {
  padding: 18px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  background: var(--paper);
}

.rules-grid b {
  color: var(--signal);
  font-size: 21px;
}

.rules-grid span {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 900;
}

.rules-grid small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}

.stats-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
}

.stats-line b { color: var(--ink); }
.intro-back { margin-top: 16px; }

.match-screen {
  width: min(580px, 100%);
  padding: 54px 38px;
  text-align: center;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.radar {
  width: 156px;
  height: 156px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.radar::before,
.radar::after {
  content: "";
  position: absolute;
  background: var(--ink);
  opacity: .32;
}

.radar::before { width: 100%; height: 1px; }
.radar::after { width: 1px; height: 100%; }

.radar i {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(17, 17, 15, .35);
  border-radius: 50%;
}

.radar i:nth-of-type(2) { inset: 34px; }
.radar i:nth-of-type(3) {
  inset: 50%;
  width: 50%;
  height: 2px;
  transform-origin: 0 0;
  border: 0;
  border-radius: 0;
  background: var(--signal);
  animation: radar 1.7s linear infinite;
}

.radar-core {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  z-index: 2;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--signal);
  font-size: 30px;
  font-weight: 900;
}

.terminal-line {
  margin: 0 0 12px;
  color: var(--signal-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.match-screen h2 {
  margin: 0;
  font-size: 30px;
}

.match-screen > p:not(.terminal-line) {
  margin: 10px 0 26px;
  color: var(--muted);
  font-size: 13px;
}

.progress-grid {
  height: 16px;
  padding: 2px;
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 2px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.progress-grid i {
  min-width: 0;
  height: 100%;
  display: block;
  background: rgba(17, 17, 15, .1);
}

.progress-grid i.is-filled {
  background: var(--signal);
}

.match-meta {
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
}

.text-button {
  margin-top: 22px;
  padding: 4px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.text-button:hover { color: var(--signal-dark); }
.dots { animation: blink 1.2s steps(2) infinite; }

.chat-shell {
  width: min(860px, 100%);
  height: min(760px, calc(100vh - 88px));
  min-height: 610px;
  margin: 14px 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.chat-shell.is-result {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.chat-header {
  min-height: 82px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--ink);
}

.opponent {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--signal);
  font-size: 26px;
  font-weight: 900;
}

.opponent span,
.timer span {
  display: block;
  color: #6a675f;
  font-size: 9px;
  letter-spacing: .13em;
}

.opponent strong {
  display: block;
  font-size: 15px;
}

.opponent-copy { min-width: 0; }

.opponent-name-row {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.report-trigger {
  min-height: 24px;
  padding: 3px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--ink);
  color: var(--signal-dark);
  background: transparent;
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}

.report-trigger svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.report-trigger span {
  color: inherit;
  font-size: inherit;
  letter-spacing: .06em;
}

.report-trigger:hover {
  color: var(--paper);
  background: var(--signal);
}

.report-trigger:disabled {
  color: var(--muted);
  border-color: var(--muted);
  cursor: default;
  opacity: .7;
}

.timer {
  min-width: 104px;
  padding: 8px 11px;
  border-left: 2px solid var(--ink);
  text-align: right;
}

.timer strong {
  display: block;
  margin-top: 2px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.timer.is-urgent strong {
  color: var(--signal);
  animation: blink 1s steps(2) infinite;
}

.chat-status {
  padding: 7px 14px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  color: #66635d;
  font-size: 9px;
  letter-spacing: .08em;
}

.online-dot {
  width: 7px;
  height: 7px;
  margin-right: 5px;
  display: inline-block;
  background: #28b469;
  box-shadow: 1px 1px 0 var(--ink);
}

.messages {
  min-height: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  overflow-y: auto;
  scrollbar-color: var(--ink) var(--paper);
}

.system-message {
  align-self: center;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .07em;
  text-align: center;
}

.system-message.is-judgment {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--ai);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.55;
}

.message {
  max-width: min(76%, 540px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
}

.message > span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.message p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px 13px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.message time {
  grid-column: 2;
  grid-row: 1;
  color: var(--muted);
  font-size: 9px;
}

.message.is-self { align-self: flex-end; }
.message.is-self > span { text-align: right; }

.message.is-self p {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--signal);
}

.message.is-opponent { align-self: flex-start; }
.message.is-opponent p { background: var(--paper-white); }

.typing {
  margin: 0 22px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
}

.typing i {
  width: 5px;
  height: 5px;
  display: block;
  background: var(--ink);
  animation: typing .8s steps(2) infinite;
}

.typing i:nth-child(2) { animation-delay: .14s; }
.typing i:nth-child(3) { animation-delay: .28s; }
.typing span { margin-left: 5px; }

.chat-error {
  margin: 0 16px 8px;
  color: var(--signal-dark);
  font-size: 10px;
  font-weight: 900;
}

.compose {
  margin: 0 16px 14px;
  display: grid;
  grid-template-columns: 1fr 48px;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.compose textarea {
  height: 48px;
  min-height: 48px;
  max-height: 90px;
  padding: 13px;
  resize: none;
  outline: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.compose button {
  display: grid;
  place-items: center;
  border: 0;
  border-left: 3px solid var(--ink);
  color: var(--paper);
  background: var(--signal);
  cursor: pointer;
}

.compose button:disabled {
  color: #6d6a64;
  background: #d1cec5;
  cursor: not-allowed;
}

.verdict-bar {
  padding: 12px 15px;
  display: grid;
  grid-template-columns: 1fr 150px 150px;
  gap: 10px;
  align-items: center;
  border-top: 3px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.verdict-bar > div span {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.verdict-bar > div small {
  color: #aaa79e;
  font-size: 9px;
}

.verdict-bar button {
  min-height: 43px;
  border: 2px solid var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--paper);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.verdict-bar button b {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  display: inline-grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
}

.verdict-bar button.is-human { background: var(--human); }
.verdict-bar button.is-ai { background: var(--ai); }

.verdict-bar button:hover:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--paper);
}

.verdict-bar button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.verdict-bar button.is-selected {
  opacity: 1;
  outline: 3px solid var(--signal);
  outline-offset: -5px;
}

.post-round-actions {
  padding: 11px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  border-top: 3px solid var(--ink);
  background: #fff7df;
}

.post-round-actions > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.post-round-actions span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.post-round-actions strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-round-actions button {
  min-height: 38px;
  padding: 0 13px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: #fff;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.post-round-actions button.is-primary {
  color: #fff;
  background: var(--signal);
}

.turing-footer {
  min-height: 46px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .11em;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(17, 17, 15, .78);
  backdrop-filter: blur(3px);
}

.compliance-card {
  width: min(470px, 100%);
  max-height: calc(100vh - 40px);
  padding: 26px;
  overflow-y: auto;
  border: 4px solid var(--ink);
  background: var(--paper);
  box-shadow: 9px 9px 0 var(--violet);
}

.compliance-card h2 {
  margin: 16px 0 8px;
  font-size: 31px;
}

.compliance-card > p {
  margin: 0;
  color: #5f5c55;
  font-size: 11px;
  line-height: 1.6;
}

.compliance-warning {
  margin: 17px 0 14px;
  padding: 15px;
  border: 2px solid var(--ink);
  border-bottom: 4px solid var(--signal);
  background: #fff5dc;
  font-size: 10px;
}

.compliance-warning b { color: var(--signal-dark); }

.compliance-warning ul {
  margin: 10px 0 0;
  padding-left: 18px;
  line-height: 1.75;
}

.compliance-check {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.55;
}

.compliance-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--signal);
}

.compliance-check a {
  color: #534ab7;
  text-underline-offset: 2px;
}

.compliance-note {
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
  font-size: 9px !important;
}

.compliance-actions {
  margin-top: 17px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

.compliance-actions button {
  min-height: 44px;
  border: 3px solid var(--ink);
  background: transparent;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.compliance-actions button.is-primary {
  color: #fff;
  background: var(--signal);
}

.compliance-actions button:disabled {
  color: var(--muted);
  background: #d6d3ca;
  cursor: not-allowed;
}

.report-backdrop { z-index: 70; }

.report-card {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  padding: 24px;
  overflow-y: auto;
  border: 4px solid var(--ink);
  background: var(--paper);
  box-shadow: 9px 9px 0 var(--signal);
}

.report-head {
  padding-bottom: 14px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
}

.report-head span {
  color: var(--signal-dark);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
}

.report-head h2 {
  margin: 5px 0 0;
  font-size: 27px;
}

.report-head > button {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  background: #fff;
  font-size: 20px;
  cursor: pointer;
}

.report-card > p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.report-card fieldset {
  min-width: 0;
  margin: 19px 0 0;
  padding: 0;
  border: 0;
}

.report-card legend,
.report-detail > span {
  margin-bottom: 9px;
  display: block;
  font-size: 10px;
  font-weight: 900;
}

.report-card legend b,
.report-detail b {
  color: var(--signal-dark);
  font-size: 7px;
  letter-spacing: .1em;
}

.report-reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.report-reasons button {
  min-height: 39px;
  padding: 8px;
  border: 2px solid var(--ink);
  background: #fff;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.report-reasons button:hover,
.report-reasons button.is-selected {
  color: #fff;
  background: var(--signal);
  box-shadow: 3px 3px 0 var(--ink);
}

.report-detail {
  margin-top: 18px;
  display: block;
}

.report-detail textarea {
  width: 100%;
  min-height: 82px;
  padding: 10px;
  resize: vertical;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: #fff;
  outline: none;
  font-size: 10px;
  line-height: 1.6;
}

.report-detail textarea:focus {
  box-shadow: 3px 3px 0 var(--signal);
}

.report-error {
  color: var(--signal-dark) !important;
  font-weight: 900;
}

.report-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

.report-actions button {
  min-height: 44px;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.report-actions button.is-primary {
  color: #fff;
  background: var(--signal);
}

.report-actions button:disabled {
  color: var(--muted);
  background: #d6d3ca;
  cursor: not-allowed;
  box-shadow: none;
}

.result-card {
  width: min(430px, 100%);
  padding: 28px;
  position: relative;
  text-align: center;
  border: 4px solid var(--ink);
  background: var(--paper);
  box-shadow: 9px 9px 0 var(--signal);
  animation: pop .22s steps(3);
}

.result-card.is-wrong { box-shadow: 9px 9px 0 var(--violet); }

.result-close {
  width: 34px;
  height: 34px;
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}

.result-mark {
  display: inline-block;
  padding: 5px 9px;
  color: var(--paper);
  background: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.result-pixels {
  height: 48px;
  margin: 22px auto 12px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
}

.result-pixels i {
  width: 16px;
  border: 2px solid var(--ink);
  background: var(--signal);
}

.result-pixels i:nth-child(1),
.result-pixels i:nth-child(5) { height: 16px; }
.result-pixels i:nth-child(2),
.result-pixels i:nth-child(4) { height: 30px; }
.result-pixels i:nth-child(3) { height: 46px; }

.result-card h2 {
  margin: 8px 0;
  font-size: 34px;
  font-weight: 900;
}

.result-card > p {
  margin: 0;
  color: #5f5c55;
  font-size: 13px;
}

.opponent-verdict {
  margin: 18px 0 0;
  padding: 12px;
  display: grid;
  gap: 4px;
  border: 2px dashed var(--ink);
  background: #fff;
}

.opponent-verdict span {
  color: #666158;
  font-size: 9px;
  letter-spacing: .08em;
}

.opponent-verdict b { font-size: 15px; }

.opponent-verdict small {
  color: var(--violet);
  font-size: 9px;
  font-weight: 900;
}

.reward-result {
  margin-top: 12px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  align-items: center;
  border: 2px solid var(--ink);
  background: var(--ai);
  text-align: left;
}

.reward-result span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.reward-result b {
  grid-row: span 2;
  font-size: 20px;
}

.reward-result small {
  color: #5f4b15;
  font-size: 9px;
}

.result-score {
  margin: 22px 0 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  border: 2px solid var(--ink);
  text-align: left;
}

.result-score span { font-size: 10px; }
.result-score b { font-size: 17px; }

.result-score em {
  padding: 3px 6px;
  color: var(--paper);
  background: var(--ink);
  font-size: 11px;
  font-style: normal;
}

.result-actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.result-actions button {
  min-height: 46px;
  margin: 0;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.result-actions .next-button {
  color: #fff;
  background: var(--signal);
}

.settings-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: stretch end;
  background: rgba(17, 17, 15, .72);
  backdrop-filter: blur(3px);
}

.settings {
  width: min(420px, 100%);
  height: 100%;
  padding: 28px;
  overflow-y: auto;
  color: var(--ink);
  background: var(--paper);
  border-left: 3px solid var(--ink);
  box-shadow: -8px 0 0 var(--signal);
}

.settings-title {
  margin-bottom: 26px;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.settings-title span {
  color: var(--signal-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.settings-title h2 {
  margin: 5px 0 0;
  font-size: 28px;
}

.settings-title button {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.setting-row {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 2px solid var(--ink);
}

.setting-row span { display: grid; gap: 4px; }
.setting-row b { font-size: 12px; }
.setting-row small { color: var(--muted); font-size: 9px; }

.setting-row input {
  width: 19px;
  height: 19px;
  accent-color: var(--signal);
}

.retention-card {
  margin-top: 18px;
  padding: 15px;
  border: 2px dashed var(--signal);
  background: #fff1e8;
}

.retention-card b {
  color: var(--signal-dark);
  font-size: 10px;
  letter-spacing: .12em;
}

.retention-card p {
  margin: 8px 0 0;
  color: #5f5c55;
  font-size: 10px;
  line-height: 1.6;
}

.settings-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.toast {
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  transform: translateX(-50%);
  border: 2px solid var(--ink);
  color: #fff;
  background: var(--signal-dark);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes blink { 50% { opacity: .25; } }
@keyframes typing { 50% { transform: translateY(-3px); } }
@keyframes radar { to { transform: rotate(360deg); } }
@keyframes pop {
  from { transform: scale(.94); opacity: .35; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 700px) {
  .turing-topbar {
    min-height: 54px;
    height: auto;
    padding: 7px 10px;
    grid-template-columns: auto 1fr;
    gap: 8px;
  }

  .wordmark { display: none; }
  .top-actions { gap: 5px; }
  .turing-main {
    width: min(calc(100% - 20px), 1100px);
    min-height: calc(100vh - 98px);
  }

  .home-screen { padding: 36px 0 30px; }

  .home-simple {
    min-height: calc(100vh - 150px);
  }

  .home-simple h1 {
    font-size: clamp(64px, 18vw, 78px);
    line-height: .86;
  }

  .home-simple h1 span {
    -webkit-text-stroke-width: 2px;
    text-shadow: 4px 4px 0 var(--signal);
  }

  .home-simple .home-actions {
    margin-top: 42px;
  }

  .home-stage {
    min-height: calc(100vh - 300px);
    padding: 36px 0 8px;
  }

  .home-stage::before,
  .home-stage::after {
    width: 42px;
  }

  .home-kicker {
    gap: 7px;
    font-size: 7px;
  }

  .home-kicker span {
    padding: 6px 7px;
  }

  .home-stage h1 {
    margin: 28px 0 18px;
    font-size: clamp(62px, 18vw, 78px);
    line-height: .82;
  }

  .title-question {
    display: grid;
    gap: .06em;
  }

  .title-question small {
    font-size: .48em;
  }

  .title-answer {
    -webkit-text-stroke-width: 2px;
    text-shadow: 4px 4px 0 var(--signal);
  }

  .home-lede {
    max-width: 320px;
    font-size: 11px;
  }

  .home-stage .home-actions {
    margin-top: 30px;
  }

  .home-stage .home-actions > button,
  .home-stage .home-actions .start-button {
    width: 100%;
  }

  .home-stage .home-record {
    gap: 10px;
    font-size: 7px;
  }

  .earth-orbit {
    width: 104px;
    height: 104px;
    top: 82px;
    right: 6px;
  }

  .earth-orbit::before {
    width: 34px;
    height: 96px;
  }

  .earth-orbit::after {
    width: 96px;
    height: 34px;
  }

  .earth-orbit i {
    width: 76px;
    height: 76px;
  }

  .earth-orbit b {
    font-size: 26px;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .home-copy { text-align: center; }

  .home-copy h1 {
    margin-top: 20px;
    font-size: clamp(68px, 21vw, 92px);
  }

  .home-copy h1 span {
    -webkit-text-stroke-width: 2px;
    text-shadow: 4px 4px 0 var(--signal);
  }

  .home-copy > p {
    margin-inline: auto;
    font-size: 13px;
  }

  .home-actions {
    display: grid;
    gap: 10px;
  }

  .home-actions .start-button { width: 100%; }
  .home-record { justify-content: center; }

  .home-terminal {
    min-height: 390px;
    box-shadow: 5px 5px 0 var(--ink);
    transform: none;
  }

  .terminal-body { padding: 20px 14px; }

  .home-facts {
    margin-top: 38px;
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-screen { padding: 44px 0 34px; }

  .intro-screen h1 {
    font-size: clamp(54px, 19vw, 90px);
    line-height: .86;
  }

  .intro-screen h1 span {
    -webkit-text-stroke-width: 2px;
    text-shadow: 4px 4px 0 var(--signal);
  }

  .lede {
    margin-bottom: 32px;
    font-size: 14px;
    line-height: 1.9;
  }

  .desktop-only { display: none; }

  .login-card {
    padding: 23px 18px 20px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .rules-grid {
    margin-top: 48px;
    grid-template-columns: 1fr;
  }

  .rules-grid > div {
    min-height: 74px;
    grid-template-columns: 44px 1fr;
  }

  .stats-line { margin-bottom: 10px; }

  .match-screen {
    padding: 40px 22px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .progress-grid { gap: 1px; }

  .radar {
    width: 132px;
    height: 132px;
  }

  .chat-shell {
    width: 100%;
    height: calc(100dvh - 70px);
    min-height: 540px;
    margin: 8px 0;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .chat-header {
    min-height: 70px;
    padding: 10px 12px;
  }

  .avatar {
    width: 40px;
    height: 40px;
  }

  .opponent { gap: 9px; }
  .opponent strong { font-size: 12px; }
  .opponent-name-row { gap: 6px; }
  .report-trigger { padding: 3px 5px; }
  .report-trigger span { display: none; }

  .timer {
    min-width: 88px;
    padding-right: 4px;
  }

  .timer strong { font-size: 19px; }

  .chat-status { padding: 6px 10px; }

  .chat-status span:last-child {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .messages {
    padding: 15px 12px;
    gap: 14px;
  }

  .message { max-width: 86%; }

  .typing {
    margin-left: 12px;
    margin-right: 12px;
  }

  .compose {
    margin: 0 9px 9px;
    grid-template-columns: 1fr 44px;
  }

  .verdict-bar {
    padding: 9px;
    grid-template-columns: 1fr 1fr;
  }

  .verdict-bar > div {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .verdict-bar button { min-height: 42px; }

  .post-round-actions {
    padding: 9px;
    grid-template-columns: 1fr 1fr;
  }

  .post-round-actions > div { grid-column: 1 / -1; }
  .post-round-actions button { padding: 0 8px; }

  .turing-footer {
    min-height: 44px;
    padding: 7px 12px;
    gap: 10px;
  }

  .turing-footer span:nth-child(2) { display: none; }

  .backdrop { padding: 12px; }

  .compliance-card {
    max-height: calc(100dvh - 24px);
    padding: 19px 16px;
    box-shadow: 6px 6px 0 var(--violet);
  }

  .compliance-card h2 { font-size: 27px; }
  .compliance-warning { padding: 12px 13px; }
  .compliance-actions { grid-template-columns: 1fr; }

  .report-card {
    max-height: calc(100dvh - 24px);
    padding: 18px 15px;
    box-shadow: 6px 6px 0 var(--signal);
  }

  .report-head h2 { font-size: 24px; }
  .report-reasons { gap: 6px; }
  .report-reasons button { min-height: 42px; padding: 7px 4px; }

  .result-card {
    padding: 24px 18px;
    box-shadow: 6px 6px 0 var(--signal);
  }

  .result-card.is-wrong { box-shadow: 6px 6px 0 var(--violet); }
  .result-card h2 { font-size: 30px; }
  .settings { padding: 22px 18px; }
}

@media (max-width: 380px) {
  .home-copy h1 { font-size: 66px; }
  .home-facts > div { min-height: 72px; padding: 12px; }
  .intro-screen h1 { font-size: 60px; }
  .lede { font-size: 13px; }
  .rules-grid > div { padding: 15px; }
  .chat-shell { min-height: 510px; }
  .message p { font-size: 13px; }
  .verdict-bar { gap: 7px; }
  .verdict-bar button { font-size: 11px; }
}

.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
