/* BR0KE BOOKIES — readability and focus layer.
   Loaded after styles.css so the experience keeps its theme while stripping
   nonessential terminal chrome and making every required action obvious. */

:root {
  --header-height: 0px;
  --muted: rgba(var(--paper-rgb), 0.78);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.site-shell::after {
  display: none;
}

/* Keep mute accessible without carrying the full header through the flow. */
.topbar {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  display: block;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}

.brand,
.topbar__telemetry,
.live-indicator {
  display: none !important;
}

.topbar__actions {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: block;
  pointer-events: auto;
}

.icon-button {
  justify-content: center;
  min-width: 74px;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(var(--paper-rgb), 0.42);
  background: rgba(var(--night-rgb), 0.82);
  box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.16);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

.icon-button:hover {
  border-color: var(--paper);
  background: var(--accent);
  color: var(--night);
}

/* Diagnostic microcopy was atmospheric, but it competed with the flow. */
.eyebrow,
.boot-terminal__log,
.wheel-copy__lede,
.signal-meter,
.system-readout,
.wheel-station__coordinates,
.wheel-station__instruction,
.wheel-disc__inner small,
.tune-button small,
.wheel-label small,
.reveal-panel__kicker,
.reveal-panel__personality,
.identity-panel__code,
.identity-panel > p:not(.eyebrow),
.identity-panel__seal,
.field > small,
.task-header small,
.task-card__copy > span,
.task-card__copy > p,
.submit-strip small,
.card-copy > p:not(.eyebrow),
.card-copy__note,
.proof-dialog > p,
.proof-steps small,
.proof-form__status,
.cursor-probe__code,
.footer {
  display: none !important;
}

main {
  min-height: 100vh;
}

.screen {
  min-height: 100vh;
  padding: clamp(26px, 4vh, 44px) clamp(20px, 4vw, 64px);
}

/* One display voice: no serif or italic emphasis split. */
.boot-terminal h1,
.wheel-copy h1,
.reveal-panel h2,
.identity-panel h2,
.entry-form h1,
.card-copy h1,
.proof-dialog h2,
.task-card h3,
h1 em,
h2 em {
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-shadow:
    -1px 0 rgba(var(--accent-2-rgb), 0.65),
    1px 0 rgba(var(--accent-rgb), 0.72),
    0 0 26px rgba(var(--accent-rgb), 0.18);
  text-transform: uppercase;
}

h1 em,
h2 em,
.boot-terminal h1 em,
.wheel-copy h1 em,
.entry-form h1 em,
.card-copy h1 em,
.proof-dialog h2 em {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-shadow: inherit;
}

/* More unstable signal energy, kept behind the readable interface. */
.ambient::before,
.ambient::after {
  position: absolute;
  z-index: 2;
  width: min(52vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 44% 56% 63% 37%;
  content: "";
  filter: blur(54px);
  mix-blend-mode: screen;
  opacity: 0.22;
  pointer-events: none;
  animation: signal-orbit 14s ease-in-out infinite alternate;
}

.ambient::before {
  top: -30%;
  left: -12%;
  background:
    conic-gradient(
      from 30deg,
      transparent,
      rgba(var(--accent-rgb), 0.3),
      transparent 37%,
      rgba(var(--accent-2-rgb), 0.2),
      transparent 76%
    );
}

.ambient::after {
  right: -18%;
  bottom: -38%;
  background:
    conic-gradient(
      from 190deg,
      transparent,
      rgba(var(--accent-2-rgb), 0.24),
      transparent 42%,
      rgba(var(--warning-rgb), 0.14),
      transparent 78%
    );
  animation-direction: alternate-reverse;
}

.boot-terminal,
.identity-panel,
.entry-form,
.proof-dialog,
.canvas-frame {
  border-color: rgba(var(--accent-rgb), 0.4);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), transparent 30%),
    rgba(var(--night-rgb), 0.9);
  box-shadow:
    -2px 0 rgba(var(--accent-2-rgb), 0.24),
    2px 0 rgba(var(--accent-rgb), 0.28),
    0 30px 100px rgba(0, 0, 0, 0.46),
    inset 0 0 70px rgba(var(--accent-rgb), 0.035);
}

