/* sites/reaction/style.css — 반응속도 테스트 전용 스타일
 * 컨셉: "코발트 코트" — 스포츠 중계 그래픽 + 체육관 바닥. 측정 화면은 경기장처럼 라인(경계선·하프라인·센터서클)이
 * 그려진 코발트 판이고, 신호가 오면 판 전체가 빨강(대기) → 초록(탭) → 노랑(옐로카드 = 부정 출발)으로 바뀐다.
 * 빨강은 어둡게, 초록은 아주 밝게 잡아 색각 이상이 있어도 밝기 차이로 신호를 알 수 있게 했다.
 * 숫자는 Archivo 콘덴스드 블랙(탭룰러 숫자), 제목은 Black Han Sans(ko) / Dela Gothic One(ja) / Archivo(en).
 * ladder(마리골드 코믹), past-life(밤·금빛), life(흑백 잉크)와 겹치지 않는 방향.
 */

:root {
  --court: #1532d2;      /* 경기장 판 */
  --court-hi: #2446ea;
  --deep: #0b1c86;       /* 페이지 바탕 */
  --deep-2: #0f239b;     /* 바탕 위 면 */
  --chalk: #f2f5ff;      /* 글자·라인 */
  --chalk-2: rgba(242, 245, 255, 0.76);
  --chalk-3: rgba(242, 245, 255, 0.54);
  --line: rgba(242, 245, 255, 0.18);
  --stop: #e8173f;       /* 대기 신호 */
  --go: #26ea73;         /* 탭 신호 */
  --volt: #ffe83a;       /* 부정 출발(옐로카드) · "나" 표시 */
  --ink: #08124a;        /* 밝은 면 위 글자 */
  --ink-line: rgba(8, 18, 74, 0.2);

  /* 글꼴은 언어 파일(tools/i18n/<lang>.js 의 typography)이 정한다 — gen-i18n.js 가 <head> 에 :root 변수로 넣는다.
     여기 값은 기본(라틴 문자: Archivo 콘덴스드 블랙). 새 언어는 언어 파일만 추가하면 된다. */
  --font-num: 'Archivo', var(--font-sans);
  --font-display: 'Archivo', var(--font-sans);
  --display-weight: 900;
  --display-scale: 1;      /* 큰 제목 크기 배율 (콘덴스드 라틴 기준) */
  --display-scale-sm: 1;   /* 버튼·작은 제목 배율 */
  --display-leading: 0.92; /* 제목 줄 간격 */
  --font-body: 'Archivo', var(--font-sans);
  --body-leading: 1.65;

  /* 모든 미니앱은 모바일 화면이 기본: 데스크톱에서도 가운데 한 줄(--app-width, shared/base.css)만 쓴다 */
  --col-w: var(--app-width, 480px);
  --arena-w: min(100vw, var(--col-w));
  --mg-star-on: var(--volt);
  --mg-star-off: rgba(242, 245, 255, 0.24);
}

html { background: var(--deep); }
body.rx-body {
  background: var(--deep);
  color: var(--chalk);
  font-family: var(--font-body);
  min-height: 100vh;
  word-break: var(--word-break, normal); /* 줄바꿈 규칙은 언어 파일 typography.wordBreak */
}
/* 짧은 표시 문구는 줄 길이를 고르게, 문단은 마지막 줄이 한 글자로 남지 않게 (지원 브라우저만) */
.rx-pad span, .rx-sig-title, .rx-sig-sub, .rx-sig-act, .rx-tier-title, .rx-rank-beat, .rx-block-title { text-wrap: balance; }
.rx-hook, .rx-seo p, .rx-tier-desc, .rx-faq details p, .rx-doc p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }

.rx-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.rx-page {
  max-width: var(--col-w);
  margin: 0 auto;
  padding: 0 16px 8px;
}

/* ---------------- 상단 ---------------- */
.rx-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 52px;
}
.rx-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.rx-bolt { width: 18px; height: 18px; fill: var(--volt); flex-shrink: 0; }
.rx-top .lang-switch { margin: 0; padding: 0; }
.rx-top .lang-switch a[aria-current="page"] { background: rgba(242, 245, 255, 0.14); }

