@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #090b2b;
  --muted: #8a8a9e;
  --line: rgba(23, 21, 31, 0.12);
  --paper: #ffffff;
  --panel: rgba(255, 255, 255, 0.86);
  --white: #ffffff;
  --black: #000000;
  --red-a: #ff006a;
  --red-b: #ff4b2b;
  --blue-a: #00b8ff;
  --blue-b: #0074ff;
  --premium-a: #5b00b8;
  --premium-b: #c000ff;
  font-family: "Vazirmatn", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  direction: rtl;
  overflow-x: hidden;
  font-family: "Vazirmatn", sans-serif;
}

button,
input,
select {
  font: inherit;
  font-family: "Vazirmatn", sans-serif;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red-a), var(--blue-a));
  color: white;
  font-weight: 800;
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.pill {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.screen {
  display: none;
  min-height: 0;
}

.screen.active {
  display: block;
}

body.is-game {
  background: var(--blue-b);
}

body.is-game .app-shell {
  grid-template-rows: 1fr;
}

body.is-game .topbar,
body.is-game .bottom-nav,
body.is-game .game-toolbar {
  display: none;
}

body.is-categories .topbar {
  display: none;
}

body.is-profile .topbar {
  display: none;
}

body.is-app-page .topbar {
  display: none;
}

body.is-challenge .bottom-nav {
  display: none;
}

body.is-challenge .challenge-page {
  min-height: 100vh;
  padding: 0;
  background: var(--white);
  overflow: hidden;
}

body.is-challenge .challenge-page > .categories-header,
body.is-challenge .challenge-page > .categories-titlebar {
  display: none;
}

.top-actions,
.categories-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xp-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(9, 11, 43, 0.1);
  direction: rtl;
}

.xp-chip span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--premium-b), var(--premium-a));
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
}

.xp-chip strong {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.xp-chip.raised {
  min-height: 44px;
  padding: 6px 12px;
}

.header-back {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(9, 11, 43, 0.1);
}

.header-back svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.7;
}

.xp-icon svg,
.score-icon svg,
.profile-stats svg,
.badge svg,
.category-emoji svg,
.avatar svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.page-surface {
  position: relative;
  min-height: 100vh;
  padding: 44px 18px 112px;
  background:
    radial-gradient(circle at 12% 2%, rgba(192, 0, 255, 0.12), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(0, 184, 255, 0.1), transparent 24%),
    var(--white);
  overflow: hidden;
}

.home {
  padding-bottom: 112px;
}

.home > *:not(.home-aurora) {
  position: relative;
  z-index: 1;
}

.home-aurora {
  position: absolute;
  inset: 36% -30% -18%;
  z-index: 0;
  opacity: 0.48;
  filter: blur(26px) saturate(1.2);
  background:
    conic-gradient(from 10deg, rgba(255, 0, 106, 0.58), rgba(0, 184, 255, 0.48), rgba(192, 0, 255, 0.5), rgba(255, 75, 43, 0.5), rgba(255, 0, 106, 0.58));
  transform: rotate(0deg) scale(1.04);
  animation: auroraFlow 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.categories-page {
  min-height: 100vh;
}

.categories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
  direction: rtl;
}

.categories-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: rtl;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red-a), var(--blue-a));
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(192, 0, 255, 0.18);
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-text {
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.circle-action {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--premium-b), var(--premium-a));
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(91, 0, 184, 0.24);
}

.categories-titlebar {
  margin-bottom: 20px;
}

.categories-titlebar h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(32px, 10vw, 40px);
  font-weight: 900;
  line-height: 1.05;
}

.categories-titlebar p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
}

.guide-copy {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.guide-copy p,
.question-note {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.9;
}

.guide-copy p {
  padding: 0 2px;
}

.game-mode-teaser {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.game-mode-teaser button {
  min-height: 112px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.36), transparent 28%),
    linear-gradient(135deg, var(--red-a), var(--premium-b));
  color: var(--white);
  text-align: right;
  box-shadow: 0 18px 34px rgba(91, 0, 184, 0.18), 0 0 24px rgba(255, 0, 106, 0.12);
}

.game-mode-teaser button:nth-child(2) {
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, var(--blue-a), var(--blue-b));
}

.game-mode-teaser span {
  font-size: 22px;
  font-weight: 900;
}

.game-mode-teaser strong {
  max-width: 92%;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.8;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  direction: rtl;
}

.action,
.category,
.question-row {
  min-height: 112px;
  padding: 18px;
  border-radius: 30px;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  text-align: right;
  box-shadow: 0 16px 34px rgba(9, 11, 43, 0.08);
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 180ms ease;
}

.action:active,
.category:active {
  transform: scale(0.97);
  box-shadow: 0 10px 24px rgba(9, 11, 43, 0.08);
}

.action strong,
.category strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 800;
}

.action span,
.category span,
.question-row span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.category-card {
  position: relative;
  min-height: 212px;
  aspect-ratio: 0.78;
  display: grid;
  justify-items: center;
  align-content: space-between;
  gap: 10px;
  padding: 24px 13px 20px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 48% 18%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(165deg, var(--card-a, var(--red-a)), var(--card-b, var(--blue-b)));
  color: var(--white);
  text-align: center;
  direction: rtl;
  overflow: hidden;
  box-shadow: 0 18px 30px rgba(9, 11, 43, 0.16), 0 0 28px rgba(192, 0, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 180ms ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%);
  pointer-events: none;
}

.category-card:active {
  transform: scale(0.97);
  box-shadow: 0 12px 24px rgba(9, 11, 43, 0.16), 0 0 22px rgba(255, 0, 106, 0.18);
}

.category-card.locked {
  opacity: 0.7;
}

.category-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 48px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 900;
  direction: rtl;
}

.category-badge.new {
  background: rgba(255, 255, 255, 0.2);
}

.category-emoji {
  width: 82px;
  height: 82px;
  margin-top: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 18px 28px rgba(9, 11, 43, 0.1);
  backdrop-filter: blur(2px);
}

.category-emoji svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.75;
  filter: drop-shadow(0 6px 6px rgba(9, 11, 43, 0.14));
}

.category-card strong {
  position: relative;
  z-index: 1;
  max-width: 145px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.18;
  text-shadow: 0 4px 12px rgba(9, 11, 43, 0.22);
}

.category-card > span:last-child {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 800;
}

.game {
  height: 100vh;
  min-height: 620px;
  position: relative;
  background:
    radial-gradient(circle at 14% 98%, rgba(0, 184, 255, 0.16), transparent 16%),
    radial-gradient(circle at 88% 3%, rgba(255, 0, 106, 0.12), transparent 20%),
    var(--white);
  overflow: hidden;
  direction: rtl;
}

.game.loading::after {
  content: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.16) 44%, rgba(255, 255, 255, 0.34) 50%, rgba(255, 255, 255, 0.16) 56%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer 980ms linear infinite;
  pointer-events: none;
}

.game-loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.game.loading .game-loader {
  opacity: 1;
}

.loader-orbit {
  position: relative;
  width: 156px;
  height: 156px;
  animation: loaderOrbit 1.65s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.loader-card {
  position: absolute;
  width: 84px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--white);
  font-size: 54px;
  font-weight: 900;
  box-shadow: 0 0 34px currentColor;
}

.loader-card-red {
  right: 18px;
  bottom: 15px;
  background: linear-gradient(145deg, var(--red-a), var(--red-b));
  transform: rotate(-10deg);
}

.loader-card-blue {
  left: 18px;
  top: 10px;
  background: linear-gradient(145deg, var(--blue-a), var(--blue-b));
  transform: rotate(12deg);
}

.choice {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 92px 34px 62px;
  isolation: isolate;
  color: white;
  overflow: hidden;
  text-shadow: 0 4px 10px rgba(11, 24, 52, 0.22);
  transition: transform 520ms cubic-bezier(0.18, 0.9, 0.28, 1.2), filter 180ms ease, opacity 180ms ease, box-shadow 240ms ease;
  will-change: transform;
}

