:root {
  color-scheme: dark;
  --bg: #12131a;
  --bg-deep: #0c0f18;
  --surface: #1c1e27;
  --surface-2: #242734;
  --field-bg: #10121a;
  --soft-bg: rgba(255, 255, 255, .035);
  --body-glow: rgba(213, 255, 64, 0.08);
  --result-card-bg: linear-gradient(145deg, #20232f 0%, #141720 100%);
  --explore-card-bg: linear-gradient(145deg, #20232f 0%, #151821 100%);
  --bottom-nav-bg: rgba(28, 30, 39, .92);
  --scroll-thumb: rgba(213, 255, 64, .38);
  --scroll-thumb-hover: rgba(213, 255, 64, .62);
  --line: rgba(255, 255, 255, 0.09);
  --lime: #d5ff40;
  --lime-ink: #10130b;
  --accent-text: var(--lime);
  --avatar-bg: #c0c2b8;
  --avatar-ink: #12131a;
  --text: #ffffff;
  --muted: #c0c2b8;
  --danger: #ff5b6b;
  --success: #62ff8e;
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f9;
  --bg-deep: #eef0f3;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --field-bg: #ffffff;
  --soft-bg: rgba(15, 18, 28, .035);
  --body-glow: rgba(213, 255, 64, .15);
  --result-card-bg: linear-gradient(145deg, #f4f5f7 0%, #e8ebef 100%);
  --explore-card-bg: linear-gradient(145deg, #f4f5f7 0%, #e8ebef 100%);
  --bottom-nav-bg: rgba(255, 255, 255, .94);
  --scroll-thumb: rgba(79, 85, 97, .32);
  --scroll-thumb-hover: rgba(79, 85, 97, .5);
  --line: rgba(15, 18, 28, .1);
  --text: #12131a;
  --muted: #4f5561;
  --accent-text: #4f5561;
  --avatar-bg: #e8ebef;
  --avatar-ink: #12131a;
  --shadow: 0 18px 36px rgba(24, 28, 40, .1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--scroll-thumb) transparent;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  min-height: 44px;
  border-radius: 999px;
  background: var(--scroll-thumb);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Poppins, Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  background:
    linear-gradient(180deg, var(--body-glow), transparent 22rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.app-shell {
  width: min(1120px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(22px + env(safe-area-inset-top)) 16px calc(104px + env(safe-area-inset-bottom));
}

.page {
  min-height: calc(100vh - 126px);
  min-height: calc(100dvh - 126px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.page-topbar {
  display: grid;
  grid-template-columns: minmax(42px, 1fr) auto minmax(42px, 1fr);
  align-items: center;
}

.topbar-side {
  min-width: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-side:last-child,
.home-header-actions {
  justify-content: flex-end;
}

.page-title-btn {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 10px;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.app-logo {
  display: inline-grid;
  place-items: center;
  width: 117px;
  aspect-ratio: 5.83 / 1;
  height: auto;
  overflow: visible;
}

.app-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.app-logo-light {
  display: none !important;
}

:root[data-theme="light"] .app-logo-dark {
  display: none !important;
}

:root[data-theme="light"] .app-logo-light {
  display: block !important;
}

.brand-logo {
  width: clamp(196px, 28vw, 238px);
  height: auto;
  justify-self: start;
}

.home-header {
  gap: 12px;
}

.home-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-menu-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft-bg);
  color: var(--text);
}

.home-menu-btn span {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.home-menu-btn:hover {
  border-color: rgba(213, 255, 64, .32);
  color: var(--accent-text);
  background: rgba(213, 255, 64, .08);
}

.create-plus-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.create-plus-btn:hover {
  transform: translateY(-1px);
}

.language-toggle,
.theme-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft-bg);
}

.language-toggle button,
.theme-toggle button {
  min-width: 34px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.theme-toggle button {
  min-width: 54px;
}

.language-toggle button.active,
.theme-toggle button.active {
  background: var(--lime);
  color: var(--lime-ink);
}

.brand,
.profile-row,
.match-top,
.team-row,
.leader-row,
.draft-row,
.result-card-head,
.stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  justify-content: flex-start;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
}

.brand-mark,
.avatar,
.team-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--avatar-ink);
  background: var(--avatar-bg);
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--lime-ink);
}

.avatar {
  width: 88px;
  height: 88px;
  border: 3px solid var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(213, 255, 64, .12), 0 0 26px rgba(213, 255, 64, .44);
  font-size: 32px;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.team-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--lime-ink);
}

.team-identity {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  vertical-align: middle;
}

.team-identity.compact {
  width: 100%;
}

.team-emblem {
  width: 34px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.team-emblem.crest {
  background:
    radial-gradient(circle at 32% 25%, rgba(213, 255, 64, .28), transparent 34%),
    var(--surface-2);
}

.team-emblem.logo {
  padding: 2px;
  background: var(--surface);
}

.team-emblem.logo img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: contain;
}

.team-emblem.logo.fallback::before {
  content: "•";
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.team-emblem.flag {
  border: 0;
  background: transparent;
  font-size: 24px;
}

.team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.match-versus {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-layout {
  min-height: calc(100vh - 124px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: center;
}

.hero-panel {
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  color: var(--text);
  background:
    linear-gradient(rgba(12, 15, 24, 0.56), rgba(12, 15, 24, 0.82)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'%3E%3Crect width='1200' height='800' fill='%2312131a'/%3E%3Cpath d='M0 520 C240 430 360 650 600 540 C850 425 930 270 1200 330 L1200 800 L0 800 Z' fill='%23d5ff40' opacity='.8'/%3E%3Cpath d='M210 125 h780 v430 h-780z' fill='none' stroke='%23fff' stroke-width='14' opacity='.18'/%3E%3Ccircle cx='600' cy='340' r='92' fill='none' stroke='%23fff' stroke-width='12' opacity='.22'/%3E%3Cpath d='M600 125 v430 M210 340 h780' stroke='%23fff' stroke-width='9' opacity='.16'/%3E%3C/svg%3E") center/cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.hero-panel h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-panel p {
  margin: 16px 0 0;
  max-width: 590px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.auth-card,
.panel {
  padding: 22px;
}

.home-stack {
  display: grid;
  gap: 18px;
  direction: inherit;
}

.user-profile-stack {
  display: grid;
  gap: 14px;
}

.profile-header {
  display: grid;
  gap: 16px;
  border-radius: 22px;
}

.profile-top-row {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.profile-identity {
  display: flex;
  justify-content: center;
}

.profile-avatar-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  padding: 4px;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
}

.profile-avatar-ring .avatar {
  width: 100%;
  height: 100%;
  border: 4px solid var(--surface);
  box-shadow: none;
}

.profile-summary {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.profile-title-line {
  min-width: 0;
  display: grid;
  gap: 3px;
  font-size: 17px;
}

.profile-title-line strong,
.profile-title-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-title-line span {
  color: var(--muted);
  font-size: 13px;
}

.profile-bio {
  display: grid;
  gap: 5px;
  text-align: start;
  font-size: 14px;
}

.profile-name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.profile-social {
  display: grid;
  gap: 12px;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-column,
.metric,
.action-tile,
.search-result,
.leader-row,
.draft-row {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.stat-column {
  min-height: 56px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  text-align: center;
}

.stat-column strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
}

.stat-column .highlight {
  color: var(--accent-text);
}

.stat-column span,
.muted {
  color: var(--muted);
}

.public-profile-tournaments {
  display: grid;
  gap: 14px;
}

.public-tournament-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.public-tournament-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  text-align: start;
}

.public-tournament-main span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.public-tournament-main strong,
.public-tournament-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-tournament-main small,
.public-tournament-meta {
  color: var(--muted);
  font-size: 12px;
}

.public-tournament-meta {
  display: grid;
  gap: 4px;
}

.public-tournament-meta strong {
  color: var(--text);
  font-weight: 600;
}

.championships-page,
.championships-section {
  display: grid;
  gap: 14px;
}

.championship-hub-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.championship-hub-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  text-align: start;
}

.championship-hub-main span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.championship-hub-main strong,
.championship-hub-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.championship-hub-main small,
.championship-hub-meta {
  color: var(--muted);
  font-size: 12px;
}

.championship-hub-meta {
  display: grid;
  gap: 4px;
}

.owner-tournament-page {
  display: grid;
  gap: 16px;
}

.owner-tournament-topbar .page-title-btn span {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-gear-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
}

.owner-gear-btn svg,
.owner-action-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.owner-tournament-hero {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.owner-cover {
  min-height: 150px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(0, 0, 0, .06), rgba(0, 0, 0, .28)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='360' viewBox='0 0 900 360'%3E%3Crect width='900' height='360' fill='%232b4d22'/%3E%3Cg opacity='.35' stroke='%23fff' stroke-width='4' fill='none'%3E%3Crect x='12' y='12' width='876' height='336'/%3E%3Cpath d='M450 12v336M12 180h876'/%3E%3Ccircle cx='450' cy='180' r='62'/%3E%3Crect x='12' y='95' width='105' height='170'/%3E%3Crect x='783' y='95' width='105' height='170'/%3E%3C/g%3E%3C/svg%3E") center/cover;
}

.owner-tournament-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
}

.owner-title-block {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 18px 20px;
}

.owner-group-avatar {
  width: 96px;
  height: 96px;
  margin-top: -54px;
  display: grid;
  place-items: center;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 34px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.owner-title-block h1 {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.owner-title-content {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.owner-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.owner-share-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
}

.owner-share-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.owner-title-block p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.owner-priority-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.owner-priority-actions button {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  text-align: center;
}

.owner-priority-actions strong {
  color: var(--accent-text);
  font-size: 18px;
  font-weight: 700;
}

.owner-priority-actions span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.owner-summary-card {
  display: grid;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.owner-summary-card div {
  min-height: 56px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.owner-summary-card div:last-child {
  border-bottom: 0;
}

.owner-summary-card span {
  color: var(--muted);
  text-align: end;
  font-size: 14px;
  font-weight: 500;
}

.owner-summary-card strong {
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.owner-action-list {
  display: grid;
  gap: 12px;
}

.owner-action-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  text-align: start;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.owner-action-row strong {
  font-size: 16px;
  font-weight: 600;
}

.owner-action-icon {
  display: grid;
  place-items: center;
  color: var(--text);
}

.owner-action-arrow {
  justify-self: end;
  color: var(--text);
  font-size: 32px;
  line-height: 1;
}

.owner-modal-content {
  display: grid;
  gap: 10px;
}

.owner-manage-page {
  display: grid;
  gap: 16px;
}

.manage-intro-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.activation-panel {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-bg);
}

.activation-panel.ready {
  border-color: rgba(213, 255, 64, .34);
  background: rgba(213, 255, 64, .08);
}

.activation-panel div {
  display: grid;
  gap: 3px;
}

.activation-panel strong {
  color: var(--text);
  font-size: 13px;
}

.activation-panel span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.manage-action-row {
  grid-template-columns: 42px minmax(0, 1fr) auto 28px;
}

.manage-row-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.manage-detail-card {
  gap: 16px;
}

.request-list,
.participant-list {
  display: grid;
  gap: 10px;
}

.request-row,
.participant-row {
  min-height: 62px;
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.request-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.request-row div,
.request-row div span {
  min-width: 0;
}

.request-row div {
  display: grid;
  gap: 2px;
}

.request-row span {
  color: var(--muted);
  font-size: 12px;
}

.participant-row {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.mini-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--avatar-bg);
  color: var(--text);
  font-weight: 700;
}

.manage-code-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  text-align: center;
}

.manage-code-box span {
  color: var(--muted);
  font-size: 12px;
}

.manage-code-box strong {
  color: var(--text);
  font-size: 26px;
  letter-spacing: 2px;
}

.voting-round-list {
  display: grid;
  gap: 14px;
}

.voting-round-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.voting-round-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.voting-round-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.voting-round-head strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.voting-round-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.voting-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-bg);
}

.voting-progress span {
  display: block;
  width: var(--pct);
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
}

.voting-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.voting-status-grid > div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.voting-status-grid h3 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.voting-player-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: start;
  cursor: pointer;
}

.voting-player-row .mini-avatar {
  width: 34px;
  height: 34px;
}

.voting-player-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voting-player-row span:last-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.voting-player-row.done span:last-child {
  color: var(--lime);
}

.vote-detail-list,
.point-rules-list {
  display: grid;
  gap: 12px;
}

.point-rules-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.point-rules-tabs::-webkit-scrollbar {
  display: none;
}

.point-rule-tab {
  flex: 0 0 auto;
  min-width: 132px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: start;
}

.point-rule-tab strong {
  font-size: 12px;
  font-weight: 700;
}

.point-rule-tab span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.point-rule-tab.active {
  border-color: var(--lime);
  background: rgba(213, 255, 64, .10);
}

.point-rule-tab.active span {
  color: var(--lime);
}

.point-rule-tab.locked {
  opacity: .72;
}

.point-rule-tab.locked span {
  color: var(--muted);
}

.vote-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.vote-detail-row span {
  min-width: 0;
}

.vote-detail-row strong,
.vote-detail-row b {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.point-rule-card {
  display: grid;
  gap: 16px;
}

.point-rule-card.locked .point-rule-fields {
  opacity: .72;
}

.point-rule-card.locked :is(input, select, textarea) {
  cursor: not-allowed;
}

.point-rule-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.point-rule-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.point-rule-option {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.point-rule-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.point-rule-option span {
  font-size: 12px;
  font-weight: 600;
}

.point-rule-option.active {
  border-color: var(--lime);
  background: rgba(213, 255, 64, .12);
}

.point-rule-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.point-rule-example {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(213, 255, 64, .22);
  border-radius: 14px;
  background: rgba(213, 255, 64, .08);
}

.point-rule-example strong {
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
}

.point-rule-example span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.prize-list {
  display: grid;
  gap: 10px;
}

.prize-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.prize-rank {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 14px;
  background: rgba(213, 255, 64, .1);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.prize-card div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.prize-card strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.prize-card span,
.prize-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.prize-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prize-form-grid .wide {
  grid-column: 1 / -1;
}

.settings-control {
  display: grid;
  gap: 8px;
}

.settings-control span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.danger-btn {
  background: var(--danger);
  color: #fff;
}

.danger-confirm-body {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.danger-confirm-body strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.danger-confirm-body p {
  margin: 4px 0 0;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.championship-hub-meta strong {
  color: var(--text);
  font-weight: 600;
}

.section-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

h1.section-title {
  width: 100%;
  text-align: center;
}

.stack,
.grid,
.metric-grid,
.action-grid,
.live-grid,
.list-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.official-competition-picker {
  position: relative;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--field-bg);
  color: var(--text);
  padding: 11px 13px;
  outline: none;
  font-size: 16px;
}

.textarea {
  min-height: 108px;
  resize: vertical;
}

.input::placeholder {
  color: rgba(192, 194, 184, .64);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(213, 255, 64, 0.14);
}

.form-error-inline {
  color: var(--danger) !important;
  font-weight: 700;
}

.form-success-inline {
  color: var(--success) !important;
  font-weight: 700;
}

.btn {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 9px 13px;
  color: var(--text);
  background: var(--surface-2);
  font-weight: 600;
}

.btn.accent,
.badge {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--lime-ink);
}

.btn.ghost {
  background: transparent;
}

.btn.warn {
  border-color: rgba(213, 255, 64, .28);
  background: rgba(213, 255, 64, .1);
  color: var(--accent-text);
}

.compact-btn {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}

.back-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border-color: rgba(213, 255, 64, .22);
  background: rgba(213, 255, 64, .08);
  color: var(--accent-text);
  font-size: 22px;
  line-height: 1;
}

.back-btn:hover {
  background: var(--lime);
  color: var(--lime-ink);
}

.notification-bell {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft-bg);
  color: var(--text);
}

.notification-bell svg,
.notification-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-bell span {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 10px;
  font-weight: 700;
}

.notification-list {
  display: grid;
  gap: 6px;
}

.notification-row {
  width: 100%;
  min-height: 58px;
  height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft-bg);
  color: var(--text);
  text-align: start;
  cursor: pointer;
}

.notification-row.unread {
  border-color: rgba(213, 255, 64, .32);
  background: rgba(213, 255, 64, .08);
}

.notification-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent-text);
}

.notification-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.notification-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.notification-copy small,
.notification-row time {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.notification-copy small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.notification-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  min-width: 74px;
}

.notification-actions .btn {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.request-status {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-text);
  background: rgba(213, 255, 64, .1);
}

.request-status.declined {
  color: #ff9aa4;
  background: rgba(255, 91, 107, .1);
}

.profile-edit-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft-bg);
}

.profile-edit-preview .avatar {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

.avatar-upload {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  cursor: pointer;
}

.avatar-upload > span:last-child {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.avatar-upload:hover .avatar {
  filter: brightness(.86);
}

.sr-only-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.settings-list {
  display: grid;
  gap: 10px;
}

.settings-row {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--text);
  text-align: start;
}

.settings-row strong {
  color: var(--muted);
}

.notification-pref-row > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.notification-pref-row strong {
  color: var(--text);
}

.notification-pref-row small {
  color: var(--muted);
  font-size: 12px;
}

.danger-row {
  border-color: rgba(255, 91, 107, .34);
  color: #ff9aa4;
}

.people-list {
  display: grid;
  gap: 10px;
}

.people-row {
  min-height: 68px;
  padding: 10px;
}

.results-shell {
  overflow: hidden;
}

.carousel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(278px, calc(100% - 28px));
  gap: 14px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.carousel-dots {
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 6px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(192, 194, 184, .38);
  transition: width .2s ease, background .2s ease, opacity .2s ease;
}

.carousel-dot.active {
  width: 7px;
  height: 7px;
  background: var(--lime);
  opacity: 1;
}

.result-card {
  min-height: 172px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--result-card-bg);
  scroll-snap-align: start;
}

.rank-badge,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 600;
}

.rank-badge {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 0 18px rgba(213, 255, 64, .34);
}

.stat-line {
  margin-top: 12px;
}

.stat-line strong {
  color: var(--text);
}

.prediction-counters {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
}

.prediction-counters .correct {
  color: var(--success);
}

.prediction-counters .wrong {
  color: var(--danger);
}

.section-head,
.modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compact-section-head {
  margin-bottom: 12px;
}

.compact-section-head .section-title {
  margin: 0;
}

.live-leaderboard-note {
  margin-top: 2px;
  font-size: 11px;
}

.live-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid rgba(98, 255, 142, .42);
  border-radius: 999px;
  color: var(--success);
  background: rgba(98, 255, 142, .1);
  font-size: 11px;
  font-weight: 700;
}

.live-api-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft-bg);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.live-api-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.leaderboard-card {
  display: grid;
  gap: 10px;
}

.leaderboard-entry {
  padding: 12px;
}

.leader-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.leader-rank {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.leader-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-align: end;
}

.leader-stats .correct {
  color: var(--success);
}

.leader-stats .wrong {
  color: var(--danger);
}

.leader-stats .total {
  color: var(--muted);
}

.leader-stats .live-delta {
  min-width: 34px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.leader-stats .live-delta.up {
  color: #06170c;
  background: #62ff8e;
}

.leader-stats .live-delta.down {
  color: #fff;
  background: rgba(255, 91, 107, .82);
}

.leader-stats strong {
  color: var(--text);
  font-size: 12px;
}

.leaderboard-list {
  display: grid;
  gap: 10px;
}

.icon-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.search-wrap {
  position: relative;
}

.search-wrap .input {
  min-height: 54px;
  text-align: center;
}

.search-results {
  position: absolute;
  z-index: 10;
  inset-inline: 0;
  top: calc(100% + 8px);
  display: grid;
  gap: 8px;
}

.search-result {
  padding: 12px;
  color: var(--text);
  text-align: start;
  box-shadow: var(--shadow);
}

.search-page {
  display: grid;
  gap: 20px;
}

.search-sticky {
  position: sticky;
  top: 10px;
  z-index: 9;
  padding: 12px;
}

.search-page-input {
  min-height: 52px;
  text-align: start;
}

.search-section {
  display: grid;
  gap: 12px;
}

.section-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.search-list {
  display: grid;
  gap: 10px;
}

.instagram-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.user-row-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: start;
}

.user-row-main span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.user-row-main small {
  color: var(--muted);
}

.mini-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent-text);
  font-weight: 900;
}

