/* RTP — Shared Component Styles */

/* ── Reset (scoped) ─────────────────────────────────── */
.rtp-page * { box-sizing: border-box; }
.rtp-page { font-family: var(--rtp-font-ko); -webkit-font-smoothing: antialiased; }

/* ── Layout ─────────────────────────────────────────── */
.rtp-shell {
  min-height: 100vh;
  background: var(--rtp-white);
  display: flex;
  flex-direction: column;
}
.rtp-container {
  width: 100%;
  max-width: 432px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--rtp-white);
  min-height: 100vh;
}
.rtp-page-bg {
  background: var(--rtp-bg);
  flex: 1;
}

/* ── Header ──────────────────────────────────────────── */
.rtp-header {
  padding: 50px 20px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--rtp-white);
  position: relative;
  z-index: 5;
}
.rtp-header--dark { background: #0d0d0d; }
.rtp-header--hero-dark { background: #15171c; padding: 50px 20px 20px; }
.rtp-header--hero-dark .rtp-header__logo { color: #fff; }
.rtp-header__cta--orange {
  font-size: 14px; font-weight: 700; color: var(--rtp-orange);
  text-decoration: none; padding: 8px 4px;
  min-height: 44px; display: inline-flex; align-items: center;
}

.rtp-header__logo {
  font-family: var(--rtp-font-num);
  font-size: 20px;
  font-weight: 800;
  color: var(--rtp-orange);
  text-decoration: none;
  letter-spacing: -0.5px;
}
img.rtp-header__logo {
  height: 28px;
  width: auto;
  display: block;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

/* ── Tabs (PROFILE / STATS / GAMES) ─────────────────── */
.rtp-tabs {
  display: flex;
  border-bottom: 1px solid var(--rtp-line-soft);
  background: var(--rtp-white);
}
.rtp-tab {
  flex: 1;
  text-align: center;
  padding: 16px 0 12px;
  position: relative;
  font-family: var(--rtp-font-num);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--rtp-ink-4);
  text-decoration: none;
  transition: color var(--rtp-t-base) var(--rtp-ease-out);
}
.rtp-tab--active { color: var(--rtp-ink); }
.rtp-tab--active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--rtp-orange);
  border-radius: 2px;
  transition: left var(--rtp-t-base) var(--rtp-ease-out);
}
/* When shared indicator is used, suppress the pseudo-element bar */
.rtp-tabs[data-tabs] .rtp-tab--active::after { display: none; }
/* JS-managed active state mirrors CSS active state */
.rtp-tabs__btn--active { color: var(--rtp-ink); }

/* ── Buttons ─────────────────────────────────────────── */
.rtp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: var(--rtp-font-ko);
  font-weight: 700;
  border-radius: var(--rtp-radius-lg);
  transition: background var(--rtp-t-base) var(--rtp-ease-out),
              transform var(--rtp-t-base) var(--rtp-ease-out),
              box-shadow var(--rtp-t-base) var(--rtp-ease-out);
  text-decoration: none;
  min-height: 44px;
}
.rtp-btn--primary {
  background: var(--rtp-ink);
  color: var(--rtp-white);
  font-size: 15px;
  height: 48px;
  padding: 0 20px;
}
.rtp-btn--primary:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.rtp-btn--primary:active { transform: translateY(0); box-shadow: none; }

.rtp-btn--lg { height: 56px; font-size: 16px; padding: 0 24px; }
.rtp-btn--sm { height: 36px; font-size: 13px; padding: 0 14px; border-radius: var(--rtp-radius-sm); }
.rtp-btn--full { width: 100%; }

.rtp-btn--ghost {
  background: var(--rtp-bg);
  color: var(--rtp-ink);
  font-size: 14px;
  height: 48px;
  padding: 0 20px;
}
.rtp-btn--ghost:hover { background: var(--rtp-line); }

.rtp-btn--fab {
  background: var(--rtp-ink);
  color: var(--rtp-white);
  font-size: 15px;
  height: 56px;
  padding: 0 28px;
  border-radius: var(--rtp-radius-pill);
  font-weight: 800;
}

