/* Ludo FUN 1.2.0 — scoped gaming application design system with SMS OTP */
.lfun-app {
  --lfun-bg: #070a1b;
  --lfun-bg-secondary: #0b1024;
  --lfun-surface: #10172b;
  --lfun-surface-elevated: #151e36;
  --lfun-surface-soft: rgba(255, 255, 255, 0.035);
  --lfun-text: #f7f9ff;
  --lfun-text-muted: #8f9ab5;
  --lfun-border: rgba(165, 181, 226, 0.16);
  --lfun-border-strong: rgba(165, 181, 226, 0.28);
  --lfun-primary: #00d5ff;
  --lfun-primary-rgb: 0, 213, 255;
  --lfun-primary-soft: rgba(0, 213, 255, 0.12);
  --lfun-secondary: #7c5cff;
  --lfun-secondary-rgb: 124, 92, 255;
  --lfun-gold: #ffc857;
  --lfun-silver: #b8c5d6;
  --lfun-bronze: #d98a55;
  --lfun-success: #2de2a5;
  --lfun-warning: #ffb84d;
  --lfun-danger: #ff5c7a;
  --lfun-info: #5db8ff;
  --lfun-radius-sm: 10px;
  --lfun-radius-md: 16px;
  --lfun-radius-lg: 24px;
  --lfun-radius-xl: 32px;
  --lfun-shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.18);
  --lfun-shadow-md: 0 24px 70px rgba(0, 0, 0, 0.32);
  --lfun-shadow-glow: 0 0 42px rgba(var(--lfun-primary-rgb), 0.18);
  --lfun-transition-fast: 150ms ease;
  --lfun-transition-normal: 220ms ease;
  --lfun-container-width: 1320px;
  color: var(--lfun-text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 0%, rgba(var(--lfun-secondary-rgb), 0.16), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(var(--lfun-primary-rgb), 0.1), transparent 25%),
    linear-gradient(180deg, #070a1b 0%, #080c1f 46%, #060919 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  isolation: isolate;
  overflow-x: clip;
}

.lfun-accent-violet .lfun-app,
.lfun-app-body.lfun-accent-violet .lfun-app {
  --lfun-primary: #8d72ff;
  --lfun-primary-rgb: 141, 114, 255;
  --lfun-secondary: #00d5ff;
  --lfun-secondary-rgb: 0, 213, 255;
}

.lfun-accent-gold .lfun-app,
.lfun-app-body.lfun-accent-gold .lfun-app {
  --lfun-primary: #ffc857;
  --lfun-primary-rgb: 255, 200, 87;
  --lfun-secondary: #7c5cff;
  --lfun-secondary-rgb: 124, 92, 255;
}

.lfun-app-body {
  margin: 0 !important;
  background: #070a1b !important;
  color: #f7f9ff !important;
  min-width: 320px;
}

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

.lfun-app a {
  color: inherit;
  text-decoration: none;
}

.lfun-app img {
  max-width: 100%;
  height: auto;
}

/* Theme-independent accessible text hiding. WordPress themes do not all ship
 * the same .screen-reader-text utility, so keep it safely contained here. */
.lfun-app .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.lfun-app .screen-reader-text:focus {
  position: fixed !important;
  inset: 12px auto auto 12px !important;
  z-index: 100000 !important;
  width: auto !important;
  height: auto !important;
  padding: 12px 16px !important;
  margin: 0 !important;
  clip: auto !important;
  clip-path: none !important;
  color: #07101d !important;
  background: #fff !important;
  border-radius: 8px !important;
}

.lfun-app button,
.lfun-app input,
.lfun-app select,
.lfun-app textarea {
  font: inherit;
}

.lfun-app .lfun-icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
}

.lfun-container {
  width: min(var(--lfun-container-width), calc(100% - 40px));
  margin-inline: auto;
}

.lfun-skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100000;
  padding: 12px 18px;
  border-radius: var(--lfun-radius-sm);
  color: #07101d;
  background: #fff;
  font-weight: 800;
  transition: top var(--lfun-transition-fast);
}

.lfun-skip-link:focus {
  top: 16px;
}

/* Header */
.lfun-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--lfun-border);
  background: rgba(7, 10, 27, 0.9);
  backdrop-filter: blur(20px) saturate(135%);
}

.lfun-header.is-sticky {
  position: sticky;
  top: 0;
}

.admin-bar .lfun-header.is-sticky {
  top: 32px;
}

.lfun-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.lfun-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--lfun-text);
}

.lfun-brand__mark {
  position: relative;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: #03141b;
  background: linear-gradient(145deg, #78efff, var(--lfun-primary));
  box-shadow: 0 0 30px rgba(var(--lfun-primary-rgb), 0.26), inset 0 1px rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.lfun-brand__mark::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 9px;
  inset: 4px auto auto -5px;
  transform: rotate(-34deg);
  background: rgba(255, 255, 255, 0.42);
}

.lfun-brand__mark span {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.lfun-brand__text {
  display: grid;
  line-height: 1.15;
}

.lfun-brand__text strong {
  font-size: 16px;
  letter-spacing: -0.03em;
}

.lfun-brand__text small {
  margin-top: 4px;
  color: var(--lfun-text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lfun-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.lfun-nav a {
  position: relative;
  min-height: 44px;
  padding: 10px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  color: var(--lfun-text-muted);
  font-size: 13px;
  font-weight: 750;
  transition: color var(--lfun-transition-fast), background var(--lfun-transition-fast);
}

.lfun-nav a .lfun-icon {
  width: 17px;
  height: 17px;
  opacity: 0.78;
}

.lfun-nav a:hover,
.lfun-nav a:focus-visible,
.lfun-nav a.is-active {
  color: var(--lfun-text);
  background: rgba(255, 255, 255, 0.055);
}

.lfun-nav a.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: -17px;
  height: 2px;
  border-radius: 999px;
  background: var(--lfun-primary);
  box-shadow: 0 0 14px rgba(var(--lfun-primary-rgb), 0.8);
}

.lfun-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--lfun-border);
  border-radius: 12px;
  color: var(--lfun-text);
  background: var(--lfun-surface);
  cursor: pointer;
}

.lfun-account-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.lfun-icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lfun-border);
  border-radius: 13px;
  color: var(--lfun-text-muted);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color var(--lfun-transition-fast), color var(--lfun-transition-fast), transform var(--lfun-transition-fast);
}

.lfun-icon-button:hover,
.lfun-icon-button:focus-visible {
  color: var(--lfun-text);
  border-color: rgba(var(--lfun-primary-rgb), 0.38);
  transform: translateY(-1px);
}

.lfun-notification-link > span {
  position: absolute;
  min-width: 19px;
  height: 19px;
  top: -5px;
  inset-inline-end: -5px;
  padding-inline: 5px;
  display: grid;
  place-items: center;
  border: 2px solid var(--lfun-bg);
  border-radius: 999px;
  color: #fff;
  background: var(--lfun-danger);
  font-size: 9px;
  font-weight: 900;
}

.lfun-login-link {
  min-height: 42px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  color: var(--lfun-text-muted);
  font-size: 13px;
  font-weight: 800;
}

.lfun-user-menu {
  position: relative;
}

.lfun-user-menu > summary {
  list-style: none;
}

.lfun-user-menu > summary::-webkit-details-marker {
  display: none;
}

.lfun-user-chip {
  min-height: 46px;
  padding: 4px 8px 4px 5px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--lfun-border);
  border-radius: 14px;
  color: var(--lfun-text);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.lfun-user-chip img,
.lfun-user-chip .lfun-demo-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px;
  object-fit: cover;
}

.lfun-user-chip > span {
  display: grid;
  min-width: 96px;
  line-height: 1.1;
}

