/* CIPHER CIRCUS — The Lab */

@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/press-start-2p.woff2") format("woff2");
}
@font-face {
  font-family: "Press Start 2P Fallback";
  src: local("Courier New");
  size-adjust: 166.64%;
  ascent-override: 60%;
  descent-override: 0%;
  line-gap-override: 0%;
}

:root {
  --bg: #0a0a12;
  --surface: #12121d;
  --surface-2: #1a1a2a;
  --line: #28283c;
  --text: #e9e9f2;
  --dim: #9aa0b5;
  --cyan: #45f0ff;
  --magenta: #ff3d8b;
  --gold: #ffc857;
  --green: #41ff8b;
  --red: #ff5560;

  --pixel: "Press Start 2P", "Press Start 2P Fallback", "Courier New", monospace;
  --body: -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 150ms;
  --normal: 300ms;

  --glow-cyan: 0 0 14px rgba(69, 240, 255, 0.35);
  --glow-magenta: 0 0 14px rgba(255, 61, 139, 0.4);
  --glow-gold: 0 0 14px rgba(255, 200, 87, 0.38);
  --glow-green: 0 0 14px rgba(65, 255, 139, 0.35);

  --space-gutter: clamp(16px, 4vw, 48px);
  --radius: 10px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 520px at 80% -8%, rgba(255, 61, 139, 0.06), transparent 64%),
    radial-gradient(1200px 560px at 18% -10%, rgba(69, 240, 255, 0.07), transparent 66%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(15px, 0.92rem + 0.18vw, 16px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(69, 240, 255, 0.3);
  color: #fff;
}

a {
  color: var(--cyan);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(69, 240, 255, 0.18);
  border-radius: 3px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 200;
  background: var(--cyan);
  color: #05050d;
  padding: 10px 16px;
  border-radius: 6px;
  font-family: var(--mono);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--fast) var(--ease-out);
}
.skip-link:focus-visible {
  transform: translateY(64px);
}

/* ---------- CRT scanline overlay ---------- */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.13) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.6;
}

/* ---------- fixed back-to-lab link ---------- */
.lab-link {
  position: fixed;
  top: clamp(10px, 2.4vw, 18px);
  left: clamp(10px, 2.4vw, 18px);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 0.85em;
  font-family: var(--pixel);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--dim);
  text-decoration: none;
  background: rgba(10, 10, 18, 0.72);
  border: 1px solid var(--line);
  border-radius: 6px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    color var(--fast) ease,
    border-color var(--fast) ease,
    box-shadow var(--fast) ease,
    transform var(--fast) var(--ease-out);
}
.lab-link__chev {
  display: inline-block;
  transition: transform var(--fast) var(--ease-out);
}
.lab-link:hover,
.lab-link:focus-visible {
  color: var(--cyan);
  border-color: rgba(69, 240, 255, 0.6);
  box-shadow: var(--glow-cyan);
}
.lab-link:hover .lab-link__chev,
.lab-link:focus-visible .lab-link__chev {
  transform: translateX(-3px);
}

/* ---------- shell + header ---------- */
.shell {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 2;
  padding-top: clamp(64px, 12vw, 92px);
  padding-bottom: clamp(18px, 4vw, 30px);
}

.level {
  margin: 0 0 0.7rem;
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}

.wordmark {
  margin: 0;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(1.5rem, 0.45rem + 5.6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--text);
  text-shadow:
    0 0 16px rgba(69, 240, 255, 0.34),
    0 0 46px rgba(69, 240, 255, 0.15);
}

.tagline {
  margin: 0.9rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.1rem);
  max-width: 46rem;
}

