* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: Inter, Outfit, system-ui, sans-serif;
  color: var(--tile-title);
}

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

button {
  border: 0;
  color: inherit;
  background: transparent;
}

button,
a,
span,
strong,
small,
div {
  min-width: 0;
}

[data-theme='light'] {
  --bg-gradient-start: #f0f4fa;
  --bg-gradient-end: #e4eaf2;
  --aurora-bg: radial-gradient(circle at 20% 30%, rgba(0, 180, 255, 0.06), rgba(100, 80, 255, 0.03));
  --logo-gradient: linear-gradient(135deg, #0a7e8c, #e05a2a);
  --nav-btn-bg: rgba(255, 255, 255, 0.7);
  --nav-btn-border: rgba(0, 120, 140, 0.15);
  --nav-icon-stroke: #0a6b78;
  --section-link: #0a7e8c;
  --quick-card-bg: rgba(255, 255, 255, 0.75);
  --quick-card-border: rgba(10, 126, 140, 0.1);
  --tile-title: #1a2c3c;
  --tile-desc: #5f7f9a;
  --soft-text: #7890a4;
  --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  --toast-bg: rgba(20, 30, 45, 0.92);
  --toast-color: #d4f1f9;
}

[data-theme='dark'] {
  --bg-gradient-start: #01020a;
  --bg-gradient-end: #07040f;
  --aurora-bg: radial-gradient(circle at 11% 14%, rgba(0, 245, 255, 0.38), transparent 23%), radial-gradient(circle at 90% 15%, rgba(255, 92, 16, 0.34), transparent 25%), radial-gradient(circle at 16% 92%, rgba(35, 255, 134, 0.18), transparent 31%), radial-gradient(circle at 78% 105%, rgba(255, 45, 85, 0.2), transparent 35%), linear-gradient(135deg, #01020a, #07111c 44%, #10050a);
  --logo-gradient: linear-gradient(135deg, #0a7e8c, #e05a2a);
  --nav-btn-bg: rgba(6, 9, 17, 0.58);
  --nav-btn-border: rgba(0, 247, 255, 0.24);
  --nav-icon-stroke: #f6ffff;
  --section-link: #00f7ff;
  --quick-card-bg: rgba(6, 10, 18, 0.66);
  --quick-card-border: rgba(0, 247, 255, 0.14);
  --tile-title: #f8fcff;
  --tile-desc: rgba(223, 235, 246, 0.58);
  --soft-text: rgba(223, 235, 246, 0.42);
  --card-shadow: 0 26px 78px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --toast-bg: rgba(3, 5, 12, 0.96);
  --toast-color: #00f7ff;
}

[data-theme='dark'] body::after {
  content: '';
  position: fixed;
  inset: auto -12% -18% -12%;
  height: 44%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(40, 255, 150, 0.28), transparent 58%);
  filter: blur(18px);
  opacity: 0.82;
}

[data-theme='dark'] button,
[data-theme='dark'] input,
[data-theme='dark'] select,
[data-theme='dark'] textarea {
  color: var(--tile-title);
}

.app-bg {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg-gradient-start), var(--bg-gradient-end));
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--aurora-bg);
  filter: blur(68px);
  opacity: 0.82;
  pointer-events: none;
  animation: auroraShift 10s ease-in-out infinite;
}

@keyframes auroraShift {
  0%,
  100% {
    opacity: 0.54;
    transform: scale(1);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.08) translateX(4%);
  }
}

[data-theme='dark'] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 255, 255, 0.035) 0px, rgba(255, 104, 0, 0.025) 2px, transparent 2px, transparent 8px);
  mix-blend-mode: screen;
  opacity: 0.5;
}

.bubble-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.bubble-field::before,
.bubble-field::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 180, 255, 0.16), rgba(255, 104, 0, 0.04) 45%, transparent 70%);
  animation: bubbleFloat 9s linear infinite;
}

.bubble-field::before {
  left: 8%;
  bottom: -180px;
}

.bubble-field::after {
  right: 12%;
  bottom: -220px;
  animation-delay: 3s;
  transform: scale(0.72);
}

[data-theme='dark'] .bubble-field {
  display: none;
}

@keyframes bubbleFloat {
  from {
    transform: translateY(0) translateX(0) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 0.5;
  }
  to {
    transform: translateY(-120vh) translateX(42px) scale(1.15);
    opacity: 0;
  }
}