.lfun-user-chip strong {
  max-width: 120px;
  overflow: hidden;
  color: var(--lfun-text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lfun-user-chip small {
  margin-top: 4px;
  color: var(--lfun-text-muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lfun-user-chip > .lfun-icon {
  width: 14px;
  color: var(--lfun-text-muted);
}

.lfun-user-menu__panel {
  position: absolute;
  min-width: 225px;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 150;
  padding: 8px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--lfun-border-strong);
  border-radius: 16px;
  background: rgba(15, 22, 44, 0.98);
  box-shadow: var(--lfun-shadow-md);
}

.lfun-user-menu__panel a {
  min-height: 42px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  color: var(--lfun-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.lfun-user-menu__panel a:hover,
.lfun-user-menu__panel a:focus-visible {
  color: var(--lfun-text);
  background: rgba(255, 255, 255, 0.055);
}

.lfun-user-menu__panel .lfun-user-menu__logout {
  margin-top: 4px;
  border-top: 1px solid var(--lfun-border);
  border-radius: 0 0 10px 10px;
  color: #ff9cac;
}

/* Demo ribbon */
.lfun-preview-ribbon {
  border-bottom: 1px solid rgba(var(--lfun-primary-rgb), 0.23);
  color: var(--lfun-text-muted);
  background: linear-gradient(90deg, rgba(var(--lfun-primary-rgb), 0.08), rgba(var(--lfun-secondary-rgb), 0.08));
  font-size: 12px;
}

.lfun-preview-ribbon .lfun-container {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.lfun-demo-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(var(--lfun-primary-rgb), 0.3);
  border-radius: 999px;
  color: var(--lfun-primary);
  background: rgba(var(--lfun-primary-rgb), 0.08);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.lfun-demo-badge .lfun-icon {
  width: 14px;
  height: 14px;
}

.lfun-demo-panel > .lfun-demo-badge,
.lfun-leaderboard-shell > .lfun-demo-badge {
  margin-bottom: 18px;
}

/* Core layout and typography */
.lfun-main {
  min-height: calc(100vh - 190px);
  padding-block: 38px 96px;
}

.lfun-main h1,
.lfun-main h2,
.lfun-main h3,
.lfun-main h4,
.lfun-main p {
  margin-top: 0;
}

.lfun-main h1,
.lfun-main h2,
.lfun-main h3,
.lfun-main strong,
.lfun-main dd,
.lfun-main .lfun-rank-badge,
.lfun-main .lfun-score-number {
  font-variant-numeric: tabular-nums;
}

.lfun-main h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.lfun-main h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.lfun-main h3 {
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lfun-main p {
  color: var(--lfun-text-muted);
}

.lfun-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--lfun-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lfun-section {
  margin-top: 62px;
}

.lfun-section:first-child {
  margin-top: 0;
}

.lfun-section__heading {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.lfun-section__heading h1,
.lfun-section__heading h2,
.lfun-section__heading h3,
.lfun-section__heading p {
  margin-bottom: 0;
}

.lfun-section__heading p {
  max-width: 680px;
  margin-top: 9px;
}

.lfun-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lfun-primary);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.lfun-text-link .lfun-icon {
  width: 16px;
  transition: transform var(--lfun-transition-fast);
}

.lfun-text-link:hover .lfun-icon,
.lfun-text-link:focus-visible .lfun-icon {
  transform: translateX(3px);
}

/* Buttons */
.lfun-button {
  min-height: 46px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--lfun-text);
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--lfun-transition-fast), border-color var(--lfun-transition-fast), background var(--lfun-transition-fast), box-shadow var(--lfun-transition-fast), color var(--lfun-transition-fast);
}

.lfun-button:hover,
.lfun-button:focus-visible {
  transform: translateY(-2px);
}

.lfun-button:active {
  transform: translateY(0);
}

.lfun-button--primary {
  color: #03141b;
  background: linear-gradient(135deg, #79edff 0%, var(--lfun-primary) 52%, #45b4ff 100%);
  box-shadow: 0 12px 30px rgba(var(--lfun-primary-rgb), 0.2), inset 0 1px rgba(255, 255, 255, 0.38);
}

.lfun-button--primary:hover,
.lfun-button--primary:focus-visible {
  box-shadow: 0 16px 38px rgba(var(--lfun-primary-rgb), 0.3), inset 0 1px rgba(255, 255, 255, 0.45);
}

.lfun-button--ghost {
  border-color: var(--lfun-border);
  background: rgba(255, 255, 255, 0.035);
}

.lfun-button--ghost:hover,
.lfun-button--ghost:focus-visible {
  border-color: rgba(var(--lfun-primary-rgb), 0.38);
  background: rgba(var(--lfun-primary-rgb), 0.07);
}

.lfun-button--danger {
  border-color: rgba(255, 92, 122, 0.25);
  color: #ff9bac;
  background: rgba(255, 92, 122, 0.08);
}

.lfun-button--small {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
}

.lfun-button--large {
  min-height: 52px;
  padding-inline: 22px;
}

.lfun-button--block {
  width: 100%;
}

.lfun-button--disabled {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}

.lfun-button:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

/* Hero */
.lfun-hero {
  position: relative;
  min-height: 530px;
  padding: clamp(36px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: 48px;
  overflow: hidden;
  border: 1px solid rgba(177, 197, 255, 0.17);
  border-radius: var(--lfun-radius-xl);
  background:
    linear-gradient(125deg, rgba(16, 24, 55, 0.98), rgba(10, 15, 39, 0.96) 58%, rgba(19, 12, 50, 0.97)),
    var(--lfun-surface);
  box-shadow: var(--lfun-shadow-md);
}

.lfun-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
}

.lfun-hero__copy,
.lfun-hero__visual {
  position: relative;
  z-index: 2;
}

.lfun-hero__eyebrow {
  width: fit-content;
  margin-bottom: 20px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--lfun-border);
  border-radius: 999px;
  color: var(--lfun-text-muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lfun-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lfun-success);
  box-shadow: 0 0 0 5px rgba(45, 226, 165, 0.1), 0 0 14px rgba(45, 226, 165, 0.6);
}

.lfun-hero__divider {
  color: rgba(255, 255, 255, 0.28);
}

.lfun-hero h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(44px, 6vw, 78px);
  background: linear-gradient(100deg, #fff 25%, #cfefff 66%, #ac9fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lfun-hero__copy > p {
  max-width: 700px;
  margin-bottom: 0;
  color: #a9b2cb;
  font-size: clamp(16px, 1.6vw, 19px);
}

.lfun-hero__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.lfun-hero-metrics {
  max-width: 700px;
  margin-top: 38px;
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--lfun-border);
}

.lfun-hero-metrics div {
  display: grid;
  gap: 3px;
}

.lfun-hero-metrics strong {
  color: #fff;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1;
}

.lfun-hero-metrics span {
  color: var(--lfun-text-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lfun-hero__visual {
  min-height: 410px;
  display: grid;
  place-items: center;
}

.lfun-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.lfun-hero__glow--one {
  width: 380px;
  height: 380px;
  inset-inline-end: -90px;
  top: -100px;
  background: radial-gradient(circle, rgba(var(--lfun-primary-rgb), 0.22), transparent 68%);
}

.lfun-hero__glow--two {
  width: 340px;
  height: 340px;
  inset-inline-end: 180px;
  bottom: -210px;
  background: radial-gradient(circle, rgba(var(--lfun-secondary-rgb), 0.2), transparent 65%);
}

.lfun-hero-trophy {
  position: relative;
  width: 245px;
  height: 245px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  color: var(--lfun-primary);
  background:
    radial-gradient(circle at 34% 25%, rgba(255, 255, 255, 0.16), transparent 20%),
    linear-gradient(145deg, rgba(var(--lfun-primary-rgb), 0.16), rgba(var(--lfun-secondary-rgb), 0.2));
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.018), 0 0 0 44px rgba(255, 255, 255, 0.012), 0 0 90px rgba(var(--lfun-primary-rgb), 0.22), inset 0 0 50px rgba(255, 255, 255, 0.04);
}

.lfun-hero-trophy .lfun-icon {
  width: 118px;
  height: 118px;
  filter: drop-shadow(0 0 24px rgba(var(--lfun-primary-rgb), 0.5));
}

.lfun-hero-trophy > span {
  position: absolute;
  bottom: 44px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #07111c;
  background: var(--lfun-primary);
  font-size: 11px;
  font-weight: 950;
}

.lfun-dice-orbit {
  position: absolute;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, rgba(32, 44, 81, 0.95), rgba(16, 22, 48, 0.92));
  box-shadow: var(--lfun-shadow-sm);
  transform: rotate(12deg);
}

.lfun-dice-orbit span {
  font-size: 24px;
  font-weight: 950;
}

.lfun-dice-orbit--one {
  inset-inline-start: 2%;
  top: 16%;
}

.lfun-dice-orbit--two {
  inset-inline-end: 2%;
  bottom: 19%;
  transform: rotate(-10deg);
}

.lfun-hero-rank-card {
  position: absolute;
  inset-inline-start: 0;
  bottom: 15px;
  min-width: 150px;
  padding: 15px 18px;
  display: grid;
  border: 1px solid var(--lfun-border-strong);
  border-radius: 17px;
  background: rgba(12, 18, 42, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: var(--lfun-shadow-sm);
}

.lfun-hero-rank-card small,
.lfun-hero-rank-card span {
  color: var(--lfun-text-muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lfun-hero-rank-card strong {
  margin-block: 2px;
  color: var(--lfun-gold);
  font-size: 37px;
  line-height: 1;
}

/* Podium */
.lfun-podium {
  position: relative;
  min-height: 485px;
  margin: 26px 0 28px;
  padding: 38px clamp(12px, 5vw, 70px) 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid var(--lfun-border);
  border-radius: var(--lfun-radius-xl);
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 200, 87, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(21, 30, 65, 0.8), rgba(10, 15, 35, 0.92));
}

.lfun-podium::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background:
    linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, 0.035) 50%, transparent 82%),
    radial-gradient(circle at 50% 100%, rgba(var(--lfun-primary-rgb), 0.12), transparent 42%);
}

.lfun-podium__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lfun-podium__backdrop span {
  position: absolute;
  width: 1px;
  height: 78%;
  top: -10%;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.11), transparent);
  transform: rotate(24deg);
}

.lfun-podium__backdrop span:nth-child(1) { left: 22%; }
.lfun-podium__backdrop span:nth-child(2) { left: 50%; transform: rotate(0); }
.lfun-podium__backdrop span:nth-child(3) { right: 22%; transform: rotate(-24deg); }

.lfun-podium__item {
  position: relative;
  z-index: 2;
  width: min(250px, 30%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--lfun-text);
  text-align: center;
  transition: transform var(--lfun-transition-normal);
}

.lfun-podium__item:hover,
.lfun-podium__item:focus-visible {
  transform: translateY(-5px);
}

.lfun-podium__item--gold {
  width: min(290px, 34%);
  order: 2;
}

.lfun-podium__item--silver { order: 1; }
.lfun-podium__item--bronze { order: 3; }

.lfun-podium__champion {
  margin-bottom: 8px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 200, 87, 0.35);
  border-radius: 999px;
  color: var(--lfun-gold);
  background: rgba(255, 200, 87, 0.08);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lfun-podium__champion .lfun-icon {
  width: 14px;
  height: 14px;
}

.lfun-podium__avatar-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.lfun-podium__avatar-wrap > img,
.lfun-podium__avatar-wrap > .lfun-demo-avatar {
  position: relative;
  z-index: 2;
  width: 96px !important;
  height: 96px !important;
  border: 4px solid var(--lfun-silver);
  border-radius: 50%;
  object-fit: cover;
  background: var(--lfun-surface);
  box-shadow: 0 0 0 7px rgba(184, 197, 214, 0.08), 0 18px 38px rgba(0, 0, 0, 0.34);
}

.lfun-podium__item--gold .lfun-podium__avatar-wrap > img,
.lfun-podium__item--gold .lfun-podium__avatar-wrap > .lfun-demo-avatar {
  width: 118px !important;
  height: 118px !important;
  border-color: var(--lfun-gold);
  box-shadow: 0 0 0 8px rgba(255, 200, 87, 0.08), 0 0 45px rgba(255, 200, 87, 0.19), 0 20px 44px rgba(0, 0, 0, 0.38);
}

.lfun-podium__item--bronze .lfun-podium__avatar-wrap > img,
.lfun-podium__item--bronze .lfun-podium__avatar-wrap > .lfun-demo-avatar {
  border-color: var(--lfun-bronze);
}

.lfun-podium__halo {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 87, 0.16), transparent 68%);
}