.trophy-avatar {
  border-radius: 16px;
  background: var(--lime);
  color: var(--lime-ink);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.explore-card {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--explore-card-bg);
}

.explore-card-main {
  display: grid;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: start;
}

.explore-card h3 {
  margin: 0;
}

.explore-card p,
.empty-row {
  margin: 0;
  color: var(--muted);
}

.action-grid {
  grid-template-columns: repeat(2, 1fr);
}

.action-tile {
  min-height: 114px;
  padding: 18px;
  color: var(--text);
  text-align: start;
}

.action-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide {
  grid-column: 1 / -1;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 8px 0;
}

.switch {
  width: 64px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 4px;
  background: #555967;
}

.competition-results {
  display: grid;
  gap: 8px;
}

.competition-result {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-bg);
  color: var(--text);
  text-align: start;
}

.competition-result:hover {
  border-color: var(--lime);
  background: rgba(213, 255, 64, .1);
}

.competition-result span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.competition-result small,
.competition-empty,
.selected-competition span {
  color: var(--muted);
  font-size: 12px;
}

.competition-result b {
  flex: 0 0 auto;
  color: var(--accent-text);
  font-size: 12px;
}

.competition-empty,
.selected-competition {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
}

.selected-competition {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.selected-competition div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.award-config {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--soft-bg);
}

