

:root {
  --color-brand: #06b6d4;
  --color-brand-dark: #0e7490;
  --color-gold: #eab308;
  --bg-deep: #020617;
}

html, body { -webkit-tap-highlight-color: transparent; }

[x-cloak] { display: none !important; }

.scrollbar-none { scrollbar-width: none; -ms-overflow-style: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }

.sponsor-marquee {
  overflow: hidden;
  position: relative;
  
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
.sponsor-marquee__track {
  display: flex;
  width: max-content;
  animation: sponsor-scroll 28s linear infinite;
}
.sponsor-marquee:hover .sponsor-marquee__track { animation-play-state: paused; }
.sponsor-marquee__group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem; 
  flex-shrink: 0;
}
.sponsor-marquee__item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity .15s ease;
}
.sponsor-marquee__item:hover { opacity: 1; }
.sponsor-marquee__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0 0.625rem;
  background: rgba(255,255,255,0.95);
  border-radius: 0.375rem;
}
.sponsor-marquee__pill img {
  display: block;
  max-height: 1.5rem;
  width: auto;
  object-fit: contain;
}
.sponsor-marquee__text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
}

@keyframes sponsor-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .sponsor-marquee__track { animation: none; }
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  transition: transform .18s ease;
}
.brand-lockup img {
  display: block;
  
  filter: invert(1) hue-rotate(180deg);
}
.brand-lockup:hover {
  transform: translateY(-1px);
}
.brand-lockup:hover img {
  filter: invert(1) hue-rotate(180deg) drop-shadow(0 0 10px rgba(34,211,238,0.45));
}

.brand-lockup--light {
  background: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(15,23,42,0.08);
}
.brand-lockup--light img {
  mix-blend-mode: normal;
  filter: none;
}

.hero-section {
  position: relative;
  isolation: isolate;            
}
.hero-glows {
  position: absolute;
  inset: 0;
  overflow: hidden;              
  pointer-events: none;
  z-index: -1;
}

.hero-glows::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
}

.hero-glow--cyan {
  width:  clamp(420px, 75vw, 780px);
  height: clamp(420px, 75vw, 780px);
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18) 0%, rgba(34, 211, 238, 0.05) 45%, transparent 70%);
}

.hero-2026 {
  text-shadow:
    0 0 30px rgba(34, 211, 238, 0.5),
    0 0 60px rgba(34, 211, 238, 0.3);
  letter-spacing: -0.04em;
}

.brand-hero-logo {
  filter:
    invert(1) hue-rotate(180deg)
    drop-shadow(0 0 18px rgba(34, 211, 238, 0.25))
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: filter .3s ease, transform .3s ease;
}
.brand-hero-logo:hover {
  filter:
    invert(1) hue-rotate(180deg)
    drop-shadow(0 0 24px rgba(34, 211, 238, 0.45))
    drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
  transform: translateY(-1px);
}

.flag-img {
  display: inline-block;
  width: 1.875rem;       
  height: 1.375rem;      
  object-fit: cover;
  border-radius: 3px;
  background: #1e293b;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.flag-img--sm { width: 1.5rem; height: 1.125rem; }
.flag-img--md { width: 2.25rem; height: 1.625rem; }
.flag-img--lg { width: 3rem; height: 2.25rem; }

.team-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 0.75rem;
  transition: all .15s ease;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}
.team-card:active { transform: scale(0.98); }
.team-card[data-pos] {
  position: relative;
}
.team-card[data-pos="1"] { border-color: rgba(6,182,212,0.7); background: rgba(6,182,212,0.10); }
.team-card[data-pos="2"] { border-color: rgba(34,197,94,0.7); background: rgba(34,197,94,0.10); }
.team-card[data-pos="3"] { border-color: rgba(234,179,8,0.7); background: rgba(234,179,8,0.10); }
.team-card[data-pos="4"] { border-color: rgba(244,63,94,0.5); background: rgba(244,63,94,0.07); opacity: 0.7; }

.pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem; height: 1.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
}
.team-card[data-pos="1"] .pos-badge { background: var(--color-brand); color: #07252b; }
.team-card[data-pos="2"] .pos-badge { background: #22c55e; color: #052e16; }
.team-card[data-pos="3"] .pos-badge { background: var(--color-gold); color: #422006; }

.bracket-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .bracket-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .bracket-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
@media (min-width: 1440px) {
  .bracket-cards-grid { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
}

.bracket-card {
  background: linear-gradient(180deg, rgba(15,23,42,0.85), rgba(15,23,42,0.6));
  border: 1px solid rgba(51,65,85,0.7);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.bracket-card.is-decided {
  border-color: rgba(6,182,212,0.45);
  box-shadow: 0 0 0 1px rgba(6,182,212,0.12), 0 8px 24px -12px rgba(6,182,212,0.35);
}
.bracket-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid rgba(51,65,85,0.5);
  background: rgba(2,6,23,0.4);
}
.bracket-card__num {
  font-size: 0.625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(203,213,225,0.8);
}
.bracket-card__round {
  font-size: 0.625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(34,211,238,0.85);
}
.bracket-card__teams {
  display: flex; flex-direction: column;
  padding: 0.5rem;
}
.bracket-card__vs {
  align-self: center;
  margin: 0.25rem 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(100,116,139,0.7);
}

.team-pick {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  background: rgba(30,41,59,0.55);
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
  min-height: 56px;
}
@media (min-width: 640px) {
  .team-pick {
    gap: 0.875rem;
    padding: 0.75rem 0.875rem;
  }
}
.team-pick:hover:not(:disabled) {
  background: rgba(30,41,59,0.9);
  border-color: rgba(71,85,105,0.7);
  transform: translateY(-1px);
}
.team-pick:active:not(:disabled) { transform: scale(0.985); }
.team-pick:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.team-pick.is-winner {
  background: linear-gradient(90deg, rgba(6,182,212,0.22), rgba(6,182,212,0.08));
  border-color: rgba(6,182,212,0.6);
  box-shadow: inset 0 0 0 1px rgba(6,182,212,0.2);
}
.team-pick.is-winner .team-pick__name { color: #67e8f9; }
.team-pick.is-loser {
  opacity: 0.55;
  background: rgba(15,23,42,0.4);
}
.team-pick.is-loser .team-pick__name { text-decoration: line-through; text-decoration-color: rgba(148,163,184,0.4); }

.team-pick__flag-wrap {
  flex-shrink: 0;
  width: 2.5rem; height: 1.75rem;
  border-radius: 0.375rem;
  overflow: hidden;
  background: rgba(15,23,42,0.7);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
@media (min-width: 640px) {
  .team-pick__flag-wrap { width: 3.25rem; height: 2.25rem; }
}
.team-pick__flag {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.team-pick__flag--placeholder {
  background: rgba(30,41,59,0.6);
}
.team-pick__body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: 0.125rem;
}
.team-pick__slot {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148,163,184,0.75);
  font-weight: 600;
}
.team-pick__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(241,245,249,0.95);
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .team-pick__name { font-size: 0.9375rem; }
}
.team-pick__check {
  position: absolute;
  right: 0.625rem; top: 50%;
  transform: translateY(-50%);
  color: #22d3ee;
  width: 1.25rem; height: 1.25rem;
  display: grid; place-items: center;
}

@media (min-width: 768px) {
  .bracket-wide-wrap {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
  }
}

.bracket-board {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1rem;
  align-items: stretch;
  
}
.bracket-board__col {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0; 
}
.bracket-board__col--finals {
  flex: 0 0 clamp(160px, 14vw, 220px);
}
.bracket-board__title {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(148,163,184,0.8);
  font-weight: 700;
  margin-bottom: 0.625rem;
  display: flex; align-items: center; gap: 0.375rem;
}
.bracket-board__title--gold { color: rgba(250,204,21,0.95); }
.bracket-board__matches {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  justify-content: space-between;
}
.bracket-board__matches--spread {
  justify-content: space-around;
  gap: 1rem;
}
.bracket-board__match {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(51,65,85,0.6);
  border-radius: 0.625rem;
  overflow: hidden;
  transition: border-color .2s ease;
}
.bracket-board__match.is-decided { border-color: rgba(6,182,212,0.4); }
.bracket-board__match--final {
  border-color: rgba(250,204,21,0.4);
}
.bracket-board__finals {
  display: flex; flex-direction: column; gap: 1.5rem;
  height: 100%;
  justify-content: center;
}

.team-mini {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4375rem 0.5rem;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background .12s ease;
}
.team-mini:not(:last-child) { border-bottom: 1px solid rgba(51,65,85,0.4); }
.team-mini:hover:not(:disabled) { background: rgba(30,41,59,0.6); }
.team-mini:disabled { opacity: 0.5; cursor: not-allowed; }
.team-mini.is-winner {
  background: linear-gradient(90deg, rgba(6,182,212,0.18), rgba(6,182,212,0.04));
}
.team-mini.is-winner .team-mini__name { color: #67e8f9; font-weight: 600; }
.team-mini.is-loser { opacity: 0.55; }
.team-mini.is-loser .team-mini__name { text-decoration: line-through; text-decoration-color: rgba(148,163,184,0.4); }

.team-mini__flag {
  flex-shrink: 0;
  width: 1.5rem; height: 1.125rem;
  object-fit: cover;
  border-radius: 2px;
  background: rgba(30,41,59,0.6);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
.team-mini__flag--placeholder { background: rgba(30,41,59,0.6); }
.team-mini__body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: 0;
  line-height: 1.15;
}
.team-mini__slot {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(148,163,184,0.65);
  font-weight: 600;
}
.team-mini__name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(241,245,249,0.95);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sortable-ghost { opacity: 0.4; }
.sortable-chosen { transform: scale(1.02); }
.sortable-drag { cursor: grabbing; }

.spinner {
  display: inline-block;
  width: 1rem; height: 1rem;
  border: 2px solid rgba(148,163,184,0.3);
  border-top-color: #fff;
  border-radius: 9999px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ball-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  position: relative;
  vertical-align: middle;
  
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><defs><radialGradient id='g' cx='35%25' cy='30%25' r='75%25'><stop offset='0%25' stop-color='%23ffffff'/><stop offset='100%25' stop-color='%23e2e8f0'/></radialGradient></defs><circle cx='32' cy='32' r='30' fill='url(%23g)' stroke='%230f172a' stroke-width='1.5'/><polygon points='32,15 41,21 38,32 26,32 23,21' fill='%230f172a'/><polygon points='14,32 22,26 26,32 22,40' fill='%230f172a'/><polygon points='50,32 42,26 38,32 42,40' fill='%230f172a'/><polygon points='32,49 41,43 38,32 26,32 23,43' fill='%230f172a' opacity='0.85'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: ball-spin 0.9s linear infinite, ball-bounce 0.9s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}
.ball-spinner--sm { width: 16px; height: 16px; }
.ball-spinner--lg { width: 48px; height: 48px; }

@keyframes ball-spin {
  to { transform: rotate(360deg); }
}
@keyframes ball-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-2px) rotate(180deg); }
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.page-loader.is-visible {
  display: grid;
}
.page-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: page-loader-pop .25s cubic-bezier(.4,0,.2,1);
}
@keyframes page-loader-pop {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.page-loader__text {
  font-size: 14px;
  color: #cbd5e1;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .ball-spinner {
    animation: ball-spin 1.6s linear infinite;
  }
}

.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }

@media (max-width: 767px) {
  body.has-mobile-nav { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}
.safe-bottom-plus { padding-bottom: calc(env(safe-area-inset-bottom) + 0.5rem); }

:root {
  --nav-mobile-h: 60px;
  --sticky-bottom: calc(var(--nav-mobile-h) + env(safe-area-inset-bottom) + 8px);
}
@media (min-width: 768px) {
  :root { --sticky-bottom: 1rem; }
}
.sticky-bottom-bar {
  position: sticky;
  bottom: var(--sticky-bottom);
  z-index: 20;
}

@media (max-width: 640px) {
  button:not(.no-tap-min):not([class*="text-xs"]):not([class*="text-[10px]"]):not([class*="text-[11px]"]),
  a[role="button"] {
    min-height: 40px;
  }
}

.tab-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem; height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 9999px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  color: rgba(203,213,225,0.9);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all .15s ease;
  flex-shrink: 0;
  position: relative;
}
.tab-pill.is-active {
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  color: #fff;
  border-color: var(--color-brand);
}
.tab-pill.is-complete::after {
  content: '';
  position: absolute;
  top: -2px; right: -2px;
  width: 0.75rem; height: 0.75rem;
  background: #22c55e;
  border-radius: 9999px;
  border: 2px solid #0f172a;
}

.progress {
  height: 6px;
  background: rgba(51, 65, 85, 0.5);
  border-radius: 9999px;
  overflow: hidden;
}
.progress > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--color-brand), #22c55e);
  transition: width .3s ease;
}