.lfun-podium__medal {
  position: absolute;
  z-index: 4;
  width: 38px;
  height: 38px;
  inset-inline-end: -7px;
  bottom: -5px;
  display: grid;
  place-items: center;
  border: 2px solid #131a31;
  border-radius: 50%;
  color: #0a1020;
  background: var(--lfun-silver);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.lfun-podium__medal .lfun-icon {
  width: 23px;
  height: 23px;
}

.lfun-podium__medal strong {
  position: absolute;
  font-size: 10px;
}

.lfun-podium__item--gold .lfun-podium__medal { background: var(--lfun-gold); }
.lfun-podium__item--bronze .lfun-podium__medal { background: var(--lfun-bronze); }

.lfun-podium__identity {
  position: relative;
  z-index: 3;
  margin-top: 16px;
  display: grid;
  gap: 3px;
}

.lfun-podium__identity strong {
  max-width: 220px;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lfun-podium__identity span {
  color: var(--lfun-text-muted);
  font-size: 11px;
}

.lfun-podium__meta {
  position: relative;
  z-index: 3;
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.lfun-podium__meta > span {
  min-width: 74px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 5px;
  border: 1px solid var(--lfun-border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.lfun-podium__meta .lfun-icon {
  width: 14px;
  height: 14px;
  color: var(--lfun-primary);
}

.lfun-podium__meta strong {
  color: #fff;
  font-size: 13px;
}

.lfun-podium__meta small {
  grid-column: 1 / -1;
  color: var(--lfun-text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lfun-podium__base {
  position: relative;
  width: 100%;
  height: 98px;
  margin-top: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 197, 214, 0.32);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  color: var(--lfun-silver);
  background: linear-gradient(180deg, rgba(184, 197, 214, 0.15), rgba(184, 197, 214, 0.045));
  overflow: hidden;
}

.lfun-podium__base::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(255, 255, 255, 0.07) 18px 19px);
}

.lfun-podium__base > span {
  position: relative;
  z-index: 2;
  font-size: 44px;
  font-weight: 950;
  line-height: 1;
}

.lfun-podium__item--gold .lfun-podium__base {
  height: 137px;
  border-color: rgba(255, 200, 87, 0.38);
  color: var(--lfun-gold);
  background: linear-gradient(180deg, rgba(255, 200, 87, 0.18), rgba(255, 200, 87, 0.045));
}

.lfun-podium__item--bronze .lfun-podium__base {
  height: 80px;
  border-color: rgba(217, 138, 85, 0.36);
  color: var(--lfun-bronze);
  background: linear-gradient(180deg, rgba(217, 138, 85, 0.17), rgba(217, 138, 85, 0.045));
}

.lfun-podium--empty {
  min-height: 230px;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--lfun-text-muted);
}

/* Leaderboard */
.lfun-leaderboard-toolbar {
  margin-bottom: 20px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--lfun-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.lfun-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.lfun-filter-tabs a,
.lfun-filter-tabs button {
  min-height: 38px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  color: var(--lfun-text-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.lfun-filter-tabs a:hover,
.lfun-filter-tabs a:focus-visible,
.lfun-filter-tabs a.is-active,
.lfun-filter-tabs button.is-active {
  color: #07131b;
  background: var(--lfun-primary);
}

.lfun-ranking-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lfun-text-muted);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.lfun-ranking-note .lfun-icon {
  color: var(--lfun-success);
}

.lfun-layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(285px, 330px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.lfun-quick-panel,
.lfun-table-card,
.lfun-panel-block,
.lfun-card,
.lfun-form-card,
.lfun-auth-card,
.lfun-cta-card,
.lfun-confirm-card {
  border: 1px solid var(--lfun-border);
  border-radius: var(--lfun-radius-lg);
  background: linear-gradient(145deg, rgba(18, 26, 52, 0.94), rgba(11, 16, 36, 0.96));
  box-shadow: var(--lfun-shadow-sm);
}

.lfun-quick-panel {
  position: sticky;
  top: 100px;
  padding: 24px;
}

.lfun-quick-panel h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.lfun-quick-panel p {
  font-size: 13px;
}

.lfun-quick-panel__head {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lfun-quick-panel__head img {
  width: 52px;
  height: 52px;
  border: 2px solid var(--lfun-primary);
  border-radius: 14px;
  object-fit: cover;
}

.lfun-quick-panel__illustration {
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--lfun-primary-rgb), 0.25);
  border-radius: 20px;
  color: var(--lfun-primary);
  background: rgba(var(--lfun-primary-rgb), 0.08);
}

.lfun-quick-panel__illustration .lfun-icon {
  width: 34px;
  height: 34px;
}

.lfun-your-rank {
  margin-bottom: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(var(--lfun-primary-rgb), 0.18);
  border-radius: 15px;
  background: rgba(var(--lfun-primary-rgb), 0.07);
}

.lfun-your-rank span {
  color: var(--lfun-text-muted);
  font-size: 11px;
  font-weight: 750;
}

.lfun-your-rank strong {
  color: var(--lfun-primary);
  font-size: 32px;
  line-height: 1;
}

.lfun-mini-stats {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.lfun-mini-stats div {
  padding: 10px 7px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--lfun-border);
  border-radius: 11px;
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
}

.lfun-mini-stats strong {
  color: #fff;
  font-size: 16px;
}

.lfun-mini-stats span {
  color: var(--lfun-text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lfun-pending-strip {
  margin-bottom: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 184, 77, 0.22);
  border-radius: 11px;
  color: #ffd28e;
  background: rgba(255, 184, 77, 0.07);
  font-size: 11px;
  font-weight: 750;
}

.lfun-feature-list {
  margin: 18px 0 22px;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.lfun-feature-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--lfun-text-muted);
  font-size: 12px;
  font-weight: 650;
}

.lfun-feature-list .lfun-icon {
  width: 16px;
  height: 16px;
  color: var(--lfun-success);
}

.lfun-quick-panel .lfun-button + .lfun-button {
  margin-top: 9px;
}

.lfun-table-card {
  overflow: hidden;
}

.lfun-table-wrap {
  width: 100%;
  overflow-x: auto;
  scrollbar-color: rgba(var(--lfun-primary-rgb), 0.35) transparent;
}

.lfun-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  color: var(--lfun-text);
  font-size: 13px;
}

.lfun-table th,
.lfun-table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(165, 181, 226, 0.1);
  text-align: start;
  vertical-align: middle;
}

.lfun-table th {
  color: var(--lfun-text-muted);
  background: rgba(255, 255, 255, 0.022);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lfun-table tbody tr {
  transition: background var(--lfun-transition-fast);
}

.lfun-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.lfun-table tbody tr:last-child td {
  border-bottom: 0;
}

.lfun-leaderboard-table tbody tr.is-top-rank {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 78%);
}

.lfun-leaderboard-table tbody tr.is-rank-1 {
  box-shadow: inset 3px 0 var(--lfun-gold);
}

.lfun-leaderboard-table tbody tr.is-rank-2 {
  box-shadow: inset 3px 0 var(--lfun-silver);
}

.lfun-leaderboard-table tbody tr.is-rank-3 {
  box-shadow: inset 3px 0 var(--lfun-bronze);
}

.lfun-leaderboard-table tbody tr.is-current-player {
  background: rgba(var(--lfun-primary-rgb), 0.07);
  box-shadow: inset 3px 0 var(--lfun-primary);
}

.lfun-rank-badge {
  min-width: 38px;
  height: 34px;
  padding-inline: 8px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--lfun-border);
  border-radius: 10px;
  color: var(--lfun-text-muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 900;
}

.is-rank-1 .lfun-rank-badge { color: #1e1603; border-color: var(--lfun-gold); background: var(--lfun-gold); }
.is-rank-2 .lfun-rank-badge { color: #111820; border-color: var(--lfun-silver); background: var(--lfun-silver); }
.is-rank-3 .lfun-rank-badge { color: #211207; border-color: var(--lfun-bronze); background: var(--lfun-bronze); }

.lfun-player-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 175px;
}

.lfun-player-link img,
.lfun-player-link .lfun-demo-avatar {
  width: 44px !important;
  height: 44px !important;
  border: 1px solid var(--lfun-border-strong);
  border-radius: 13px;
  object-fit: cover;
}

.lfun-player-link > span {
  display: grid;
  gap: 2px;
}

.lfun-player-link strong {
  color: #fff;
  font-size: 13px;
}

.lfun-player-link small {
  color: var(--lfun-text-muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.lfun-win-number {
  color: var(--lfun-primary);
  font-size: 16px;
}

.lfun-rate {
  display: grid;
  grid-template-columns: minmax(54px, 82px) auto;
  align-items: center;
  gap: 9px;
}

.lfun-rate > span {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.lfun-rate > span::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--lfun-rate);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lfun-secondary), var(--lfun-primary));
}

.lfun-rate strong {
  font-size: 11px;
}

.lfun-streak {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffba6b;
  font-weight: 800;
}

.lfun-streak .lfun-icon {
  width: 15px;
  height: 15px;
}

.lfun-rank-movement {
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 900;
}

.lfun-rank-movement .lfun-icon {
  width: 14px;
  height: 14px;
}

.lfun-rank-movement.is-up { color: var(--lfun-success); }
.lfun-rank-movement.is-down { color: var(--lfun-danger); }
.lfun-rank-movement.is-neutral { color: var(--lfun-text-muted); }

/* Generic cards, directories and lists */
.lfun-card,
.lfun-form-card,
.lfun-confirm-card {
  padding: 24px;
}

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

.lfun-player-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lfun-group-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.lfun-list-card {
  min-height: 70px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--lfun-border);
  border-radius: 14px;
  color: var(--lfun-text);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color var(--lfun-transition-fast), transform var(--lfun-transition-fast), background var(--lfun-transition-fast);
}

.lfun-list-card:hover,
.lfun-list-card:focus-visible {
  border-color: rgba(var(--lfun-primary-rgb), 0.3);
  background: rgba(var(--lfun-primary-rgb), 0.04);
  transform: translateY(-2px);
}

.lfun-list-card > div:first-child {
  display: grid;
  gap: 4px;
}

.lfun-list-card strong {
  color: #fff;
  font-size: 13px;
}

.lfun-list-card span,
.lfun-list-card small {
  color: var(--lfun-text-muted);
  font-size: 10px;
}

.lfun-result-row__teams {
  display: grid !important;
  grid-template-columns: minmax(80px, 1fr) auto auto auto minmax(80px, 1fr);
  align-items: center;
  gap: 8px !important;
}

.lfun-result-row__teams strong:last-child {
  text-align: end;
}

.lfun-result-row__teams > span {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #07131b;
  background: var(--lfun-primary);
  font-size: 12px;
  font-weight: 950;
}

.lfun-result-row__teams em {
  color: var(--lfun-text-muted);
  font-style: normal;
}

.lfun-result-row__meta {
  display: flex !important;
  align-items: flex-end;
  gap: 5px !important;
  text-align: end;
}

.lfun-player-card,
.lfun-group-card,
.lfun-tournament-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lfun-border);
  border-radius: 20px;
  color: var(--lfun-text);
  background: linear-gradient(145deg, rgba(20, 29, 58, 0.92), rgba(10, 15, 34, 0.96));
  box-shadow: var(--lfun-shadow-sm);
  transition: transform var(--lfun-transition-normal), border-color var(--lfun-transition-normal), box-shadow var(--lfun-transition-normal);
}

.lfun-player-card:hover,
.lfun-player-card:focus-visible,
.lfun-group-card:hover,
.lfun-group-card:focus-visible,
.lfun-tournament-card:hover,
.lfun-tournament-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(var(--lfun-primary-rgb), 0.3);
  box-shadow: var(--lfun-shadow-md), 0 0 36px rgba(var(--lfun-primary-rgb), 0.07);
}