.award-config legend {
  padding: 0 8px;
  color: var(--text);
  font-weight: 600;
}

.award-checkbox-grid,
.award-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.checkbox-card {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}

.checkbox-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--lime);
}

.switch span {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  transition: transform .2s ease;
}

.switch.on {
  background: var(--lime);
}

.switch.on span {
  transform: translateX(-30px);
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.tab {
  white-space: nowrap;
}

.tab.active {
  background: var(--lime);
  color: var(--lime-ink);
}

.tab.locked {
  color: #777b85;
  background: #181a22;
}

.round-lifecycle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft-bg);
}

.round-lifecycle p {
  margin: 4px 0 0;
}

.match-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.pick-board-shell {
  display: grid;
  gap: 18px;
}

.award-shell {
  display: grid;
  gap: 18px;
}

.pick-board-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 16px;
  align-items: center;
}

.pick-board-hero p {
  max-width: 700px;
}

.pick-board-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pick-board-title-line .section-title {
  margin: 0;
}

.prediction-progress-chip {
  flex: 0 0 auto;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(213, 255, 64, .24);
  border-radius: 999px;
  background: rgba(213, 255, 64, .08);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pick-board-progress {
  min-height: 120px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(213, 255, 64, .24);
  border-radius: 22px;
  background: rgba(213, 255, 64, .08);
  text-align: center;
}

.pick-board-progress strong {
  color: var(--accent-text);
  font-size: 22px;
  line-height: 1;
}

.pick-board-progress span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.pick-board-progress.compact {
  min-height: 76px;
  border-radius: 16px;
}

.prediction-round-meta,
.prediction-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prediction-round-meta span,
.prediction-guide span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft-bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.prediction-round-meta strong,
.prediction-guide strong {
  color: var(--text);
  margin-inline-start: 4px;
}

.prediction-guide span {
  border-radius: 10px;
  line-height: 1.35;
}

.prediction-list {
  display: grid;
  gap: 16px;
}

.prediction-time-group {
  display: grid;
  gap: 8px;
}

.prediction-time-title {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.prediction-time-list {
  display: grid;
  gap: 8px;
}

.prediction-row-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  direction: ltr;
}

.prediction-row-card.inline-pick {
  grid-template-columns: auto minmax(0, 1fr);
}

.prediction-row-card.completed {
  border-color: rgba(213, 255, 64, .28);
  background: rgba(213, 255, 64, .055);
}

.prediction-row-card.pending {
  border-color: var(--line);
}

[data-theme="light"] .prediction-row-card {
  background: var(--surface);
}

[data-theme="light"] .prediction-row-card.completed {
  background: rgba(213, 255, 64, .16);
}

.prediction-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  direction: rtl;
}