/* ---------------- 측정 화면 (경기장) ---------------- */
.rx-arena {
  position: relative;
  display: flex;
  flex-direction: column;
  width: var(--arena-w);
  margin-left: calc((100% - var(--arena-w)) / 2);
  min-height: max(560px, calc(100svh - 52px));
  padding: 30px 26px 22px;
  background: var(--court);
  color: var(--chalk);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* 더블탭 확대 방지 (스크롤은 됨) */
}
/* 코트 경계선 */
.rx-arena::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 2px solid var(--line);
  border-radius: 6px;
  pointer-events: none;
}

.rx-arena[hidden] { display: none; }
.rx-idle { display: flex; flex-direction: column; flex: 1; }

.rx-idle h1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: 72%;
  font-size: calc(clamp(58px, 18vw, 88px) * var(--display-scale));
  line-height: var(--display-leading);
  letter-spacing: -0.012em;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.rx-hook {
  font-size: 15px;
  line-height: 1.65;
  color: var(--chalk-2);
  max-width: 30em;
  margin: 14px 0 16px;
}

.rx-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rx-rules li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  background: rgba(8, 18, 74, 0.34);
  font-size: 13px;
  font-weight: 700;
}
.rx-swatch { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.rx-swatch-stop { background: var(--stop); }
.rx-swatch-go { background: var(--go); }

/* 하프라인 + 센터서클 + 시작 패드 */
.rx-court {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 250px;
  margin: 12px -16px 0;
}
.rx-court::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--line);
}
.rx-court::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 250px; height: 250px;
  margin: -125px 0 0 -125px;
  border: 2px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}
.rx-pad span { display: block; overflow-wrap: anywhere; }
.rx-pad {
  position: relative;
  z-index: 1;
  width: 176px; height: 176px;
  border: 0;
  border-radius: 50%;
  background: var(--chalk);
  color: var(--court);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: 80%;
  font-size: calc(26px * var(--display-scale-sm));
  line-height: 1.15;
  padding: 0 18px;
  cursor: pointer;
  box-shadow: 0 0 0 10px rgba(242, 245, 255, 0.12), 0 20px 44px rgba(3, 9, 60, 0.45);
  transition: transform 0.14s ease;
  -webkit-tap-highlight-color: transparent;
}
.rx-pad::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(242, 245, 255, 0.55);
  animation: rx-ring 2.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
  pointer-events: none;
}
@keyframes rx-ring {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(1.42); opacity: 0; }
}
@media (hover: hover) { .rx-arena:hover .rx-pad { transform: scale(1.03); } }
.rx-arena:active .rx-pad { transform: scale(0.96); }

.rx-keyhint {
  text-align: center;
  font-size: 12.5px;
  color: var(--chalk-3);
  margin: 10px 0 16px;
}