.watermark {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 0;
  text-align: center;
  pointer-events: none;
  font-family: Outfit, sans-serif;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.14), rgba(255, 91, 10, 0.1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.45;
}

.nav-bar {
  position: relative;
  z-index: 20;
  min-height: 60px;
  margin: max(10px, calc(env(safe-area-inset-top, 0px) + 8px)) 10px 0;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--nav-btn-border);
  border-radius: 60px;
  background: var(--nav-btn-bg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

[data-theme='dark'] .nav-bar {
  background: linear-gradient(135deg, rgba(6, 12, 22, 0.72), rgba(7, 8, 18, 0.52));
  border-color: rgba(0, 247, 255, 0.26);
}

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

.nav-actions {
  justify-content: flex-end;
}

.nav-logo {
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  cursor: pointer;
  font-family: Outfit, sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav-btn,
.icon-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 30px;
  border: 1px solid var(--nav-btn-border);
  background: var(--nav-btn-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-btn:hover,
.icon-btn:hover {
  transform: scale(1.05);
  border-color: var(--nav-icon-stroke);
}

.icon {
  width: 20px;
  height: 20px;
  stroke: var(--nav-icon-stroke);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screen {
  position: relative;
  z-index: 20;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 10px 22px;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar,
.h-scroll::-webkit-scrollbar {
  display: none;
}

.hero {
  margin: 4px 4px 22px;
  padding-left: 16px;
  border-left: 3px solid var(--nav-icon-stroke);
}

.hero h1 {
  font-size: 34px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--tile-title), var(--section-link));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin-top: 7px;
  color: var(--tile-desc);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-head,
.screen-head {
  margin: 0 4px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.screen-head h1,
.section-head > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.section-title,
.screen-kicker {
  color: var(--section-link);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  color: var(--tile-desc);
}

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

.quick-card,
.tile,
.glass-card,
.match-card,
.settings-card {
  border: 1px solid var(--quick-card-border);
  background: var(--quick-card-bg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.quick-card {
  min-height: 126px;
  border-radius: 28px;
  padding: 16px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: var(--nav-icon-stroke);
}

.quick-icon,
.tile-icon {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(0, 255, 255, 0.16), transparent 34%), radial-gradient(circle at 75% 82%, rgba(255, 107, 53, 0.14), transparent 38%), rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(0, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 10px 28px rgba(0, 0, 0, 0.12);
}

.quick-icon {
  width: 48px;
  height: 48px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-label {
  min-height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tile-title);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3157;
  box-shadow: 0 0 0 4px rgba(255, 49, 87, 0.13), 0 0 16px rgba(255, 49, 87, 0.45);
  animation: livePulse 1.25s ease-in-out infinite;
}

@keyframes livePulse {
  50% {
    transform: scale(1.45);
    opacity: 0.55;
  }
}

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

.tile {
  min-height: 88px;
  border-radius: 24px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.tile strong {
  display: block;
  color: var(--tile-title);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile span {
  display: block;
  margin-top: 4px;
  color: var(--tile-desc);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stories {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.story {
  width: 72px;
  flex: 0 0 72px;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.story-ring {
  width: 66px;
  height: 66px;
  padding: 2px;
  border-radius: 50%;
  background: var(--logo-gradient);
}

.story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #101a24, #0a3f48 52%, #ff6800 140%);
}

.story-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  padding: 9px;
}

.profile-bar {
  border: 1px solid var(--nav-btn-border);
  border-radius: 60px;
  padding: 8px 12px 8px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--quick-card-bg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.profile-info {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  cursor: pointer;
}

.profile-info > span {
  min-width: 0;
}

.profile-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--logo-gradient);
  color: #fff;
  font-size: 18px;
  font-weight: 850;
}

.profile-info strong,
.profile-info small {
  display: block;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-info strong {
  color: var(--tile-title);
  font-size: 15px;
  font-weight: 850;
}

.profile-info small {
  margin-top: 2px;
  color: var(--section-link);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 30px;
  border: 1px solid var(--nav-btn-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nav-btn-bg);
  cursor: pointer;
}

.story-name {
  max-width: 72px;
  color: var(--tile-desc);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px;
  border-radius: 22px;
}

.date-pill {
  width: 48px;
  height: 44px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: transparent;
  color: var(--tile-desc);
  cursor: pointer;
}

.date-pill.active {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.18), rgba(255, 91, 10, 0.18));
  color: var(--tile-title);
}

.date-pill small {
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.date-pill strong {
  font-family: Outfit, sans-serif;
  font-size: 15px;
  font-weight: 900;
}

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

.league-group {
  border-radius: 22px;
  overflow: hidden;
}

.league-group.league-fav,
.league-group.league-fav.open {
  border-color: transparent;
  background-image: var(--logo-gradient), linear-gradient(135deg, rgba(10, 126, 140, 0.13), rgba(255, 104, 0, 0.16)), var(--quick-card-bg);
  background-origin: border-box;
  background-clip: padding-box, padding-box, border-box;
  box-shadow: 0 0 0 1px rgba(255, 104, 0, 0.18), 0 10px 26px rgba(255, 104, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] .league-group,
[data-theme='dark'] .match-card,
[data-theme='dark'] .settings-card,
[data-theme='dark'] .profile-bar,
[data-theme='dark'] .calendar-strip {
  background: linear-gradient(135deg, rgba(6, 12, 22, 0.72), rgba(7, 8, 18, 0.52));
  border-color: rgba(0, 247, 255, 0.18);
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.league-header {
  width: 100%;
  min-height: 58px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  position: relative;
  transition: transform 0.16s ease;
  touch-action: pan-y;
}

.league-header::after,
.match-card::after {
  content: 'Favs';
  position: absolute;
  inset: 0 auto 0 12px;
  display: flex;
  align-items: center;
  color: #ffb347;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  pointer-events: none;
}

.league-header.is-swiping::after,
.match-card.is-swiping::after {
  opacity: 0.75;
  transform: translateX(0);
}

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

.league-title > span:last-child,
.teams,
.team-row {
  min-width: 0;
}

.league-mark,
.team-mark {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(10, 126, 140, 0.2), rgba(224, 90, 42, 0.18));
  overflow: hidden;
  font-size: 11px;
  font-weight: 900;
}

.team-mark {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

.league-mark img,
.team-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.league-name {
  color: var(--tile-title);
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-country {
  color: var(--tile-desc);
  font-size: 11px;
  font-weight: 750;
}

.league-body {
  display: grid;
  gap: 7px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 10px;
  transition: max-height 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.14s ease, padding 0.14s ease;
}

.league-group.open .league-body {
  max-height: 1600px;
  opacity: 1;
  padding: 0 10px 10px;
}

.league-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.league-count {
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--section-link);
  font-size: 10px;
  font-weight: 900;
}

.league-arrow {
  color: var(--section-link);
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.18s ease;
}

.league-group.open .league-arrow {
  transform: rotate(180deg);
}

.match-card {
  min-height: 58px;
  border-radius: 17px;
  padding: 6px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px 38px;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  min-width: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  touch-action: pan-y;
}

.match-card.fav {
  border-color: transparent;
  background-image: var(--logo-gradient), linear-gradient(135deg, rgba(10, 126, 140, 0.13), rgba(255, 104, 0, 0.16)), var(--quick-card-bg);
  background-origin: border-box;
  background-clip: padding-box, padding-box, border-box;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.12), 0 8px 22px rgba(255, 104, 0, 0.12);
}

.match-card.fav .team-name {
  color: var(--section-link);
}

.match-card.score-flash {
  animation: auraPulse 1.6s ease-in-out 3;
}

@keyframes auraPulse {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.015);
  }
  75% {
    transform: scale(0.985);
  }
}

.teams {
  min-width: 0;
  display: grid;
  gap: 3px;
}

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

.team-name {
  min-width: 0;
  color: var(--tile-title);
  font-size: 12px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-status,
.score {
  min-width: 0;
}

.match-status {
  color: var(--section-link);
  font-size: 11px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.score {
  display: grid;
  gap: 4px;
  color: var(--tile-title);
  font-family: Outfit, sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

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

.old-settings .settings-card {
  padding: 0;
}

.guest-card {
  padding: 16px;
}

.guest-title {
  color: var(--tile-title);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.guest-desc,
.modal-sub {
  margin-top: 6px;
  color: var(--tile-desc);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.auth-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.action,
.secondary,
.danger {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  border: 1px solid var(--quick-card-border);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.action {
  background: var(--logo-gradient);
  color: #fff;
  border-color: transparent;
}

.secondary {
  background: var(--nav-btn-bg);
  color: var(--tile-title);
}

.danger {
  width: 100%;
  background: rgba(255, 49, 87, 0.1);
  color: #ff3157;
  border-color: rgba(255, 49, 87, 0.22);
}

.settings-item {
  width: 100%;
  min-height: 60px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border-bottom: 1px solid var(--quick-card-border);
  text-align: left;
  cursor: pointer;
  color: var(--tile-title);
}

.settings-item:last-child {
  border-bottom: 0;
}

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

.item-left > span:last-child {
  min-width: 0;
}

.settings-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(0, 255, 255, 0.16), transparent 34%), radial-gradient(circle at 75% 82%, rgba(255, 107, 53, 0.14), transparent 38%), rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(0, 255, 255, 0.12);
}

.item-label,
.item-value {
  display: block;
}

.item-label {
  color: var(--tile-title);
  font-size: 14px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-value {
  margin-top: 3px;
  color: var(--tile-desc);
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chev {
  color: var(--section-link);
  font-size: 24px;
  line-height: 1;
}

.rank-pill {
  min-height: 22px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 104, 0, 0.12);
  color: var(--section-link);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-card {
  padding: 14px;
}

.profile-head,
.profile-main {
  min-width: 0;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-main {
  flex: 1;
}

.profile-name {
  color: var(--tile-title);
  font-size: 16px;
  font-weight: 900;
}

.profile-email {
  margin-top: 3px;
  color: var(--tile-desc);
  font-size: 12px;
  font-weight: 650;
}

.rank-progress-block {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(120, 144, 164, 0.22);
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--logo-gradient);
}

.rank-points {
  color: var(--tile-desc);
  font-size: 11px;
  font-weight: 800;
}

.data-section {
  margin-top: 16px;
}

.tabs-row,
.filter-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  margin-bottom: 8px;
  scrollbar-width: none;
}

.tabs-row::-webkit-scrollbar,
.filter-strip::-webkit-scrollbar {
  display: none;
}

.tab-pill,
.filter-pill {
  min-height: 34px;
  padding: 0 15px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--quick-card-border);
  background: var(--quick-card-bg);
  color: var(--tile-desc);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.tab-pill.active {
  background: var(--logo-gradient);
  border-color: transparent;
  color: #fff;
}

[data-theme='dark'] .tab-pill,
[data-theme='dark'] .filter-pill {
  background: rgba(5, 10, 19, 0.68);
  border-color: rgba(0, 247, 255, 0.16);
}

[data-theme='dark'] .tab-pill.active {
  background: var(--logo-gradient);
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panels {
  min-width: 0;
}

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

.data-list,
.country-list,
.country-league-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.country-list {
  gap: 10px;
}

.country-group-card {
  border-radius: 22px;
  overflow: hidden;
}

[data-theme='dark'] .country-group-card,
[data-theme='dark'] .entity-row,
[data-theme='dark'] .entity-card,
[data-theme='dark'] .fact-card,
[data-theme='dark'] .data-article,
[data-theme='dark'] .detail-hero,
[data-theme='dark'] .settings-item,
[data-theme='dark'] .option,
[data-theme='dark'] .form input,
[data-theme='dark'] .form textarea,
[data-theme='dark'] .form select {
  background: linear-gradient(135deg, rgba(6, 12, 22, 0.72), rgba(7, 8, 18, 0.52));
  border-color: rgba(0, 247, 255, 0.18);
}

.entity-card,
.entity-row,
.fact-card,
.data-article,
.detail-hero,
.country-group-card {
  border: 1px solid var(--quick-card-border);
  background: var(--quick-card-bg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.entity-card > span,
.entity-row > span,
.detail-hero > span,
.search-item > span {
  min-width: 0;
}

.entity-card {
  min-height: 96px;
  border-radius: 24px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  cursor: pointer;
}

.entity-row,
.country-row {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--quick-card-bg);
  text-align: left;
  cursor: pointer;
}

.country-row {
  min-height: 58px;
  justify-content: space-between;
  border-radius: 0;
  background: transparent;
}

.country-row:active,
.entity-row:active {
  transform: scale(0.992);
}

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

.country-mark,
.country-count {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(10, 126, 140, 0.2), rgba(224, 90, 42, 0.18));
  color: var(--tile-title);
  font-size: 11px;
  font-weight: 900;
}

.country-count {
  width: auto;
  min-width: 24px;
  height: 22px;
  flex: 0 0 auto;
  padding: 0 8px;
  color: var(--section-link);
  font-size: 10px;
}

.country-mark img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.country-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.country-arrow {
  color: var(--section-link);
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.18s ease;
}

.country-group-card.open .country-arrow {
  transform: rotate(180deg);
}

.country-row strong,
.country-row small {
  display: block;
}

.country-row strong {
  color: var(--tile-title);
  font-size: 14px;
  font-weight: 900;
}

.country-row small {
  margin-top: 3px;
  color: var(--tile-desc);
  font-size: 11px;
  font-weight: 750;
}

.country-league-list {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 10px 10px;
  transition: max-height 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.16s ease, padding-top 0.16s ease;
}

.country-group-card.open .country-league-list {
  max-height: 1600px;
  opacity: 1;
  padding-top: 8px;
}

.country-league-list .entity-row {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme='light'] .country-league-list .entity-row {
  background: rgba(255, 255, 255, 0.58);
}

[data-theme='dark'] .country-league-list .entity-row {
  background: rgba(6, 10, 18, 0.54);
}

.entity-card img,
.entity-row img,
.detail-hero img,
.entity-fallback {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 16px;
  object-fit: contain;
  background: radial-gradient(circle at 30% 20%, rgba(0, 255, 255, 0.16), transparent 34%), radial-gradient(circle at 75% 82%, rgba(255, 107, 53, 0.14), transparent 38%), rgba(255, 255, 255, 0.08);
}

.entity-card strong,
.entity-row strong,
.fact-card strong,
.data-article strong,
.detail-hero strong {
  display: block;
  color: var(--tile-title);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-card small,
.entity-row small,
.fact-card span,
.data-article span,
.detail-hero small,
.data-muted {
  display: block;
  margin-top: 4px;
  color: var(--tile-desc);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fact-card,
.data-article {
  min-height: 74px;
  border-radius: 20px;
  padding: 12px;
}

.detail-hero {
  border-radius: 28px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-hero img,
.detail-hero .entity-fallback {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  border-radius: 22px;
}

.detail-hero strong {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.settings-card {
  border-radius: 24px;
  overflow: hidden;
}

.settings-row {
  width: 100%;
  min-height: 60px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid var(--quick-card-border);
  cursor: pointer;
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row strong {
  display: block;
  color: var(--tile-title);
  font-size: 14px;
  font-weight: 850;
}

.settings-row span {
  display: block;
  margin-top: 3px;
  color: var(--tile-desc);
  font-size: 12px;
  font-weight: 650;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--quick-card-border);
}

[data-theme='dark'] .segmented,
[data-theme='dark'] .search-box {
  background: rgba(3, 7, 16, 0.52);
  border-color: rgba(0, 247, 255, 0.16);
}

.segmented button {
  min-width: 58px;
  height: 32px;
  border-radius: 999px;
  background: transparent;
  color: var(--tile-desc);
  cursor: pointer;
}

.segmented button.active {
  background: var(--logo-gradient);
  color: white;
  font-weight: 850;
}

.switch {
  width: 50px;
  height: 30px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(120, 144, 164, 0.35);
}

.switch::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  transition: transform 0.18s ease;
}

.switch.active {
  background: var(--logo-gradient);
}

.switch.active::before {
  transform: translateX(20px);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: max(24px, calc(env(safe-area-inset-top, 0px) + 18px)) 14px 18px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 247, 255, 0.16), transparent 34%), rgba(1, 5, 12, 0.66);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.modal-overlay.active {
  display: flex;
}

.settings-modal {
  width: min(100%, 560px);
  max-height: 82vh;
  overflow-y: auto;
  border-radius: 30px;
  border: 1px solid rgba(0, 247, 255, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)), var(--quick-card-bg);
  box-shadow: 0 28px 92px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

[data-theme='dark'] .settings-modal {
  background: linear-gradient(145deg, rgba(6, 12, 22, 0.88), rgba(7, 8, 18, 0.68));
  box-shadow: 0 30px 94px rgba(0, 0, 0, 0.62), 0 0 38px rgba(0, 247, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modal-head {
  min-height: 60px;
  padding: 16px 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.modal-title {
  font-family: Outfit, sans-serif;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.03em;
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--nav-btn-border);
  background: var(--nav-btn-bg);
  color: var(--nav-icon-stroke);
  font-size: 22px;
  cursor: pointer;
}

.settings-modal .modal-sub {
  margin: -2px 18px 12px;
}

.options,
.form {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.option {
  min-height: 50px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid var(--quick-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.055);
  color: var(--tile-title);
  font-size: 13px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.option.active {
  border-color: rgba(255, 104, 0, 0.42);
  background: linear-gradient(135deg, rgba(10, 126, 140, 0.13), rgba(255, 104, 0, 0.16));
}

.option span {
  color: var(--section-link);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.form label {
  display: grid;
  gap: 7px;
  color: var(--tile-desc);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  min-height: 46px;
  border-radius: 18px;
  border: 1px solid var(--quick-card-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--tile-title);
  padding: 0 13px;
  outline: none;
  font-size: 14px;
  font-weight: 750;
  text-transform: none;
}

.form textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

[data-settings-toast].show {
  opacity: 1;
}

.empty-state {
  min-height: 260px;
  border-radius: 26px;
  padding: 42px 20px;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-state h2 {
  color: var(--tile-title);
  font-size: 20px;
  font-weight: 850;
}

.empty-state p {
  max-width: 320px;
  margin-top: 8px;
  color: var(--tile-desc);
  font-size: 13px;
  line-height: 1.45;
}

.toast-msg {
  position: fixed;
  left: 50%;
  bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 18px));
  z-index: 1200;
  transform: translateX(-50%);
  max-width: calc(100vw - 28px);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--quick-card-border);
  background: var(--toast-bg);
  color: var(--toast-color);
  box-shadow: var(--card-shadow);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(22px, calc(env(safe-area-inset-top, 0px) + 18px)) 14px 18px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 247, 255, 0.16), transparent 34%), rgba(1, 5, 12, 0.66);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.search-modal {
  width: min(100%, 560px);
  max-height: 78vh;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(0, 247, 255, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)), var(--quick-card-bg);
  box-shadow: 0 28px 92px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(26px);
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 10px;
}

.search-title {
  font-family: Outfit, sans-serif;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.03em;
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.search-sub {
  margin-top: 3px;
  color: var(--tile-desc);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--nav-btn-border);
  background: var(--nav-btn-bg);
  color: var(--nav-icon-stroke);
  font-size: 22px;
}

.search-box {
  height: 48px;
  margin: 0 18px 12px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 24px;
  border: 1px solid var(--quick-card-border);
  background: rgba(255, 255, 255, 0.1);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tile-title);
  font-weight: 750;
}

.search-results {
  max-height: calc(78vh - 140px);
  overflow-y: auto;
  padding: 2px 10px 12px;
}

.empty-copy {
  padding: 26px 12px;
  text-align: center;
  color: var(--tile-desc);
  font-size: 13px;
  font-weight: 700;
}

.search-item {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: var(--tile-title);
  text-align: left;
  cursor: pointer;
}

.search-item img,
.search-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] .search-item img,
[data-theme='dark'] .search-avatar,
[data-theme='dark'] .entity-fallback,
[data-theme='dark'] .country-mark,
[data-theme='dark'] .team-mark,
[data-theme='dark'] .league-mark {
  background: radial-gradient(circle at 30% 20%, rgba(0, 247, 255, 0.14), transparent 36%), radial-gradient(circle at 74% 84%, rgba(255, 91, 10, 0.12), transparent 40%), rgba(4, 9, 18, 0.78);
}

.search-item strong {
  display: block;
  font-size: 14px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-item small {
  display: block;
  margin-top: 3px;
  color: var(--tile-desc);
  font-size: 11px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .grid-4 {
    gap: 8px;
  }

  .quick-card {
    min-height: 116px;
    border-radius: 24px;
    padding: 14px 5px 11px;
  }

  .quick-label {
    font-size: 9.5px;
    letter-spacing: 0.02em;
  }

  .quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 20px;
  }

  .tile-list {
    gap: 10px;
  }

  .tile {
    min-height: 84px;
    border-radius: 22px;
    padding: 12px;
  }

  .tile strong {
    font-size: 14px;
  }

  .tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 16px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .match-card {
    grid-template-columns: minmax(0, 1fr) 50px 30px;
    gap: 6px;
  }

  .settings-item {
    padding-inline: 12px;
  }
}
