:root {
  --nav-height: 72px;
  --header-height: 82px;
  --content-offset: 30px;
  --container-max-width: 1180px;
  --ranking-carousel-max-width: 960px;
  --header-gradient-start: #1a66cc;
  --header-gradient-end: #357de0;
  --header-gradient: linear-gradient(135deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 100%);
  --app-font-family: 'Open Sans', sans-serif;
  --game-phrase-font-family: 'Open Sans', sans-serif;
  --app-text-color: #ffffff;
  --game-phrase-color: #ffffff;
  --app-background-gradient: linear-gradient(
    315deg,
    rgba(101, 0, 94, 1) 3%,
    rgba(60, 132, 206, 1) 38%,
    rgba(48, 238, 226, 1) 68%,
    rgba(255, 25, 25, 1) 98%
  );
  --phrase-color: var(--game-phrase-color, #ffffff);
  --mode-icon-opacity: 1;
  --lens-opacity-strong: 0;
  --lens-opacity-soft: 1;
  --mode-icon-color: #0b1f44;
  --lens-color-1-rgb: 200, 229, 74;
  --lens-color-2-rgb: 255, 215, 0;
  --lens-color-3-rgb: 255, 108, 62;
  --lens-color-4-rgb: 33, 150, 243;
  --lens-color-5-rgb: 27, 0, 75;
  --lens-color-6-rgb: 200, 229, 74;
  --lens-color-home-rgb: 0, 0, 0;
  --lens-color-game-rgb: 0, 0, 0;
  --lens-color-menus-rgb: 0, 0, 0;
  --lens-color-profile-rgb: 11, 47, 91;
  --lens-color-stats-rgb: 0, 0, 0;
  --button-color-base: #3b82f6;
  --button-color-contrast: #8b5cf6;
  --button-shadow: rgba(59, 130, 246, 0.35);
}

@font-face {
  font-family: 'Aver';
  src: url('../Fontes/Aver.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Bronaco';
  src: url('../Fontes/Bronaco.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Colombia';
  src: url('../Fontes/Colombia.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Enceladus';
  src: url('../Fontes/Enceladus.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Enceladus Regular';
  src: url('../Fontes/Enceladus Regular.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Gealid Light';
  src: url('../Fontes/Gealid Light.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Gealit';
  src: url('../Fontes/Gealit.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Glametrix';
  src: url('../Fontes/Glametrix.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Glametrix Light';
  src: url('../Fontes/Glametrix Light.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Glametrix Feather';
  src: url('../Fontes/Glametrix Feather.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Gotama';
  src: url('../Fontes/Gotama.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Hadir Sans';
  src: url('../Fontes/Hadir Sans.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Kimberry';
  src: url('../Fontes/Kimberry.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Liscence Plate';
  src: url('../Fontes/Liscence Plate.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Metropolis';
  src: url('../Fontes/Metropolis.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Momcake';
  src: url('../Fontes/Momcake.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Momcake Thin';
  src: url('../Fontes/Momcake Thin.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Munich Regular';
  src: url('../Fontes/Munich Regular.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Newspappe';
  src: url('../Fontes/Newspappe.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Tittilum';
  src: url('../Fontes/Tittilum.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Titillium Web Semibold';
  src: url('../Fontes/TitilliumWebsemibold-Kv2y.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Venus Light';
  src: url('../Fontes/Venus Light.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Venus YG';
  src: url('../Fontes/Venus YG.otf') format('opentype');
  font-display: swap;
}

html {
  height: 100%;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  touch-action: manipulation;
}

body {
  padding-top: 0;
  padding-bottom: var(--nav-height);
  font-family: var(--app-font-family, 'Open Sans', sans-serif);
  color: var(--app-text-color, #ffffff);
  position: relative;
  background: #ffffff;
}

body.has-custom-text-color {
  color: var(--app-text-color, var(--phrase-color, #ffffff));
}

body.has-custom-text-color * {
  color: inherit !important;
}

.lens-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--lens-color-rgb, var(--lens-custom-rgb, 178, 42, 28)), var(--lens-opacity-strong, 0)) 0%,
    rgba(var(--lens-color-rgb, var(--lens-custom-rgb, 178, 42, 28)), var(--lens-opacity-soft, 0.5)) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease, background 1s ease, background-color 1s ease;
  z-index: 1;
}

.lens-overlay[data-active="true"] {
  opacity: 1;
}

body > *:not(.lens-overlay):not(.site-header) {
  position: relative;
  z-index: 1;
}

body.has-game-background {
  background: transparent;
}

.game-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.game-background__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#texto-exibicao,
#pt,
#timer,
#nivel-mensagem,
#resultado,
#level-finder-level,
#level-instruction,
#mode-five-intro,
#mode-five-intro p,
#pt-container label,
#pt-container textarea {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.container-screen {
  width: min(100%, var(--container-max-width));
  min-height: calc(100vh - var(--header-height) - var(--nav-height) - var(--content-offset));
  margin: 0 auto;
  margin-top: calc(var(--header-height) + var(--content-offset));
  padding: clamp(16px, 3vw, 32px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: clamp(16px, 3vw, 32px);
  background: transparent;
  border: none;
}

.empty-state {
  min-height: calc(100vh - var(--header-height) - var(--nav-height) - var(--content-offset));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(16px, 3vw, 32px);
}

.empty-state h1 {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#visor {
  width: min(100%, var(--container-max-width));
  min-height: calc(100vh - var(--header-height) - var(--nav-height));
  margin: 0 auto;
  padding: clamp(18px, 3vw, 32px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
}

body.page-inplay #visor {
  width: 100%;
  max-width: none;
  padding: clamp(18px, 3vw, 32px) clamp(16px, 4vw, 40px);
}

body.page-inplay .container-screen {
  width: 100%;
  max-width: none;
  margin: 0;
}

#home-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - var(--nav-height));
  padding: calc(var(--header-height) + var(--content-offset)) clamp(16px, 3vw, 32px)
    calc(var(--nav-height) + clamp(16px, 3vw, 32px));
  box-sizing: border-box;
  position: relative;
}

.journey-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.journey-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #0b1f44;
  font-weight: 700;
  font-size: 14px;
}

.journey-field select {
  min-width: 140px;
  border: 1px solid rgba(11, 31, 68, 0.25);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 700;
  color: #0b1f44;
  background: rgba(255, 255, 255, 0.92);
}

.journey-phase-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.journey-title {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  color: #0b1f44;
  margin: 0;
}

.journey-button {
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  color: #ffffff;
  background: #2f6fff;
  box-shadow: 0 12px 24px rgba(47, 111, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.journey-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(47, 111, 255, 0.35);
}

.journey-button--secondary {
  background: transparent;
  color: #2f6fff;
  box-shadow: none;
  padding: 0;
  font-size: 16px;
}

.journey-button--secondary-solid {
  background: #ffffff;
  color: #2f6fff;
  box-shadow: 0 8px 16px rgba(47, 111, 255, 0.2);
  padding: 10px 18px;
  font-size: 15px;
}

.home-game {
  width: 100%;
}

#home-game.vocabulary-game {
  min-height: calc(100vh - var(--header-height) - var(--nav-height));
}

.home-game.is-hidden,
.journey-panel.is-hidden {
  display: none;
}

.game-pause {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-height) + 16px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  z-index: 1200;
}

body.page-play #play-container {
  --content-offset: 0px;
  padding-top: 0;
  margin-top: calc(var(--header-height) + var(--content-offset) + 70px);
}

body.page-inplay #home-main.container-screen--home {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.4fr);
  gap: clamp(16px, 4vw, 36px);
  align-items: stretch;
  padding: calc(var(--header-height) + 24px) clamp(16px, 3vw, 32px)
    calc(var(--nav-height) + clamp(18px, 2vw, 28px));
}

.container-screen,
.balance-card,
.profile-report,
.ranking-card,
.ranking-carousel__nav,
.ranking-row,
.stats-wrapper {
  background-color: transparent;
  box-shadow: none;
  border-color: transparent;
}

.container-screen--home {
  align-items: center;
  padding-top: clamp(8px, 3vw, 18px);
}

.container-screen--fun,
.container-screen--play,
.container-screen--profile {
  align-items: stretch;
}

.container-screen--visor {
  justify-content: flex-start;
  align-items: center;
  gap: clamp(20px, 4vw, 36px);
}

.container-screen--overlay {
  position: fixed;
  top: calc(var(--header-height) + var(--content-offset));
  bottom: var(--nav-height);
  left: 0;
  right: 0;
  padding: clamp(20px, 3vw, 40px);
  justify-content: center;
  align-items: center;
  z-index: 1100;
  margin-top: 0;
}

body.theme-blue {
  color: #f0f6ff;
}

body.page-inplay {
  color: #f7faff;
}

body.page-home,
body.page-play {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

body.page-home {
  overflow-y: hidden;
  --header-height: 0px;
  --content-offset: 0px;
}

body.page-home #global-header {
  display: none;
}

body.page-home #home-main {
  margin-top: -120px;
}

body.page-ranking {
  color: #0b3d91;
}

.container-screen--ranking {
  align-items: stretch;
  gap: 24px;
  width: min(100%, var(--ranking-carousel-max-width));
}

body.page-ranking-embed {
  color: #ffffff;
}

.container-screen--embed {
  align-items: stretch;
  display: flex;
  justify-content: center;
  margin-top: 0;
  min-height: calc(100vh - var(--nav-height));
  padding: 24px 16px 96px;
  width: min(100%, 1200px);
}

.ranking-embed {
  background: #000;
  border: none;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  min-height: calc(100vh - 160px);
  width: 100%;
}



.ranking-carousel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.ranking-banner {
  width: 100%;
  max-width: var(--ranking-carousel-max-width);
  margin: 0 auto 12px;
}

.ranking-banner__viewport {
  overflow: hidden;
  border-radius: 24px;
}

.ranking-banner__track {
  --ranking-banner-index: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate3d(calc(var(--ranking-banner-index) * -100%), 0, 0);
}

.ranking-banner__card {
  position: relative;
  padding: 18px clamp(20px, 4vw, 32px);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: clamp(16px, 4vw, 32px);
  color: #fff;
  background: var(--banner-gradient, linear-gradient(135deg, #0f3d91, #0fb2ff));
  border-radius: 24px;
  overflow: hidden;
  opacity: 0.55;
  transform: scale(0.94);
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.ranking-banner__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}

.ranking-banner__card.is-active {
  opacity: 0.5;
  transform: scale(1);
  background: linear-gradient(
    135deg,
    rgba(var(--lens-color-stats-rgb, 0, 0, 0), 0.85),
    rgba(var(--lens-color-stats-rgb, 0, 0, 0), 0.65)
  );
}

.stats-banner .ranking-banner__card.is-active {
  background: linear-gradient(
    135deg,
    rgba(var(--lens-color-stats-rgb, 0, 0, 0), 0.9),
    rgba(var(--lens-color-stats-rgb, 0, 0, 0), 0.7)
  );
}

.ranking-banner__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ranking-banner__content h2 {
  margin: 0;
  font-size: clamp(22px, 4vw, 30px);
}

.ranking-banner__logline {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.ranking-banner__eyebrow {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.76);
}

.ranking-banner__avatars {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: flex-start;
  order: -1;
  margin-left: -6px;
}

.ranking-banner__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  position: relative;
}

.ranking-banner__avatar + .ranking-banner__avatar {
  margin-left: -20%;
}

.ranking-banner__avatar:nth-child(1) {
  z-index: 3;
  transform: translateY(-4px);
}

.ranking-banner__avatar:nth-child(2) {
  z-index: 2;
}

.ranking-banner__avatar:nth-child(3) {
  z-index: 1;
  transform: translateY(4px);
}

.ranking-banner__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-banner__avatar[data-empty="true"] {
  opacity: 0.45;
  filter: grayscale(0.7);
}

.ranking-carousel__nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  width: 100%;
  max-width: var(--ranking-carousel-max-width);
  margin: 0 auto;
  box-sizing: border-box;
}

.ranking-carousel__nav-button {
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #0f52ba;
  background: transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.dark-mode .ranking-carousel__nav-button,
body.theme-blue .ranking-carousel__nav-button {
  color: #f0f6ff;
}

.ranking-carousel__nav-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ranking-carousel__nav-button.is-active {
  opacity: 1;
  transform: translateY(-2px);
}

.ranking-carousel__nav-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.ranking-carousel__nav-button:active {
  transform: scale(0.96);
}

.ranking-carousel__nav-button--icon {
  gap: 8px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  padding-inline: 14px;
}

.container-screen--play .ranking-carousel__nav-button {
  color: #ffffff;
  opacity: 0.8;
}

.container-screen--play .ranking-carousel__nav-button.is-active {
  opacity: 1;
}

.ranking-carousel__nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ranking-carousel__nav-label {
  font-size: 14px;
  font-weight: 600;
  color: #0c3d5e;
}

.ranking-carousel__viewport {
  width: 100%;
  max-width: var(--ranking-carousel-max-width);
  overflow: hidden;
  border-radius: 32px;
  margin: 0 auto;
  position: relative;
  touch-action: pan-y;
}

.ranking-grid {
  --ranking-carousel-index: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;
  width: 100%;
  transform: translate3d(calc(var(--ranking-carousel-index) * -100%), 0, 0);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.ranking-card {
  background: transparent;
  border-radius: 24px;
  padding: 20px;
  box-shadow: none;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ranking-card__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ranking-card__header h2 {
  margin: 0;
  font-size: 20px;
}

.ranking-card__header p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #516b9a;
}

.ranking-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(15, 82, 186, 0.12);
  color: #0f52ba;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 66px 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--app-font-family, 'Open Sans', sans-serif);
}

.ranking-row__position {
  font-weight: 700;
  font-size: 16px;
  color: inherit;
  text-align: center;
  position: relative;
}

.ranking-row__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
}

body.dark-mode .ranking-row__avatar,
body.theme-blue .ranking-row__avatar {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ranking-row__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-row__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ranking-row__name {
  font-size: 15px;
  color: inherit;
  margin: 0;
}

.ranking-row__meta {
  font-size: 12px;
  color: inherit;
  opacity: 0.75;
}

.ranking-row__value {
  font-weight: 700;
  font-size: 16px;
  color: inherit;
  text-align: right;
}

.leaderboard-table__head {
  display: grid;
  grid-template-columns: 66px 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0 18px 6px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.leaderboard-table__head-score {
  text-align: right;
}

.ranking-row--rank-1 .ranking-row__position::before,
.ranking-row--rank-2 .ranking-row__position::before,
.ranking-row--rank-3 .ranking-row__position::before {
  content: '\1F947';
  display: block;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.ranking-row--rank-2 .ranking-row__position::before {
  content: '\1F948';
}

.ranking-row--rank-3 .ranking-row__position::before {
  content: '\1F949';
}

.ranking-empty {
  margin: 8px 0 0;
  font-size: 14px;
  color: #6a7ea8;
}

.container-screen--play .ranking-row__name,
.container-screen--play .ranking-row__meta,
.container-screen--play .ranking-row__value,
.container-screen--play .ranking-empty {
  color: #ffffff;
}

.ranking-error {
  margin: 0;
  padding: 12px 18px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid rgba(177, 18, 38, 0.35);
  color: #b11226;
  font-weight: 600;
}

.ranking-footer-note {
  font-size: 14px;
  color: #516b9a;
  text-align: center;
}

body.dark-mode.page-ranking,
body.theme-blue.page-ranking {
  background: #040a1b;
  color: #f0f6ff;
}

body.dark-mode .ranking-card,
body.theme-blue .ranking-card {
  border-color: rgba(255, 255, 255, 0.18);
}

body.dark-mode .ranking-row,
body.theme-blue .ranking-row {
  background: transparent;
  border-color: transparent;
}

body.dark-mode .ranking-row__name,
body.theme-blue .ranking-row__name,
body.dark-mode .ranking-row__value,
body.theme-blue .ranking-row__value {
  color: #f0f6ff;
}

body.dark-mode .ranking-row__meta,
body.theme-blue .ranking-row__meta,
body.dark-mode .ranking-card__header p,
body.theme-blue .ranking-card__header p,
body.dark-mode .ranking-footer-note,
body.theme-blue .ranking-footer-note {
  color: #b8cfff;
}

body.dark-mode .ranking-tag,
body.theme-blue .ranking-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #fdd070;
}

@media (max-width: 720px) {
  body.page-ranking .container-screen--ranking {
    margin-top: calc(var(--header-height) + var(--content-offset) + 70px);
  }

  .ranking-row {
    grid-template-columns: 32px 48px 1fr;
    grid-template-areas:
      'pos avatar value'
      'pos info info';
  }

  .stats-top__list .ranking-row {
    width: 330px;
    max-width: 100%;
  }

  .ranking-row__position {
    grid-area: pos;
  }

  .ranking-row__avatar {
    grid-area: avatar;
    width: 48px;
    height: 48px;
  }

  .ranking-row__info {
    grid-area: info;
  }

  .ranking-row__value {
    grid-area: value;
    justify-self: end;
  }
}

.site-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  min-height: 82px;
  height: 82px;
  background: var(--header-gradient, linear-gradient(135deg, #1a66cc 0%, #357de0 100%));
  color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1400;
  box-shadow: 0 6px 18px rgba(11, 61, 145, 0.28);
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
  box-sizing: border-box;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header--inplay {
  background: var(--header-gradient, linear-gradient(135deg, #4c97ff 0%, #7db4ff 100%));
  box-shadow: 0 10px 22px rgba(80, 145, 235, 0.3);
  animation: headerGlow 6s ease-in-out infinite;
}

@keyframes headerGlow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.06);
  }
}

.site-header__actions,
.site-header__profile,
.site-header__text {
  color: inherit;
}

.site-header__profile {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 400px;
}

.site-header__avatar-container {
  --avatar-ring-color: #27ae60;
  --avatar-progress: 0deg;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(var(--avatar-ring-color) var(--avatar-progress), rgba(11, 61, 145, 0.15) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  order: 0;
  position: relative;
}

.site-header__avatar-container::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(11, 61, 145, 0.12);
  pointer-events: none;
}

.site-header__avatar-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(197, 215, 255, 0.6), rgba(127, 168, 255, 0.55));
  position: relative;
  z-index: 1;
}

.site-header__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.site-header__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  align-items: flex-start;
  text-align: left;
}

.site-header__name {
  font-weight: 700;
  font-size: clamp(12px, 2.5vw, 15px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

.site-header__level {
  font-size: clamp(13px, 3vw, 16px);
  opacity: 0.9;
  white-space: nowrap;
  font-weight: 600;
  color: #e8f2ff;
}

body.dark-mode .site-header__avatar-container {
  background: conic-gradient(var(--avatar-ring-color) var(--avatar-progress), rgba(255, 255, 255, 0.16) 0deg);
}

body.dark-mode .site-header__avatar-ring {
  background: linear-gradient(135deg, rgba(46, 64, 110, 0.85), rgba(81, 115, 186, 0.75));
}

body.theme-blue .site-header__avatar-container {
  background: conic-gradient(var(--avatar-ring-color) var(--avatar-progress), rgba(240, 246, 255, 0.18) 0deg);
}

body.theme-blue .site-header__avatar-ring {
  background: linear-gradient(135deg, rgba(111, 167, 255, 0.9), rgba(66, 130, 255, 0.82));
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-header__user {
  display: flex;
  align-items: center;
}

.site-header__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header__button:hover,
.site-header__button:focus {
  transform: translateY(-1px);
  opacity: 0.9;
}

.site-header__button--logout {
  background: rgba(220, 53, 69, 0.16);
  color: #c62828;
  display: none;
}

body.dark-mode .site-header__button,
body.theme-blue .site-header__button {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

body.dark-mode .site-header__button--logout,
body.theme-blue .site-header__button--logout {
  color: #ffe4e4;
}

@media (max-width: 720px) {
  .site-header {
    justify-content: flex-start;
    gap: 10px;
    padding: 4px 12px;
    height: auto;
  }

  .site-header__avatar-container {
    order: -1;
    width: 48px;
    height: 48px;
    padding: 3px;
    margin-right: 4px;
  }

  .site-header__actions {
    width: auto;
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 82px;
    --content-offset: 50px;
  }
}

@media (max-width: 640px) {
  .ranking-banner__card {
    flex-direction: column;
    align-items: flex-start;
  }

  .ranking-banner__avatars {
    width: 100%;
    justify-content: space-between;
  }

  .ranking-banner__avatar {
    width: 56px;
    height: 56px;
  }
}

.balance-section {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.balance-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-radius: 20px;
  background: transparent;
  color: #0b3d91;
  box-shadow: none;
  border: 1px solid transparent;
}

.balance-card__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.balance-card__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.balance-card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.1;
}

.balance-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(11, 61, 145, 0.76);
}

.balance-card__value {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: inherit;
}

body.theme-blue .balance-card,
body.dark-mode .balance-card {
  background: transparent;
  border-color: transparent;
  color: #f0f6ff;
}

body.theme-blue .balance-card__label,
body.dark-mode .balance-card__label {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 720px) {
  .container-screen {
    width: 100%;
    padding: clamp(16px, 6vw, 28px);
  }

  .balance-section {
    justify-content: center;
  }

  .balance-card {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .balance-card__text {
    align-items: center;
  }
}

body.theme-blue #pt,
body.theme-blue #resultado,
body.theme-blue #acertos,
body.theme-blue #nivel-mensagem,
body.theme-blue .timer-display {
  color: #ffffff;
  caret-color: #ffffff;
  opacity: 1;
}

body.theme-blue #texto-exibicao {
  color: var(--phrase-color, #ffffff);
}

body.dark-mode #pt,
body.dark-mode #resultado,
body.dark-mode #acertos,
body.dark-mode #nivel-mensagem,
body.dark-mode .timer-display {
  color: #ffffff;
  caret-color: #ffffff;
  opacity: 1;
}

body.dark-mode #texto-exibicao {
  color: var(--phrase-color, #ffffff);
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page-footer {
  position: relative;
  width: 100%;
}

#main-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 28px;
  background: var(--header-gradient, linear-gradient(135deg, #1a66cc 0%, #2f7ae0 100%));
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1200;
  box-sizing: border-box;
  gap: 12px;
}

#main-nav .nav-item {
  color: #ffffff;
  text-decoration: none;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

#main-nav .nav-item:hover,
#main-nav .nav-item:focus-visible {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
}

#main-nav .nav-item.active {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

#main-nav .nav-item span[aria-hidden="true"] {
  display: block;
  line-height: 1;
}

.nav-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (min-width: 1024px) {
  .nav-icon {
    width: 45px;
    height: 45px;
  }

  body.page-home #mode-buttons {
    width: min(92vw, calc(6 * 164px + 5 * 60px));
    gap: 60px;
  }

  body.page-home #mode-buttons .mode-logo {
    width: 164px;
  }

  .post-game-metric__icon {
    width: clamp(96px, 11vw, 112px);
    height: clamp(96px, 11vw, 112px);
  }
}

.nav-item--user {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
}

.nav-item__trigger {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font: inherit;
  cursor: pointer;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-item__trigger:focus {
  outline: none;
}

.nav-item__trigger:hover,
.nav-item__trigger:focus-visible,
.nav-item--user.nav-item--open .nav-item__trigger {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

.nav-item--user .nav-item__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(5, 30, 74, 0.92);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  min-width: 160px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.nav-item--user.nav-item--open .nav-item__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-item__menu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  appearance: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-item__menu-link:hover,
.nav-item__menu-link:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.nav-item__menu-link--button {
  width: 100%;
}

.nav-item--user-active .nav-item__trigger,
.nav-item--user-active .nav-item__trigger:hover,
.nav-item--user-active .nav-item__trigger:focus-visible,
.nav-item--user.nav-item--open .nav-item__trigger {
  background: rgba(11, 61, 145, 0.12);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .nav-item--user .nav-item__menu {
  background: rgba(12, 12, 12, 0.95);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

body.theme-blue .nav-item--user .nav-item__menu {
  background: rgba(2, 21, 51, 0.94);
  color: #f0f6ff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

body.dark-mode .nav-item__menu-link,
body.theme-blue .nav-item__menu-link {
  background: rgba(255, 255, 255, 0.12);
}

body.dark-mode .nav-item__menu-link:hover,
body.dark-mode .nav-item__menu-link:focus-visible,
body.theme-blue .nav-item__menu-link:hover,
body.theme-blue .nav-item__menu-link:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.nav-item__menu-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.32);
}

  body.dark-mode #intro-overlay {
    background: #000;
  }

.custom-title {
  font-family: var(--app-font-family, 'Open Sans', sans-serif);
  font-size: 15px;
}

.custom-info {
  font-family: var(--app-font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 12px;
  margin: 5px 0;
}

#visor {
  position: relative;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(20px, 4vw, 36px);
  width: 100%;
  padding: clamp(18px, 3vw, 28px);
  box-sizing: border-box;
  background: transparent;
  border-radius: 24px;
  backdrop-filter: none;
  box-shadow: none;
}

.visor-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 26px);
}

.mode-emblem {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(260px, 55vw, 360px);
}

.phrase-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
}

.mode-emblem,
.phrase-stack,
#level-instruction {
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
}

body.game-active #visor {
  transform: none;
}

@media (max-width: 768px) {
  body.game-active #visor {
    transform: none;
  }
}

@media (min-width: 1024px) {
  body.game-active #visor {
    transform: none;
  }
}

@media (max-width: 480px) {
  body.page-inplay #visor {
    width: min(380px, 100%);
    min-height: min(633px, calc(100vh - var(--header-height) - var(--nav-height) - 24px));
    max-height: calc(100vh - var(--header-height) - var(--nav-height) - 24px);
    margin-top: calc(var(--header-height) + 8px);
    margin-bottom: calc(var(--nav-height) + 8px);
  }

  body.page-inplay .mode-emblem {
    min-height: clamp(195px, 41vw, 270px);
  }

  body.page-inplay #mode-icon {
    width: clamp(168px, 34vw, 244px);
  }
}

#menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 40px);
  width: clamp(320px, 80vw, 1040px);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transform: none;
}

body.page-inplay #menu {
  width: 100%;
  max-width: 640px;
  align-self: stretch;
}

#menu > * {
  width: 100%;
  margin: 0 auto;
}

body.page-home #menu {
  flex: 1 1 auto;
  min-height: 0;
}

#clock {
  font-size: clamp(40px, 8vw, 80px);
  font-family: var(--app-font-family, 'Open Sans', sans-serif);
  font-weight: normal;
  color: #000;
  text-align: center;
}

#menu-logo {
  width: 100px;
  height: auto;
}

body.dark-mode #menu-logo {
  filter: invert(1);
}

body.dark-mode #clock {
  color: #fff;
}

#menu-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  justify-items: center;
  width: 100%;
}

body.page-inplay #menu-modes {
  width: 100%;
}

body.page-image-game {
  --image-game-footer-height: 0px;
  --image-game-footer-offset: env(safe-area-inset-bottom);
  overflow-y: auto;
  overscroll-behavior: auto;
  touch-action: pan-y;
}

body.page-image-game #game-main {
  padding-bottom: var(--image-game-footer-offset);
  margin-top: calc(var(--header-height) + 30px);
}