.rtp-btn--orange {
  background: var(--rtp-orange);
  color: var(--rtp-white);
}
.rtp-btn--orange:hover { filter: brightness(0.94); transform: translateY(-1px); box-shadow: var(--rtp-shadow-cta); }

/* ── Chips ───────────────────────────────────────────── */
.rtp-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--rtp-radius-pill);
  font-family: var(--rtp-font-ko);
  font-size: 13px;
  font-weight: 600;
  background: var(--rtp-bg);
  color: var(--rtp-ink-2);
  cursor: pointer;
  transition: background var(--rtp-t-fast);
}
.rtp-chip--active { background: var(--rtp-ink); color: var(--rtp-white); }
.rtp-chip--hero {
  height: 22px;
  padding: 0 9px;
  border-radius: var(--rtp-radius-sm);
  font-family: var(--rtp-font-num);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.rtp-chip--hero-pos { background: var(--rtp-orange); color: #fff; }
.rtp-chip--hero-num { background: rgba(255,255,255,0.08); color: #fff; }

/* ── Search Bar ─────────────────────────────────────── */
.rtp-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--rtp-radius-lg);
  background: var(--rtp-bg);
  border: 1.5px solid transparent;
  transition: border-color var(--rtp-t-fast), background var(--rtp-t-fast);
}
.rtp-search:focus-within {
  border-color: var(--rtp-orange);
  background: var(--rtp-white);
}
.rtp-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--rtp-font-ko);
  font-size: 15px;
  font-weight: 500;
  color: var(--rtp-ink);
}
.rtp-search input::placeholder { color: var(--rtp-ink-3); }
.rtp-search__icon { color: var(--rtp-ink-3); flex-shrink: 0; }

/* ── Form Fields ─────────────────────────────────────── */
.rtp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.rtp-field__label {
  font-family: var(--rtp-font-ko);
  font-size: 12px;
  font-weight: 600;
  color: var(--rtp-ink-2);
}
.rtp-field__input {
  height: 52px;
  padding: 0 16px;
  border-radius: var(--rtp-radius-lg);
  border: 1.5px solid var(--rtp-line);
  background: var(--rtp-white);
  font-family: var(--rtp-font-ko);
  font-size: 15px;
  font-weight: 500;
  color: var(--rtp-ink);
  width: 100%;
  transition: border-color var(--rtp-t-fast);
}
.rtp-field__input:focus { outline: none; border-color: var(--rtp-ink); }
.rtp-field__input--valid { border-color: var(--rtp-orange); }
.rtp-field__input--error { border-color: var(--rtp-error); }
.rtp-field__hint { font-size: 11px; font-weight: 500; color: var(--rtp-ink-3); margin-left: 4px; }
.rtp-field__hint--ok { color: var(--rtp-orange); }
.rtp-field__hint--err { color: var(--rtp-error); }