.btn-duo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 14px 20px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.875rem;
  border: none;
  cursor: pointer;
  user-select: none;
  transition: transform .08s ease, box-shadow .08s ease, background-color .12s ease, opacity .12s ease;
  min-height: 52px;
  position: relative;
}
.btn-duo--primary {
  background: #22d3ee;
  color: #0f172a;
  box-shadow: 0 4px 0 0 #0e7490;
}
.btn-duo--primary:hover:not(:disabled) { background: #67e8f9; }
.btn-duo--primary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 #0e7490;
}
.btn-duo--primary:disabled {
  background: #334155;
  color: #64748b;
  box-shadow: 0 4px 0 0 #1e293b;
  cursor: not-allowed;
}
.btn-duo--ghost {
  background: transparent;
  color: #cbd5e1;
  border: 2px solid #334155;
  box-shadow: 0 4px 0 0 #1e293b;
}
.btn-duo--ghost:hover:not(:disabled) {
  background: rgba(30, 41, 59, 0.5);
  border-color: #475569;
}
.btn-duo--ghost:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 #1e293b;
}

.input-duo {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px; 
  font-weight: 500;
  color: #f1f5f9;
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 0.875rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  min-height: 52px;
}
.input-duo::placeholder { color: #475569; }
.input-duo:hover:not(:focus) { border-color: #475569; }
.input-duo:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15);
}
.input-duo.is-valid {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}
.input-duo.is-invalid {
  border-color: #f43f5e;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.input-duo-wrap {
  position: relative;
}
.input-duo-wrap .input-duo {
  padding-right: 48px;
}
.input-duo-wrap__action {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  background: transparent;
  color: #64748b;
  border: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.input-duo-wrap__action:hover { background: rgba(51, 65, 85, 0.5); color: #cbd5e1; }

.label-duo {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.hint-duo {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  color: #64748b;
  min-height: 1.125rem; 
}
.hint-duo--ok { color: #22c55e; }
.hint-duo--err { color: #fb7185; }

.tab-duo-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1e293b;
  border-radius: 0.875rem;
}
.tab-duo {
  padding: 10px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #94a3b8;
  border-radius: 0.625rem;
  transition: background-color .15s, color .15s;
  text-decoration: none;
}
.tab-duo.is-active {
  background: #22d3ee;
  color: #0f172a;
  box-shadow: 0 2px 6px -2px rgba(34, 211, 238, 0.5);
}
.tab-duo:hover:not(.is-active) {
  background: rgba(30, 41, 59, 0.5);
  color: #cbd5e1;
}

@keyframes mascot-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.auth-hero-logo {
  animation: mascot-bounce 2.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .auth-hero-logo { animation: none; }
}

.lesson-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh; 
}
.lesson-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 12px 16px;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.35);
}
.lesson-header__exit {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: #94a3b8;
  border-radius: 0.625rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
  flex-shrink: 0;
}
.lesson-header__exit:hover { background: rgba(30, 41, 59, 0.7); color: #fff; }
.lesson-header__progress {
  flex: 1;
  height: 14px;
  background: rgba(51, 65, 85, 0.55);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}
.lesson-header__progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22d3ee, #22c55e);
  border-radius: 9999px;
  transition: width .35s cubic-bezier(.4,0,.2,1);
  position: relative;
}

.lesson-header__progress-fill::after {
  content: "";
  position: absolute;
  top: 2px; left: 4px; right: 4px;
  height: 3px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 9999px;
}
.lesson-header__counter {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #cbd5e1;
  min-width: 3rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lesson-main {
  flex: 1;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 20px 16px 140px; 
}

.lesson-sponsors {
  position: sticky;
  top: 56px; 
  z-index: 19;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.25);
}
.lesson-sponsors__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 10px 12px;
  max-width: 36rem;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.lesson-sponsors__inner::-webkit-scrollbar { display: none; }

.lesson-sponsors__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  opacity: 0.82;
  transition: opacity .15s ease;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.lesson-sponsors__item:hover { opacity: 1; }
.lesson-sponsors__item img {
  max-height: 22px;
  width: auto;
  display: block;
  object-fit: contain;
}
.lesson-sponsors__text {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .lesson-sponsors__inner { padding: 8px 12px; gap: 10px; }
  .lesson-sponsors__item { height: 30px; padding: 0 10px; }
  .lesson-sponsors__item img { max-height: 18px; }
}
.lesson-footer {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 20;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(51, 65, 85, 0.4);
}
.lesson-footer__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.footer-btn-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mascot {
  display: inline-block;
  height: 64px;
  width: auto;
  filter:
    invert(1) hue-rotate(180deg)
    drop-shadow(0 0 14px rgba(34, 211, 238, 0.3));
  transition: transform .2s ease;
}

.celebrate-card .mascot {
  height: 64px !important;
}
@media (min-width: 640px) {
  .celebrate-card .mascot {
    height: 88px !important;
  }
}
.mascot--bounce { animation: mascot-bounce 2.4s ease-in-out infinite; }
.mascot--happy  { animation: mascot-happy 0.6s ease-out; }
.mascot--celebrate { animation: mascot-celebrate 1.4s ease-out infinite; }
@keyframes mascot-happy {
  0% { transform: scale(1) rotate(0); }
  35% { transform: scale(1.12) rotate(-4deg); }
  70% { transform: scale(1.06) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes mascot-celebrate {
  0%, 100% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(-8px) rotate(-6deg); }
  40% { transform: translateY(-12px) rotate(5deg); }
  60% { transform: translateY(-6px) rotate(-3deg); }
  80% { transform: translateY(-2px) rotate(2deg); }
}

.lesson-question {
  text-align: center;
  margin-bottom: 1.5rem;
}
.lesson-question__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #22d3ee;
}
.lesson-question__title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.5rem;
  line-height: 1.15;
}
@media (min-width: 640px) {
  .lesson-question__title { font-size: 2.125rem; }
}
.lesson-question__hint {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.team-xl {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 14px 16px;
  background: #0f172a;
  border: 2px solid #1e293b;
  border-bottom-width: 4px;          
  border-radius: 0.875rem;
  text-align: left;
  cursor: pointer;
  user-select: none;
  transition: transform .08s ease, border-color .15s, background-color .15s;
  min-height: 64px;
  position: relative;
}
.team-xl:hover:not(:disabled) {
  border-color: #334155;
  background: #131c2e;
}
.team-xl:active:not(:disabled) { transform: translateY(1px); border-bottom-width: 3px; }
.team-xl:disabled { opacity: 0.4; cursor: not-allowed; }
.team-xl__flag {
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  background: #1e293b;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.team-xl__name {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-xl__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 9999px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.team-xl.is-pos-1 {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.10);
}
.team-xl.is-pos-1 .team-xl__badge {
  background: #22d3ee;
  color: #0a2540;
}
.team-xl.is-pos-2 {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.10);
}
.team-xl.is-pos-2 .team-xl__badge {
  background: #22c55e;
  color: #052e16;
}