/* Wheel */
.wheel-layout {
  grid-template-columns: minmax(300px, 0.82fr) minmax(560px, 1.18fr);
  gap: clamp(30px, 5vw, 78px);
  width: min(1320px, 100%);
  min-height: 700px;
}

.wheel-copy h1 {
  max-width: 560px;
  font-size: clamp(54px, 5.6vw, 84px);
}

.wheel-station {
  min-height: 690px;
}

.wheel-shell {
  width: min(40vw, 610px);
  min-width: 540px;
  border-color: rgba(var(--accent-rgb), 0.62);
  box-shadow:
    0 0 0 12px rgba(var(--night-rgb), 0.78),
    0 0 0 14px rgba(var(--accent-rgb), 0.2),
    -10px 0 45px rgba(var(--accent-2-rgb), 0.15),
    10px 0 70px rgba(var(--accent-rgb), 0.18),
    inset 0 0 70px rgba(0, 0, 0, 0.84);
}

.wheel-label {
  width: 128px;
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--index) * 45deg))
    translateY(-180px)
    rotate(calc(var(--index) * -45deg));
}

.wheel-label b {
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px #000, 0 0 12px rgba(var(--paper-rgb), 0.8);
}

.tune-button {
  width: 158px;
  border-width: 2px;
  box-shadow:
    0 0 0 9px rgba(var(--night-rgb), 0.9),
    0 0 0 11px rgba(var(--accent-rgb), 0.58),
    0 0 52px rgba(var(--accent-rgb), 0.35);
}