/* ── Dark Hero Card (ProfileF / FlowOther) ───────────── */
.rtp-hero {
  border-radius: var(--rtp-radius-3xl);
  background: var(--rtp-hero-dark);
  border-top: 2px solid var(--rtp-orange);
  padding: 16px 18px 16px;
  position: relative;
  overflow: visible;
}
.rtp-hero__body { display: flex; gap: 14px; align-items: stretch; }
.rtp-hero__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rtp-hero__team {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rtp-hero__team-bar { width: 3px; height: 11px; background: var(--rtp-orange); border-radius: 1px; flex-shrink: 0; }
.rtp-hero__team-name {
  font-family: var(--rtp-font-ko);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}
.rtp-hero__name {
  margin-top: 10px;
  font-family: var(--rtp-font-ko);
  font-size: 30px;
  font-weight: 800;
  color: var(--rtp-orange);
  letter-spacing: -1px;
  line-height: 1;
}
.rtp-hero__chips { display: flex; gap: 6px; margin-top: 10px; align-items: center; }

/* ── Photo Slot ──────────────────────────────────────── */
.rtp-photo-slot {
  width: 116px;
  height: 116px;
  flex-shrink: 0;
  position: relative;
  border-radius: var(--rtp-radius-xl);
  overflow: hidden;
  background: var(--rtp-hero-inner);
  cursor: pointer;
}
.rtp-photo-slot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.rtp-photo-slot__img--visible { display: block; }
.rtp-photo-slot__input { display: none; }
.rtp-photo-slot__svg { position: absolute; inset: 0; }

/* ── Hero Stats Row ──────────────────────────────────── */
.rtp-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.rtp-hero__stat { text-align: center; }
.rtp-hero__stat-label {
  font-family: var(--rtp-font-num);
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 3px;
}
.rtp-hero__stat-value {
  font-family: var(--rtp-font-num);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.6px;
}

/* ── Inline Edit ─────────────────────────────────────── */
[data-editable] {
  outline: none;
  cursor: text;
  border-radius: 2px;
  transition: background var(--rtp-t-fast);
}
[data-editable]:focus { background: rgba(255,107,53,0.18); }

/* ── Game Card A ─────────────────────────────────────── */
.rtp-gamecard {
  background: var(--rtp-white);
  border-radius: 16px;
  border: 1px solid var(--rtp-line);
  padding: 16px 18px;
  width: 100%;
}
.rtp-gamecard__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rtp-gamecard__meta { font-size: 11px; color: var(--rtp-ink-3); font-weight: 500; letter-spacing: 0.2px; }
.rtp-gamecard__meta span { font-family: var(--rtp-font-num); font-weight: 600; }
.rtp-gamecard__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 24px;
  padding: 0 8px;
  border-radius: 4px;
  font-family: var(--rtp-font-num);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.rtp-gamecard__badge--win { background: var(--rtp-orange-soft); color: var(--rtp-orange); }
.rtp-gamecard__badge--loss { background: var(--rtp-bg); color: var(--rtp-loss); }
.rtp-gamecard__badge--dnp { background: var(--rtp-line-soft); color: var(--rtp-ink-3); }
.rtp-gamecard__badge--tie { background: var(--rtp-bg); color: var(--rtp-ink-3); }
.rtp-gamecard__score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.rtp-gamecard__team { font-size: 14px; font-weight: 700; color: var(--rtp-ink); }
.rtp-gamecard__score-num {
  font-family: var(--rtp-font-num);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.rtp-gamecard__score-sep { color: var(--rtp-ink-3); font-weight: 500; }
.rtp-gamecard__divider { height: 1px; background: var(--rtp-line-soft); margin: 12px -2px; }
.rtp-gamecard__stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.rtp-gamecard__stats--5col { grid-template-columns: repeat(5, 1fr); }
.rtp-gamecard__stats--6col { grid-template-columns: repeat(6, 1fr); }
.rtp-gamecard__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
}
.rtp-gamecard__stat + .rtp-gamecard__stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--rtp-line-soft);
}
.rtp-gamecard__stat-val {
  font-family: var(--rtp-font-num);
  font-size: 18px;
  font-weight: 700;
  color: var(--rtp-ink);
  letter-spacing: -0.3px;
}
.rtp-gamecard__stat-val--accent { color: var(--rtp-orange); }
.rtp-gamecard__stat-key { font-size: 10px; color: var(--rtp-ink-3); font-weight: 500; }

/* ── Progress Bar (step) ─────────────────────────────── */
.rtp-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  margin: 0 8px;
}
.rtp-progress__track {
  flex: 1;
  height: 4px;
  background: var(--rtp-line-soft);
  border-radius: 2px;
}
.rtp-progress__fill {
  height: 4px;
  background: var(--rtp-ink);
  border-radius: 2px;
  transition: width var(--rtp-t-base) var(--rtp-ease-out);
}
.rtp-progress__label {
  font-family: var(--rtp-font-num);
  font-size: 12px;
  font-weight: 700;
  color: var(--rtp-ink-3);
  white-space: nowrap;
}