.lfun-player-card {
  padding: 22px;
  display: grid;
  justify-items: center;
  gap: 15px;
  text-align: center;
}

.lfun-player-card::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 110px;
  top: -70px;
  border-radius: 50%;
  background: rgba(var(--lfun-primary-rgb), 0.12);
  filter: blur(20px);
}

.lfun-player-card > img,
.lfun-player-card > .lfun-demo-avatar {
  position: relative;
  z-index: 1;
  width: 86px !important;
  height: 86px !important;
  border: 3px solid rgba(var(--lfun-primary-rgb), 0.45);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.lfun-player-card h2 {
  margin: 0;
  font-size: 17px;
}

.lfun-player-card__identity {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.lfun-player-card__identity > span:not(.lfun-rank-mini),
.lfun-player-card > div > span {
  color: var(--lfun-text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lfun-rank-mini {
  padding: 4px 7px;
  border-radius: 7px;
  color: var(--lfun-primary);
  background: rgba(var(--lfun-primary-rgb), 0.08);
  font-size: 9px;
  font-weight: 900;
}

.lfun-player-card dl,
.lfun-group-card dl,
.lfun-tournament-card dl {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.lfun-player-card dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lfun-player-card dl div,
.lfun-group-card dl div,
.lfun-tournament-card dl div {
  padding: 9px 7px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--lfun-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.lfun-player-card dt,
.lfun-group-card dt,
.lfun-tournament-card dt {
  color: var(--lfun-text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lfun-player-card dd,
.lfun-group-card dd,
.lfun-tournament-card dd {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.lfun-group-card {
  display: grid;
}

.lfun-group-card__media {
  position: relative;
  min-height: 145px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(var(--lfun-primary-rgb), 0.2), transparent 38%),
    linear-gradient(135deg, #152044, #0d1330);
}

.lfun-group-card__media img {
  width: 100%;
  height: 145px;
  object-fit: cover;
}

.lfun-group-card__media .lfun-status {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
}

.lfun-group-placeholder,
.lfun-group-emblem {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid hsla(var(--lfun-demo-hue, 190), 85%, 70%, 0.35);
  border-radius: 22px;
  color: hsl(var(--lfun-demo-hue, 190), 85%, 72%);
  background: hsla(var(--lfun-demo-hue, 190), 75%, 55%, 0.12);
  box-shadow: 0 0 32px hsla(var(--lfun-demo-hue, 190), 80%, 55%, 0.14);
  font-size: 20px;
  font-weight: 950;
}

.lfun-group-card > div:last-child,
.lfun-group-card__body {
  padding: 18px;
}

.lfun-group-card h3,
.lfun-tournament-card h3 {
  margin-bottom: 8px;
}

.lfun-group-card p,
.lfun-tournament-card p {
  min-height: 42px;
  margin-bottom: 15px;
  font-size: 12px;
}

/* Tournament cards and pages */
.lfun-tournament-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lfun-tournament-card {
  display: flex;
  flex-direction: column;
}

.lfun-tournament-card__media {
  position: relative;
  min-height: 185px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, hsla(var(--lfun-demo-hue, 190), 85%, 55%, 0.22), transparent 42%),
    linear-gradient(135deg, #17214a, #0d1230);
}

.lfun-tournament-card__media img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  transition: transform 400ms ease;
}

.lfun-tournament-card:hover .lfun-tournament-card__media img {
  transform: scale(1.04);
}

.lfun-tournament-card__media .lfun-status {
  position: absolute;
  top: 13px;
  inset-inline-end: 13px;
}

.lfun-tournament-placeholder,
.lfun-tournament-mark {
  color: hsl(var(--lfun-demo-hue, 190), 85%, 72%);
}

.lfun-tournament-mark .lfun-icon {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 24px hsla(var(--lfun-demo-hue, 190), 80%, 55%, 0.35));
}

.lfun-tournament-card__body {
  padding: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.lfun-tournament-card__body .lfun-card-actions {
  margin-top: auto;
  padding-top: 17px;
}

.lfun-progress {
  height: 6px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.lfun-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lfun-secondary), var(--lfun-primary));
}

.lfun-tournament-hero,
.lfun-profile-hero,
.lfun-match-hero,
.lfun-dashboard-hero,
.lfun-dashboard-head {
  position: relative;
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  border: 1px solid var(--lfun-border);
  border-radius: var(--lfun-radius-xl);
  background:
    radial-gradient(circle at 92% 12%, rgba(var(--lfun-primary-rgb), 0.14), transparent 30%),
    linear-gradient(140deg, rgba(20, 29, 60, 0.96), rgba(9, 14, 33, 0.98));
  box-shadow: var(--lfun-shadow-md);
}

.lfun-tournament-hero {
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
}

.lfun-tournament-hero__media {
  min-height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--lfun-border);
  border-radius: 22px;
  color: var(--lfun-primary);
  background: linear-gradient(135deg, #17234e, #0d1330);
}

.lfun-tournament-hero__media img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.lfun-tournament-hero__media > span {
  font-size: 92px;
}

.lfun-tournament-hero__content h1 {
  margin-block: 15px 18px;
  font-size: clamp(38px, 5vw, 62px);
}

.lfun-inline-badges,
.lfun-card-actions,
.lfun-inline-actions,
.lfun-profile-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.lfun-tournament-meta {
  margin-top: 20px;
  display: grid;
  gap: 8px;
}

.lfun-tournament-meta span {
  color: var(--lfun-text-muted);
  font-size: 12px;
}

.lfun-tournament-meta strong {
  color: var(--lfun-text);
}

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

.lfun-fixture-card {
  padding: 15px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--lfun-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.lfun-fixture-card__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}

/* Status chips */
.lfun-status {
  width: fit-content;
  min-height: 25px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--lfun-border);
  border-radius: 999px;
  color: var(--lfun-text-muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lfun-status .lfun-icon {
  width: 12px;
  height: 12px;
}

.lfun-status--success {
  border-color: rgba(45, 226, 165, 0.25);
  color: #86f4ce;
  background: rgba(45, 226, 165, 0.08);
}

.lfun-status--warning {
  border-color: rgba(255, 184, 77, 0.28);
  color: #ffd397;
  background: rgba(255, 184, 77, 0.08);
}

.lfun-status--info {
  border-color: rgba(93, 184, 255, 0.28);
  color: #a8d8ff;
  background: rgba(93, 184, 255, 0.08);
}

.lfun-status--neutral {
  color: #c0c8dc;
}

/* Profile and dashboard */
.lfun-profile-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.lfun-profile-hero__identity,
.lfun-dashboard-hero__identity,
.lfun-dashboard-head {
  display: flex;
  align-items: center;
  gap: 22px;
}

.lfun-profile-hero__identity > img,
.lfun-profile-hero__identity > .lfun-demo-avatar,
.lfun-dashboard-hero__identity > img,
.lfun-dashboard-head > div:first-child img {
  width: 124px !important;
  height: 124px !important;
  border: 4px solid rgba(var(--lfun-primary-rgb), 0.55);
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 0 0 8px rgba(var(--lfun-primary-rgb), 0.06), 0 20px 42px rgba(0, 0, 0, 0.32);
}

.lfun-profile-hero__identity h1,
.lfun-dashboard-hero h1,
.lfun-dashboard-head h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4.5vw, 56px);
}

.lfun-profile-hero__identity p,
.lfun-dashboard-hero p,
.lfun-dashboard-head p {
  margin-bottom: 0;
}

.lfun-group-large-image {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(var(--lfun-primary-rgb), 0.45);
  border-radius: 30px;
  color: var(--lfun-primary);
  background: rgba(var(--lfun-primary-rgb), 0.09);
  font-size: 46px;
}

.lfun-group-large-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lfun-stat-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
}

.lfun-stat-card {
  min-height: 105px;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--lfun-border);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(18, 27, 54, 0.92), rgba(11, 16, 35, 0.94));
  box-shadow: var(--lfun-shadow-sm);
}

.lfun-stat-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--lfun-primary);
  background: rgba(var(--lfun-primary-rgb), 0.08);
}