.prediction-teams {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.prediction-teams > span {
  min-width: 0;
}

.prediction-team-pick,
.prediction-draw-pick {
  min-width: 0;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  text-align: inherit;
}

.prediction-team-pick:hover,
.prediction-draw-pick:hover {
  border-color: rgba(213, 255, 64, .42);
}

.prediction-team-pick.selected,
.prediction-draw-pick.selected {
  border-color: rgba(213, 255, 64, .7);
  background: rgba(213, 255, 64, .12);
}

.prediction-team-pick:disabled,
.prediction-draw-pick:disabled {
  cursor: default;
  opacity: .72;
}

.prediction-teams .team-identity {
  min-width: 0;
  justify-content: flex-start;
}

.prediction-teams > span:last-child .team-identity,
.prediction-teams > button:last-child .team-identity {
  justify-content: flex-end;
}

.prediction-team-pick .team-identity {
  width: 100%;
}

.prediction-draw-pick {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.prediction-teams b {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.prediction-row-info {
  display: grid;
  gap: 2px;
  min-width: 120px;
  color: var(--muted);
  font-size: 11px;
  text-align: end;
}

.prediction-inline-error {
  grid-column: 1 / -1;
  direction: rtl;
  color: var(--danger);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  text-align: start;
}

.prediction-status {
  justify-self: end;
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.prediction-status.done {
  color: #06170c;
  background: #62ff8e;
  border: 1px solid rgba(98, 255, 142, .45);
}

.prediction-status.todo {
  color: #ff7b87;
  background: rgba(255, 91, 107, .12);
  border: 1px solid rgba(255, 91, 107, .34);
}

.prediction-status.missed {
  color: var(--muted);
  background: var(--soft-bg);
  border: 1px solid var(--line);
}

.prediction-row-info strong {
  color: var(--accent-text);
  font-weight: 700;
}

.prediction-countdown {
  margin-top: 0;
  padding: 8px 10px;
  border-radius: 14px;
}

.round-vote-countdown {
  margin-top: 0;
  border-radius: 16px;
}

.prediction-countdown strong {
  font-size: 14px;
}

.round-vote-countdown strong {
  font-size: 16px;
}

.prediction-countdown small {
  display: none;
}

.prediction-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.prediction-confirm-btn {
  min-width: 74px;
  min-height: 38px;
}

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

.pick-board-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #20232f 0%, #151821 100%);
}

.award-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #20232f 0%, #151821 100%);
}

.award-search-results {
  display: grid;
  gap: 8px;
}

.roster-result {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-bg);
  color: var(--text);
  text-align: start;
}

.roster-result:hover {
  border-color: var(--lime);
  background: rgba(213, 255, 64, .1);
}

.roster-result span,
.roster-empty {
  color: var(--muted);
  font-size: 12px;
}

.pick-board-card h3,
.award-card h3,
.result-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.match-top strong,
.team-row strong,
.side-pick strong,
.result-card-head strong,
.leader-row strong,
.draft-row strong,
.instagram-row strong,
.live-tournament-tab strong {
  font-weight: 600;
}

.side-pick-row,
.review-strip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-pick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.side-pick-row.three-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.side-pick {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-bg);
  color: var(--text);
  text-align: start;
}