/* ── Step Header ─────────────────────────────────────── */
.rtp-step-header {
  padding: 50px 16px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.rtp-back-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--rtp-ink);
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

/* ── Section Label ───────────────────────────────────── */
.rtp-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.rtp-section-label__title { font-family: var(--rtp-font-ko); font-size: 12px; font-weight: 700; color: var(--rtp-ink); }
.rtp-section-label__action { font-family: var(--rtp-font-ko); font-size: 11px; color: var(--rtp-ink-3); font-weight: 600; }

/* ── Season Avg Grid ─────────────────────────────────── */
.rtp-season-avg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 18px 14px;
  border: 1px solid var(--rtp-line);
  border-radius: var(--rtp-radius-xl);
  margin-bottom: 20px;
}
.rtp-season-avg__stat { text-align: center; }
.rtp-season-avg__val {
  font-family: var(--rtp-font-num);
  font-size: 22px;
  font-weight: 800;
  color: var(--rtp-ink);
  letter-spacing: -0.5px;
}
.rtp-season-avg__val--accent { color: var(--rtp-orange); }
.rtp-season-avg__key { font-size: 10px; color: var(--rtp-ink-3); font-weight: 600; margin-top: 2px; }

/* ── Lock/Blur overlay (FlowOther) ──────────────────── */
.rtp-blurred { filter: blur(6px); pointer-events: none; user-select: none; }
.rtp-lock-overlay {
  padding: 16px 18px;
  border-radius: var(--rtp-radius-xl);
  background: var(--rtp-white);
  box-shadow: var(--rtp-shadow-modal);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.rtp-lock-overlay__icon { font-size: 20px; flex-shrink: 0; }
.rtp-lock-overlay__text { font-size: 13px; color: var(--rtp-ink-2); flex: 1; line-height: 1.5; }

/* ── Modal close button ──────────────────────────────── */
.rtp-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--rtp-ink-2);
  border-radius: var(--rtp-radius-md);
  -webkit-tap-highlight-color: transparent;
}
.rtp-modal__close:hover { background: var(--rtp-line); }

/* ── Recent games viewall button ─────────────────────── */
.rtp-recent__viewall {
  font-size: 13px;
  color: var(--rtp-orange);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ── Compare CTA Banner ──────────────────────────────── */
.rtp-cta-banner {
  padding: 16px 18px;
  border-radius: var(--rtp-radius-xl);
  background: var(--rtp-white);
  border: 1px solid var(--rtp-line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.rtp-cta-banner__copy { flex: 1; }
.rtp-cta-banner__title { font-size: 13px; font-weight: 700; color: var(--rtp-ink); }
.rtp-cta-banner__sub { font-size: 11px; color: var(--rtp-ink-3); margin-top: 2px; }

/* ── Error message ───────────────────────────────────── */
.rtp-error-msg {
  font-size: 13px;
  color: var(--rtp-error);
  background: rgba(255,66,66,0.08);
  padding: 10px 14px;
  border-radius: var(--rtp-radius-md);
  margin-bottom: 16px;
}

/* ── Paywall bottom sheet ────────────────────────────── */
.rtp-paywall-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,18,24,0.42);
  z-index: 40;
}
.rtp-paywall-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: 432px;
  margin: 0 auto;
  background: var(--rtp-white);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 28px 24px 36px;
  z-index: 50;
  animation: rtp-sheet-up var(--rtp-t-slow) var(--rtp-ease-out);
}
@keyframes rtp-sheet-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.rtp-paywall-handle {
  width: 40px; height: 4px;
  background: var(--rtp-line);
  border-radius: 2px;
  margin: 0 auto 18px;
}