.tune-button__label {
  max-width: 110px;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

/* Assignment reveal */
.reveal-panel {
  grid-template-columns: minmax(330px, 0.78fr) minmax(500px, 1.22fr);
  gap: clamp(28px, 4vw, 58px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.reveal-panel__image {
  height: min(64vh, 570px);
}

.reveal-panel__copy {
  max-width: 650px;
}

.reveal-panel h2 {
  max-width: 640px;
  font-size: clamp(58px, 5.6vw, 82px);
}

.trait-grid {
  margin-top: 26px;
  border-color: rgba(var(--accent-rgb), 0.45);
}

.trait-grid div {
  min-height: 82px;
  padding: 15px;
  background: rgba(var(--night-rgb), 0.8);
}

.trait-grid span {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.trait-grid strong {
  font-size: 14px;
  line-height: 1.25;
}

.stat-board {
  gap: 10px;
  margin: 18px 0 22px;
}

.stat-row {
  grid-template-columns: 58px 1fr 28px;
  gap: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.stat-row i {
  height: 5px;
}

.primary-button {
  min-height: 58px;
  font-size: 14px;
  letter-spacing: 0.025em;
}

.primary-button span {
  padding: 0 24px;
}

.primary-button b {
  width: 58px;
  font-size: 20px;
}

.primary-button--wide {
  min-width: min(390px, 100%);
}

/* Entry */
.screen--entry {
  align-items: center;
}

.entry-layout {
  grid-template-columns: minmax(300px, 0.65fr) minmax(700px, 1.35fr);
  gap: 24px;
  width: min(1320px, 100%);
}

.identity-panel {
  min-height: 640px;
  padding: 24px;
}

.identity-panel__hero {
  height: 455px;
  margin: -10px 0 -18px;
}

.identity-panel h2 {
  margin: 14px 0 0;
  font-size: clamp(40px, 3.5vw, 54px);
}

.entry-form {
  padding: 28px;
}

.entry-form__header {
  align-items: center;
  margin-bottom: 22px;
}

.entry-form h1 {
  font-size: clamp(44px, 4.3vw, 64px);
}

.entry-form__progress {
  width: 170px;
  font-size: 13px;
  font-weight: 800;
}

.field label {
  margin-bottom: 9px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.field__control {
  min-height: 54px;
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--night-rgb), 0.78);
}

.field__control > span {
  min-width: 52px;
  font-size: 13px;
}

.field input {
  color: var(--paper);
  font-size: 15px;
}

.field input::placeholder {
  color: rgba(var(--paper-rgb), 0.48);
}

.field__error {
  min-height: 18px;
  margin: 7px 0 0;
  font-size: 13px;
}

.task-header {
  margin: 8px 0 10px;
}

.task-header p {
  color: var(--paper);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.task-header p span {
  color: var(--accent);
}

.task-grid {
  gap: 8px;
}

.task-card,
.task-card--comment {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 82px;
  padding: 12px 14px;
  border-color: rgba(var(--accent-rgb), 0.28);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.1), transparent 56%),
    rgba(var(--night-rgb), 0.68);
}

.task-card--comment {
  min-height: 122px;
}

.task-card__index {
  width: 44px;
  height: 44px;
  font-size: 13px;
  font-weight: 900;
}

.task-card h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.task-card blockquote {
  max-width: 560px;
  margin: 9px 0;
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.comment-tools {
  gap: 8px;
}

.comment-tools button {
  min-height: 38px;
  padding: 0 11px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.task-card__actions {
  gap: 8px;
}

.secondary-button,
.verify-button {
  min-height: 48px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.verify-button {
  padding: 0;
}

.verify-button span {
  padding: 0 13px;
}

.verify-button b {
  width: 42px;
  font-size: 16px;
}

.submit-strip {
  margin-top: 14px;
  padding-top: 14px;
}

.submit-strip > div > span {
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
}

/* Card + proof */
.card-layout {
  gap: clamp(28px, 5vw, 76px);
  width: min(1240px, 100%);
}

.card-copy h1 {
  font-size: clamp(54px, 5.6vw, 80px);
}

.card-meta dt {
  font-size: 12px;
}

.card-meta dd {
  font-size: 14px;
}

.secondary-button--large {
  min-height: 58px;
  font-size: 14px;
}

.proof-dialog {
  width: min(720px, 100%);
  padding: clamp(28px, 4vw, 46px);
}

.proof-dialog h2 {
  max-width: 590px;
  padding-right: 40px;
  font-size: clamp(46px, 6vw, 68px);
}

.proof-steps {
  margin-top: 25px;
}

.proof-steps li {
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  min-height: 86px;
}

.proof-steps li > span {
  font-size: 13px;
  font-weight: 900;
}

.proof-steps strong {
  font-size: 16px;
  line-height: 1.2;
}

.proof-steps button,
.proof-steps a {
  min-height: 50px;
  padding: 0 16px;
  border-color: rgba(var(--accent-rgb), 0.55);
  color: var(--paper);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.proof-form {
  margin-top: 24px;
}

.proof-form label {
  margin-bottom: 9px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.proof-form__control {
  min-height: 58px;
  border-color: rgba(var(--accent-rgb), 0.48);
}

.proof-form input {
  color: var(--paper);
  font-size: 14px;
}

.proof-form__error {
  min-height: 18px;
  font-size: 13px;
}

@keyframes signal-orbit {
  0% {
    border-radius: 44% 56% 63% 37%;
    transform: translate3d(-3%, -2%, 0) rotate(-8deg) scale(0.92);
  }
  55% {
    border-radius: 63% 37% 40% 60%;
  }
  100% {
    border-radius: 35% 65% 56% 44%;
    transform: translate3d(8%, 6%, 0) rotate(14deg) scale(1.08);
  }
}

@media (max-width: 1180px) {
  .wheel-layout {
    grid-template-columns: minmax(260px, 0.7fr) minmax(500px, 1.3fr);
  }

  .wheel-shell {
    min-width: 500px;
  }

  .wheel-label {
    transform:
      translate(-50%, -50%)
      rotate(calc(var(--index) * 45deg))
      translateY(-168px)
      rotate(calc(var(--index) * -45deg));
  }

  .entry-layout {
    grid-template-columns: 290px 1fr;
  }

  .identity-panel {
    min-height: 620px;
  }

  .task-card,
  .task-card--comment {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .task-card__actions {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .screen {
    padding: 28px 18px 48px;
  }

  .wheel-copy {
    margin-bottom: 12px;
  }

  .wheel-copy h1 {
    max-width: 720px;
    margin: 0 auto;
    font-size: clamp(46px, 9vw, 70px);
  }

  .wheel-station {
    min-height: 590px;
  }

  .wheel-shell {
    width: min(78vw, 540px);
    min-width: 470px;
  }

  .reveal-panel {
    grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 1.28fr);
    gap: 22px;
  }

  .reveal-panel__image {
    height: min(57vh, 500px);
  }

  .entry-layout {
    grid-template-columns: 1fr;
    width: min(760px, 100%);
  }

  .identity-panel {
    grid-template-columns: 240px 1fr;
    min-height: 290px;
  }

  .identity-panel__hero {
    width: 235px;
    height: 250px;
  }
}

@media (max-width: 680px) {
  .topbar__actions {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
  }

  .icon-button {
    min-width: 66px;
    min-height: 44px;
    font-size: 11px;
  }

  .screen {
    padding: 66px 14px 34px;
  }

  .boot-terminal {
    padding: 28px 20px;
  }

  .boot-terminal h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .wheel-copy h1 {
    font-size: clamp(40px, 11vw, 58px);
  }

  .wheel-station {
    min-height: 460px;
  }

  .wheel-shell {
    width: min(94vw, 440px);
    min-width: 0;
  }

  .wheel-label {
    width: 88px;
    transform:
      translate(-50%, -50%)
      rotate(calc(var(--index) * 45deg))
      translateY(-31vw)
      rotate(calc(var(--index) * -45deg));
  }

  .wheel-label b {
    font-size: clamp(9px, 2.6vw, 12px);
  }

  .tune-button {
    width: 122px;
  }

  .tune-button__label {
    font-size: 14px;
  }

  .reveal-panel {
    grid-template-columns: 1fr;
    gap: 0;
    align-content: center;
  }

  .reveal-panel__image {
    height: 300px;
  }

  .reveal-panel h2 {
    font-size: clamp(46px, 14vw, 66px);
  }

  .trait-grid {
    margin-top: 16px;
  }

  .trait-grid div {
    min-height: 72px;
    padding: 10px;
  }

  .trait-grid span {
    font-size: 10px;
  }

  .trait-grid strong {
    font-size: 12px;
  }

  .identity-panel {
    min-height: 430px;
  }

  .identity-panel__hero {
    height: 310px;
  }

  .entry-form {
    padding: 20px 14px;
  }

  .entry-form h1 {
    font-size: 43px;
  }

  .entry-form__progress {
    margin-top: 13px;
    font-size: 13px;
  }

  .task-header p {
    font-size: 14px;
  }

  .task-card,
  .task-card--comment {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 11px;
  }

  .task-card h3 {
    font-size: 16px;
  }

  .task-card blockquote {
    font-size: 14px;
  }

  .task-card__actions {
    grid-column: 1 / -1;
  }

  .secondary-button,
  .verify-button {
    flex: 1;
    font-size: 12px;
  }

  .submit-strip > div > span {
    display: block;
    text-align: center;
  }

  .proof-dialog {
    padding: 28px 16px;
  }

  .proof-dialog h2 {
    font-size: 44px;
  }

  .proof-steps li {
    grid-template-columns: 34px 1fr;
    padding: 13px 0;
  }

  .proof-steps li > button,
  .proof-steps li > a {
    grid-column: 2;
    width: 100%;
  }
}

@media (max-width: 430px) {
  .wheel-label {
    transform:
      translate(-50%, -50%)
      rotate(calc(var(--index) * 45deg))
      translateY(-29.5vw)
      rotate(calc(var(--index) * -45deg));
  }

  .wheel-label b {
    max-width: 74px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient::before,
  .ambient::after {
    animation: none;
  }
}