.side-pick > span {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.side-pick b {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.side-pick small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.side-pick .team-identity {
  width: 100%;
  justify-content: center;
}

.side-pick.selected {
  border-color: var(--lime);
  background: rgba(213, 255, 64, .12);
  box-shadow: inset 0 0 0 1px rgba(213, 255, 64, .25);
}

.prediction-outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.review-strip {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.review-strip strong {
  color: var(--accent-text);
}

.team-row {
  padding: 12px 0;
}

.team-row > div {
  min-width: 0;
}

.match-countdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(213, 255, 64, .24);
  border-radius: 18px;
  background: rgba(213, 255, 64, .08);
}

.match-countdown span,
.match-countdown small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.match-countdown strong {
  color: var(--accent-text);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
}

.match-countdown small {
  grid-column: 1 / -1;
}

.match-countdown.locked {
  border-color: rgba(255, 91, 107, .34);
  background: rgba(255, 91, 107, .1);
}

.match-countdown.locked strong,
.match-countdown.locked span {
  color: #ff9aa4;
}

.match-countdown.live {
  border-color: rgba(98, 255, 142, .34);
  background: rgba(98, 255, 142, .08);
}

.match-countdown.live strong,
.match-countdown.live span {
  color: var(--success);
}

.match-countdown.finished {
  border-color: rgba(213, 255, 64, .34);
  background: rgba(213, 255, 64, .1);
}

.match-countdown.finished strong,
.match-countdown.finished span {
  color: var(--accent-text);
}

.compact-countdown {
  margin-top: 0;
}

.compact-countdown strong {
  font-size: 16px;
}

.points-input {
  width: 118px;
}

.budget-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #333746;
}

.budget-bar span {
  display: block;
  height: 100%;
  width: var(--pct);
  background: var(--lime);
}

.notice {
  padding: 12px 14px;
  border: 1px solid rgba(213, 255, 64, .26);
  border-radius: 18px;
  background: rgba(213, 255, 64, .09);
  color: var(--accent-text);
}

.danger-notice {
  border-color: rgba(255, 91, 107, .34);
  background: rgba(255, 91, 107, .1);
  color: #ff9aa4;
}

.error-text {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
}

.live-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.live-tournament-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.live-tournament-tab {
  min-height: 86px;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  text-align: start;
}

.live-tournament-tab span {
  color: var(--muted);
  font-size: 12px;
}

.live-tournament-tab.active {
  border-color: var(--lime);
  background: rgba(213, 255, 64, .12);
}

.championships-switch-shell {
  overflow: hidden;
}

.championship-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.championship-segment-btn {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-align: center;
  cursor: pointer;
}

.championship-segment-btn strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.championship-segment-btn.active {
  border-color: var(--lime);
  background: rgba(213, 255, 64, .12);
  box-shadow: inset 0 0 0 1px rgba(213, 255, 64, .22);
}

.championship-page-slider {
  overflow: hidden;
  touch-action: pan-y;
}

.championship-page-track {
  width: 200%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  transform: translateX(calc(var(--championship-index) * -50%));
  transition: transform .28s ease;
}

[dir="rtl"] .championship-page-track {
  transform: translateX(calc(var(--championship-index) * 50%));
}

.championship-slide {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 2px;
}

.championship-card-list {
  grid-template-columns: 1fr;
}

.championships-live-list {
  grid-auto-columns: minmax(236px, 1fr);
}

.championship-live-card {
  min-height: 158px;
  align-content: space-between;
}

.championship-live-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.championship-live-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.championship-status-text {
  flex: 0 0 auto;
  color: var(--lime);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.live-tournament-tab .championship-status-text {
  color: var(--lime);
}

.championship-live-actions {
  margin-top: 8px;
}

.championship-live-actions .btn {
  width: 100%;
}

.inline-profile-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.inline-profile-link:hover {
  color: var(--accent-text);
}

.live-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.live-score > span:nth-child(2) {
  min-width: 58px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft-bg);
  text-align: center;
  direction: ltr;
}

.live-score .team-identity:last-child {
  justify-content: flex-end;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .42);
}

