/* Собрано scripts/build_club_site_vendor.py из webapp/style.css — не править руками. */
.app-ui {
  --accent: #007aff;
  --accent-text: #ffffff;
  --bg: #000000;
  --bottom-bar-padding-bottom: calc(var(--day-bottom-bar-pad-y) + var(--inset-bottom));
  --card-shadow-spill: 8px;
  --danger: #e74c3c;
  --day-bottom-bar-btn-height: 48px;
  --day-bottom-bar-pad-x: 16px;
  --day-bottom-bar-pad-y: 12px;
  --day-bottom-bar-scroll-pad: calc(
    var(--day-bottom-bar-pad-y) * 2 + var(--day-bottom-bar-btn-height) + var(--inset-bottom)
  );
  --day-bottom-bar-scroll-pad-double: calc(
    var(--day-bottom-bar-pad-y) * 2
    + var(--day-bottom-bar-btn-height) * 2
    + 8px
    + var(--inset-bottom)
  );
  --day-bottom-bar-scroll-pad-dynamic: var(--day-bottom-bar-scroll-pad-double);
  --elo-level-color: #ffc800;
  --elo-level-track: color-mix(in srgb, var(--hint, #8a8f98) 40%, #2a2d32);
  --font-mono-nums: var(--font-sans);
  --font-sans: Onest, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --footer-safe-bottom: var(--safe-bottom);
  --hint: #8e8e93;
  --host-modal-chrome: calc(
    5.25rem + var(--day-bottom-bar-pad-y) * 2 + var(--day-bottom-bar-btn-height) * 3 + 12px
  );
  --host-modal-scroll-max: calc(var(--modal-max-height) - var(--host-modal-chrome));
  --inset-bottom: calc(var(--footer-safe-bottom) + var(--keyboard-inset, 0px));
  --keyboard-inset: 0px;
  --modal-max-height: calc(100dvh - var(--safe-top));
  --modal-padding-bottom: calc(var(--day-bottom-bar-pad-y) + var(--inset-bottom));
  --modal-surface: color-mix(in srgb, var(--secondary) 26%, var(--bg));
  --radius: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --scroll-mask: linear-gradient(to bottom, transparent var(--scroll-y), #000 calc(var(--scroll-y) + min(var(--scroll-y), 28px)));
  --scroll-y: 0px;
  --secondary: #1c1c1e;
  --skeleton-base: color-mix(in srgb, var(--secondary) 88%, var(--text) 5%);
  --skeleton-shine: color-mix(in srgb, var(--secondary) 72%, var(--text) 9%);
  --success: #2ecc71;
  --surface-bg: color-mix(in srgb, var(--secondary) 42%, var(--bg));
  --tb-base: var(--bg);
  --tb-gold: #ffc861;
  --tb-line: color-mix(in srgb, var(--text) 9%, transparent);
  --tb-press: cubic-bezier(0.2, 0, 0, 1);
  --tb-r: 20px;
  --tb-row-inset: 16px;
  --tb-s1: color-mix(in srgb, var(--text) 6%, var(--tb-base));
  --tb-s2: color-mix(in srgb, var(--text) 11%, var(--tb-base));
  --tb-stripe: color-mix(in srgb, var(--text) 5%, var(--tb-base));
  --tb-t2: color-mix(in srgb, var(--text) 55%, transparent);
  --tb-t3: color-mix(in srgb, var(--text) 30%, transparent);
  --text: #ffffff;
}
.app-ui .club-switcher.hidden {
  display: none;
}
.app-ui #days-list-view:not(.hidden) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 12px;
}
.app-ui #day-detail:not(.hidden) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 12px;
}
.app-ui #days-list-view:not(.hidden) #days-list.days-list-with-casual {
  padding-bottom: var(--days-list-bottom-pad, calc(var(--day-bottom-bar-scroll-pad) + 8px));
}
.app-ui #day-detail:not(.hidden) .day-games-scroll {
  padding-bottom: var(--day-bottom-bar-scroll-pad-dynamic);
}
.app-ui #day-detail:not(.hidden) .day-bottom-bar, .app-ui #days-list-view:not(.hidden) .day-bottom-bar, .app-ui #tab-host-music-playlist.active .day-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  padding: var(--day-bottom-bar-pad-y) var(--day-bottom-bar-pad-x) var(--bottom-bar-padding-bottom);
  background: linear-gradient(to top, var(--bg) 72%, color-mix(in srgb, var(--bg) 88%, transparent));
  border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.22);
}
.app-ui .elo-level-badge {
  --elo-level-color: #ffc800;
  --elo-level-track: color-mix(in srgb, var(--hint, #8a8f98) 40%, #2a2d32);
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  vertical-align: middle;
  line-height: 0;
}
.app-ui .elo-level-badge-pad {
  position: relative;
  width: 1.7rem;
  height: 1.7rem;
}
.app-ui .elo-level-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.app-ui .elo-level-track, .app-ui .elo-level-arc {
  fill: none;
  stroke-linecap: round;
  stroke-width: 4;
}
.app-ui .elo-level-track {
  stroke: var(--elo-level-track);
}
.app-ui .elo-level-arc {
  stroke: var(--elo-level-color);
}
.app-ui .elo-level-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--elo-level-color);
  font-family: var(--font-mono-nums);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: normal;
  font-feature-settings: normal;
  line-height: 1;
  letter-spacing: -0.02em;
  pointer-events: none;
}
.app-ui .chip .elo-level-badge-pad {
  width: 1.4rem;
  height: 1.4rem;
}
.app-ui .chip .elo-level-num {
  font-size: 0.68rem;
}
.app-ui .chip .elo-level-track, .app-ui .chip .elo-level-arc {
  stroke-width: 3.5;
}
.app-ui .hidden { display: none !important; }
.app-ui .list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 2px;
}
.app-ui .list.compact {
  max-height: 50vh;
  overflow-y: auto;
  padding-inline: var(--card-shadow-spill);
  padding-block: 4px;
}
.app-ui .card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.app-ui .badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.app-ui .rating-history-modal {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}
.app-ui .rating-history-modal > :not(.profile-achievements-carousel) {
  margin-inline: 16px;
}
.app-ui .rating-history-player-card {
  margin: 0;
}
.app-ui .rating-history-stats-row {
  margin: 0;
}
.app-ui .rating-history-stats-row .profile-stat-card {
  padding: 12px 12px;
}
.app-ui .rating-history-actions {
  margin: 0;
}
.app-ui .profile-achievements-carousel {
  margin: 0;
  max-width: none;
}
.app-ui .profile-achievements-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}
.app-ui .profile-achievements-carousel-viewport::-webkit-scrollbar {
  display: none;
}
.app-ui .profile-achievements-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 0 16px;
  width: max-content;
  box-sizing: content-box;
}
.app-ui .profile-achievement-tile {
  flex: 0 0 88px;
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 0 8px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.app-ui .profile-achievement-tile:active {
  opacity: 0.82;
}
.app-ui .profile-achievement-tile.is-gold .profile-achievement-tile-title {
  color: #e8c547;
}
.app-ui .profile-achievement-tile-icon-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}
.app-ui .profile-achievement-tile-icon {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--secondary) 58%, var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
  box-sizing: border-box;
}
.app-ui .profile-achievement-tile-title {
  width: 100%;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-ui #modal-achievement-detail .modal-content {
  --modal-surface: color-mix(in srgb, var(--secondary) 26%, var(--bg));
}
.app-ui .rating-history-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-ui .rating-history-section-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.app-ui .rating-history-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.app-ui .rating-history-tabs {
  flex-shrink: 0;
  margin: 0;
  width: 100%;
}
.app-ui .rating-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-ui .rating-history-list.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.app-ui .rating-history-elo-total .elo-level-badge-pad {
  width: 1.85rem;
  height: 1.85rem;
}
.app-ui .rating-history-elo-total .elo-level-num {
  font-size: 0.82rem;
}
.app-ui .rating-history-day {
  background: color-mix(in srgb, var(--secondary) 58%, var(--bg));
  border-radius: var(--radius);
  padding: 16px;
}
.app-ui .rating-history-day-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.app-ui .rating-history-day-points {
  font-family: var(--font-mono-nums);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: normal;
  font-feature-settings: normal;
  color: var(--accent);
  white-space: nowrap;
}
.app-ui .rating-history-games {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.app-ui .rating-history-game {
  background: color-mix(in srgb, var(--text) 5%, transparent);
  border-radius: calc(var(--radius) - 4px);
  padding: 12px 14px;
}
.app-ui .rating-history-game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.app-ui .rating-history-game-title {
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
}
.app-ui .rating-history-game-points {
  font-family: var(--font-mono-nums);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: normal;
  font-feature-settings: normal;
  color: var(--accent);
  white-space: nowrap;
}
.app-ui .rating-history-game-points.is-negative, .app-ui .rating-history-day-points.is-negative {
  color: color-mix(in srgb, #e05a5a 85%, var(--text));
}
.app-ui .rating-history-game-points.is-positive, .app-ui .rating-history-day-points.is-positive {
  color: var(--accent);
}
.app-ui .rating-history-game-breakdown {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
  gap: 6px;
}
.app-ui .rating-history-game-breakdown .points-breakdown-line {
  font-size: 13px;
}
.app-ui .rating-history-game-breakdown .points-breakdown-value {
  font-family: var(--font-mono-nums);
  font-weight: 400;
  font-variant-numeric: normal;
  font-feature-settings: normal;
  color: var(--text-muted, rgba(255, 255, 255, 0.55));
}
.app-ui #modal-rating-history .empty {
  margin: 0;
}
.app-ui :is(#modal-day-results, .day-results-inline) .day-results-game-index {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 1.85rem;
  margin: 0;
  padding: 0;
  color: color-mix(in srgb, var(--text) 36%, transparent);
  font-family: var(--font-mono-nums);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: normal;
  font-feature-settings: normal;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}
.app-ui :is(#modal-day-results, .day-results-inline) .day-results-role-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.app-ui :is(#modal-day-results, .day-results-inline) .day-results-rating-elo .elo-level-badge {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.app-ui :is(#modal-day-results, .day-results-inline) .day-results-rating-elo .elo-level-badge-pad {
  width: 22px;
  height: 22px;
}
.app-ui :is(#modal-day-results, .day-results-inline) .day-results-rating-elo .elo-level-num {
  font-size: 10px;
}
.app-ui :is(#modal-day-results, .day-results-inline) .day-results-rating-delta.is-positive {
  color: #4ade80;
}
.app-ui :is(#modal-day-results, .day-results-inline) .day-results-rating-delta.is-negative {
  color: #f87171;
}
.app-ui .points-breakdown {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-ui .points-breakdown-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}
.app-ui .points-breakdown-label {
  color: var(--text);
}
.app-ui .points-breakdown-value {
  font-family: var(--font-mono-nums);
  font-weight: 600;
  font-variant-numeric: normal;
  font-feature-settings: normal;
  color: var(--accent);
  white-space: nowrap;
}
.app-ui .modal-header h3 .host-game-history-title .game-card-index {
  width: 2.4rem;
  font-size: 28px;
  text-align: center;
}
.app-ui .modal-header h3 .host-game-history-title .game-card-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.app-ui .modal-header h3 .host-game-history-title .game-card-result-label {
  margin: 0;
}
.app-ui .modal-header h3 .host-game-history-title .game-card-number {
  margin-bottom: 0;
}
.app-ui .modal-header h3 .host-game-history-winner {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.app-ui .game-card .chip-list.game-players {
  gap: 8px;
}
.app-ui .primary-btn.is-loading, .app-ui .secondary-btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: wait;
  opacity: 0.88;
}
.app-ui .modal.modal-suspended {
  visibility: hidden !important;
  pointer-events: none !important;
}
.app-ui #modal-confirm .modal-content, .app-ui #modal-day-vote-queue .modal-content {
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.22);
}
.app-ui .modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  overflow: hidden;
  overscroll-behavior: none;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  z-index: 100;
  padding: 0;
}
.app-ui #modal-rating-history .modal-content {
  --modal-surface: color-mix(in srgb, var(--secondary) 26%, var(--bg));
  padding-left: 0;
  padding-right: 0;
}
.app-ui #modal-rating-history .modal-header, .app-ui #modal-rating-history .modal-footer-float {
  padding-inline: 16px;
}
.app-ui #modal-rating-history .modal-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.app-ui .rating-history-title-text {
  min-width: 0;
}
.app-ui .rating-history-telegram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  
  color: color-mix(in srgb, var(--text) 55%, transparent);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.app-ui .rating-history-telegram-link:active {
  opacity: 0.75;
}
.app-ui .rating-history-telegram-link .fa-telegram {
  display: block;
  line-height: 1;
}
.app-ui #modal-rating-history .modal-header {
  position: relative;
  z-index: 2;
  margin-bottom: -48px;
  pointer-events: none;
}
.app-ui #modal-rating-history .modal-header > * { pointer-events: auto; }
.app-ui #modal-rating-history .modal-scroll-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-inline: 0;
  padding-inline: 0;
  padding-top: 84px;
  overflow-x: hidden;
  
  --scroll-y: 0px;
  --scroll-mask: linear-gradient(to bottom, transparent var(--scroll-y), #000 calc(var(--scroll-y) + min(var(--scroll-y), 28px)));
  -webkit-mask-image: var(--scroll-mask);
  mask-image: var(--scroll-mask);
}
.app-ui #modal-rating-history .profile-card, .app-ui #modal-rating-history .profile-stat-card, .app-ui #modal-rating-history .rating-history-day, .app-ui #modal-rating-history .rating-history-summary {
  background: color-mix(in srgb, var(--secondary) 58%, var(--bg));
  box-shadow: none;
}
.app-ui #modal-rating-history .rating-view-tabs {
  background: color-mix(in srgb, var(--secondary) 58%, var(--bg));
}
.app-ui #modal-rating-history .rating-view-tab.active {
  background: color-mix(in srgb, var(--secondary) 78%, var(--bg));
  box-shadow: none;
}
.app-ui #modal-rating-history .club-nav-btn {
  background: color-mix(in srgb, var(--secondary) 58%, var(--bg));
  box-shadow: none;
}
.app-ui .modal-content {
  --modal-surface: var(--surface-bg);
  background: var(--modal-surface);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 20px 16px 20px;
  width: 100%;
  max-height: var(--modal-max-height);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.22);
}
.app-ui .modal-content:not(.modal-with-footer) {
  padding-bottom: var(--modal-padding-bottom);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.app-ui .modal-content.modal-with-footer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
.app-ui .modal-content.modal-with-footer:not(:has(> .modal-footer-float)) {
  padding-bottom: var(--modal-padding-bottom);
}
.app-ui #modal-host-music-queue .modal-content.modal-with-footer {
  padding-bottom: 0;
}
.app-ui .modal-large {
  max-height: var(--modal-max-height);
}
.app-ui .modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: start;
  column-gap: 12px;
  margin-bottom: 16px;
}
.app-ui .modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  align-self: center;
}
.app-ui .modal-header h3:has(.host-modal-title-round) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.app-ui .modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--text) 10%, var(--bg));
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  align-self: center;
  justify-self: end;
}
.app-ui .modal-close svg {
  width: 20px;
  height: 20px;
}
.app-ui .modal-with-footer {
  max-height: var(--modal-max-height);
}
.app-ui .modal-scroll-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
  margin-inline: calc(-1 * var(--card-shadow-spill));
  padding-inline: var(--card-shadow-spill);
  padding-block: 4px;
}
.app-ui .modal-header, .app-ui .modal-actions, .app-ui .modal-footer-float, .app-ui .host-modal-actions {
  flex-shrink: 0;
}
.app-ui .host-night-music-float.hidden {
  display: none;
}
.app-ui .host-night-music-play.is-loading {
  opacity: 1;
  cursor: wait;
}
.app-ui .host-music-playlist-item.is-active {
  border-color: var(--accent, #6ea8fe);
  box-shadow: inset 0 0 0 1px var(--accent, #6ea8fe);
}
.app-ui #modal-host-music-queue .modal-content {
  display: flex;
  flex-direction: column;
  max-height: var(--modal-max-height);
  overflow: hidden;
  padding-bottom: 0;
  --modal-surface: color-mix(in srgb, var(--secondary) 26%, var(--bg));
}
.app-ui .modal-scroll-body.is-drag-scroll-lock {
  overflow: hidden !important;
  touch-action: none;
}
.app-ui .host-modal-sheet > .modal-content.modal-with-footer {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 100%;
  width: 100%;
}
.app-ui #modal-host-conduct .modal-scroll-body {
  flex: 0 1 auto;
  overflow-y: auto;
  max-height: var(--host-modal-scroll-max);
}
.app-ui #modal-host-conduct.is-assign-roles .host-modal-sheet > .modal-content.modal-with-footer {
  flex: 1 1 0;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}
