/* =========================================================
   SSO'S HUB — 04 랜덤 암호 생성기
   다크 블랙 베이스 · 핑크 포인트 · JetBrains Mono(암호·숫자)
   ========================================================= */

:root {
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas,
    'Liberation Mono', 'Noto Sans Mono CJK KR', monospace;
}

.pw-page { max-width: 1180px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── 머리말 ──────────────────────────────────────────── */
.subhead-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}
.subhead-note {
  margin: 0;
  max-width: 34ch;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-4);
  word-break: keep-all;
}

/* 한글은 제목용 고운돋움, 라틴·숫자는 모노 — 제목 영역의 키커·값은 JetBrains Mono */
.pw-page .kicker {
  font-family: 'JetBrains Mono', var(--font-mono);
  letter-spacing: .18em;
}

/* ── 방식 고르기 ─────────────────────────────────────── */
.pw { margin-top: 22px; }

.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.mode {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(30, 24, 38, .72), rgba(17, 14, 22, .72));
  color: var(--text-2);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}
.mode:hover { transform: translateY(-1px); border-color: var(--line); }
.mode.is-on {
  border-color: rgba(255, 77, 141, .48);
  background:
    radial-gradient(120% 140% at 0% -20%, rgba(255, 77, 141, .24), transparent 62%),
    linear-gradient(180deg, #241a2c, #171220);
  box-shadow: 0 18px 34px -30px #000, inset 0 1px 0 rgba(255, 255, 255, .06);
}
.mode-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 18px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.mode.is-on .mode-ico {
  background: linear-gradient(180deg, rgba(255, 117, 168, .3), rgba(255, 77, 141, .12));
  box-shadow: inset 0 0 0 1px rgba(255, 105, 165, .4);
}
.mode-txt { display: grid; gap: 2px; min-width: 0; }
.mode-txt b {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--text);
}
.mode-txt i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--text-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mode.is-on .mode-txt i { color: var(--pink-3); }

/* ── 두 칸 배치 ──────────────────────────────────────── */
.pw-body {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 14px;
  align-items: start;
}
.col-main {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
@media (max-width: 940px) {
  .pw-body { grid-template-columns: minmax(0, 1fr); }
}

/* ── 결과 카드 ───────────────────────────────────────── */
.out {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 20px 16px;
  border: 1px solid rgba(255, 105, 165, .3);
  border-radius: 24px;
  background:
    radial-gradient(120% 120% at 100% -20%, rgba(255, 77, 141, .2), transparent 58%),
    radial-gradient(80% 100% at 0% 110%, rgba(160, 90, 255, .12), transparent 62%),
    linear-gradient(168deg, #1b1424 0%, #14101a 56%, #100d15 100%);
  box-shadow:
    0 34px 70px -52px #000,
    inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
/* 위쪽 얇은 핑크 테이프 */
.out::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 82px;
  height: 15px;
  transform: translateX(-50%) rotate(-1.4deg);
  border-radius: 3px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0) 0 6px, rgba(255, 255, 255, .12) 6px 12px),
    linear-gradient(180deg, rgba(255, 77, 141, .5), rgba(255, 77, 141, .28));
  opacity: .9;
}

.out-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 105, 165, .22);
}
.out-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--pink-2);
}
.out-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 105, 165, .28);
  border-radius: 999px;
  background: rgba(255, 77, 141, .09);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--pink-3);
  white-space: nowrap;
}
.out-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 7px rgba(255, 77, 141, .95);
  animation: blink 2.4s infinite;
}

.out-body { flex: 1 1 auto; }

.out-list {
  display: grid;
  gap: 0;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.out-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 2px;
  border-bottom: 1px dashed rgba(255, 255, 255, .07);
}
.out-row:last-child { border-bottom: 0; }

.out-pw {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.9vw, 20px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .015em;
  color: #fbf3f8;
  overflow-wrap: anywhere;
  word-break: break-all;
  text-shadow: 0 0 22px rgba(255, 77, 141, .18);
  user-select: all;
  -webkit-user-select: all;
}
/* 단어 암호는 조금 작게 — 대신 읽기 쉽게 */
.out-pw--phrase {
  font-size: clamp(14px, 1.7vw, 18px);
  font-weight: 400;
  color: #ffe9f2;
}

.out-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 74px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  color: var(--text-2);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
  transition: color .16s, border-color .16s, background .16s, transform .16s;
}
.out-copy:hover {
  color: var(--pink-2);
  border-color: rgba(255, 105, 165, .55);
  background: rgba(255, 77, 141, .13);
}
.out-copy:active { transform: scale(.97); }
.out-copy svg { width: 14px; height: 14px; }
.out-copy.is-done {
  color: var(--on-pink);
  border-color: transparent;
  background: linear-gradient(180deg, var(--pink-2), var(--pink));
  font-weight: 600;
}

