:root {
  --bg-a: #061426;
  --bg-b: #0e2a44;
  --panel: rgba(7, 29, 49, 0.92);
  --line: rgba(127, 197, 236, 0.3);
  --ink: #e4f5ff;
  --muted: #8caec4;
  --yes: #32e1a8;
  --no: #ff6a7a;
  --gold: #ffc857;
  --app-fixed-header-offset: 56px;
  --app-fixed-header-offset-dashboard: 56px;
}

* { box-sizing: border-box; }

html {
  margin: 0;
  min-height: 100%;
  background-image:
    radial-gradient(circle at 10% 5%, #13486c 0%, transparent 45%),
    linear-gradient(150deg, var(--bg-a), var(--bg-b));
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  background-color: var(--bg-a);
}

html:has(body.landing-mode) {
  background-image:
    linear-gradient(180deg, rgba(2, 8, 16, 0.45) 0%, rgba(3, 12, 22, 0.7) 100%),
    url("./assets/landing-bg.jpg"),
    url("assets/landing-bg.jpg"),
    url("/mobile-v2-prototype/assets/landing-bg.jpg");
  background-position: center center, center center, center center, center center;
  background-size: cover, cover, cover, cover;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-color: #020812;
}

html:has(body.landing-mascot-mode) {
  background-image:
    radial-gradient(circle at 10% 5%, #13486c 0%, transparent 45%),
    linear-gradient(150deg, var(--bg-a), var(--bg-b));
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  background-color: var(--bg-a);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  background-image:
    radial-gradient(circle at 10% 5%, #13486c 0%, transparent 45%),
    linear-gradient(150deg, var(--bg-a), var(--bg-b));
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  background-color: var(--bg-a);
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-family: "Sora", sans-serif; }

.app-shell {
  width: min(100%, 442px);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(var(--native-safe-top, 0px) + var(--app-fixed-header-offset)) 12px 12px;
  overflow-x: clip;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 442px);
  z-index: 110;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: calc(var(--native-safe-top, 0px) + 8px) 12px 8px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(127, 197, 236, 0.24);
  background:
    linear-gradient(180deg, rgba(10, 44, 68, 0.9), rgba(6, 30, 49, 0.86));
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
  margin: 0;
}

.topbar-left {
  min-width: 0;
}

.topbar-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
}

.topbar-title-row h1 {
  min-width: 0;
  text-align: left;
}

body.dashboard-mode .app-shell {
  padding-top: calc(var(--native-safe-top, 0px) + var(--app-fixed-header-offset-dashboard));
}

body.screen-leaderboard .app-shell,
body.screen-leaderboard-team .app-shell,
body.screen-leaderboard-profile .app-shell,
body.screen-player-stats .app-shell,
body.screen-favorite-team .app-shell,
body.screen-settings .app-shell {
  padding-top: calc(var(--native-safe-top, 0px) + var(--app-fixed-header-offset) + 32px);
}

body.screen-player-stats .app-shell {
  padding-top: calc(var(--native-safe-top, 0px) + var(--app-fixed-header-offset) + 14px);
}

body.screen-selection .app-shell {
  padding-top: calc(var(--native-safe-top, 0px) + var(--app-fixed-header-offset) + 14px);
  background: linear-gradient(160deg, rgba(7, 29, 49, 0.97), rgba(11, 41, 70, 0.96));
}

body.screen-arrange .app-shell {
  padding-top: calc(var(--native-safe-top, 0px) + var(--app-fixed-header-offset) + 26px);
}

body.screen-selection {
  background-image:
    radial-gradient(circle at 10% 5%, #13486c 0%, transparent 45%),
    linear-gradient(150deg, var(--bg-a), var(--bg-b));
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  background-color: #061426;
}

body.dashboard-mode .topbar-title-row {
  min-height: 0;
}

body.dashboard-mode .topbar-title-row h1 {
  display: none;
}

.topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.top-signout {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  line-height: 1;
  min-height: 34px;
  white-space: nowrap;
}

.top-help {
  min-width: 34px;
  width: 34px;
  height: 34px;
  margin-right: 0;
  border-radius: 999px;
  padding: 0;
  font-family: "Sora", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#week-pill {
  order: 1;
}

#top-help {
  order: 2;
}

#top-signout {
  order: 3;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 80;
  width: min(100%, 442px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 10px 14px;
  background: rgba(5, 20, 33, 0.97);
  border-top: 1px solid rgba(122, 185, 219, 0.28);
  backdrop-filter: blur(8px);
}

.bottom-nav-btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: rgba(210, 236, 253, 0.86);
  min-height: 54px;
  padding: 8px 4px;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  transition: color 180ms ease, text-shadow 180ms ease, filter 180ms ease;
}

.bottom-nav-btn.active {
  background: transparent;
  color: #6defff;
  box-shadow: none;
}

.bottom-nav-btn.active .bottom-nav-icon,
.bottom-nav-btn.active .bottom-nav-label {
  text-shadow:
    0 0 8px rgba(109, 239, 255, 0.85),
    0 0 16px rgba(109, 239, 255, 0.55);
  filter: drop-shadow(0 0 6px rgba(109, 239, 255, 0.6));
}

.bottom-nav-icon {
  font-size: 16px;
  line-height: 1;
}

.bottom-nav-label {
  line-height: 1.1;
}

.bottom-nav-alert-badge {
  position: absolute;
  top: 4px;
  right: 12px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ef495f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 4px;
  pointer-events: none;
}

body.auth-mode .app-shell {
  padding-top: calc(var(--native-safe-top, 0px) + var(--app-fixed-header-offset));
}

body.screen-auth .app-shell {
  padding-top: calc(var(--native-safe-top, 0px) + var(--app-fixed-header-offset) + 45px);
}

body.auth-mode .topbar {
  margin: 0;
}

body.landing-mode .app-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: 100lvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body.landing-mode {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: 100lvh;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 16, 0.45) 0%, rgba(3, 12, 22, 0.7) 100%),
    url("./assets/landing-bg.jpg"),
    url("assets/landing-bg.jpg"),
    url("/mobile-v2-prototype/assets/landing-bg.jpg");
  background-position: center center, center center, center center, center center;
  background-size: cover, cover, cover, cover;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed;
  background-color: #020812;
}

body.landing-mascot-mode {
  background-image:
    radial-gradient(circle at 10% 5%, #13486c 0%, transparent 45%),
    linear-gradient(150deg, var(--bg-a), var(--bg-b));
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  background-color: var(--bg-a);
}

body.landing-mode .topbar {
  display: none;
}

body.landing-mode .bottom-nav {
  display: none;
}

body.landing-mode .app-body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: 100lvh;
  overflow: hidden;
}

.landing-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: 100lvh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
}

body.landing-mode .landing-screen {
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  height: 100lvh;
}

.landing-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 16, 0.45) 0%, rgba(3, 12, 22, 0.7) 100%),
    url("./assets/landing-bg.jpg"),
    url("assets/landing-bg.jpg"),
    url("/mobile-v2-prototype/assets/landing-bg.jpg");
  background-position: center center, center center, center center, center center;
  background-size: cover, cover, cover, cover;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}

body.landing-mode .landing-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  height: 100lvh;
}

.landing-content {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  padding: 24px 20px 30px;
  text-align: center;
  animation: landing-content-rise 1s ease both;
}

.landing-screen-mascot {
  display: grid;
  place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px calc(env(safe-area-inset-bottom, 0px) + 14px);
}

.landing-mascot-shell {
  width: min(94vw, 540px);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(8px, 1.6svh, 12px);
}

.landing-mascot-frame {
  position: relative;
  width: auto;
  max-width: 100%;
  height: min(62svh, calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 230px));
  aspect-ratio: 3 / 4;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.landing-mascot-base-image {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity 130ms linear;
}

.landing-mascot-base-image.hidden {
  opacity: 0;
}

.landing-mascot-base-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.landing-mascot-flip-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  perspective: 1000px;
  opacity: 0;
  transition: opacity 130ms linear;
}

.landing-mascot-flip-stage.active {
  opacity: 1;
}

.landing-mascot-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.landing-mascot-flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.landing-mascot-flip-face.front {
  background-image: var(--landing-from-image);
}

.landing-mascot-flip-face.back {
  transform: rotateY(180deg);
  background-image: var(--landing-to-image);
}

.landing-mascot-logo-wrap {
  width: min(84%, 420px);
  opacity: 1;
}

.landing-mascot-logo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
  filter: drop-shadow(0 8px 24px rgba(4, 13, 23, 0.45));
}

.landing-mascot-cta-wrap {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 460ms ease, transform 460ms ease;
}

.landing-mascot-cta-wrap.show {
  opacity: 1;
  transform: translateY(0);
}

.landing-screen-mascot .landing-cta {
  margin-top: 0;
  opacity: 1;
  animation: none;
  min-width: 210px;
}

.landing-kicker {
  margin: 0 0 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(220, 242, 255, 0.8);
}

.landing-headline {
  margin: 0;
  color: #f3fbff;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  line-height: 1.04;
}

.landing-line {
  display: block;
  margin-top: 4px;
  font-size: clamp(8px, 7vw, var(--landing-line-size, 56px));
  text-align: var(--landing-line-align, center);
  text-wrap: balance;
  opacity: 0;
  transform: translateY(12px);
  animation: landing-fade-in 0.9s ease var(--landing-line-delay, 0ms) forwards;
}

.landing-line:first-child {
  margin-top: 0;
}

.landing-cta {
  margin-top: 26px;
  border: 2px solid rgba(86, 231, 191, 0.95);
  border-radius: 16px;
  background: linear-gradient(130deg, rgba(22, 160, 125, 0.92), rgba(37, 117, 169, 0.92));
  color: #f7fffd;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 5vw, 28px);
  padding: 16px 26px;
  min-width: 210px;
  box-shadow: 0 0 0 0 rgba(86, 231, 191, 0.75);
  opacity: 0;
  animation:
    landing-cta-enter 0.5s ease var(--landing-cta-delay, 2900ms) forwards,
    landing-cta-pulse 2.2s ease-in-out var(--landing-cta-pulse-delay, 3500ms) infinite;
}

@keyframes landing-fade-in {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes landing-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(86, 231, 191, 0.8); filter: brightness(1); }
  50% { box-shadow: 0 0 0 10px rgba(86, 231, 191, 0); filter: brightness(1.14); }
}