.lfun-stat-card__icon .lfun-icon {
  width: 21px;
  height: 21px;
}

.lfun-stat-card > div,
.lfun-stat-card:not(:has(.lfun-stat-card__icon)) {
  display: grid;
  gap: 4px;
}

.lfun-stat-card span {
  color: var(--lfun-text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lfun-stat-card strong {
  color: #fff;
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1;
}

.lfun-profile-columns,
.lfun-two-column,
.lfun-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.lfun-home-grid > div,
.lfun-profile-columns > section {
  min-width: 0;
}

.lfun-panel-block {
  padding: 24px;
}

.lfun-dashboard-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.lfun-dashboard-hero__identity {
  grid-column: 1;
}

.lfun-dashboard-rank {
  min-width: 150px;
  padding: 18px 20px;
  display: grid;
  justify-items: center;
  border: 1px solid rgba(255, 200, 87, 0.23);
  border-radius: 18px;
  background: rgba(255, 200, 87, 0.06);
}

.lfun-dashboard-rank > span {
  color: var(--lfun-text-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lfun-dashboard-rank strong {
  margin-block: 3px 7px;
  color: var(--lfun-gold);
  font-size: 46px;
  line-height: 1;
}

.lfun-dashboard-rank small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--lfun-text-muted);
  font-size: 9px;
}

.lfun-dashboard-rank .lfun-icon {
  width: 12px;
  color: var(--lfun-success);
}

.lfun-dashboard-hero__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.lfun-player-code {
  margin-inline-end: 8px;
  padding: 4px 7px;
  border-radius: 7px;
  color: var(--lfun-primary);
  background: rgba(var(--lfun-primary-rgb), 0.08);
  font-size: 10px;
  font-weight: 850;
}

.lfun-dashboard-alert-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lfun-dashboard-alert {
  min-height: 88px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--lfun-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.lfun-dashboard-alert.has-items {
  border-color: rgba(var(--lfun-primary-rgb), 0.24);
  background: rgba(var(--lfun-primary-rgb), 0.055);
}

.lfun-dashboard-alert__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--lfun-primary);
  background: rgba(var(--lfun-primary-rgb), 0.08);
}

.lfun-dashboard-alert > div {
  display: grid;
  gap: 2px;
}

.lfun-dashboard-alert strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.lfun-dashboard-alert span:last-child {
  color: var(--lfun-text-muted);
  font-size: 10px;
  font-weight: 750;
}

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

.lfun-action-card {
  min-height: 115px;
  padding: 17px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--lfun-border);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(19, 28, 56, 0.9), rgba(10, 15, 34, 0.94));
  transition: transform var(--lfun-transition-fast), border-color var(--lfun-transition-fast), background var(--lfun-transition-fast);
}

.lfun-action-card:hover,
.lfun-action-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(var(--lfun-primary-rgb), 0.3);
  background: rgba(var(--lfun-primary-rgb), 0.055);
}

.lfun-action-card > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--lfun-primary);
  background: rgba(var(--lfun-primary-rgb), 0.08);
}

.lfun-action-card > div {
  display: grid;
  gap: 4px;
}

.lfun-action-card strong {
  color: #fff;
  font-size: 13px;
}

.lfun-action-card small {
  color: var(--lfun-text-muted);
  font-size: 9px;
}

.lfun-action-card > .lfun-icon {
  width: 16px;
  color: var(--lfun-text-muted);
}

/* Process and CTA */
.lfun-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lfun-process-card {
  position: relative;
  min-height: 240px;
  padding: 27px;
  overflow: hidden;
}

.lfun-process-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  inset-inline-end: -65px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(var(--lfun-primary-rgb), 0.08);
}

.lfun-step-number {
  position: absolute;
  top: 20px;
  inset-inline-end: 22px;
  color: rgba(255, 255, 255, 0.1);
  font-size: 48px;
  font-weight: 950;
  line-height: 1;
}

.lfun-process-card__icon {
  width: 54px;
  height: 54px;
  margin-bottom: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--lfun-primary-rgb), 0.2);
  border-radius: 16px;
  color: var(--lfun-primary);
  background: rgba(var(--lfun-primary-rgb), 0.07);
}

.lfun-process-card__icon .lfun-icon {
  width: 27px;
  height: 27px;
}

.lfun-process-card h3 {
  margin-bottom: 10px;
}

.lfun-process-card p {
  margin-bottom: 0;
  font-size: 13px;
}

.lfun-community-cta {
  padding: clamp(28px, 5vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  border: 1px solid rgba(var(--lfun-primary-rgb), 0.22);
  border-radius: var(--lfun-radius-xl);
  background:
    radial-gradient(circle at 90% 0%, rgba(var(--lfun-primary-rgb), 0.15), transparent 35%),
    linear-gradient(120deg, rgba(19, 29, 59, 0.96), rgba(13, 18, 42, 0.96));
  box-shadow: var(--lfun-shadow-md);
}

.lfun-community-cta h2 {
  margin-bottom: 10px;
}

.lfun-community-cta p {
  max-width: 690px;
  margin-bottom: 0;
}

/* Forms */
.lfun-form {
  display: grid;
  gap: 16px;
}

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

.lfun-form__full {
  grid-column: 1 / -1;
}

.lfun-form label,
.lfun-form fieldset {
  min-width: 0;
}

.lfun-form label {
  display: grid;
  gap: 7px;
  color: #dce2f4;
  font-size: 11px;
  font-weight: 800;
}

.lfun-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.lfun-form select,
.lfun-form textarea,
.lfun-search-form input,
.lfun-search-form select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--lfun-border);
  border-radius: 12px;
  color: var(--lfun-text);
  outline: none;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color var(--lfun-transition-fast), box-shadow var(--lfun-transition-fast), background var(--lfun-transition-fast);
}

.lfun-form textarea {
  min-height: 116px;
  resize: vertical;
}

.lfun-form input:focus,
.lfun-form select:focus,
.lfun-form textarea:focus,
.lfun-search-form input:focus,
.lfun-search-form select:focus {
  border-color: rgba(var(--lfun-primary-rgb), 0.55);
  background: rgba(var(--lfun-primary-rgb), 0.035);
  box-shadow: 0 0 0 3px rgba(var(--lfun-primary-rgb), 0.1);
}

.lfun-form input::placeholder,
.lfun-form textarea::placeholder,
.lfun-search-form input::placeholder {
  color: #68738f;
}

.lfun-form select option {
  color: #10172b;
}