body.page-image-game #visor {
  display: flex;
  min-height: calc(100vh - var(--header-height) - var(--nav-height));
}

.image-game-visor {
  justify-content: center;
  padding-bottom: 0;
  display: flex;
  flex: 1;
}

.image-game-visor .visor-stack {
  width: min(960px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 0;
}

.image-game-emblem {
  min-height: clamp(220px, 40vw, 340px);
}

.image-game-target {
  width: clamp(180px, 35vw, 280px);
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 320px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.2));
  transition: opacity 0.2s ease;
  touch-action: manipulation;
  opacity: 0.8;
}

.image-game-target.is-listening,
.image-game-target.is-engaged {
  opacity: 1;
}

.image-game-target--slide-in {
  animation: image-game-slide-in 0.3s ease both;
}

.image-game-target--slide-out {
  animation: image-game-slide-out 0.3s ease both;
}

.image-game-target--hidden {
  opacity: 0;
}

@keyframes image-game-slide-in {
  from {
    opacity: 0;
    transform: translateX(26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes image-game-slide-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-26px);
  }
}

.image-game-status {
  font-family: var(--game-phrase-font-family, 'Open Sans', sans-serif);
  font-size: clamp(16px, 2.6vw, 20px);
  color: var(--game-phrase-color, #ffffff);
  text-align: center;
}

.image-game-status[data-tone='success'] {
  color: #a7f3d0;
}

.image-game-status[data-tone='warning'] {
  color: #fde68a;
}

.image-game-status[data-tone='info'] {
  color: #bfdbfe;
}

.image-game-english {
  margin-top: 24px;
  font-family: var(--game-phrase-font-family, 'Open Sans', sans-serif);
  font-size: clamp(18px, 3vw, 24px);
  color: var(--game-phrase-color, #ffffff);
  text-align: center;
}

body.page-image-game .level-instruction,
body.page-image-game .image-game-status,
body.page-image-game .image-game-english,
body.page-image-game .user-transcript {
  font-size: 150%;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  text-transform: capitalize;
}

body.page-image-game .image-game-english {
  font-size: 210%;
  font-family: var(--game-phrase-font-family, 'Open Sans', sans-serif);
  font-weight: 700;
}

.image-game-level-header {
  margin: 0 auto 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.image-game-level-title {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 4vw, 32px);
  text-align: center;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.image-game-level-title span {
  font-weight: 800;
}

.image-game-level-header .image-game-start {
  margin-top: 4px;
}

body.page-image-game .image-game-english:not([hidden]) {
  transform: translateY(-60px);
}

body.page-image-game.image-game--playing .image-game-folder-panel {
  display: none;
}

.image-game-folder-panel {
  margin: 12px auto 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: min(960px, 100%);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 18px 18px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
}

.image-game-level-brief {
  display: flex;
  gap: 8px;
  align-items: center;
}

.image-game-level-chip,
.image-game-phase-chip {
  background: linear-gradient(135deg, #91b6ff, #4e7dff);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 28px rgba(44, 107, 255, 0.25);
}

.image-game-phase-description {
  margin: 8px 0 4px;
  color: #e0f2fe;
  font-weight: 700;
  line-height: 1.5;
}

.image-game-start {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #0f172a;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-game-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.4);
}

.image-game-answers {
  width: min(900px, 100%);
  margin: 18px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.image-game-choice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.image-game-content.is-dissolving {
  animation: image-game-dissolve 0.5s ease forwards;
}

.image-game-content.is-dissolved {
  opacity: 0;
  pointer-events: none;
}

@keyframes image-game-dissolve {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.phase-option-button {
  border: none;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  padding: 14px 12px;
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.phase-option-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.45);
}

.phase-option-button.is-correct {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 16px 30px rgba(34, 197, 94, 0.35);
}

.phase-option-button.is-wrong {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.35);
}

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

.phase-grid-button {
  border: none;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.phase-grid-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.3);
}

.phase-grid-button img {
  width: 100%;
  display: block;
  object-fit: contain;
  background: #0b1223;
  transition: opacity 0.2s ease;
}

.image-game-phase3-hint {
  color: #e0f2fe;
  font-weight: 700;
  text-align: center;
  margin-top: 6px;
}

.image-game-audio-progress {
  width: 100%;
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.image-game-audio-progress .image-game-progress {
  width: min(480px, 100%);
}

.image-game-controls {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.image-game-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #e5e7eb;
}

.image-game-round {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.image-game-counts {
  font-size: 14px;
  opacity: 0.9;
}

.image-game-manual {
  display: none;
}

.image-game-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: none;
}

.image-game-progress__track {
  flex: 1;
  height: 18px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.image-game-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, #60a5fa, #7c3aed);
  border-radius: inherit;
  transition: width 0.2s ease;
}

.image-game-progress__label {
  min-width: 60px;
  text-align: right;
  color: #e2e8f0;
  font-weight: 700;
}

.image-game-mark {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.image-game-mark:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.image-game-mark:active {
  transform: translateY(0);
}

.image-game-mark--correct {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.image-game-mark--wrong {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.image-game-feedback {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  padding: 20px;
}

.image-game-feedback[hidden] {
  display: none;
}

.image-game-feedback__card {
  width: min(480px, 92vw);
  background: #0b1224;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.image-game-feedback__card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.image-game-feedback__card p {
  margin: 0 0 16px;
  line-height: 1.5;
  color: #cbd5e1;
}

.image-game-feedback__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.image-game-feedback__stat {
  background: #0f172a;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.image-game-feedback__stat strong {
  display: block;
  font-size: 22px;
  margin-top: 6px;
}

.image-game-feedback__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.image-game-feedback__button {
  flex: 1;
  min-width: 140px;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 12px 26px rgba(99, 102, 241, 0.35);
}

.image-game-feedback__button--ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: none;
  color: #e2e8f0;
}

body.page-image-game.image-game-mic-lens .lens-overlay {
  transition: opacity 0.5s ease, background 0.5s ease, background-color 0.5s ease;
}

@media (max-width: 768px) {
  body.page-image-game {
    --image-game-footer-height: 0px;
  }

  body.page-image-game #game-main {
    margin-top: calc(var(--header-height) + 30px);
    padding: 12px 14px var(--image-game-footer-offset);
  }

  .image-game-visor {
    min-height: calc(100vh - var(--header-height) - var(--image-game-footer-height));
    padding: 12px 0 36px;
  }

  .image-game-target {
    width: clamp(220px, 75vw, 420px);
    max-height: 440px;
    display: block;
    margin: 0 auto;
  }

  .image-game-emblem {
    transform: none;
    min-height: 280px;
  }

  .phrase-stack {
    transform: none;
    width: 100%;
  }

  .image-game-english {
    margin-top: 32px;
  }

  .image-game-visor .visor-stack {
    padding-top: 0;
    width: 100%;
    gap: 16px;
  }

  body.page-image-game #visor {
    min-height: auto;
  }

  .image-game-folder-panel {
    width: 100%;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 16px;
    padding: 12px;
  }

  .image-game-folders {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    width: 100%;
  }

  .image-game-level-control {
    width: 100%;
  }

  .image-game-manual {
    flex-wrap: wrap;
    justify-content: center;
  }

  body.page-image-game.image-game--playing .image-game-folder-panel,
  body.page-image-game.image-game--playing .image-game-level-control {
    display: none;
  }

  body.page-image-game.image-game--playing .image-game-emblem,
  body.page-image-game.image-game--playing .phrase-stack,
  body.page-image-game.image-game--playing .image-game-english:not([hidden]) {
    transform: none;
    margin-top: 0;
  }

  body.page-image-game .level-instruction,
  body.page-image-game .image-game-status,
  body.page-image-game .image-game-english,
  body.page-image-game .user-transcript {
    font-size: 180%;
  }

  body.page-image-game .image-game-english {
    font-size: 252%;
  }
}

@media (min-width: 769px) {
  .image-game-visor .visor-stack {
    padding-top: 0;
  }
}

.mode-logo {
  --mode-color-rgb: 200, 229, 74;
  --mode-color-base: rgb(var(--mode-color-rgb));
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  background: linear-gradient(
      135deg,
      color-mix(in srgb, var(--mode-color-base) 68%, #000 32%) 0%,
      color-mix(in srgb, var(--mode-color-base) 86%, #000 14%) 50%,
      color-mix(in srgb, var(--mode-color-base) 100%, #fff 10%) 100%
    ),
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.16), transparent 50%);
  box-shadow:
    0 14px 30px rgba(var(--mode-color-rgb), 0.25),
    inset 0 -6px 12px rgba(0, 0, 0, 0.14);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 0.2s linear;
}

.mode-logo::after {
  content: '';
  position: absolute;
  inset: 6%;
  border-radius: 22px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 52%);
  pointer-events: none;
}

.mode-logo__icon {
  position: relative;
  z-index: 1;
  width: 68%;
  height: 68%;
  display: grid;
  place-items: center;
  color: var(--mode-icon-color, #fff);
  fill: currentColor;
  opacity: var(--mode-icon-opacity, 1);
  filter:
    brightness(0)
    saturate(100%)
    invert(1)
    contrast(1.1)
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
}

.mode-logo__icon image,
.mode-logo__icon svg,
.mode-logo__icon use {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.mode-logo--menu {
  width: min(207px, 100%);
}

.mode-logo--small {
  width: 60px;
  border-radius: 22px;
}

.mode-logo--small .mode-logo__icon {
  width: 45px;
  height: 45px;
}

.mode-logo--overlay {
  width: min(138px, 40vw);
  border-radius: 26px;
}

.mode-logo[data-mode="1"],
.menu-mode[data-mode="1"] .mode-logo,
.mode-btn[data-mode="1"] .mode-logo {
  --mode-color-rgb: var(--lens-color-1-rgb, 200, 229, 74);
}

.mode-logo[data-mode="2"],
.menu-mode[data-mode="2"] .mode-logo,
.mode-btn[data-mode="2"] .mode-logo {
  --mode-color-rgb: var(--lens-color-2-rgb, 255, 215, 0);
}

.mode-logo[data-mode="3"],
.menu-mode[data-mode="3"] .mode-logo,
.mode-btn[data-mode="3"] .mode-logo {
  --mode-color-rgb: var(--lens-color-3-rgb, 255, 108, 62);
}

.mode-logo[data-mode="4"],
.menu-mode[data-mode="4"] .mode-logo,
.mode-btn[data-mode="4"] .mode-logo {
  --mode-color-rgb: var(--lens-color-4-rgb, 33, 150, 243);
}

.mode-logo[data-mode="5"],
.menu-mode[data-mode="5"] .mode-logo,
.mode-btn[data-mode="5"] .mode-logo {
  --mode-color-rgb: var(--lens-color-5-rgb, 27, 0, 75);
}

.mode-logo[data-mode="6"],
.menu-mode[data-mode="6"] .mode-logo,
.mode-btn[data-mode="6"] .mode-logo {
  --mode-color-rgb: var(--lens-color-6-rgb, 200, 229, 74);
  background: linear-gradient(
    140deg,
    #c8e54a,
    #ffd700,
    #ff6c3e,
    #2196f3,
    #1b004b,
    #c8e54a
  );
  background-size: 320% 320%;
  animation: modeLogoSpectrum 5s linear infinite;
}

@keyframes modeLogoSpectrum {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.menu-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(220px, 100%);
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  animation: menuModeReveal 420ms ease forwards;
  transition: transform 200ms ease, filter 200ms ease, opacity 260ms ease;
}

.menu-mode--disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.menu-mode:focus-visible {
  outline: 3px solid rgba(11, 61, 145, 0.8);
  outline-offset: 6px;
  border-radius: 20px;
}

body.dark-mode .menu-mode:focus-visible,
body.theme-blue .menu-mode:focus-visible {
  outline-color: rgba(255, 255, 255, 0.85);
}

.menu-mode .mode-logo {
  transform-origin: center;
}

.menu-mode__label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0b3d91;
}

body.dark-mode .menu-mode__label,
body.theme-blue .menu-mode__label {
  color: #f0f6ff;
}

.menu-mode:hover .mode-logo,
.menu-mode:focus-visible .mode-logo {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.18),
    0 18px 36px rgba(var(--mode-color-rgb), 0.25),
    inset 0 -8px 16px rgba(0, 0, 0, 0.18);
}

.menu-mode:active .mode-logo {
  transform: translateY(-2px) scale(0.98);
}

.menu-mode:nth-child(1) { animation-delay: 40ms; }
.menu-mode:nth-child(2) { animation-delay: 80ms; }
.menu-mode:nth-child(3) { animation-delay: 120ms; }
.menu-mode:nth-child(4) { animation-delay: 160ms; }
.menu-mode:nth-child(5) { animation-delay: 200ms; }
.menu-mode:nth-child(6) { animation-delay: 240ms; }

@keyframes menuModeReveal {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.hidden {
  display: none !important;
}

#pt-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 90vw;
}

#pt {
  font-size: clamp(32px, 6vw, 50px);
  color: #333;
  background: transparent;
  border: none;
  outline: none;
  text-align: center;
  width: 100%;
  caret-color: #333;
  font-family: var(--game-phrase-font-family, var(--app-font-family, 'Open Sans', sans-serif));
  font-weight: normal;
  display: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  resize: none;
}


#texto-exibicao {
  font-size: clamp(32px, 6vw, 50px);
  color: var(--phrase-color, #333333);
  font-family: var(--game-phrase-font-family, var(--app-font-family, 'Open Sans', sans-serif));
  font-weight: bold;
  text-align: center;
  max-width: min(90vw, 960px);
  line-height: 1.2;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.2em * 2);
  word-break: break-word;
  transition: color 320ms ease, transform 300ms ease, opacity 300ms ease;
  will-change: color, transform, opacity;
}

.user-transcript {
  font-family: 'Colombia', var(--app-font-family, 'Open Sans', sans-serif);
  font-size: 60%;
  opacity: 0.8;
  min-height: 1.2em;
  text-align: center;
  margin-top: 8px;
  color: var(--phrase-color, #333333);
  letter-spacing: 0.2px;
}

.user-transcript__letter {
  opacity: 0;
  display: inline-block;
  animation: transcriptFadeIn 500ms ease forwards;
}

@keyframes transcriptFadeIn {
  0% { opacity: 0; transform: translateY(4px); }
  50% { opacity: 0.6; }
  100% { opacity: 1; transform: translateY(0); }
}

.phrase-slide {
  animation: phraseSlideRight 300ms ease;
}

@keyframes phraseSlideRight {
  0% {
    opacity: 0;
    transform: translateX(-18px);
  }
  60% {
    opacity: 1;
    transform: translateX(6px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

#score {
  display: none;
}

.level-instruction {
  width: 100%;
  max-width: min(90vw, 960px);
  margin: 8px auto 0;
  padding: 12px 14px;
  background: #f5f7ff;
  border-radius: 12px;
  color: #1f2a44;
  text-align: center;
  font-weight: 600;
  display: none;
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.08);
}

.level-instruction.is-visible {
  display: block;
}

.mode-five-intro {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: min(96vw, 1080px);
  min-height: 70vh;
  margin: 0 auto;
  padding: clamp(24px, 6vw, 48px);
  text-align: center;
  color: #ffffff;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 260ms ease, transform 260ms ease;
  cursor: pointer;
}

.mode-five-intro.is-visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mode-five-intro.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.mode-five-intro__instruction {
  margin: 0;
  font-size: clamp(44px, 6vw, 52px);
  line-height: 1.2;
  color: #ffeaa0;
  font-weight: 700;
  text-wrap: balance;
}

.mode-five-intro__hero {
  margin: 4px 0;
  font-size: clamp(52px, 8vw, 76px);
  line-height: 1.1;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.mode-five-intro__examples {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-five-intro__example {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.mode-five-intro__cta {
  margin: 22px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

body.mode-five-intro-active .mode-emblem,
body.mode-five-intro-active .phrase-stack,
body.mode-five-intro-active #level-instruction {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

body.mode-five-intro-active .phrase-stack {
  filter: blur(2px);
}

#resultado, #acertos {
  color: #333;
}

.phrase-timer {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timer-display {
  min-width: 120px;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #f5f7ff;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.timer-display--listening {
  color: #1b8cff;
  background: rgba(27, 140, 255, 0.16);
  border-color: rgba(27, 140, 255, 0.32);
}

.timer-display--inactive {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.18);
  border-color: rgba(255, 107, 107, 0.32);
}

#nivel-mensagem {
  position: absolute;
  top: 16px;
  left: 16px;
  transform: none;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  font-family: var(--app-font-family, 'Open Sans', sans-serif);
  display: none;
}

#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#intro-image {
  width: 250px;
  height: 250px;
}

#intro-progress {
  position: absolute;
  bottom: 30px;
  width: 100%;
  max-width: 90vw;
  height: 20px;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
}

#intro-progress-filled {
  width: 0%;
  height: 100%;
  background-color: #ff0000;
}

#mode-icon {
  width: clamp(225px, 45vw, 325px);
  height: auto;
  max-width: 100%;
  opacity: var(--mode-icon-opacity, 1);
  pointer-events: auto;
  transform: none;
  transition: opacity 500ms ease, transform 500ms ease;
}

#mode-icon.medal-fade-out {
  opacity: 0;
}

#mode-icon.medal-fade-in {
  opacity: 1;
}

