:root {
  --accent: #ffffff;          /* brand white (buttons, highlights) */
  --accent-rgb: 255, 255, 255;
  --accent-light: #ffffff;    /* gradient top */
  --accent-dark: #dcdde3;     /* gradient bottom: soft grey so white buttons have some depth */
  --on-accent: #0b0b0d;       /* dark text on white */
  --glow-rgb: 255, 255, 255;  /* glass highlights (white) */
  --line: rgba(255, 255, 255, 0.14);
  --text: #fff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --header-h: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #000;
  /* White glow from the top, over the dark gradient */
  background-image:
    radial-gradient(ellipse 55% 32% at 50% 0%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.14) 35%, transparent 80%),
    radial-gradient(ellipse 95% 70% at 50% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 45%, transparent 80%),
    radial-gradient(ellipse at top, #222226 0%, #111113 45%, #000 100%);
  background-attachment: fixed;
}

/* ---------- Header / tab bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: stretch;
  gap: 40px;
  height: var(--header-h);
  padding: 0 32px;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo img {
  height: 64px;
  width: auto;
}

.tabbar {
  display: flex;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

/* Sliding highlight + tab icons: phones only (see the 600px block) */
.tab-indicator,
.tab-icon {
  display: none;
}

/* Page content fades in softly when you switch tabs */
@keyframes section-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* "backwards" (not "both"): once finished, the animation leaves no transform behind,
   so the phone team drawer (position: fixed) stays pinned to the screen */
.section:not([hidden]) {
  animation: section-in 0.32s ease-out backwards;
}

.tab {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.tab:hover,
.tab:focus-visible {
  color: var(--text);
}

.tab.is-active {
  color: var(--text);
}

.tab:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -6px;
}

/* ---------- Right side of header ---------- */

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ---------- Sign in button ---------- */

.signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #0b0b0d;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Button is already white, so hover dims it slightly */
.signin-btn:hover {
  background: #e4e5ea;
  color: var(--on-accent);
}

.signin-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.signin-text {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Signed in: show email, no caps */
.signin-btn.is-signed-in {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--line);
  text-transform: none;
  letter-spacing: 0.01em;
}

.signin-btn.is-signed-in:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ---------- Sign in / Sign up window ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.auth {
  width: min(400px, calc(100vw - 32px));
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #1c1c20 0%, #0d0d0f 100%);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.auth::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.auth-logo {
  display: block;
  height: 52px;
  margin: 0 auto 20px;
}

.auth-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

/* Blue pill that slides between SIGN IN and SIGN UP */
.auth-switch::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 6px);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.35);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-switch.is-signup::before {
  transform: translateX(calc(100% + 4px));
}

.auth-mode {
  position: relative;
  z-index: 1;
  padding: 9px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease;
}

.auth-mode:hover {
  color: var(--text);
}