.app-ui #modal-host-conduct.is-assign-roles .modal-header {
  margin-bottom: 8px;
}
.app-ui #modal-host-conduct.is-assign-roles .modal-scroll-body {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}
.app-ui .modal-header + .search-input {
  margin-top: 0;
}
.app-ui .modal-content .search-input, .app-ui .modal-scroll-body .search-input {
  background: var(--secondary);
  border: 2px solid color-mix(in srgb, var(--text) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent);
}
.app-ui .modal-scroll-body .settings-label {
  display: block;
  margin-bottom: 8px;
}
.app-ui .chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.app-ui .empty {
  text-align: center;
  color: var(--hint);
  padding: 40px 16px;
  font-size: 15px;
}
.app-ui .rating-view-tabs {
  display: flex;
  flex: 1;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--secondary);
}
.app-ui .rating-view-tab {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: calc(var(--radius) - 4px);
  background: transparent;
  color: var(--hint);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.app-ui .rating-view-tab.active {
  background: var(--surface-bg);
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.app-ui .rating-season-switcher {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.app-ui .rating-season-switcher::-webkit-scrollbar {
  display: none;
}
.app-ui .rating-season-chip {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--hint) 20%, transparent);
  border-radius: var(--radius);
  background: var(--surface-bg);
  color: var(--hint);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.app-ui .rating-season-chip.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, var(--surface-bg));
  color: var(--text);
}
.app-ui .profile-card {
  cursor: default;
}
.app-ui .profile-card:active {
  opacity: 1;
}
.app-ui .profile-card-row {
  align-items: center;
}
.app-ui .profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}
.app-ui .profile-avatar-wrap--editable .profile-avatar-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.app-ui .profile-avatar-wrap--editable:active .profile-avatar-inner::after, .app-ui .profile-avatar-wrap--editable:hover .profile-avatar-inner::after {
  opacity: 1;
}
.app-ui .profile-avatar-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--secondary);
}
.app-ui .profile-avatar-img, .app-ui .profile-avatar-fallback {
  width: 100%;
  height: 100%;
  display: block;
}
.app-ui .profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent);
}
.app-ui #modal-profile-avatar .modal-content, .app-ui #modal-avatar-crop .modal-content {
  max-height: var(--modal-max-height);
}
.app-ui .profile-rank-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono-nums);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: normal;
  font-feature-settings: normal;
  line-height: 1;
  border: 2px solid var(--surface-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
.app-ui .profile-text-block {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.app-ui .profile-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.app-ui .profile-name {
  font-size: 18px;
}
.app-ui .profile-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.app-ui .profile-name-row .profile-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-ui .profile-edit-btn:active, .app-ui .profile-name--editable:active + .profile-edit-btn, .app-ui .profile-name-row:has(.profile-name--editable:active) .profile-edit-btn {
  opacity: 0.7;
}
.app-ui .profile-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  align-self: center;
}
.app-ui .profile-elo-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.app-ui .profile-actions .elo-level-badge-pad {
  width: 2.1rem;
  height: 2.1rem;
}
.app-ui .profile-actions .elo-level-num {
  font-size: 0.9rem;
}
.app-ui .profile-elo-level-value {
  color: var(--elo-level-color, var(--accent));
  font-family: var(--font-mono-nums);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: normal;
  font-feature-settings: normal;
  letter-spacing: -0.02em;
}
.app-ui .profile-info .profile-name {
  margin: 0;
  line-height: 1.1;
}
.app-ui .profile-info .profile-chat-name {
  margin-top: 4px;
  line-height: 1.2;
}
.app-ui .profile-info .profile-since {
  margin-top: 5px;
  line-height: 1.1;
}
.app-ui .profile-info .profile-chat-name + .profile-since {
  margin-top: 4px;
}
.app-ui .profile-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.app-ui .profile-stat-card {
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
}
.app-ui .profile-stat-card:active {
  opacity: 1;
}
.app-ui .profile-achievements-preview .club-nav-btn, .app-ui .profile-logout-btn.club-nav-btn {
  margin-top: 0;
}
.app-ui .profile-all-achievements-btn.club-nav-btn {
  background: transparent;
  box-shadow: none;
}
.app-ui .profile-logout-btn.club-nav-btn {
  margin-top: 4px;
}
.app-ui .club-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.app-ui .club-nav-btn:disabled:active {
  opacity: 0.45;
}
.app-ui .player-stats-modal {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.app-ui .player-stats-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.app-ui .player-stats-summary-card {
  text-align: center;
  padding: 14px 10px;
}
.app-ui .player-stats-streak-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.app-ui .player-stats-summary-value {
  font-family: var(--font-mono-nums);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: normal;
  font-feature-settings: normal;
  line-height: 1.15;
  margin-bottom: 4px;
}
.app-ui .player-stats-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-ui .player-stats-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.app-ui .player-stats-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.app-ui .player-stats-segmented {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 7%, var(--secondary));
}
.app-ui .player-stats-period-switch {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}
.app-ui .player-stats-period-segmented {
  width: 100%;
  max-width: 320px;
}
.app-ui .player-stats-period-segmented .player-stats-segment-btn {
  flex: 1;
  text-align: center;
}
.app-ui .player-stats-segment-btn {
  border: 0;
  background: transparent;
  color: var(--hint);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.app-ui .player-stats-segment-btn.active {
  background: var(--accent);
  color: var(--accent-text);
}
.app-ui .player-stats-segment-panes {
  display: flex;
  flex-direction: column;
}
.app-ui .player-stats-segment-pane {
  display: none;
}
.app-ui .player-stats-segment-pane.active {
  display: block;
}
.app-ui .player-stats-donut-block {
  display: flex;
  align-items: center;
  gap: 16px;
}
.app-ui .player-stats-donut {
  position: relative;
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  border-radius: 50%;
}
.app-ui .player-stats-donut-hole {
  position: absolute;
  inset: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  text-align: center;
}
.app-ui .player-stats-donut-value {
  font-family: var(--font-mono-nums);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: normal;
  font-feature-settings: normal;
  line-height: 1.1;
}
.app-ui .player-stats-donut-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--hint);
  line-height: 1.2;
}
.app-ui .player-stats-legend {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-ui .player-stats-legend-row, .app-ui .player-stats-bar-head, .app-ui .player-stats-role-cell, .app-ui .player-stats-bar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.app-ui .player-stats-legend-row {
  justify-content: space-between;
}
.app-ui .player-stats-legend-swatch {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.app-ui .player-stats-legend-label, .app-ui .player-stats-bar-label {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text);
}
.app-ui .player-stats-legend-meta, .app-ui .player-stats-bar-value {
  flex: 0 0 auto;
  font-family: var(--font-mono-nums);
  font-size: 12px;
  font-variant-numeric: normal;
  font-feature-settings: normal;
  color: var(--hint);
  white-space: nowrap;
}
.app-ui .player-stats-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-ui .player-stats-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-ui .player-stats-bar-track {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 10%, var(--secondary));
  overflow: hidden;
}
.app-ui .player-stats-bar-fill {
  height: 100%;
  border-radius: inherit;
  min-width: 0;
}
.app-ui .player-stats-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.app-ui .player-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.app-ui .player-stats-table th, .app-ui .player-stats-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  white-space: nowrap;
}
.app-ui .player-stats-table th {
  color: var(--hint);
  font-weight: 500;
}
.app-ui .player-stats-table td:not(:first-child), .app-ui .player-stats-table th:not(:first-child) {
  text-align: right;
  font-family: var(--font-mono-nums);
  font-variant-numeric: normal;
  font-feature-settings: normal;
}
.app-ui .player-stats-pairs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-ui .player-stats-pair-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--text) 6%, var(--secondary));
  border: 1.5px solid transparent;
}
.app-ui .player-stats-pair-row.is-viewer {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--secondary));
}
.app-ui .player-stats-viewer-pair {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}
.app-ui .player-stats-pairs-list--good .player-stats-pair-rank {
  color: var(--success);
}
.app-ui .player-stats-pairs-list--bad .player-stats-pair-rank {
  color: var(--danger);
}
.app-ui .player-stats-pair-rank {
  flex: 0 0 auto;
  width: 1.25em;
  font-family: var(--font-mono-nums);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: normal;
  font-feature-settings: normal;
  text-align: center;
}
.app-ui .player-stats-pair-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-ui .player-stats-pair-meta {
  flex: 0 0 auto;
  font-family: var(--font-mono-nums);
  font-size: 12px;
  font-variant-numeric: normal;
  font-feature-settings: normal;
  color: var(--hint);
  white-space: nowrap;
}
.app-ui .player-stats-pair-meta strong {
  color: var(--text);
  font-weight: 600;
}
.app-ui .player-stats-empty, .app-ui .player-stats-loading {
  color: var(--hint);
  font-size: 13px;
}
.app-ui .player-stats-empty-card {
  padding: 16px;
}
@media (max-width: 380px) {
.app-ui .player-stats-section-head {
    align-items: stretch;
  }
.app-ui .player-stats-segmented {
    width: 100%;
    justify-content: stretch;
  }
.app-ui .player-stats-segment-btn {
    flex: 1;
  }
.app-ui .player-stats-streak-grid {
    grid-template-columns: 1fr;
  }
.app-ui .player-stats-donut-block {
    flex-direction: column;
    align-items: stretch;
  }
.app-ui .player-stats-donut {
    align-self: center;
  }
}
.app-ui .profile-achievements-preview .club-nav-btn {
  margin-top: 0;
}
.app-ui .game-guide-roles-slide.is-active {
  opacity: 1;
}
.app-ui .game-guide-roles-dot.is-active {
  width: 20px;
  background: var(--accent);
}
.app-ui #modal-game-rules .modal-content {
  --modal-surface: color-mix(in srgb, var(--secondary) 26%, var(--bg));
}
.app-ui #modal-game-rules.game-rules-require-ack .modal-content {
  pointer-events: auto;
}
.app-ui .achievement-list-empty {
  grid-column: 1 / -1;
}
.app-ui #modal-achievements .modal-content {
  --modal-surface: color-mix(in srgb, var(--secondary) 26%, var(--bg));
}
.app-ui #modal-achievements .modal-header h3 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
}
.app-ui #modal-achievements .modal-scroll-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.app-ui #modal-player-stats .modal-content, .app-ui #modal-club-game-stats .modal-content {
  --modal-surface: color-mix(in srgb, var(--secondary) 26%, var(--bg));
}
.app-ui #modal-player-stats .player-stats-summary-value, .app-ui #modal-player-stats .player-stats-donut-value, .app-ui #modal-player-stats .player-stats-legend-meta, .app-ui #modal-player-stats .player-stats-bar-value, .app-ui #modal-player-stats .player-stats-pair-rank, .app-ui #modal-player-stats .player-stats-pair-meta, .app-ui #modal-player-stats .player-stats-table td:not(:first-child), .app-ui #modal-club-game-stats .player-stats-summary-value, .app-ui #modal-club-game-stats .player-stats-donut-value, .app-ui #modal-club-game-stats .player-stats-legend-meta, .app-ui #modal-club-game-stats .player-stats-bar-value, .app-ui #modal-club-game-stats .player-stats-pair-rank, .app-ui #modal-club-game-stats .player-stats-pair-meta {
  font-family: var(--font-mono-nums);
  font-variant-numeric: normal;
  font-feature-settings: normal;
}
.app-ui #create-day-tiered-fields.hidden, .app-ui #create-day-fixed-fields.hidden {
  display: none;
}
.app-ui .host-secondary-actions.hidden {
  display: none;
}
.app-ui .host-table-body .chip-seat-hash {
  opacity: 0.72;
  color: var(--hint);
}
.app-ui #modal-host-conduct .chip-list {
  margin-bottom: 0;
}
.app-ui #edit-day-tiered-fields.hidden, .app-ui #edit-day-fixed-fields.hidden {
  display: none;
}
.app-ui .stepper-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--secondary);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.app-ui .stepper-btn .fa-solid {
  font-size: 0.78em;
  line-height: 1;
}
.app-ui .stepper-btn:disabled { opacity: 0.4; }
.app-ui .host-bonus-award-chip .chip-count-bubble, .app-ui .host-game-player-chip .chip-count-bubble {
  margin-left: 4px;
}
.app-ui .host-bonus-award-value.chip-count-bubble {
  margin-left: 0;
  min-width: 44px;
  height: 22px;
  padding: 0 8px;
}
.app-ui #modal-host-pick-seat:has(#host-pick-seat-footer.hidden) .modal-content.modal-with-footer {
  padding-bottom: var(--modal-padding-bottom);
}
.app-ui .chip-seat-hash {
  opacity: 0.5;
}
.app-ui .chip-nom-count-bubble, .app-ui .chip-count-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.app-ui .chip-mvp .chip-seat, .app-ui .chip-mvp .chip-seat-hash, .app-ui .chip-mvp .host-game-player-name {
  color: #ffe7a0;
}
.app-ui .club-picker.hidden {
  display: none;
}
.app-ui .club-picker-logo.hidden {
  display: none;
}
.app-ui .club-picker-list.hidden {
  display: none;
}
.app-ui .club-picker-onboarding.hidden {
  display: none;
}
.app-ui .club-picker-android.hidden {
  display: none;
}
.app-ui .club-android-wait.hidden {
  display: none;
}
.app-ui .club-unlink-account-btn.hidden {
  display: none;
}
.app-ui .club-connect-help.hidden, .app-ui .club-privacy-link.hidden {
  display: none;
}
.app-ui .club-picker-casual.hidden {
  display: none;
}
.app-ui .club-casual-btn.hidden {
  display: none;
}
.app-ui .club-casual-resume.hidden {
  display: none;
}
.app-ui .club-picker-cancel.hidden {
  display: none;
}
.app-ui #app.hidden {
  display: none;
}
.app-ui .app-boot.hidden {
  display: none;
}
.app-ui .rustore-free-plans-wrap.hidden {
  display: none;
}
.app-ui .rustore-free-plan-btn.is-loading, .app-ui .rustore-sub-plan-btn.is-loading {
  cursor: wait;
  opacity: 0.88;
}
.app-ui .club-action-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-ui .club-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  margin: 0;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius);
  background: var(--surface-bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}