#choiceA {
  top: 0;
  height: 58%;
  z-index: 2;
  align-items: center;
  padding: 132px 34px 96px;
  background: linear-gradient(150deg, rgba(255, 75, 43, 0.93) 0%, rgba(255, 0, 106, 0.93) 100%);
  border-bottom-left-radius: 58px;
  border-bottom-right-radius: 118px 78px;
  box-shadow: 0 30px 48px rgba(160, 7, 90, 0.36), 0 0 46px rgba(255, 0, 106, 0.24);
  animation: topCardIn 620ms cubic-bezier(0.18, 0.9, 0.28, 1.16);
  transform: translateY(0) rotate(-0.35deg);
}

#choiceA::after {
  content: none;
}

#choiceB {
  bottom: 0;
  height: 56%;
  z-index: 1;
  align-items: center;
  padding: 88px 34px 112px;
  background: linear-gradient(152deg, rgba(0, 184, 255, 0.92) 0%, rgba(0, 116, 255, 0.92) 100%);
  border-top-left-radius: 118px 78px;
  border-top-right-radius: 58px;
  box-shadow: 0 -18px 42px rgba(0, 116, 255, 0.22), 0 0 48px rgba(0, 184, 255, 0.24);
  animation: bottomCardIn 620ms 80ms cubic-bezier(0.18, 0.9, 0.28, 1.16) backwards;
  transform: translateY(0) rotate(0.35deg);
}

.choice:active {
  filter: brightness(1.02) saturate(1.08);
}

.choice[disabled] {
  cursor: default;
}

.game.answered .choice {
  filter: saturate(1.04);
}

.game.answered #choiceA {
  transform: translateY(-86px) rotate(-1.15deg);
  box-shadow: 0 34px 54px rgba(160, 7, 90, 0.3), 0 0 50px rgba(255, 0, 106, 0.2);
}

.game.answered #choiceB {
  transform: translateY(86px) rotate(1.1deg);
  box-shadow: 0 -22px 48px rgba(0, 116, 255, 0.22), 0 0 54px rgba(0, 184, 255, 0.22);
}

.game:not(.answered) #choiceA:active {
  transform: translateY(0) rotate(-0.35deg) scale(0.975);
}

.game:not(.answered) #choiceB:active {
  transform: translateY(0) rotate(0.35deg) scale(0.975);
}

.choice-text {
  width: min(430px, 100%);
  margin: 0;
  font-size: clamp(20px, 6.6vw, 28px);
  font-weight: 700;
  line-height: 1.36;
  text-align: center;
  text-wrap: balance;
  direction: rtl;
  transition: transform 520ms cubic-bezier(0.18, 0.9, 0.28, 1.2);
  will-change: transform;
}

.game.answered #choiceA .choice-text {
  transform: translateY(86px) rotate(1.15deg);
}

.game.answered #choiceB .choice-text {
  transform: translateY(-86px) rotate(-1.1deg);
}

.result-stack {
  position: absolute;
  inset: calc(51% - 46px) auto auto 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.or-badge {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 14px 28px rgba(13, 24, 59, 0.24);
  transition: width 260ms cubic-bezier(0.34, 1.56, 0.64, 1), height 260ms cubic-bezier(0.34, 1.56, 0.64, 1), transform 220ms ease;
}

.game.answered .or-badge {
  width: 104px;
  height: 104px;
  font-size: 32px;
  animation: percentBounce 520ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.vote-tip {
  position: absolute;
  min-width: 132px;
  padding: 8px 13px;
  border-radius: 11px;
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(0) scale(0.88);
  transition: opacity 180ms ease, transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
  direction: rtl;
}

.vote-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  background: var(--black);
  transform: translateX(-50%) rotate(45deg);
}

.vote-tip.disagree,
.game.picked-a .vote-tip.agree {
  bottom: calc(100% + 12px);
  top: auto;
}

.vote-tip.disagree::after,
.game.picked-a .vote-tip.agree::after {
  bottom: -6px;
  top: auto;
}

.vote-tip.agree,
.game.picked-a .vote-tip.disagree {
  top: calc(100% + 12px);
  bottom: auto;
}

.vote-tip.agree::after,
.game.picked-a .vote-tip.disagree::after {
  top: -6px;
  bottom: auto;
}

.game.answered .vote-tip {
  opacity: 1;
}

.game.answered .vote-tip.disagree {
  transform: translateY(-8px) scale(1);
}

.game.answered .vote-tip.agree {
  transform: translateY(8px) scale(1);
}

.game.answered.picked-a .vote-tip.agree {
  transform: translateY(-8px) scale(1);
}

.game.answered.picked-a .vote-tip.disagree {
  transform: translateY(8px) scale(1);
}

.game-title {
  position: absolute;
  top: max(48px, env(safe-area-inset-top));
  left: 26px;
  right: 26px;
  z-index: 5;
  color: white;
  text-align: center;
  font-size: clamp(32px, 9vw, 40px);
  line-height: 1.15;
  font-weight: 900;
  text-shadow: 0 4px 12px rgba(80, 0, 42, 0.18);
  direction: rtl;
}

.floating-actions {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 7;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.round-btn {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 32px rgba(3, 54, 151, 0.18);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1), background 180ms ease;
}

.round-btn:active,
.next-float:active {
  transform: scale(0.92);
}

.round-btn svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
}

.next-float {
  position: absolute;
  left: 50%;
  bottom: max(34px, env(safe-area-inset-bottom));
  z-index: 8;
  min-width: 116px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(3, 54, 151, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.next-float.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  animation: buttonPop 380ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.next-float.show:active {
  transform: translate(-50%, 0) scale(0.94);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 4px;
  min-height: 86px;
  padding: 10px 14px max(8px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  direction: rtl;
  overflow: visible;
}

.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
  min-height: 68px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-item {
  position: relative;
  z-index: 2;
  min-width: 58px;
  min-height: 58px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  transition: color 220ms ease, transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-active-indicator {
  position: absolute;
  top: 0;
  right: auto;
  left: 0;
  z-index: 1;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--premium-b), var(--premium-a));
  box-shadow: 0 14px 28px rgba(91, 0, 184, 0.26), 0 0 22px rgba(192, 0, 255, 0.18);
  transition:
    transform 620ms cubic-bezier(0.18, 1.45, 0.22, 1),
    width 620ms cubic-bezier(0.18, 1.45, 0.22, 1),
    height 620ms cubic-bezier(0.18, 1.45, 0.22, 1);
  pointer-events: none;
}

.nav-item svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.nav-item span {
  max-width: 64px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.nav-item.active {
  color: var(--white);
  transform: translateY(-8px);
}

.icon-btn {
  min-width: 56px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
}

.profile-page {
  min-height: 100vh;
}

.profile-top {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  margin-bottom: 12px;
}

.profile-top h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 9vw, 40px);
  font-weight: 900;
  line-height: 1.05;
}

.profile-icon-btn {
  position: absolute;
  left: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--premium-a);
  box-shadow: 0 12px 26px rgba(9, 11, 43, 0.08);
}

.profile-icon-btn svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
}

.profile-hero {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin-bottom: 20px;
}

.avatar {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border: 5px solid var(--white);
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.45), transparent 24%),
    linear-gradient(145deg, var(--blue-a), var(--premium-a) 58%, var(--red-a));
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(91, 0, 184, 0.22);
}

.avatar svg {
  width: 62px;
  height: 62px;
  stroke-width: 1.8;
}

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

.profile-hero h3 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.18;
}

.level-chip {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(192, 0, 255, 0.1);
  color: var(--premium-a);
  font-size: 16px;
  font-weight: 800;
}

.level-progress {
  width: min(260px, 82vw);
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(138, 138, 158, 0.14);
  box-shadow: inset 0 0 0 1px rgba(9, 11, 43, 0.04);
}