.auth-mode.is-active {
  color: var(--on-accent);
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.field input:focus {
  outline: none;
  border-color: var(--text);
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.field-hint[hidden] {
  display: none;
}

.auth-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(232, 36, 26, 0.14);
  color: #ff8a82;
  font-size: 13px;
}

.auth-submit {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.auth-submit:hover {
  filter: brightness(0.9);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-mode:focus-visible,
.auth-submit:focus-visible,
.auth-close:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.auth-account {
  text-align: center;
}

.auth-account-label {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-account-email {
  margin: 0 0 24px;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.auth-signout {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
}

/* ---------- Menu (three lines, right after the logo) ---------- */

.menu {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: -26px; /* sit close to the logo (header gap is 40px on desktop) */
}

.menu-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.menu-btn:hover,
.menu-btn.is-open {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.menu-btn:focus-visible,
.menu-item:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.menu-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #141417;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  animation: menu-in 0.16s ease-out;
}

.menu-panel[hidden] {
  display: none;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.menu-item svg {
  flex-shrink: 0;
  color: var(--accent-light);
}

/* ---------- Profile page ---------- */

.profile-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.profile-page [hidden] {
  display: none !important;
}

.profile-signedout .tour-btn {
  margin-top: 14px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.035);
}

/* Letter avatar (no photo uploads yet) */
.profile-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: hsl(var(--h, 220) 40% 30%);
  color: #fff;
  font-size: 34px;
  font-weight: 800;
}

.profile-avatar {
  overflow: hidden;
}

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

/* ---------- Flags + country field ---------- */

.flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  vertical-align: middle;
}

.flag--name {
  width: 30px;
  height: 22px;
  margin-right: 10px;
  border-radius: 3px;
  vertical-align: -2px;
}

.flag--btn {
  width: 18px;
  height: 13px;
  margin-right: 6px;
  vertical-align: -1px;
}

.profile-name {
  display: flex;
  align-items: center;
}

.profile-name > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.country-input input {
  flex: 0 0 84px;
  width: 84px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.country-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
}

.country-preview > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-preview.is-ok {
  color: var(--text);
}

.country-preview.is-bad {
  color: #ff8a82;
}

.country-preview.is-bad .flag {
  opacity: 0.6;
}

.country-ok {
  color: #6fdc8c;
  font-weight: 800;
}

/* Photo block in the profile form */
.avatar-edit {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.avatar-edit-body {
  min-width: 0;
}

.avatar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.avatar-buttons .tour-btn {
  height: 38px;
  padding: 0 14px;
  font-size: 12px;
}

.avatar-buttons .tour-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Photo in the header account button */
.signin-avatar {
  width: 22px;
  height: 22px;
  margin-left: -6px;
  border-radius: 50%;
  object-fit: cover;
}

.signin-avatar[hidden] {
  display: none;
}

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

.profile-name {
  margin: 0 0 8px;
  overflow: hidden;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.profile-email {
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-details {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.profile-detail {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.profile-detail dt {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.profile-detail dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.profile-saved {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(46, 160, 67, 0.45);
  border-radius: 10px;
  background: rgba(46, 160, 67, 0.15);
  color: #8be0a0;
  font-size: 14px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-form-hint {
  margin: -6px 0 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.profile-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  resize: vertical;
}

.profile-form textarea:focus {
  outline: none;
  border-color: var(--text);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-opt {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  text-transform: lowercase;
}

.field-error {
  display: block;
  margin-top: 6px;
  color: #ff8a82;
  font-size: 12.5px;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #ff8a82;
}

@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile-card {
    gap: 14px;
    padding: 16px;
  }

  .profile-avatar {
    width: 62px;
    height: 62px;
    font-size: 28px;
  }
}

/* ---------- Segmented switch (Current/Past, EU/AS/CIS) ---------- */

.seg {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.seg--full {
  display: grid;
  width: 100%;
}

/* Size/position from "option i of n" (options are equal width; padding 4px, gap 2px) */
.seg-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px - (var(--n, 2) - 1) * 2px) / var(--n, 2));
  transform: translateX(calc(var(--i, 0) * (100% + 2px)));
  border-radius: 999px;
  background: var(--accent);
  pointer-events: none;
}

.seg.is-ready .seg-pill {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.seg-btn {
  position: relative;
  z-index: 1;
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease;
}

.seg-btn:hover {
  color: var(--text);
}

.seg-btn.is-active {
  color: var(--on-accent);
}

.seg-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Region switch above the team list */
.team-region-seg {
  margin-bottom: 10px;
}

/* ---------- Rankings page ---------- */

.rankings-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.rankings-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.rankings-head .rules-title {
  margin: 0;
}

.ranking-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ranking-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.ranking-pos {
  width: 28px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Top 3: gold, silver, bronze place numbers */
.ranking-row.is-top .ranking-pos {
  color: #f3c94e;
}

li:nth-child(2) > .ranking-row.is-top .ranking-pos {
  color: #cfd3dc;
}

li:nth-child(3) > .ranking-row.is-top .ranking-pos {
  color: #d99a5b;
}

.ranking-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-points {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ranking-points small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

/* ---------- Tournaments page ---------- */

.tour-seg {
  margin-bottom: 16px;
}

.tour-past[hidden],
.tour-current[hidden] {
  display: none;
}

.tour-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.tour-hero {
  position: relative;
}

/* Same fading edges as the rules banner */
.tour-banner {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 80%, transparent 100%);
  mask-composite: intersect;
}

/* Buttons sit on the banner, bottom-left (under "SEASON 6") */
.tour-actions {
  position: absolute;
  left: 6%;
  bottom: 12%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.tour-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}

.tour-btn--primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.35);
}

.tour-btn--primary:hover {
  background: var(--accent);
  border-color: transparent;
  filter: brightness(0.9);
}

.tour-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.tour-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text);
  font-size: 14px;
}

.tour-note[hidden] {
  display: none;
}

.tour-info {
  max-width: 680px;
  margin-top: 24px;
}

.tour-season {
  margin: 0 0 4px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tour-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 4.4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
}

.tour-desc {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.6;
}

.tour-soon {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Rules page ---------- */

.rules-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

/* Edges fade into the background (strongest in the corners, where both fades overlap) */
.rules-banner {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
  mask-composite: intersect;
}

.rules-title {
  margin: 28px 0 16px;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* About page text (reuses the rules page layout and banner fade) */
.about-text {
  max-width: 720px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.65;
}

/* Our team page */
.staff-groups {
  display: grid;
  gap: 26px;
  margin-top: 8px;
}

.staff-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 16px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.staff-group-title img {
  height: 22px;
  width: auto;
}

.staff-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.staff-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.staff-flag {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
}

.staff-flag .flag {
  width: 28px;
  height: 21px;
  border-radius: 3px;
}

/* "?" in place of a flag when no country is set */
.flag--unknown {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.staff-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.staff-name {
  overflow: hidden;
  font-size: 16px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-role {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
}

.about-credit {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
}

/* Social media links */
.social-title {
  margin: 32px 0 14px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.social-link {
  --brand: #fff;
  --brand-rgb: 255, 255, 255;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  border-color: rgba(var(--brand-rgb), 0.55);
  background: rgba(var(--brand-rgb), 0.1);
  transform: translateY(-1px);
}

.social-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.social-link--telegram {
  --brand: #29a9eb;
  --brand-rgb: 41, 169, 235;
}

.social-link--discord {
  --brand: #5865f2;
  --brand-rgb: 88, 101, 242;
}

.social-link--tiktok {
  --brand: #111;
  --brand-rgb: 254, 44, 85;
}

.social-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
}

/* TikTok's two-tone look: cyan + pink edge on the note */
.social-link--tiktok .social-icon {
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.social-link--tiktok .social-icon svg {
  filter: drop-shadow(-1.5px -1px 0 #25f4ee) drop-shadow(1.5px 1px 0 #fe2c55);
}

.social-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.social-name {
  font-size: 15px;
  font-weight: 800;
}

.social-handle {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
}

.rules-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.rule-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}

.rule-title {
  margin: 4px 0 4px;
  font-size: 16px;
  font-weight: 800;
}

.rule-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- Language switch ---------- */

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-btn {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  background: var(--accent);
  color: var(--on-accent);
}

.lang-btn:focus-visible,
.lang-select:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.lang-select {
  display: none;
  padding: 6px 28px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.05)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E")
    no-repeat right 11px center;
}

.lang-select option {
  background: #141416;
  color: #fff;
}

@media (max-width: 760px) {
  .lang {
    display: none;
  }

  .lang-select {
    display: block;
  }

  /* Phones: icon-only round button */
  .header-actions {
    gap: 8px;
  }

  .signin-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    overflow: hidden;
  }

  .signin-text {
    display: none;
  }

  /* Photo fills the round button */
  .signin-btn .signin-avatar {
    width: 100%;
    height: 100%;
    margin: 0;
  }
}

/* ---------- Teams: side list + team page ---------- */

.teams {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 56px;
}

.teams[hidden] {
  display: none;
}

.teams:not(.is-list-open) {
  grid-template-columns: minmax(0, 1fr);
}

.teams:not(.is-list-open) .team-list {
  display: none;
}

.panel,
.team-list-items,
.team-hero,
.stat,
.player,
.chart-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

/* List */
.team-list {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--header-h) - 32px);
  min-height: 0;
}

/* Heading sits above the box */
.team-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 10px 4px;
}

/* TEAMS / PLAYERS switch */
.list-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: -10px;
}

.list-switch-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.list-switch-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.list-switch-btn.is-active {
  color: var(--text);
}

.list-switch-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Player rows + avatars */
.team-item-sub {
  display: block;
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-avatar {
  flex-shrink: 0;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.player-avatar--empty {
  padding: calc(var(--s) * 0.14);
  fill: rgba(255, 255, 255, 0.3);
}

.player-team-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.player-team-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

.stat.is-mid .stat-value {
  color: #f3c94e;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

/* The box: just the list */
.team-list-items {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow-y: auto;
}

.team-list-items li + li {
  margin-top: 4px;
}

.team-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 7px 12px 7px 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.team-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.team-item.is-active {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent);
}

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

.team-item-rank {
  color: var(--text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Logos */
.team-logo {
  flex-shrink: 0;
  width: var(--s);
  height: var(--s);
  border-radius: calc(var(--s) * 0.22);
  object-fit: contain;
}

.team-logo--initials {
  display: grid;
  place-items: center;
  background: hsl(var(--h) 45% 28%);
  color: #fff;
  font-size: calc(var(--s) * 0.38);
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Open-list button */
.team-list-open {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.team-list-open:hover {
  background: rgba(255, 255, 255, 0.1);
}

.teams:not(.is-list-open) .team-list-open {
  display: inline-flex;
}

/* Team page */
.team-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.team-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(var(--accent-rgb), 0.16), transparent 60%),
    rgba(255, 255, 255, 0.035);
}

.team-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.team-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-badge,
.award-chip,
.demo-chip,
.country {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.rank-badge {
  background: var(--accent);
  color: var(--on-accent);
}

.award-chip {
  background: rgba(240, 190, 60, 0.16);
  color: #f3c94e;
}

.demo-chip {
  border: 1px dashed rgba(255, 255, 255, 0.35);
  color: var(--text-muted);
}

.country {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

.block-title {
  margin: 10px 0 -4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Roster */
.roster {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px 0;
  overflow: hidden;
  text-align: center;
}

.player-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.player-photo--empty {
  padding: 10px;
  fill: rgba(255, 255, 255, 0.28);
}

.player .country {
  margin-top: -4px;
}

.player-nick {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.player-rating {
  align-self: stretch;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.is-good.player-rating { background: rgba(46, 160, 67, 0.35); }
.is-mid.player-rating  { background: rgba(210, 165, 40, 0.35); }
.is-bad.player-rating  { background: rgba(232, 36, 26, 0.3); }

/* Stats */
.stats,
.rank-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 12px;
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stat--main {
  background: rgba(var(--accent-rgb), 0.12);
}

.stat.is-good {
  background: rgba(46, 160, 67, 0.2);
}

.stat.is-good .stat-value {
  color: #6fdc8c;
}

.stat.is-bad {
  background: rgba(232, 36, 26, 0.14);
}

.stat.is-bad .stat-value {
  color: #ff8a82;
}

.awards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-empty {
  color: var(--text-muted);
  font-size: 14px;
}

.team-list-empty {
  padding: 14px 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.teams-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 56px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
}

.teams-empty img {
  height: 56px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.teams-empty-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.teams-empty .team-empty {
  margin: 0;
}

/* Rank chart */
.chart-wrap {
  padding: 12px 12px 4px;
}

.rank-chart {
  display: block;
  width: 100%;
  height: auto;
}

.chart-grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.chart-label {
  fill: var(--text-muted);
  font-size: 12px;
}

.chart-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  stroke-linejoin: round;
}

.chart-dot {
  fill: #fff;
}

.chart-dot--now {
  fill: var(--accent);
  stroke: #0b0b0d;
  stroke-width: 2;
}

.team-item:focus-visible,
.icon-btn:focus-visible,
.team-list-open:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Tablet: roster wraps */
@media (max-width: 1100px) {
  .roster {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* Phones: the list becomes a slide-in drawer */
@media (max-width: 760px) {
  .teams,
  .teams:not(.is-list-open) {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 12px 40px;
  }

  .team-list,
  .teams:not(.is-list-open) .team-list {
    position: fixed;
    z-index: 40;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    align-self: stretch;
    width: min(320px, 86vw);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    padding: 16px 12px;
    border-right: 1px solid var(--line);
    border-radius: 0 14px 14px 0;
    background: #111114;
    transform: translateX(0);
    transition: transform 0.25s ease;
  }

  .teams:not(.is-list-open) .team-list {
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s 0.25s;
  }

  .team-list-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(0, 0, 0, 0.6);
  }

  .team-list-backdrop[hidden] {
    display: none;
  }

  .team-list-open,
  .teams:not(.is-list-open) .team-list-open {
    display: inline-flex;
  }

  .team-hero {
    gap: 14px;
    padding: 16px;
  }

  .roster {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .player-photo {
    width: 60px;
    height: 60px;
  }

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

  .stat-value {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-list,
  .tab-indicator,
  .tab,
  .auth-switch::before,
  .auth-mode,
  .seg-pill,
  .seg-btn {
    transition: none !important;
  }

  .section:not([hidden]) {
    animation: none;
  }
}

@media (max-width: 600px) {
  :root {
    /* Nothing is pinned at the top on phones (the tab bar lives at the bottom) */
    --header-h: 0px;
    --top-row-h: 60px;
    --bottom-bar-h: 68px;
    --bottom-gap: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  /* Leave room so the bottom bar never covers page content */
  body {
    padding-bottom: calc(var(--bottom-bar-h) + var(--bottom-gap) + 12px);
  }

  /* Top row: logo + language/account, no background */
  .site-header {
    position: relative;
    top: auto;
    align-items: center;
    height: var(--top-row-h);
    gap: 0;
    padding: 0 14px;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .logo img {
    height: 46px;
  }

  .menu {
    margin-left: 10px;
  }

  /* Smaller buttons so all three fit on the banner */
  .tour-actions {
    left: 4%;
    right: 4%;
    bottom: 9%;
    gap: 5px;
  }

  .tour-btn {
    height: 32px;
    gap: 5px;
    padding: 0 clamp(8px, 2.4vw, 11px);
    font-size: clamp(9px, 2.8vw, 10.5px);
    letter-spacing: 0.03em;
  }

  .tour-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Keep the icon only on the main (yellow) button so all three fit in one row */
  .tour-btn:not(.tour-btn--primary) svg {
    display: none;
  }

  .menu-btn {
    width: 40px;
    height: 40px;
  }

  .header-actions {
    gap: 8px;
  }

  /* Bottom tab bar: rounded panel pinned to the bottom of the screen */
  .tabbar {
    position: fixed;
    z-index: 30;
    left: 10px;
    right: 10px;
    bottom: var(--bottom-gap);
    height: var(--bottom-bar-h);
    padding: 6px;
    gap: 4px;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(14, 14, 17, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  }

  /* Each tab: icon on top, label underneath */
  .tab {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0 2px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.55);
    /* 4 tabs: text scales down a little on narrow phones so "Tournaments" fits */
    font-size: clamp(9.5px, 2.85vw, 12.5px);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

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

  .tab-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tab.is-active {
    color: var(--on-accent);
  }

  .tab:focus-visible {
    outline-offset: -3px;
  }

  /* Highlight with a glow; slides to the tapped tab.
     Size/position come from CSS math (tab index --i of --n equal tabs), not from
     measuring elements — measuring was unreliable on iPhone Safari (bar went full width).
     Bar padding is 6px and the gap between tabs is 4px (see .tabbar above). */
  .tab-indicator {
    display: block;
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: calc((100% - 12px - (var(--n, 4) - 1) * 4px) / var(--n, 4));
    transform: translateX(calc(var(--i, 0) * (100% + 4px)));
    border-radius: 16px;
    background: linear-gradient(160deg, var(--accent-light) 0%, var(--accent) 55%, var(--accent-dark) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.35),
      0 0 26px rgba(var(--accent-rgb), 0.45),
      0 4px 14px rgba(var(--accent-rgb), 0.3);
    pointer-events: none;
  }

  .tabbar.is-ready .tab-indicator {
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .lang-select {
    padding: 6px 22px 6px 10px;
    font-size: 11px;
    background-position: right 8px center;
  }

  .signin-btn {
    width: 34px;
    height: 34px;
  }
}