.app-ui .club-nav-btn:active {
  opacity: 0.92;
}
.app-ui .club-nav-btn-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.app-ui .club-nav-btn-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--text) 14%, var(--secondary));
  color: color-mix(in srgb, var(--text) 42%, var(--hint));
}
.app-ui .club-nav-btn-icon {
  font-size: 17px;
  line-height: 1;
}
.app-ui .club-nav-btn-label {
  min-width: 0;
  line-height: 1.25;
}
.app-ui .club-nav-btn-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.app-ui .club-nav-btn-subtitle {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--hint);
}
.app-ui .club-nav-btn-chevron {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--hint);
}
.app-ui #modal-club-playlist .modal-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-ui #modal-club-playlist .modal-content, .app-ui #modal-club-players .modal-content, .app-ui #modal-club-judges .modal-content, .app-ui #modal-club-integrations .modal-content, .app-ui #modal-club-rating-rules .modal-content, .app-ui #modal-club-rating-seasons .modal-content, .app-ui #modal-club-settings .modal-content, .app-ui #modal-club-game-stats .modal-content, .app-ui #modal-club-other-games .modal-content, .app-ui #modal-other-game-form .modal-content, .app-ui #modal-add-judge .modal-content, .app-ui #modal-judge-role .modal-content {
  max-height: var(--modal-max-height);
}
.app-ui #modal-club-playlist .modal-content, .app-ui #modal-club-players .modal-content, .app-ui #modal-club-integrations .modal-content {
  --modal-surface: color-mix(in srgb, var(--secondary) 26%, var(--bg));
}
.app-ui #modal-club-settings .club-action-btns {
  padding-top: 0;
}
.app-ui .integration-status.is-on {
  color: #63e089;
  background: color-mix(in srgb, #30d158 18%, transparent);
}
.app-ui .host-setup-stepper .stepper-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--text) 9%, transparent);
}
.app-ui #modal-host-conduct.is-role-cards .modal-scroll-body {
  overflow: hidden;
}
.app-ui .host-role-card-back-preview.hidden {
  display: none;
}
.app-ui .host-role-card-player .chip-seat-hash {
  opacity: 0.5;
  color: var(--hint);
}
.app-ui .modal-day-vote .modal-content {
  max-height: min(92vh, 720px);
}
.app-ui .modal-day-vote .modal-scroll-body {
  padding-bottom: 12px;
}
.app-ui .modal-day-vote:not(:has(.day-vote-admin-actions:not(.hidden))) .modal-scroll-body {
  padding-bottom: var(--modal-padding-bottom);
}
.app-ui .modal-day-vote .day-vote-footer:not(:has(.day-vote-admin-actions:not(.hidden))) {
  display: none;
  padding: 0;
}
.app-ui .modal-day-vote .modal-header h3 {
  align-self: start;
}
.app-ui .day-vote-closed-notice.hidden {
  display: none;
}
.app-ui .day-vote-guests {
  order: -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}
