/* 스트리머 혜택 구역(2026-11-21 정식 공개). 그림은 assets/onair/perks, 값은 봇 설정과 같은 결정 문서에서 온다.
   보안 머리글(style-src 'self') 때문에 모양은 이 파일에만 둔다. */
.pk {
  --pk-coral: #ff6b78;
  --pk-coral-soft: rgba(255, 107, 120, .12);
  --pk-coral-line: rgba(255, 107, 120, .42);
  --pk-gold: #ffc857;
  --pk-mint: #5fe3b5;
  --pk-violet: #b49bff;
  --pk-sky: #6fc8ff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.pk img { display: block; }

/* ------------------------------------------------------------ 머리 그림 */
.pk-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: #0a0c12;
}
.pk-hero-art { position: absolute; inset: 0; z-index: -2; }
.pk-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.pk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0a0c12 0%, rgba(10, 12, 18, .94) 30%, rgba(10, 12, 18, .55) 52%, rgba(10, 12, 18, 0) 74%);
}
.pk-hero-copy { display: flex; flex-direction: column; gap: 14px; max-width: 520px; padding: clamp(22px, 4vw, 40px); }
.pk-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--pk-coral); }
.pk-eyebrow img { width: 22px; height: 22px; }
.pk-hero h2 { font-size: clamp(24px, 3.6vw, 36px); line-height: 1.18; font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
.pk-hero h2 em { font-style: normal; color: var(--pk-coral); }
.pk-hero-copy > p { font-size: 15px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.pk-chips li {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 13px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(18, 21, 28, .72);
  backdrop-filter: blur(6px);
  font-size: 12px;
  color: var(--text-3);
}
/* 한글은 본문 글꼴, 숫자만 고정폭(2026-11-21: 고정폭 글꼴에 한글이 벌어져 보였다) */
.pk-chips b { font-family: inherit; font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.pk-chips b .st-num { font-weight: 700; }

/* ------------------------------------------------------------ 카드 격자 */
.pk-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.pk-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.pk-rate { grid-column: span 7; }
.pk-tier { grid-column: span 5; }
.pk-medals { grid-column: span 12; }
.pk-invite { grid-column: span 5; }
.pk-shop { grid-column: span 7; }
.pk-head { display: flex; align-items: center; gap: 12px; }
.pk-head > img { width: 44px; height: 44px; flex: none; }
.pk-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.pk-head p { margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: var(--text-3); }
.pk-fine { font-size: 13px; line-height: 1.65; color: var(--text-3); }
.pk-fine b { color: var(--text-2); font-weight: 650; }
.pk-num { font-family: var(--st-mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ 방송 포인트 */
.pk-rates { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pk-rates li { display: grid; grid-template-columns: 108px minmax(0, 1fr) 92px; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.pk-bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .055); overflow: hidden; }
.pk-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff8d7a, var(--pk-coral)); }
.pk-bar .is-30 { width: 16.667%; }
.pk-bar .is-90 { width: 50%; }
.pk-bar .is-120 { width: 66.667%; }
.pk-bar .is-180 { width: 100%; background: linear-gradient(90deg, #ff8d7a, var(--pk-coral) 55%, var(--pk-gold)); }
.pk-rates strong { text-align: right; font-size: 13px; font-weight: 500; color: var(--text-3); white-space: nowrap; }
.pk-rates strong b { font-family: var(--st-mono); font-size: 17px; font-weight: 700; color: var(--text); }
.pk-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pk-rules li { padding: 11px 12px; border-radius: 12px; background: var(--surface-2); font-size: 12.5px; line-height: 1.55; color: var(--text-3); }
.pk-rules b { display: block; margin-bottom: 2px; font-size: 13.5px; color: var(--text); }

/* 예상 포인트 계산 */
.pk-calc { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--pk-coral-line); border-radius: 16px; background: var(--pk-coral-soft); }
.pk-calc legend, .pk-calc-title { padding: 0; font-size: 14px; font-weight: 800; color: var(--text); }
.pk-calc fieldset { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pk-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pk-seg label { position: relative; display: block; }
.pk-seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pk-seg span { display: block; padding: 8px 4px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); text-align: center; font-size: 13px; color: var(--text-2); transition: border-color .15s, color .15s, background .15s; }
.pk-seg input:checked + span { border-color: var(--pk-coral); background: rgba(255, 107, 120, .2); color: #fff; font-weight: 700; }
.pk-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pk-slide { display: grid; grid-template-columns: 96px minmax(0, 1fr) 62px; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.pk-slide input[type="range"] { width: 100%; accent-color: var(--pk-coral); }
.pk-slide output { text-align: right; font-family: var(--st-mono); font-weight: 700; color: var(--text); }
.pk-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pk-result div { padding: 11px 12px; border-radius: 12px; background: var(--surface); }
.pk-result dt { font-size: 12px; color: var(--text-3); }
.pk-result dd { margin: 2px 0 0; font-family: var(--st-mono); font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.pk-result dd small { font-family: inherit; font-size: 12px; font-weight: 500; color: var(--text-3); }
.pk-result .is-tier dd { font-family: inherit; font-size: 16px; }
.pk-calc-note { font-size: 12px; line-height: 1.55; color: var(--text-3); }

/* ------------------------------------------------------------ 등급 */
.pk-ladder { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: pk-tier; }
.pk-ladder li { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.pk-ladder figure { display: grid; place-items: center; width: 62px; height: 62px; margin: 0; border-radius: 12px; background: #0d1016; }
.pk-ladder img { max-width: 52px; max-height: 50px; width: auto; height: auto; image-rendering: pixelated; }
.pk-ladder b { display: flex; align-items: center; gap: 8px; font-size: 15.5px; color: var(--text); }
.pk-ladder b i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.pk-ladder .is-rookie b i { background: var(--pk-sky); }
.pk-ladder .is-rising b i { background: var(--pk-mint); }
.pk-ladder .is-star b i { background: var(--pk-violet); }
.pk-ladder .is-partner b i { background: var(--pk-gold); }
.pk-ladder .is-partner { border-color: rgba(255, 200, 87, .35); background: linear-gradient(120deg, rgba(255, 200, 87, .1), rgba(255, 107, 120, .07)); }
.pk-ladder span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.pk-ladder span em { font-style: normal; font-family: var(--st-mono); font-weight: 700; color: var(--text-2); }

/* ------------------------------------------------------------ 달성 보상 */
.pk-medal-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pk-medal-list li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); text-align: center; }
.pk-medal-list img { width: 84px; height: 84px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .4)); transition: transform .25s var(--ease); }
.pk-medal-list li:hover img { transform: translateY(-3px) rotate(-3deg); }
.pk-medal-list b { font-size: 15px; color: var(--text); }
.pk-medal-list strong { font-family: var(--st-mono); font-size: 16px; color: var(--pk-gold); }
.pk-medal-list strong small { font-family: inherit; font-size: 12px; font-weight: 500; color: var(--text-3); }
.pk-medal-list span { font-size: 12.5px; line-height: 1.5; color: var(--text-3); text-wrap: balance; }

/* ------------------------------------------------------------ 초대와 정착 */
.pk-steps { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: pk-step; }
.pk-steps li { position: relative; padding: 11px 12px 11px 44px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; line-height: 1.55; color: var(--text-2); counter-increment: pk-step; }
.pk-steps li::before { content: counter(pk-step); position: absolute; left: 12px; top: 11px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--pk-coral-soft); color: var(--pk-coral); font-family: var(--st-mono); font-size: 12.5px; font-weight: 700; }
.pk-steps b { color: var(--text); }
.pk-steps em { font-style: normal; font-family: var(--st-mono); font-weight: 700; color: var(--pk-gold); }
.pk-gifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pk-gifts li { padding: 10px; border: 1px solid var(--line); border-radius: 12px; text-align: center; font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
.pk-gifts b { display: block; font-size: 13.5px; color: var(--text); }

/* ------------------------------------------------------------ 상점 */
.pk-goods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pk-goods li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); text-align: center; }
.pk-goods img { width: 72px; height: 72px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .38)); }
.pk-goods b { font-size: 14.5px; color: var(--text); }
.pk-goods strong { display: inline-flex; align-items: center; gap: 5px; font-family: var(--st-mono); font-size: 15px; color: var(--text); }
.pk-goods strong img { width: 16px; height: 16px; filter: none; }
.pk-goods span { font-size: 12.5px; line-height: 1.45; color: var(--text-3); text-wrap: balance; }
.pk-titles { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid rgba(255, 200, 87, .3); border-radius: 16px; background: linear-gradient(135deg, rgba(255, 200, 87, .08), rgba(180, 155, 255, .07)); }
.pk-titles-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pk-titles-head b { font-size: 15px; color: var(--text); }
.pk-soon { padding: 3px 9px; border-radius: 999px; background: rgba(255, 200, 87, .16); color: var(--pk-gold); font-size: 12px; font-weight: 700; }
.pk-title-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pk-title-list li { display: grid; place-items: center; gap: 6px; padding: 10px 8px 9px; border-radius: 12px; background: #12151c; }
.pk-title-list img { width: 100%; max-width: 192px; height: auto; aspect-ratio: 4 / 1; }
.pk-title-price { display: inline-flex; align-items: center; gap: 5px; font-family: var(--st-mono); font-size: 14px; font-weight: 700; color: var(--pk-gold); font-variant-numeric: tabular-nums; }
.pk-title-list .pk-title-price img { width: 16px; height: 16px; max-width: none; aspect-ratio: auto; }
.pk-soon.pk-on { background: rgba(95, 227, 181, .16); color: var(--pk-mint); }
.pk-open { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; color: var(--text-2); }
.pk-open kbd { padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); font-family: inherit; font-size: 12.5px; color: var(--text); }

/* ------------------------------------------------------------ 다듬기 */
.pk-hero-copy h2 em { white-space: nowrap; }
.pk-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 400px; }
.pk-ladder { flex: 1; }
.pk-ladder li { flex: 1; }
.pk-roles { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 14px; }
.pk-roles-head { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--text-3); }
.pk-roles ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pk-roles li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.pk-roles li img { width: auto; height: 20px; image-rendering: pixelated; }
.pk-roles li b { color: var(--text); font-weight: 700; }

/* ------------------------------------------------------------ 좁은 화면 */
@media (max-width: 980px) {
  .pk-rate, .pk-tier, .pk-invite, .pk-shop { grid-column: span 12; }
  .pk-medal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pk-hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .pk-hero-art { position: relative; inset: auto; z-index: 0; aspect-ratio: 21 / 9; }
  .pk-hero-art img { object-position: 82% 50%; }
  .pk-hero::before { display: none; }
  .pk-hero-copy { max-width: none; }
  .pk-rates li { grid-template-columns: 92px minmax(0, 1fr) 84px; gap: 8px; font-size: 13px; }
  .pk-rules, .pk-result { grid-template-columns: 1fr; }
  .pk-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-slide { grid-template-columns: 84px minmax(0, 1fr) 54px; }
  .pk-goods { grid-template-columns: 1fr; }
  .pk-goods li { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 4px 12px; text-align: left; }
  .pk-goods img { width: 56px; height: 56px; }
  .pk-title-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-gifts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pk-medal-list img { transition: none; }
}