.level-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-a), var(--premium-b), var(--red-a));
  transition: width 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.level-next {
  max-width: min(320px, 86vw);
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  line-height: 1.65;
}

.daily-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 36px rgba(9, 11, 43, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.daily-panel h3,
.daily-panel p {
  margin: 0;
}

.daily-panel h3 {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.daily-panel p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.mission-list {
  display: grid;
  gap: 9px;
}

.mission-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  overflow: hidden;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(9, 11, 43, 0.06);
}

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

.mission-row strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.mission-row small,
.mission-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mission-row.complete span {
  color: var(--premium-a);
}

.mission-row i,
.badge-detail i {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(138, 138, 158, 0.14);
}

.mission-row i b,
.badge-detail i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-a), var(--red-a));
  transition: width 450ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.dilemma-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0, 184, 255, 0.12), rgba(255, 0, 106, 0.12));
  color: var(--ink);
}

.dilemma-box > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--red-a), var(--blue-b));
  color: var(--white);
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(255, 0, 106, 0.22);
}

.dilemma-box.ready > span,
.dilemma-box.opened > span {
  animation: badge-pop 560ms cubic-bezier(0.18, 1.3, 0.25, 1);
}

.dilemma-box strong,
.dilemma-box small {
  display: block;
}

.dilemma-box strong {
  font-size: 17px;
  font-weight: 900;
}

.dilemma-box small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.profile-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(9, 11, 43, 0.08), inset 0 0 0 1px rgba(9, 11, 43, 0.04);
}

.profile-score {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  min-height: 94px;
  padding: 14px;
  margin-bottom: 20px;
}

.score-item {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  justify-content: center;
  align-items: center;
  column-gap: 12px;
}

.score-icon {
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--premium-b), var(--premium-a));
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.score-icon svg {
  width: 31px;
  height: 31px;
  stroke-width: 2;
}

.score-icon.flame {
  background: linear-gradient(135deg, var(--red-b), var(--red-a));
}

.score-item strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.score-item small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.score-divider {
  width: 1px;
  height: 56px;
  background: var(--line);
}

.profile-section-title {
  margin: 18px 2px 10px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 108px;
  align-items: center;
}

.profile-stats div {
  display: grid;
  justify-items: center;
  gap: 4px;
  border-left: 1px solid var(--line);
}

.profile-stats div:last-child {
  border-left: 0;
}

.profile-stats > div > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(91, 0, 184, 0.12);
  color: var(--premium-a);
  font-size: 17px;
  font-weight: 900;
}

.profile-stats svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.profile-stats strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.profile-stats small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.badge {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  opacity: 0.58;
}

.badge.unlocked {
  opacity: 1;
}

.badge > .badge-emblem {
  position: relative;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--blue-a), var(--premium-b));
  color: var(--white);
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(91, 0, 184, 0.2);
}