.app-ui .day-vote-guests-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.app-ui .day-vote-guests-stepper.stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}
.app-ui .day-vote-guests-stepper .stepper-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--tb-s1);
  color: var(--text);
  font-size: 20px;
}
.app-ui .day-vote-guests-stepper .stepper-btn:disabled { color: var(--tb-t3); opacity: 1; }
.app-ui .day-vote-guests-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  min-width: 76px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
}
.app-ui .day-vote-guests-unit { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--tb-t2); }
.app-ui .day-vote-voter-section + .day-vote-voter-section {
  margin-top: 14px;
}
.app-ui .day-vote-admin-actions.hidden {
  display: none;
}
.app-ui .day-vote-admin-actions .secondary-btn.hidden {
  display: none;
}
.app-ui .day-vote-admin-actions .secondary-btn:only-child, .app-ui .day-vote-admin-actions .secondary-btn:not(.hidden):only-of-type {
  flex: 1 1 100%;
}
.app-ui .day-vote-edit-stepper .stepper-btn {
  width: 32px;
  height: 32px;
}
.app-ui .day-vote-voter-title {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted, #8a8f98);
}
.app-ui .day-vote-fill { height: 6px; margin: 2px 0 14px; border-radius: 999px; background: var(--tb-s2); overflow: hidden; }
.app-ui .day-vote-fill > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left center; }
.app-ui .day-vote-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  
  padding: 5px 12px 5px 6px;
  border: none;
  background: var(--tb-s1);
  font-size: 15px;
  font-weight: 500;
}
.app-ui .day-vote-chip .elo-level-badge {
  margin: 0;
}
.app-ui .day-vote-chip .elo-level-badge-pad {
  width: 1.35rem;
  height: 1.35rem;
}
.app-ui .day-vote-chip.day-vote-chip--profile {
  cursor: pointer;
}
.app-ui .day-vote-chip.day-vote-chip--profile:active {
  opacity: 0.88;
}
.app-ui .splash-preview-root.hidden {
  display: none;
}
.app-ui .splash-preview-picker.hidden {
  display: none;
}
.app-ui .splash-preview-stage.hidden {
  display: none;
}
.app-ui .skeleton {
  --skeleton-base: color-mix(in srgb, var(--secondary) 88%, var(--text) 5%);
  --skeleton-shine: color-mix(in srgb, var(--secondary) 72%, var(--text) 9%);
  display: block;
  background-image: linear-gradient(
    105deg,
    var(--skeleton-base) 0%,
    var(--skeleton-base) 40%,
    var(--skeleton-shine) 50%,
    var(--skeleton-base) 60%,
    var(--skeleton-base) 100%
  );
  background-size: 220% 100%;
  background-color: var(--skeleton-base);
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
  border-radius: 8px;
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
.app-ui .skeleton-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 2px;
  width: 100%;
}
.app-ui .skeleton-screen[aria-busy='true'] {
  pointer-events: none;
}
.app-ui .skeleton-circle {
  flex-shrink: 0;
  border-radius: 50%;
}
.app-ui .skeleton-line {
  height: 14px;
  width: 100%;
  max-width: 100%;
}
.app-ui .skeleton-block {
  height: 68px;
  width: 100%;
  border-radius: var(--radius);
}
.app-ui .skeleton-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: color-mix(in srgb, var(--surface-bg) 58%, transparent);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: none;
}
.app-ui .skeleton-card-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.app-ui .skeleton-rating-rank {
  width: 1.6rem;
  height: 1.6rem;
  margin: 0 auto;
  border-radius: 6px;
}
.app-ui .skeleton-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 10px;
  padding: 8px 4px 4px;
  min-height: 168px;
}
.app-ui .skeleton-podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.app-ui .skeleton-podium-avatar {
  width: 56px;
  height: 56px;
}
.app-ui .skeleton-podium-slot--1 .skeleton-podium-avatar {
  width: 72px;
  height: 72px;
}
.app-ui .skeleton-podium-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.app-ui .skeleton-podium-block {
  width: 100%;
  height: 52px;
  border-radius: 10px 10px 4px 4px;
}
.app-ui .skeleton-podium-slot--1 .skeleton-podium-block {
  height: 68px;
}
.app-ui .skeleton-day-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 148px;
  padding: 0;
  overflow: hidden;
}
.app-ui .skeleton-day-date {
  flex: 0 0 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 18px 12px;
  background: color-mix(in srgb, var(--secondary) 42%, transparent);
}
.app-ui .skeleton-day-date-rule {
  width: 28px;
  height: 1px;
  margin: 8px 0 6px;
  border-radius: 1px;
}
.app-ui .skeleton-day-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 18px 16px;
}
.app-ui .skeleton-profile-card .skeleton-circle {
  width: 56px;
  height: 56px;
}
.app-ui .skeleton-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.app-ui .skeleton-stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  background: color-mix(in srgb, var(--surface-bg) 58%, transparent);
  border-radius: var(--radius);
  box-shadow: none;
}
.app-ui .skeleton-nav-btn {
  height: 68px;
  border-radius: var(--radius);
}
.app-ui .skeleton-achievements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.app-ui .skeleton-achievement {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 12px;
}
.app-ui .skeleton-host {
  gap: 16px;
  padding: 2px 0 4px;
}
.app-ui .skeleton-host-speech-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 0;
}
.app-ui .skeleton-host-timer-digits {
  width: min(42%, 9.5rem);
  height: clamp(40px, 14vw, 64px);
  border-radius: 12px;
  opacity: 0.5;
}
.app-ui .skeleton-host-timer-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.app-ui .skeleton-host-timer-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  opacity: 0.45;
}
.app-ui .skeleton-host-nomination {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}
.app-ui .skeleton-host-section-title {
  height: 16px;
  border-radius: 6px;
  opacity: 0.5;
  margin-bottom: 0;
}
.app-ui .skeleton-host-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 4px 0 4px;
}
.app-ui .skeleton-host-seat-chip {
  width: 48px;
  height: 40px;
  border-radius: 999px;
  opacity: 0.48;
}
.app-ui .skeleton-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}
.app-ui .skeleton-stats-donut {
  width: 120px;
  height: 120px;
  margin: 8px auto;
  border-radius: 50%;
}
.app-ui .skeleton-stats-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (prefers-reduced-motion: reduce) {
.app-ui .skeleton {
    animation: none;
    background-image: none;
    background-color: var(--skeleton-base);
  }
}
.app-ui .modal-content {
  --tb-base: var(--modal-surface, var(--surface-bg));
  --tb-s1: color-mix(in srgb, var(--text) 6%, var(--tb-base));
  --tb-s2: color-mix(in srgb, var(--text) 11%, var(--tb-base));
  --tb-stripe: color-mix(in srgb, var(--text) 5%, var(--tb-base));
}
.app-ui .chip-seat-hash { opacity: 0.4; }
.app-ui #modal-host-conduct .modal-header { align-items: center; margin-bottom: 14px; }
.app-ui #modal-host-conduct .modal-header h3, .app-ui #modal-host-conduct .host-modal-title-main {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.app-ui #modal-host-conduct .modal-header h3:has(.host-modal-title-round), .app-ui #modal-host-conduct .modal-header h3:has(.host-modal-title-team) { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.app-ui #modal-host-conduct .modal-close { align-self: center; border-radius: 50%; }
.app-ui #host-foul-list .host-foul-chip--caution .chip-seat-hash, .app-ui #host-foul-list .host-foul-chip--danger .chip-seat-hash { opacity: 0.55; }
.app-ui #modal-host-conduct .chip-nominated .chip-count-bubble {
  min-width: 22px;
  height: 22px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  color: var(--tb-t2);
  font-size: 13px;
}
.app-ui #modal-host-conduct .chip-nominated .chip-count-bubble::before { content: "×"; }
.app-ui #modal-host-conduct .host-hero-meta .chip-list { gap: 12px; margin: 0; justify-content: flex-start; }
.app-ui #modal-host-conduct #host-game-tools.hidden, .app-ui #modal-host-conduct #host-nav-actions.hidden { display: none; }
.app-ui #modal-host-conduct .host-setup-stepper .stepper-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--tb-s1); }
.app-ui .modal .modal-content { border-radius: 24px 24px 0 0; }
.app-ui .modal .modal-header { align-items: center; margin-bottom: 16px; }
.app-ui .modal .modal-header h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.app-ui .modal-close {
  border-radius: 50%;
  background: var(--tb-s1);
  color: var(--tb-t2);
}
.app-ui .modal .search-input, .app-ui .modal .host-input, .app-ui .modal textarea, .app-ui .modal select, .app-ui .modal label input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) {
  border: none;
  box-shadow: none;
  border-radius: 14px;
  background: var(--tb-s1);
}
.app-ui .modal .search-input:focus, .app-ui .modal .host-input:focus, .app-ui .modal textarea:focus, .app-ui .modal label input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 50%, transparent);
}
.app-ui .modal .chip {
  border: none;
  background: var(--tb-s1);
  font-weight: 600;
}
.app-ui .modal .chip.selected {
  background: var(--accent);
  color: var(--accent-text);
}
.app-ui .club-action-btns {
  gap: 0;
  border-radius: var(--tb-r);
  background: var(--tb-s1);
  overflow: hidden;
  --tb-row-inset: 56px;
}
.app-ui .club-nav-btn {
  min-height: 56px;
  padding: 10px;
  font-size: 15px;
  background-color: transparent;
  border-radius: 0;
}
.app-ui .club-nav-btn .club-nav-btn-icon-wrap { width: 36px; height: 36px; border-radius: 10px; }
.app-ui .club-nav-btn:active { background-color: var(--tb-s2); }
.app-ui .club-nav-btn:not(.club-action-btns > .club-nav-btn) { border-radius: var(--tb-r); background-color: var(--tb-s1); }
.app-ui #tab-profile .profile-history-btns:has(+ .profile-behavior-analysis .club-nav-btn) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
.app-ui #tab-profile .profile-history-btns + .profile-behavior-analysis:has(.club-nav-btn) { margin-top: -12px; }
.app-ui #tab-profile .profile-history-btns + .profile-behavior-analysis .club-nav-btn {
  border-radius: 0 0 var(--tb-r) var(--tb-r);
  background-image: linear-gradient(var(--tb-line), var(--tb-line));
  background-repeat: no-repeat;
  background-position: 56px 0;
  background-size: calc(100% - 56px) 1px;
}
.app-ui .modal input[type="file"] { color: var(--tb-t2); font-size: 14px; }
.app-ui .modal input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 16px;
  border: none;
  border-radius: 20px;
  background: var(--tb-s2);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.app-ui .player-stats-modal :is(.player-stats-donut-value, .app-ui .player-stats-legend-meta, .app-ui .player-stats-bar-value, .app-ui .player-stats-pair-rank, .app-ui .player-stats-pair-meta) {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}