@keyframes landing-content-rise {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes landing-cta-enter {
  0% { opacity: 0; transform: translateY(10px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes landing-whole-image-flip {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(180deg); }
}

.kicker {
  margin: 0;
  height: 30px;
  display: flex;
  align-items: center;
}

.kicker-logo {
  display: block;
  height: 30px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
}

.top-dashboard-close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 6px;
  width: 58px;
  height: 26px;
  border: 1px solid rgba(118, 245, 255, 0.82);
  border-radius: 999px;
  background: rgba(26, 86, 120, 0.44);
  color: rgba(208, 248, 255, 0.98);
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  margin: 0;
  cursor: pointer;
  z-index: 4;
  box-shadow:
    0 0 0 1px rgba(118, 245, 255, 0.14) inset,
    0 0 10px rgba(90, 236, 255, 0.28);
  text-shadow:
    0 0 4px rgba(89, 236, 255, 0.35);
  transition: transform 130ms ease, filter 130ms ease;
}

.top-dashboard-close:active {
  transform: scale(0.97);
  filter: brightness(1.1);
}

.top-dashboard-close.selection-chevron {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(118, 246, 255, 0.72);
  border-radius: 9px;
  background: rgba(20, 74, 108, 0.34);
  color: rgba(118, 246, 255, 0.98);
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  padding: 0;
  box-shadow:
    0 0 0 1px rgba(118, 246, 255, 0.14) inset,
    0 0 10px rgba(89, 236, 255, 0.24);
  text-shadow:
    0 0 4px rgba(89, 236, 255, 0.8),
    0 0 10px rgba(89, 236, 255, 0.34);
}

body.screen-arrange .top-dashboard-close.selection-chevron {
  top: calc(100% + 18px);
}

body.screen-selection .top-dashboard-close.selection-chevron {
  top: calc(100% + 18px);
}

h1 { font-size: 24px; }

.icon-back-btn {
  width: 34px;
  height: 34px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
}

.icon-back-btn img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.top-back {
  width: 34px;
  height: 34px;
}

.top-back-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-back.top-back-cyan {
  border: 1px solid rgba(118, 246, 255, 0.72);
  border-radius: 9px;
  background: rgba(20, 74, 108, 0.34);
  color: rgba(118, 246, 255, 0.98);
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  box-shadow:
    0 0 0 1px rgba(118, 246, 255, 0.14) inset,
    0 0 10px rgba(89, 236, 255, 0.24);
  text-shadow:
    0 0 4px rgba(89, 236, 255, 0.8),
    0 0 10px rgba(89, 236, 255, 0.34);
}

.top-back.top-back-cyan:active {
  filter: brightness(1.12);
  transform: scale(0.96);
}

.week-pill,
.status-chip,
.pill {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 5px 10px;
  font-weight: 700;
  background: rgba(54, 215, 255, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-body { display: grid; gap: 10px; }

.loading-mascot-screen {
  min-height: calc(100dvh - (var(--native-safe-top, 0px) + var(--app-fixed-header-offset)) - 88px);
  display: grid;
  place-items: center;
  padding: 0;
}

.loading-mascot-image {
  width: min(72vw, 300px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 10px;
  min-width: 0;
}

.row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.spread { justify-content: space-between; }
.spread > * { min-width: 0; }

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

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

.dashboard-player-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-top-grid {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: stretch;
}

.profile-box,
.leaderboard-box {
  min-height: 184px;
}

body.dashboard-mode .app-body {
  gap: 10px;
}

body.dashboard-mode .card {
  border-color: rgba(152, 210, 244, 0.34);
  background:
    radial-gradient(circle at 14% 10%, rgba(82, 190, 247, 0.14), transparent 42%),
    linear-gradient(150deg, rgba(9, 38, 60, 0.9), rgba(6, 28, 45, 0.92) 62%, rgba(4, 20, 34, 0.95));
  box-shadow:
    0 1px 0 rgba(228, 242, 255, 0.11) inset,
    0 10px 22px rgba(4, 16, 26, 0.2);
}

body.dashboard-mode .profile-box,
body.dashboard-mode .leaderboard-box {
  border-radius: 16px;
}

.profile-box {
  position: relative;
}

.profile-box[data-action="open-player-stats"] {
  cursor: pointer;
}

.profile-hub-cta {
  position: absolute;
  top: 40px;
  left: 96px;
  right: 10px;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1px;
  pointer-events: none;
}

.profile-hub-cta-text {
  color: #cbefff;
  font-family: "Sora", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow:
    0 0 6px rgba(127, 241, 255, 0.28),
    0 0 14px rgba(127, 241, 255, 0.2);
}

.profile-hub-cta-arrow {
  color: #7ff1ff;
  font-family: "Sora", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  margin-left: 2px;
  text-shadow:
    0 0 6px rgba(127, 241, 255, 0.75),
    0 0 14px rgba(127, 241, 255, 0.34);
}

.profile-box h2,
.leaderboard-box h2 {
  font-size: 18px;
  line-height: 1.1;
}

body.dashboard-mode .profile-box h2,
body.dashboard-mode .leaderboard-box h2 {
  letter-spacing: 0.01em;
}

.profile-box .status-chip,
.leaderboard-box .status-chip {
  font-size: 12px;
  padding: 4px 8px;
  max-width: 42%;
}

body.dashboard-mode .profile-box .status-chip,
body.dashboard-mode .leaderboard-box .status-chip {
  border-color: rgba(141, 205, 238, 0.48);
  background: rgba(39, 133, 181, 0.2);
  color: #d8edf9;
}

.profile-status {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 12px;
  padding: 6px 12px;
  display: inline-flex;
  justify-content: center;
  overflow: hidden;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.15;
  text-align: center;
}

.profile-box .profile-status {
  max-width: 100%;
}

.profile-box .stats {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  justify-items: center;
  text-align: center;
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 12px;
}

.dashboard-avatar-card {
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-avatar-shell {
  width: 100%;
  max-width: 124px;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  border: 1px solid rgba(127, 197, 236, 0.35);
  background: rgba(8, 33, 54, 0.82);
  overflow: hidden;
  position: relative;
}

.dashboard-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.dashboard-avatar-shell .avatar-activity-badge {
  top: 6px;
  left: 6px;
  right: auto;
  width: 16px;
  min-width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  z-index: 3;
  pointer-events: none;
}

.dashboard-player-info-card {
  padding: 8px;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 6px;
}

.dashboard-player-kicker {
  margin: 0;
  color: #9fbfd3;
  font-family: "Sora", sans-serif;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
}

.dashboard-player-info-card .dashboard-player-name {
  margin: 0;
  color: #deeffa;
  font-family: "Sora", sans-serif;
  font-size: clamp(18px, 4.6vw, 30px);
  line-height: 0.98;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-trio-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.dashboard-trio-stat {
  border: 1px solid rgba(127, 197, 236, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 14% 10%, rgba(82, 190, 247, 0.12), transparent 42%),
    linear-gradient(150deg, rgba(9, 38, 60, 0.88), rgba(6, 28, 45, 0.9) 62%, rgba(4, 20, 34, 0.93));
  padding: 5px 4px 6px;
  text-align: center;
}

.dashboard-trio-stat span {
  display: block;
  color: #98b9ce;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-trio-stat strong {
  display: block;
  margin-top: 4px;
  color: #e9f6ff;
  font-family: "Sora", sans-serif;
  font-size: clamp(24px, 5.1vw, 32px);
  line-height: 1;
  font-weight: 800;
}

.dashboard-trio-actions {
  margin-top: 1px;
  display: grid;
  gap: 6px;
}

.dashboard-trio-action {
  border: 1px solid rgba(118, 216, 252, 0.55);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(13, 54, 79, 0.52), rgba(6, 35, 57, 0.66));
  color: #e2f3ff;
  min-height: 36px;
  width: 100%;
  padding: 0 12px;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-trio-action:active {
  transform: scale(0.99);
  filter: brightness(1.06);
}

.dashboard-mini-leaderboard-card {
  padding: 8px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
}

.dashboard-mini-leaderboard-card h2 {
  font-size: 17px;
  line-height: 1.05;
}

.dashboard-mini-leaderboard-card .leaderboard-scroll {
  margin-top: 0;
  max-height: 182px;
}

.profile-username {
  margin: 2px 0 0;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.1;
}

.profile-box .stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

body.dashboard-mode .profile-box .stats span {
  color: #96b8cd;
}

.profile-box .stats strong {
  font-size: 24px;
}

body.dashboard-mode .profile-box .stats strong {
  color: #f1f9ff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
}

.profile-corner-avatar-wrap {
  position: absolute;
  top: 34px;
  left: 8px;
  right: auto;
  width: 80px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(127, 197, 236, 0.35);
  background: rgba(8, 33, 54, 0.82);
  pointer-events: none;
}

.dashboard-player-card .profile-corner-avatar-wrap {
  grid-area: avatar;
  position: relative;
  top: auto;
  right: auto;
  width: 88px;
  height: 88px;
  border-radius: 15px;
  margin: 0;
  align-self: center;
  justify-self: start;
}

.profile-corner-avatar-wrap.avatar-border-loaded,
.profile-avatar-slot.avatar-border-loaded,
.full-lb-avatar-wrap.avatar-border-loaded,
.leaderboard-profile-avatar-wrap.avatar-border-loaded {
  border-color: transparent;
  background: transparent;
}

.profile-corner-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.avatar-border-overlay {
  display: none !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.profile-status-row {
  margin-top: 12px;
}

.profile-hub-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  border-color: rgba(120, 211, 255, 0.62) !important;
  background: linear-gradient(180deg, rgba(50, 137, 191, 0.34), rgba(22, 87, 129, 0.38)) !important;
  color: #dff3ff !important;
  box-shadow:
    inset 0 1px 0 rgba(222, 242, 255, 0.2),
    0 0 0 1px rgba(64, 159, 216, 0.15);
}

.profile-box .profile-hub-pill {
  max-width: 100% !important;
}

.leaderboard-tap-hint {
  margin: 2px 0 0;
  font-size: 10px;
  font-weight: 600;
  color: #9cb8cb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-scroll {
  margin-top: 8px;
  max-height: 125px;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  gap: 6px;
  padding-right: 2px;
}

body.dashboard-mode .leaderboard-scroll {
  gap: 7px;
}

body.dashboard-mode .profile-hub-pill {
  border-color: rgba(129, 214, 255, 0.66) !important;
  background: linear-gradient(180deg, rgba(64, 151, 206, 0.34), rgba(22, 87, 129, 0.4)) !important;
  color: #e3f5ff !important;
}

body.dashboard-mode .leaderboard-tap-hint {
  color: #a9c7db;
}

.tab-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid rgba(127, 197, 236, 0.4);
  border-radius: 9px;
  background: rgba(7, 27, 42, 0.88);
  color: #cde2f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  min-height: 36px;
  justify-content: center;
}

.tab-btn.active {
  background: linear-gradient(130deg, #18a57d, #2575a9);
  border-color: rgba(50, 225, 168, 0.55);
  color: #f6fffb;
}

.social-tab-row {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.player-tabs-strip {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  padding: 0 8px 16px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  position: relative;
  align-items: end;
}

.player-tabs-strip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: rgba(234, 245, 255, 0.14);
}

.player-tabs-strip::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 25%;
  height: 2px;
  background: rgba(109, 239, 255, 0.98);
  box-shadow:
    0 0 6px rgba(109, 239, 255, 0.85),
    0 0 14px rgba(109, 239, 255, 0.4);
  transform: translateX(calc(var(--player-tab-index, 0) * 100%));
  transition: transform 260ms cubic-bezier(0.25, 0.9, 0.28, 1.05);
}

.player-tabs-strip.player-tabs-strip-indicator-anim::after {
  transition: none;
  animation: player-tab-indicator-slide 280ms cubic-bezier(0.22, 0.9, 0.25, 1) both;
}

.player-main-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-left: -12px;
  margin-right: -12px;
}

.player-main-back-row {
  padding: 0 12px;
  margin-top: 0;
  margin-bottom: 0;
}

.player-main-card .player-tabs-strip {
  margin-top: 2px;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  padding: 0 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.player-main-content {
  padding: 0 12px;
  margin-top: 22px;
}

.player-main-content-swipe-surface {
  touch-action: pan-y;
}

.player-main-content.player-main-content-swipe-from-right {
  animation: player-tab-content-enter-right 260ms cubic-bezier(0.22, 0.9, 0.25, 1) both;
}

.player-main-content.player-main-content-swipe-from-left {
  animation: player-tab-content-enter-left 260ms cubic-bezier(0.22, 0.9, 0.25, 1) both;
}

.player-tab,
.player-tabs-strip .tab-btn {
  position: relative;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(235, 245, 255, 0.9);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: clamp(12px, 3.5vw, 16px);
  line-height: 1.1;
  min-height: 40px;
  padding: 6px 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  appearance: none;
  -webkit-appearance: none;
  text-shadow: 0 0 0 rgba(109, 239, 255, 0);
  transition: color 180ms ease, text-shadow 180ms ease, filter 180ms ease;
}

.player-tab:last-child,
.player-tabs-strip .tab-btn:last-child {
  border-right: 0;
}

.player-tab.active,
.player-tabs-strip .tab-btn.active {
  color: #7bf3ff;
  text-shadow:
    0 0 6px rgba(109, 239, 255, 0.9),
    0 0 12px rgba(109, 239, 255, 0.45);
  filter: brightness(1.06);
}

.player-tab-badge,
.player-tabs-strip .tab-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ef495f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 4px;
}

.player-tabs-strip .player-tab-badge,
.player-tabs-strip .tab-badge {
  position: static;
  margin-left: 3px;
  transform: translateY(-1px);
}

@keyframes player-tab-indicator-slide {
  from {
    transform: translateX(calc(var(--player-tab-prev-index, 0) * 100%));
  }
  to {
    transform: translateX(calc(var(--player-tab-index, 0) * 100%));
  }
}

@keyframes player-tab-content-enter-right {
  from {
    opacity: 0.55;
    transform: translateX(26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes player-tab-content-enter-left {
  from {
    opacity: 0.55;
    transform: translateX(-26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.profile-corner-avatar-wrap .avatar-activity-badge {
  top: 6px;
  left: 6px;
  right: auto;
  width: 16px;
  min-width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  z-index: 3;
  pointer-events: none;
}

.tab-badge {
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ef495f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 4px;
}

.social-list {
  display: grid;
  gap: 8px;
  max-height: 54vh;
  overflow-y: auto;
  padding-right: 2px;
}

.social-section {
  margin-top: 12px;
}

.social-section h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #d4ebf8;
}

.social-row {
  border: 1px solid rgba(127, 197, 236, 0.28);
  border-radius: 10px;
  background: rgba(9, 35, 54, 0.84);
  padding: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.social-row > div:first-child {
  min-width: 0;
}

.social-row .row {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.friend-status-chip {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.friend-status-chip.pending {
  border-color: rgba(255, 200, 87, 0.6);
  color: #ffe6b6;
  background: rgba(255, 200, 87, 0.16);
}

.activity-stack {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.activity-item {
  border: 1px solid rgba(127, 197, 236, 0.26);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(55, 60, 80, 0.62), rgba(66, 72, 97, 0.45));
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.activity-item.interactive {
  cursor: pointer;
}

.activity-item-copy {
  min-width: 0;
}

.activity-item-text {
  margin: 0;
  color: #eef6ff;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.activity-item-text .pill {
  margin-left: 6px;
  padding: 2px 7px;
  font-size: 10px;
  vertical-align: middle;
}

.activity-item-meta {
  margin: 4px 0 0;
  color: #b8cadb;
  font-size: 12px;
}

.activity-item-btn {
  border: 1px solid rgba(86, 231, 191, 0.42);
  border-radius: 10px;
  padding: 7px 10px;
  min-width: 112px;
  color: #effff8;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  background: linear-gradient(180deg, #35e931, #11a80f);
  white-space: nowrap;
}

.activity-item-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
  flex-shrink: 0;
}

.activity-item-dismiss-btn {
  border: 1px solid rgba(170, 189, 210, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(90, 104, 130, 0.82), rgba(69, 80, 104, 0.9));
  color: #d5e2ef;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  min-width: 66px;
  text-align: center;
}

.activity-item-dismiss-btn:hover {
  border-color: rgba(198, 218, 238, 0.62);
  color: #edf6ff;
}

.activity-item-btn.challenge {
  background: linear-gradient(180deg, #35e931, #11a80f);
}

.activity-item-btn.friend {
  background: linear-gradient(180deg, #35e931, #11a80f);
}

.btn.friend-challenge-btn {
  background: linear-gradient(180deg, #35e931, #11a80f);
  border-color: rgba(86, 231, 191, 0.42);
  color: #effff8;
  font-weight: 800;
}

.btn.friend-message-btn {
  background: linear-gradient(180deg, #2d99ff, #1d59b8);
  border-color: rgba(80, 161, 255, 0.45);
  color: #eff6ff;
  font-weight: 800;
}

.dm-thread-list {
  margin-top: 10px;
  max-height: 50vh;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  padding: 2px 2px 4px;
}

.dm-msg-wrap {
  display: grid;
  gap: 4px;
}

.dm-msg-wrap.me {
  justify-items: end;
}

.dm-msg-wrap.other {
  justify-items: start;
}

.dm-msg-time {
  margin: 0;
  font-size: 11px;
  color: #a9bed3;
}

.dm-msg-row {
  display: flex;
  width: 100%;
}

.dm-msg-row.me {
  justify-content: flex-end;
}

.dm-msg-row.other {
  justify-content: flex-start;
}

.dm-msg-bubble {
  max-width: min(78%, 340px);
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(164, 189, 214, 0.38);
  color: #eef6ff;
  font-size: 14px;
  line-height: 1.3;
  white-space: pre-wrap;
  word-break: break-word;
}

.dm-msg-bubble.me {
  border-color: rgba(84, 169, 255, 0.58);
  background: linear-gradient(180deg, rgba(53, 156, 255, 0.95), rgba(33, 103, 202, 0.96));
  border-bottom-right-radius: 6px;
}

.dm-msg-bubble.other {
  border-color: rgba(103, 224, 171, 0.5);
  background: linear-gradient(180deg, rgba(45, 165, 106, 0.95), rgba(24, 122, 81, 0.96));
  border-bottom-left-radius: 6px;
}

.dm-compose-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.dm-compose-row .input {
  margin: 0;
  padding: 9px 10px;
  font-size: 16px;
}

.dm-compose-input {
  height: 44px;
  min-height: 44px;
  max-height: 120px;
  line-height: 1.35;
  resize: none;
  overflow-y: hidden;
}

.dm-compose-row .btn {
  min-height: 40px;
  white-space: nowrap;
}

.activity-item-btn.pending {
  background: linear-gradient(180deg, #6c7a9f, #4f5b7d);
  border-color: rgba(176, 190, 222, 0.48);
}

.activity-item-btn.accepted {
  background: linear-gradient(180deg, #2d99ff, #1d59b8);
  border-color: rgba(80, 161, 255, 0.45);
}

.activity-item-btn.message {
  background: linear-gradient(180deg, #2d99ff, #1d59b8);
  border-color: rgba(80, 161, 255, 0.45);
}

.activity-item-btn.result {
  background: linear-gradient(180deg, #2d99ff, #1d59b8);
  border-color: rgba(80, 161, 255, 0.45);
}

.full-lb-head,
.full-lb-row {
  display: grid;
  grid-template-columns: 24px 36px minmax(84px, 1fr) 72px 72px;
  gap: 8px;
  align-items: center;
}

.full-lb-head {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.full-lb-head span {
  white-space: nowrap;
}

.full-lb-scroll {
  margin-top: 6px;
  max-height: 62vh;
  max-height: 72dvh;
  max-height: calc(100dvh - 220px);
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  gap: 6px;
  padding-right: 8px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  scroll-padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
}

.full-lb-card {
  padding-bottom: 0;
  margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  align-self: start;
}

.full-lb-tabs-row {
  align-items: flex-start;
}

.full-lb-title-spacer {
  min-height: 1px;
}

.leaderboard-mode-tabs {
  margin-left: auto;
}

.perf-summary {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-avatar-slot {
  width: 80px;
  height: 80px;
  margin-top: 8px;
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(127, 197, 236, 0.34);
  background: rgba(8, 33, 54, 0.82);
  overflow: hidden;
}

.profile-avatar-team-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.profile-favorite-team-box {
  border: 1px solid rgba(127, 197, 236, 0.28);
  border-radius: 12px;
  background:
    radial-gradient(circle at 14% 10%, rgba(82, 190, 247, 0.14), transparent 42%),
    linear-gradient(150deg, rgba(9, 38, 60, 0.9), rgba(6, 28, 45, 0.92) 62%, rgba(4, 20, 34, 0.95));
  margin-top: 8px;
  padding: 10px;
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 5px;
}

.profile-favorite-team-label {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-favorite-team-value {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  color: #f0f9ff;
}

.profile-favorite-team-link {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  color: #63d7ff;
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}

.predictions-stack {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.prediction-card {
  border: 1px solid rgba(127, 197, 236, 0.3);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(16, 47, 70, 0.88), rgba(11, 31, 51, 0.92));
  padding: 10px;
}

.prediction-question {
  margin: 7px 0 0;
  font-size: 15px;
  line-height: 1.35;
}

.prediction-percent-row {
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #d5e8f7;
}

.prediction-split-bar {
  margin-top: 5px;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.prediction-votes {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.prediction-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.prediction-pick-btn {
  min-height: 36px;
  border-width: 1px;
  font-size: 13px;
  font-weight: 800;
}

.prediction-pick-btn.yes {
  border-color: rgba(62, 225, 154, 0.5);
  background: linear-gradient(180deg, rgba(27, 114, 74, 0.78), rgba(20, 86, 56, 0.9));
  color: #ecfff6;
}

.prediction-pick-btn.no {
  border-color: rgba(236, 108, 108, 0.54);
  background: linear-gradient(180deg, rgba(140, 62, 74, 0.76), rgba(107, 46, 58, 0.9));
  color: #ffeef0;
}

.prediction-pick-btn.active {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 0 16px rgba(91, 197, 255, 0.32);
}

.prediction-helper-text {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.3;
}

.avatar-picker-btn {
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.avatar-picker-btn:disabled {
  cursor: default;
}

.avatar-picker-btn.uploading {
  opacity: 0.76;
}

.profile-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.12);
  position: relative;
  z-index: 1;
}

.profile-avatar-caption {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.profile-performance-best-lines {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
}

.profile-performance-best-lines .label {
  display: inline-flex;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
}

.profile-performance-best-lines-right {
  margin-left: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-performance-best-lines-value {
  display: inline-flex;
  font-family: "Sora", sans-serif;
  font-size: 21px;
  line-height: 1;
  font-weight: 800;
  color: #eaf6ff;
}

.avatar-file-input {
  display: none;
}

.perf-metric {
  border: 1px solid rgba(127, 197, 236, 0.32);
  border-radius: 10px;
  background:
    radial-gradient(circle at 14% 10%, rgba(82, 190, 247, 0.14), transparent 42%),
    linear-gradient(150deg, rgba(9, 38, 60, 0.9), rgba(6, 28, 45, 0.92) 62%, rgba(4, 20, 34, 0.95));
  padding: 8px;
}

.perf-metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.perf-metric strong {
  display: block;
  margin-top: 2px;
  font-family: "Sora", sans-serif;
  font-size: 20px;
}

.perf-legend {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: #c8dfee;
  font-size: 12px;
}

.perf-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.perf-legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.perf-legend .dot.points {
  background: #46d5ff;
}

.perf-legend .dot.lines {
  background: #32e1a8;
}

.perf-chart {
  margin-top: 8px;
  border: 1px solid rgba(127, 197, 236, 0.25);
  border-radius: 12px;
  padding: 10px;
  max-height: 56vh;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  background: rgba(6, 25, 41, 0.72);
}

.perf-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.perf-week {
  color: #b9d1df;
  font-size: 11px;
  line-height: 1.1;
}

.perf-bars {
  display: grid;
  gap: 5px;
}

.perf-bar {
  height: 20px;
  border-radius: 999px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  color: #f5fdff;
  font-size: 11px;
  font-weight: 700;
}

.perf-bar.perf-points {
  background: linear-gradient(130deg, rgba(54, 215, 255, 0.88), rgba(29, 125, 176, 0.9));
}

.perf-bar.perf-lines {
  background: linear-gradient(130deg, rgba(50, 225, 168, 0.88), rgba(20, 130, 110, 0.9));
}

.full-lb-row {
  border: 1px solid rgba(127, 197, 236, 0.25);
  border-radius: 10px;
  background: rgba(7, 27, 42, 0.86);
  padding: 3px 8px;
  font-size: 12px;
}

.full-lb-row.me {
  border-color: rgba(108, 231, 255, 0.46);
  background: rgba(73, 224, 255, 0.11);
}

.full-lb-row-btn {
  width: 100%;
  text-align: left;
  color: #e5f3ff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.full-lb-row .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full-lb-head.full-lb-head-teams,
.team-lb-row {
  display: grid;
  grid-template-columns: 24px minmax(96px, 1fr) minmax(92px, 1fr) 86px;
  gap: 8px;
  align-items: center;
}

.team-lb-row {
  width: 100%;
  border: 1px solid rgba(127, 197, 236, 0.25);
  border-radius: 10px;
  background: rgba(7, 27, 42, 0.86);
  min-height: 36px;
  padding: 3px 8px;
  color: #e5f3ff;
  font-size: 12px;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

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

.team-lb-row .team-lb-star {
  color: #b5cddd;
  font-weight: 700;
  text-align: center;
  justify-self: stretch;
}

.full-lb-head.full-lb-head-teams span:nth-child(3) {
  text-align: center;
}

.team-member-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  gap: 8px;
  align-items: center;
}

.team-member-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(127, 197, 236, 0.25);
  border-radius: 10px;
  background: rgba(7, 27, 42, 0.86);
  padding: 7px 8px;
  font-size: 12px;
}

.team-member-btn {
  width: 100%;
  text-align: left;
  color: #e5f3ff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.team-member-row.me {
  border-color: rgba(108, 231, 255, 0.46);
  background: rgba(73, 224, 255, 0.11);
}

.team-member-head span:first-child,
.team-member-row span:first-child {
  text-align: center;
}

.team-member-head span:nth-child(2),
.team-member-row .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  justify-self: center;
}

.full-lb-avatar-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.full-lb-avatar-wrap {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(127, 197, 236, 0.35);
  background: rgba(8, 33, 54, 0.82);
  position: relative;
  display: block;
}

.full-lb-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.full-lb-avatar-wrap .full-lb-avatar-border {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.06);
  transform-origin: center;
}

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

.leaderboard-profile-avatar-wrap {
  width: 128px;
  height: 128px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(127, 197, 236, 0.35);
  background: rgba(8, 33, 54, 0.82);
  position: relative;
}

.leaderboard-profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.leaderboard-profile-status-row {
  margin-top: -2px;
}

.leaderboard-profile-favorite-team {
  border: 1px solid rgba(127, 197, 236, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 14% 10%, rgba(82, 190, 247, 0.14), transparent 42%),
    linear-gradient(150deg, rgba(9, 38, 60, 0.9), rgba(6, 28, 45, 0.92) 62%, rgba(4, 20, 34, 0.95));
  padding: 8px 10px;
  display: grid;
  gap: 3px;
}

.leaderboard-profile-favorite-team span {
  font-size: 11px;
  line-height: 1.1;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.leaderboard-profile-favorite-team strong {
  font-family: "Sora", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  color: #eaf6ff;
  font-weight: 700;
}

.leaderboard-profile-actions-area {
  margin-top: 10px;
  border: 1px solid rgba(127, 197, 236, 0.28);
  border-radius: 10px;
  background: rgba(9, 35, 54, 0.84);
  padding: 8px;
}

.leaderboard-profile-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.leaderboard-profile-actions .btn {
  min-width: 0;
}

.full-lb-row strong:last-child,
.full-lb-row strong:nth-last-child(2),
.full-lb-head span:nth-last-child(1),
.full-lb-head span:nth-last-child(2),
.team-lb-row strong:last-child,
.team-member-row strong:last-child,
.team-member-head span:last-child {
  text-align: right;
}

.lb-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 28px;
  gap: 6px;
  align-items: center;
  border-radius: 9px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
}

body.dashboard-mode .lb-row {
  border: 1px solid rgba(130, 197, 233, 0.24);
  background: linear-gradient(145deg, rgba(20, 58, 87, 0.66), rgba(11, 40, 63, 0.72));
  box-shadow: 0 1px 0 rgba(227, 241, 255, 0.06) inset;
}

.lb-row.me {
  border: 1px solid rgba(108, 231, 255, 0.48);
  background: rgba(73, 224, 255, 0.14);
}

body.dashboard-mode .lb-row.me {
  border-color: rgba(108, 231, 255, 0.62);
  background: linear-gradient(145deg, rgba(34, 109, 147, 0.36), rgba(17, 72, 107, 0.28));
}

.lb-row strong {
  min-width: 0;
}

.lb-row strong:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-row strong:last-child {
  text-align: right;
}

.play-card .hint {
  margin: 4px 0 6px;
  color: var(--muted);
  font-size: 12px;
}

body.dashboard-mode .play-card {
  border-radius: 18px;
}

body.dashboard-mode .play-card .hint {
  color: #9abdd1;
}

.hint {
  color: var(--ink);
}

.hint strong {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  color: #f5fcff;
  letter-spacing: 0.01em;
}

.selection-hints {
  margin: -16px 0 12px;
}

.selection-hints .hint {
  margin: 0;
  line-height: 1.2;
}

.selection-hints .hint + .hint {
  margin-top: 2px;
}

.selection-header-row {
  min-height: 34px;
}

.selection-count-pill {
  position: relative;
  top: 30px;
}

.selection-title-placeholder {
  visibility: hidden;
  margin: 0;
}

.arrange-page-hint {
  margin: 2px 2px 0;
  font-size: 13px;
  line-height: 1.2;
}

.arrange-page-subtitle-row {
  margin: -8px 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.arrange-inline-back-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(118, 246, 255, 0.72);
  border-radius: 9px;
  background: rgba(20, 74, 108, 0.34);
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
  cursor: pointer;
  color: rgba(118, 246, 255, 0.98);
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(118, 246, 255, 0.14) inset,
    0 0 10px rgba(89, 236, 255, 0.24);
  text-shadow:
    0 0 4px rgba(89, 236, 255, 0.8),
    0 0 10px rgba(89, 236, 255, 0.34);
}

.arrange-inline-back-btn:active {
  filter: brightness(1.12);
  transform: scale(0.96);
}

.arrange-page-subtitle {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #d9edf9;
}

.arrange-page-instructions {
  margin: -4px 12px 4px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--muted);
}

.play-card .status-chip {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  flex-shrink: 0;
}

body.dashboard-mode .play-card .status-chip {
  border-color: rgba(147, 207, 241, 0.5);
  background: rgba(44, 137, 184, 0.2);
  color: #d8ecf9;
}

.play-grid-header-row {
  align-items: flex-start;
  position: relative;
}

.play-grid-title-row {
  flex: 1 1 auto;
  min-width: 0;
  gap: 6px;
  align-items: flex-start;
}

.play-grid-lock-chip {
  margin-left: 12px;
}

.status-chip-button {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.play-grid-share-chip {
  min-width: 108px;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.play-grid-share-chip:active {
  transform: scale(0.96);
}

.play-grid-share-icon {
  width: 26px;
  height: 20px;
  display: block;
  flex-shrink: 0;
  margin-left: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(89, 236, 255, 0.45));
}

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

.share-grid-copy-row {
  justify-content: flex-end;
  align-items: center;
  gap: 0;
}

.share-grid-preview-wrap {
  border: 1px solid rgba(126, 210, 244, 0.34);
  border-radius: 12px;
  background: rgba(4, 23, 42, 0.82);
  overflow: hidden;
}

.share-grid-preview-image {
  display: block;
  width: 100%;
  height: auto;
}

.share-grid-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-grid-actions .btn {
  flex: 1 1 160px;
  min-height: 42px;
}

.live-games-label {
  color: rgba(63, 214, 255, 0.9);
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  animation: live-games-pulse 1.5s ease-in-out infinite;
  line-height: 1.1;
  white-space: nowrap;
}

.next-kickoff-label {
  color: rgba(146, 226, 255, 0.94);
  font-family: "Sora", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  line-height: 1;
  white-space: nowrap;
  margin-top: 0;
  margin-left: 0;
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.next-kickoff-label-text {
  font-size: 10px;
  line-height: 1;
  color: rgba(161, 232, 255, 0.88);
}

.next-kickoff-value {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  color: rgba(201, 244, 255, 0.98);
}

.grid-only {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  position: relative;
  z-index: 2;
}

body.dashboard-mode .play-card .dashboard-grid-wrap {
  margin-top: 2px;
}

.slot {
  aspect-ratio: 1;
  border-radius: 11px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: rgba(3, 20, 33, 0.9);
  overflow: hidden;
}

.slot.filled {
  border-color: rgba(255, 255, 255, 0.9);
}

.result-slot {
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.result-slot[data-action="toggle-live-tile"] {
  cursor: pointer;
}

.slot.result-pending {
  border-color: rgba(255, 255, 255, 0.9) !important;
  border-width: 2px;
  box-shadow: none;
}

body.dashboard-mode .play-card .slot.result-slot {
  border: 2px solid rgba(173, 216, 242, 0.84);
  border-radius: 12px;
  background: linear-gradient(158deg, rgba(16, 54, 82, 0.64), rgba(4, 24, 40, 0.92));
  position: relative;
  box-shadow:
    0 0 0 1px rgba(226, 241, 255, 0.2) inset,
    0 10px 18px rgba(0, 0, 0, 0.2);
}

body.dashboard-mode .play-card .slot.result-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 12%, rgba(222, 243, 255, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

body.dashboard-mode .play-card .slot.result-slot .tile {
  background:
    linear-gradient(165deg, rgba(12, 52, 79, 0.58) 0%, rgba(7, 30, 49, 0.84) 58%, rgba(5, 20, 35, 0.93) 100%),
    linear-gradient(180deg, rgba(71, 195, 255, 0.06), rgba(20, 66, 100, 0));
}

body.dashboard-mode .play-card .slot.result-slot .tile .title {
  color: #e8f5ff;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
  text-align: center;
}

body.dashboard-mode .play-card .slot.result-slot .arrange-favorite-label {
  color: #dcebf7;
}

body.dashboard-mode .play-card .slot.result-slot .arrange-pick-label.win,
body.dashboard-mode .play-card .slot.result-slot .arrange-pick-label.lose {
  text-shadow: none;
}

body.dashboard-mode .play-card .slot.result-slot .arrange-pick-label.win {
  color: #38ebaf;
}

body.dashboard-mode .play-card .slot.result-slot .arrange-pick-label.lose {
  color: #ff7f8d;
}

body.dashboard-mode .play-card .slot.result-slot .tile .odds {
  color: #ffd270;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
}

.slot.result-live {
  border-color: rgba(63, 214, 255, 0.62) !important;
  border-width: 4px !important;
  animation: in-play-cyan-pulse 1.5s ease-in-out infinite;
}

.slot.result-correct {
  border-color: rgba(49, 223, 162, 1) !important;
  border-width: 4px !important;
  box-shadow: 0 0 0 1px rgba(49, 223, 162, 0.45);
}

.slot.result-wrong {
  border-color: rgba(163, 103, 112, 0.95) !important;
  border-width: 4px !important;
  box-shadow: 0 0 0 1px rgba(163, 103, 112, 0.38);
}

.slot-empty {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tile {
  height: 100%;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 10px;
  border: 1px solid rgba(50, 225, 168, 0.35);
  background: rgba(8, 40, 58, 0.88);
}

.result-tile {
  transition: background 200ms ease, color 200ms ease, opacity 200ms ease;
}

.result-pending {
  border-color: rgba(255, 255, 255, 0.86);
}

.result-correct {
  border-color: rgba(50, 225, 168, 0.98);
  border-width: 3px;
  box-shadow: 0 0 0 2px rgba(50, 225, 168, 0.34);
}

.result-wrong {
  border-color: rgba(171, 107, 116, 0.92);
  border-width: 3px;
  box-shadow: 0 0 0 2px rgba(171, 107, 116, 0.28);
}

.result-pending-inner {
  border-color: transparent;
}

.result-correct-inner {
  border-color: transparent;
}

.result-wrong-inner {
  border-color: transparent;
  background: rgba(10, 26, 41, 0.94);
}

.result-wrong .title,
.result-wrong .meta,
.result-wrong .odds,
.result-wrong .muted {
  color: #738896 !important;
}

.result-wrong .pick-pill {
  opacity: 0.6;
  border-color: rgba(130, 145, 156, 0.45);
}

.slot.result-wrong .tile,
.slot.result-wrong .tile .title,
.slot.result-wrong .tile .meta,
.slot.result-wrong .tile .odds,
.slot.result-wrong .tile .muted,
.slot.result-wrong .tile .fav-team,
.slot.result-wrong .tile .dog-team {
  color: #647884 !important;
}

.slot.result-wrong .tile .arrange-favorite-label,
.slot.result-wrong .tile .arrange-pick-label,
.slot.result-wrong .tile .arrange-pick-label.win,
.slot.result-wrong .tile .arrange-pick-label.lose {
  color: #5b6b75 !important;
  text-shadow: none !important;
  filter: none !important;
}

.slot.result-wrong .tile {
  background: rgba(9, 20, 30, 0.95);
}

.tile-flip {
  animation: tile-flip-in 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transform-style: preserve-3d;
}

@keyframes tile-flip-in {
  0% {
    transform: rotateY(0deg);
  }
  45% {
    transform: rotateY(90deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes in-play-cyan-pulse {
  0%, 100% {
    border-color: rgba(63, 214, 255, 0.48);
    box-shadow:
      0 0 0 0 rgba(63, 214, 255, 0.08),
      0 0 0 0 rgba(63, 214, 255, 0.2);
    filter: brightness(0.98);
  }
  50% {
    border-color: rgba(63, 214, 255, 0.98);
    box-shadow:
      0 0 0 4px rgba(63, 214, 255, 0.16),
      0 0 14px 2px rgba(63, 214, 255, 0.48);
    filter: brightness(1.14);
  }
}

@keyframes live-games-pulse {
  0%, 100% {
    color: rgba(63, 214, 255, 0.52);
    text-shadow: 0 0 0 rgba(63, 214, 255, 0);
  }
  50% {
    color: rgba(63, 214, 255, 1);
    text-shadow: 0 0 10px rgba(63, 214, 255, 0.52);
  }
}

.tile .title {
  margin: 0;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.18;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile .meta,
.tile .odds {
  margin: 0;
  font-size: 11px;
}

.tile .meta { color: var(--muted); }
.tile .odds { color: var(--gold); margin-top: auto; }

.score-face-open .tile {
  justify-content: flex-start;
}

.score-face-body {
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.score-face-score {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: #f4fbff;
}

.score-face-line {
  margin: 0;
  font-size: 10px;
  line-height: 1.2;
  color: #d4ebf8;
}

.score-face-short {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-face-kickoff-date,
.score-face-kickoff-time {
  font-size: 12px;
  line-height: 1.2;
  color: #e7f5ff;
}

.score-face-line.muted {
  color: #93afc1;
}

.score-face-outcome {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  color: #f0fbff;
}

.pick-pill {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 2px 6px;
  font-size: 11px;
}
.pick-pill.yes { color: var(--yes); }
.pick-pill.no { color: var(--no); }

.tap-overlay {
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid rgba(50, 225, 168, 0.55);
  background: linear-gradient(130deg, #18a57d, #2575a9);
  color: #f6fffb;
  padding: 8px;
  text-align: center;
  font-weight: 700;
}

.start-chip {
  background: linear-gradient(130deg, #18a57d, #2575a9);
  border-color: rgba(50, 225, 168, 0.55);
  color: #f6fffb;
}

body.dashboard-mode .start-chip {
  box-shadow: 0 0 14px rgba(63, 214, 255, 0.26);
}

.btn {
  border: 1px solid rgba(141, 176, 198, 0.42);
  border-radius: 10px;
  background: rgba(7, 27, 42, 0.92);
  color: #cde2f0;
  padding: 8px 10px;
  font-weight: 700;
}

.btn.primary {
  background: linear-gradient(130deg, #18a57d, #2575a9);
  border-color: rgba(50, 225, 168, 0.55);
  color: #f6fffb;
}

.btn:disabled { opacity: 0.4; }

.league-table-btn {
  font-size: 13px;
  padding: 0 12px;
  min-height: 40px;
  border-radius: 10px;
}

.arrange-top-row {
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.arrange-submit-btn {
  margin-top: 24px;
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

.arrange-top-submit-btn {
  flex: 1 1 auto;
  min-height: 40px;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

.arrange-top-submit-btn .submit-points-value {
  font-size: 14px;
}

.arrange-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 8px;
}

.arrange-mini-chip {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(54, 215, 255, 0.12);
  color: var(--ink);
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
  font-size: 13px;
}

.arrange-mini-chip-top {
  font-size: 11px;
}

.arrange-mini-chip-bottom {
  font-size: 11px;
}

.arrange-bottom-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-actions .btn {
  min-height: 56px;
  min-width: 44%;
  font-size: 20px;
  border-radius: 12px;
  padding: 12px 16px;
}

.selection-list {
  display: grid;
  gap: 8px;
  max-height: 69vh;
  max-height: 69dvh;
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-top: 20px;
  padding-right: 2px;
  padding-bottom: 4px;
}

.selection-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.selection-footer-wrap {
  margin-top: 6px;
  margin-left: -12px;
  margin-right: -12px;
  margin-bottom: -10px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  border-radius: 14px 14px 0 0;
  border: 0;
  border-top: 1px solid rgba(127, 197, 236, 0.28);
  background: linear-gradient(140deg, rgba(13, 52, 76, 0.9), rgba(15, 54, 77, 0.92));
  color: rgba(229, 246, 238, 0.9);
  font-family: "Sora", sans-serif;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: none;
  transition: filter 180ms ease, background 180ms ease, color 180ms ease;
  padding: 0 12px;
}

.selection-footer-wrap.pending {
  font-size: 12px;
  font-weight: 600;
}

.selection-footer-wrap.ready {
  border-top-color: rgba(90, 216, 245, 0.42);
  background: linear-gradient(135deg, rgba(33, 184, 142, 0.98), rgba(38, 183, 153, 0.98), rgba(51, 145, 205, 0.98));
  cursor: pointer;
  color: #f3fffb;
  font-size: 17px;
  font-weight: 700;
}

.selection-card {
  margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
  padding-bottom: 10px;
}

.selection-main-card {
  padding: 10px 12px 0;
  margin-left: -12px;
  margin-right: -12px;
  margin-bottom: calc(-1 * (env(safe-area-inset-bottom, 0px) + 84px));
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(160deg, rgba(7, 29, 49, 0.97), rgba(11, 41, 70, 0.96));
}

.match-row {
  border: 1px solid rgba(153, 208, 243, 0.34);
  border-radius: 14px;
  padding: 10px;
  background:
    radial-gradient(circle at 18% 12%, rgba(120, 215, 255, 0.2), transparent 42%),
    linear-gradient(145deg, rgba(24, 73, 105, 0.84), rgba(14, 52, 80, 0.9) 62%, rgba(8, 34, 56, 0.94));
  box-shadow:
    0 1px 0 rgba(225, 241, 255, 0.12) inset,
    0 8px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.match-row::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
  background: linear-gradient(180deg, rgba(223, 241, 255, 0.08), rgba(223, 241, 255, 0));
}

.match-row.included {
  border-color: rgba(108, 231, 255, 0.98);
  box-shadow:
    0 0 0 1px rgba(108, 231, 255, 0.32) inset,
    0 10px 20px rgba(6, 20, 34, 0.25);
}

.match-row.included::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  box-shadow:
    0 0 0 1px rgba(108, 231, 255, 0.2) inset,
    0 0 10px rgba(73, 224, 255, 0.42) inset,
    0 0 20px rgba(73, 224, 255, 0.22) inset;
}

.match-row > * {
  position: relative;
  z-index: 2;
}

.selection-pick-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  animation: selection-pick-flash-pop 560ms ease-out forwards;
}

.selection-pick-flash::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 52%, rgba(113, 244, 255, 0.24) 0%, rgba(113, 244, 255, 0.12) 36%, rgba(113, 244, 255, 0) 74%);
  animation: selection-pick-flash-pop 560ms ease-out forwards;
}

.selection-pick-flash span {
  position: relative;
  z-index: 1;
  font-family: "Sora", sans-serif;
  font-size: clamp(36px, 11vw, 58px);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(147, 250, 255, 0.95);
  text-shadow:
    0 0 8px rgba(114, 248, 255, 0.95),
    0 0 20px rgba(114, 248, 255, 0.72),
    0 0 34px rgba(114, 248, 255, 0.42);
  opacity: 0;
  transform: scale(0.82);
  animation: selection-pick-flash-pop 560ms ease-out forwards;
}

.selection-pick-flash.long-label span {
  font-size: clamp(24px, 8vw, 42px);
  letter-spacing: 0.03em;
}

@keyframes selection-pick-flash-pop {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  70% {
    opacity: 0.9;
    transform: scale(1.03);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

.match-row h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.match-row .meta {
  margin: 2px 0 3px;
  color: var(--muted);
  font-size: 12px;
}

.fav-team {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  color: #f2fbff;
}

.dog-team {
  font-weight: 400;
  color: #b7ccdb;
}

.pick-grid {
  display: grid;
  gap: 8px;
}

.pick-divider-row {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 12px;
}

.pick-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
}

.pick-btn {
  border-radius: 12px;
  border: 1px solid rgba(146, 191, 218, 0.34);
  background: linear-gradient(160deg, rgba(10, 35, 55, 0.94), rgba(6, 24, 40, 0.96));
  color: #cde2f0;
  padding: 7px 11px;
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-align: left;
  box-shadow:
    0 1px 0 rgba(225, 241, 255, 0.08) inset,
    0 4px 10px rgba(0, 0, 0, 0.16);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}

.pick-btn-label {
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pick-btn-odds {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pick-divider {
  text-align: center;
  color: #9bb3c4;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.pick-btn.active.yes {
  background: linear-gradient(145deg, rgba(28, 164, 128, 0.96), rgba(22, 132, 111, 0.96));
  border-color: rgba(89, 239, 188, 0.96);
  color: #effff8;
  box-shadow:
    0 0 0 1px rgba(89, 239, 188, 0.26) inset,
    0 0 0 1px rgba(89, 239, 188, 0.2),
    0 6px 12px rgba(13, 52, 48, 0.26);
}

.pick-btn.active.no {
  background: linear-gradient(145deg, rgba(157, 65, 86, 0.96), rgba(124, 48, 67, 0.96));
  border-color: rgba(255, 131, 150, 0.95);
  color: #fff6f8;
  box-shadow:
    0 0 0 1px rgba(255, 131, 150, 0.2) inset,
    0 0 0 1px rgba(255, 131, 150, 0.16),
    0 6px 12px rgba(58, 22, 31, 0.24);
}

.selection-status {
  font-size: 10px;
  padding: 4px 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-color: rgba(151, 205, 238, 0.5);
  background: rgba(43, 133, 182, 0.2);
  color: #d6eaf7;
}

.kickoff-meta {
  margin-top: -1px;
  font-size: 12px;
  color: #9bb3c4;
}

.match-row .meta.favorite-question {
  color: #e9f6ff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
}

.locked-row {
  border-color: rgba(130, 153, 169, 0.52);
  background:
    radial-gradient(circle at 18% 12%, rgba(152, 170, 185, 0.12), transparent 40%),
    linear-gradient(145deg, rgba(39, 57, 71, 0.62), rgba(25, 40, 54, 0.76), rgba(11, 30, 48, 0.9));
}

.locked-row .selection-status {
  border-color: rgba(130, 145, 156, 0.6);
  background: rgba(76, 98, 118, 0.26);
  color: #c7d3de;
}

.locked-row h3,
.locked-row h3 .fav-team,
.locked-row h3 .dog-team {
  color: #b4c6d3;
}

.locked-row .meta.favorite-question {
  color: #a4b8c7;
}

.locked-row .pick-btn:disabled .pick-btn-label,
.locked-row .pick-btn:disabled .pick-btn-odds {
  color: #8ea3b3 !important;
  text-shadow: none;
}

.pick-btn:disabled {
  opacity: 0.45;
}

.league-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 13, 24, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  padding: 10px 10px calc(env(safe-area-inset-bottom, 0px) + 84px);
}

.league-overlay.arrange-context {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
}

.league-sheet {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(127, 197, 236, 0.45);
  background: linear-gradient(160deg, rgba(7, 29, 49, 0.97), rgba(11, 41, 70, 0.96));
  padding: 10px;
  max-height: min(78vh, 560px);
  animation: league-sheet-up 220ms ease-out both;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 42px 96px;
  gap: 8px;
  align-items: center;
}

.table-head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 8px 0 6px;
}

.table-scroll {
  max-height: min(56vh, 420px);
  overflow: auto;
  display: grid;
  gap: 6px;
  padding-right: 2px;
}

.table-row {
  border: 1px solid rgba(103, 232, 255, 0.28);
  border-radius: 9px;
  background: rgba(7, 27, 42, 0.86);
  padding: 7px 8px;
  font-size: 13px;
}

.table-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-pos,
.table-pts {
  text-align: right;
}

.table-team {
  min-width: 0;
}

.table-form {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 0;
}

.table-form-badge {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: #f6fbff;
  border: 1px solid rgba(140, 188, 212, 0.45);
  background: rgba(32, 64, 89, 0.86);
}

.table-form-badge.w {
  border-color: rgba(46, 230, 184, 0.72);
  background: linear-gradient(145deg, rgba(43, 201, 156, 0.9), rgba(27, 146, 114, 0.92));
}

.table-form-badge.d {
  border-color: rgba(103, 232, 255, 0.62);
  background: linear-gradient(145deg, rgba(71, 151, 197, 0.88), rgba(45, 97, 146, 0.9));
}

.table-form-badge.l {
  border-color: rgba(255, 111, 134, 0.72);
  background: linear-gradient(145deg, rgba(170, 70, 95, 0.9), rgba(126, 48, 71, 0.92));
}

.table-form-empty {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.table-row-focus {
  border-color: rgba(75, 228, 189, 0.72);
  background: linear-gradient(130deg, rgba(28, 90, 89, 0.48), rgba(24, 57, 92, 0.42));
  box-shadow: 0 0 0 1px rgba(75, 228, 189, 0.2) inset;
}

.table-cache-note {
  margin: 8px 0 0;
  font-size: 11px;
}

@keyframes league-sheet-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.arrange-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  position: relative;
  z-index: 2;
}

.arrange-grid-wrap {
  position: relative;
  margin-top: 18px;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  padding-right: 0;
  padding-bottom: 0;
  overflow: visible;
}

.dashboard-grid-wrap {
  position: relative;
  overflow: visible;
}

.grid-connectors {
  --g: 8px;
  --w: 2px;
  --cell: calc((100% - (2 * var(--g))) / 3);
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.grid-connectors span {
  position: absolute;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  transition: background-color 240ms ease, box-shadow 240ms ease, opacity 240ms ease;
}

.arrange-grid-wrap .grid-connectors span {
  background: rgba(130, 205, 245, 0.46);
  box-shadow: 0 0 8px rgba(62, 164, 214, 0.18);
}

.dashboard-grid-preview .grid-connectors span {
  background: rgba(219, 238, 255, 0.24);
}

.dashboard-grid-preview .grid-connectors span.preview-active {
  background: rgba(78, 220, 255, 0.88);
  box-shadow: 0 0 10px rgba(78, 220, 255, 0.52);
  animation: dashboard-line-connector-pulse 1.4s ease-in-out infinite;
}

.conn-h {
  width: var(--g);
  height: var(--w);
}

.h1a { left: var(--cell); top: calc(var(--cell) / 2); }
.h1b { left: calc((2 * var(--cell)) + var(--g)); top: calc(var(--cell) / 2); }
.h2a { left: var(--cell); top: calc(var(--cell) + var(--g) + (var(--cell) / 2)); }
.h2b { left: calc((2 * var(--cell)) + var(--g)); top: calc(var(--cell) + var(--g) + (var(--cell) / 2)); }
.h3a { left: var(--cell); top: calc((2 * var(--cell)) + (2 * var(--g)) + (var(--cell) / 2)); }
.h3b { left: calc((2 * var(--cell)) + var(--g)); top: calc((2 * var(--cell)) + (2 * var(--g)) + (var(--cell) / 2)); }

.conn-v {
  width: var(--w);
  height: var(--g);
}

.v1a { left: calc(var(--cell) / 2); top: var(--cell); }
.v1b { left: calc(var(--cell) / 2); top: calc((2 * var(--cell)) + var(--g)); }
.v2a { left: calc(var(--cell) + var(--g) + (var(--cell) / 2)); top: var(--cell); }
.v2b { left: calc(var(--cell) + var(--g) + (var(--cell) / 2)); top: calc((2 * var(--cell)) + var(--g)); }
.v3a { left: calc((2 * var(--cell)) + (2 * var(--g)) + (var(--cell) / 2)); top: var(--cell); }
.v3b { left: calc((2 * var(--cell)) + (2 * var(--g)) + (var(--cell) / 2)); top: calc((2 * var(--cell)) + var(--g)); }

.conn-d {
  width: calc(var(--g) * 1.414);
  height: var(--w);
  transform-origin: center;
}

.d1 {
  left: calc(var(--cell) + (var(--g) / 2));
  top: calc(var(--cell) + (var(--g) / 2));
  transform: translate(-50%, -50%) rotate(45deg);
}

.d2 {
  left: calc((2 * var(--cell)) + (3 * var(--g) / 2));
  top: calc(var(--cell) + (var(--g) / 2));
  transform: translate(-50%, -50%) rotate(-45deg);
}

.d3 {
  left: calc(var(--cell) + (var(--g) / 2));
  top: calc((2 * var(--cell)) + (3 * var(--g) / 2));
  transform: translate(-50%, -50%) rotate(-45deg);
}

.d4 {
  left: calc((2 * var(--cell)) + (3 * var(--g) / 2));
  top: calc((2 * var(--cell)) + (3 * var(--g) / 2));
  transform: translate(-50%, -50%) rotate(45deg);
}

.arrange-slot {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid rgba(173, 216, 242, 0.84);
  border-radius: 12px;
  background: linear-gradient(158deg, rgba(16, 54, 82, 0.64), rgba(4, 24, 40, 0.92));
  padding: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  text-align: left;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(226, 241, 255, 0.2) inset,
    0 10px 18px rgba(0, 0, 0, 0.2);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease, filter 170ms ease;
}

.arrange-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 12%, rgba(222, 243, 255, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

.slot.dashboard-preview-target {
  border-color: rgba(73, 221, 255, 0.86);
  box-shadow: 0 0 0 1px rgba(73, 221, 255, 0.35), inset 0 0 0 1px rgba(73, 221, 255, 0.24);
  animation: dashboard-line-slot-pulse 1.4s ease-in-out infinite;
}

.arrange-slot.active {
  outline: none;
}

.arrange-slot.active-drop {
  outline: none;
  border-color: rgba(89, 229, 255, 0.98);
  box-shadow:
    0 0 0 2px rgba(89, 229, 255, 0.42),
    0 0 16px rgba(89, 229, 255, 0.34),
    0 10px 18px rgba(0, 0, 0, 0.2);
  filter: brightness(1.1);
  transform: scale(1.025);
  animation: arrange-slot-drop-target-pulse 760ms ease-in-out infinite;
}

.arrange-slot.active-drop .tile {
  border-color: rgba(89, 229, 255, 0.68);
}

.arrange-slot .tile {
  width: 100%;
  height: 100%;
  border-width: 2px;
  border-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background:
    linear-gradient(165deg, rgba(12, 52, 79, 0.58) 0%, rgba(7, 30, 49, 0.84) 58%, rgba(5, 20, 35, 0.93) 100%),
    linear-gradient(180deg, rgba(71, 195, 255, 0.06), rgba(20, 66, 100, 0));
}

.arrange-slot .tile .title {
  margin: 0;
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
  color: #e8f5ff;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.arrange-outcome-copy {
  margin-top: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.arrange-favorite-label {
  margin: 0;
  font-size: 11px;
  line-height: 1.1;
  color: #dcebf7;
  font-weight: 700;
}

.arrange-pick-label {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.arrange-pick-label.win {
  color: #38ebaf;
}

.arrange-pick-label.lose {
  color: #ff7f8d;
}

body.screen-arrange .arrange-pick-label.win {
  color: #38ebaf !important;
  text-shadow: none !important;
  filter: none !important;
  animation: none !important;
}

body.screen-arrange .arrange-pick-label.lose {
  color: #ff7f8d !important;
  text-shadow: none !important;
  filter: none !important;
  animation: none !important;
}

.arrange-slot .tile .odds {
  margin-top: auto;
  align-self: flex-start;
  color: #ffd270;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
}

.line-rail-right,
.line-rail-bottom {
  display: none;
}

.arrange-grid-wrap .line-chip,
.dashboard-grid-wrap .line-chip {
  position: absolute;
  min-width: 24px;
  padding: 0 5px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(207, 233, 255, 0.76);
  background: linear-gradient(160deg, rgba(34, 102, 154, 0.94), rgba(18, 61, 102, 0.96));
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #f4fbff;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  cursor: default;
  pointer-events: none;
  z-index: 2;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 5px 12px rgba(0, 0, 0, 0.2);
  transition: transform 170ms ease, filter 170ms ease, box-shadow 170ms ease, border-color 170ms ease, background 170ms ease;
}

.arrange-grid-wrap .line-chip {
  pointer-events: auto;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.dashboard-grid-wrap .line-chip {
  pointer-events: none;
}

.arrange-grid-wrap .line-chip.line-chip-selected {
  color: #07233b;
  border-color: rgba(49, 223, 162, 0.98);
  background: linear-gradient(160deg, rgba(61, 237, 176, 0.98), rgba(38, 195, 156, 0.98));
  box-shadow:
    0 0 0 2px rgba(49, 223, 162, 0.34),
    0 0 16px rgba(49, 223, 162, 0.34);
}

.arrange-slot.line-focus-target {
  border-color: rgba(49, 223, 162, 0.98);
  box-shadow: inset 0 0 0 2px rgba(49, 223, 162, 0.32);
}

.arrange-slot.line-focus-muted {
  opacity: 0.35;
  filter: grayscale(0.45);
}

.line-chip-hidden {
  display: none !important;
}

.line-chip-won {
  color: #07233b !important;
  border-color: rgba(49, 223, 162, 0.98) !important;
  background: linear-gradient(160deg, rgba(61, 237, 176, 0.98), rgba(38, 195, 156, 0.98)) !important;
  box-shadow:
    0 0 0 2px rgba(49, 223, 162, 0.3),
    0 0 14px rgba(49, 223, 162, 0.28);
}

@keyframes dashboard-line-connector-pulse {
  0%,
  100% {
    opacity: 0.78;
    box-shadow: 0 0 0 rgba(78, 220, 255, 0.2);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 12px rgba(78, 220, 255, 0.66);
  }
}

@keyframes dashboard-line-slot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(73, 221, 255, 0.3), inset 0 0 0 1px rgba(73, 221, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(73, 221, 255, 0.45), inset 0 0 0 1px rgba(73, 221, 255, 0.3);
  }
}

.chip-top-right {
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
}

.chip-right-r1,
.chip-right-r2,
.chip-right-r3 {
  right: 0;
  transform: translate(50%, -50%);
}

.chip-right-r1 { top: 16.5%; }
.chip-right-r2 { top: 50%; }
.chip-right-r3 { top: 83.5%; }

.chip-bottom-c1,
.chip-bottom-c2,
.chip-bottom-c3,
.chip-bottom-right {
  bottom: 0;
  transform: translate(-50%, 50%);
}

.chip-bottom-c1 { left: 16.5%; }
.chip-bottom-c2 { left: 50%; }
.chip-bottom-c3 { left: 83.5%; }
.chip-bottom-right {
  left: 100%;
}

/* Backward compatibility for stale app.js cache using old class names. */
.line-r,
.line-b,
.line-r1,
.line-r2,
.line-r3,
.line-diag-main,
.line-c1,
.line-c2,
.line-c3,
.line-diag-anti {
  position: absolute;
}

.line-r { right: -1px; transform: translateY(-50%); }
.line-r1 { top: 16.5%; }
.line-r2 { top: 50%; }
.line-r3 { top: 83.5%; }
.line-diag-main { top: -1px; right: -1px; transform: none; }

.line-b { bottom: -1px; transform: translateX(-50%); }
.line-c1 { left: 16.5%; }
.line-c2 { left: 50%; }
.line-c3 { left: 83.5%; }
.line-diag-anti { left: calc(100% - 1px); }

.arrange-total-box {
  margin-top: 20px;
  border: 1px solid rgba(255, 200, 87, 0.35);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 200, 87, 0.08);
}

.live-points-box {
  margin-top: 20px;
}

body.dashboard-mode .live-points-box .live-summary-primary {
  font-size: 17px;
  font-weight: 700;
}

body.dashboard-mode .live-points-box .live-summary-secondary {
  margin-top: 4px;
  font-size: 15px;
}

body.dashboard-mode .arrange-total-box.live-points-box {
  border-color: rgba(124, 198, 235, 0.36);
  border-radius: 12px;
  background:
    radial-gradient(circle at 14% 10%, rgba(90, 198, 245, 0.12), transparent 40%),
    rgba(9, 38, 61, 0.62);
  box-shadow: 0 1px 0 rgba(225, 241, 255, 0.08) inset;
}

.arrange-bench {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.arrange-item {
  border: 1px solid rgba(50,225,168,0.35);
  border-radius: 11px;
  background: rgba(7, 40, 58, 0.8);
  padding: 8px;
}

.arrange-item.active {
  outline: 2px solid rgba(255, 200, 87, 0.65);
}

.arrange-confirm-btn {
  margin-top: 0;
  width: 100%;
  min-height: 64px;
  font-size: 16px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.arrange-confirm-btn.is-locking {
  border-color: rgba(96, 244, 194, 0.95);
  background: linear-gradient(130deg, rgba(36, 184, 145, 0.98), rgba(41, 131, 188, 0.98));
  box-shadow:
    0 0 0 1px rgba(96, 244, 194, 0.2) inset,
    0 0 18px rgba(73, 226, 183, 0.35);
  animation: submit-lock-btn-pulse 900ms ease-in-out infinite;
}

.submit-points-value {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.notice {
  margin-top: 8px;
  border-radius: 10px;
  padding: 8px;
  background: rgba(54, 215, 255, 0.09);
  border: 1px solid rgba(127, 197, 236, 0.35);
  font-size: 13px;
}

.notice.error {
  background: rgba(255, 106, 122, 0.16);
  border-color: rgba(255, 106, 122, 0.52);
  color: #ffd9de;
}

.field-label {
  display: block;
  margin: 8px 0 4px;
  font-size: 12px;
  color: var(--muted);
}

.input {
  width: 100%;
  border: 1px solid rgba(127, 197, 236, 0.35);
  border-radius: 10px;
  background: rgba(6, 23, 37, 0.92);
  color: var(--ink);
  padding: 10px;
  font-size: 16px;
}

.input-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.input-action-btn {
  border: 1px solid rgba(127, 197, 236, 0.38);
  border-radius: 10px;
  background: rgba(9, 31, 50, 0.92);
  color: #d8e9f3;
  min-height: 42px;
  padding: 0 14px;
  font-weight: 700;
}

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

.admin-results-list {
  display: grid;
  gap: 8px;
  max-height: 44vh;
  overflow-y: auto;
  padding-right: 2px;
}

.admin-main-tabs {
  margin: 10px 0;
}

.admin-main-tabs .tab-btn {
  flex: 1 1 0;
  min-width: 0;
}

.prediction-admin-input-row {
  margin-top: 8px;
}

.prediction-admin-row {
  border: 1px solid rgba(127, 197, 236, 0.28);
  border-radius: 10px;
  background: rgba(9, 35, 54, 0.84);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.prediction-admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-match-row {
  border: 1px solid rgba(127, 197, 236, 0.28);
  border-radius: 10px;
  background: rgba(9, 35, 54, 0.84);
  padding: 8px;
  display: grid;
  gap: 8px;
}

.admin-match-row strong {
  display: block;
  margin-bottom: 2px;
}

.admin-result-select {
  font-size: 14px;
}

.admin-api-actions {
  margin: 10px 0 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-result-controls {
  display: grid;
  gap: 6px;
}

.admin-result-tools {
  justify-content: flex-end;
  gap: 6px;
}

.admin-mini-btn {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-api-note {
  margin-top: 4px;
}

.admin-suggestion-pill {
  font-size: 11px;
  padding: 3px 8px;
}

.arrange-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.arrange-card.lock-in-active .arrange-grid-wrap {
  position: relative;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(103, 229, 255, 0.28),
    0 0 24px rgba(79, 209, 255, 0.42),
    0 0 46px rgba(57, 170, 255, 0.26);
  animation: submit-lock-grid-aura 900ms ease-in-out infinite;
}

.arrange-card.lock-in-active .arrange-grid-wrap::before {
  content: "";
  position: absolute;
  inset: -6px;
  pointer-events: none;
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0), rgba(116, 242, 204, 0.26), rgba(255, 255, 255, 0));
  transform: translateX(-120%);
  animation: submit-lock-grid-sweep 860ms cubic-bezier(0.16, 1, 0.3, 1) both;
  z-index: 3;
}

.arrange-card.lock-in-active .arrange-slot.filled {
  animation: submit-lock-tile-pop 900ms cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  border-color: rgba(128, 234, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(126, 231, 255, 0.34) inset,
    0 0 18px rgba(86, 213, 255, 0.3);
}

.arrange-card.lock-in-active .arrange-slot.filled:nth-child(1) { animation-delay: 0ms; }
.arrange-card.lock-in-active .arrange-slot.filled:nth-child(2) { animation-delay: 35ms; }
.arrange-card.lock-in-active .arrange-slot.filled:nth-child(3) { animation-delay: 70ms; }
.arrange-card.lock-in-active .arrange-slot.filled:nth-child(4) { animation-delay: 105ms; }
.arrange-card.lock-in-active .arrange-slot.filled:nth-child(5) { animation-delay: 140ms; }
.arrange-card.lock-in-active .arrange-slot.filled:nth-child(6) { animation-delay: 175ms; }
.arrange-card.lock-in-active .arrange-slot.filled:nth-child(7) { animation-delay: 210ms; }
.arrange-card.lock-in-active .arrange-slot.filled:nth-child(8) { animation-delay: 245ms; }
.arrange-card.lock-in-active .arrange-slot.filled:nth-child(9) { animation-delay: 280ms; }

.arrange-card.lock-in-active .arrange-grid-wrap .grid-connectors span {
  background: rgba(93, 225, 255, 0.88);
  box-shadow: 0 0 12px rgba(93, 225, 255, 0.56);
  animation: submit-lock-connector-flare 820ms ease-in-out infinite;
}

.arrange-card.lock-in-active .arrange-grid-wrap .line-chip {
  border-color: rgba(151, 236, 255, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 0 14px rgba(99, 219, 255, 0.4);
}

.arrange-mini-chip:disabled,
.league-table-btn:disabled {
  opacity: 0.55;
}

.arrange-submit-spacer {
  flex: 0 0 34px;
  min-height: 34px;
}

.arrange-card * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.submit-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(2, 10, 18, 0.64);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  animation: submit-overlay-fade-in 260ms ease both;
}

.submit-success-card {
  width: min(92vw, 360px);
  border-radius: 16px;
  border: 1px solid rgba(123, 209, 240, 0.42);
  background:
    radial-gradient(circle at 16% 8%, rgba(116, 231, 198, 0.24), transparent 42%),
    linear-gradient(150deg, rgba(8, 39, 60, 0.96), rgba(7, 28, 44, 0.98));
  box-shadow:
    0 1px 0 rgba(227, 242, 255, 0.14) inset,
    0 18px 36px rgba(0, 0, 0, 0.36);
  padding: 18px 16px 16px;
  text-align: center;
  animation: submit-success-rise 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.submit-success-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border-radius: 999px;
  border: 1px solid rgba(123, 243, 208, 0.85);
  background: linear-gradient(140deg, rgba(45, 209, 162, 0.95), rgba(32, 132, 188, 0.95));
  color: #f4fffc;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 28px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 18px rgba(73, 228, 185, 0.42);
}

.submit-success-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.submit-success-meta {
  margin: 6px 0 0;
  color: #c8dfed;
  font-size: 13px;
}

.submit-success-meta strong {
  color: #f2fffb;
  font-weight: 800;
}

.submit-success-ok-btn {
  margin-top: 14px;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 800;
}

.dashboard-announce-overlay {
  position: fixed;
  inset: 0;
  z-index: 1420;
  background: rgba(2, 10, 18, 0.64);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 14px;
  animation: submit-overlay-fade-in 260ms ease both;
}

.dashboard-announce-wrap {
  display: grid;
  justify-items: center;
  row-gap: 6px;
}

.dashboard-announce-card {
  position: relative;
  min-height: 0;
  width: min(92vw, 392px);
  border-radius: 16px;
  border: 1px solid rgba(123, 209, 240, 0.42);
  background:
    radial-gradient(circle at 16% 8%, rgba(116, 231, 198, 0.24), transparent 42%),
    linear-gradient(150deg, rgba(8, 39, 60, 0.96), rgba(7, 28, 44, 0.98));
  box-shadow:
    0 1px 0 rgba(227, 242, 255, 0.14) inset,
    0 18px 36px rgba(0, 0, 0, 0.36);
  overflow: visible;
  text-align: center;
  animation: submit-success-rise 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.dashboard-announce-card-inner {
  max-height: min(560px, calc(100svh - 180px));
  overflow-y: auto;
  border-radius: inherit;
  padding: 18px 16px 16px;
}

.dashboard-announce-mascot {
  width: 132px;
  margin-top: 4px;
  transform: translateX(92px);
  pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(2, 10, 18, 0.5));
}

.dashboard-announce-mascot img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.dashboard-announce-wrap.compact .dashboard-announce-card {
  max-height: none;
}

.dashboard-announce-wrap.compact .dashboard-announce-card-inner {
  max-height: min(620px, calc(100svh - 150px));
}

.dashboard-announce-wrap.compact .help-overlay-card-dashboard::after {
  right: 78px;
}

.dashboard-announce-wrap.compact .dashboard-announce-mascot {
  width: 116px;
  margin-top: 0;
  transform: translateX(78px);
}

.dashboard-announce-symbol {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 12px;
  border: 1px solid rgba(120, 206, 240, 0.5);
  background: rgba(14, 57, 82, 0.6);
  color: #e7f7ff;
  font-size: 27px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 0 18px rgba(73, 228, 185, 0.24);
}

.dashboard-announce-text {
  margin: 0;
  color: #d0e4f1;
  line-height: 1.5;
  white-space: pre-wrap;
}

.dashboard-announce-text + .dashboard-announce-text {
  margin-top: 8px;
}

.dashboard-announce-text.align-left {
  text-align: left;
}

.dashboard-announce-text.align-center {
  text-align: center;
}

.dashboard-announce-text.align-right {
  text-align: right;
}

.dashboard-announce-ok-btn {
  margin-top: 14px;
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 800;
}

.help-overlay {
  position: fixed;
  inset: 0;
  z-index: 1410;
  background: rgba(2, 10, 18, 0.64);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 14px;
  animation: submit-overlay-fade-in 260ms ease both;
}

.help-overlay-card {
  position: relative;
  width: min(92vw, 392px);
  min-height: 360px;
  border-radius: 16px;
  border: 1px solid rgba(123, 209, 240, 0.42);
  background:
    radial-gradient(circle at 16% 8%, rgba(116, 231, 198, 0.24), transparent 42%),
    linear-gradient(150deg, rgba(8, 39, 60, 0.96), rgba(7, 28, 44, 0.98));
  box-shadow:
    0 1px 0 rgba(227, 242, 255, 0.14) inset,
    0 18px 36px rgba(0, 0, 0, 0.36);
  padding: 22px 18px 16px;
  text-align: center;
  animation: submit-success-rise 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.help-overlay-dashboard-wrap {
  display: grid;
  justify-items: center;
  row-gap: 6px;
}

.help-overlay-card-dashboard::after {
  content: "";
  position: absolute;
  right: 88px;
  bottom: -14px;
  width: 26px;
  height: 26px;
  border-right: 1px solid rgba(123, 209, 240, 0.42);
  border-bottom: 1px solid rgba(123, 209, 240, 0.42);
  background: linear-gradient(150deg, rgba(8, 39, 60, 0.96), rgba(7, 28, 44, 0.98));
  transform: rotate(45deg);
  z-index: 2;
}

.help-overlay-dashboard-mascot {
  width: 132px;
  margin-top: 4px;
  transform: translateX(92px);
  pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(2, 10, 18, 0.5));
}

.help-overlay-dashboard-mascot img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.help-overlay-selection .help-overlay-card-dashboard::after {
  right: 84px;
}

.help-overlay-selection .help-overlay-dashboard-mascot {
  width: 139px;
  margin-top: 12px;
  transform: translateX(86px);
}

.help-overlay-arrange .help-overlay-card-dashboard::after {
  right: 80px;
}

.help-overlay-arrange .help-overlay-dashboard-mascot {
  width: 158px;
  margin-top: 8px;
  transform: translateX(74px);
}

.help-overlay-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.help-overlay-text {
  margin: 10px 0 0;
  color: #d0e4f1;
  font-size: 16px;
  line-height: 1.5;
}

.help-overlay-text p {
  margin: 0;
}

.help-overlay-text p + p {
  margin-top: 8px;
}

.help-overlay-text strong {
  font-weight: 800;
  color: #eef8ff;
}

.help-overlay-ok-btn {
  margin-top: 14px;
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 800;
}

.help-mini-grid-demo {
  margin: 12px auto 4px;
  display: grid;
  place-items: center;
}

.help-mini-grid-board {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(127, 197, 236, 0.26);
  background:
    radial-gradient(circle at 20% 12%, rgba(104, 194, 244, 0.2), transparent 52%),
    rgba(7, 31, 50, 0.92);
}

.help-mini-cell {
  border-radius: 8px;
  border: 1px solid rgba(155, 204, 236, 0.4);
  background: linear-gradient(170deg, rgba(68, 85, 108, 0.76), rgba(34, 48, 70, 0.9));
}

.help-mini-cell.target {
  border-color: rgba(124, 237, 196, 0.92);
  box-shadow: 0 0 0 1px rgba(124, 237, 196, 0.2) inset;
}

.help-mini-drag-tile {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(106, 224, 255, 0.9);
  background: linear-gradient(150deg, rgba(51, 203, 164, 0.95), rgba(46, 127, 211, 0.95));
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.32);
  animation: help-mini-drag-move 1600ms ease-in-out infinite;
}

.drag-ghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border-radius: 11px;
  border: 1px solid rgba(63, 214, 255, 0.85);
  background: transparent;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
  opacity: 0.92;
}

.drag-ghost .tile {
  width: 100%;
  height: 100%;
}

.arrange-slot.dragging-source {
  opacity: 0.34;
  transform: scale(0.98);
}

.hidden {
  display: none !important;
}

@keyframes submit-lock-btn-pulse {
  0%, 100% {
    filter: brightness(1);
    box-shadow:
      0 0 0 1px rgba(96, 244, 194, 0.2) inset,
      0 0 14px rgba(73, 226, 183, 0.32);
  }
  50% {
    filter: brightness(1.08);
    box-shadow:
      0 0 0 1px rgba(96, 244, 194, 0.24) inset,
      0 0 24px rgba(73, 226, 183, 0.52);
  }
}

@keyframes arrange-slot-drop-target-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(89, 229, 255, 0.36),
      0 0 14px rgba(89, 229, 255, 0.28),
      0 10px 18px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(89, 229, 255, 0.55),
      0 0 24px rgba(89, 229, 255, 0.46),
      0 10px 18px rgba(0, 0, 0, 0.2);
  }
}

@keyframes help-mini-drag-move {
  0% {
    transform: translate(0, 0) scale(1);
  }
  20% {
    transform: translate(0, 0) scale(1.06);
  }
  55% {
    transform: translate(42px, 42px) scale(1.06);
  }
  75% {
    transform: translate(42px, 42px) scale(1);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes submit-lock-grid-sweep {
  from {
    opacity: 0;
    transform: translateX(-120%);
  }
  25% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes submit-lock-tile-pop {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  45% {
    transform: scale(1.045);
    filter: brightness(1.12);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes submit-lock-grid-aura {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(103, 229, 255, 0.28),
      0 0 24px rgba(79, 209, 255, 0.42),
      0 0 46px rgba(57, 170, 255, 0.26);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(136, 240, 255, 0.42),
      0 0 34px rgba(89, 219, 255, 0.58),
      0 0 62px rgba(62, 182, 255, 0.38);
    filter: brightness(1.07);
  }
}

@keyframes submit-lock-connector-flare {
  0%, 100% {
    opacity: 0.82;
    box-shadow: 0 0 8px rgba(93, 225, 255, 0.44);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 16px rgba(93, 225, 255, 0.72);
  }
}

@keyframes submit-overlay-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes submit-success-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 390px) {
  h1 { font-size: 22px; }
  h2 { font-size: 16px; }

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

  .profile-box,
  .leaderboard-box {
    min-height: 0;
  }
}