/* ── 강도 게이지 ─────────────────────────────────────── */
.gauge {
  --gauge: var(--pink-2);
  margin: 6px 0 0;
  padding: 13px 14px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, .028);
}
.gauge[data-lvl="1"] { --gauge: #ff5c7a; }
.gauge[data-lvl="2"] { --gauge: #ffbe5c; }
.gauge[data-lvl="3"] { --gauge: #ff6fa8; }
.gauge[data-lvl="4"] { --gauge: #7ee2c8; }

.gauge-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 9px;
}
.gauge-label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-4);
}
.gauge-level {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--gauge);
}
.gauge-bits {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gauge-bar {
  display: flex;
  gap: 4px;
}
.gauge-bar span {
  flex: 1 1 0;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  transition: background .22s, box-shadow .22s;
}
.gauge[data-lvl="1"] .gauge-bar span:nth-child(-n+1),
.gauge[data-lvl="2"] .gauge-bar span:nth-child(-n+2),
.gauge[data-lvl="3"] .gauge-bar span:nth-child(-n+3),
.gauge[data-lvl="4"] .gauge-bar span:nth-child(-n+4) {
  background: var(--gauge);
  box-shadow: 0 0 10px -2px var(--gauge);
}

.gauge-note {
  margin: 9px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-4);
}
.gauge-note b { color: var(--text-2); font-weight: 600; }

.out-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 105, 165, .2);
}
.out-foot .btn { min-height: 44px; }
.out-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-4);
  white-space: nowrap;
}

/* ── 안전 수칙 ─────────────────────────────────────── */
.tips {
  padding: 13px 16px 14px;
  border: 1px dashed rgba(255, 105, 165, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .022);
}
.tips-title {
  margin: 0 0 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pink-2);
}
.tips-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tips-list li {
  position: relative;
  padding-left: 13px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-4);
  word-break: keep-all;
}
.tips-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .68em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 117, 168, .7);
}
.tips-list b { color: var(--text-2); font-weight: 600; }

/* ── 설정 패널 ───────────────────────────────────────── */
.panel {
  min-width: 0;
  padding: 16px 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(28, 22, 36, .92), rgba(15, 12, 20, .92));
  box-shadow: 0 28px 56px -46px #000;
}

.pane { display: grid; gap: 11px; }
.pane[hidden] { display: none; }
.pane.is-on { animation: fade-in .2s both; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pane-head h3 {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-2);
}
.pane-badge {
  padding: 3px 9px;
  border: 1px solid rgba(255, 105, 165, .3);
  border-radius: 999px;
  background: rgba(255, 77, 141, .1);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--pink-3);
  white-space: nowrap;
}
.pane-side-note {
  font-size: 11px;
  color: var(--text-4);
}
.pane-rule {
  height: 1px;
  margin: 3px 0;
  border: 0;
  background: var(--line-soft);
}
.pane-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-4);
}
.pane-hint b {
  color: var(--pink-3);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.linkbtn {
  padding: 2px 4px;
  border: 0;
  background: none;
  color: var(--pink-3);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 117, 168, .4);
}
.linkbtn:hover { color: var(--pink-2); text-decoration-color: var(--pink); }

/* ── 슬라이더 ────────────────────────────────────────── */
.slider { display: grid; gap: 7px; }
.slider-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.slider-top b {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}
.slider-top i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--pink-3);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 77, 141, .55), rgba(255, 255, 255, .16));
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 77, 141, .55), rgba(255, 255, 255, .16));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  border: 2px solid #1a0711;
  border-radius: 50%;
  background: var(--pink-2);
  box-shadow: 0 0 0 2px rgba(255, 77, 141, .3);
  transition: transform .12s;
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.14); }
input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 2px solid #1a0711;
  border-radius: 50%;
  background: var(--pink-2);
}

/* ── 칩 ──────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.2;
  cursor: pointer;
  transition: color .16s, border-color .16s, background .16s, transform .16s;
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--line); }
.chip:active { transform: scale(.97); }
.chip.is-on {
  border-color: rgba(255, 77, 141, .55);
  background: rgba(255, 77, 141, .16);
  color: var(--pink-2);
  font-weight: 700;
}

/* ── 글자 종류 토글 ──────────────────────────────────── */
.opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
  transition: border-color .16s, background .16s;
}
.opt:hover { border-color: var(--line); background: rgba(255, 255, 255, .045); }
.opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.opt--wide { grid-column: 1 / -1; }

.opt-box {
  flex: 0 0 auto;
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  transition: background .16s, border-color .16s, box-shadow .16s;
}
.opt-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #1a0711;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg) scale(.6);
  opacity: 0;
  transition: opacity .14s, transform .14s;
}
.opt input:checked + .opt-box {
  border-color: transparent;
  background: linear-gradient(180deg, var(--pink-2), var(--pink));
  box-shadow: 0 6px 14px -8px var(--pink-glow);
}
.opt input:checked + .opt-box::after { opacity: 1; transform: rotate(42deg) scale(1); }
.opt input:focus-visible + .opt-box { outline: 2px solid var(--pink-2); outline-offset: 3px; }