.level-finder-level {
  display: none;
  font-family: var(--app-font-family, 'Open Sans', sans-serif);
  font-weight: 800;
  font-size: clamp(96px, 22vw, 200px);
  line-height: 1;
  color: var(--level-finder-color, var(--phrase-color, #333));
  text-align: center;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  transition: color 320ms ease, opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
  opacity: 0;
}

.level-finder-level.is-visible {
  display: block;
  opacity: 1;
}

.level-finder-level.level-finder-bump {
  animation: levelFinderBump 420ms ease;
}

@keyframes levelFinderBump {
  0% { transform: translate(-50%, -50%) scale(1); }
  35% { transform: translate(-50%, -50%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

body.page-home #mode-buttons {
  position: fixed;
  bottom: calc(var(--nav-height) + 210px);
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, calc(6 * 60px + 5 * 20px));
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 10px;
  z-index: 999;
}

.mode-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s linear, transform 160ms ease;
}

.mode-btn:hover .mode-logo,
.mode-btn:focus-visible .mode-logo {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.15),
    0 14px 30px rgba(var(--mode-color-rgb), 0.2),
    inset 0 -6px 12px rgba(0, 0, 0, 0.16);
}

.mode-btn:active .mode-logo {
  transform: translateY(-1px) scale(0.99);
}

.mode-btn:focus-visible {
  outline: 3px solid rgba(11, 61, 145, 0.8);
  outline-offset: 6px;
  border-radius: 22px;
}

body.dark-mode .mode-btn:focus-visible,
body.theme-blue .mode-btn:focus-visible {
  outline-color: rgba(255, 255, 255, 0.85);
}

body.game-active {
  overflow: hidden;
  overscroll-behavior: contain;
}

body.game-active #mode-buttons {
  display: none !important;
}