.badge.locked > .badge-emblem,
.badge-detail.locked .badge-medal {
  background: linear-gradient(145deg, #c8cad5, #8a8a9e);
  filter: grayscale(1);
  opacity: 0.62;
}

.badge.bronze > .badge-emblem,
.badge-detail.bronze .badge-medal {
  background:
    radial-gradient(circle at 28% 20%, #ffd2a1 0 7%, transparent 26%),
    linear-gradient(145deg, #e6a15f 0%, #b86b2d 48%, #7b3f1d 100%);
  color: #fff8ef;
  box-shadow: 0 14px 30px rgba(139, 76, 31, 0.3), inset 0 1px 0 rgba(255, 235, 211, 0.7);
}

.badge.silver > .badge-emblem,
.badge-detail.silver .badge-medal {
  background:
    radial-gradient(circle at 28% 20%, #ffffff 0 8%, transparent 28%),
    linear-gradient(145deg, #f8fbff 0%, #bcc7d6 48%, #718096 100%);
  color: #273248;
  box-shadow: 0 14px 30px rgba(98, 116, 143, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.badge.gold > .badge-emblem,
.badge-detail.gold .badge-medal {
  background:
    radial-gradient(circle at 28% 20%, #fffbd0 0 8%, transparent 28%),
    linear-gradient(145deg, #ffe77a 0%, #f2b705 50%, #bd7600 100%);
  color: #5a3500;
  box-shadow: 0 14px 32px rgba(210, 145, 0, 0.34), inset 0 1px 0 rgba(255, 251, 208, 0.86);
}

.badge.diamond > .badge-emblem,
.badge-detail.diamond .badge-medal {
  background:
    radial-gradient(circle at 26% 18%, #ffffff 0 7%, transparent 24%),
    conic-gradient(from 215deg, #0074ff, #62e9ff, #f5fbff, #9d72ff, #5b00b8, #0074ff);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(45, 127, 255, 0.34), 0 0 22px rgba(98, 233, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.badge.pop > .badge-emblem {
  animation: badge-pop 560ms cubic-bezier(0.18, 1.3, 0.25, 1);
}

.badge svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.9;
}

.badge strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.badge-list {
  display: grid;
  gap: 12px;
  padding-bottom: 110px;
}

.badge-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(9, 11, 43, 0.08);
}

.badge-medal {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  color: var(--white);
  box-shadow: 0 16px 28px rgba(91, 0, 184, 0.18);
}

.badge-medal svg {
  width: 38px;
  height: 38px;
}

.badge-copy {
  display: grid;
  gap: 8px;
}

.badge-copy strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.badge-copy small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: end;
  padding: 18px;
  background: rgba(9, 11, 43, 0.34);
}

.share-sheet.show {
  display: grid;
}

.share-card {
  display: grid;
  gap: 10px;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 18px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 24px 50px rgba(9, 11, 43, 0.22);
}

.share-card h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.share-card button {
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue-a), var(--blue-b));
  color: var(--white);
  font-size: 17px;
  font-weight: 900;
}

.share-card button:last-child {
  background: rgba(138, 138, 158, 0.12);
  color: var(--ink);
}

@keyframes badge-pop {
  0% { transform: scale(0.84); }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes progress-pop {
  0% { transform: translateY(10px) scale(0.92); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.profile-menu {
  display: grid;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(9, 11, 43, 0.08), inset 0 0 0 1px rgba(9, 11, 43, 0.04);
}

.profile-menu button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 800;
}

.profile-menu button:last-child {
  border-bottom: 0;
}

.profile-menu b {
  color: var(--premium-a);
  font-size: 28px;
  font-weight: 900;
  transform: rotate(180deg);
}

.submission-list {
  display: grid;
  gap: 12px;
}

.submission-row {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(9, 11, 43, 0.08), inset 0 0 0 2px rgba(255, 0, 106, 0.22);
}

.submission-row.approved {
  box-shadow: 0 14px 30px rgba(9, 11, 43, 0.08), inset 0 0 0 2px rgba(0, 184, 255, 0.32);
}

.submission-row strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.7;
}

.submission-row strong span,
.submission-row small,
.submission-row p {
  color: var(--muted);
}

.submission-row.approved small {
  color: var(--blue-b);
}

.submission-row.not-approved small {
  color: var(--red-a);
}

.submission-row p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.form {
  display: grid;
  gap: 12px;
  padding: 0;
}

.mode-builder,
.challenge-share-panel,
.challenge-empty,
.challenge-result-row,
.challenge-question {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(9, 11, 43, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(138, 138, 158, 0.12);
}

.mode-tabs button {
  min-height: 48px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), background 180ms ease, color 180ms ease;
}

.mode-tabs button.active {
  background: linear-gradient(135deg, var(--premium-a), var(--premium-b));
  color: var(--white);
  transform: scale(1.02);
}

.count-field {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.count-field input {
  grid-column: 1 / -1;
  padding: 0;
  accent-color: var(--premium-b);
}

.count-field strong {
  color: var(--premium-a);
  font-size: 18px;
  font-weight: 900;
}

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

.challenge-share-panel strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.challenge-share-panel input {
  direction: ltr;
  text-align: left;
}

.challenge-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.challenge-actions button,
.challenge-question button {
  min-height: 48px;
  border-radius: 18px;
  background: rgba(138, 138, 158, 0.12);
  color: var(--ink);
  font-weight: 900;
}

.challenge-actions button:last-child,
.challenge-question button.selected {
  background: linear-gradient(135deg, var(--blue-a), var(--blue-b));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(0, 116, 255, 0.18);
}

.challenge-play-list,
.challenge-results {
  display: grid;
  gap: 12px;
}

.challenge-results:not(:empty) {
  min-height: 100vh;
  padding: 44px 18px 112px;
  background:
    radial-gradient(circle at 12% 2%, rgba(192, 0, 255, 0.12), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(0, 184, 255, 0.1), transparent 24%),
    var(--white);
  overflow-y: auto;
}

.challenge-game-shell {
  position: relative;
  height: 100vh;
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  box-shadow: none;
  direction: rtl;
}

.challenge-game-title {
  position: absolute;
  top: max(48px, env(safe-area-inset-top));
  left: 26px;
  right: 26px;
  z-index: 5;
  color: var(--white);
  text-align: center;
  font-size: clamp(32px, 9vw, 40px);
  line-height: 1.15;
  font-weight: 900;
  text-shadow: 0 4px 12px rgba(80, 0, 42, 0.18);
}

.challenge-game-title span {
  display: none;
}

.challenge-game-title strong {
  font: inherit;
  font-weight: 900;
}

.challenge-choice {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 92px 34px 62px;
  isolation: isolate;
  color: var(--white);
  text-align: center;
  text-shadow: 0 4px 10px rgba(11, 24, 52, 0.22);
  overflow: hidden;
  transition: transform 520ms cubic-bezier(0.18, 0.9, 0.28, 1.2), filter 180ms ease, opacity 180ms ease, box-shadow 240ms ease;
  will-change: transform;
}

.challenge-choice p {
  max-width: min(330px, 86vw);
  margin: 0;
  font-size: clamp(22px, 6.2vw, 32px);
  font-weight: 800;
  line-height: 1.55;
}

.challenge-choice.choice-top {
  top: 0;
  height: 58%;
  z-index: 2;
  align-items: center;
  padding: 132px 34px 96px;
  background: linear-gradient(150deg, rgba(255, 75, 43, 0.93) 0%, rgba(255, 0, 106, 0.93) 100%);
  border-bottom-left-radius: 58px;
  border-bottom-right-radius: 118px 78px;
  box-shadow: 0 30px 48px rgba(160, 7, 90, 0.36), 0 0 46px rgba(255, 0, 106, 0.24);
  animation: topCardIn 620ms cubic-bezier(0.18, 0.9, 0.28, 1.16);
  transform: translateY(0) rotate(-0.35deg);
}

.challenge-choice.choice-bottom {
  bottom: 0;
  height: 56%;
  z-index: 1;
  align-items: center;
  padding: 88px 34px 112px;
  background: linear-gradient(152deg, rgba(0, 184, 255, 0.92) 0%, rgba(0, 116, 255, 0.92) 100%);
  border-top-left-radius: 118px 78px;
  border-top-right-radius: 58px;
  box-shadow: 0 -18px 42px rgba(0, 116, 255, 0.22), 0 0 48px rgba(0, 184, 255, 0.24);
  animation: bottomCardIn 620ms 80ms cubic-bezier(0.18, 0.9, 0.28, 1.16) backwards;
  transform: translateY(0) rotate(0.35deg);
}

.challenge-or {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.challenge-or span {
  min-width: 96px;
  height: 76px;
  display: grid;
  place-items: center;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(9, 11, 43, 0.22);
}

.challenge-game-shell.answered .choice-top {
  transform: translateY(-86px) rotate(-1.15deg);
}

.challenge-game-shell.answered .choice-bottom {
  transform: translateY(86px) rotate(1.1deg);
}

.challenge-game-shell.picked-a .choice-top,
.challenge-game-shell.picked-b .choice-bottom {
  filter: saturate(1.14) brightness(1.04);
}

.challenge-next {
  bottom: max(34px, env(safe-area-inset-bottom));
}

.challenge-floating-actions {
  bottom: max(24px, env(safe-area-inset-bottom));
}

.challenge-question > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-a), var(--blue-b));
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

.challenge-question strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.75;
}

.challenge-question strong b {
  color: var(--muted);
}

.challenge-question div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.challenge-empty {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.8;
}

.challenge-empty strong,
.challenge-empty span,
.challenge-empty small {
  display: block;
}

.challenge-results h3 {
  margin: 8px 2px 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.challenge-result-note {
  margin: -4px 2px 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.8;
}

.challenge-result-index {
  color: var(--premium-a);
  font-size: 14px;
  font-weight: 900;
}

.challenge-result-option {
  display: grid;
  gap: 4px;
}

.challenge-result-option small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.challenge-result-option strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.7;
}

.challenge-result-option b {
  color: var(--premium-a);
  font-size: 14px;
  font-weight: 900;
}

.challenge-result-option.option-b b {
  color: var(--blue-b);
}

.challenge-result-row i {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-b), var(--blue-a));
}

.challenge-result-row i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-a), var(--red-b));
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
}

.field input:invalid:not(:placeholder-shown) {
  animation: shake 280ms ease;
}

.primary {
  min-height: 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--premium-a), var(--premium-b));
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
}

.primary.wide {
  width: 100%;
  min-height: 64px;
  margin-top: 10px;
  border-radius: 999px;
}

.list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.question-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.leaderboard-list {
  display: grid;
  gap: 12px;
}

.leaderboard-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 10px;
  margin: 8px 0 18px;
}

.podium-card {
  min-width: 0;
  min-height: 150px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 36px rgba(9, 11, 43, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  text-align: center;
}

.podium-card.place-1 {
  min-height: 188px;
  order: 2;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 230, 109, 0.42), transparent 40%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(255, 230, 109, 0.26));
}

.podium-card.place-2 {
  min-height: 166px;
  order: 1;
  background:
    radial-gradient(circle at 50% 8%, rgba(247, 251, 255, 0.56), transparent 40%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(138, 164, 197, 0.28));
}

.podium-card.place-3 {
  min-height: 154px;
  order: 3;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 140, 66, 0.28), transparent 40%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(255, 75, 43, 0.2));
}

.podium-medal {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-a), var(--blue-b));
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 116, 255, 0.18);
}

.podium-avatar,
.leaderboard-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-a), var(--premium-b));
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(91, 0, 184, 0.16);
}

.podium-avatar {
  width: 62px;
  height: 62px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  font-size: 24px;
}