.opt-txt { display: grid; gap: 1px; min-width: 0; }
.opt-txt b {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.opt-txt i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.opt:has(input:checked) { border-color: rgba(255, 77, 141, .32); background: rgba(255, 77, 141, .07); }
.opt:has(input:checked) .opt-txt i { color: var(--pink-3); }

/* ── 최근 만든 암호 ──────────────────────────────────── */
.hist {
  margin-top: 18px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(24, 19, 31, .8), rgba(14, 11, 18, .8));
}
.hist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.hist-head h2 {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0;
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
}
.hist-head h2 em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--pink-2);
}
.hist-tools {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  font-size: 12px;
  color: var(--text-3);
  cursor: pointer;
  user-select: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: background .18s, box-shadow .18s;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #cbbcc8;
  transition: transform .18s, background .18s;
}
.switch input:checked + .switch-track {
  background: linear-gradient(180deg, var(--pink-2), var(--pink));
  box-shadow: 0 0 0 1px rgba(255, 77, 141, .3), 0 6px 14px -10px var(--pink-glow);
}
.switch input:checked + .switch-track::after {
  transform: translateX(16px);
  background: #2a0a16;
}
.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--pink-2);
  outline-offset: 3px;
}
.switch input:checked ~ .switch-txt { color: var(--pink-3); }

.hist-note {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-4);
}

.hist-list {
  display: grid;
  gap: 2px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.hist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-top: 1px dashed rgba(255, 255, 255, .07);
}
.hist-row:first-child { border-top: 0; }
.hist-time {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-4);
  font-variant-numeric: tabular-nums;
}
.hist-mode {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid rgba(255, 105, 165, .24);
  border-radius: 999px;
  background: rgba(255, 77, 141, .08);
  font-size: 9.5px;
  color: var(--pink-3);
  white-space: nowrap;
}
.hist-pw {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
  overflow-wrap: anywhere;
  word-break: break-all;
}
.hist-copy {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: transparent;
  color: var(--text-3);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  transition: color .16s, border-color .16s, background .16s;
}
.hist-copy:hover {
  color: var(--pink-2);
  border-color: rgba(255, 105, 165, .5);
  background: rgba(255, 77, 141, .1);
}
.hist-copy.is-done {
  color: var(--on-pink);
  border-color: transparent;
  background: linear-gradient(180deg, var(--pink-2), var(--pink));
  font-weight: 600;
}
.hist-empty {
  margin: 12px 0 0;
  padding: 16px 14px;
  border: 1px dashed var(--line-soft);
  border-radius: 14px;
  font-size: 12px;
  color: var(--text-4);
  text-align: center;
}

/* ── 태블릿 ──────────────────────────────────────────── */
@media (max-width: 940px) {
  .out-pw { font-size: 18px; }
  .panel { padding: 15px 15px 17px; }
}

/* ── 휴대폰 ──────────────────────────────────────────── */
@media (max-width: 620px) {
  .subhead-side { align-items: flex-start; text-align: left; gap: 8px; }
  .subhead-note { max-width: none; }
  .pw { margin-top: 16px; }
  .out { padding: 16px 14px 13px; border-radius: 20px; }
  .out-pw { font-size: 15.5px; }
  .out-row { padding: 11px 0; gap: 8px; }
  .out-copy { min-width: 44px; padding: 10px; }
  .out-copy span { display: none; }
  .out-foot .btn { flex: 1 1 auto; }
  .out-count { margin-left: 0; flex: 1 0 100%; text-align: right; }
  .gauge { padding: 12px 12px 11px; }
  .hist { padding: 14px 13px 15px; }
  .hist-row { gap: 8px; }
  .hist-pw { font-size: 11.5px; }
  .opt { min-height: 48px; }
  .chip { min-height: 44px; }
}

@media (max-width: 430px) {
  .modes { gap: 8px; }
  .mode { padding: 11px 12px; gap: 9px; border-radius: 15px; }
  .mode-ico { width: 32px; height: 32px; font-size: 15px; border-radius: 10px; }
  .mode-txt b { font-size: 13.5px; }
  .mode-txt i { display: none; }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .opt--wide { grid-column: auto; }
  .hist-head h2 { font-size: 16px; }
}

/* ── 폰 가로(낮은 화면) ──────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .page.pw-page { padding-top: 14px; padding-bottom: 40px; }
  .subhead { padding: 2px 2px 10px; }
  .subhead .sub { display: none; }
  .subhead-note { display: none; }
  .backlink { margin-bottom: 8px; }
  .pw { margin-top: 12px; }
  .modes { margin-bottom: 10px; }
}

/* 폰·태블릿 가로: 탭은 한 줄 스크롤, 결과와 설정은 다시 좌우로 */
@media (min-width: 700px) and (max-width: 940px) and (max-height: 500px) {
  .pw-page .tabs {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
  }
  .pw-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ── 모션 최소화 ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .out-live i { animation: none; }
  .pane.is-on { animation: none; }
}