/* 라운드 칸 (경기장 아래쪽 타이밍 보드) */
.rx-laps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.rx-lap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  border-top: 3px solid var(--line);
  min-width: 0;
}
.rx-lap-n {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  color: var(--chalk-3);
}
.rx-lap-ms {
  font-family: var(--font-num);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 22px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--chalk-3);
  white-space: nowrap;
}
.rx-lap.is-current { border-top-color: var(--chalk); }
.rx-lap.is-current .rx-lap-n { color: var(--chalk); }
.rx-lap.is-done { border-top-color: var(--chalk-2); }
.rx-lap.is-done .rx-lap-ms { color: currentColor; animation: rx-pop 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
@keyframes rx-pop {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ---------------- 측정 중: 화면 전체 ---------------- */
.rx-hud, .rx-signal { display: none; }

body.rx-live { overflow: hidden; }
body.rx-live .rx-arena {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 50;
  width: var(--arena-w); /* 폰에서는 화면 전체, 데스크톱에서는 가운데 모바일 폭 */
  transform: translateX(-50%);
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: max(20px, env(safe-area-inset-top)) 24px max(22px, env(safe-area-inset-bottom));
  touch-action: none; /* 측정 중에는 스크롤·확대 제스처를 모두 막는다 */
  overscroll-behavior: none;
}
body.rx-live .rx-idle { display: none; }
body.rx-live .rx-hud {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 4px;
}
body.rx-live .rx-signal {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 0;
}
body.rx-live .rx-laps { position: relative; max-width: 560px; width: 100%; margin: 0 auto; }

.rx-hud-round {
  font-family: var(--font-num);
  font-weight: 800;
  font-stretch: 85%;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.rx-quit {
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  opacity: 0.72;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.rx-quit:hover { opacity: 1; }

.rx-sig-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: 72%;
  font-size: calc(clamp(56px, 17vw, 110px) * var(--display-scale));
  line-height: var(--display-leading);
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.rx-sig-title:empty { display: none; }
.rx-sig-sub {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin: 14px 0 0;
  opacity: 0.86;
  max-width: 22em;
}
.rx-sig-sub:empty, .rx-sig-act:empty { display: none; }
.rx-sig-act {
  margin: 22px 0 0;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(8, 18, 74, 0.22);
  font-size: 14px;
  font-weight: 700;
}
.rx-arena[data-phase="foul"] .rx-sig-act { background: rgba(8, 18, 74, 0.1); }
.rx-sig-key[hidden] { display: none; }
.rx-sig-key {
  font-size: 12.5px;
  margin: 10px 0 0;
  opacity: 0.6;
}
.rx-sig-num {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 6px;
  margin: 0;
  line-height: 0.86;
}
.rx-sig-num[hidden] { display: none; }
.rx-sig-num .rx-num {
  font-weight: 900;
  font-stretch: 68%;
  font-size: clamp(116px, 38vw, 230px);
  letter-spacing: -0.02em;
}
.rx-unit {
  font-family: var(--font-num);
  font-weight: 800;
  font-stretch: 85%;
  font-size: 30px;
  opacity: 0.78;
}
.rx-sig-emoji { order: -1; flex-basis: 100%; font-size: 52px; line-height: 1; margin-bottom: 14px; }

/* 신호 색 — 초록으로 바뀌는 순간에는 전환 효과를 절대 넣지 않는다 (신호가 늦어진다) */
.rx-arena[data-phase="wait"] { background: var(--stop); }
.rx-arena[data-phase="go"] { background: var(--go); color: var(--ink); }
.rx-arena[data-phase="foul"] { background: var(--volt); color: var(--ink); }
.rx-arena[data-phase="go"]::before,
.rx-arena[data-phase="foul"]::before { border-color: var(--ink-line); }
.rx-arena[data-phase="go"] .rx-lap,
.rx-arena[data-phase="foul"] .rx-lap { border-top-color: var(--ink-line); }
.rx-arena[data-phase="go"] .rx-lap-n, .rx-arena[data-phase="go"] .rx-lap-ms,
.rx-arena[data-phase="foul"] .rx-lap-n, .rx-arena[data-phase="foul"] .rx-lap-ms { color: rgba(8, 18, 74, 0.6); }
.rx-arena[data-phase="go"] .rx-lap.is-current,
.rx-arena[data-phase="foul"] .rx-lap.is-current { border-top-color: var(--ink); }

/* "탭!" 크기는 reaction.js 가 글자 수·화면 폭에 맞춰 --go-size 로 정한다 (언어마다 길이가 다르다) */
.rx-arena[data-phase="go"] .rx-sig-title { font-size: var(--go-size, clamp(96px, 30vw, 220px)); line-height: 0.9; white-space: nowrap; overflow-wrap: normal; }
.rx-arena[data-phase="hit"] .rx-sig-num:not([hidden]) { animation: rx-slam 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.25); }
.rx-arena[data-phase="foul"] .rx-sig-title { animation: rx-shake 0.32s ease-in-out; }
@keyframes rx-slam {
  from { transform: scale(1.16); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes rx-shake {
  0%, 100% { transform: none; }
  25% { transform: translateX(-7px) rotate(-2deg); }
  75% { transform: translateX(7px) rotate(2deg); }
}

/* ---------------- 결과 ---------------- */
.rx-result { padding: 30px 0 4px; }
.rx-result:focus { outline: none; } /* 결과로 넘어갈 때 화면 읽기 프로그램용으로만 포커스를 옮긴다 */
.rx-result[hidden] { display: none; }
.rx-res-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--chalk-2);
  margin: 0;
}
.rx-res-avg {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 0;
  line-height: 0.84;
}
.rx-res-avg .rx-num {
  font-weight: 900;
  font-stretch: 66%;
  font-size: clamp(132px, 44vw, 190px);
  letter-spacing: -0.025em;
}
.rx-res-avg .rx-unit { font-size: 34px; }

.rx-tier {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 26px 0 0;
}
.rx-tier-emoji {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--court);
  box-shadow: inset 0 0 0 2px var(--line);
  font-size: 48px;
  line-height: 1;
}
.rx-tier-body { min-width: 0; }
.rx-tier-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: 80%;
  font-size: calc(30px * var(--display-scale-sm));
  line-height: calc(var(--display-leading) + 0.12);
  margin: 0;
}
.rx-tier-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--chalk-2);
  margin: 6px 0 0;
}
.rx-result.is-revealing .rx-tier-emoji { animation: rx-dash 0.6s 0.25s cubic-bezier(0.2, 0.9, 0.25, 1.2) backwards; }
.rx-result.is-revealing .rx-tier-body { animation: rx-fade 0.4s 0.4s ease backwards; }
@keyframes rx-dash {
  from { transform: translateX(-90px) rotate(-14deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes rx-fade { from { opacity: 0; } to { opacity: 1; } }

.rx-block {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 2px solid var(--line);
}
.rx-block[hidden] { display: none; }
.rx-block-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--chalk-2);
  margin: 0 0 14px;
}

/* 라운드별 막대 */
.rx-lapbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rx-lapbar {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.rx-lapbar-n { font-family: var(--font-num); font-size: 12px; font-weight: 700; color: var(--chalk-3); }
.rx-lapbar-track { position: relative; height: 12px; }
.rx-lapbar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: 0 4px 4px 0;
  background: rgba(242, 245, 255, 0.5);
  transform-origin: left center;
}
.rx-lapbar.is-best .rx-lapbar-fill { background: var(--go); }
.rx-result.is-revealing .rx-lapbar-fill { animation: rx-grow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.rx-lapbar:nth-child(2) .rx-lapbar-fill { animation-delay: 0.05s; }
.rx-lapbar:nth-child(3) .rx-lapbar-fill { animation-delay: 0.1s; }
.rx-lapbar:nth-child(4) .rx-lapbar-fill { animation-delay: 0.15s; }
.rx-lapbar:nth-child(5) .rx-lapbar-fill { animation-delay: 0.2s; }
@keyframes rx-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rx-lapbar-ms {
  font-family: var(--font-num);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 4.4em;
  white-space: nowrap;
}
/* "최고" 표시는 가장 짧은 막대 끝에 붙인다 (값 칸 너비가 줄마다 달라지면 막대 눈금이 어긋난다) */
.rx-lapbar-tag {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(38, 234, 115, 0.18);
  color: var(--chalk);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.rx-lapbar-tag.is-inside { margin-left: 0; transform: translate(-100%, -50%); background: transparent; color: var(--ink); padding-right: 6px; }
.rx-res-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--chalk-2);
}
.rx-res-meta:empty { display: none; }

/* 순위 + 분포 */
.rx-comparing { font-size: 14px; color: var(--chalk-3); margin: 0; }
.rx-comparing[hidden] { display: none; }
.rx-rank-top {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: 72%;
  font-size: calc(clamp(56px, 17vw, 76px) * var(--display-scale));
  line-height: var(--display-leading);
  color: var(--volt);
  margin: 0;
}
.rx-rank-beat { font-size: 14.5px; font-weight: 600; margin: 10px 0 0; color: var(--chalk); }
.rx-chart { margin: 18px 0 0; }
.rx-chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.rx-chart .bar-hit { fill: transparent; cursor: crosshair; }
.rx-readout {
  margin: 8px 0 0;
  min-height: 1.4em;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--chalk-2);
}
.rx-rank-note { font-size: 13px; color: var(--chalk-3); margin: 10px 0 0; line-height: 1.55; }
.rx-rank-note:empty { display: none; }