/* ── Position Grid ───────────────────────────────────── */
.rtp-pos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.rtp-pos-btn {
  padding: 14px 0;
  border-radius: var(--rtp-radius-md);
  text-align: center;
  border: 1px solid var(--rtp-line);
  background: var(--rtp-white);
  font-family: var(--rtp-font-num);
  font-size: 14px;
  font-weight: 800;
  color: var(--rtp-ink-2);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background var(--rtp-t-fast), border-color var(--rtp-t-fast), color var(--rtp-t-fast);
  min-height: 44px;
}
.rtp-pos-btn--active {
  background: var(--rtp-ink);
  border-color: var(--rtp-ink);
  color: var(--rtp-white);
}

/* ── Player list row ─────────────────────────────────── */
.rtp-player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rtp-line-soft);
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}
.rtp-player-row:last-child { border-bottom: none; }
.rtp-player-row__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rtp-bg);
  flex-shrink: 0;
  overflow: hidden;
}
.rtp-player-row__avatar img { width: 100%; height: 100%; object-fit: cover; }
.rtp-player-row__name { font-size: 15px; font-weight: 600; color: var(--rtp-ink); }
.rtp-player-row__meta { font-size: 12px; color: var(--rtp-ink-3); margin-top: 2px; }

/* ── Match card ──────────────────────────────────────── */
.rtp-match-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--rtp-line);
  border-radius: var(--rtp-radius-xl);
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}
.rtp-match-card__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--rtp-bg);
  flex-shrink: 0;
}
.rtp-match-card__name { font-size: 17px; font-weight: 700; color: var(--rtp-ink); }
.rtp-match-card__meta { font-size: 12px; color: var(--rtp-ink-3); margin-top: 3px; }
.rtp-match-card__cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--rtp-blue-ink);
  white-space: nowrap;
  flex-shrink: 0;
}
/* probabilistic CTA: % 를 주 액션으로, 탭하면 프로필 둘러보기 */
.rtp-match-card__cta--prob {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.rtp-match-card__cta-pct {
  font-family: var(--rtp-font-num);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--rtp-blue-ink);
}
.rtp-match-card__cta-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--rtp-ink-3);
}
/* form wrapper: strip default form/button chrome so card layout is identical */
.rtp-match-card-form {
  margin: 0;
  padding: 0;
}
/* button variant of match card */
button.rtp-match-card {
  width: 100%;
  background: var(--rtp-white);
  border: 1px solid var(--rtp-line);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
button.rtp-match-card--claim {
  border-color: var(--rtp-blue);
}
button.rtp-match-card--claim:hover,
button.rtp-match-card--claim:focus-visible {
  background: var(--rtp-blue-soft);
  outline: 2px solid var(--rtp-blue);
  outline-offset: 2px;
}

/* ── Stats chart toggle chips ────────────────────────── */
.rtp-stat-toggles {
  display: flex;
  gap: 8px;
  margin: 16px 0 8px;
}
.rtp-stat-toggle {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  border-radius: var(--rtp-radius-md);
  background: var(--rtp-bg);
  color: var(--rtp-ink-2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  min-height: 44px;
  transition: background var(--rtp-t-fast), color var(--rtp-t-fast);
}
.rtp-stat-toggle--active { background: var(--rtp-ink); color: var(--rtp-white); }

/* ── SVG Chart ───────────────────────────────────────── */
.rtp-chart { width: 100%; overflow: visible; }
.rtp-chart__line {
  fill: none;
  stroke: var(--rtp-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rtp-chart__area { fill: rgba(49,130,246,0.08); }
.rtp-chart__dot { fill: var(--rtp-blue); }

/* ── CTA Hero Button ─────────────────────────────────── */
.rtp-cta--hero {
  display: inline-flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--rtp-cta-hero-start) 0%, var(--rtp-cta-hero-end) 100%);
  color: #fff; font-size: 18px; font-weight: 800; line-height: 1.2;
  padding: 14px 28px; border-radius: 14px;
  box-shadow: 0 10px 28px var(--rtp-cta-hero-shadow);
  border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
  text-decoration: none;
}
.rtp-cta--hero:hover { transform: translateY(-2px); }
.rtp-cta--hero:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .rtp-cta--hero, .rtp-cta--hero:hover, .rtp-cta--hero:active {
    transform: none; transition: none;
  }
}

/* ── Tab indicator ───────────────────────────────────── */
.rtp-tabs { position: relative; }
.rtp-tabs[data-tabs] { display: flex; gap: 4px; }
.rtp-tabs__indicator {
  position: absolute; bottom: 0; left: 0; height: 3px; width: 100px;
  background: var(--rtp-orange); border-radius: 2px;
  transition: transform .2s cubic-bezier(.2,.7,.4,1);
  pointer-events: none;
}
.rtp-tabpanels { overflow: hidden; }
.rtp-tabpanels__wrapper { display: flex; width: 300%; transition: transform .2s; }
.rtp-tabpanel { width: 33.333%; }
@media (prefers-reduced-motion: reduce) {
  .rtp-tabs__indicator, .rtp-tabpanels__wrapper { transition: none; }
}

/* ── Button press feedback ───────────────────────────── */
.rtp-btn:active, button.rtp-cta--hero:active { transform: scale(.96); }

/* ── Season stats row (StatsC) ───────────────────────── */
.rtp-season-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
}
.rtp-season-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--rtp-radius-pill);
  background: var(--rtp-bg);
  font-family: var(--rtp-font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--rtp-ink);
}