body.page-home #mode-buttons .mode-logo {
  width: 60px;
}

#play-container {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(24px, 4vw, 40px);
  padding: 0;
  box-sizing: border-box;
}

#play-container > * {
  width: min(960px, 100%);
  margin: 0 auto;
}

body.page-play #play-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 16px 16px;
  text-align: center;
}

@media (max-width: 640px) {
  body.page-play #play-content {
    padding-top: 0;
  }
}

body.page-play #play-content.stats-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.stats-hub {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 12px 20px;
  box-sizing: border-box;
}

.stats-mode-selector {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  position: static;
  top: auto;
  z-index: 1;
  backdrop-filter: none;
}

.stats-mode-selector__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.stats-mode-selector__button {
  background: transparent;
  border: none;
  padding: 7px;
  border-radius: 8px;
  cursor: pointer;
  opacity: 1;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.stats-mode-selector.has-selection .stats-mode-selector__button {
  opacity: 1;
}

.stats-mode-selector__button.is-active {
  opacity: 0.99;
  transform: translateY(-2px);
  box-shadow: none;
}

.stats-mode-selector__icon {
  width: 35px;
  height: 35px;
  display: block;
  object-fit: contain;
}

.stats-mode-selector .mode-logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgb(var(--mode-color-rgb, 255, 255, 255));
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.stats-mode-selector .mode-logo::after {
  display: none;
}

.stats-mode-selector .mode-logo svg,
.stats-mode-selector .mode-logo .mode-logo__icon {
  width: 70%;
  height: 70%;
  color: #ffffff;
  fill: currentColor;
  display: block;
}

@media (max-width: 640px) {
  .stats-mode-selector__track {
    gap: 4px;
  }

  .stats-mode-selector__button {
    padding: 4px;
  }

  .stats-mode-selector__icon {
    width: 31px;
    height: 31px;
  }
}

.stats-slide {
  position: relative;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.stats-slide.is-entering {
  transform: translateX(8px);
  opacity: 0;
}

.stats-slide.is-entering.is-active {
  transform: translateX(0);
  opacity: 1;
}

.stats-slide.is-leaving {
  position: absolute;
  width: 100%;
  opacity: 1;
  transform: translateX(0);
}

.stats-slide.is-leaving.is-off {
  opacity: 0;
  transform: translateX(-8px);
}

.stats-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: transparent;
  border-radius: 18px;
  padding: clamp(10px, 2vw, 20px);
  box-shadow: none;
  opacity: 1;
}

.stats-hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.stats-hero__badge {
  width: 200px;
  height: 200px;
  border-radius: 28px;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.stats-hero__badge .mode-logo {
  width: 200px;
}

.stats-banner {
  margin-top: 4px;
}

.stats-banner .ranking-banner__card {
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  opacity: 1;
}

.stats-banner .ranking-banner__card .ranking-banner__eyebrow,
.stats-banner .ranking-banner__card h2,
.stats-banner .ranking-banner__card .ranking-banner__logline {
  color: #fff;
}

.stats-section {
  background: transparent;
  border-radius: 16px;
  padding: 0;
  box-shadow: none;
  opacity: 1;
}

.stats-section__header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-direction: column;
  margin-bottom: 12px;
}

.stats-section__header h2 {
  margin: 0;
  color: currentColor;
  text-align: center;
}

.stat-metric--panel {
  align-items: flex-start;
  background: transparent;
  border: 1px solid transparent;
  padding: 12px;
  border-radius: 14px;
  box-sizing: border-box;
}

.stats-metrics--panel {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  justify-items: center;
}

.stats-top__nav {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: center;
  width: min(380px, 100%);
  margin: 0 auto;
}

.stats-top__nav .ranking-carousel__nav-button {
  min-width: 0;
}

.stats-top__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.stats-top__empty {
  padding: 12px;
  color: #ffffff;
}

.ranking-row--compact {
  padding: 12px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
}

.stats-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  width: 100%;
}

.stats-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stats-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.stats-block--title {
  align-items: center;
  gap: 8px;
}

.stats-title {
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-align: center;
}

.stats-subtitle {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0;
  text-align: center;
}

.stats-block__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.stats-block__content--modes {
  padding: 6px 0;
}

.stats-block--modes #mode-buttons {
  position: static;
  transform: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  justify-items: center;
  align-items: center;
  gap: clamp(8px, 2.5vw, 14px);
  width: 100%;
  max-width: 270px;
  margin: 0 auto;
  padding: 0;
}

.stats-block--modes #mode-buttons .mode-logo {
  width: min(90px, 100%);
  height: auto;
}

body.dark-mode .stats-title,
body.theme-blue .stats-title,
body.dark-mode .stats-subtitle,
body.theme-blue .stats-subtitle {
  color: #f0f6ff;
}

.stat-bar {
  width: min(250px, 85vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.stat-bar-label {
  font-weight: 700;
  text-align: center;
  color: #ffffff;
}

body.dark-mode .stat-bar-label,
body.theme-blue .stat-bar-label {
  color: #f0f6ff;
}

.stat-bar-track {
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

body.dark-mode .stat-bar-track,
body.theme-blue .stat-bar-track {
  background: rgba(255, 255, 255, 0.18);
}

.stat-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00b3b3, #00cccc);
  transition: width 0.7s ease;
}

.stats-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  width: min(520px, 90vw);
}

.stats-numbers-slider {
  position: relative;
  width: min(520px, 100%);
  margin: 0 auto;
  min-height: clamp(200px, 32vh, 260px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.stats-section--performance {
  text-align: center;
}

.performance-card {
  position: relative;
  display: block;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: default;
}

.performance-card__glow {
  position: absolute;
  inset: -10px;
  border-radius: 18px;
  background: linear-gradient(90deg, #e11d48, #f97316);
  filter: blur(18px);
  opacity: 0.35;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.performance-card__body {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #0f172a, #0a0f1a 48%, #06070b);
  padding: clamp(14px, 3vw, 18px) clamp(16px, 4vw, 24px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.performance-card__line {
  position: absolute;
  inset-inline: 0;
  height: 1px;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.performance-card__line--top {
  top: 0;
  background: linear-gradient(90deg, transparent, #fb7185, transparent);
}

.performance-card__line--bottom {
  bottom: 0;
  background: linear-gradient(90deg, transparent, #fb923c, transparent);
}

.performance-card__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 24px);
}

.performance-card__player {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 18px);
  min-width: 0;
}

.performance-card__level {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(56px, 10vw, 64px);
  height: clamp(56px, 10vw, 64px);
}

.performance-card__level-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(244, 63, 94, 0.4);
  border-top-color: #f43f5e;
  transition: transform 0.9s ease;
}

.performance-card__level-core {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.performance-card__level-label {
  position: relative;
  font-weight: 700;
  color: #fb7185;
  font-size: clamp(13px, 2.6vw, 15px);
  letter-spacing: 0.2px;
}

.performance-card__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.performance-card__name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(15px, 3vw, 17px);
}

.performance-card__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f97316;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.6);
}

.performance-card__progress {
  position: relative;
  width: min(220px, 42vw);
  height: 10px;
  border-radius: 999px;
  background: #1f2937;
  overflow: hidden;
}

.performance-card__progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f43f5e, #fb923c);
  box-shadow: 0 6px 18px rgba(251, 146, 60, 0.35);
  transition: width 0.35s ease;
}

.performance-card__status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.performance-card__status-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.16);
  color: #f43f5e;
}

.performance-card__status-icon svg {
  width: 18px;
  height: 18px;
}

.performance-card__status-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(244, 63, 94, 0.16);
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.performance-card__status-label {
  font-size: 14px;
  letter-spacing: 0.4px;
}

.performance-card__status-dots {
  display: inline-flex;
  gap: 4px;
}

.performance-card__status-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.35);
  transition: background 0.3s ease, transform 0.3s ease;
}

.performance-card:hover .performance-card__glow,
.performance-card:focus-visible .performance-card__glow {
  opacity: 0.65;
  filter: blur(26px);
}

.performance-card:hover .performance-card__line,
.performance-card:focus-visible .performance-card__line {
  opacity: 1;
}

.performance-card:hover .performance-card__level-ring,
.performance-card:focus-visible .performance-card__level-ring {
  transform: rotate(180deg);
}

.performance-card:hover .performance-card__status-glow,
.performance-card:focus-visible .performance-card__status-glow {
  opacity: 1;
  filter: blur(14px);
}

.performance-card:hover .performance-card__status-dots span,
.performance-card:focus-visible .performance-card__status-dots span {
  background: #fb923c;
}

.performance-card:focus-visible {
  outline: 2px solid #fb923c;
  outline-offset: 4px;
}

@media (max-width: 540px) {
  .performance-card__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .performance-card__status {
    width: 100%;
    justify-content: space-between;
  }

  .performance-card__progress {
    width: 100%;
  }
}

.stats-performance__slider {
  position: relative;
  width: min(540px, 100%);
  margin: 0 auto;
  min-height: clamp(220px, 34vh, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.stats-performance__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: min(540px, 100%);
  padding: clamp(18px, 3vw, 24px);
  border-radius: 18px;
  background: transparent;
  opacity: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  color: #fff;
  font-family: var(--app-font-family, 'Open Sans', sans-serif);
  visibility: hidden;
}

.stats-performance__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  animation: none;
  visibility: visible;
}

.stats-performance__slide.is-leaving {
  opacity: 1;
  animation: none;
  visibility: hidden;
}

.stats-performance__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #73c9ff, #6f7cff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.stats-performance__icon svg {
  width: 80%;
  height: 80%;
  fill: currentColor;
  stroke: currentColor;
}

.stats-performance__value {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: 0.4px;
}

.stats-numbers-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  max-width: min(520px, 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.stats-numbers-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  animation: statsSlideFadeIn 320ms ease forwards;
}

.stats-numbers-slide.is-leaving {
  opacity: 0;
  animation: statsSlideFadeOut 320ms ease forwards;
}

@keyframes statsSlideFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes statsSlideFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.stat-metric {
  background: transparent;
  padding: 0;
  border-radius: 20px;
  text-align: center;
  min-width: 120px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-metric__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.stat-metric__value {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.stat-metric__detail {
  font-size: 12px;
  color: #ffffff;
  letter-spacing: 0.02em;
}

body.dark-mode .stat-metric,
body.theme-blue .stat-metric {
  background: transparent;
  box-shadow: none;
}

body.dark-mode .stat-metric__label,
body.theme-blue .stat-metric__label {
  color: #f0f6ff;
}

body.dark-mode .stat-metric__value,
body.theme-blue .stat-metric__value {
  color: #f0f6ff;
}

body.dark-mode .stat-metric__detail,
body.theme-blue .stat-metric__detail {
  color: #f0f6ff;
}

.stats-section {
  width: min(520px, 90vw);
  margin: 0 auto;
  background: transparent;
  padding: 0;
  border-radius: 22px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats-section--totals {
  width: 100%;
  margin: 0;
}

.stats-section__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: #ffffff;
}

.stats-list__label {
  font-weight: 600;
}

.stats-list__value {
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

body.dark-mode .stats-section,
body.theme-blue .stats-section {
  background: transparent;
  box-shadow: none;
}

body.dark-mode .stats-section__title,
body.theme-blue .stats-section__title,
body.dark-mode .stats-list__label,
body.theme-blue .stats-list__label {
  color: #f0f6ff;
}

body.dark-mode .stats-list__value,
body.theme-blue .stats-list__value {
  color: #f0f6ff;
}

.stats-medal-board {
  width: 100%;
  display: flex;
  justify-content: center;
}

.stats-medal-board__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
}

.stats-medal-board__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.stats-medal-board__icon {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.stats-medal-board__item--empty .stats-medal-board__icon {
  opacity: 0.5;
}

.stats-medal-board__value {
  font-weight: 700;
  color: #ffffff;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.stats-medal-board__empty {
  margin: 0;
  font-size: 15px;
  color: #ffffff;
  text-align: center;
}

body.dark-mode .stats-medal-board__item,
body.theme-blue .stats-medal-board__item {
  background: transparent;
  box-shadow: none;
}

body.dark-mode .stats-medal-board__value,
body.theme-blue .stats-medal-board__value,
body.dark-mode .stats-medal-board__empty,
body.theme-blue .stats-medal-board__empty {
  color: #f0f6ff;
}

@media (max-width: 640px) {
  #play-container {
    gap: 18px;
    padding: 0 0 12px;
  }

  body.page-play #play-content.stats-wrapper {
    width: 100%;
  }

  body.page-play #play-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .stats-wrapper {
    gap: 16px;
    align-items: center;
  }

  .stats-layout {
    gap: 18px;
    align-items: center;
  }

  .stat-bar {
    width: min(280px, 90vw);
  }

  .stats-metrics {
    width: 100%;
    gap: 14px;
  }

  .stat-metric {
    padding: 0;
  }

  .stat-metric__value {
    font-size: 24px;
  }

  body.page-play .stats-hub,
  body.page-play .stats-section,
  body.page-play .stats-wrapper,
  body.page-play .stats-layout,
  body.page-play .stats-hero {
    align-items: center;
  }

  body.page-play .stats-section,
  body.page-play .stats-hero {
    text-align: center;
  }

  .stats-section {
    width: 100%;
    padding: 0;
  }

  .stats-medal-board__grid {
    gap: 12px;
  }

  .stats-medal-board__item {
    padding: 0 0;
  }

  .stats-block--modes #mode-buttons {
    max-width: 270px;
    gap: 8px;
    padding: 0 2px;
  }

  .stats-block--modes #mode-buttons .mode-logo {
    width: 90px;
  }

  .stats-hub {
    align-items: center;
  }

  .stats-section,
  .stats-hero {
    align-items: center;
    text-align: center;
  }

  .stats-section__header {
    flex-direction: column;
    align-items: center;
  }
}