.leaderboard-avatar {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

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

.place-1 .podium-medal {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #ffe66d, var(--red-b));
}

.place-2 .podium-medal {
  background: linear-gradient(135deg, #f7fbff, #8aa4c5);
  color: var(--ink);
}

.place-3 .podium-medal {
  background: linear-gradient(135deg, #ffb36b, #b65d23);
}

.podium-card strong,
.podium-card b {
  color: var(--ink);
  font-weight: 900;
}

.podium-card strong {
  width: 100%;
  font-size: 16px;
  line-height: 1.35;
}

.podium-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.podium-card b {
  font-size: 15px;
}

.leaderboard-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(9, 11, 43, 0.08), inset 0 0 0 1px rgba(9, 11, 43, 0.04);
}

.leaderboard-person {
  min-width: 0;
  overflow: hidden;
}

.leaderboard-name {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  mask-image: linear-gradient(to left, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
}

.leaderboard-name span {
  width: max-content;
  min-width: 100%;
  display: inline-block;
  white-space: nowrap;
  text-align: center;
  will-change: transform;
}

.leaderboard-row .leaderboard-name span {
  text-align: start;
}

.leaderboard-name.is-overflowing span {
  animation: leaderboardNamePan 6s 1s ease-in-out infinite alternate;
}

.leaderboard-row.current {
  box-shadow: 0 18px 34px rgba(91, 0, 184, 0.16), inset 0 0 0 2px rgba(192, 0, 255, 0.24);
}

.leaderboard-row strong,
.leaderboard-row b {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.leaderboard-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.leaderboard-row b {
  white-space: nowrap;
}

@keyframes leaderboardNamePan {
  0%, 12% { transform: translateX(0); }
  88%, 100% { transform: translateX(var(--name-shift)); }
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 82px;
  z-index: 30;
  max-width: calc(100vw - 32px);
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.sponsor-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.sponsor-gate.show {
  opacity: 1;
  pointer-events: auto;
}

.sponsor-card {
  width: min(430px, 100%);
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 24px 56px rgba(9, 11, 43, 0.22);
}

.sponsor-card h3,
.sponsor-card p {
  margin: 0;
}

.sponsor-card h3 {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.sponsor-card p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
}

.sponsor-list {
  display: grid;
  gap: 8px;
}

.sponsor-list a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-a), var(--premium-b));
  color: var(--white);
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

@media (min-width: 760px) {
  body {
    background: var(--white);
  }

  .app-shell {
    width: min(430px, 100%);
    margin: 0 auto;
    border-inline: 1px solid var(--line);
    background: var(--paper);
  }

  .game {
    height: 740px;
    min-height: 740px;
    border-radius: 0;
  }

  .bottom-nav {
    width: min(430px, 100%);
    right: 50%;
    left: auto;
    transform: translateX(50%);
    border-inline: 1px solid var(--line);
  }
}

/* Final precedence for the referenced navbar and leaderboard composition. */
body:not(.is-game):not(.is-challenge) nav.bottom-nav {
  height: 76px;
  min-height: 76px;
  padding: 8px 10px;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(239, 242, 250, 0.52);
  box-shadow:
    14px 14px 36px rgba(95, 109, 145, 0.2),
    -10px -10px 30px rgba(255, 255, 255, 0.86),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(26px) saturate(1.55);
  -webkit-backdrop-filter: blur(26px) saturate(1.55);
}

body:not(.is-game):not(.is-challenge) nav.bottom-nav .nav-item {
  height: 60px;
  min-width: 0;
  min-height: 60px;
  flex: 1 1 0;
  gap: 1px;
  padding: 3px 4px;
  color: #565d72;
  transform: none;
}

body:not(.is-game):not(.is-challenge) nav.bottom-nav .nav-item.active {
  color: var(--premium-a);
  transform: none;
  scale: 1.02;
}

body:not(.is-game):not(.is-challenge) nav.bottom-nav .nav-active-indicator {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    10px 10px 24px rgba(95, 109, 145, 0.2),
    -8px -8px 20px rgba(255, 255, 255, 0.74);
  transition:
    transform 240ms cubic-bezier(0.2, 0.9, 0.22, 1),
    width 240ms cubic-bezier(0.2, 0.9, 0.22, 1),
    height 240ms cubic-bezier(0.2, 0.9, 0.22, 1),
    scale 250ms ease,
    background-color 250ms ease,
    box-shadow 250ms ease;
}

body:not(.is-game):not(.is-challenge) nav.bottom-nav .nav-active-indicator.interacting {
  scale: 1.22;
  background: rgba(255, 255, 255, 0.18);
}

body:not(.is-game):not(.is-challenge) #leaderboardPodium .podium-card {
  position: absolute;
  width: 31%;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 0 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body:not(.is-game):not(.is-challenge) #leaderboardPodium .podium-card.place-1 {
  top: 20px;
  left: 50%;
  z-index: 3;
  min-height: 270px;
  transform: translateX(-50%);
}

body:not(.is-game):not(.is-challenge) #leaderboardPodium .podium-card.place-2 {
  top: 82px;
  right: auto;
  left: 3%;
  z-index: 2;
  transform: none;
}

body:not(.is-game):not(.is-challenge) #leaderboardPodium .podium-card.place-3 {
  top: 82px;
  right: 3%;
  left: auto;
  z-index: 2;
  transform: none;
}

/* Final visual system: constrained liquid nav, neutral magic cards and game-led headings. */
body:not(.is-game):not(.is-challenge) nav.bottom-nav {
  --nav-glow-x: 50%;
  --nav-glow-y: 50%;
  --nav-glow-alpha: 0;
  right: 12px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 12px;
  width: auto;
  height: 76px;
  min-height: 76px;
  padding: 8px 10px;
  gap: 6px;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(238, 243, 251, 0.54);
  box-shadow:
    0 18px 42px rgba(32, 54, 104, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(91, 0, 184, 0.08);
  backdrop-filter: blur(28px) saturate(1.58);
  -webkit-backdrop-filter: blur(28px) saturate(1.58);
  scale: 1;
  transition: box-shadow 280ms ease;
}

body:not(.is-game):not(.is-challenge) nav.bottom-nav.nav-engaged {
  scale: 1;
  box-shadow:
    0 20px 46px rgba(32, 54, 104, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(91, 0, 184, 0.1);
}

body:not(.is-game):not(.is-challenge) nav.bottom-nav .nav-glow {
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    190px 110px at var(--nav-glow-x) var(--nav-glow-y),
    rgba(0, 184, 255, var(--nav-glow-alpha)),
    rgba(255, 0, 106, calc(var(--nav-glow-alpha) * 0.46)) 42%,
    transparent 74%
  );
  opacity: 1;
  transition: opacity 180ms ease;
}

body:not(.is-game):not(.is-challenge) nav.bottom-nav .nav-active-indicator {
  top: 8px;
  left: 10px;
  width: calc((100% - 44px) / 5);
  height: 60px;
  min-height: 60px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(91, 0, 184, 0.1),
    0 9px 22px rgba(55, 44, 118, 0.14);
  transform: none;
  scale: 1;
  will-change: left;
  transition:
    left 560ms cubic-bezier(0.16, 1, 0.3, 1),
    width 480ms cubic-bezier(0.16, 1, 0.3, 1),
    scale 260ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 240ms ease,
    box-shadow 240ms ease;
}

body:not(.is-game):not(.is-challenge) nav.bottom-nav .nav-active-indicator.nav-no-transition {
  transition: none !important;
}

body:not(.is-game):not(.is-challenge) nav.bottom-nav .nav-active-indicator.interacting {
  z-index: 1;
  scale: 1.035;
  background: rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(91, 0, 184, 0.11),
    0 10px 24px rgba(55, 44, 118, 0.16);
}

body:not(.is-game):not(.is-challenge) .liquid-refraction-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  border-radius: inherit;
  pointer-events: none;
}