.modal {
  width: min(620px, 100%);
  max-height: min(740px, 92vh);
  overflow: auto;
  padding: 20px;
}

.modal > .topbar {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.modal > .topbar .section-title {
  margin-bottom: 0;
}

.modal-close-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--lime-ink);
  background: var(--lime);
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(430px, calc(100% - 28px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px;
  direction: ltr;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bottom-nav-bg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.nav-btn {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  text-decoration: none;
}

.nav-btn.active,
.nav-btn:hover {
  color: var(--accent-text);
  background: rgba(213, 255, 64, .1);
}

.nav-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}

.nav-icon svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-btn.active .nav-icon svg {
  stroke-width: 2.25;
}

@media (max-width: 860px) {
  .auth-layout,
  .profile-header,
  .form-grid,
  .live-grid,
  .pick-board-hero,
  .pick-board-grid,
  .award-checkbox-grid,
  .award-grid,
  .explore-grid,
  .voting-status-grid,
  .prize-form-grid,
  .point-rule-types,
  .point-rule-fields,
  .prediction-outcome-grid {
    grid-template-columns: 1fr;
  }

  .side-pick-row.three-options {
    grid-template-columns: 1fr;
  }

  .prediction-row-main,
  .prediction-controls {
    grid-template-columns: 1fr;
  }

  .prediction-row-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .prediction-row-info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
    text-align: start;
  }

  .prediction-status {
    justify-self: start;
  }

  .prediction-confirm-btn {
    width: auto;
  }

  .hero-panel {
    min-height: 380px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding-inline: 12px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .topbar,
  .match-top,
  .team-row {
    align-items: stretch;
    flex-direction: column;
  }

  .page-topbar {
    display: grid;
    grid-template-columns: minmax(42px, 1fr) auto minmax(42px, 1fr);
    align-items: center;
  }

  .modal > .topbar {
    align-items: center;
    flex-direction: row;
  }

  .stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-column {
    min-height: 54px;
    padding-inline: 4px;
  }

  .stat-column strong {
    font-size: 17px;
  }

  .profile-top-row {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
  }

  .profile-avatar-ring {
    width: 96px;
    height: 96px;
  }

  .profile-title-line {
    font-size: 16px;
  }

  .action-grid {
    grid-template-columns: 1fr 1fr;
  }

  .action-tile {
    min-height: 100px;
    padding: 14px;
  }

  .action-tile strong {
    font-size: 16px;
  }

  .profile-actions {
    grid-template-columns: 1fr 1fr;
  }

  .instagram-row {
    align-items: stretch;
    flex-direction: column;
  }

  .instagram-row .btn {
    width: 100%;
  }

  .notification-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .notification-actions {
    align-self: center;
  }

  .points-input {
    width: 100%;
  }

  .bottom-nav {
    width: min(390px, calc(100% - 22px));
    bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .nav-btn {
    min-height: 46px;
  }

  .modal {
    width: 100%;
    max-height: min(720px, 88dvh);
    padding: 16px;
  }
}