#play-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

#fun-container {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}

body.page-fun #fun-container {
  margin-top: calc(var(--header-height) + var(--content-offset) + 120px);
}

#fun-container > * {
  width: min(720px, 100%);
  margin: 0 auto;
}

#fun-container form {
  width: min(720px, 100%);
  margin: 0 auto;
}

#profile-container {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}

body.dark-mode #profile-container,
body.theme-blue #profile-container {
  background: transparent;
  color: #f0f6ff;
  box-shadow: none;
}

#profile-container > * {
  width: min(720px, 100%);
  margin: 0 auto;
}

#profile-container h1 {
  font-size: 24px;
  margin: 0;
  text-align: center;
}

.profile-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.profile-background {
  width: 100%;
  padding: 20px;
  border-radius: 18px;
  background: rgba(12, 61, 94, 0.04);
}

body.dark-mode .profile-background,
body.theme-blue .profile-background {
  background: rgba(240, 246, 255, 0.08);
  color: #f0f6ff;
}

.profile-background__description {
  margin: 6px 0 14px;
  color: inherit;
}

.profile-background__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.profile-upload-label--wide {
  min-width: 240px;
  justify-content: center;
}

.profile-publish-button--ghost {
  background: transparent;
  border: 1px solid #1a66cc;
  color: #1a66cc;
}

body.dark-mode .profile-publish-button--ghost,
body.theme-blue .profile-publish-button--ghost {
  border-color: #9cc7ff;
  color: #dfeeff;
}

.profile-background__status {
  margin: 10px 0 0;
  min-height: 20px;
  font-size: 14px;
  color: #0c3d5e;
}

.profile-background__status--error {
  color: #d93025;
}

body.dark-mode .profile-background__status,
body.theme-blue .profile-background__status {
  color: #dfeeff;
}

body.dark-mode .profile-background__status--error,
body.theme-blue .profile-background__status--error {
  color: #ffb7b7;
}

.profile-report {
  margin-top: 32px;
  padding: 24px;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  color: #0c3d5e;
}

body.dark-mode .profile-report,
body.theme-blue .profile-report {
  background: rgba(240, 246, 255, 0.08);
  color: #f0f6ff;
}

.profile-report h2 {
  margin-top: 0;
  font-size: 20px;
}

.profile-report p {
  margin-bottom: 12px;
  font-size: 14px;
}

.profile-report ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.profile-field label {
  font-weight: 600;
  color: #0c3d5e;
}

body.dark-mode .profile-field label,
body.theme-blue .profile-field label {
  color: #f0f6ff;
}

.profile-field input[type="text"] {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 15px;
}

body.dark-mode .profile-field input[type="text"],
body.theme-blue .profile-field input[type="text"] {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.profile-share {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.profile-share-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #0c3d5e;
}

body.dark-mode .profile-share-toggle,
body.theme-blue .profile-share-toggle {
  color: #f0f6ff;
}

.profile-share-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #00b3b3;
}

.profile-share-description {
  margin: 0 0 0 32px;
  font-size: 13px;
  line-height: 1.5;
  color: #4f5d73;
}

body.dark-mode .profile-share-description,
body.theme-blue .profile-share-description {
  color: rgba(240, 246, 255, 0.85);
}

.profile-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.profile-photo-preview {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #556;
  font-size: 14px;
  box-shadow: 0 18px 32px rgba(11, 61, 145, 0.18);
  --upload-progress: 0;
  --ring-width: 10px;
  --ring-highlight: rgba(46, 204, 113, 0.9);
  --ring-base: rgba(79, 169, 255, 0.22);
  transition: box-shadow 0.3s ease;
}

.profile-photo-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--ring-highlight) calc(var(--upload-progress) * 1%),
    var(--ring-base) 0
  );
  mask: radial-gradient(farthest-side, transparent calc(50% - var(--ring-width)), #000 calc(50% - var(--ring-width) + 1px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(50% - var(--ring-width)), #000 calc(50% - var(--ring-width) + 1px));
  transition: background 0.4s ease;
}

.profile-photo-preview__content {
  position: relative;
  width: calc(100% - var(--ring-width) * 2);
  height: calc(100% - var(--ring-width) * 2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  box-shadow: inset 0 14px 26px rgba(11, 61, 145, 0.05);
  transition: background 0.3s ease;
}

.profile-photo-preview.has-photo .profile-photo-preview__content {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.profile-photo-preview__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.04);
}

.profile-photo-preview__image--visible {
  opacity: 1;
  transform: scale(1);
}

.profile-photo-preview__image--dissolve {
  animation: profilePhotoDissolve 1s ease forwards;
}

.profile-photo-preview__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  line-height: 1.3;
}

.profile-photo-preview.has-photo .profile-photo-preview__placeholder {
  opacity: 0;
  visibility: hidden;
}

.profile-photo-preview__status {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translate(-50%, 12px);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(18, 98, 235, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(11, 61, 145, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-photo-preview[data-uploading="true"] .profile-photo-preview__status {
  opacity: 1;
  transform: translate(-50%, 0);
}

.profile-photo-preview[data-uploading="true"] {
  --ring-highlight: rgba(79, 169, 255, 0.95);
}

.profile-photo-preview[data-uploading="true"] .profile-photo-preview__content {
  background: rgba(255, 255, 255, 0.9);
}

@keyframes profilePhotoDissolve {
  from {
    opacity: 0;
    filter: blur(6px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

body.dark-mode .profile-photo-preview,
body.theme-blue .profile-photo-preview {
  color: #f0f6ff;
  box-shadow: 0 22px 36px rgba(2, 21, 51, 0.6);
  --ring-base: rgba(135, 206, 255, 0.24);
}

body.dark-mode .profile-photo-preview__content,
body.theme-blue .profile-photo-preview__content {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 18px 32px rgba(2, 21, 51, 0.35);
}

body.dark-mode .profile-photo-preview[data-uploading="true"] .profile-photo-preview__content,
body.theme-blue .profile-photo-preview[data-uploading="true"] .profile-photo-preview__content {
  background: rgba(9, 24, 52, 0.94);
}

body.dark-mode .profile-photo-preview__status,
body.theme-blue .profile-photo-preview__status {
  background: rgba(8, 26, 58, 0.92);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

[data-page-transition] {
  opacity: 1;
  transform: none;
  transition: none;
}

main[data-page-transition] {
  flex: 1 1 auto;
  width: 100%;
  box-sizing: border-box;
}

[data-page-transition][hidden] {
  display: none !important;
}

body.page-transition-ready [data-page-transition],
body.page-transition-leave [data-page-transition] {
  opacity: 1;
  transform: none;
}


.profile-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--button-color-base), var(--button-color-contrast));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 14px 28px var(--button-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.profile-upload-label:hover,
.profile-upload-label:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px var(--button-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.profile-upload-label input {
  display: none;
}

.profile-publish-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--button-color-base), var(--button-color-contrast));
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 14px 28px var(--button-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.profile-publish-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px var(--button-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.profile-publish-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.profile-publish-button:not(:disabled):hover {
  box-shadow: 0 6px 18px rgba(255, 122, 24, 0.35);
  transform: translateY(-1px);
}

.profile-publish-button:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 3px 12px rgba(255, 122, 24, 0.25);
}

.playtalk-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 210px;
  height: 50px;
  padding: 0;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  background: linear-gradient(to bottom right, #2e8eff 0%, rgba(46, 142, 255, 0) 30%);
  background-color: rgba(46, 142, 255, 0.2);
  color: #fff;
  transition: 0.3s ease;
  text-decoration: none;
  box-shadow: none;
}

.playtalk-cta:hover,
.playtalk-cta:focus-visible {
  background-color: rgba(46, 142, 255, 0.7);
  box-shadow: 0 0 10px rgba(46, 142, 255, 0.5);
  outline: none;
}

.playtalk-cta:disabled,
.playtalk-cta[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.playtalk-cta__inner {
  width: calc(100% - 4px);
  min-height: 46px;
  padding: 0 33px;
  border-radius: 13px;
  background-color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-transform: none;
}

.playtalk-cta svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

.playtalk-cta--ghost {
  background-color: rgba(46, 142, 255, 0.18);
}

.playtalk-cta--wide {
  min-width: 240px;
}

.playtalk-cta input[type='file'] {
  display: none;
}

@media (min-width: 768px) {
  #main-nav .nav-item {
    font-size: 30px;
  }

  body.page-play .stats-block--modes #mode-buttons {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }
}

@media (max-width: 480px) {
  #main-nav {
    padding: 0 10px;
  }

  #main-nav .nav-item {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  body.page-home #mode-buttons {
    bottom: calc(var(--nav-height) + 190px);
  }

  body.page-play .stats-block--modes #mode-buttons .mode-logo {
    width: min(90px, 100%);
  }
}

body.theme-blue #fun-container {
  background: transparent;
  box-shadow: none;
}

#fun-container.fun-layout {
  width: min(100%, var(--container-max-width));
  margin: calc(var(--header-height) + 50px) auto 0;
  padding: clamp(16px, 3vw, 32px);
  min-height: calc(100vh - var(--header-height) - var(--nav-height) - 50px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-sizing: border-box;
}

body.page-fun {
  --content-offset: 50px;
}

.fun-game-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 19, 40, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1300;
}

.fun-game-overlay.is-open {
  display: flex;
}

.fun-game-shell {
  position: relative;
  width: min(1200px, 100%);
  height: min(90vh, 900px);
  background: #0b1f44;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.fun-game-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0b1f44;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
}

.fun-game-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

#fun-container h1 {
  text-align: left;
  font-size: clamp(24px, 4vw, 32px);
  margin: 0;
}

#fun-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.fun-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fun-section h2 {
  font-size: 20px;
  margin: 0;
}

.theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.theme-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.fun-color-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.fun-label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
}

.fun-color-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fun-color-input {
  display: none;
}

.fun-color-palette__swatch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--color, #8b5cf6);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22), inset 0 0 0 2px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.fun-color-palette__swatch:hover,
.fun-color-palette__swatch:focus-visible {
  outline: none;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26), inset 0 0 0 2px rgba(255, 255, 255, 0.55);
  filter: brightness(1.05);
}

.fun-fonts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.fun-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fun-select select {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 15px;
}

.fun-font-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.fun-font-picker__label {
  font-weight: 600;
  font-size: 15px;
}