/* 버튼 */
.rx-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 30px;
}
.rx-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: 85%;
  font-size: calc(19px * var(--display-scale-sm));
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rx-btn:active { transform: scale(0.97); }
.rx-btn-volt { background: var(--volt); color: var(--ink); border: 0; }
.rx-btn-line { background: transparent; color: var(--chalk); border: 2px solid rgba(242, 245, 255, 0.5); }
@media (hover: hover) { .rx-btn-line:hover { background: rgba(242, 245, 255, 0.08); } }

.rx-result .mg-rating { margin: 34px auto 6px; }

/* ---------------- SEO / FAQ ---------------- */
.rx-seo { margin-top: 56px; }
.rx-seo h2, .rx-section-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: 80%;
  font-size: calc(26px * var(--display-scale-sm));
  line-height: calc(var(--display-leading) + 0.2);
  margin: 36px 0 10px;
}
.rx-seo h2:first-child { margin-top: 0; }
.rx-seo p { font-size: 15px; line-height: var(--body-leading); color: var(--chalk-2); margin: 0; }

.rx-faq { border-top: 2px solid var(--line); }
.rx-faq details { border-bottom: 2px solid var(--line); }
.rx-faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 16px 32px 16px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.rx-faq summary::-webkit-details-marker { display: none; }
.rx-faq summary::after {
  content: '+';
  position: absolute;
  right: 4px; top: 13px;
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 600;
  color: var(--chalk-3);
}
.rx-faq details[open] summary::after { content: '−'; }
.rx-faq details p { padding: 0 0 18px; font-size: 14.5px; }