/* ── User Menu (⋮ hamburger) ─────────────────────────── */
.rtp-user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.rtp-user-menu__trigger {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--rtp-ink-2);
  border-radius: var(--rtp-radius-md);
  -webkit-tap-highlight-color: transparent;
  transition: background var(--rtp-t-fast);
}
.rtp-user-menu__trigger:hover { background: var(--rtp-line-soft); }
.rtp-header--hero-dark .rtp-user-menu__trigger { color: rgba(255,255,255,0.6); }
.rtp-header--hero-dark .rtp-user-menu__trigger:hover { background: rgba(255,255,255,0.08); }

.rtp-user-menu__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 148px;
  background: var(--rtp-white);
  border: 1px solid var(--rtp-line);
  border-radius: var(--rtp-radius-xl);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  overflow: hidden;
}
.rtp-user-menu__dropdown[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .rtp-user-menu__dropdown--open {
    animation: rtp-menu-in 0.12s var(--rtp-ease-out) both;
  }
}
@keyframes rtp-menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.rtp-user-menu__item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 16px;
  font-family: var(--rtp-font-ko);
  font-size: 14px;
  font-weight: 600;
  color: var(--rtp-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rtp-line-soft);
  transition: background var(--rtp-t-fast);
  white-space: nowrap;
}
.rtp-user-menu__item:last-child { border-bottom: none; }
.rtp-user-menu__item:hover { background: var(--rtp-bg); }

.rtp-user-menu__item--btn {
  background: none;
  border: none;
  border-bottom: 1px solid var(--rtp-line-soft);
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--rtp-font-ko);
  font-size: 14px;
  font-weight: 600;
  color: var(--rtp-error, #FF4242);
}
.rtp-user-menu__item--btn:last-child { border-bottom: none; }
.rtp-user-menu__item--btn:hover { background: var(--rtp-bg); }

.rtp-user-menu__logout-form { display: contents; }

/* ── no-link page body (my_profile_no_link) ─────────── */
.rtp-no-link-body {
  padding: 40px 24px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.rtp-no-link-emoji {
  font-size: 48px;
  margin-bottom: 16px;
}
.rtp-no-link-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--rtp-ink);
  margin: 0 0 8px;
}
.rtp-no-link-sub {
  font-size: 14px;
  color: var(--rtp-ink-2);
  line-height: 1.6;
  margin: 0 0 32px;
}
.rtp-no-link-home {
  margin-top: 12px;
}

