/* src/player.css */
.code-red {
  max-width: 1180px;
}
.code-red > p,
.code-red > form {
  max-width: 760px;
}
.code-red-button {
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: 8px;
  background: var(--link, #c8323c);
  color: var(--bg, #fff);
  cursor: pointer;
  font-weight: 600;
}
.code-red-button:disabled {
  opacity: 0.5;
  cursor: default;
}
.code-red-status {
  color: var(--muted, #777);
  min-height: 1.65em;
  margin-block: 0.65rem;
  font-size: 0.9rem;
}
.code-red-error {
  color: #b82727;
  overflow-wrap: anywhere;
}
.code-red-game > #code-red-game {
  width: 100%;
  height: 100%;
}
.code-red-muted {
  color: var(--muted, #777);
}
.code-red-help {
  font-size: 0.85rem;
}
.code-red-game {
  width: 100%;
  height: min(78dvh, 650px);
  min-height: 450px;
  background: #080808;
  border-radius: 10px;
  overflow: hidden;
  scroll-margin-top: 12px;
}
.code-red [hidden] {
  display: none;
}
.code-red-game .b_speed_fast,
.code-red-game .b_speed_slow {
  display: none;
}
.code-red-credit {
  font-size: 0.7rem;
  margin-block: 0.65rem;
}
@media (min-width: 700px) {
  .code-red-game {
    min-height: 500px;
  }
}
.code-red-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.code-red-toolbar[hidden] {
  display: none;
}
.code-red-speed {
  min-width: 64px;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--muted, #777);
  border-radius: 22px;
  background: transparent;
  color: inherit;
  font: 600 1rem/1 system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.code-red-speed.code-red-speed-on {
  background: var(--link, #c8323c);
  border-color: var(--link, #c8323c);
  color: var(--bg, #fff);
}
.code-red-join {
  display: grid;
  gap: .6rem;
  max-width: 360px;
  margin-block: 1rem;
}
.code-red-join[hidden] {
  display: none;
}
.code-red-join p {
  margin: 0;
}
.code-red-join label {
  display: grid;
  gap: .25rem;
  font-size: .9rem;
}
.code-red-join input {
  font-size: 16px;
  padding: .5rem;
  border-radius: 6px;
  border: 1px solid var(--muted, #777);
  background: transparent;
  color: inherit;
}
.code-red-join .code-red-button {
  justify-self: start;
}
.code-red-join a {
  color: inherit;
}
.code-red-signedout {
  display: grid;
  gap: .6rem;
  max-width: 420px;
  margin-block: 1rem;
  padding: .8rem 1rem;
  border: 1px solid var(--muted, #777);
  border-radius: 8px;
}
.code-red-signedout[hidden] {
  display: none;
}
.code-red-signedout p {
  margin: 0;
}
.code-red-signedout .code-red-button {
  justify-self: start;
}
.code-red-game {
  position: relative;
}
.code-red-agent-box {
  position: absolute;
  left: 3%;
  right: 3%;
  top: 3%;
  z-index: 5;
  padding: .55rem .8rem;
  background: #f8f8f0;
  color: #383838;
  border: 3px solid #607088;
  border-radius: 8px;
  box-shadow: 0 0 0 3px #f8f8f0, 0 0 0 5px #405068;
  font:
    600 15px/1.35 ui-monospace,
    "Courier New",
    monospace;
  letter-spacing: .02em;
  pointer-events: none;
}
.code-red-agent-box[hidden] {
  display: none;
}
.code-red-agent-head {
  color: #c03028;
}
.code-red-agent-body {
  min-height: 1.35em;
}
.code-red-agent-foot {
  color: #607088;
  font-size: 13px;
  text-align: right;
}
.code-red-agent-busy .code-red-agent-head::after {
  content: "";
  display: inline-block;
  width: .5em;
  animation: code-red-blink 1s steps(2) infinite;
}
@keyframes code-red-blink {
  50% {
    opacity: 0;
  }
}
.code-red-agent-card {
  padding: .5rem .65rem;
  background: #f8f8f0;
  color: #383838;
  border: 3px solid #c03028;
  border-radius: 8px;
  box-shadow: 0 0 0 3px #f8f8f0, 0 0 0 5px #803020;
  font:
    600 12px/1.35 ui-monospace,
    "Courier New",
    monospace;
  pointer-events: none;
}
.code-red-agent-card[hidden] {
  display: none;
}
.code-red-agent-card p {
  margin: .3rem 0;
}
.code-red-agent-card ul {
  list-style: none;
  margin: .2rem 0;
  padding: 0;
}
.code-red-agent-card li {
  margin: .25rem 0;
}
.code-red-agent-card li span {
  color: #607088;
}
.code-red-agent-card li small {
  display: block;
  color: #505050;
  font-weight: 500;
}
.code-red-card-head {
  color: #c03028;
  font-size: 14px;
}
.code-red-card-head span {
  color: #607088;
  font-size: 11px;
}
.code-red-card-sub {
  color: #607088;
  font-weight: 500;
}
@media (max-width: 640px) {
  .code-red-agent-card {
    left: 2%;
    right: 2%;
    width: auto;
    font-size: 11px;
  }
  .code-red-agent-card li small,
  .code-red-agent-card > p:nth-of-type(1) {
    display: none;
  }
}
.code-red {
  container-type: inline-size;
}
.code-red-stage {
  display: grid;
  gap: 0.5rem;
}
.code-red-side {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  min-width: 0;
}
.code-red-side[hidden] {
  display: none;
}
.code-red-code {
  display: grid;
  gap: 0.5rem;
  min-height: 0;
  font:
    12px/1.45 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}
.code-red-code[hidden] {
  display: none;
}
.code-red-code-pane {
  display: flex;
  flex-direction: column;
  min-height: 9.5rem;
  max-height: 15rem;
  border-radius: 10px;
  background: #101418;
  color: #d8dee4;
  overflow: hidden;
  border: 2px solid transparent;
}
.code-red-code-pane header {
  padding: 0.35rem 0.6rem;
  background: #1c232b;
  font: 600 12px/1.3 system-ui, sans-serif;
}
.code-red-code-pane header small {
  font-weight: 400;
  color: #9aa7b3;
}
.code-red-code-pane pre {
  flex: 1;
  margin: 0;
  padding: 0.4rem 0.6rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.code-red-code-pane footer {
  padding: 0.3rem 0.6rem;
  font: 600 12px/1.3 system-ui, sans-serif;
  color: #9aa7b3;
  border-top: 1px solid #1c232b;
}
.code-red-code-pane[data-side=foe] header {
  background: #2a1d20;
}
.code-red-code-pane[data-folded] {
  min-height: 0;
  flex: 0 0 auto;
}
.code-red-code-pane[data-glyphs] pre {
  font-size: 1.2em;
  line-height: 1.7;
  letter-spacing: 0.12em;
  color: #9fd1ff;
}
.code-red-code-pane[data-folded] pre {
  display: none;
}
.code-red-code {
  grid-template-rows: auto auto;
  align-content: start;
}
.code-red-code-pane[data-state=hit] {
  border-color: #2f9e5b;
}
.code-red-code-pane[data-state=hit] footer {
  color: #5fd38d;
}
.code-red-code-pane[data-state=miss] {
  border-color: #c8323c;
}
.code-red-code-pane[data-state=miss] footer {
  color: #ff7a82;
}
@container (min-width: 980px) {
  .code-red-stage {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  }
  .code-red-code-pane {
    max-height: none;
  }
}
.code-red-eeg {
  border-radius: 10px;
  background: #101418;
  color: #d8dee4;
  font: 13px/1.45 system-ui, sans-serif;
  overflow: hidden;
}
.code-red-eeg[hidden] {
  display: none;
}
.code-red-eeg > header {
  padding: .4rem .7rem;
  background: #1c232b;
}
.code-red-eeg > header small {
  color: #9aa7b3;
  margin-left: .4rem;
}
.code-red-eeg-body {
  display: grid;
  min-height: 12rem;
}
.code-red-eeg-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  border-bottom: 1px solid #1c232b;
  padding: .4rem;
  max-height: 9rem;
  overflow: auto;
}
.code-red-eeg-list h4 {
  flex-basis: 100%;
  margin: .2rem .2rem 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #9aa7b3;
}
.code-red-eeg-list button {
  text-align: left;
  padding: .25rem .45rem;
  border: 1px solid #243040;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.code-red-eeg-list button small {
  display: block;
  color: #9aa7b3;
}
.code-red-eeg-list button[aria-pressed=true] {
  background: #243040;
}
.code-red-eeg-mind {
  padding: .5rem .8rem .8rem;
  max-height: 40rem;
  overflow: auto;
  min-width: 0;
}
.code-red-eeg-now {
  display: grid;
  gap: .3rem;
  padding: .5rem .6rem;
  margin: .2rem 0 .5rem;
  background: #141a22;
  border-radius: 8px;
}
.code-red-eeg-now p {
  margin: 0;
}
.code-red-eeg-label {
  display: inline-block;
  min-width: 6.5rem;
  color: #9aa7b3;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.code-red-eeg-form {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
  margin-right: .4rem;
}
.code-red-eeg-form i {
  width: 7px;
  height: 12px;
  border-radius: 2px;
}
.code-red-eeg-form i.is-hit {
  background: #5fd38d;
}
.code-red-eeg-form i.is-miss {
  background: #ff7a82;
}
.code-red-eeg-mind h3 {
  margin: .2rem 0 .4rem;
  font-size: 16px;
}
.code-red-eeg-mind h3 small,
.code-red-eeg-mind h4 small {
  font-weight: 400;
  color: #9aa7b3;
}
.code-red-eeg-mind h4 {
  margin: .8rem 0 .3rem;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #9aa7b3;
}
.code-red-eeg-mind h5 {
  margin: .7rem 0 .3rem;
  font-size: 12px;
}
.code-red-eeg-mind p {
  margin: .25rem 0;
}
.code-red-eeg-mind pre {
  margin: .3rem 0;
  padding: .4rem .6rem;
  background: #0a0d10;
  border-radius: 6px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font:
    12px/1.45 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}
.code-red-eeg-system {
  padding: .4rem .6rem;
  border-left: 3px solid #4c7cff;
  background: #141a22;
  border-radius: 0 6px 6px 0;
}
.code-red-eeg-chip {
  display: inline-block;
  padding: .05rem .45rem;
  border-radius: 999px;
  background: #243040;
  font-size: 12px;
}
.code-red-eeg-chip.is-learned {
  background: #1f4d33;
}
.code-red-eeg-hot {
  display: grid;
  gap: .25rem;
  margin-top: .5rem;
}
.code-red-eeg-hot small {
  color: #9aa7b3;
}
.code-red-eeg-hot textarea {
  font:
    13px/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  padding: .4rem .5rem;
  border-radius: 6px;
  border: 1px solid #2a3542;
  background: #0a0d10;
  color: inherit;
  resize: vertical;
}
.code-red-eeg-turn summary {
  cursor: pointer;
}
.code-red-eeg-turn[data-verdict=hit] summary {
  color: #5fd38d;
}
.code-red-eeg-turn[data-verdict=miss] summary {
  color: #ff7a82;
}
.code-red-eeg-turn summary small {
  color: #9aa7b3;
}
.code-red-eeg .code-red-muted {
  color: #9aa7b3;
}
.code-red-eeg-scan {
  position: relative;
  max-width: 504px;
  aspect-ratio: 168 / 88;
  margin: .4rem 0 .5rem;
  border: 2px solid #1c2a33;
  border-radius: 4px;
  background: #101820;
}
.code-red-eeg-scan canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.code-red-eeg-scan span {
  position: absolute;
  transform: translateY(1px);
  font:
    700 10px/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: .08em;
  color: #7a9898;
  pointer-events: none;
}
.code-red-eeg-scan span.is-on {
  color: #dce8d4;
}
.code-red-eeg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: .2rem 0 .4rem;
}
.code-red-eeg-tabs button {
  padding: .2rem .45rem;
  border: 0;
  border-radius: 3px;
  background: #141c24;
  color: #7a9898;
  font:
    700 11px/1.2 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: .06em;
  cursor: pointer;
}
.code-red-eeg-tabs button[aria-selected=true] {
  background: #f8d860;
  color: #0a1018;
}
.code-red-eeg-tab {
  min-height: 5.5rem;
  padding: .3rem .6rem;
  background: #0a1018;
  border-radius: 4px;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size: 12.5px;
}
.code-red-eeg-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1rem;
}
@media (max-width: 600px) {
  .code-red-eeg-body {
    grid-template-columns: 1fr;
  }
  .code-red-eeg-list {
    border-right: 0;
    border-bottom: 1px solid #1c232b;
    max-height: 10rem;
  }
}
.code-red-hot-editor {
  padding: .8rem 1rem;
  border-radius: 10px;
  background: #101418;
  color: #d8dee4;
  font: 14px/1.45 system-ui, sans-serif;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  display: grid;
  gap: .4rem;
}
.code-red-hot-editor[hidden] {
  display: none;
}
.code-red-hot-editor h3 {
  margin: 0;
  font-size: 16px;
}
.code-red-hot-editor p {
  margin: 0;
}
.code-red-hot-editor textarea {
  width: 100%;
  box-sizing: border-box;
  font:
    14px/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  padding: .4rem .5rem;
  border-radius: 6px;
  border: 1px solid #2a3542;
  background: #0a0d10;
  color: inherit;
  resize: vertical;
}
.code-red-hot-editor small {
  color: #9aa7b3;
}
.code-red-button-quiet {
  background: transparent;
  border: 1px solid var(--muted, #777);
  color: inherit;
}
.code-red-recovery {
  display: grid;
  gap: .6rem;
  max-width: 420px;
  margin-block: 1rem;
  padding: .8rem 1rem;
  border: 2px solid #c8323c;
  border-radius: 8px;
}
.code-red-recovery[hidden] {
  display: none;
}
.code-red-recovery p {
  margin: 0;
}
.code-red-recovery-code {
  font:
    700 22px/1.3 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: .08em;
  user-select: all;
}
.code-red-recovery .code-red-button {
  justify-self: start;
}
.code-red-account {
  display: grid;
  gap: .8rem;
  max-width: 420px;
  margin-block: 1rem;
  padding: .8rem 1rem;
  border: 1px solid var(--muted, #777);
  border-radius: 8px;
}
.code-red-account[hidden] {
  display: none;
}
.code-red-account form {
  display: grid;
  gap: .4rem;
}
.code-red-account p {
  margin: 0;
}
.code-red-account label {
  display: grid;
  gap: .25rem;
  font-size: .9rem;
}
.code-red-account input {
  font-size: 16px;
  padding: .5rem;
  border-radius: 6px;
  border: 1px solid var(--muted, #777);
  background: transparent;
  color: inherit;
}
.code-red-account .code-red-button {
  justify-self: start;
}
.code-red-account a,
.code-red-help a {
  color: inherit;
}
/*# sourceMappingURL=code-red.css.map */