.more-tests-section { margin-top: 48px; }
.more-tests-section .rx-section-title { margin: 0 0 14px; }
.more-test-card { background: rgba(242, 245, 255, 0.05); border-color: rgba(242, 245, 255, 0.1); }
@media (hover: hover) { .more-test-card:hover { background: rgba(242, 245, 255, 0.09); } }

/* ---------------- 개인정보처리방침 ---------------- */
.rx-doc { padding: 28px 0 40px; line-height: 1.8; font-size: 14.5px; color: var(--chalk-2); }
.rx-doc h1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: 80%;
  font-size: calc(34px * var(--display-scale-sm));
  line-height: calc(var(--display-leading) + 0.2);
  color: var(--chalk);
  margin: 0 0 22px;
}
.rx-doc h2 { font-size: 16px; font-weight: 800; color: var(--chalk); margin: 28px 0 8px; }
.rx-doc p { margin: 0; }
.rx-doc a { color: var(--volt); text-decoration: underline; }

/* 터치 기기에서는 키보드 안내를 숨긴다 */
@media (hover: none) and (pointer: coarse) {
  .rx-keyhint, .rx-sig-key { display: none; }
}

/* 움직임 줄이기: 신호 색 변화(핵심)만 남기고 장식 애니메이션은 모두 끈다 */
@media (prefers-reduced-motion: reduce) {
  .rx-pad::after { animation: none; opacity: 0; }
  .rx-pad, .rx-btn { transition: none; }
  .rx-lap.is-done .rx-lap-ms,
  .rx-arena[data-phase="hit"] .rx-sig-num:not([hidden]),
  .rx-arena[data-phase="foul"] .rx-sig-title,
  .rx-result.is-revealing .rx-tier-emoji,
  .rx-result.is-revealing .rx-tier-body,
  .rx-result.is-revealing .rx-lapbar-fill { animation: none; }
}