/* ── VOD button on game cards ────────────────────────── */
.rtp-gamecard__top-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rtp-gamecard__vod {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 4px;
  background: var(--rtp-line-soft, #F2F4F6);
  color: var(--rtp-ink-2);
  text-decoration: none;
  border: 1px solid var(--rtp-line, #E5E8EB);
  transition: background var(--rtp-t-fast), color var(--rtp-t-fast);
  -webkit-tap-highlight-color: transparent;
}
.rtp-gamecard__vod:hover {
  background: var(--rtp-orange-soft, rgba(255,107,53,0.1));
  color: var(--rtp-orange);
  border-color: var(--rtp-orange);
}

/* ── 카드 스튜디오 진입 버튼 (stat_card_studio R1) ───────
   시각 크기는 VOD 아이콘과 정렬(24px)하되, 의사요소로 44px 탭타겟을 확보한다
   (인접 배지/텍스트는 클릭 불가 요소라 히트 영역이 겹쳐도 안전). */
.rtp-gamecard__card-studio {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 4px;
  background: var(--bb-primary-soft, #FFEEE6);
  color: var(--bb-primary, #FF6B35);
  text-decoration: none;
  border: 1px solid var(--bb-primary, #FF6B35);
  transition: background var(--rtp-t-fast), color var(--rtp-t-fast);
  -webkit-tap-highlight-color: transparent;
}
.rtp-gamecard__card-studio::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--bb-tap-target, 44px);
  height: var(--bb-tap-target, 44px);
  transform: translate(-50%, -50%);
}
.rtp-gamecard__card-studio:hover {
  background: var(--bb-primary, #FF6B35);
  color: #fff;
}

/* ── Incomplete inline banner (R21) ──────────────────── */
.rtp-incomplete-inline-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 16px 12px;
  padding: 12px 16px;
  border-radius: var(--rtp-radius-xl);
  background: var(--rtp-orange-soft, rgba(255,107,53,0.08));
  border: 1px solid rgba(255,107,53,0.2);
}
.rtp-incomplete-inline-banner__text {
  font-size: 13px;
  font-weight: 600;
  color: var(--rtp-ink);
  flex: 1;
  line-height: 1.4;
}
.rtp-incomplete-inline-banner__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--rtp-orange);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.rtp-incomplete-inline-banner__link:hover { text-decoration: underline; }

/* ── Footer Nav (R33) ────────────────────────────────── */
.rtp-footer-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  background: var(--rtp-white);
  border-top: 1px solid var(--rtp-line);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.rtp-footer-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--rtp-ink-3);
  transition: color var(--rtp-t-fast) var(--rtp-ease-out);
}
.rtp-footer-nav__item--active { color: var(--rtp-orange); }
.rtp-footer-nav__icon { width: 24px; height: 24px; display: block; }
.rtp-footer-nav__label { font-size: 11px; font-weight: 600; letter-spacing: 0.2px; }
.rtp-footer-nav__item--active .rtp-footer-nav__icon { stroke-width: 2.2; }

/* ── Body bottom padding for footer (R33) ────────────── */
.rtp-container { padding-bottom: 64px; }

/* ── Photo Slot hidden (R35) ─────────────────────────── */
.rtp-photo-slot { display: none !important; }

/* ── 정책 푸터 (PG 심사: 이용약관/개인정보/환불/사업자정보 상시 노출) ── */
.rtp-legal-footer {
  border-top: 1px solid var(--rtp-line, #E5E8EB);
  padding: 22px 20px 28px;
  text-align: center;
  background: var(--rtp-white, #fff);
}
.rtp-legal-footer--has-nav { padding-bottom: 88px; } /* 로그인 시 하단 고정 nav 여백 */
.rtp-legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
  margin-bottom: 4px;
}
/* 44×44 최소 탭타겟 (모바일 접근성 가드 — test_stat_detail_render flow) */
.rtp-legal-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rtp-ink-2, #4e5968);
  text-decoration: none;
  transition: color var(--rtp-t-fast, .15s) var(--rtp-ease-out, ease);
}
.rtp-legal-footer__links a:hover { color: var(--rtp-orange, #FF6B35); }
.rtp-legal-footer__copy {
  font-size: 12px;
  color: var(--rtp-ink-3, #8b95a1);
  margin: 0;
}
