.rxn {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5.5rem, 4rem + 6vw, 8rem) var(--gutter) 4rem;
}

.rxn-hero {
  text-align: center;
  margin-bottom: clamp(1.6rem, 1rem + 2vw, 2.6rem);
}
.rxn-hero__kicker {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: var(--t-small);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}
.rxn-hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-h2);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.rxn-hero__sub {
  max-width: 46ch;
  margin: 0.9rem auto 0;
  color: var(--muted);
  font-size: var(--t-body);
  line-height: 1.5;
}

.rxn-board {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rxn-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.rxn-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.7rem 0.5rem;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.rxn-stat__k {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.rxn-stat__v {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.4rem);
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.rxn-stat__u {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: var(--dim);
}

.rxn-pad {
  position: relative;
  width: 100%;
  min-height: clamp(18rem, 12rem + 28vw, 30rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  color: var(--text);
  background: radial-gradient(120% 120% at 50% 0%, #14202e 0%, #0a0d13 60%, #07090d 100%);
  transition: background var(--d-fast) linear, border-color var(--d-normal);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.rxn-pad__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px);
  pointer-events: none;
  opacity: 0.5;
}
.rxn-pad__icon {
  font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  line-height: 1;
  opacity: 0.85;
}
.rxn-pad__big {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 1.4rem + 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}
.rxn-pad__sub {
  font-family: var(--f-hud);
  font-size: clamp(0.95rem, 0.85rem + 0.6vw, 1.25rem);
  color: var(--muted);
  max-width: 28ch;
}

.rxn-pad[data-state="wait"] {
  background: radial-gradient(120% 120% at 50% 30%, #3a1118 0%, #220a0f 60%, #160709 100%);
  border-color: rgba(255, 70, 85, 0.5);
  cursor: progress;
}
.rxn-pad[data-state="wait"] .rxn-pad__big { color: #ff8893; }

.rxn-pad[data-state="go"] {
  background: radial-gradient(120% 120% at 50% 35%, #2ee27a 0%, #11603c 55%, #08160f 100%);
  border-color: var(--green);
  box-shadow: inset 0 0 80px rgba(46, 226, 122, 0.35), 0 0 60px -20px var(--green-glow);
  cursor: pointer;
}
.rxn-pad[data-state="go"] .rxn-pad__big {
  color: #04140c;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.4);
}
.rxn-pad[data-state="go"] .rxn-pad__sub { color: rgba(4, 20, 12, 0.7); }

.rxn-pad[data-state="result"] {
  background: radial-gradient(120% 120% at 50% 30%, #16263a 0%, #0a0e15 60%, #07090d 100%);
  border-color: var(--cyan);
}
.rxn-pad[data-state="result"] .rxn-pad__big { color: var(--cyan); text-shadow: 0 0 34px var(--cyan-glow); }

.rxn-pad[data-state="early"] {
  background: radial-gradient(120% 120% at 50% 30%, #3a2a10 0%, #1c1407 60%, #120c05 100%);
  border-color: var(--warn);
}
.rxn-pad[data-state="early"] .rxn-pad__big { color: var(--warn); }

.rxn-pad[data-state="done"] {
  background: radial-gradient(120% 120% at 50% 20%, #14202e 0%, #0a0d13 60%, #07090d 100%);
  border-color: var(--cyan);
}
.rxn-pad[data-state="done"] .rxn-pad__big { color: var(--cyan); text-shadow: 0 0 34px var(--cyan-glow); }

.rxn-pad:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.rxn-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  min-height: 1.8rem;
}
.rxn-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.rxn-dot b { color: var(--cyan); font-weight: 400; }
.rxn-dot--best { border-color: var(--green); }
.rxn-dot--best b { color: var(--green); }

.rxn-cta {
  margin-top: clamp(2rem, 1rem + 3vw, 3.4rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.rxn-verdict {
  font-family: var(--f-hud);
  font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.45rem);
  color: var(--text);
}
.rxn-verdict b { color: var(--cyan); }
.rxn-cta__line {
  color: var(--muted);
  font-size: var(--t-body);
  margin-top: 0.4rem;
}
.rxn-cta .btn { margin-top: 0.3rem; min-width: min(320px, 90vw); }

@media (max-width: 560px) {
  .rxn-stats { grid-template-columns: repeat(2, 1fr); }
}