.app-ui .player-stats-donut-value { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; }
.app-ui .player-stats-bar-value, .app-ui .player-stats-legend-meta, .app-ui .player-stats-pair-meta { font-weight: 700; color: var(--tb-t2); }
.app-ui .player-stats-pair-row {
  background-color: transparent;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
}
.app-ui .player-stats-pair-rank { color: var(--tb-t2); font-weight: 700; }
.app-ui .player-stats-section-title { font-size: 13px; font-weight: 600; color: var(--tb-t2); }
.app-ui :is(.player-stats-segment-panes, .app-ui .player-stats-bars) {
  padding: 16px;
  border-radius: var(--tb-r);
  background: var(--tb-s1);
  --tb-row-inset: 0px;
}
.app-ui .player-stats-segment-panes:not(:has(.player-stats-segment-pane.active > *)) { display: none; }
.app-ui .player-stats-bars { display: flex; flex-direction: column; gap: 0; }
.app-ui .player-stats-bar-row { padding: 12px 0; }
.app-ui .player-stats-bar-row:first-child { padding-top: 0; }
.app-ui .player-stats-bar-row:last-child { padding-bottom: 0; }
.app-ui .player-stats-bar-track { background: var(--tb-s2); }
.app-ui .player-stats-legend { gap: 0; }
.app-ui .player-stats-legend-row { padding: 10px 0; }
.app-ui .player-stats-legend-row:last-child { padding-bottom: 0; }
.app-ui .player-stats-donut-hole { background: var(--tb-s1); }
.app-ui .player-stats-table-wrap { padding: 0; overflow-x: auto; }
.app-ui .player-stats-table :is(th, .app-ui td) { border: none !important; }
.app-ui .player-stats-section-head .player-stats-segmented { margin-bottom: 10px; }
.app-ui .player-stats-segment-btn.active { background: var(--tb-s2); color: var(--text); }
.app-ui .modal label:not(.secondary-btn):not(.primary-btn):has(> input:not([type="checkbox"]):not([type="radio"]), .app-ui > select, .app-ui > textarea, .app-ui > .other-game-image-field) {
  font-size: 13px;
  font-weight: 600;
  color: var(--tb-t2);
}
.app-ui .modal label:has(> input:not([type="checkbox"]):not([type="radio"]), .app-ui > select, .app-ui > textarea) > :is(input, .app-ui select, .app-ui textarea) {
  margin-top: 6px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}