body:not(.is-game):not(.is-challenge) nav.bottom-nav .nav-item {
  z-index: 2;
  height: 60px;
  min-height: 60px;
  min-width: 0;
  flex: 1 1 0;
  gap: 1px;
  padding: 3px 4px;
  color: #565d72;
  transform: none;
  scale: 1;
  text-shadow: none;
  transition: color 260ms ease, scale 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

body:not(.is-game):not(.is-challenge) nav.bottom-nav .nav-item.active {
  color: var(--premium-a);
  transform: none;
  scale: 1.035;
}

body:not(.is-game):not(.is-challenge) .category-card {
  isolation: isolate;
  overflow: visible;
  border: 0;
  background: rgba(255, 255, 255, 0.48);
  box-shadow:
    0 15px 34px rgba(32, 54, 104, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

body:not(.is-game):not(.is-challenge) .category-card::before {
  inset: -3px;
  z-index: 3;
  padding: 3px;
  border-radius: 31px;
  background: conic-gradient(
    from var(--category-rotate),
    var(--card-a, var(--red-a)),
    var(--card-b, var(--blue-b)) 45%,
    var(--card-a, var(--red-a)) 100%
  );
  opacity: 1;
  animation: categoryBorderSpin 4.8s linear infinite;
}

body:not(.is-game):not(.is-challenge) .category-card::after {
  content: none;
}

body:not(.is-game):not(.is-challenge) .category-emoji {
  width: 68px;
  height: 68px;
  color: color-mix(in srgb, var(--card-a, var(--red-a)) 52%, var(--card-b, var(--blue-b)));
  background: rgba(255, 255, 255, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(32, 54, 104, 0.1);
}

body:not(.is-game):not(.is-challenge) .category-emoji svg {
  width: 38px;
  height: 38px;
  filter: none;
}

body:not(.is-game):not(.is-challenge) .category-card strong {
  color: var(--ink);
  text-shadow: none;
}

body:not(.is-game):not(.is-challenge) .category-card > span:last-child {
  color: var(--muted);
}

body:not(.is-game):not(.is-challenge) .category-badge {
  z-index: 4;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(32, 54, 104, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body:not(.is-game):not(.is-challenge) .categories-titlebar {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto 26px;
  padding: 4px 12px 14px;
  text-align: center;
}

body:not(.is-game):not(.is-challenge) .categories-titlebar h2 {
  position: relative;
  max-width: 15ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 8vw, 40px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 7px 22px rgba(91, 0, 184, 0.12);
}

body:not(.is-game):not(.is-challenge) .categories-titlebar h2::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -10px;
  width: 72px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-a), var(--premium-b), var(--red-a));
  box-shadow: 0 4px 12px rgba(91, 0, 184, 0.18);
  transform: translateX(50%);
}

body:not(.is-game):not(.is-challenge) .categories-titlebar p {
  max-width: 42ch;
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  text-align: center;
  text-wrap: balance;
}

body:not(.is-game):not(.is-challenge) #homeScreen .guide-copy,
body:not(.is-game):not(.is-challenge) #homeScreen .daily-panel > h3,
body:not(.is-game):not(.is-challenge) #homeScreen .daily-panel > p {
  text-align: center;
}

body:not(.is-game):not(.is-challenge) #homeScreen .guide-copy p {
  max-width: 46ch;
  margin-inline: auto;
}

body:not(.is-game):not(.is-challenge) #homeScreen .daily-panel > h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 900;
}

@media (min-width: 760px) {
  body:not(.is-game):not(.is-challenge) nav.bottom-nav {
    right: auto;
    left: 50%;
    width: min(406px, calc(100% - 24px));
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.is-game):not(.is-challenge) nav.bottom-nav .nav-active-indicator {
    transition-duration: 1ms;
  }

  body:not(.is-game):not(.is-challenge) .category-card::before {
    animation: none;
  }
}