.lfun-form small {
  color: var(--lfun-text-muted);
  font-size: 9px;
  font-weight: 600;
}

.lfun-form fieldset {
  margin: 0;
  padding: 15px;
  border: 1px solid var(--lfun-border);
  border-radius: 13px;
}

.lfun-form legend {
  padding-inline: 6px;
  color: var(--lfun-text-muted);
  font-size: 10px;
  font-weight: 800;
}

.lfun-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 9px !important;
  color: var(--lfun-text-muted) !important;
}

.lfun-check input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--lfun-primary);
}

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

.lfun-inline-form,
.lfun-inline-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.lfun-inline-form label {
  min-width: 190px;
  flex: 1;
}

.lfun-search-form {
  margin-bottom: 22px;
  padding: 12px;
  display: flex;
  gap: 9px;
  border: 1px solid var(--lfun-border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.lfun-search-form input {
  flex: 1;
}

.lfun-input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.lfun-input-shell > .lfun-icon {
  position: absolute;
  inset-inline-start: 13px;
  z-index: 1;
  width: 17px;
  color: var(--lfun-text-muted);
}

.lfun-input-shell > .lfun-icon + input {
  padding-inline-start: 40px !important;
}

.lfun-password-toggle {
  position: absolute;
  inset-inline-end: 7px;
  min-height: 34px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  color: var(--lfun-primary);
  background: rgba(var(--lfun-primary-rgb), 0.07);
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.lfun-form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--lfun-text-muted);
  font-size: 11px;
}

.lfun-form-row-between > a,
.lfun-auth-links a,
.lfun-resend-box a {
  color: var(--lfun-primary);
  font-weight: 750;
}

.lfun-mode-tabs {
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  border: 1px solid var(--lfun-border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.lfun-mode-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  color: var(--lfun-text-muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.lfun-mode-tabs button.is-active {
  color: #07131b;
  background: var(--lfun-primary);
}

.lfun-match-panel {
  padding: 19px;
  border: 1px solid var(--lfun-border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.02);
}

.lfun-match-panel.is-hidden {
  display: none;
}

.lfun-score-rows {
  display: grid;
  gap: 10px;
}

.lfun-score-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(100px, 1fr);
  gap: 10px;
}

.lfun-team-side {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.lfun-team-side label:nth-of-type(3) {
  grid-column: 1 / -1;
}

.lfun-calculation-preview {
  padding: 17px;
  border: 1px solid rgba(var(--lfun-primary-rgb), 0.2);
  border-radius: 13px;
  background: rgba(var(--lfun-primary-rgb), 0.055);
}

.lfun-calculation-preview strong {
  color: #fff;
}

.lfun-calculation-preview p {
  margin: 7px 0 0;
  color: var(--lfun-text-muted);
  white-space: pre-line;
}

.lfun-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}

/* Auth */
.lfun-auth-shell {
  min-height: min(760px, calc(100vh - 180px));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.75fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--lfun-border);
  border-radius: var(--lfun-radius-xl);
  background: linear-gradient(145deg, rgba(17, 25, 52, 0.96), rgba(9, 14, 32, 0.98));
  box-shadow: var(--lfun-shadow-md);
}

.lfun-auth-showcase {
  position: relative;
  padding: clamp(34px, 6vw, 70px);
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 85%, rgba(var(--lfun-primary-rgb), 0.16), transparent 35%),
    radial-gradient(circle at 82% 15%, rgba(var(--lfun-secondary-rgb), 0.2), transparent 32%),
    #0e1531;
}

.lfun-auth-showcase::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  inset-inline-end: -130px;
  bottom: -130px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.018), 0 0 0 72px rgba(255, 255, 255, 0.012);
}

.lfun-auth-showcase h1 {
  max-width: 660px;
  margin-bottom: 18px;
}

.lfun-auth-showcase > p {
  max-width: 610px;
  font-size: 16px;
}

.lfun-auth-showcase__visual {
  min-height: 210px;
  margin-block: 40px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.lfun-auth-showcase__visual > div {
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--lfun-primary-rgb), 0.28);
  border-radius: 50%;
  color: var(--lfun-primary);
  background: rgba(var(--lfun-primary-rgb), 0.08);
  box-shadow: 0 0 55px rgba(var(--lfun-primary-rgb), 0.16);
}

.lfun-auth-showcase__visual .lfun-icon {
  width: 88px;
  height: 88px;
}

.lfun-auth-showcase__visual > span {
  color: var(--lfun-gold);
  font-size: 64px;
  font-weight: 950;
}

.lfun-auth-card {
  align-self: center;
  margin: 28px;
  padding: clamp(27px, 4vw, 42px);
  box-shadow: none;
}

.lfun-auth-card h1,
.lfun-auth-card h2 {
  margin-bottom: 9px;
  font-size: clamp(28px, 3vw, 38px);
}

.lfun-auth-card > p {
  margin-bottom: 25px;
}

.lfun-auth-links {
  margin: 20px 0 0;
  text-align: center;
  font-size: 11px;
}

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

.lfun-auth-benefit-grid > div {
  min-height: 105px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--lfun-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.lfun-auth-benefit-grid .lfun-icon {
  width: 25px;
  height: 25px;
  color: var(--lfun-primary);
}

.lfun-auth-benefit-grid strong {
  font-size: 12px;
}

.lfun-resend-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--lfun-border);
  color: var(--lfun-text-muted);
  font-size: 11px;
}

.lfun-resend-box summary {
  cursor: pointer;
  color: var(--lfun-primary);
  font-weight: 750;
}

.lfun-resend-box form {
  margin-top: 13px;
}

.lfun-auth-success {
  max-width: 580px;
  margin: 80px auto;
  padding: 45px;
  text-align: center;
}

.lfun-auth-success__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--lfun-success);
  background: rgba(45, 226, 165, 0.09);
}

/* Match page */
.lfun-match-hero {
  display: block;
}

.lfun-match-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
}

.lfun-versus-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lfun-versus-card {
  padding: 28px;
  border: 1px solid var(--lfun-border);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(20, 29, 59, 0.94), rgba(10, 15, 34, 0.96));
  text-align: center;
}

.lfun-versus-card h2 {
  margin: 6px 0;
  font-size: 24px;
}

.lfun-score-number {
  margin: 17px 0 4px;
  display: block;
  color: var(--lfun-primary);
  font-size: 68px;
  font-weight: 950;
  line-height: 1;
}

.lfun-side-players {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.lfun-side-players a,
.lfun-side-players span {
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--lfun-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
}

.lfun-side-players img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.lfun-code-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
}

/* Notices and empty states */
.lfun-notice {
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid var(--lfun-border);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.lfun-notice--success {
  border-color: rgba(45, 226, 165, 0.25);
  color: #b0f7df;
  background: rgba(45, 226, 165, 0.07);
}

.lfun-notice--error {
  border-color: rgba(255, 92, 122, 0.25);
  color: #ffbac5;
  background: rgba(255, 92, 122, 0.07);
}

.lfun-empty {
  min-height: 120px;
  padding: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  border: 1px dashed var(--lfun-border-strong);
  border-radius: 16px;
  color: var(--lfun-text-muted);
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
}

.lfun-empty--large {
  min-height: 340px;
}

.lfun-empty h1,
.lfun-empty h2,
.lfun-empty h3,
.lfun-empty p {
  margin-bottom: 0;
}

.lfun-empty__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: var(--lfun-primary);
  background: rgba(var(--lfun-primary-rgb), 0.08);
}

.lfun-empty__icon .lfun-icon {
  width: 29px;
  height: 29px;
}

/* Demo avatars */
.lfun-demo-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  color: hsl(var(--lfun-demo-hue), 90%, 86%);
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.22), transparent 20%),
    linear-gradient(145deg, hsla(var(--lfun-demo-hue), 70%, 55%, 0.32), hsla(calc(var(--lfun-demo-hue) + 55), 75%, 45%, 0.2));
}

.lfun-demo-avatar > span {
  font-size: 0.34em;
  font-weight: 950;
  letter-spacing: 0.04em;
}