.fun-font-picker__trigger {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fun-font-picker__trigger:hover,
.fun-font-picker__trigger:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.fun-font-picker__trigger-text {
  text-align: left;
  flex: 1;
}

.fun-font-picker__chevron {
  font-size: 13px;
  opacity: 0.8;
}

.fun-font-picker__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #1f2431;
  border-radius: 16px;
  padding: 12px 8px;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.radio-input {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-input * {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.radio-input label {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0px 20px;
  width: 100%;
  cursor: pointer;
  height: 50px;
  position: relative;
  border-radius: 12px;
}

.radio-input label::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 45px;
  z-index: -1;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 10px;
  border: 2px solid transparent;
}

.radio-input label:hover::before {
  transition: all 0.2s ease;
  background-color: #2a2e3c;
}

.radio-input .label:has(input:checked)::before {
  background-color: #2d3750;
  border-color: #435dd8;
  height: 50px;
}

.radio-input .label .text {
  color: #fff;
}

.radio-input .label input[type="radio"] {
  background-color: #202030;
  appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.radio-input .label input[type="radio"]:checked {
  background-color: #435dd8;
  -webkit-animation: puls 0.7s forwards;
  animation: pulse 0.7s forwards;
}

.radio-input .label input[type="radio"]:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transition: all 0.1s cubic-bezier(0.165, 0.84, 0.44, 1);
  background-color: #fff;
  transform: scale(0);
}

.radio-input .label input[type="radio"]:checked::before {
  transform: scale(1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.fun-mode-colors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.fun-mode-colors--secondary {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.fun-mode-color {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.fun-mode-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fun-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.fun-color-board {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.fun-color-board--visible {
  display: flex;
}

.fun-color-board__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.fun-color-board__dialog {
  position: relative;
  background: #161a26;
  border-radius: 20px;
  padding: 16px;
  width: min(560px, 92vw);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.fun-color-board__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fun-color-board__header h3 {
  margin: 0 0 4px 0;
  font-size: 17px;
}

.fun-color-board__header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.fun-color-board__close {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.fun-color-board__grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(6, minmax(42px, 1fr));
  gap: 12px;
  background: rgba(0, 0, 0, 0.08);
  padding: 14px;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 26px rgba(0, 0, 0, 0.2);
}

.fun-background-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.fun-background-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.fun-background-card:hover,
.fun-background-card:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 255, 255, 0.35);
}

.fun-background-card.is-active {
  border-color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.fun-background-card__preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fun-background-card__preview--gradient {
  background: var(--app-background-gradient);
}

.fun-background-card__label {
  font-size: 14px;
}

.fun-opacity {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 18px;
}

.fun-opacity label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
}

.fun-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
}

.fun-field--inline {
  flex-direction: row;
  align-items: center;
}

.fun-field--inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.fun-field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 16px;
}

body.dark-mode .fun-field input,
body.theme-blue .fun-field input {
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  border-color: rgba(255, 255, 255, 0.25);
}

.fun-note {
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

.fun-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

#fun-feedback {
  font-size: 14px;
  min-height: 20px;
}

.magic-checkbox-group {
  display: grid;
  gap: 16px;
  padding: 16px;
  background: radial-gradient(circle, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
}

.magic-check {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  position: relative;
  padding-left: 55px;
  min-height: 44px;
}

.magic-check input {
  position: absolute;
  opacity: 0;
}

.liquid-box {
  position: absolute;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.liquid-fill {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #00dbde, #fc00ff);
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  transition: all 0.8s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.sparkle {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s;
}

.magic-label {
  color: #fff;
  font-family: "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transition: all 0.4s;
  letter-spacing: 0.3px;
}

.magic-check:nth-child(2) .liquid-fill {
  background: linear-gradient(45deg, #f6d365, #fda085);
}

.magic-check input:checked ~ .liquid-box {
  transform: rotate(8deg);
  box-shadow: 0 0 20px rgba(0, 219, 222, 0.5);
}

.magic-check:nth-child(2) input:checked ~ .liquid-box {
  box-shadow: 0 0 20px rgba(246, 211, 101, 0.5);
}

.magic-check input:checked ~ .liquid-box .liquid-fill {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  bottom: 0;
}

.magic-check input:checked ~ .liquid-box .sparkle {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.3s;
}

.magic-check input:checked ~ .magic-label {
  transform: translateX(5px);
  text-shadow: 0 0 15px currentColor;
}

.magic-check:hover .liquid-box {
  transform: scale(1.05);
}

@keyframes sparkle-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.magic-check input:checked ~ .liquid-box .sparkle {
  animation: sparkle-pulse 1.5s infinite;
}

.fun-checkbox-group {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.holo-input {
  width: 100%;
  height: 60px;
  background: rgba(0, 12, 36, 0.7);
  border: none;
  outline: none;
  padding: 0 18px;
  color: rgba(0, 195, 255, 0.9);
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 140, 255, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(0, 160, 255, 0.7);
}

.holo-input::placeholder {
  color: rgba(0, 110, 200, 0.4);
  transition: all 0.3s ease;
}

.holo-input:focus {
  background: rgba(0, 22, 46, 0.8);
  box-shadow: 0 0 20px rgba(0, 150, 255, 0.4), inset 0 0 15px rgba(0, 0, 0, 0.9);
  color: rgba(0, 210, 255, 1);
}

.holo-input:focus::placeholder {
  color: rgba(0, 150, 255, 0.3);
  transform: translateX(6px);
}

.holo-input:hover {
  background: rgba(0, 15, 40, 0.75);
}

.holo-input-wrapper {
  position: relative;
}

.holo-input-wrapper .holo-input {
  padding-right: 54px;
}

.holo-input__icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 210, 255, 0.9);
  opacity: 0.85;
  pointer-events: none;
}

.holo-input__icon svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.35));
}

.profile-field .holo-input {
  padding-left: 20px;
  padding-right: 54px;
  height: 54px;
}

.neo-button {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  outline: none;
  cursor: pointer;
  font-family: monospace;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  display: inline-block;
  --btn-start: var(--button-color-base);
  --btn-end: var(--button-color-contrast);
  --btn-shadow: var(--button-shadow);
}

.neo-button__shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 0.5rem;
  transform: translateY(0.125rem);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

.neo-button__front {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.56rem;
  color: white;
  background: linear-gradient(135deg, var(--btn-start), var(--btn-end));
  border-radius: 0.75rem;
  transform: translateY(-0.25rem);
  gap: 0.75rem;
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
  box-shadow: 0 16px 30px var(--btn-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  letter-spacing: 0.03em;
}

.neo-button__icon {
  margin-left: 0.25rem;
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
  fill: currentColor;
}

.neo-button:hover .neo-button__shadow {
  transform: translateY(0.25rem);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.neo-button:hover .neo-button__front {
  transform: translateY(-0.375rem);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
  filter: brightness(110%);
  box-shadow: 0 18px 34px var(--btn-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.neo-button:hover .neo-button__icon {
  transform: translateX(0.25rem);
}

.neo-button:active .neo-button__shadow {
  transform: translateY(0.0625rem);
  transition: transform 34ms;
}

.neo-button:active .neo-button__front {
  transform: translateY(-0.125rem);
  transition: transform 34ms;
}

.neo-button .neo-button__front span {
  user-select: none;
}

.neo-button--ghost .neo-button__front {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.24));
  color: #f5f7ff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.game-overlay__actions .neo-button,
.profile-actions .neo-button,
.profile-photo .neo-button,
.fun-actions .neo-button {
  width: 100%;
  max-width: 360px;
}

.fun-actions .neo-button .neo-button__front {
  width: 100%;
  justify-content: center;
}

.neo-button,
.profile-photo .neo-button,
.profile-actions .neo-button,
.game-overlay__actions .neo-button {
  background: transparent;
  box-shadow: none;
}

.profile-publish-button.neo-button,
.profile-actions .neo-button,
.fun-actions .neo-button,
.game-overlay__actions .neo-button {
  padding: 0;
  border-radius: 0;
}

.profile-publish-button.neo-button .neo-button__front,
.fun-actions .neo-button .neo-button__front {
  background: linear-gradient(90deg, #00b3b3, #00cccc);
}

.profile-publish-button--ghost.neo-button .neo-button__front,
.neo-button--ghost .neo-button__front {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.24));
  color: #f5f7ff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.game-overlay__primary.neo-button,
.game-overlay__secondary.neo-button {
  min-width: 0;
  padding: 0;
  border-radius: 0;
}

.game-overlay__primary.neo-button .neo-button__front {
  background: linear-gradient(120deg, #2d5bff, #00c6ff);
}

.game-overlay__secondary.neo-button .neo-button__front {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.65));
  color: #0d1c3b;
  border: 1px solid rgba(9, 40, 97, 0.2);
}

@media (max-width: 600px) {
  #mode-icon {
    width: min(90vw, 375px);
    height: auto;
    position: static;
  }

  body.page-inplay #mode-icon {
    margin-top: 320px;
  }

  #texto-exibicao,
  #level-instruction {
    position: static;
  }

  body.page-inplay #texto-exibicao {
    margin-top: 320px;
    font-size: clamp(38.4px, 7.2vw, 60px);
  }

  #clock {
    font-size: 12vw;
  }

  :root {
    --nav-height: 61px;
  }

  #main-nav {
    justify-content: space-between;
    padding: 0 16px;
    gap: 8px;
  }

  #main-nav .nav-item {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .nav-item--user {
    min-width: 48px;
  }

  #home-main {
    padding: calc(var(--header-height) + 12px) 18px calc(var(--nav-height) + 24px);
  }

  #menu {
    padding: 0;
    gap: 16px;
    width: min(94vw, 100%);
  }

  #menu-modes {
    grid-template-columns: repeat(2, minmax(128px, 1fr));
    gap: 10px;
  }

  #menu-modes .mode-logo {
    width: min(52vw, 162px);
  }

  .menu-mode {
    gap: 6px;
  }

  body.page-home #mode-buttons {
    bottom: calc(var(--nav-height) + 174px);
    padding: 0 20px;
    width: min(92vw, 340px);
    gap: 16px;
  }

  body.page-home #mode-buttons .mode-logo {
    width: min(18.7vw, 76px);
  }

  body.page-play #mode-buttons {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }

  #fun-container {
    padding: 24px 20px 32px;
    margin: calc(24px + 120px) auto 24px;
  }

  .fun-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fun-actions button {
    width: 100%;
  }
}

@keyframes mode1Zoom {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}

@keyframes modeZoom {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}

#logo-top {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: auto;
  z-index: 1000;
  display: none;
}

#tutorial-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20%;
  height: auto;
  z-index: 10000;
  display: none;
}

#ilife-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

#ilife-logo {
  width: 20%;
  height: auto;
  opacity: 0;
  animation: fadeIn 1000ms forwards;
}

#ilife-text {
  margin-top: 10px;
  color: #777;
  font-family: var(--app-font-family, 'Open Sans', sans-serif);
  font-weight: normal;
  font-size: 17px;
  text-align: center;
}

#next-level-msg {
  margin-top: 10px;
  font-family: var(--app-font-family, 'Open Sans', sans-serif);
  font-weight: normal;
  font-size: 14px;
  color: #777;
  opacity: 0;
  transition: opacity 500ms linear;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Legacy circle stats used dentro do jogo */
.stat-circle {
  position: relative;
  width: 210px;
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-circle svg {
  width: 210px;
  height: 210px;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: #444;
  stroke-width: 9.75;
  opacity: 0.3;
}

.circle-progress {
  fill: none;
  stroke-width: 9.75;
  stroke-linecap: butt;
  transition: stroke-dashoffset 1s;
}

.circle-icon {
  position: absolute;
  top: calc(50% - 30px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  pointer-events: none;
}

.circle-value {
  margin-top: 12px;
  font-family: var(--app-font-family, 'Open Sans', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.circle-label {
  margin-top: 8px;
  font-size: 18px;
  font-family: var(--app-font-family, 'Open Sans', sans-serif);
  text-align: center;
}

.circle-extra {
  font-size: 16px;
  font-family: var(--app-font-family, 'Open Sans', sans-serif);
  margin-top: 7px;
  text-align: center;
}

.game-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: var(--nav-height);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  z-index: 1100;
  box-sizing: border-box;
}

#pre-game-screen {
  align-items: center;
  padding: clamp(16px, 3vw, 32px);
}

.game-overlay__panel {
  width: min(960px, 100%);
  max-width: 100%;
  height: 100%;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

#pre-game-screen .game-overlay__panel {
  width: min(520px, 90vw);
  height: 80%;
  max-height: calc(100vh - var(--header-height) - var(--nav-height));
  padding: clamp(24px, 4vw, 36px);
  justify-content: space-between;
  gap: clamp(24px, 4vw, 36px);
  transform: none;
}

#post-game-screen .game-overlay__panel {
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  transform: translateY(0);
  gap: clamp(12px, 2vw, 20px);
  padding-top: 180px;
}

@media (min-width: 1024px) {
  #post-game-screen .game-overlay__panel {
    transform: translateY(0);
    gap: 0;
  }

  #post-game-screen .post-game-medal-wrapper {
    margin-top: 0;
  }
}

.game-overlay__panel > * {
  max-width: min(880px, 100%);
}

body.dark-mode .game-overlay__panel {
  background: transparent;
  color: #f7f7ff;
}

.game-overlay__logo {
  width: clamp(220px, 55vw, 330px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-overlay__logo > svg {
  display: block;
  width: 77%;
  height: 77%;
}

.pre-game-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 20px);
}

.pre-game-hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.game-overlay__title {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0;
  color: #0d1c3b;
}

#post-game-screen .game-overlay__title {
  font-size: clamp(39px, 6vw, 54px);
}

.game-overlay__title--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.dark-mode .game-overlay__title {
  color: #dfe7ff;
}

.game-overlay__description {
  display: none;
}

.pre-game-level {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: clamp(16px, 2vw, 18px);
}

.pre-game-level__label {
  opacity: 0.8;
}

.pre-game-round {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pre-game-round__label {
  font-weight: 600;
  margin: 0;
}

.pre-game-round__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pre-game-round__option {
  padding: 14px 12px;
  border-radius: 14px;
  border: 2px solid rgba(9, 40, 97, 0.2);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pre-game-round__option:hover,
.pre-game-round__option.is-selected {
  transform: translateY(-2px);
  border-color: #2d5bff;
  box-shadow: 0 12px 22px rgba(45, 91, 255, 0.18);
}

.pre-game-options {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.pre-game-toggle label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}

.pre-game-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2d5bff;
}

body.dark-mode .pre-game-round__option {
  background: rgba(20, 32, 64, 0.85);
  border-color: rgba(144, 172, 255, 0.25);
  color: #f1f4ff;
}

.game-overlay__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.game-overlay__actions--stacked {
  width: min(420px, 100%);
  flex-direction: column;
  align-items: stretch;
}

#post-game-screen .game-overlay__actions {
  gap: 12px;
  width: min(420px, 90vw);
  margin: 0 auto;
  justify-content: center;
}

.game-overlay__primary,
.game-overlay__secondary {
  min-width: 160px;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#post-game-screen .game-overlay__primary,
#post-game-screen .game-overlay__secondary {
  padding: 20px 28px;
  font-size: 20px;
}

.game-overlay__primary {
  background: linear-gradient(120deg, #2d5bff, #00c6ff);
  color: #fff;
  box-shadow: 0 16px 30px rgba(0, 114, 255, 0.25);
}

.game-overlay__primary--play {
  width: 100%;
}

.game-overlay__primary--continue {
  background: linear-gradient(135deg, #ff9600, #ff5e00);
  box-shadow: 0 16px 30px rgba(255, 126, 0, 0.28);
  color: #fff;
}

.game-overlay__secondary {
  background: rgba(255, 255, 255, 0.8);
  color: #0d1c3b;
  border: 1px solid rgba(9, 40, 97, 0.2);
}

.game-overlay__secondary--muted {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  opacity: 0.75;
  width: 100%;
}

body.dark-mode .game-overlay__secondary {
  background: rgba(24, 32, 60, 0.8);
  color: #f1f4ff;
  border-color: rgba(144, 172, 255, 0.25);
}

.game-overlay__primary:hover,
.game-overlay__secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.game-overlay__button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
}

.game-overlay__button-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.game-overlay__medal {
  width: clamp(180px, 38vw, 220px);
  height: auto;
  margin: 0 auto;
}

#post-game-screen .game-overlay__medal {
  width: clamp(182px, 38.5vw, 238px);
}

.game-overlay__medal.is-animated {
  animation: medalPop 0.5s ease;
}

.game-overlay__medal-label {
  font-size: clamp(24px, 3.2vw, 26px);
  font-weight: 700;
  margin: 0;
  text-transform: capitalize;
}

.game-overlay__medal-label.is-animated {
  animation: medalPop 0.5s ease;
}

.game-overlay__subtitle {
  font-size: clamp(17px, 2.4vw, 19px);
  margin: 0;
  font-weight: 600;
}

#post-game-screen .game-overlay__subtitle {
  font-size: clamp(32px, 4.8vw, 36px);
}
.post-game-medal-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#post-game-screen .post-game-medal-wrapper,
#post-game-screen #post-game-balance {
  position: relative;
}

.post-game-summary {
  width: min(640px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
}

#post-game-screen .post-game-summary {
  padding-bottom: 100px;
}

.post-game-metrics {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 22px);
  align-items: center;
  justify-content: center;
  min-height: clamp(220px, 32vh, 280px);
}

#post-game-screen .post-game-metrics {
  transform: translateY(-100px);
}

@media (min-width: 1024px) {
  #post-game-screen .post-game-metrics {
    margin-top: 0;
    gap: 0;
  }
}

.container-animado-score {
  position: relative;
}

.container-animado-score.is-entering {
  animation: containerScoreIn 500ms ease forwards;
}

.container-animado-score.is-exiting {
  animation: containerScoreOut 500ms ease forwards;
}

.post-game-metric {
  width: min(520px, 92vw);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  display: none;
  flex-direction: column;
  gap: clamp(8px, 1.8vw, 12px);
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 280ms ease, transform 320ms ease;
  pointer-events: none;
}

