/* Season context extends the existing Ranking and Profile premium surfaces. */
.rs-dialog {
  margin: auto;
  color: #f6f5ee;
  background: #142820;
  border: 1px solid #65866e;
  border-radius: 24px;
  padding: 24px;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
}
.rs-dialog::backdrop { background: rgb(5 16 11 / 78%); }
.rs-dialog h2 { margin: 0 0 16px; font-size: 1.5rem; }
.rs-options { display: grid; gap: 12px; margin-top: 20px; }
.rs-option {
  display: grid; gap: 6px; width: 100%; text-align: left;
  padding: 16px; background: #20392c; border: 1px solid #65866e;
  border-radius: 16px; color: inherit; font: inherit; cursor: pointer;
}
.rs-option strong { font-size: 1.25rem; overflow-wrap: anywhere; }
.rs-option span, .rs-status { font-size: 1rem; font-weight: 700; }
.rs-option small, .rs-chapter small { font-size: 1rem; }
.rs-close, .rs-season-action, .rs-retry {
  min-height: 48px; padding: 10px 16px; border-radius: 12px;
  border: 1px solid currentColor; color: inherit; background: transparent;
  font-family: inherit; font-size: 1.0625rem; font-weight: 600; cursor: pointer;
}
.rs-season-action { margin-top: 12px; }
.rs-dialog button:focus-visible, .rs-chapters button:focus-visible,
.rk-profile button:focus-visible, .rk-profile select:focus-visible {
  outline: 3px solid #e4bf68; outline-offset: 3px;
}
.rs-rules { font-size: 1rem; line-height: 1.5; margin: 12px 0 0; }
.rs-my-label { display: block; width: 100%; font-size: 1.125rem; font-weight: 600; }
.rk2-hero-mid { flex-wrap: wrap; }
.rs-chapters { margin: 0 0 20px; font-size: 1rem; line-height: 1.5; }
.rs-chapters h3 { font-size: 1.375rem; margin: 0 0 16px; }
.rs-chapter {
  padding: 20px; margin-bottom: 16px; border-radius: 20px;
  background: linear-gradient(135deg, #183d2b, #112a21);
  border: 1px solid #486f54; color: #faf7eb;
}
.rs-chapter-podium { border-color: #c7a65e; }
.rs-chapter-top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.rs-chapter h4 { font-size: 1.25rem; margin: 0; overflow-wrap: anywhere; }
.rs-position { font-size: 1.375rem; font-weight: 700; margin-bottom: 8px; }
.rs-achievement { color: #f0d69a; font-size: 1.125rem; font-weight: 600; }
.rs-dimension { font-size: 1rem; }
.rs-season-stats { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 1.125rem; }
.rs-chapters p, .rs-dialog p { font-size: 1rem; }
.pp-trajectory .pt-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pp-trajectory .pt-stat { min-width: 0; }
.pp-trajectory .pt-stat span { font-size: 1rem; }
.rk-profile .rk-season-overline, .rk-profile .rk-classification,
.rk-profile .rk2-slot-pts, .rk-profile .rk-player-cat-prov,
.rk-profile .rk-vos { font-size: 1rem; }
.rk-profile .rk2-slot-name { font-size: 1.125rem; overflow-wrap: anywhere; }
.rk-profile .rk-season-name { overflow-wrap: anywhere; }
.rk-profile .rk2-top3 { display: block; }
.rk-profile .rk2-top3-head { flex-wrap: wrap; }
.rk-profile .rk2-top3-head h2 { font-size: 1.375rem; }
.rk-profile .rk2-top3-all { font-size: 1.0625rem; min-height: 48px; }
.rk-profile .rk-select { font-size: 1.0625rem; min-height: 52px; }
.rk-profile .rk-sex-notice { flex-wrap: wrap; }
.rk-profile .rk-sex-notice-copy { flex: 1 1 12rem; max-width: 100%; }
.rk-profile .rk-sex-notice-copy strong, .rk-profile .rk-sex-notice-copy span { font-size: 1rem; overflow-wrap: anywhere; }
.rk-profile .rk-sex-notice-cta { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.rk-profile .rk-table-heading { flex-wrap: wrap; }
.rk-profile .rk-count { display: inline-block; background: #29221D; color: #FFD5B4; border-radius: 6px; padding: 2px 6px; }
.theme-light .rk-profile .avatar { background: #29221D; min-width: 2.5rem; min-height: 2.5rem; }
.theme-light .rk-profile .avatar span { color: #FFD5B4; }
.rk-profile .rk-player { display: flex; flex-wrap: wrap; }
.rk-profile .rk-player-info { flex: 1 1 4rem; min-width: 0; }
.rk-profile .rk-player-pts { flex: 0 0 64px; }
.rk-profile .rk-player-stats { flex: 1 0 100%; }
.rk-profile .rk2-podium { grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.5rem), 1fr)); }
@media (max-width: 480px) {
  .rk-profile .rk2-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .rk-profile .rk2-stat-rate { grid-column: auto; }
  .rk-profile .rk2-stat:nth-child(3) { border-left: 0; }
  .rk-profile .rk2-stat-counted { flex-wrap: wrap; line-height: 1.5; }
}
@media (max-width: 412px) {
  .pp-trajectory .pt-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-chapter { padding: 16px; }
  .rs-chapter .rs-season-action { width: 100%; }
  .rk-profile .rk-segment { flex-wrap: wrap; }
}