.app-ui .mvp-list .chip.mvp-row.selected .chip-seat-hash { opacity: 0.55; }
.app-ui .mvp-list .chip.mvp-row .chip-count-bubble { background: rgba(255, 255, 255, 0.2); color: #fff; }
.app-ui .host-extra-points-section[data-bonus-awards-ui] .chip-list { display: flex; flex-direction: column; gap: 2px; }
.app-ui .modal .day-field { display: block; margin: 0 0 14px; }
.app-ui .modal-scroll-body > :is(.day-row, .app-ui .create-day-checkbox) { padding: 8px 12px 8px 16px; background-color: var(--tb-s1); }
.app-ui .modal-scroll-body > :not(.day-row, .app-ui .create-day-checkbox, .app-ui .modal-hint) + :is(.day-row, .app-ui .create-day-checkbox) { border-top-left-radius: var(--tb-r); border-top-right-radius: var(--tb-r); }
.app-ui .modal-scroll-body > :is(.day-row, .app-ui .create-day-checkbox):is(:last-child, .app-ui :has(+ :not(.day-row, .app-ui .create-day-checkbox, .app-ui .modal-hint)), .app-ui :has(+ .modal-hint:last-child), .app-ui :has(+ .modal-hint + :not(.day-row, .app-ui .create-day-checkbox))) { border-bottom-left-radius: var(--tb-r); border-bottom-right-radius: var(--tb-r); }
.app-ui .modal-scroll-body > :is(.day-row, .app-ui .create-day-checkbox) .day-stepper-btn { background: var(--tb-s2); }
.app-ui .modal .day-stepper input[type="number"] {
  width: 72px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.app-ui .modal .day-stepper input::-webkit-outer-spin-button, .app-ui .modal .day-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.app-ui .modal .create-day-checkbox { min-height: 56px; margin: 0; font-size: 16px; font-weight: 500; color: var(--text); }
.app-ui .modal-scroll-body > .modal-hint { margin: 8px 0 10px; padding-left: 16px; }
.app-ui #tab-club .settings-sub-status.is-active { background: color-mix(in srgb, #30d158 16%, var(--tb-s1)); }
.app-ui #tab-club .settings-sub-status.is-active :is(.settings-label, .app-ui .settings-value) { color: #4cd964; }
.app-ui #tab-profile .profile-card-row { gap: 16px; align-items: center; }
.app-ui #tab-profile .profile-avatar-wrap { width: 64px; height: 64px; }
.app-ui #tab-profile .profile-name-row { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.app-ui #tab-profile .profile-stats-row { gap: 8px; margin-bottom: 12px; }
.app-ui #tab-profile .profile-stat-value { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.app-ui #tab-profile .profile-name { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.app-ui .elo-level-num, .app-ui .profile-elo-level-value { font-family: inherit; font-variant-numeric: tabular-nums; font-weight: 700; }
.app-ui #day-detail:not(.hidden) .day-bottom-bar, .app-ui #days-list-view:not(.hidden) .day-bottom-bar, .app-ui #tab-host-music-playlist.active .day-bottom-bar { background: var(--bg); border-top: none; box-shadow: none; }
.app-ui .modal .settings-block-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.app-ui .integration-status.is-on { color: #4cd964; }
.app-ui .modal .hint { font-size: 13px; line-height: 1.4; color: var(--tb-t3); }
.app-ui .modal .modal-header h3:has(.host-modal-title-main):not(.host-modal-title) .host-modal-title-main { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.app-ui .modal :is(.player-stats-donut-value, .app-ui .player-stats-legend-meta, .app-ui .player-stats-bar-value, .app-ui .player-stats-pair-rank, .app-ui .player-stats-pair-meta) { font-family: inherit !important; font-variant-numeric: tabular-nums; }
.app-ui .modal :is(.player-stats-legend-meta, .app-ui .player-stats-bar-value, .app-ui .player-stats-pair-meta) { font-weight: 600; }
.app-ui .modal .player-stats-pair-rank { color: var(--tb-t3); font-weight: 600; }
.app-ui .modal .player-stats-section-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); text-transform: none; margin-top: 28px; margin-bottom: 12px; }
.app-ui .modal .player-stats-section-title:first-child { margin-top: 8px; }
.app-ui #tab-profile .profile-name-row { display: flex; align-items: center; gap: 6px; }
.app-ui #modal-achievements .modal-header h3 { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.app-ui #modal-achievements .achievements-modal-count.badge { background: none; padding: 0; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--tb-t2); }
.app-ui #modal-achievement-detail .modal-header h3 { visibility: hidden; }
.app-ui #modal-achievement-detail .modal-header { margin-bottom: -28px; position: relative; z-index: 1; }
.app-ui .rating-season-chip { border: none; border-radius: 999px; padding: 10px 16px; background: var(--tb-s1); color: var(--tb-t2); }
.app-ui .rating-season-chip.active { background: var(--text); color: var(--bg); }
.app-ui .rating-view-tabs { border-radius: 999px; }
.app-ui .rating-view-tab { border-radius: 999px; }
.app-ui .rating-history-game-breakdown, .app-ui :is(#modal-day-results, .day-results-inline) .day-results-game-details[open] > summary, .app-ui .host-music-manage-item, .app-ui .host-music-settings-item, .app-ui .host-music-search-row, .app-ui .player-stats-viewer-pair, .app-ui .host-vote-row, .app-ui .host-vote-outcome, .app-ui .host-pick-selected-block, .app-ui .host-assigned, .app-ui :is(#modal-host-music-queue, .app-ui .host-night-music-panel) .host-music-queue-bottom-bar, .app-ui .host-setup-row + .host-setup-row {
  border-top: none !important;
  border-bottom: none !important;
}
.app-ui .game-card-index .chip-seat-hash { opacity: 0.35; }
.app-ui .club-nav-btn-label { font-weight: 500; }
.app-ui #tab-profile .profile-actions, .app-ui #tab-profile .profile-elo-level { align-self: center; }
.app-ui .modal .modal-scroll-body > .hint:only-child, .app-ui .modal .list > .empty:only-child, .app-ui .modal .modal-scroll-body > .empty:only-child { text-align: center; padding: 24px 0; color: var(--tb-t3); }
.app-ui .player-stats-period-segmented { max-width: none; }
.app-ui :is(#modal-day-results, .day-results-inline) .day-results-game-index { color: var(--text); }
.app-ui #modal-splash-logo .modal-scroll-body { padding-bottom: 0; margin-bottom: 0; }
.app-ui .club-action-btns > .club-nav-btn + .club-nav-btn, .app-ui .rating-rule-row + .rating-rule-row, .app-ui .modal-scroll-body > :is(.day-row, .app-ui .create-day-checkbox) + :is(.day-row, .app-ui .create-day-checkbox), .app-ui .modal-scroll-body > :is(.day-row, .app-ui .create-day-checkbox) + .modal-hint + .create-day-checkbox, .app-ui .rating-seasons-settings > * + *, .app-ui .modal .list > :is(.player-admin-card, .app-ui .player-row, .app-ui .attendee-card, .app-ui .pick-card) + :is(.player-admin-card, .app-ui .player-row, .app-ui .attendee-card, .app-ui .pick-card), .app-ui .day-vote-confirmations-item + .day-vote-confirmations-item, .app-ui .mvp-list .chip.mvp-row + .chip.mvp-row:not(.selected), .app-ui .rating-help-steps li + li, .app-ui .player-stats-bar-row + .player-stats-bar-row, .app-ui .player-stats-legend-row + .player-stats-legend-row, .app-ui .behavior-analysis-modal-grid .behavior-analysis-list li + li {
  background-image: linear-gradient(var(--tb-line), var(--tb-line));
  background-repeat: no-repeat;
  background-position: var(--tb-row-inset) 0;
  background-size: calc(100% - var(--tb-row-inset)) 1px;
}
.app-ui .modal :is(.player-stats-summary-card, .app-ui .player-stats-streak-card) { padding: 16px 12px; border: none; border-radius: var(--tb-r); background: var(--tb-s1); box-shadow: none; }
.app-ui .player-stats-summary { gap: 8px; }
.app-ui .player-stats-streak-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
.app-ui .modal-header h3 .host-game-history-title .game-card-index { color: var(--text); }
.app-ui .player-stats-section:has(> .player-stats-pair-row) { gap: 0; }
.app-ui .player-stats-section:has(> .player-stats-pair-row) > :is(.player-stats-section-title, .app-ui .player-stats-section-head) { margin-bottom: 12px; }
.app-ui .player-stats-section > .player-stats-pair-row { padding: 12px 16px; border-radius: 14px; }
.app-ui .player-stats-section > .player-stats-section-hint { margin-bottom: 10px; }
.app-ui :is(.player-stats-table, .app-ui .rating-table, .app-ui :is(#modal-day-results, .day-results-inline) .day-results-game-table) :is(th, .app-ui td) { border-bottom: none !important; box-shadow: none !important; }
.app-ui :is(.player-stats-table, .app-ui .rating-table, .app-ui :is(#modal-day-results, .day-results-inline) .day-results-game-table) tbody tr:nth-child(odd) > td { background-color: var(--tb-stripe); }
.app-ui :is(.player-stats-table, .app-ui .rating-table, .app-ui :is(#modal-day-results, .day-results-inline) .day-results-game-table) tbody tr:nth-child(even) > td { background-color: var(--tb-base); }
.app-ui :is(.player-stats-table, .app-ui .rating-table, .app-ui :is(#modal-day-results, .day-results-inline) .day-results-game-table) tbody tr > td:first-child { border-radius: 14px 0 0 14px; }
.app-ui :is(.player-stats-table, .app-ui .rating-table, .app-ui :is(#modal-day-results, .day-results-inline) .day-results-game-table) tbody tr > td:last-child { border-radius: 0 14px 14px 0; }
.app-ui .player-stats-table, .app-ui :is(#modal-day-results, .day-results-inline) .day-results-game-table { border-collapse: separate; border-spacing: 0; }
.app-ui .player-stats-table :is(th, .app-ui td):first-child { padding-left: 16px; }
.app-ui .rating-history-games { gap: 0; }
.app-ui .rating-history-game { background: transparent; border-radius: 12px; }
.app-ui .rating-history-game:nth-child(odd) { background: color-mix(in srgb, var(--text) 4%, transparent); }
.app-ui :is(#tab-profile, .app-ui #tab-club, .app-ui #modal-rating-history) :is(.profile-card-row, .app-ui .settings-club-profile-row) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.app-ui :is(#tab-profile, .app-ui #tab-club, .app-ui #modal-rating-history) :is(.profile-avatar-wrap, .app-ui .settings-club-avatar-wrap) { width: 88px; height: 88px; }
.app-ui :is(#tab-profile, .app-ui #tab-club, .app-ui #modal-rating-history) :is(.profile-avatar-fallback, .app-ui .settings-club-avatar-fallback) { font-size: 32px; }
.app-ui :is(#tab-profile, .app-ui #tab-club, .app-ui #modal-rating-history) .profile-rank-badge { right: 0; bottom: 0; min-width: 28px; height: 28px; font-size: 14px; border: 3px solid var(--tb-base); }
.app-ui :is(#tab-profile, .app-ui #tab-club, .app-ui #modal-rating-history) :is(.profile-text-block, .app-ui .settings-club-text) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}
.app-ui :is(#tab-profile, .app-ui #tab-club, .app-ui #modal-rating-history) .profile-info { align-items: center; }
.app-ui :is(#tab-profile, .app-ui #tab-club, .app-ui #modal-rating-history) .profile-name-row { justify-content: center; max-width: 100%; }
.app-ui :is(#tab-profile, .app-ui #tab-club, .app-ui #modal-rating-history) :is(.profile-name, .app-ui .settings-club-name) {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: break-word;
  white-space: normal;
}
.app-ui :is(#tab-profile, .app-ui #tab-club, .app-ui #modal-rating-history) :is(.profile-chat-name, .app-ui .profile-since, .app-ui .settings-club-since) {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--tb-t2);
}
.app-ui #tab-profile .profile-info:has(.profile-edit-btn) { max-width: calc(100% - 56px); }
.app-ui #tab-profile .profile-name-row:has(> .profile-edit-btn) { position: relative; }
.app-ui #tab-profile .profile-name-row > .profile-edit-btn {
  position: absolute;
  top: 50%;
  left: 100%;
  margin-left: 6px;
  transform: translateY(-50%);
}
.app-ui :is(#tab-profile, .app-ui #modal-rating-history) .profile-chat-name { margin-top: 2px; }
.app-ui #tab-profile .profile-text-block > .profile-since {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--tb-t3);
}
.app-ui :is(#tab-profile, .app-ui #modal-rating-history) .profile-actions { margin-top: 12px; align-self: center; }
.app-ui :is(#tab-profile, .app-ui #modal-rating-history) .profile-elo-level { flex-direction: row; gap: 8px; }
.app-ui :is(#tab-profile, .app-ui #modal-rating-history) .profile-elo-level-value { font-family: inherit; font-size: 15px; }
.app-ui .player-stats-modal { gap: 10px; }
.app-ui .player-stats-modal > * { animation: tbRise 0.5s var(--tb-press) both; }
.app-ui .player-stats-modal > :nth-child(2) { animation-delay: 40ms; }
.app-ui .player-stats-modal > :nth-child(3) { animation-delay: 80ms; }
.app-ui .player-stats-modal > :nth-child(4) { animation-delay: 120ms; }
.app-ui .player-stats-modal > :nth-child(5) { animation-delay: 160ms; }
.app-ui .player-stats-modal > :nth-child(n + 6) { animation-delay: 200ms; }
.app-ui .player-stats-modal > .player-stats-section { margin-top: 18px; }
.app-ui .stats-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 108px;
  padding: 16px 18px;
  border-radius: 24px;
  background: var(--tb-s1);
}
.app-ui .stats-hero-value { font-size: 44px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.app-ui .stats-hero-label { margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--tb-t2); }
.app-ui .modal :is(.player-stats-summary-card, .app-ui .player-stats-streak-card) {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 16px 13px;
  text-align: left;
}
.app-ui .modal .player-stats-summary-value { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.app-ui .player-stats-tile-icon { position: absolute; top: 15px; right: 16px; font-size: 15px; }
.app-ui .player-stats-tile-icon.fa-fire { color: #ff9f0a; }
.app-ui .player-stats-tile-icon.fa-crown { color: var(--tb-gold); }
.app-ui .player-stats-donut { width: 136px; height: 136px; background: none !important; }
.app-ui .stats-ring { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.app-ui .stats-ring-track { fill: none; stroke: var(--tb-s2); stroke-width: 12; }
.app-ui .stats-ring-seg { fill: none; stroke-width: 12; animation: tbRingDraw 0.9s var(--tb-press) both; }
.app-ui .player-stats-donut-hole { inset: 0; background: none !important; }
.app-ui .player-stats-donut-value { font-size: 30px; letter-spacing: -0.04em; }
.app-ui .player-stats-donut-sub { font-size: 13px; font-weight: 500; color: var(--tb-t2); }
.app-ui .player-stats-donut-block { gap: 20px; }
.app-ui .player-stats-legend { flex: 1; min-width: 0; }
.app-ui .player-stats-legend-label { font-size: 15px; font-weight: 500; }
.app-ui .modal .player-stats-legend-meta { display: inline-flex; align-items: baseline; gap: 6px; font-size: 15px; font-weight: 700; color: var(--text); }
.app-ui .player-stats-legend-share { font-size: 13px; font-weight: 500; color: var(--tb-t2); }
.app-ui .player-stats-legend-swatch { width: 10px; height: 10px; border-radius: 50%; }
.app-ui .player-stats-bar-track { height: 8px; border-radius: 999px; overflow: hidden; }
.app-ui .player-stats-bar-fill { height: 100%; border-radius: 999px; transform-origin: left center; animation: tbBarGrow 0.9s var(--tb-press) both; animation-delay: 150ms; }
.app-ui .player-stats-bar-label { font-size: 15px; font-weight: 500; }
.app-ui .modal .player-stats-bar-value, .app-ui .modal .player-stats-pair-meta { display: inline-flex; align-items: baseline; gap: 6px; font-size: 15px; font-weight: 700; color: var(--text); }
.app-ui .player-stats-bar-count { font-size: 13px; font-weight: 500; color: var(--tb-t2); }
.app-ui .player-stats-bar-head { margin-bottom: 10px; }
.app-ui .modal .player-stats-pair-rank {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tb-s2);
  font-size: 13px;
  font-weight: 700;
  color: var(--tb-t2);
}
.app-ui .modal .player-stats-pair-rank.is-top-1 { background: color-mix(in srgb, var(--tb-gold) 22%, var(--tb-s1)); color: var(--tb-gold); }
.app-ui .modal .player-stats-pair-rank.is-top-2 { background: color-mix(in srgb, #c7ccd6 18%, var(--tb-s1)); color: #d5d9e1; }
.app-ui .modal .player-stats-pair-rank.is-top-3 { background: color-mix(in srgb, #d08b5b 22%, var(--tb-s1)); color: #e19a6a; }
.app-ui .player-stats-pair-row { display: flex; align-items: center; gap: 12px; min-height: 46px; }
.app-ui .player-stats-pair-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-ui .player-stats-section-head--inline .player-stats-section-title { margin: 0; }
.app-ui .player-stats-section-note { font-size: 13px; font-weight: 500; color: var(--tb-t2); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
.app-ui .player-stats-modal > *, .app-ui .stats-ring-seg, .app-ui .player-stats-bar-fill { animation: none !important; }
}
.app-ui .stats-hero .stats-ring--hero { width: 76px; height: 76px; flex: 0 0 76px; }
.app-ui .stats-hero .stats-ring--hero :is(.stats-ring-seg, .app-ui .stats-ring-track) { stroke-width: 14; }
.app-ui .player-stats-section > .player-stats-donut-block { padding: 16px; border-radius: var(--tb-r); background: var(--tb-s1); }
.app-ui .profile-backdrop {
  position: absolute;
  z-index: -1;
  top: -24px;
  left: -16px;
  right: -16px;
  height: 300px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.75) 35%, rgba(0, 0, 0, 0.3) 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.75) 35%, rgba(0, 0, 0, 0.3) 65%, transparent 100%);
}
.app-ui .profile-backdrop > :is(img, .app-ui div) {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  font-size: 0;
  filter: blur(48px) saturate(1.4);
  opacity: 0.65;
  transform: scale(1.15);
}
.app-ui .profile-backdrop > div { opacity: 0.42; }
.app-ui #modal-confirm .modal-header { margin-bottom: 10px; }
.app-ui #tab-club .profile-backdrop { top: -28px; }
.app-ui #modal-rating-history .modal-content { position: relative; isolation: isolate; overflow: hidden; }
.app-ui #modal-rating-history .modal-content > .profile-backdrop { top: 0; left: 0; right: 0; height: 340px; }
.app-ui .profile-awards { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.app-ui .profile-awards-tabs { align-self: stretch; }
.app-ui .profile-awards-count { margin-left: 6px; font-weight: 500; opacity: .6; }
.app-ui .profile-awards-pane[hidden] { display: none; }
.app-ui .rating-history-modal .profile-awards .profile-achievements-carousel { margin-inline: -16px; }
.app-ui .profile-avatar-wrap .profile-rank-badge { z-index: 5; }
.app-ui .profile-backdrop { --cos-cy: 68px; }
.app-ui #modal-rating-history .profile-backdrop { --cos-cy: 144px; }
.app-ui #modal-cosmetics .modal-content { position: relative; }
.app-ui #modal-cosmetics .modal-scroll-body {
  --cos-hero-h: 180px;
  margin-inline: -16px;
  padding: 0 16px;
  overflow-x: hidden;
}
@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
@keyframes tbBarGrow { from { transform: scaleX(0); } }
@keyframes tbRingDraw { from { stroke-dasharray: 0 400; } }
@keyframes tbRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