.stats-numbers-slide {
  display: flex;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
}

.stats-numbers-slide.is-active {
  pointer-events: auto;
}

@media (min-width: 1024px) {
  #post-game-screen .post-game-metric {
    margin: 0;
    padding: 0;
  }
}

.post-game-metric.is-visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.post-game-metric.is-hiding {
  opacity: 0;
  transform: translateY(-12px);
}

.post-game-metric.is-sliding {
  animation: postGameSlideIn 420ms ease forwards;
}

.post-game-metric__values {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.8vw, 22px);
}

.post-game-metric__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(68px, 12vw, 88px);
  height: clamp(68px, 12vw, 88px);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
}

.post-game-metric__icon svg {
  width: 60%;
  height: 60%;
  fill: currentColor;
}

.post-game-metric__icon--lightning svg,
.post-game-metric__icon--coin svg,
.post-game-metric__icon--target svg {
  fill: currentColor;
}

.post-game-metric__value {
  min-width: 140px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  font-size: clamp(40px, 7vw, 60px);
  font-weight: 800;
  color: #0d1c3b;
}

.post-game-metric__caption {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(0, 24, 59, 0.7);
}

.post-game-stats {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.post-game-stats.is-visible {
  display: grid;
  width: min(720px, 100%);
  justify-items: center;
  gap: 20px;
}

.post-game-stats__item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: inset 0 0 0 1px rgba(9, 40, 97, 0.08);
}

#post-game-screen .post-game-stats__item {
  padding: 24px 18px;
  text-align: center;
  align-items: center;
}

.post-game-stats__item dt {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.75;
  margin: 0;
}

#post-game-screen .post-game-stats__item dt {
  font-size: 21px;
}