.cursor {
  display: inline-block;
  color: var(--magenta);
  transform: translateY(1px);
  animation: blink 1.1s steps(2, jump-none) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- layout ---------- */
.app-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2.6vw, 22px);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* ---------- panels ---------- */
.panel {
  position: relative;
  width: 100%;
  padding: clamp(1.1rem, 2.6vw, 1.6rem);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 64%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* pixel notch top-left, echoing the arcade cards */
.panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 1.4rem;
  width: 2.6rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  opacity: 0.85;
}
.text-panel::before {
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.frequency-panel::before {
  background: var(--magenta);
  box-shadow: var(--glow-magenta);
}
.brute-panel::before {
  background: var(--gold);
  box-shadow: var(--glow-gold);
}
.notes-panel::before {
  background: var(--green);
  box-shadow: var(--glow-green);
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.panel-title {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.05em;
  color: var(--text);
}
.panel-title__num {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}
.panel-title__sep {
  color: var(--line);
}
.frequency-panel .panel-title__num {
  color: var(--magenta);
  text-shadow: var(--glow-magenta);
}
.brute-panel .panel-title__num {
  color: var(--gold);
  text-shadow: var(--glow-gold);
}
.notes-panel .panel-title__num {
  color: var(--green);
  text-shadow: var(--glow-green);
}

.panel-note {
  margin: 0 0 1.1rem;
  color: var(--dim);
  font-size: 0.92rem;
}

/* ---------- status pill ---------- */
.status-pill {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(65, 255, 139, 0.4);
  border-radius: 999px;
  background: rgba(10, 16, 13, 0.7);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.status-pill::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.status-pill[data-state="error"] {
  border-color: rgba(255, 85, 96, 0.5);
  background: rgba(24, 10, 12, 0.7);
  color: var(--red);
}

/* ---------- field labels & help ---------- */
.field-label {
  display: block;
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.field-help {
  margin: 0;
  color: var(--dim);
  font-size: 0.82rem;
}

/* ---------- console form ---------- */
.cipher-form {
  display: grid;
  gap: 1.3rem;
}

.cipher-rack {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.7rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  position: relative;
  cursor: pointer;
}
.chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 10, 18, 0.55);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition:
    color var(--fast) ease,
    background-color var(--fast) ease,
    border-color var(--fast) ease,
    box-shadow var(--fast) ease,
    transform var(--fast) var(--ease-out);
}
.chip:hover span {
  color: var(--text);
  border-color: rgba(69, 240, 255, 0.45);
  transform: translateY(-2px);
}
.chip input:checked + span {
  color: #05050d;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.chip input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(69, 240, 255, 0.18);
}

/* ---------- console row: mode + key ---------- */
.console-row {
  display: grid;
  gap: 1.3rem;
}

.mode-toggle {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.7rem;
}
.toggle-track {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(10, 10, 18, 0.55);
  width: fit-content;
}
.toggle-option {
  position: relative;
  cursor: pointer;
}
.toggle-option input {
  position: absolute;
  inset: 0;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}
.toggle-option span {
  display: grid;
  place-items: center;
  min-width: 5.5rem;
  min-height: 2.5rem;
  padding-inline: 0.6rem;
  border-radius: 6px;
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--dim);
  transition:
    color var(--fast) ease,
    background-color var(--fast) ease,
    box-shadow var(--fast) ease;
}
.toggle-option:hover span {
  color: var(--text);
}
.toggle-option input:checked + span {
  color: #05050d;
  background: var(--gold);
  box-shadow: var(--glow-gold);
}
.toggle-option input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(69, 240, 255, 0.18);
}

/* ---------- key bay ---------- */
.key-bay {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}
.key-panel {
  display: grid;
  gap: 0.55rem;
  max-width: 22rem;
}
.key-panel--note {
  max-width: 32rem;
}

.field-control {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 14, 0.85);
  color: var(--text);
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition:
    border-color var(--fast) ease,
    box-shadow var(--fast) ease;
}
.field-control:hover {
  border-color: rgba(69, 240, 255, 0.4);
}
.field-control:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(69, 240, 255, 0.16), inset 0 0 18px rgba(69, 240, 255, 0.04);
}

.no-key-note {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(10, 16, 13, 0.45);
  color: var(--dim);
  font-size: 0.92rem;
}

/* ---------- buttons ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    color var(--fast) ease,
    background-color var(--fast) ease,
    border-color var(--fast) ease,
    box-shadow var(--fast) ease,
    transform var(--fast) var(--ease-out);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.btn--primary {
  color: #05050d;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(255, 200, 87, 0.22);
}
.btn--primary:hover {
  background: #ffd67a;
  box-shadow: var(--glow-gold);
}
.btn--primary.is-copied {
  color: #05050d;
  background: var(--green);
  border-color: var(--green);
  box-shadow: var(--glow-green);
}

/* ---------- text grid ---------- */
.text-grid {
  display: grid;
  gap: 1.1rem;
}

.field-group {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.output-label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.text-area {
  width: 100%;
  min-height: 9rem;
  resize: vertical;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 14, 0.85);
  color: var(--text);
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.6;
  transition:
    border-color var(--fast) ease,
    box-shadow var(--fast) ease;
}
.text-area::placeholder {
  color: var(--dim);
  opacity: 0.7;
}
.text-area:hover {
  border-color: rgba(69, 240, 255, 0.4);
}
.text-area:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(69, 240, 255, 0.16), inset 0 0 18px rgba(69, 240, 255, 0.04);
}

.text-area--output {
  color: var(--green);
  background: rgba(10, 16, 13, 0.85);
  border-color: rgba(65, 255, 139, 0.26);
  text-shadow: 0 0 10px rgba(65, 255, 139, 0.16);
}
.text-area--output:hover {
  border-color: rgba(65, 255, 139, 0.5);
}
.text-area--output:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(65, 255, 139, 0.16), inset 0 0 18px rgba(65, 255, 139, 0.05);
}