/* Notifications */
.lfun-notification-card {
  padding: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid var(--lfun-border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.lfun-notification-card.is-unread {
  border-color: rgba(var(--lfun-primary-rgb), 0.27);
  background: rgba(var(--lfun-primary-rgb), 0.055);
}

.lfun-notification-card h2 {
  margin: 0 0 4px;
  font-size: 15px;
}

.lfun-notification-card p {
  margin: 0;
  font-size: 11px;
}

/* Footer and mobile nav */
.lfun-footer {
  border-top: 1px solid var(--lfun-border);
  color: var(--lfun-text-muted);
  background: rgba(5, 8, 21, 0.72);
}

.lfun-footer__grid {
  min-height: 170px;
  padding-block: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  align-items: center;
  gap: 34px;
}

.lfun-brand--footer {
  width: fit-content;
}

.lfun-footer__grid > div > p {
  max-width: 500px;
  margin: 15px 0 0;
  font-size: 12px;
}

.lfun-footer nav {
  display: grid;
  gap: 8px;
}

.lfun-footer nav a {
  font-size: 11px;
  font-weight: 750;
}

.lfun-footer__copyright {
  margin: 0;
  font-size: 10px;
}

.lfun-mobile-nav {
  display: none;
}

.lfun-toast-region {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 200;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.lfun-toast {
  min-width: 230px;
  max-width: min(380px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(var(--lfun-primary-rgb), 0.28);
  border-radius: 12px;
  color: #fff;
  background: rgba(14, 22, 45, 0.97);
  box-shadow: var(--lfun-shadow-md);
  font-size: 12px;
  font-weight: 750;
  animation: lfun-toast-in 180ms ease both;
}

@keyframes lfun-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Focus */
.lfun-app :focus-visible {
  outline: 2px solid var(--lfun-primary);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 1180px) {
  .lfun-header__inner { gap: 14px; }
  .lfun-nav a { padding-inline: 9px; }
  .lfun-nav a .lfun-icon { display: none; }
  .lfun-player-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lfun-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lfun-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lfun-dashboard-alert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lfun-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .lfun-nav-toggle { display: grid; place-items: center; margin-inline-start: auto; }
  .lfun-nav {
    position: absolute;
    top: calc(100% + 1px);
    inset-inline: 20px;
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--lfun-border-strong);
    border-radius: 16px;
    background: rgba(10, 16, 37, 0.98);
    box-shadow: var(--lfun-shadow-md);
  }
  .lfun-nav.is-open { display: flex; }
  .lfun-nav a { justify-content: flex-start; }
  .lfun-nav a .lfun-icon { display: block; }
  .lfun-nav a.is-active::after { display: none; }
  .lfun-account-nav { margin-inline-start: 0; }
  .lfun-hero { grid-template-columns: minmax(0, 1fr) 290px; }
  .lfun-hero__visual { min-height: 330px; }
  .lfun-hero-trophy { width: 200px; height: 200px; }
  .lfun-hero-trophy .lfun-icon { width: 92px; height: 92px; }
  .lfun-layout-with-sidebar { grid-template-columns: 1fr; }
  .lfun-quick-panel { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 20px; }
  .lfun-quick-panel > .lfun-kicker,
  .lfun-quick-panel > h3,
  .lfun-quick-panel > p,
  .lfun-quick-panel > .lfun-feature-list { grid-column: 1; }
  .lfun-quick-panel > .lfun-button,
  .lfun-quick-panel > .lfun-pending-strip { grid-column: 2; min-width: 210px; }
  .lfun-quick-panel__illustration { grid-row: 1 / 4; grid-column: 2; justify-self: center; }
  .lfun-tournament-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lfun-podium { min-height: 455px; padding-inline: 18px; }
  .lfun-auth-shell { grid-template-columns: minmax(0, 0.8fr) minmax(380px, 1fr); }
  .lfun-auth-showcase { padding: 40px; }
  .lfun-tournament-hero { grid-template-columns: 1fr; }
  .lfun-tournament-hero__media { min-height: 270px; }
  .lfun-tournament-hero__media img { height: 270px; }
}

@media (max-width: 782px) {
  .admin-bar .lfun-header.is-sticky { top: 46px; }
  .lfun-container { width: min(var(--lfun-container-width), calc(100% - 24px)); }
  .lfun-header__inner { min-height: 65px; }
  .lfun-brand__text small { display: none; }
  .lfun-header-search,
  .lfun-login-link,
  .lfun-account-nav > .lfun-button,
  .lfun-user-chip > span,
  .lfun-user-chip > .lfun-icon { display: none; }
  .lfun-user-chip { width: 42px; height: 42px; padding: 3px; border-radius: 13px; }
  .lfun-user-chip img { width: 34px !important; height: 34px !important; }
  .lfun-main { padding-block: 22px 112px; }
  .lfun-preview-ribbon .lfun-container { padding-block: 7px; flex-direction: column; gap: 5px; }
  .lfun-hero { min-height: auto; padding: 34px 24px; display: block; }
  .lfun-hero h1 { font-size: clamp(40px, 12vw, 60px); }
  .lfun-hero__visual { display: none; }
  .lfun-hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .lfun-section { margin-top: 44px; }
  .lfun-section__heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .lfun-community-cta { align-items: flex-start; flex-direction: column; }
  .lfun-podium { min-height: 515px; padding-top: 32px; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .lfun-podium__item { width: calc(50% - 7px); order: 2 !important; }
  .lfun-podium__item--gold { width: 100%; order: 1 !important; }
  .lfun-podium__item--gold .lfun-podium__base { height: 82px; }
  .lfun-podium__item--silver .lfun-podium__base,
  .lfun-podium__item--bronze .lfun-podium__base { height: 58px; }
  .lfun-podium__item--gold .lfun-podium__avatar-wrap > img,
  .lfun-podium__item--gold .lfun-podium__avatar-wrap > .lfun-demo-avatar { width: 98px !important; height: 98px !important; }
  .lfun-podium__avatar-wrap > img,
  .lfun-podium__avatar-wrap > .lfun-demo-avatar { width: 76px !important; height: 76px !important; }
  .lfun-podium__identity { margin-top: 11px; }
  .lfun-podium__meta { display: none; }
  .lfun-podium__champion { margin-bottom: 5px; }
  .lfun-leaderboard-toolbar { align-items: flex-start; flex-direction: column; }
  .lfun-filter-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .lfun-filter-tabs a { white-space: nowrap; }
  .lfun-ranking-note { align-self: flex-end; }
  .lfun-quick-panel { display: block; }
  .lfun-quick-panel__illustration { display: none; }
  .lfun-quick-panel > .lfun-button,
  .lfun-quick-panel > .lfun-pending-strip { min-width: 0; }
  .lfun-table-wrap--leaderboard { overflow: visible; }
  .lfun-leaderboard-table { display: block; width: 100%; max-width: 100%; table-layout: fixed; }
  .lfun-leaderboard-table tbody,
  .lfun-leaderboard-table tr,
  .lfun-leaderboard-table td { width: 100%; min-width: 0; }
  .lfun-leaderboard-table thead { display: none; }
  .lfun-leaderboard-table tbody { padding: 10px; display: grid; gap: 10px; }
  .lfun-leaderboard-table tbody tr { position: relative; padding: 14px; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 9px 13px; border: 1px solid var(--lfun-border); border-radius: 15px; background: rgba(255, 255, 255, 0.025); overflow: hidden; }
  .lfun-leaderboard-table tbody tr.is-top-rank { background: linear-gradient(130deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); }
  .lfun-leaderboard-table td { display: flex; align-items: center; padding: 0; border: 0; }
  .lfun-leaderboard-table td:nth-child(1) { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .lfun-leaderboard-table td:nth-child(2) { grid-column: 2; grid-row: 1 / 3; min-width: 0; }
  .lfun-leaderboard-table td:nth-child(2) .lfun-player-link { min-width: 0; }
  .lfun-leaderboard-table td:nth-child(2) .lfun-player-link > span:last-child { min-width: 0; }
  .lfun-leaderboard-table td:nth-child(2) strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lfun-leaderboard-table td:nth-child(6) { grid-column: 3; grid-row: 1 / 3; align-self: center; justify-self: end; width: auto; }
  .lfun-leaderboard-table td:nth-child(3),
  .lfun-leaderboard-table td:nth-child(4),
  .lfun-leaderboard-table td:nth-child(5),
  .lfun-leaderboard-table td:nth-child(7),
  .lfun-leaderboard-table td:nth-child(8) { display: flex; align-items: center; gap: 4px; width: auto; color: var(--lfun-text-muted); font-size: 10px; }
  .lfun-leaderboard-table td:nth-child(3) { grid-column: 1; grid-row: 3; }
  .lfun-leaderboard-table td:nth-child(4) { grid-column: 2; grid-row: 3; }
  .lfun-leaderboard-table td:nth-child(5) { grid-column: 3; grid-row: 3; justify-self: end; }
  .lfun-leaderboard-table td:nth-child(7) { grid-column: 1 / 3; grid-row: 4; }
  .lfun-leaderboard-table td:nth-child(8) { grid-column: 3; grid-row: 4; justify-self: end; }
  .lfun-leaderboard-table td:nth-child(3)::before,
  .lfun-leaderboard-table td:nth-child(4)::before,
  .lfun-leaderboard-table td:nth-child(5)::before,
  .lfun-leaderboard-table td:nth-child(7)::before { content: attr(data-label) ":"; color: #66718e; font-size: 8px; text-transform: uppercase; }
  .lfun-rate { grid-template-columns: auto; }
  .lfun-rate > span { display: none; }
  .lfun-card-grid,
  .lfun-player-grid,
  .lfun-group-grid,
  .lfun-tournament-grid,
  .lfun-profile-columns,
  .lfun-two-column,
  .lfun-home-grid,
  .lfun-step-grid { grid-template-columns: 1fr; }
  .lfun-player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lfun-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lfun-stat-card { min-height: 88px; }
  .lfun-action-grid,
  .lfun-dashboard-alert-grid { grid-template-columns: 1fr; }
  .lfun-profile-hero,
  .lfun-dashboard-hero { grid-template-columns: 1fr; }
  .lfun-profile-hero__identity,
  .lfun-dashboard-hero__identity,
  .lfun-dashboard-head { align-items: flex-start; }
  .lfun-profile-hero__actions { margin-top: 16px; }
  .lfun-dashboard-rank { justify-self: stretch; grid-template-columns: 1fr auto; align-items: center; justify-items: start; }
  .lfun-dashboard-rank strong { grid-row: 1 / 3; grid-column: 2; }
  .lfun-form--grid { grid-template-columns: 1fr; }
  .lfun-form__full { grid-column: auto; }
  .lfun-team-side { grid-template-columns: 1fr; }
  .lfun-team-side label:nth-of-type(3) { grid-column: auto; }
  .lfun-auth-shell { min-height: auto; grid-template-columns: 1fr; }
  .lfun-auth-showcase { display: none; }
  .lfun-auth-card { margin: 0; padding: 28px 22px; border: 0; border-radius: 0; background: transparent; }
  .lfun-versus-grid { grid-template-columns: 1fr; }
  .lfun-code-form { grid-template-columns: 1fr; }
  .lfun-list-card,
  .lfun-notification-card { align-items: flex-start; flex-direction: column; }
  .lfun-result-row__teams { width: 100%; }
  .lfun-result-row__meta { width: 100%; align-items: center; justify-content: space-between; flex-direction: row !important; }
  .lfun-inline-form { align-items: stretch; flex-direction: column; }
  .lfun-search-form { flex-direction: column; }
  .lfun-footer { padding-bottom: 82px; }
  .lfun-footer__grid { grid-template-columns: 1fr; gap: 20px; }
  .lfun-mobile-nav {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    inset: auto 0 0;
    z-index: 120;
    padding: 7px max(7px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left));
    border-top: 1px solid var(--lfun-border);
    background: rgba(7, 10, 27, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.24);
  }
  .lfun-mobile-nav a {
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--lfun-text-muted);
    font-size: 9px;
    font-weight: 800;
  }
  .lfun-mobile-nav a .lfun-icon { width: 19px; height: 19px; }
  .lfun-mobile-nav__primary { color: var(--lfun-primary) !important; }
  .lfun-mobile-nav__primary .lfun-icon {
    width: 45px !important;
    height: 45px !important;
    margin-top: -24px;
    padding: 12px;
    border-radius: 15px;
    color: #06131a;
    background: linear-gradient(135deg, #7ceeff, var(--lfun-primary));
    box-shadow: 0 0 30px rgba(var(--lfun-primary-rgb), 0.36);
  }
  .lfun-toast-region { bottom: 88px; }
}

@media (max-width: 520px) {
  .lfun-container { width: min(var(--lfun-container-width), calc(100% - 18px)); }
  .lfun-brand__text strong { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lfun-header__inner { gap: 7px; }
  .lfun-nav-toggle { margin-inline-start: auto; }
  .lfun-notification-link { display: none; }
  .lfun-hero { padding: 30px 20px; border-radius: 23px; }
  .lfun-hero h1 { font-size: 39px; }
  .lfun-hero__eyebrow { flex-wrap: wrap; }
  .lfun-hero__actions { align-items: stretch; flex-direction: column; }
  .lfun-hero__actions .lfun-button { width: 100%; }
  .lfun-hero-metrics { gap: 12px; }
  .lfun-hero-metrics strong { font-size: 22px; }
  .lfun-podium { min-height: 485px; }
  .lfun-podium__identity strong { max-width: 140px; font-size: 14px; }
  .lfun-podium__identity span { font-size: 9px; }
  .lfun-podium__base > span { font-size: 34px; }
  .lfun-player-grid { grid-template-columns: 1fr; }
  .lfun-player-card { grid-template-columns: auto 1fr; justify-items: start; text-align: start; }
  .lfun-player-card > img,
  .lfun-player-card > .lfun-demo-avatar { grid-row: 1 / 3; width: 74px !important; height: 74px !important; }
  .lfun-player-card__identity { justify-items: start; }
  .lfun-player-card dl { grid-column: 1 / -1; }
  .lfun-stat-grid { gap: 9px; }
  .lfun-stat-card { padding: 13px; gap: 9px; }
  .lfun-stat-card__icon { width: 34px; height: 34px; }
  .lfun-stat-card strong { font-size: 22px; }
  .lfun-profile-hero,
  .lfun-dashboard-hero,
  .lfun-dashboard-head { padding: 22px; }
  .lfun-profile-hero__identity,
  .lfun-dashboard-hero__identity,
  .lfun-dashboard-head { display: block; }
  .lfun-profile-hero__identity > img,
  .lfun-dashboard-hero__identity > img,
  .lfun-dashboard-head > div:first-child img,
  .lfun-group-large-image { width: 92px !important; height: 92px !important; margin-bottom: 15px; border-radius: 23px; }
  .lfun-profile-hero__actions,
  .lfun-dashboard-hero__actions,
  .lfun-community-cta .lfun-card-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .lfun-profile-hero__actions .lfun-button,
  .lfun-dashboard-hero__actions .lfun-button,
  .lfun-community-cta .lfun-button { width: 100%; }
  .lfun-score-row { grid-template-columns: 1fr; }
  .lfun-result-row__teams { grid-template-columns: 1fr auto auto auto 1fr; }
  .lfun-result-row__teams strong { font-size: 10px; }
  .lfun-form-row-between { align-items: flex-start; flex-direction: column; }
  .lfun-card,
  .lfun-form-card,
  .lfun-confirm-card,
  .lfun-panel-block { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .lfun-app *,
  .lfun-app *::before,
  .lfun-app *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.lfun-effects-reduced .lfun-app *,
.lfun-effects-minimal .lfun-app * {
  animation: none !important;
}

.lfun-effects-minimal .lfun-app .lfun-hero__glow,
.lfun-effects-minimal .lfun-app .lfun-podium__halo,
.lfun-effects-minimal .lfun-app .lfun-dice-orbit {
  display: none;
}

/* Local privacy-friendly avatar fallback. */
.lfun-app .lfun-avatar--initials,
.lfun-admin .lfun-avatar--initials {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 22%, hsl(var(--lfun-avatar-hue) 92% 72% / .42), transparent 36%),
        linear-gradient(145deg, hsl(var(--lfun-avatar-hue) 78% 45%), hsl(calc(var(--lfun-avatar-hue) + 45) 72% 27%));
    color: #fff;
    border: 1px solid rgb(255 255 255 / .2);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 8px 22px rgb(0 0 0 / .24);
    font-weight: 850;
    font-size: clamp(.72rem, 34%, 1.4rem);
    line-height: 1;
    text-transform: uppercase;
    user-select: none;
}

/* Installed showcase records are always explicit and visually separate. */
.lfun-preview-ribbon--showcase {
  border-bottom-color: rgba(255, 184, 77, 0.28);
  background: linear-gradient(90deg, rgba(255, 184, 77, 0.08), rgba(124, 92, 255, 0.08));
}

.lfun-demo-badge--record {
  color: var(--lfun-warning);
  border-color: rgba(255, 184, 77, 0.34);
  background: rgba(255, 184, 77, 0.09);
  letter-spacing: 0.075em;
}

.lfun-tournament-card__media > .lfun-demo-badge--record,
.lfun-group-card__media > .lfun-demo-badge--record {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 12px;
  z-index: 2;
}

.lfun-group-card__media,
.lfun-tournament-card__media {
  position: relative;
}

.lfun-player-card .lfun-demo-badge--record,
.lfun-profile-hero .lfun-demo-badge--record,
.lfun-group-hero .lfun-demo-badge--record,
.lfun-tournament-hero .lfun-demo-badge--record,
.lfun-match-hero .lfun-demo-badge--record,
.lfun-podium__identity .lfun-demo-badge--record {
  margin-bottom: 8px;
}

.lfun-podium__identity .lfun-demo-badge--record {
  margin-inline: auto;
  padding: 4px 8px;
  font-size: 8px;
}

.is-demo-record {
  outline: 1px solid rgba(255, 184, 77, 0.2);
  outline-offset: -1px;
}

/* Mobile OTP and account recovery. */
.lfun-app .lfun-auth-shell--recovery .lfun-auth-showcase__visual > div,
.lfun-app .lfun-phone-card .lfun-section__heading {
  position: relative;
}

.lfun-app .lfun-otp-form {
  gap: 18px;
}

.lfun-app .lfun-otp-input {
  width: min(100%, 360px);
  min-height: 62px;
  padding-inline: 20px;
  border-color: rgba(var(--lfun-primary-rgb), 0.42);
  background: rgba(var(--lfun-primary-rgb), 0.06);
  color: var(--lfun-text);
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.28em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.lfun-app .lfun-otp-input:focus {
  border-color: var(--lfun-primary);
  box-shadow: 0 0 0 4px rgba(var(--lfun-primary-rgb), 0.12), 0 0 28px rgba(var(--lfun-primary-rgb), 0.12);
}

.lfun-app .lfun-otp-resend {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--lfun-border);
  color: var(--lfun-text-muted);
}

.lfun-app .lfun-phone-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--lfun-primary-rgb), 0.12), transparent 34%),
    var(--lfun-surface);
}

.lfun-app .lfun-phone-card .lfun-status {
  flex: 0 0 auto;
}

.lfun-app .lfun-auth-shell--recovery .lfun-auth-showcase__visual span {
  letter-spacing: 0.12em;
}

@media (max-width: 640px) {
  .lfun-app .lfun-otp-input {
    width: 100%;
    font-size: 28px;
  }

  .lfun-app .lfun-otp-resend {
    align-items: stretch;
  }

  .lfun-app .lfun-otp-resend .lfun-button {
    width: 100%;
  }

  .lfun-app .lfun-phone-card .lfun-section__heading {
    align-items: flex-start;
  }
}