@keyframes medalPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  70% {
    transform: scale(1.06);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes postGameSlideIn {
  0% {
    transform: translateY(26px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes containerScoreIn {
  0% {
    transform: translateY(26px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes containerScoreOut {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-28px);
    opacity: 0;
  }
}

@media (min-width: 769px) {
  #post-game-screen .post-game-medal-wrapper,
  #post-game-screen #post-game-balance {
    transform: none;
  }
}

@media (max-width: 768px) {
  #post-game-screen .post-game-medal-wrapper,
  #post-game-screen #post-game-balance {
    transform: none;
  }
}

.post-game-stats__item dd {
  margin: 0;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 700;
}

#post-game-screen .post-game-stats__item dd {
  font-size: clamp(27px, 4vw, 33px);
}

body.dark-mode .post-game-stats__item {
  background: rgba(18, 28, 55, 0.85);
  box-shadow: inset 0 0 0 1px rgba(144, 172, 255, 0.12);
}

body.dark-mode .post-game-metric {
  background: transparent;
  box-shadow: none;
}

body.dark-mode .post-game-metric__value {
  background: transparent;
  box-shadow: none;
  color: #f1f4ff;
}

body.dark-mode .post-game-metric__icon {
  box-shadow: inset 0 0 0 2px rgba(255, 198, 67, 0.5), 0 18px 32px rgba(255, 172, 28, 0.24);
}

body.dark-mode .post-game-metric__caption {
  color: rgba(223, 231, 255, 0.78);
}

@media (max-width: 520px) {
  .post-game-stats {
    grid-template-columns: 1fr;
  }

  .game-overlay__panel {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-home .container-screen--home {
    transform: translateY(-150px);
  }

  .page-inplay .container-screen--home {
    transform: translateY(150px);
  }

  .page-ranking .container-screen--ranking {
    margin-top: calc(var(--header-height) + var(--content-offset) - 100px);
  }

  .page-play #play-container {
    margin-top: calc(var(--header-height) + var(--content-offset) + 25px);
  }

}

.page-class {
  color: #ffffff;
}

.container-screen--class {
  min-height: calc(100vh - var(--header-height));
  padding: calc(var(--header-height) + 40px) 20px 40px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.class-library,
.class-player {
  width: min(960px, 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.class-library__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.class-library__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.class-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  margin: 0;
}

.class-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.class-card {
  border: none;
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(63, 111, 255, 0.85), rgba(17, 206, 178, 0.85));
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.class-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.class-player__header {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.class-back {
  padding: 10px 18px;
  font-size: 0.95rem;
}

.class-progress {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.class-frame {
  background: rgba(7, 20, 44, 0.65);
  border-radius: 20px;
  padding: 24px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.class-image {
  max-width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 420px;
}

.class-hidden-media {
  display: none;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
  width: 100%;
}

.class-grid__image {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.class-media {
  width: min(640px, 100%);
}

.class-video {
  border-radius: 16px;
  background: #000;
}

.class-audio {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: center;
}

.class-audio__visual {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.class-text {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.6;
  margin: 0;
}

.class-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  width: 100%;
}

.class-option {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.class-option:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.class-option.is-correct {
  background: rgba(58, 201, 133, 0.45);
  border-color: rgba(58, 201, 133, 0.8);
}

.class-option.is-wrong {
  background: rgba(255, 77, 79, 0.45);
  border-color: rgba(255, 77, 79, 0.8);
}

.class-complete {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.class-complete__button {
  padding: 12px 22px;
}

.container-screen--class.is-playing {
  padding: calc(var(--header-height) + 16px) 12px 16px;
  align-items: stretch;
}

.container-screen--class.is-playing .class-player {
  width: 100%;
}

.container-screen--class.is-playing .class-frame {
  min-height: calc(100vh - var(--header-height) - 140px);
  width: 100%;
  padding: 12px;
}

.container-screen--class.is-playing .class-image {
  max-height: 72vh;
  width: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.container-screen--class.is-playing .class-video {
  max-height: 70vh;
  width: 100%;
  object-fit: contain;
}

.container-screen--class.is-playing .class-grid {
  gap: 8px;
}

.page-create {
  color: #ffffff;
}

.container-screen--create {
  min-height: calc(100vh - var(--header-height));
  padding: calc(var(--header-height) + 40px) 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.create-panel {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.create-panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.create-title {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  margin: 0;
  font-weight: 700;
}

.create-subtitle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.create-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.create-action-btn {
  border-radius: 18px;
  padding: 16px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  border: none;
  cursor: pointer;
  background: #1f6bff;
  box-shadow: 0 12px 24px rgba(3, 22, 60, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.create-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.create-action-btn--add {
  background: #18c05c;
}

.create-lesson-info {
  background: rgba(8, 22, 54, 0.6);
  border-radius: 16px;
  padding: 18px;
}

.create-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
}

.create-field input,
.create-field select,
.create-field textarea {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: inherit;
}

.create-field textarea {
  resize: vertical;
}

.create-menu {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 44, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.create-menu__content {
  background: #0e2046;
  border-radius: 20px;
  padding: 24px;
  width: min(640px, 90%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.create-menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.create-menu__card {
  border: none;
  border-radius: 20px;
  padding: 24px;
  background: #2b7bff;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  min-height: 140px;
}

.create-menu__card:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.create-menu__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
}

.create-menu__icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.create-menu__label {
  display: block;
  line-height: 1.2;
}

.create-menu__card--audio {
  background: #f5b42b;
  color: #1b1b1b;
}

.create-menu__card--video {
  background: #1c3a9f;
}

.create-menu__card--quiz {
  background: #2a6ef1;
}

.create-menu__card--text {
  background: #111111;
}

.create-menu__card--visual-image {
  background: linear-gradient(135deg, #1b4dcc, #4a86ff);
}

.create-menu__card--visual-text {
  background: linear-gradient(135deg, #0f0f0f, #2c2c2c);
}

.create-menu__card--visual-video {
  background: linear-gradient(135deg, #b32028, #ff4b3a);
}

.create-menu__close {
  align-self: flex-end;
}

.create-workspace {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.create-editor,
.create-preview {
  background: rgba(8, 22, 54, 0.55);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.create-section-title {
  margin: 0;
  font-size: 1.2rem;
}

.create-frame-title {
  margin: 0;
  font-size: 1.1rem;
}

.create-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.create-visual {
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  --visual-strong: rgba(255, 255, 255, 0.12);
  --visual-soft: rgba(255, 255, 255, 0.08);
}

.create-visual--collapsed .create-visual__content {
  display: none;
}

.create-visual__header {
  border: none;
  background: var(--visual-strong);
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
}

.create-visual:not(.create-visual--collapsed) .create-visual__header {
  background: var(--visual-soft);
}

.create-visual--image {
  border-color: rgba(74, 134, 255, 0.5);
  --visual-strong: linear-gradient(135deg, rgba(27, 77, 204, 0.9), rgba(74, 134, 255, 0.95));
  --visual-soft: linear-gradient(135deg, rgba(27, 77, 204, 0.4), rgba(74, 134, 255, 0.5));
}

.create-visual--text {
  border-color: rgba(20, 20, 20, 0.65);
  --visual-strong: linear-gradient(135deg, rgba(12, 12, 12, 0.95), rgba(44, 44, 44, 0.9));
  --visual-soft: linear-gradient(135deg, rgba(12, 12, 12, 0.5), rgba(44, 44, 44, 0.6));
}

.create-visual--video {
  border-color: rgba(255, 75, 58, 0.5);
  --visual-strong: linear-gradient(135deg, rgba(179, 32, 40, 0.92), rgba(255, 75, 58, 0.95));
  --visual-soft: linear-gradient(135deg, rgba(179, 32, 40, 0.45), rgba(255, 75, 58, 0.55));
}

.create-visual__header span:last-child {
  font-size: 0.8rem;
  opacity: 0.8;
}

.create-preview__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.create-preview__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.create-preview__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}

.create-preview__time-input {
  width: 80px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.85rem;
  font-family: inherit;
}

.create-frame {
  min-height: 320px;
}

.create-frame--audio {
  background: #ffffff;
  color: #0b1f44;
}

.create-hidden-media {
  display: none;
}

.create-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.create-progress__track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(40, 118, 255, 0.35);
  overflow: hidden;
}

.create-progress__visual {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(255, 145, 0, 0.7);
  width: 0;
}

.create-progress__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: #2b7bff;
  width: 0;
}

.create-progress__seek {
  width: 100%;
  accent-color: #2b7bff;
}

.create-overview {
  width: min(1100px, 100%);
  margin: 0 auto;
  background: rgba(8, 22, 54, 0.6);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.create-overview__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.create-overview__total {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.create-overview__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.create-overview__card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.create-overview__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.create-overview__actions {
  display: flex;
  gap: 10px;
}

.create-overview__icon {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.5;
}

.create-overview__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.lesson-player {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #202020 0%, #0a0a0a 60%, #050505 100%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
}

.lesson-player.is-active {
  display: flex;
}

.lesson-player__container {
  width: min(1100px, 94vw);
  height: min(680px, 90vh);
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(45, 45, 45, 0.9));
  border-radius: 28px;
  position: relative;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  display: flex;
}

.lesson-player__frame {
  flex: 1;
  border-radius: 22px;
  background: rgba(5, 5, 5, 0.55);
}

.lesson-player__close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.7;
}

.lesson-player__close:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .container-screen--class {
    padding: calc(var(--header-height) + 20px) 16px 30px;
  }

  .class-frame {
    padding: 18px;
  }

  .container-screen--create {
    padding: calc(var(--header-height) + 20px) 16px 30px;
  }
}

.page-users-admin {
  background: #0f1a32;
  color: #ffffff;
}

.container-screen--usersadmin {
  padding: calc(var(--header-height) + 40px) 40px 60px;
}

.users-admin {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.users-admin__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.users-admin__header h1 {
  font-size: 2rem;
  margin-bottom: 6px;
}

.users-admin__header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.users-admin__search input {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 20, 50, 0.7);
  color: #ffffff;
  min-width: 260px;
}

.users-admin__status {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.users-admin__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.users-admin__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(12, 24, 54, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.users-admin__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.users-admin__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.users-admin__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.users-admin__name {
  font-weight: 700;
}

.users-admin__level {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.users-admin__modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.users-admin__modal[hidden] {
  display: none;
}

.users-admin__modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 25, 0.75);
}

.users-admin__modal-card {
  position: relative;
  width: min(520px, 92vw);
  background: #132043;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.users-admin__modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.users-admin__modal-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.users-admin__modal-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  object-fit: cover;
}

.users-admin__modal-level {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.users-admin__modal-close {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

.users-admin__modal-body {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.users-admin__metric {
  display: flex;
  justify-content: space-between;
  background: rgba(12, 24, 54, 0.8);
  padding: 12px 16px;
  border-radius: 12px;
}

.users-admin__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.users-admin__form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 20, 50, 0.7);
  color: #ffffff;
}

.profile-home {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-home__card {
  width: min(520px, 94vw);
  background: rgba(8, 18, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.profile-home__card h1 {
  margin: 0 0 14px;
  font-size: 1.6rem;
}

.profile-home__line {
  margin: 0;
  word-break: break-word;
}

.profile-home__status {
  min-height: 22px;
  margin: 14px 0 10px;
  color: rgba(255, 255, 255, 0.8);
}

.profile-home__status.is-error {
  color: #ff9ca2;
}

.profile-home__status.is-success {
  color: #89f7b8;
}

.profile-home__logout {
  width: 100%;
}

.button-primary,
.button-danger {
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, #4a8dff, #2b59ff);
  color: #ffffff;
}

.button-danger {
  background: rgba(255, 84, 84, 0.2);
  color: #ffb0b0;
  border: 1px solid rgba(255, 84, 84, 0.4);
}

.users-admin__message {
  min-height: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.users-admin__message.is-error {
  color: #ffb0b0;
}

@media (max-width: 720px) {
  .container-screen--usersadmin {
    padding: calc(var(--header-height) + 24px) 20px 40px;
  }

  .users-admin__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .users-admin__search input {
    width: 100%;
    min-width: 0;
  }
}

body.page-fun #fun-container.flashcards-layout {
  margin-top: calc(var(--header-height) + var(--content-offset) + 24px);
  width: min(100%, var(--container-max-width));
  padding: clamp(16px, 4vw, 32px);
  align-items: stretch;
}

#fun-container.flashcards-layout > * {
  width: 100%;
}

.page-fun .flashcards-page {
  --primary: #ffffff;
  --secondary: #4c96dc;
  --panel: rgba(11, 31, 68, 0.06);
  --border: rgba(11, 31, 68, 0.12);
  --text: #ffffff;
  --success: #2ecc71;
  --danger: #e74c3c;
  --muted: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 40px rgba(11, 31, 68, 0.15);
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  font-weight: 700;
  -webkit-user-select: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 32px);
}

.page-fun .flashcards-page img {
  -webkit-user-drag: none;
  user-drag: none;
}

.page-fun .flashcards-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(16px, 4vw, 48px);
  gap: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  border-radius: 18px;
}

.page-fun .flashcards-header h1 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #0b1f44;
}

.page-fun .flashcards-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
}

.page-fun .header-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.page-fun .control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
  color: rgba(11, 31, 68, 0.65);
  min-width: 190px;
}

.page-fun .control select {
  border: none;
  background: transparent;
  font-weight: 700;
  color: #0b1f44;
  width: 100%;
  outline: none;
}

.page-fun .flashcard-grid {
  display: grid;
  grid-template-columns: repeat(3, 270px);
  justify-content: center;
  gap: 20px;
}

.page-fun .flashcard {
  width: 270px;
  height: 365px;
  background: rgba(255, 255, 255, 0.92) url('images/galaxy.png') center/cover no-repeat;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.page-fun .flashcard.is-seeding {
  background-image: url('images/seeding.png');
}

@media (max-width: 900px) {
  .page-fun .flashcard-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.page-fun .flashcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.page-fun .flashcard.is-disabled {
  opacity: 0.4;
}

.page-fun .flashcard.is-selected {
  outline: 2px solid var(--secondary);
  box-shadow: 0 0 0 6px rgba(76, 150, 220, 0.2);
}

.page-fun .flashcard__visual {
  position: relative;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  --tense-ring: none;
  --tense-animation: none;
  --tense-glow: none;
  --form-ring: none;
  --form-animation: none;
  --form-glow: none;
  --tense-filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.25));
  --tense-mask: none;
  --tense-lens: none;
  --form-lens: none;
}

.page-fun .flashcard__visual--detail {
  width: 270px;
  height: 270px;
}

.page-fun .flashcard__circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(
    to bottom,
    rgba(11, 31, 68, 0) 0%,
    var(--panel) 50%,
    rgba(11, 31, 68, 0) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.page-fun .flashcard__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: var(--tense-filter);
  -webkit-mask-image: var(--tense-mask);
  mask-image: var(--tense-mask);
  transform: scale(1.265);
  position: relative;
  z-index: 1;
}

.page-fun .image-ring,
.page-fun .image-lens {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.page-fun .image-ring {
  background: var(--ring-gradient, none);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring-width, 12px)), #000 calc(100% - var(--ring-width, 12px)));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring-width, 12px)), #000 calc(100% - var(--ring-width, 12px)));
  animation: var(--ring-animation, none);
  box-shadow: var(--ring-glow, none);
  z-index: 5;
}

.page-fun .image-ring--tense {
  --ring-gradient: var(--tense-ring);
  --ring-animation: var(--tense-animation);
  --ring-glow: var(--tense-glow);
  --ring-width: 10px;
}

.page-fun .image-ring--form {
  display: none;
}

.page-fun .image-lens--tense {
  background: var(--tense-lens, none);
}

.page-fun .image-lens--form {
  background: var(--form-lens, none);
}

.page-fun .image-lens {
  inset: 0;
  z-index: 3;
}

.page-fun .flashcard__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  white-space: pre-line;
}

.page-fun .flashcard__placeholder img {
  width: 36px;
  height: 36px;
}

.page-fun .flashcard__phrase {
  width: calc(100% + 50px);
  margin: 0 -25px;
  border: none;
  border-radius: 20px;
  padding: 12px 14px;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(11, 31, 68, 0.35);
  background: transparent;
  min-height: 56px;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.page-fun .flashcard__phrase:hover {
  transform: translateY(-2px);
}

.page-fun .flashcard__stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}

.page-fun .flashcard__star {
  font-size: 28.75px;
  color: transparent;
  opacity: 1;
  background: linear-gradient(90deg, #ffd644 var(--fill, 0%), rgba(255, 214, 68, 0.35) var(--fill, 0%));
  -webkit-background-clip: text;
  background-clip: text;
  transition: background 0.2s ease;
}

.page-fun .flashcard::after,
.page-fun .detail-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--accuracy-color, 76, 150, 220), 1) 0%, rgba(var(--accuracy-color, 76, 150, 220), 0) 100%);
  pointer-events: none;
  z-index: 0;
  transition: background 1.2s ease;
}

.page-fun .flashcard > * {
  position: relative;
  z-index: 1;
}

.page-fun .detail-panel > * {
  position: relative;
  z-index: 1;
}

.page-fun .detail-modal {
  position: absolute;
  inset: 0;
  background: transparent;
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 30;
  padding: 120px 20px 40px;
}

.page-fun .detail-modal.is-open {
  display: flex;
}

.page-fun .detail-panel {
  background: rgba(255, 255, 255, 0.96) url('images/galaxy.png') center/cover no-repeat;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  height: fit-content;
  overflow: hidden;
}

.page-fun .detail-panel.is-seeding {
  background-image: url('images/seeding.png');
}

.page-fun .detail-panel--modal {
  width: min(960px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
}

.page-fun .detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: rgba(11, 31, 68, 0.08);
  color: var(--primary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
}

.page-fun .detail-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.page-fun .detail-header__circle {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  overflow: visible;
  border: none;
  display: grid;
  place-items: center;
}

.page-fun .detail-header__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-fun .detail-header__info h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.page-fun .detail-header__info p {
  font-size: 14px;
  color: var(--muted);
}

.page-fun .detail-phrase {
  width: min(410px, 100%);
  border: none;
  border-radius: 20px;
  padding: 14px 16px;
  font-size: 21.6px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(11, 31, 68, 0.35);
  background: transparent;
  cursor: pointer;
  line-height: 1.2;
  min-height: 64px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.page-fun .flashcard__phrase.is-seeding,
.page-fun .detail-phrase.is-seeding {
  cursor: default;
  pointer-events: none;
  opacity: 0.9;
}

.page-fun .seeding-timer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.page-fun .seeding-timer__icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.page-fun .detail-phrase::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--accuracy-color, 76, 150, 220), 0.55) 0%, rgba(var(--accuracy-color, 76, 150, 220), 0) 100%);
  pointer-events: none;
  opacity: 0;
}

.page-fun .detail-phrase span {
  position: relative;
  z-index: 1;
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 4px 12px rgba(11, 31, 68, 0.35);
}

.page-fun .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.page-fun .stat {
  background: var(--panel) url('images/city.png') center/cover no-repeat;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.page-fun .detail-panel.is-seeding .stat {
  background: var(--panel) url('images/seeding.png') center/cover no-repeat;
}

.page-fun .stat--plain {
  background: var(--panel);
}

.page-fun .stat h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-fun .stat span {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.page-fun .stat--pronuncia {
  color: #fff;
  background: rgb(var(--accuracy-color, 76, 150, 220));
  transition: background-color 1.2s ease;
}

.page-fun .stat--pronuncia h3,
.page-fun .stat--pronuncia span {
  color: #fff;
}

.page-fun .empty-state {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  padding: 20px 0;
}

.page-fun .modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 68, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 20px;
}

.page-fun .modal.is-open {
  display: flex;
}

.page-fun .modal-card {
  background: rgba(255, 255, 255, 0.96) url('images/city.png') center/cover no-repeat;
  border-radius: 20px;
  padding: 24px;
  max-width: 520px;
  width: 100%;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-fun .modal-card h2 {
  font-size: 20px;
  font-weight: 800;
}

.page-fun .modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.page-fun .modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(11, 31, 68, 0.65);
}

.page-fun .modal-field input,
.page-fun .modal-field select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  color: #0b1f44;
}

.page-fun .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.page-fun .btn {
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.page-fun .btn-primary {
  background: var(--secondary);
  color: #fff;
}

.page-fun .btn-ghost {
  background: transparent;
  color: #0b1f44;
  border: 1px solid var(--border);
}

.page-fun .flashcard__phrase.is-listening,
.page-fun .detail-phrase.is-listening {
  background: transparent;
  color: #ffd644;
}

.page-fun .detail-phrase.is-listening span {
  color: #ffd644;
}

.page-fun .detail-phrase small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 6px;
}

.page-fun .game-mode-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.page-fun .game-mode-note {
  font-size: 13px;
  color: rgba(11, 31, 68, 0.65);
  margin: 0;
}

.page-fun .seed-stage-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 16px 0;
}

.page-fun .seed-stage-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-fun .seed-stage-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.page-fun .seed-stage-option img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.page-fun .flashcard-grid .flashcard__progress {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.page-fun .flashcard__progress .flashcard__progress-segment {
  width: 16px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.page-fun .flashcard__progress .flashcard__progress-segment.is-active {
  background: #fff;
}

.page-play #play-container.memory-game-layout {
  margin-top: calc(var(--header-height) + var(--content-offset) + 24px);
  padding: clamp(16px, 4vw, 32px);
  width: min(100%, 1200px);
  align-items: stretch;
}

.page-play .memory-game {
  --primary: #0b1f44;
  --secondary: #4c96dc;
  --panel: rgba(11, 31, 68, 0.06);
  --border: rgba(11, 31, 68, 0.12);
  --text: #0b1f44;
  --muted: rgba(11, 31, 68, 0.7);
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-play .memory-game__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  border-radius: 18px;
}

.page-play .memory-game__header h1 {
  font-size: 20px;
  font-weight: 800;
  color: #0b1f44;
}

.page-play .memory-game__header span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

.page-play .memory-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 48px;
}

.page-play .memory-card {
  width: min(360px, 90vw);
  height: 520px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 35px rgba(11, 31, 68, 0.18);
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  --accuracy-color: 76, 150, 220;
}

.page-play .memory-card__background {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  transition: none;
}

.page-play .memory-card__background--fade {
  opacity: 0;
}

.page-play .memory-card__overlay {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(
    to top,
    rgba(var(--accuracy-color, 76, 150, 220), 1) 0%,
    rgba(var(--accuracy-color, 76, 150, 220), 0) 50%
  );
  transition: background 1000ms ease;
  pointer-events: none;
  z-index: 1;
}

.page-play .memory-card > :not(.memory-card__overlay):not(.memory-card__background) {
  position: relative;
  z-index: 2;
}

.page-play .memory-card__visual {
  width: 260px;
  height: 260px;
  display: grid;
  place-items: center;
  position: relative;
  --tense-ring: none;
  --tense-animation: none;
  --tense-glow: none;
  --tense-filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.25));
  --tense-mask: none;
  --tense-lens: none;
  --form-lens: none;
}

.page-play .memory-card__circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(
    to bottom,
    rgba(11, 31, 68, 0) 0%,
    var(--panel) 50%,
    rgba(11, 31, 68, 0) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.page-play .memory-card__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--tense-filter);
  -webkit-mask-image: var(--tense-mask);
  mask-image: var(--tense-mask);
  transform: scale(1.2);
}

.page-play .memory-game .image-ring,
.page-play .memory-game .image-lens {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.page-play .memory-game .image-ring {
  background: var(--ring-gradient, none);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring-width, 12px)), #000 calc(100% - var(--ring-width, 12px)));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring-width, 12px)), #000 calc(100% - var(--ring-width, 12px)));
  animation: var(--ring-animation, none);
  box-shadow: var(--ring-glow, none);
  z-index: 5;
}

.page-play .memory-game .image-ring--tense {
  --ring-gradient: var(--tense-ring);
  --ring-animation: var(--tense-animation);
  --ring-glow: var(--tense-glow);
  --ring-width: 10px;
}

.page-play .memory-game .image-ring--form {
  display: none;
}

.page-play .memory-game .image-lens--tense {
  background: var(--tense-lens, none);
}

.page-play .memory-game .image-lens--form {
  background: var(--form-lens, none);
}

.page-play .memory-game .image-lens {
  inset: 0;
  z-index: 3;
}

.page-play .memory-card__lens {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--form-lens, none);
  transition: background 0.6s ease;
  pointer-events: none;
}

.page-play .memory-card__prompt {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  color: #ffffff;
}

.page-play .memory-stars {
  display: flex;
  gap: 8px;
  justify-content: center;
  font-size: 26px;
  color: #ffd644;
  text-shadow: 0 6px 16px rgba(11, 31, 68, 0.25);
}

.page-play .memory-star {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.page-play .memory-star.is-empty {
  opacity: 0.4;
}

.page-play .memory-star.is-animate {
  animation: pop 0.35s ease;
}

.page-play .memory-empty {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 18px;
}

.page-play .memory-card--sliding {
  animation: slide 0.5s ease;
}

.page-play .play-mode-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 12px 16px 24px;
  max-width: 520px;
  margin: 0 auto 24px;
  text-align: center;
}

.page-play .play-mode-menu h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0b1f44;
}

.page-play .play-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  justify-items: center;
  gap: 16px;
}

.page-play .play-mode-button {
  border: none;
  border-radius: 20px;
  width: 125px;
  height: 125px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #0b1f44;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(11, 31, 68, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-play .play-mode-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(11, 31, 68, 0.24);
}

.page-play .play-mode-button.is-active {
  box-shadow: 0 0 0 3px rgba(76, 150, 220, 0.6), 0 18px 28px rgba(11, 31, 68, 0.28);
}

.page-play .play-mode-button__icon {
  width: 68px;
  height: 68px;
}

.page-play .memory-card--dragging {
  transition: none;
  cursor: grabbing;
}

.page-play .memory-card--dismissed {
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.page-play .memory-card--dismissed-left {
  transform: translateX(-160px);
}

.page-play .memory-card--dismissed-right {
  transform: translateX(160px);
}

.page-play .connect-game {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.page-play .connect-prompt {
  font-size: 18px;
  font-weight: 700;
  color: #0b1f44;
}

.page-play .connect-grid {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.page-play .connect-option {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-play .connect-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(11, 31, 68, 0.2);
}

.page-play .connect-option img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

.page-play .connect-option span {
  font-weight: 700;
  color: #0b1f44;
  text-align: center;
}

@keyframes pop {
  0% { transform: scale(0.9); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes slide {
  0% { transform: translateX(0); opacity: 1; }
  45% { transform: translateX(-60px); opacity: 0; }
  55% { transform: translateX(60px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.page-profile #profile-container.profile-stats-layout {
  margin-top: calc(var(--header-height) + var(--content-offset) + 24px);
  padding: clamp(16px, 4vw, 32px);
  width: min(100%, 1100px);
  align-items: stretch;
}

.page-profile .profile-stats {
  --primary: #ffffff;
  --secondary: #4c96dc;
  --panel: rgba(11, 31, 68, 0.06);
  --border: rgba(11, 31, 68, 0.12);
  --text: #0b1f44;
  --muted: rgba(11, 31, 68, 0.65);
  --shadow: 0 18px 40px rgba(11, 31, 68, 0.15);
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  display: grid;
  gap: clamp(16px, 3vw, 32px);
}

.page-profile .profile-stats__description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.page-profile .profile-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.page-profile .profile-stat-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-profile .profile-stat-card span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-profile .profile-stat-card strong {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--secondary);
}

.page-profile .profile-stats__empty {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--border);
}