.text-counts {
  margin: 1.1rem 0 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--dim);
  letter-spacing: 0.02em;
}

/* ---------- frequency scope ---------- */
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--dim);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}
.legend-swatch {
  display: inline-block;
  width: 0.95rem;
  height: 0.6rem;
  border-radius: 2px;
}
.legend-swatch--input {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(69, 240, 255, 0.45);
}
.legend-swatch--output {
  background: var(--magenta);
  box-shadow: 0 0 8px rgba(255, 61, 139, 0.45);
}

.frequency-chart {
  display: grid;
  gap: 0.4rem;
}

.frequency-row {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
}

.frequency-letter {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--text);
  text-align: center;
}

.frequency-bars {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.frequency-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem;
  gap: 0.55rem;
  align-items: center;
}

.frequency-track {
  display: block;
  height: 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.frequency-bar {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  transition: width var(--normal) var(--ease-out);
}

.frequency-line--input .frequency-bar {
  background: linear-gradient(90deg, rgba(69, 240, 255, 0.55), var(--cyan));
  box-shadow: 0 0 8px rgba(69, 240, 255, 0.35);
}
.frequency-line--output .frequency-bar {
  background: linear-gradient(90deg, rgba(255, 61, 139, 0.55), var(--magenta));
  box-shadow: 0 0 8px rgba(255, 61, 139, 0.35);
}

.frequency-value {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--dim);
  text-align: right;
  white-space: nowrap;
}

/* ---------- Caesar crack grid ---------- */
.brute-force-list {
  display: grid;
  gap: 0.7rem;
}

.brute-row {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 14, 0.55);
  overflow: hidden;
  transition:
    border-color var(--fast) ease,
    box-shadow var(--fast) ease;
}
.brute-row:hover {
  border-color: rgba(255, 200, 87, 0.5);
  box-shadow: 0 0 14px rgba(255, 200, 87, 0.12);
}

.brute-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem 0.5rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 200, 87, 0.04);
}

.brute-row h3 {
  margin: 0;
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.btn--mini {
  min-height: 2.1rem;
  padding: 0.35rem 0.7rem;
  font-size: 8px;
  background: transparent;
  border-color: var(--line);
  color: var(--dim);
}
.btn--mini:hover {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
}

.brute-output {
  margin: 0;
  min-height: 2.6rem;
  max-height: 11rem;
  overflow: auto;
  padding: 0.6rem 0.75rem;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- field notes ---------- */
.notes-grid {
  display: grid;
  gap: 0.9rem;
}

.note-card {
  position: relative;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 14, 0.5);
}
.note-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.note-card p {
  margin: 0;
  color: var(--dim);
  font-size: 0.92rem;
}
.note-card--cyan {
  border-left-color: var(--cyan);
}
.note-card--cyan h3 {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}
.note-card--magenta {
  border-left-color: var(--magenta);
}
.note-card--magenta h3 {
  color: var(--magenta);
  text-shadow: var(--glow-magenta);
}
.note-card--gold {
  border-left-color: var(--gold);
}
.note-card--gold h3 {
  color: var(--gold);
  text-shadow: var(--glow-gold);
}
.note-card--green {
  border-left-color: var(--green);
}
.note-card--green h3 {
  color: var(--green);
  text-shadow: var(--glow-green);
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1.2rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 85, 96, 0.35);
  border-radius: 8px;
  background: rgba(24, 10, 12, 0.45);
  color: var(--dim);
  font-size: 0.9rem;
}
.privacy-note strong {
  color: var(--red);
}
.privacy-note__tag {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  background: var(--red);
  color: #05050d;
  font-family: var(--pixel);
  font-size: 10px;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: clamp(1.6rem, 4vw, 2.6rem) var(--space-gutter) clamp(1.4rem, 4vw, 2rem);
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer-flavor {
  margin: 0;
  font-family: var(--pixel);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--dim);
}

/* ---------- responsive: tablet ---------- */
@media (min-width: 680px) {
  .section-heading {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .console-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 1.6rem;
  }
  .text-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brute-force-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- responsive: desktop ---------- */
@media (min-width: 1024px) {
  .app-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .console-panel,
  .text-panel,
  .frequency-panel,
  .brute-panel,
  .notes-panel {
    grid-column: 1 / -1;
  }
  .notes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .brute-force-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .brute-force-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ---------- responsive: small phones ---------- */
@media (max-width: 380px) {
  .toggle-option span {
    min-width: 4.6rem;
    font-size: 9px;
  }
  .chip span {
    font-size: 0.8rem;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cursor {
    animation: none;
  }
  .frequency-bar {
    transition: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
  .btn:hover,
  .chip:hover span,
  .lab-link:hover {
    transform: none;
  }
}