@keyframes team-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.team-xl.is-just-picked { animation: team-pop .25s ease-out; }

.lesson-slide-enter {
  animation: lesson-slide-in .28s cubic-bezier(.4,0,.2,1) both;
}
@keyframes lesson-slide-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.celebrate-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(circle at center, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.98));
  backdrop-filter: blur(6px);
  animation: celebrate-fade .35s ease-out;
}
@keyframes celebrate-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.celebrate-card {
  text-align: center;
  max-width: 28rem;
  width: 100%;
  padding: 1.25rem 1rem 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid #22d3ee;
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px -20px rgba(34, 211, 238, 0.5);
  margin: auto;  
}
@media (min-width: 640px) {
  .celebrate-card { padding: 2rem 1.5rem 1.5rem; border-radius: 1.5rem; }
}
.celebrate-card__emoji {
  font-size: 3rem;
  display: block;
  margin: 0 auto 0.25rem;
  line-height: 1;
}
@media (min-width: 640px) {
  .celebrate-card__emoji { font-size: 4rem; margin-bottom: 0.5rem; }
}
.celebrate-card__title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}
@media (min-width: 640px) {
  .celebrate-card__title { font-size: 1.875rem; }
}
.celebrate-card__subtitle {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.4;
}
@media (min-width: 640px) {
  .celebrate-card__subtitle { font-size: 0.9375rem; }
}
.celebrate-card__stats {
  margin: 0.875rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 640px) {
  .celebrate-card__stats { margin: 1.25rem 0; gap: 1.5rem; }
}
.celebrate-card__stat { text-align: center; }
.celebrate-card__stat-value {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #22d3ee;
  line-height: 1;
}
@media (min-width: 640px) {
  .celebrate-card__stat-value { font-size: 2rem; }
}
.celebrate-card__stat-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.25rem;
}
@media (min-width: 640px) {
  .celebrate-card__stat-label { font-size: 0.6875rem; letter-spacing: 0.12em; }
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.confetti span {
  position: absolute;
  top: -20px;
  width: 8px; height: 12px;
  border-radius: 2px;
  opacity: 0;
  animation: confetti-fall 2.5s ease-out forwards;
}
@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

.auth-bubble {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid #334155;
  border-radius: 1rem;
  color: #e2e8f0;
  font-size: 0.9375rem;
  font-weight: 500;
  max-width: 28rem;
}
.auth-bubble::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 24px;
  width: 16px;
  height: 16px;
  background: rgba(15, 23, 42, 0.8);
  border-top: 2px solid #334155;
  border-left: 2px solid #334155;
  transform: rotate(45deg);
}