@property --category-rotate {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Moving glass background, kept outside every question screen. */
.ambient-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body.is-game .ambient-background,
body.is-challenge .ambient-background {
  display: none;
}

.ambient-circle {
  position: absolute;
  width: min(76vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.24;
  filter: blur(18px) saturate(1.08);
  will-change: transform;
}

.ambient-circle-blue {
  right: -24%;
  bottom: 8%;
  background: linear-gradient(135deg, var(--blue-a), var(--blue-b));
  animation: ambientBlueFloat 12s ease-in-out infinite alternate;
}

.ambient-circle-red {
  left: -28%;
  top: 8%;
  background: linear-gradient(135deg, var(--red-a), var(--red-b));
  animation: ambientRedFloat 14s ease-in-out infinite alternate;
}

body:not(.is-game):not(.is-challenge) .app-shell {
  position: relative;
  z-index: 1;
}

body:not(.is-game):not(.is-challenge) .page-surface {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Liquid glass switcher adapted from the referenced iOS-style navbar. */
body:not(.is-game):not(.is-challenge) .bottom-nav {
  --nav-glow-x: 50%;
  --nav-glow-y: 50%;
  --nav-glow-alpha: 0;
  height: 76px;
  min-height: 76px;
  padding: 8px 10px;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(239, 242, 250, 0.52);
  box-shadow:
    14px 14px 36px rgba(95, 109, 145, 0.2),
    -10px -10px 30px rgba(255, 255, 255, 0.86),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(26px) saturate(1.55);
  -webkit-backdrop-filter: blur(26px) saturate(1.55);
  scale: 1;
  transition: scale 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
}

body:not(.is-game):not(.is-challenge) .bottom-nav.nav-engaged {
  scale: 1.025;
  box-shadow:
    18px 18px 42px rgba(95, 109, 145, 0.24),
    -12px -12px 34px rgba(255, 255, 255, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body:not(.is-game):not(.is-challenge) .nav-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  background: radial-gradient(
    220px 130px at var(--nav-glow-x) var(--nav-glow-y),
    rgba(0, 184, 255, var(--nav-glow-alpha)) 0%,
    rgba(192, 0, 255, calc(var(--nav-glow-alpha) * 0.54)) 34%,
    rgba(255, 255, 255, 0) 74%
  );
  pointer-events: none;
  transition: background 180ms ease;
}

body:not(.is-game):not(.is-challenge) .nav-item {
  z-index: 2;
  height: 60px;
  min-height: 60px;
  min-width: 0;
  flex: 1 1 0;
  gap: 1px;
  padding: 3px 4px;
  color: #565d72;
  text-shadow: 1px 1px 7px rgba(9, 11, 43, 0.16);
  transition: color 200ms ease, scale 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

body:not(.is-game):not(.is-challenge) .nav-item svg {
  width: 31px;
  height: 31px;
  opacity: 0.95;
}

body:not(.is-game):not(.is-challenge) .nav-item span {
  font-size: 10px;
  font-weight: 700;
}

body:not(.is-game):not(.is-challenge) .nav-item.active {
  color: var(--premium-a);
  transform: none;
  scale: 1.02;
}

body:not(.is-game):not(.is-challenge) .nav-active-indicator {
  top: 0;
  left: 0;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    10px 10px 24px rgba(95, 109, 145, 0.2),
    -8px -8px 20px rgba(255, 255, 255, 0.74);
  scale: 1;
  transition:
    transform 240ms cubic-bezier(0.2, 0.9, 0.22, 1),
    width 240ms cubic-bezier(0.2, 0.9, 0.22, 1),
    height 240ms cubic-bezier(0.2, 0.9, 0.22, 1),
    scale 250ms ease,
    background-color 250ms ease,
    box-shadow 250ms ease;
}

body:not(.is-game):not(.is-challenge) .nav-active-indicator.interacting {
  z-index: 3;
  scale: 1.22;
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    14px 14px 30px rgba(95, 109, 145, 0.2),
    -10px -10px 24px rgba(255, 255, 255, 0.78);
}

/* Magic-card rotating edge, using each category's own configured colors. */
body:not(.is-game):not(.is-challenge) .category-card {
  isolation: isolate;
  overflow: visible;
  border: 0;
  box-shadow: 0 16px 34px rgba(27, 35, 80, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

body:not(.is-game):not(.is-challenge) .category-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: 4;
  padding: 3px;
  border-radius: 31px;
  background: conic-gradient(
    from var(--category-rotate),
    var(--card-a, var(--red-a)),
    var(--card-b, var(--blue-b)) 42%,
    color-mix(in srgb, var(--card-a, var(--red-a)) 46%, var(--card-b, var(--blue-b))) 68%,
    var(--card-a, var(--red-a))
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.9;
  pointer-events: none;
  animation: categoryBorderSpin 4.8s linear infinite;
}

body:not(.is-game):not(.is-challenge) .category-card::after {
  content: "";
  position: absolute;
  inset: 20px 8px -8px;
  z-index: -1;
  border-radius: 30px;
  background: conic-gradient(
    from var(--category-rotate),
    var(--card-a, var(--red-a)),
    var(--card-b, var(--blue-b)) 48%,
    var(--card-a, var(--red-a))
  );
  filter: blur(24px);
  opacity: 0.32;
  transform: scale(0.92);
  pointer-events: none;
  animation: categoryBorderSpin 4.8s linear infinite;
}

body:not(.is-game):not(.is-challenge) .category-card:active::before,
body:not(.is-game):not(.is-challenge) .category-card:active::after {
  animation-play-state: paused;
  opacity: 0.16;
}

/* Leaderboard composition based on the referenced crowned top-three layout. */
body:not(.is-game):not(.is-challenge) .leaderboard-podium {
  position: relative;
  display: block;
  min-height: 310px;
  margin: 8px 0 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 32px;
  background:
    linear-gradient(150deg, rgba(0, 184, 255, 0.28), transparent 48%),
    linear-gradient(28deg, rgba(255, 0, 106, 0.26), transparent 48%),
    rgba(9, 11, 43, 0.92);
  box-shadow: 0 22px 48px rgba(9, 11, 43, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body:not(.is-game):not(.is-challenge) .podium-card {
  position: absolute;
  width: 31%;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 0 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body:not(.is-game):not(.is-challenge) .podium-card.place-1 {
  top: 20px;
  left: 50%;
  z-index: 3;
  min-height: 270px;
  transform: translateX(-50%);
}

body:not(.is-game):not(.is-challenge) .podium-card.place-2 {
  top: 82px;
  left: 3%;
  z-index: 2;
}

body:not(.is-game):not(.is-challenge) .podium-card.place-3 {
  top: 82px;
  right: 3%;
  z-index: 2;
}

.podium-crown {
  width: 52px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: -5px;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.3));
}

.podium-crown svg {
  width: 100%;
  height: 100%;
}

.podium-crown path {
  fill: #ffe66d;
}

.place-2 .podium-crown path {
  fill: #dce8f7;
}

.place-3 .podium-crown path {
  fill: #c9793c;
}

body:not(.is-game):not(.is-challenge) .podium-avatar {
  width: 86px;
  height: 86px;
  border: 4px solid var(--premium-b);
  font-size: 28px;
  box-shadow: 0 14px 30px rgba(192, 0, 255, 0.3);
}

body:not(.is-game):not(.is-challenge) .place-1 .podium-avatar {
  width: 112px;
  height: 112px;
  border-color: #ffe66d;
  font-size: 36px;
  box-shadow: 0 16px 36px rgba(255, 75, 43, 0.3);
}

body:not(.is-game):not(.is-challenge) .place-2 .podium-avatar {
  border-color: #dce8f7;
}

body:not(.is-game):not(.is-challenge) .place-3 .podium-avatar {
  border-color: #c9793c;
}

body:not(.is-game):not(.is-challenge) .podium-medal {
  position: absolute;
  top: 100px;
  right: calc(50% - 46px);
  z-index: 4;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  font-size: 14px;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.25);
}

body:not(.is-game):not(.is-challenge) .place-1 .podium-medal {
  top: 126px;
  right: calc(50% - 60px);
  width: 32px;
  height: 32px;
}

body:not(.is-game):not(.is-challenge) .podium-card strong,
body:not(.is-game):not(.is-challenge) .podium-card b {
  color: var(--white);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

body:not(.is-game):not(.is-challenge) .podium-card strong {
  margin-top: 4px;
  font-size: 14px;
}

body:not(.is-game):not(.is-challenge) .podium-card small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

body:not(.is-game):not(.is-challenge) .podium-card b {
  font-size: 13px;
}

.leaderboard-table-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 0 14px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

body:not(.is-game):not(.is-challenge) .leaderboard-list {
  gap: 7px;
  padding-bottom: 14px;
}

body:not(.is-game):not(.is-challenge) .leaderboard-row {
  min-height: 64px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 9px 24px rgba(32, 54, 104, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body:not(.is-game):not(.is-challenge) .leaderboard-row:nth-child(odd) {
  background: linear-gradient(90deg, rgba(0, 184, 255, 0.11), rgba(255, 255, 255, 0.58), rgba(192, 0, 255, 0.08));
}

body:not(.is-game):not(.is-challenge) .leaderboard-row:nth-child(even) {
  background: linear-gradient(90deg, rgba(255, 0, 106, 0.09), rgba(255, 255, 255, 0.58), rgba(0, 116, 255, 0.08));
}

body:not(.is-game):not(.is-challenge) .leaderboard-avatar {
  width: 44px;
  height: 44px;
  font-size: 17px;
}

@keyframes categoryBorderSpin {
  to { --category-rotate: 360deg; }
}

@keyframes ambientBlueFloat {
  0% { transform: translate3d(0, 0, 0) scale(0.92); }
  50% { transform: translate3d(-24%, -18%, 0) scale(1.08); }
  100% { transform: translate3d(10%, -36%, 0) scale(0.98); }
}

@keyframes ambientRedFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(22%, 26%, 0) scale(0.9); }
  100% { transform: translate3d(-8%, 46%, 0) scale(1.1); }
}

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

@keyframes cardIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes auroraFlow {
  0% {
    transform: translate3d(-4%, 2%, 0) rotate(-8deg) scale(1);
  }
  50% {
    transform: translate3d(4%, -4%, 0) rotate(10deg) scale(1.08);
  }
  100% {
    transform: translate3d(0, 4%, 0) rotate(-4deg) scale(1.04);
  }
}

@keyframes topCardIn {
  from {
    opacity: 0;
    transform: translateY(-46%) scale(0.98) rotate(-1.4deg);
  }
  72% {
    opacity: 1;
    transform: translateY(8px) scale(1.01) rotate(-0.15deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-0.35deg);
  }
}

@keyframes bottomCardIn {
  from {
    opacity: 0;
    transform: translateY(46%) scale(0.98) rotate(1.4deg);
  }
  72% {
    opacity: 1;
    transform: translateY(-8px) scale(1.01) rotate(0.15deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0.35deg);
  }
}

@keyframes percentBounce {
  0% {
    transform: scale(0.7);
  }
  58% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes buttonPop {
  from {
    transform: translate(-50%, 16px) scale(0.88);
  }
  to {
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes loaderOrbit {
  0% {
    transform: rotate(0deg) scale(0.94);
  }
  50% {
    transform: rotate(180deg) scale(1.06);
  }
  100% {
    transform: rotate(360deg) scale(0.94);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
}

/* Pastel glass shell. The game and challenge canvases stay intentionally untouched. */
body:not(.is-game):not(.is-challenge) {
  background:
    linear-gradient(145deg, rgba(255, 0, 106, 0.07), transparent 38%),
    linear-gradient(32deg, rgba(0, 184, 255, 0.1), transparent 46%),
    linear-gradient(180deg, #fbfaff 0%, #f3f8ff 48%, #fff7fb 100%);
  background-attachment: fixed;
}

body:not(.is-game):not(.is-challenge) .app-shell {
  background: transparent;
}

body:not(.is-game):not(.is-challenge) .page-surface {
  padding: max(22px, env(safe-area-inset-top)) 18px 122px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.1)),
    linear-gradient(145deg, rgba(255, 0, 106, 0.055), transparent 44%),
    linear-gradient(28deg, rgba(0, 184, 255, 0.08), transparent 50%);
}

body:not(.is-game):not(.is-challenge) .categories-header {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 20;
  min-height: 62px;
  margin: 0 -4px 24px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 36px rgba(32, 54, 104, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(24px) saturate(1.45);
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
}

body:not(.is-game):not(.is-challenge) .logo-mark,
body:not(.is-game):not(.is-challenge) .circle-action,
body:not(.is-game):not(.is-challenge) .header-back,
body:not(.is-game):not(.is-challenge) .profile-icon-btn {
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 9px 24px rgba(55, 44, 118, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

body:not(.is-game):not(.is-challenge) .xp-chip {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 26px rgba(32, 54, 104, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

body:not(.is-game):not(.is-challenge) .categories-titlebar {
  padding: 0 4px;
  margin-bottom: 22px;
}

body:not(.is-game):not(.is-challenge) .categories-titlebar h2,
body:not(.is-game):not(.is-challenge) .profile-top h2 {
  letter-spacing: 0;
  text-wrap: balance;
}

body:not(.is-game):not(.is-challenge) .categories-titlebar p {
  margin-top: 10px;
  line-height: 1.8;
}

body:not(.is-game):not(.is-challenge) .home-aurora {
  inset: 38% -65% -16%;
  opacity: 0.22;
  filter: blur(62px) saturate(0.95);
}

body:not(.is-game):not(.is-challenge) .guide-copy {
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 38px rgba(32, 54, 104, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

body:not(.is-game):not(.is-challenge) .game-mode-teaser button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 26px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--red-a) 78%, white), color-mix(in srgb, var(--premium-b) 76%, white));
  box-shadow: 0 18px 38px rgba(91, 0, 184, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition: transform 320ms cubic-bezier(0.2, 1.35, 0.3, 1), box-shadow 220ms ease;
}

body:not(.is-game):not(.is-challenge) .game-mode-teaser button:nth-child(2) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue-a) 76%, white), color-mix(in srgb, var(--blue-b) 80%, white));
}

body:not(.is-game):not(.is-challenge) .game-mode-teaser button:active,
body:not(.is-game):not(.is-challenge) .category-card:active {
  transform: scale(0.975);
}

body:not(.is-game):not(.is-challenge) .category-grid {
  gap: 14px;
}

body:not(.is-game):not(.is-challenge) .category-card {
  min-height: 198px;
  aspect-ratio: 0.82;
  padding: 21px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 46%),
    linear-gradient(160deg, color-mix(in srgb, var(--card-a, var(--red-a)) 72%, white), color-mix(in srgb, var(--card-b, var(--blue-b)) 76%, white));
  box-shadow: 0 16px 34px rgba(27, 35, 80, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

body:not(.is-game):not(.is-challenge) .category-emoji {
  width: 70px;
  height: 70px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 12px 26px rgba(9, 11, 43, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body:not(.is-game):not(.is-challenge) .category-emoji svg {
  width: 40px;
  height: 40px;
}

body:not(.is-game):not(.is-challenge) .category-card strong {
  font-size: 21px;
  text-shadow: 0 3px 10px rgba(9, 11, 43, 0.14);
}

body:not(.is-game):not(.is-challenge) .daily-panel,
body:not(.is-game):not(.is-challenge) .profile-card,
body:not(.is-game):not(.is-challenge) .profile-menu,
body:not(.is-game):not(.is-challenge) .badge-detail,
body:not(.is-game):not(.is-challenge) .submission-row,
body:not(.is-game):not(.is-challenge) .mode-builder,
body:not(.is-game):not(.is-challenge) .challenge-share-panel,
body:not(.is-game):not(.is-challenge) .leaderboard-row,
body:not(.is-game):not(.is-challenge) .podium-card,
body:not(.is-game):not(.is-challenge) .share-card,
body:not(.is-game):not(.is-challenge) .sponsor-card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 38px rgba(32, 54, 104, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

body:not(.is-game):not(.is-challenge) .mission-row {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 8px 22px rgba(32, 54, 104, 0.065);
}

body:not(.is-game):not(.is-challenge) .dilemma-box {
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: linear-gradient(135deg, rgba(0, 184, 255, 0.12), rgba(255, 0, 106, 0.1));
}

body:not(.is-game):not(.is-challenge) .field input,
body:not(.is-game):not(.is-challenge) .field select {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(122, 132, 165, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  outline: none;
}

body:not(.is-game):not(.is-challenge) .field input:focus,
body:not(.is-game):not(.is-challenge) .field select:focus {
  border-color: rgba(0, 116, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 184, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body:not(.is-game):not(.is-challenge) .primary {
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--premium-a) 82%, white), color-mix(in srgb, var(--premium-b) 82%, white));
  box-shadow: 0 12px 28px rgba(91, 0, 184, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body:not(.is-game):not(.is-challenge) .bottom-nav {
  right: 12px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 12px;
  min-height: 74px;
  padding: 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.67);
  box-shadow: 0 18px 46px rgba(32, 54, 104, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
}

body:not(.is-game):not(.is-challenge) .nav-item {
  min-width: 54px;
  min-height: 54px;
  transition: color 240ms ease, transform 520ms cubic-bezier(0.18, 1.42, 0.24, 1);
}

body:not(.is-game):not(.is-challenge) .nav-active-indicator {
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: linear-gradient(145deg, color-mix(in srgb, var(--blue-a) 78%, white), color-mix(in srgb, var(--premium-b) 80%, white));
  box-shadow: 0 14px 30px rgba(91, 0, 184, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition:
    transform 720ms cubic-bezier(0.16, 1.38, 0.24, 1),
    width 620ms cubic-bezier(0.16, 1.24, 0.24, 1),
    height 620ms cubic-bezier(0.16, 1.24, 0.24, 1);
}

body:not(.is-game):not(.is-challenge) .nav-item.active {
  transform: translateY(-10px) scale(1.03);
}

body:not(.is-game):not(.is-challenge) .nav-item span {
  font-size: 10px;
}

@media (hover: hover) {
  body:not(.is-game):not(.is-challenge) .category-card:hover,
  body:not(.is-game):not(.is-challenge) .game-mode-teaser button:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(27, 35, 80, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
}

@media (min-width: 760px) {
  body:not(.is-game):not(.is-challenge) .app-shell {
    border-inline: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 70px rgba(32, 54, 104, 0.1);
  }

  body:not(.is-game):not(.is-challenge) .bottom-nav {
    width: min(406px, calc(100% - 24px));
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Reference components must win over the earlier glass-theme compatibility layer. */
body:not(.is-game):not(.is-challenge) nav.bottom-nav {
  height: 76px;
  min-height: 76px;
  padding: 8px 10px;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(239, 242, 250, 0.52);
  box-shadow: 14px 14px 36px rgba(95, 109, 145, 0.2), -10px -10px 30px rgba(255, 255, 255, 0.86), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(26px) saturate(1.55);
  -webkit-backdrop-filter: blur(26px) saturate(1.55);
}

body:not(.is-game):not(.is-challenge) nav.bottom-nav .nav-item {
  height: 60px;
  min-width: 0;
  min-height: 60px;
  flex: 1 1 0;
  gap: 1px;
  padding: 3px 4px;
  color: #565d72;
  transform: none;
}

body:not(.is-game):not(.is-challenge) nav.bottom-nav .nav-item.active {
  color: var(--premium-a);
  transform: none;
  scale: 1.02;
}

body:not(.is-game):not(.is-challenge) nav.bottom-nav .nav-active-indicator {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 10px 10px 24px rgba(95, 109, 145, 0.2), -8px -8px 20px rgba(255, 255, 255, 0.74);
  transition: transform 240ms cubic-bezier(0.2, 0.9, 0.22, 1), width 240ms cubic-bezier(0.2, 0.9, 0.22, 1), height 240ms cubic-bezier(0.2, 0.9, 0.22, 1), scale 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
}

body:not(.is-game):not(.is-challenge) nav.bottom-nav .nav-active-indicator.interacting {
  scale: 1.22;
  background: rgba(255, 255, 255, 0.18);
}

body:not(.is-game):not(.is-challenge) #leaderboardPodium .podium-card {
  position: absolute;
  width: 31%;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 0 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body:not(.is-game):not(.is-challenge) #leaderboardPodium .podium-card.place-1 {
  top: 20px;
  left: 50%;
  z-index: 3;
  min-height: 270px;
  transform: translateX(-50%);
}

body:not(.is-game):not(.is-challenge) #leaderboardPodium .podium-card.place-2 {
  top: 82px;
  right: auto;
  left: 3%;
  z-index: 2;
  transform: none;
}

body:not(.is-game):not(.is-challenge) #leaderboardPodium .podium-card.place-3 {
  top: 82px;
  right: 3%;
  left: auto;
  z-index: 2;
  transform: none;
}
