@import "./theme/tokens.css";

html[data-app-theme="темная"] {
  --color-bg: #101827;
  --color-bg-top: #172238;
  --color-card: #162033;
  --color-card-soft: #121b2d;
  --color-text: #f4f7ff;
  --color-muted: #a8b6d4;
  --color-line: #31415f;
  --color-line-soft: rgba(120, 149, 204, 0.34);
  --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.24);
  --shadow-nav: 0 18px 44px rgba(0, 0, 0, 0.32);
}

html[data-app-theme="светлая"] {
  color-scheme: light;
}

html[data-app-theme="темная"] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  height: var(--tg-viewport-height, 100dvh);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ui);
}

body {
  overflow-x: hidden;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

body.has-open-sheet {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  font-weight: 500;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(58, 133, 253, 0.22);
  outline-offset: 2px;
}

.app-shell {
  min-height: var(--tg-viewport-height, 100dvh);
  background: var(--color-bg);
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: var(--tg-viewport-height, 100dvh);
  padding: calc(28px + var(--safe-top)) 22px calc(28px + var(--safe-bottom));
  background:
    radial-gradient(circle at 72% 18%, rgba(58, 133, 253, 0.22), transparent 34%),
    linear-gradient(145deg, #f8fbff 0%, #e8effc 52%, #dfe8f8 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.36s ease, visibility 0.36s ease;
}

.app-loader.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-loader-object {
  position: relative;
  width: min(42vw, 190px);
  height: min(42vw, 190px);
  filter: drop-shadow(0 22px 28px rgba(58, 133, 253, 0.22));
  animation: app-loader-object-float 2.8s ease-in-out infinite;
}

.app-loader-object img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.76) rotate(-10deg);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-loader-object img.is-active {
  opacity: 1;
  transform: scale(1) rotate(0);
}

@keyframes app-loader-object-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.login-screen {
  min-height: var(--tg-viewport-height, 100dvh);
  display: grid;
  align-content: center;
  gap: var(--space-6);
  padding: calc(28px + var(--safe-top)) var(--space-5) calc(28px + var(--safe-bottom));
}

.login-brand {
  width: fit-content;
  color: var(--color-blue);
  font-size: clamp(54px, 18vw, 88px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0;
}

.login-card,
.section-card,
.profile-card,
.team-card,
.game-card,
.venue-card,
.recommendation-card {
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.login-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
}

.login-card h1,
.sheet-heading h2 {
  margin: 0;
  font-size: clamp(26px, 8vw, 34px);
  line-height: 1.06;
}

.login-card p,
.sheet-heading p {
  margin: 0;
  color: var(--color-muted);
  font-weight: 700;
  line-height: 1.45;
}

.login-kicker,
.eyebrow {
  color: var(--color-blue-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-form,
.form-grid {
  display: grid;
  gap: var(--space-3);
}

.login-form.is-shaking {
  animation: login-shake 0.28s ease;
}

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

.login-form label,
.field {
  display: grid;
  gap: 7px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-card);
  color: var(--color-text);
  padding: 0 14px;
}

textarea {
  min-height: 96px;
  padding-top: 14px;
  resize: vertical;
}

.login-error,
.form-errors {
  min-height: 18px;
  color: var(--color-red);
  font-size: 13px;
  font-weight: 800;
}

.form-errors p {
  margin: 0 0 6px;
}

.mobile-app {
  min-height: var(--tg-viewport-height, 100dvh);
  --header-shell-height: 76px;
  --screen-header-gap: 13px;
  padding: calc(var(--header-shell-height) + var(--screen-header-gap) + var(--safe-top) + var(--tg-top-offset)) var(--space-4) calc(var(--nav-height) + var(--safe-bottom) + 56px);
}

.mobile-app.is-home-screen {
  --header-shell-height: 0px;
  --screen-header-gap: 0px;
  padding-top: calc(var(--safe-top) + var(--tg-top-offset));
}

.mobile-app.is-home-screen .app-header {
  display: none;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 54px;
  margin: 0;
  padding: calc(12px + var(--safe-top) + var(--tg-top-offset)) var(--space-4) 10px;
  isolation: isolate;
}

.header-brand {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.header-brand strong {
  color: var(--color-blue);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.header-brand span {
  overflow: hidden;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0 0 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-top: 0;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(30px) saturate(1.35);
  -webkit-backdrop-filter: blur(30px) saturate(1.35);
  box-shadow:
    0 18px 42px rgba(42, 95, 203, 0.14),
    0 8px 20px rgba(9, 26, 70, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(191, 208, 245, 0.36);
}

.location-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  max-width: calc(100% - 124px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(191, 208, 245, 0.48);
  background: rgba(255, 255, 255, 0.58);
  color: var(--color-text);
  padding: 0 10px 0 8px;
  box-shadow: 0 8px 18px rgba(42, 95, 203, 0.06);
  transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.location-button:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(58, 133, 253, 0.24);
}

.location-button img {
  width: 18px;
  height: 18px;
  display: block;
}

.location-button .location-button-arrow {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  opacity: 0.72;
  transform: rotate(90deg);
}

.location-button strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 760;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-shortcut,
.avatar-shortcut {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.icon-shortcut {
  position: relative;
  background: transparent;
  box-shadow: none;
}

.icon-shortcut img {
  width: 22px;
  height: 22px;
  display: block;
  margin: auto;
}

.icon-shortcut i {
  position: absolute;
  top: 11px;
  right: 11px;
  display: none;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--color-red);
}

.icon-shortcut.has-unread i {
  display: block;
}

.avatar-shortcut {
  overflow: hidden;
  border: 2px solid #fff;
  background: #f3f7ff;
  padding: 0;
}

.avatar-shortcut img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.avatar-upload {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  column-gap: var(--space-3);
  row-gap: 2px;
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 10px 24px rgba(42, 95, 203, 0.08);
  cursor: pointer;
}

.profile-edit-form {
  gap: var(--space-4);
}

.profile-form-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(42, 95, 203, 0.07);
}

.profile-edit-form .field {
  color: var(--color-muted);
  font-size: 14px;
}

.profile-edit-form input,
.profile-edit-form select,
.profile-edit-form textarea {
  min-height: 58px;
  border-color: rgba(58, 133, 253, 0.34);
  border-radius: 22px;
  background: #fff;
  font-weight: 800;
}

.profile-edit-form textarea {
  min-height: 128px;
  line-height: 1.45;
}

.profile-submit {
  position: sticky;
  bottom: 0;
  min-height: 62px;
  border-radius: 24px;
  font-size: 18px;
}

.avatar-upload span {
  grid-row: span 3;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #f3f7ff;
  box-shadow: 0 10px 22px rgba(42, 95, 203, 0.12);
}

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

.avatar-upload strong {
  min-width: 0;
  font-size: 15px;
  line-height: 1.2;
}

.avatar-upload small {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 750;
}

.avatar-upload b {
  justify-self: start;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(58, 133, 253, 0.12);
  color: var(--color-blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.avatar-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  opacity: 0;
  cursor: pointer;
}

.app-screen {
  display: none;
}

.app-screen.is-active {
  display: block;
  animation: screenSectionIn 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.screen-stack,
.list-stack {
  display: grid;
  gap: var(--space-4);
}

.catalog-screen {
  gap: 15px;
}

.catalog-screen .search-row {
  margin-bottom: -3px;
}

.list-stack.dense {
  gap: var(--space-3);
}

.home-main-card {
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(198, 215, 255, 0.74);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(117, 234, 137, 0.2), transparent 32%),
    radial-gradient(circle at 0% 0%, rgba(58, 133, 253, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  box-shadow: 0 18px 42px rgba(42, 95, 203, 0.12);
}

.home-promo-carousel {
  position: relative;
  min-width: 0;
  margin: calc(0px - var(--safe-top) - var(--tg-top-offset)) calc(-1 * var(--space-4)) 2px;
  overflow: hidden;
}

.home-promo-track {
  display: grid;
  grid-auto-columns: min(100vw, 430px);
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-promo-track::-webkit-scrollbar {
  display: none;
}

.home-promo-card {
  position: relative;
  display: grid;
  align-content: end;
  justify-items: end;
  gap: 8px;
  width: min(100vw, 430px);
  aspect-ratio: 1 / 1;
  min-height: 320px;
  overflow: hidden;
  padding: calc(52px + var(--safe-top) + var(--tg-top-offset)) 18px 22px;
  scroll-snap-align: start;
  background: #dfeafd;
  color: #fff;
  text-align: left;
}

.home-promo-card::before {
  content: none;
}

.home-promo-card > * {
  position: relative;
  z-index: 1;
}

.home-promo-card > .home-promo-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-promo-card span {
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.home-promo-card strong {
  width: min(10.5ch, 92%);
  color: #fff;
  font-size: clamp(32px, 9.6vw, 48px);
  font-weight: 900;
  line-height: 0.98;
}

.home-promo-card small {
  max-width: 26ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.25;
}

.home-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 0;
  padding: 0 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #182032;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  font-weight: 820;
}

.home-promo-cta i {
  font-style: normal;
  font-size: 20px;
  line-height: 1;
}

.home-promo-dots {
  position: absolute;
  top: calc(14px + var(--safe-top) + var(--tg-top-offset));
  left: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(20, 39, 76, 0.16);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.home-promo-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(58, 133, 253, 0.28);
  transition: width 220ms ease, border-radius 220ms ease, background-color 220ms ease;
}

.home-promo-dots .is-active {
  width: 25px;
  border-radius: var(--radius-pill);
  background: var(--color-blue);
}

.home-user-games {
  display: grid;
  min-width: 0;
  gap: 12px;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-user-games .section-header {
  padding-inline: 2px;
}

.home-user-games .section-header h2 {
  font-size: 26px;
  font-weight: 850;
}

.home-user-games-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-blue);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(42, 95, 203, 0.08);
}

.home-user-games-track {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  margin-inline: calc(var(--space-4) * -1);
  padding: 0 var(--space-4) 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--space-4);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-user-games-track::-webkit-scrollbar {
  display: none;
}

.home-user-game-card {
  --game-accent: #3a85fd;
  --game-accent-soft: #eaf2ff;
  position: relative;
  display: flex;
  flex: 0 0 min(88vw, 372px);
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 342px;
  overflow: hidden;
  padding: 16px;
  scroll-snap-align: start;
  border: 1px solid #d9e4f5;
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  text-align: left;
  box-shadow: none;
  transition: border-color 160ms ease;
}

.home-user-game-card.is-organizer {
  --game-accent: #24a95a;
  --game-accent-soft: #e9f8ef;
  border-color: #cdebd8;
}

.home-user-game-card:focus-visible {
  outline: 3px solid rgba(58, 133, 253, 0.28);
  outline-offset: 2px;
}

.home-user-game-card:active {
  transform: none;
}

.home-user-game-topline,
.home-user-game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-user-game-topline > span,
.home-user-game-topline > strong {
  min-width: 0;
  padding: 6px 9px 5px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.home-user-game-topline > span {
  overflow: hidden;
  background: var(--game-accent-soft);
  color: var(--game-accent);
  font-weight: 800;
  text-overflow: ellipsis;
}

.home-user-game-topline > strong {
  flex: 0 0 auto;
  background: #fff1bd;
  color: #765500;
  font-weight: 800;
}

.home-user-game-players {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 38px;
}

.home-user-game-avatars {
  display: flex;
  align-items: center;
  padding-left: 1px;
}

.home-user-game-avatars > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  margin-left: -9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #eef3fb;
}

.home-user-game-avatars > span:first-child {
  z-index: 4;
  margin-left: 0;
  background: var(--game-accent-soft);
}

.home-user-game-avatars > span:nth-child(2) {
  z-index: 3;
}

.home-user-game-avatars > span:nth-child(3) {
  z-index: 2;
}

.home-user-game-avatars > span:nth-child(4) {
  z-index: 1;
}

.home-user-game-avatars img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-user-game-avatars > span:first-child img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.home-user-game-players > span {
  min-width: 0;
  overflow: hidden;
  color: #5b6477;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-user-game-players > span b {
  color: var(--color-text);
  font-weight: 850;
}

.home-user-game-slots {
  padding: 6px 8px;
  border-radius: var(--radius-pill);
  background: #ffad1f;
  color: #172033;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.home-user-game-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--color-text);
  font-size: 20px;
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-user-game-place {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  overflow: hidden;
  margin: 0;
  color: #4b566d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
}

.home-user-game-place img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.home-user-game-place b {
  min-width: 0;
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
}

.home-user-game-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.home-user-game-meta span {
  min-width: 0;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid #e2e8f2;
  border-radius: var(--radius-pill);
  color: #505a6f;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-user-game-meta span:nth-child(1) {
  border-color: rgba(58, 133, 253, 0.28);
  background: rgba(58, 133, 253, 0.1);
  color: #1d67d8;
}

.home-user-game-meta span:nth-child(2) {
  border-color: rgba(36, 169, 90, 0.28);
  background: rgba(36, 169, 90, 0.1);
  color: #168144;
}

.home-user-game-meta span:nth-child(3) {
  border-color: rgba(255, 173, 31, 0.36);
  background: rgba(255, 173, 31, 0.14);
  color: #9a6200;
}

.home-user-game-footer {
  padding-top: 11px;
  border-top: 1px solid #edf1f7;
}

.home-user-game-footer > span,
.home-user-game-footer b {
  font-size: 12px;
  font-weight: 850;
}

.home-user-game-footer > span {
  padding: 6px 9px;
  border-radius: var(--radius-pill);
  background: var(--game-accent-soft);
  color: var(--game-accent);
}

.home-user-game-footer > span.is-almost,
.home-user-game-footer > span.is-full {
  background: rgba(255, 183, 0, 0.14);
  color: #a66b00;
}

.home-user-game-footer b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
}

.home-user-game-footer b i {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--game-accent);
  color: #fff;
  font-style: normal;
  font-size: 15px;
}

/* Product hierarchy for the home game carousel. */
.home-user-game-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.home-user-game-sport {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid #d8e6fb;
  border-radius: 8px;
  background: var(--game-accent-soft);
}

.home-user-game-sport img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.home-user-game-schedule {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-user-game-schedule > span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.home-user-game-schedule small {
  min-width: 0;
  overflow: hidden;
  color: #68758d;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-user-game-schedule em {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  max-width: 84px;
  overflow: hidden;
  color: var(--game-accent);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-user-game-schedule em i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.home-user-game-schedule em.is-almost {
  color: #b06b00;
}

.home-user-game-schedule em.is-full {
  color: #18834a;
}

.home-user-game-schedule > strong {
  overflow: hidden;
  color: #172033;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-user-game-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: #fff0b8;
  color: #6f5100;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.home-user-game-info {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.home-user-game-title {
  font-size: 22px;
  font-weight: 850;
  line-height: 1.1;
}

.home-user-game-place {
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  overflow: visible;
  white-space: normal;
}

.home-user-game-place img {
  width: 18px;
  height: 18px;
}

.home-user-game-place > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-user-game-place b,
.home-user-game-place small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-user-game-place b {
  color: #364157;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.2;
}

.home-user-game-place small {
  color: #7a869d;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}

.home-user-game-meta span {
  padding: 5px 8px 4px;
  font-size: 10.5px;
}

.home-user-game-meta span:nth-child(1) {
  background: #eef4ff;
}

.home-user-game-meta span:nth-child(2) {
  background: #edf9f1;
}

.home-user-game-meta span:nth-child(3) {
  background: #fff7e5;
}

.home-user-game-roster {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid #e5ecf7;
  border-radius: 8px;
  background: #f6f8fc;
}

.home-user-game-roster-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.home-user-game-roster .home-user-game-avatars > span {
  width: 31px;
  height: 31px;
  box-shadow: 0 2px 5px rgba(32, 61, 111, 0.1);
}

.home-user-game-roster .home-user-game-avatars > span:first-child {
  background: #eef3fb;
}

.home-user-game-roster .home-user-game-avatars > span:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-user-game-player-count {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.home-user-game-player-count b,
.home-user-game-player-count small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-user-game-player-count b {
  color: #20283a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
}

.home-user-game-player-count small {
  color: #78849a;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.15;
}

.home-user-game-roster .home-user-game-slots {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--game-accent);
  font-size: 10.5px;
}

.home-user-game-roster .home-user-game-slots.is-urgent {
  color: #ad6800;
}

.home-user-game-progress {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: #dfe7f4;
}

.home-user-game-progress i {
  display: block;
  width: var(--game-progress);
  height: 100%;
  border-radius: inherit;
  background: var(--game-accent);
}

.home-user-game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-top: auto;
  padding-top: 12px;
}

.home-user-game-footer > span,
.home-user-game-footer b {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11.5px;
}

.home-user-game-footer > span {
  min-width: 0;
  gap: 6px;
  color: var(--game-accent);
}

.home-user-game-footer > span > i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--game-accent-soft);
  font-style: normal;
  font-size: 11px;
}

.home-user-game-footer b {
  gap: 7px;
  color: #20283a;
}

.home-user-game-footer b i {
  width: 30px;
  height: 30px;
  font-size: 16px;
}

@media (hover: hover) {
  .home-user-game-card:hover {
    border-color: rgba(58, 133, 253, 0.5);
    box-shadow: none;
    transform: none;
  }
}

@media (max-width: 360px) {
  .home-user-game-card {
    gap: 13px;
    padding: 14px;
  }

  .home-user-game-head {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .home-user-game-sport {
    width: 46px;
    height: 46px;
  }

  .home-user-game-sport img {
    width: 32px;
    height: 32px;
  }

  .home-user-game-price {
    min-width: 56px;
    min-height: 32px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .home-user-game-schedule em {
    max-width: 68px;
  }

  .home-user-game-roster-row {
    gap: 7px;
  }
}

.home-user-games-more {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  flex: 0 0 min(56vw, 230px);
  align-content: stretch;
  justify-items: start;
  gap: 9px;
  min-width: 0;
  min-height: 342px;
  padding: 17px;
  scroll-snap-align: start;
  border: 0;
  border-radius: 8px;
  background: var(--color-blue);
  color: #fff;
  text-align: left;
  box-shadow: none;
}

.home-user-games-more > span {
  order: 3;
  display: grid;
  place-items: center;
  align-self: end;
  justify-self: end;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-blue);
  font-size: 24px;
  line-height: 1;
}

.home-user-games-more strong {
  order: 1;
  max-width: 9ch;
  color: #fff;
  font-size: 22px;
  line-height: 1.05;
}

.home-user-games-more small {
  order: 2;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.home-user-games-more:active {
  transform: none;
}

.home-activity-goal {
  display: grid;
  min-width: 0;
}

.activity-goal-prompt {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 102px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 112px;
  padding: 15px 8px 15px 18px;
  overflow: visible;
  border: 1px solid rgba(30, 139, 70, 0.34);
  border-radius: 8px;
  background: var(--brand-green, #75EA89);
  color: #102018;
  font: inherit;
  text-align: left;
  box-shadow:
    0 7px 0 #43C767,
    0 17px 30px rgba(23, 112, 57, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -3px 0 rgba(28, 145, 64, 0.14);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.activity-goal-prompt:active {
  box-shadow:
    0 3px 0 #43C767,
    0 10px 20px rgba(23, 112, 57, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -2px 0 rgba(28, 145, 64, 0.12);
  transform: translateY(4px) scale(0.995);
}

.activity-goal-prompt:focus-visible {
  outline: 3px solid rgba(58, 131, 253, 0.32);
  outline-offset: 3px;
}

.activity-goal-prompt-visual {
  position: relative;
  z-index: 2;
  display: block;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: 102px;
  height: 94px;
}

.activity-goal-prompt-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -10px;
  width: 112px;
  height: 17px;
  border-radius: 50%;
  background: rgba(16, 91, 43, 0.24);
  filter: blur(6px);
  transform: rotate(7deg);
}

.activity-goal-prompt-image {
  position: absolute;
  top: 50%;
  right: 0;
  width: 136px;
  height: 136px;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 7px rgba(13, 74, 35, 0.3))
    drop-shadow(0 2px 1px rgba(10, 49, 25, 0.18));
  transform: translateY(-52%) rotate(4deg);
  transform-origin: 38% 74%;
}

.activity-goal-prompt-copy {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 3;
  gap: 4px;
  min-width: 0;
}

.activity-goal-prompt-copy > small {
  color: #125F32;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.activity-goal-prompt-copy > strong {
  color: #102018;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.08;
}

.activity-goal-prompt-copy > span {
  color: rgba(16, 32, 24, 0.7);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.activity-goal-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  min-width: 0;
  min-height: 104px;
  padding: 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(25, 145, 67, 0.46);
  border-radius: 8px;
  background: var(--brand-green, #75EA89);
  color: #06120b;
  font: inherit;
  text-align: left;
  box-shadow:
    0 7px 0 #43C767,
    0 17px 30px rgba(23, 112, 57, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -3px 0 rgba(28, 145, 64, 0.14);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.activity-goal-card:active {
  box-shadow:
    0 3px 0 #43C767,
    0 10px 20px rgba(23, 112, 57, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -2px 0 rgba(28, 145, 64, 0.12);
  transform: translateY(4px) scale(0.995);
}

.activity-goal-ring {
  --goal-progress: 0%;
  position: relative;
  display: grid;
  place-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: conic-gradient(#72e58e 0 var(--goal-progress), rgba(255, 255, 255, 0.2) var(--goal-progress) 100%);
  color: #fff;
  text-align: center;
}

.activity-goal-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #2f76ed;
}

.activity-goal-ring strong,
.activity-goal-ring small {
  position: relative;
  z-index: 1;
}

.activity-goal-ring strong {
  font-size: 21px;
  font-weight: 850;
  line-height: 1;
}

.activity-goal-ring small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 750;
}

.activity-goal-card .activity-goal-ring {
  display: block;
  width: 68px;
  height: 68px;
  background:
    conic-gradient(#16b94b 0 var(--goal-progress), rgba(245, 255, 232, 0.9) var(--goal-progress) 100%);
  box-shadow:
    0 10px 16px rgba(18, 95, 44, 0.18),
    inset 0 3px 3px rgba(255, 255, 255, 0.72),
    inset 0 -5px 8px rgba(10, 77, 33, 0.18);
}

.activity-goal-card .activity-goal-ring::before {
  inset: 15px;
  background: var(--brand-green, #75EA89);
  box-shadow:
    inset 0 4px 7px rgba(16, 94, 39, 0.12),
    inset 0 -3px 8px rgba(255, 255, 255, 0.22);
}

.activity-goal-card .activity-goal-ring::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 50%;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(180deg, #38db61 0%, #14a93f 100%);
  box-shadow:
    0 5px 9px rgba(12, 82, 32, 0.2),
    inset 0 2px 3px rgba(255, 255, 255, 0.36);
  transform: translateX(-50%);
}

.activity-goal-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.activity-goal-copy > strong {
  color: #030906;
  font-size: clamp(20px, 5vw, 25px);
  font-weight: 900;
  line-height: 1.02;
  white-space: normal;
}

.activity-goal-copy > span {
  color: rgba(16, 32, 24, 0.66);
  font-size: clamp(13px, 3.35vw, 15px);
  font-weight: 700;
  line-height: 1.18;
}

.activity-goal-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #2f76ed;
  font-size: 19px;
  font-style: normal;
}

.activity-goal-week {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.activity-goal-week > span {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 750;
}

.activity-goal-week i {
  width: 100%;
  height: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
}

.activity-goal-week .is-active {
  color: #fff;
}

.activity-goal-week .is-active i {
  background: #ffcb45;
}

@media (max-width: 390px) {
  .activity-goal-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 13px;
    min-height: 96px;
    padding: 16px 15px;
  }

  .activity-goal-card .activity-goal-ring {
    width: 58px;
    height: 58px;
  }

  .activity-goal-card .activity-goal-ring::before {
    inset: 12px;
  }

  .activity-goal-card .activity-goal-ring::after {
    width: 15px;
    height: 15px;
  }

  .activity-goal-copy {
    gap: 5px;
  }

  .activity-goal-copy > strong {
    font-size: 19px;
  }

  .activity-goal-copy > span {
    font-size: 13px;
  }
}

.home-hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.home-hero-topline span,
.home-hero-topline b {
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 820;
}

.home-hero-topline span {
  background: rgba(58, 133, 253, 0.1);
  color: var(--color-blue);
  text-transform: uppercase;
}

.home-hero-topline b {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.home-main-copy h1 {
  margin: 0;
  max-width: 12ch;
  color: var(--color-text);
  font-size: clamp(34px, 9.8vw, 52px);
  line-height: 0.96;
  letter-spacing: 0;
}

.home-main-copy p,
.home-game-panel small,
.home-profile-card p,
.home-recommendation p {
  margin: 0;
  color: var(--color-muted);
  font-weight: 600;
  line-height: 1.38;
}

.home-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-metric-row span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 9px;
  border: 1px solid rgba(198, 215, 255, 0.58);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.home-metric-row b {
  color: var(--color-text);
  font-size: 20px;
  line-height: 1;
}

.home-metric-row small {
  overflow: hidden;
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-game-panel {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(191, 208, 245, 0.68);
  border-radius: 22px;
  background: #fff;
  color: var(--color-text);
  text-align: left;
  box-shadow: 0 12px 26px rgba(42, 95, 203, 0.07);
}

.home-game-panel img {
  width: 76px;
  height: 76px;
  border-radius: 17px;
  background: #dfeafd;
  object-fit: cover;
}

.home-game-panel div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.home-game-panel span {
  justify-self: start;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: rgba(117, 234, 137, 0.18);
  color: var(--color-green-text);
  font-size: 11px;
  font-weight: 950;
}

.home-game-panel strong {
  min-width: 0;
  overflow: hidden;
  color: var(--color-text);
  font-size: 20px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-game-panel > b {
  align-self: start;
  padding: 8px 9px;
  border-radius: var(--radius-pill);
  background: #eef4ff;
  color: var(--color-blue);
  font-size: 12px;
}

.home-main-actions {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-3);
}

.mvp-hero-card .home-main-copy h1 {
  max-width: 13ch;
}

.home-block {
  display: grid;
  gap: var(--space-3);
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.quick-action-card,
.activity-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(198, 215, 255, 0.72);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(58, 133, 253, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.96);
  color: var(--color-text);
  text-align: left;
  box-shadow: 0 10px 24px rgba(42, 95, 203, 0.06);
}

.quick-action-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef4ff, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(191, 208, 245, 0.5);
}

.quick-action-card img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.quick-action-card strong,
.activity-card strong,
.daily-task-card strong,
.news-card strong {
  min-width: 0;
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.08;
}

.quick-action-card small,
.activity-card small,
.daily-task-card p,
.news-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.34;
}

.activity-grid {
  display: grid;
  gap: var(--space-3);
}

.home-section-card {
  display: grid;
  gap: var(--space-3);
  padding: 16px;
  border-color: rgba(198, 215, 255, 0.72);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(58, 133, 253, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(42, 95, 203, 0.075);
}

.home-section-card .section-header h2 {
  font-size: 19px;
  font-weight: 780;
}

.activity-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.activity-card span {
  grid-column: 1 / -1;
  color: var(--color-blue-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.daily-task-list {
  display: grid;
  gap: var(--space-3);
}

.daily-task-card {
  display: grid;
  gap: var(--space-3);
  padding: 14px;
  border: 1px solid rgba(198, 215, 255, 0.66);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(252, 192, 5, 0.12), transparent 44%),
    #fff;
}

.daily-task-card > span {
  justify-self: start;
  padding: 8px 11px;
  border-radius: var(--radius-pill);
  background: rgba(252, 192, 5, 0.16);
  color: #7d5c00;
  font-size: 12px;
  font-weight: 950;
}

.home-score-card {
  display: grid;
  gap: var(--space-4);
  padding: 18px;
  border: 1px solid rgba(198, 215, 255, 0.72);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(117, 234, 137, 0.16), transparent 36%),
    linear-gradient(145deg, #ffffff, #f7fbff);
  color: var(--color-text);
  box-shadow: 0 14px 34px rgba(42, 95, 203, 0.085);
}

.home-score-card h2 {
  margin: 6px 0;
  color: var(--color-blue);
  font-size: clamp(42px, 12vw, 62px);
  line-height: 0.94;
}

.home-score-card p,
.home-score-card .progress-meta span,
.home-score-card .progress-meta strong {
  color: var(--color-muted);
}

.home-score-card .progress-rail {
  background: rgba(58, 133, 253, 0.14);
}

.news-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(236px, 82%);
  gap: var(--space-3);
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.news-strip::-webkit-scrollbar {
  display: none;
}

.news-card {
  display: grid;
  gap: 9px;
  padding: var(--space-4);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
}

.news-card span {
  justify-self: start;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: #eef3ff;
  color: var(--color-blue-dark);
  font-size: 11px;
  font-weight: 950;
}

.home-progress-card,
.home-profile-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(42, 95, 203, 0.09);
}

.home-progress-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

.home-progress-card h2,
.home-profile-card h2,
.home-recommendation h2 {
  margin: 5px 0;
  color: var(--color-text);
  font-size: clamp(25px, 7vw, 34px);
  line-height: 1;
}

.home-progress-card > div:first-child > strong {
  flex: 0 0 auto;
  align-self: start;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  background: #eef3ff;
  color: var(--color-blue-dark);
  font-size: 15px;
}

.home-profile-card {
  cursor: pointer;
}

.home-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.home-profile-stats span {
  display: grid;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 18px;
  background: #f3f7ff;
}

.home-profile-stats b {
  color: var(--color-text);
  font-size: 20px;
  line-height: 1;
}

.home-profile-stats small {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 900;
}

.home-recommendation .section-header {
  align-items: flex-start;
}

.home-recommendation .section-header > div {
  min-width: 0;
}

.home-recommendation .section-header > strong {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  background: rgba(252, 192, 5, 0.18);
  color: #7d5c00;
  font-size: 16px;
  white-space: nowrap;
}

.score-hero {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--color-line-soft);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
}

.score-hero-top,
.level-progress > div,
.achievement-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.score-hero-top strong {
  display: block;
  font-size: clamp(54px, 18vw, 78px);
  line-height: 0.86;
}

.score-hero-top span,
.level-progress span,
.level-progress p,
.score-stats small {
  color: var(--color-muted);
  font-weight: 800;
}

.level-ring {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 58%, transparent 60%),
    conic-gradient(var(--color-yellow) 0 22%, var(--color-blue) 22% 68%, var(--color-green) 68% 100%);
  text-transform: uppercase;
}

.level-ring span {
  font-size: 10px;
}

.level-ring strong {
  font-size: 34px;
}

.score-hero .progress-rail {
  background: rgba(58, 133, 253, 0.14);
}

.score-hero .progress-meta {
  display: none;
}

.level-progress {
  display: grid;
  gap: 8px;
}

.level-progress p {
  margin: 0;
  font-size: 13px;
}

.score-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.score-stats span {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 12px 6px;
  border-radius: var(--radius-md);
  background: rgba(58, 133, 253, 0.08);
  text-align: center;
}

.score-stats b {
  font-size: 17px;
}

.score-stats small {
  font-size: 10px;
}

.achievement-card,
.feed-card {
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(63, 130, 241, 0.08);
}

.achievement-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
}

.achievement-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.achievement-head > span,
.nearby-row > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius-md);
  background: #eef7ff;
}

.achievement-head strong,
.feed-card h3 {
  display: block;
  color: var(--color-text);
  font-size: 18px;
}

.achievement-head p,
.feed-card p {
  margin: 4px 0 0;
  color: #6c7280;
  font-weight: 700;
}

.home-row-section {
  display: grid;
  gap: var(--space-3);
}

.link-action {
  min-height: 32px;
  background: transparent;
  color: var(--color-blue);
  font-weight: 900;
}

.home-game-strip {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.home-game-strip.is-single .mini-game-tile {
  min-width: min(100%, 360px);
}

.home-game-strip::-webkit-scrollbar {
  display: none;
}

.mini-game-tile {
  position: relative;
  display: grid;
  align-content: end;
  gap: 7px;
  min-width: 220px;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111833;
  color: #fff;
  padding: var(--space-4);
  text-align: left;
}

.mini-game-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.mini-game-tile span,
.mini-game-tile strong,
.mini-game-tile small,
.mini-game-tile b {
  position: relative;
}

.mini-game-tile span {
  justify-self: start;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.mini-game-tile strong {
  font-size: 21px;
}

.mini-game-tile small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.nearby-list {
  display: grid;
}

.nearby-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line-soft);
  background: transparent;
  color: var(--color-text);
  text-align: left;
}

.nearby-row:last-child {
  border-bottom: 0;
}

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

.nearby-row small {
  color: #6c7280;
  font-weight: 600;
}

.nearby-row b {
  color: var(--color-blue);
  white-space: nowrap;
}

.feed-list {
  display: grid;
  gap: var(--space-3);
}

.feed-card {
  position: relative;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
}

.feed-card div {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.feed-card div span,
.feed-card > b {
  border-radius: var(--radius-pill);
  background: rgba(252, 192, 5, 0.16);
  color: #a15a00;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.feed-card > b {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
}

.favorites-section {
  display: grid;
  gap: var(--space-3);
}

.favorites-strip {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: none;
}

.favorites-strip::-webkit-scrollbar {
  display: none;
}

.favorites-strip .empty-state {
  min-width: 100%;
}

.favorite-tile {
  position: relative;
  display: grid;
  align-content: end;
  gap: 7px;
  min-width: 238px;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111833;
  color: #fff;
  padding: var(--space-4);
  text-align: left;
  box-shadow: 0 14px 30px rgba(42, 95, 203, 0.16);
}

.favorite-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.favorite-tile::after,
.mini-game-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.08), rgba(12, 18, 32, 0.72));
}

.favorite-tile span,
.favorite-tile strong,
.favorite-tile small,
.favorite-tile b,
.mini-game-tile span,
.mini-game-tile strong,
.mini-game-tile small,
.mini-game-tile b {
  z-index: 1;
}

.favorite-tile span {
  justify-self: start;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.favorite-tile strong {
  font-size: 20px;
  line-height: 1.08;
}

.favorite-tile small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.favorite-tile b {
  font-size: 15px;
}

.progress-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: var(--space-4);
  overflow: hidden;
  padding: var(--space-5);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
}

.progress-hero-card h2 {
  margin: 6px 0 2px;
  color: var(--color-blue);
  font-size: clamp(48px, 16vw, 74px);
  line-height: 0.9;
}

.progress-hero-card p {
  margin: 0;
  color: var(--color-muted);
  font-weight: 800;
  line-height: 1.35;
}

.progress-hero-card .progress-block {
  grid-column: 1 / -1;
}

.progress-hero-card .progress-meta span,
.progress-hero-card .progress-meta strong {
  color: var(--color-muted);
}

.progress-hero-card .progress-rail {
  background: rgba(58, 133, 253, 0.14);
}

.progress-level-ring {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 56%, transparent 58%),
    conic-gradient(var(--color-yellow) 0 22%, var(--color-blue) 22% 70%, var(--color-green) 70% 100%);
  text-align: center;
}

.progress-level-ring span {
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.progress-level-ring strong {
  color: var(--color-blue);
  font-size: 34px;
  line-height: 0.9;
}

.progress-period-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.period-stat-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid var(--color-line-soft);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #f6f9ff);
}

.period-stat-card > span,
.period-stat-card small {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 900;
}

.period-stat-card > strong {
  color: var(--color-text);
  font-size: clamp(26px, 8vw, 34px);
  line-height: 0.9;
}

.period-stat-card div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.period-stat-card b {
  color: var(--color-blue-dark);
  font-size: 15px;
  line-height: 1;
}

.achievement-grid {
  display: grid;
  gap: var(--space-3);
}

.progress-achievement-card {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid rgba(198, 215, 255, 0.9);
  border-radius: var(--radius-md);
  background: #f3f8ff;
}

.progress-achievement-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.progress-achievement-card > div span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eef3ff;
  font-size: 22px;
}

.progress-achievement-card small {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(58, 133, 253, 0.1);
  color: var(--color-blue-dark);
  font-size: 11px;
  font-weight: 950;
}

.progress-achievement-card strong,
.progress-master-card h2 {
  color: var(--color-text);
  font-size: 22px;
  line-height: 1.04;
}

.progress-achievement-card p,
.progress-master-card p {
  margin: 0;
  color: var(--color-muted);
  font-weight: 600;
  line-height: 1.36;
}

.progress-achievement-card i {
  height: 9px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: #e8efff;
}

.progress-achievement-card i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
}

.progress-master-card {
  display: grid;
  gap: var(--space-4);
}

.achievements-screen {
  gap: var(--space-5);
}

.achievements-overview-card {
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-xl);
  background: #f3f8ff;
  box-shadow: var(--shadow-card);
}

.achievements-overview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
}

.achievements-overview-card > div:first-child {
  min-width: 0;
}

.achievements-overview-card h1 {
  margin: 6px 0 8px;
  color: var(--color-text);
  font-size: clamp(34px, 10vw, 50px);
  line-height: 0.94;
}

.achievements-overview-card p {
  max-width: 28ch;
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.36;
}

.achievement-total-pill {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(58, 133, 253, 0.18);
  border-radius: 28px;
  background: #eef4ff;
}

.achievement-total-pill strong {
  color: var(--color-blue);
  font-size: 34px;
  line-height: 0.9;
}

.achievement-total-pill span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 900;
}

.achievement-series-card {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-2) var(--space-1) var(--space-5);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.achievement-series-card + .achievement-series-card {
  margin-top: var(--space-2);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(93, 118, 163, 0.16);
}

.achievement-series-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.achievement-series-header h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.achievement-series-header strong {
  color: var(--color-muted);
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.achievement-trophy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--space-3);
  row-gap: var(--space-5);
}

.achievement-trophy {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: var(--color-text);
  text-align: center;
}

.achievement-medal {
  width: min(24vw, 92px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.achievement-medal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.achievement-medal b {
  font-size: 30px;
}

.achievement-trophy.is-locked {
  opacity: 0.62;
}

.achievement-trophy.is-locked .achievement-medal {
  filter: grayscale(1);
}

.achievement-trophy.is-locked strong {
  color: #7d8798;
}

.achievement-trophy strong {
  display: -webkit-box;
  max-width: 100%;
  min-height: 30px;
  overflow: hidden;
  color: var(--color-text);
  font-size: clamp(10px, 2.6vw, 11px);
  font-weight: 900;
  line-height: 1.18;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.achievement-trophy small {
  display: none;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.achievement-detail-sheet {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: var(--space-7);
  min-height: 100%;
}

.achievement-share-card {
  display: grid;
  grid-template-rows: minmax(20px, 0.28fr) auto auto auto minmax(0, 0.72fr);
  align-content: stretch;
  align-self: start;
  justify-items: center;
  gap: 10px;
  width: 100%;
  min-height: min(70svh, 620px);
  padding: var(--space-4);
  border: 1px solid var(--color-line-soft);
  border-radius: 28px;
  background: #eaf3ff;
  box-shadow: none;
  text-align: center;
}

.achievement-share-card.is-games-series {
  background: #e7ffef;
}

.achievement-share-card > span {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: rgba(117, 234, 137, 0.18);
  color: var(--color-green-text);
  font-size: 13px;
  font-weight: 950;
}

.achievement-share-medal {
  grid-row: 2;
  width: min(46vw, 164px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.achievement-share-medal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.achievement-share-card.is-locked .achievement-share-medal,
.achievement-share-card.is-locked .achievement-card-logo {
  filter: grayscale(1);
  opacity: 0.64;
}

.achievement-share-medal b {
  font-size: 64px;
}

.achievement-share-card strong {
  grid-row: 3;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--color-text);
  font-size: clamp(20px, 4.8vw, 28px);
  line-height: 1.08;
  text-wrap: balance;
}

.achievement-share-card p {
  grid-row: 4;
  max-width: 26ch;
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.34;
}

.achievement-card-logo {
  grid-row: 5;
  align-self: end;
  width: min(34vw, 96px);
  height: auto;
  object-fit: contain;
}

.achievement-share-button {
  width: 100%;
  min-height: 40px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  box-shadow: none;
  font-size: 14px;
}

.achievement-progress-button,
.achievement-progress-button:disabled {
  border: 1px solid rgba(125, 135, 152, 0.22);
  background: #eef2f7;
  color: #69758a;
  opacity: 1;
  font-weight: 900;
}

.hero-card {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.94));
  box-shadow: var(--shadow-card);
}

.hero-copy h2,
.section-header h2,
.team-card h2,
.profile-head h2,
.card-title-row h3,
.event-card h3 {
  margin: 0;
  color: var(--color-text);
  letter-spacing: 0;
}

.hero-copy h2 {
  font-size: clamp(32px, 11vw, 44px);
  line-height: 0.98;
}

.hero-copy p,
.hero-goal span,
.section-header p,
.profile-head p,
.team-card p,
.card-content p,
.event-card p,
.empty-state p,
.list-row span {
  color: var(--color-muted);
  font-weight: 500;
  line-height: 1.42;
}

.hero-goal {
  display: grid;
  gap: var(--space-3);
}

.hero-goal > strong {
  font-size: clamp(38px, 13vw, 58px);
  line-height: 0.9;
}

.progress-block {
  display: grid;
  gap: var(--space-2);
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.progress-meta strong {
  color: var(--color-text);
  text-transform: none;
}

.progress-rail {
  height: 12px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: #dbe7fb;
}

.progress-rail span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
}

.section-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
}

.section-card.flat {
  box-shadow: none;
}

.section-header,
.card-title-row,
.team-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.section-header.compact {
  align-items: center;
}

.section-header h2 {
  font-size: clamp(21px, 6vw, 28px);
  line-height: 1.08;
}

.result-label {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.recommendation-card {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--color-card), #f8fbff);
}

.recommendation-card h2,
.recommendation-card p {
  margin: 4px 0 0;
}

.recommendation-card > strong {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(252, 192, 5, 0.18);
  color: #7d5c00;
  white-space: nowrap;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
}

.search-row.has-tools {
  grid-template-columns: minmax(0, 1fr) 44px 44px;
  gap: 8px;
}

.catalog-screen .search-row.has-tools {
  column-gap: 12px;
  row-gap: 15px;
}

.search-bar {
  position: relative;
}

.search-bar span {
  position: absolute;
  left: -9999px;
}

.search-bar > img {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.58;
  pointer-events: none;
  transform: translateY(-50%);
}

.search-bar input {
  min-height: 44px;
  padding-left: 44px;
  box-shadow: 0 10px 24px rgba(63, 130, 241, 0.09);
  font-weight: 650;
}

.search-bar input:focus,
.search-bar input:focus-visible {
  outline: 0;
  box-shadow: 0 10px 24px rgba(63, 130, 241, 0.09);
}

.search-action {
  min-width: 94px;
  min-height: 44px;
}

.search-row.has-tools .search-action {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 52px;
}

.search-tool {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line-soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(58, 133, 253, 0.11);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.search-tool:active {
  transform: scale(0.97);
}

.search-tool img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.search-tool.is-active {
  border-color: transparent;
  background: var(--color-blue);
}

.search-tool.is-active img {
  filter: brightness(0) invert(1);
}

.search-tool b {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--color-red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
}

.toolbar-row,
.chip-scroll {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 2px 2px 4px;
}

.filter-rail {
  gap: var(--space-4);
  width: calc(100% + (var(--space-4) * 2));
  margin: 0 calc(-1 * var(--space-4));
  padding: 0 var(--space-4) 6px;
  background: transparent;
  isolation: isolate;
  scroll-padding-inline: var(--space-4);
}

.catalog-screen .section-header.compact {
  margin-top: calc(-1 * (15px - var(--screen-header-gap, 13px)));
}

.filter-trigger-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2);
}

.filter-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line-soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(58, 133, 253, 0.11);
}

.filter-launcher b {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--color-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
}

.filter-bars {
  display: grid;
  gap: 4px;
  width: 20px;
}

.filter-bars i {
  display: block;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-blue-dark);
}

.filter-bars i:nth-child(1) {
  width: 14px;
}

.filter-bars i:nth-child(2) {
  width: 20px;
}

.filter-bars i:nth-child(3) {
  width: 10px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-blue-dark);
  padding: 0 15px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.filter-pill:active,
.filter-launcher:active,
.filter-option:active {
  transform: scale(0.98);
}

.filter-pill.is-active {
  border-color: transparent;
  background: var(--color-blue);
  color: #fff;
  box-shadow: none;
}

.filter-pill img {
  width: 11px;
  height: 11px;
  transform: rotate(90deg);
  filter: brightness(0) saturate(100%) invert(37%) sepia(12%) saturate(1305%) hue-rotate(183deg) brightness(92%) contrast(88%);
}

.filter-pill.is-active img {
  filter: brightness(0) invert(1);
}

.filter-groups {
  display: grid;
  gap: var(--space-3);
}

.filter-groups > div {
  display: grid;
  gap: 7px;
}

.filter-groups > div > span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.chip-scroll::-webkit-scrollbar {
  display: none;
}

.chip-scroll.wrap {
  flex-wrap: wrap;
  overflow: visible;
}

.chip,
.meta-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  max-width: 100%;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-pill);
  background: #eef3ff;
  color: var(--color-blue-dark);
  padding: 0 12px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.chip.is-active,
.status-pill.is-new,
.status-pill.is-joined {
  border-color: transparent;
  background: var(--color-blue);
  color: #fff;
}

.chip.is-disabled,
.chip:disabled {
  opacity: 0.46;
  pointer-events: none;
}

.status-pill.is-free,
.status-pill.is-open {
  background: rgba(117, 234, 137, 0.2);
  color: var(--color-green-text);
}

.status-pill.is-almost,
.status-pill.is-hot {
  background: rgba(252, 192, 5, 0.22);
  color: #785a00;
}

.status-pill.is-full {
  background: #eef1f7;
  color: var(--color-muted);
}

.status-pill.is-indoor {
  background: rgba(58, 133, 253, 0.12);
  color: var(--color-blue-dark);
}

.view-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 142px;
  padding: 4px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: #eef3ff;
}

.view-toggle-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  z-index: 0;
  width: calc(50% - 4px);
  border-radius: var(--radius-pill);
  background: var(--color-card);
  box-shadow: 0 5px 12px rgba(63, 130, 241, 0.12);
  transform: translateX(0);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.view-toggle[data-view="map"] .view-toggle-indicator {
  transform: translateX(calc(100% + 0px));
}

.view-toggle button {
  position: relative;
  z-index: 1;
  min-height: 34px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 900;
  transition: color 220ms ease, transform 220ms ease;
}

.view-toggle button.is-active {
  color: var(--color-blue-dark);
  transform: translateY(-1px);
}

.catalog-screen > .map-preview,
.catalog-screen > .list-stack {
  animation: catalogContentIn 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes screenSectionIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes catalogContentIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.inline-select {
  width: auto;
  min-height: 40px;
  max-width: 160px;
  border-radius: var(--radius-pill);
  color: var(--color-blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.inline-select.full {
  width: 100%;
  max-width: none;
  min-height: 54px;
  border-radius: var(--radius-md);
}

.card-affordance {
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.card-affordance:active {
  transform: scale(0.99);
}

.game-card,
.venue-card {
  overflow: hidden;
  border: 1px solid rgba(198, 215, 255, 0.72);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.96));
  box-shadow:
    0 16px 38px rgba(42, 95, 203, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 152px;
  background: #dfeafd;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 18, 44, 0.08), transparent 34%, rgba(6, 18, 44, 0.18));
  pointer-events: none;
}

.card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-topline {
  position: absolute;
  z-index: 1;
  top: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.save-button {
  min-height: 36px;
  max-width: 132px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  color: var(--color-blue-dark);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.save-button.is-active {
  background: var(--color-blue);
  color: #fff;
}

.card-content {
  display: grid;
  gap: 10px;
  padding: 15px var(--space-4) var(--space-4);
}

.card-title-row h3 {
  min-width: 0;
  font-size: clamp(22px, 5.9vw, 28px);
  line-height: 1.02;
}

.card-title-row > strong {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  background: #f1f6ff;
  color: var(--color-blue-dark);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.card-content p {
  margin: 0;
  font-weight: 500;
  font-size: 15px;
}

.card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-meta-row span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(238, 243, 255, 0.68);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip-line span {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: #f2f6ff;
  color: var(--color-blue-dark);
  font-size: 12px;
  font-weight: 700;
}

.card-fill {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding-bottom: 8px;
}

.card-fill div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.card-fill strong {
  color: var(--color-text);
}

.card-fill i {
  position: relative;
  z-index: 1;
  display: block;
  height: 8px;
  max-width: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
}

.card-fill::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: #dbe7fb;
}

.card-actions,
.form-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-3);
}

.card-actions:has(> :only-child) {
  grid-template-columns: 1fr;
}

.button,
.primary-pill,
.secondary-pill,
.small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius-pill);
  padding: 0 16px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transition: transform 0.14s ease, opacity 0.14s ease, background-color 0.14s ease;
}

.button:active,
.primary-pill:active,
.secondary-pill:active,
.small-action:active {
  transform: scale(0.98);
}

.button:disabled,
.primary-pill:disabled,
.secondary-pill:disabled,
.small-action:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.button-primary,
.primary-pill,
.small-action.is-primary {
  background: var(--color-blue);
  color: #fff;
  box-shadow: 0 12px 26px rgba(58, 133, 253, 0.24);
}

.achievement-detail-sheet .achievement-share-button {
  width: 100%;
  margin-top: 120px;
  height: 44px;
  min-height: 44px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  box-shadow: none;
  font-size: 15px;
  line-height: 1;
}

.achievement-detail-sheet .achievement-share-button.is-green {
  background: var(--color-green);
  color: #073b1b;
}

.achievement-detail-sheet .achievement-progress-button,
.achievement-detail-sheet .achievement-progress-button:disabled {
  height: 44px;
  min-height: 44px;
  opacity: 1;
  box-shadow: none;
  font-size: 15px;
  line-height: 1;
}

.sheet-panel.is-achievement-sheet {
  height: min(88svh, 780px);
}

.sheet-panel.is-filter-sheet {
  height: min(92svh, 820px);
  padding-bottom: 0;
  background: #f8fbff;
}

.sheet-panel.is-sort-sheet {
  height: auto;
  max-height: min(62svh, 520px);
}

.sheet-panel.is-notifications-sheet {
  height: min(92svh, 780px);
  background: #f8fbff;
}

.sheet-panel.is-location-sheet {
  height: min(92svh, 820px);
  background: #f8fbff;
}

.sheet-panel.is-detail-sheet {
  height: min(94svh, 860px);
  background: #f8fbff;
}

.sheet-panel.is-achievement-sheet .achievement-share-card {
  min-height: 470px;
}

.button-secondary,
.secondary-pill,
.small-action {
  border: 1px solid var(--color-line-soft);
  background: #eef3ff;
  color: var(--color-blue-dark);
}

.button-full {
  width: 100%;
}

.is-loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}

.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.54);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.small-action {
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.stat-card {
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-md);
  background: var(--color-card);
}

.stat-card span {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 900;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  color: var(--color-text);
  font-size: 21px;
  line-height: 1;
}

.profile-card,
.team-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
}

.profile-hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-5);
  cursor: pointer;
}

.profile-head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-4);
  padding-right: 0;
}

.profile-head img {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #eef3ff;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(63, 130, 241, 0.16);
}

.profile-title {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 88px;
}

.profile-head h2 {
  margin: 0;
  font-size: clamp(29px, 8vw, 42px);
  line-height: 0.86;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.profile-head h2 span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-card h2 {
  font-size: clamp(26px, 8vw, 34px);
  line-height: 1.02;
}

.profile-head p {
  justify-self: start;
  margin: 0;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: #eef3ff;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
}

.profile-card > p,
.team-card p {
  margin: 0;
  color: var(--color-muted);
  font-weight: 600;
}

.profile-card > p {
  font-size: clamp(18px, 5vw, 23px);
  line-height: 1.34;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.profile-identity-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.profile-identity-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  background: #f3f7ff;
  color: var(--color-muted);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.profile-identity-row span:first-child {
  background: var(--color-blue);
  color: #fff;
}

.profile-sports-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-md);
  background: #fff;
}

.profile-sports-card > span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 900;
}

.profile-sports-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-sports-card b {
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  background: #eef3ff;
  color: var(--color-blue-dark);
  font-size: 13px;
  line-height: 1;
}

.profile-detail-sports {
  border-color: rgba(198, 215, 255, 0.82);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(117, 234, 137, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  box-shadow:
    0 12px 28px rgba(42, 95, 203, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.profile-detail-sports > span {
  text-transform: uppercase;
}

.profile-detail-sports b {
  border: 1px solid rgba(198, 215, 255, 0.72);
  background: #fff;
  box-shadow: 0 8px 18px rgba(42, 95, 203, 0.06);
}

.profile-about {
  padding-top: var(--space-1);
  font-size: clamp(16px, 4.4vw, 19px) !important;
  line-height: 1.42 !important;
}

.profile-detail-card {
  position: relative;
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-2);
}

.profile-sticky-title {
  position: sticky;
  top: -1px;
  z-index: 6;
  justify-self: center;
  min-height: 32px;
  margin-bottom: -10px;
  padding: 8px 14px;
  border: 1px solid rgba(198, 215, 255, 0.72);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.86);
  color: var(--color-blue-dark);
  box-shadow: 0 12px 26px rgba(42, 95, 203, 0.13);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-sticky-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.profile-detail-hero {
  position: relative;
  display: grid;
  gap: var(--space-4);
  overflow: hidden;
  margin: 0 calc(-1 * var(--space-1));
  padding: var(--space-4);
  border: 1px solid rgba(198, 215, 255, 0.82);
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 0%, rgba(117, 234, 137, 0.22), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(58, 133, 253, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 255, 0.94));
  box-shadow:
    0 18px 42px rgba(42, 95, 203, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.profile-detail-card.is-editing .profile-detail-hero {
  border-color: rgba(58, 133, 253, 0.26);
  background:
    radial-gradient(circle at 14% 0%, rgba(58, 133, 253, 0.22), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(117, 234, 137, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
}

.profile-detail-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.profile-detail-hero-top span,
.profile-detail-hero-top b {
  min-height: 30px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-blue);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.profile-detail-hero-top b {
  color: var(--color-muted);
}

.profile-detail-heading {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.profile-detail-heading h2 {
  margin: 0;
  max-width: 12ch;
  color: var(--color-text);
  font-size: clamp(34px, 9vw, 48px);
  line-height: 0.92;
  letter-spacing: 0;
}

.profile-detail-heading p {
  margin: 0;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: #eef3ff;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
}

.profile-detail-avatar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  padding-top: 0;
}

.profile-detail-avatar {
  width: 128px;
  height: 128px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #eef3ff;
  object-fit: cover;
  box-shadow: 0 20px 46px rgba(63, 130, 241, 0.24);
}

.profile-detail-avatar-button {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: transparent;
}

.profile-detail-avatar-button span {
  position: absolute;
  left: 50%;
  bottom: -9px;
  min-width: 112px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(58, 133, 253, 0.24);
  transform: translateX(-50%);
}

.profile-detail-action {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  justify-self: center;
  padding: 0;
  border: 1px solid var(--color-line-soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-blue-dark);
  box-shadow: 0 10px 22px rgba(42, 95, 203, 0.1);
  backdrop-filter: blur(12px);
}

.profile-detail-action img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.profile-detail-action.is-primary {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #fff;
}

.profile-detail-action.is-primary img {
  filter: brightness(0) invert(1);
}

.profile-detail-action:active {
  transform: translateY(1px);
}

.profile-detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.profile-detail-metrics .stat-card {
  min-height: 76px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(198, 215, 255, 0.74);
  background:
    radial-gradient(circle at 100% 0%, rgba(58, 133, 253, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    0 12px 26px rgba(42, 95, 203, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.profile-detail-metrics .stat-card span {
  font-size: 12px;
}

.profile-detail-metrics .stat-card strong {
  margin-top: 8px;
  font-size: clamp(25px, 7vw, 34px);
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.profile-info-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-content: start;
  align-items: center;
  column-gap: 12px;
  row-gap: 5px;
  min-height: 72px;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid rgba(198, 215, 255, 0.9);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(117, 234, 137, 0.1), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(58, 133, 253, 0.08), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.96));
  box-shadow:
    0 14px 30px rgba(42, 95, 203, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.profile-info-item.wide {
  grid-column: 1 / -1;
}

.profile-info-item img {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(58, 133, 253, 0.1);
  object-fit: contain;
}

.profile-info-item span {
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-info-item strong,
.profile-info-item input {
  min-width: 0;
  overflow: visible;
  color: var(--color-text);
  font-size: clamp(17px, 4.4vw, 23px);
  line-height: 1.14;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.profile-info-item input,
.profile-inline-field input,
.profile-detail-about textarea {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--color-text);
  box-shadow: none;
  font-weight: 900;
}

.profile-detail-card.is-editing .profile-info-item,
.profile-detail-card.is-editing .profile-detail-about {
  border-color: rgba(58, 133, 253, 0.25);
  background:
    radial-gradient(circle at 100% 0%, rgba(58, 133, 253, 0.08), transparent 34%),
    #fff;
}

.profile-info-item input {
  width: 100%;
}

.profile-inline-field {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 100%;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.profile-inline-field input {
  width: min(100%, 360px);
  text-align: center;
}

.profile-inline-field input:focus,
.profile-info-item input:focus,
.profile-detail-about textarea:focus {
  outline: 0;
}

.profile-inline-field.is-name input {
  font-size: clamp(34px, 9.6vw, 54px);
  line-height: 0.94;
}

.profile-inline-field.is-nickname input {
  width: 120px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: #eef3ff;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1;
}

.profile-detail-about {
  margin: 0;
  padding: var(--space-5);
  border: 1px solid rgba(198, 215, 255, 0.82);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(58, 133, 253, 0.06), transparent 36%),
    #fff;
  color: var(--color-muted);
  font-size: clamp(18px, 5vw, 24px);
  line-height: 1.35;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(42, 95, 203, 0.05);
}

.profile-detail-about.is-editing {
  display: grid;
  gap: 10px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-detail-about textarea {
  min-height: 112px;
  color: var(--color-muted);
  font-size: clamp(18px, 5vw, 24px);
  line-height: 1.35;
  text-transform: none;
  resize: vertical;
}

.profile-edit-footer {
  position: sticky;
  bottom: calc(-1 * (var(--space-4) + var(--safe-bottom)));
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-3);
  margin: var(--space-1) calc(-1 * var(--space-4)) calc(-1 * (var(--space-4) + var(--safe-bottom)));
  padding: 14px var(--space-4) calc(14px + var(--safe-bottom));
  border-radius: 24px 24px 0 0;
  background: rgba(248, 251, 255, 0.96);
  backdrop-filter: blur(14px);
}

.profile-edit-footer .button {
  min-height: 52px;
}

.avatar-view-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(84svh - var(--safe-bottom));
  padding: var(--space-8) var(--space-4);
}

.avatar-view-card > img {
  width: min(78vw, 360px);
  height: min(78vw, 360px);
  border: 8px solid #fff;
  border-radius: 50%;
  background: #eef3ff;
  object-fit: cover;
  box-shadow: 0 28px 70px rgba(9, 26, 70, 0.26);
}

.avatar-view-close {
  position: absolute;
  top: 6px;
  left: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef3ff;
}

.avatar-view-close img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.68;
}

.avatar-change-card {
  position: relative;
  display: grid;
  gap: var(--space-6);
  padding-top: var(--space-2);
}

.avatar-sheet-close {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef3ff;
}

.avatar-sheet-close img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.68;
}

.avatar-change-card h2,
.avatar-change-card h3 {
  margin: 0;
  color: var(--color-text);
}

.avatar-change-card h2 {
  text-align: center;
  font-size: clamp(26px, 7vw, 34px);
}

.avatar-change-card h3 {
  font-size: clamp(24px, 7vw, 32px);
}

.avatar-change-preview {
  justify-self: center;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: #eef3ff;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(63, 130, 241, 0.18);
}

.avatar-source-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  max-width: 320px;
  justify-self: center;
  width: 100%;
}

.avatar-source-action {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--color-blue);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.avatar-source-action img {
  width: 74px;
  height: 74px;
  padding: 18px;
  border-radius: 50%;
  background: #f3f7ff;
  object-fit: contain;
}

.avatar-source-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.avatar-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.avatar-preset-grid button {
  aspect-ratio: 1;
  padding: 4px;
  border: 3px solid transparent;
  border-radius: 50%;
  background: transparent;
}

.avatar-preset-grid button.is-active {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(58, 133, 253, 0.14);
}

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

.mini-team-list {
  display: grid;
  gap: var(--space-3);
}

.profile-scroll-row {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 2px 8px;
  margin: 0 calc(-1 * var(--space-2));
  padding-left: var(--space-2);
  padding-right: var(--space-2);
  scrollbar-width: none;
}

.profile-scroll-row::-webkit-scrollbar {
  display: none;
}

.profile-scroll-row .team-card {
  min-width: 292px;
  max-width: 320px;
  flex: 0 0 82%;
}

.profile-game-tile {
  display: grid;
  align-content: space-between;
  gap: var(--space-2);
  min-width: 238px;
  max-width: 260px;
  min-height: 172px;
  flex: 0 0 72%;
  padding: var(--space-4);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(58, 133, 253, 0.14), transparent 34%),
    #fff;
  color: var(--color-text);
  text-align: left;
  box-shadow: 0 12px 28px rgba(42, 95, 203, 0.08);
}

.profile-game-tile span {
  justify-self: start;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(58, 133, 253, 0.12);
  color: var(--color-blue-dark);
  font-size: 12px;
  font-weight: 950;
}

.profile-game-tile strong {
  color: var(--color-text);
  font-size: 19px;
  line-height: 1.08;
}

.profile-game-tile small {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.profile-game-tile b {
  color: var(--color-blue-dark);
  font-size: 15px;
}

.mini-team-list .team-card {
  box-shadow: none;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line-soft);
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row > div {
  min-width: 0;
}

.list-row strong {
  display: block;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.list-row span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
}

.event-card {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-md);
  background: #f9fbff;
  color: var(--color-text);
  text-align: left;
}

.event-card h3 {
  margin-top: var(--space-2);
  font-size: 18px;
}

.event-card > span {
  align-self: flex-start;
  max-width: 112px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.empty-state {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.64);
}

.empty-state strong {
  font-size: 18px;
}

.empty-state p {
  margin: 0;
}

.loading-state {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  padding: var(--space-6);
}

.loading-state span {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(58, 133, 253, 0.22);
  border-top-color: var(--color-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.map-preview {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(58, 133, 253, 0.08) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(0deg, rgba(58, 133, 253, 0.08) 1px, transparent 1px) 0 0 / 38px 38px,
    #f7fbff;
}

.map-preview span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  min-height: 34px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(42, 95, 203, 0.16);
}

.map-preview > strong {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-blue);
  color: #fff;
}

.venue-map-preview {
  background:
    radial-gradient(circle at 20% 30%, rgba(117, 234, 137, 0.18), transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(58, 133, 253, 0.18), transparent 22%),
    linear-gradient(90deg, rgba(58, 133, 253, 0.08) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(0deg, rgba(58, 133, 253, 0.08) 1px, transparent 1px) 0 0 / 38px 38px,
    #f7fbff;
}

.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.player-stat-grid .stat-card:nth-child(5) {
  grid-column: 1 / -1;
}

.progress-achievement-card.is-earned {
  background: #f3f8ff;
}

.profile-history-grid {
  display: grid;
  gap: var(--space-3);
}

.history-column {
  display: grid;
  gap: 10px;
  padding: var(--space-4);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-md);
  background: rgba(248, 251, 255, 0.88);
}

.history-column strong {
  color: var(--color-text);
  font-size: 17px;
}

.history-column span {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.28;
}

.settings-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-md);
  background: #fff;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--color-line-soft);
  background: transparent;
  color: var(--color-text);
  font-weight: 900;
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row b {
  color: var(--color-blue-dark);
  font-size: 24px;
}

.settings-row img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(38%) sepia(79%) saturate(1519%) hue-rotate(207deg) brightness(97%) contrast(91%);
}

.profile-action-list {
  overflow: hidden;
  border: 1px solid rgba(198, 215, 255, 0.72);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(58, 133, 253, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(42, 95, 203, 0.08);
}

.profile-developer-section {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(198, 215, 255, 0.72);
  border-radius: 8px;
  background: #f6f8fc;
}

.profile-developer-section .section-header {
  margin: 0;
}

.profile-developer-section .section-header h2 {
  font-size: 20px;
}

.profile-developer-action {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 11px 12px;
  border: 1px solid #d7e1f1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-text);
  text-align: left;
  box-shadow: none;
}

.profile-developer-action:active {
  background: #eef4ff;
}

.profile-developer-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8f1ff;
  color: var(--color-blue);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.profile-developer-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-developer-copy strong {
  font-size: 14px;
  line-height: 1.25;
}

.profile-developer-copy small {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.profile-action-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 12px 15px;
  border: 0;
  border-bottom: 1px solid rgba(198, 215, 255, 0.56);
  background: transparent;
  color: var(--color-text);
  text-align: left;
}

.profile-action-row:last-child {
  border-bottom: 0;
}

.profile-action-row:active {
  background: rgba(238, 244, 255, 0.74);
}

.profile-action-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef4ff, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(191, 208, 245, 0.62);
}

.profile-action-icon img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(44%) sepia(88%) saturate(1907%) hue-rotate(204deg) brightness(100%) contrast(96%);
}

.profile-action-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-action-copy strong {
  overflow: hidden;
  color: var(--color-text);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-action-copy small {
  overflow: hidden;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 640;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-action-arrow {
  width: 16px;
  height: 16px;
  opacity: 0.48;
  transform: rotate(90deg);
}

.profile-action-row.is-danger .profile-action-icon {
  background: rgba(232, 38, 68, 0.08);
  box-shadow: inset 0 0 0 1px rgba(232, 38, 68, 0.16);
}

.profile-action-row.is-danger .profile-action-icon img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(79%) saturate(3001%) hue-rotate(336deg) brightness(96%) contrast(91%);
}

.profile-action-row.is-danger .profile-action-copy strong {
  color: var(--color-red);
}

.app-settings-sheet {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  min-height: 0;
}

.app-settings-group {
  display: grid;
  gap: 12px;
  padding: var(--space-4);
  border: 1px solid rgba(198, 215, 255, 0.72);
  border-radius: 26px;
  background: #fff;
}

.app-settings-group h3 {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.profile-choice-grid,
.profile-icon-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-choice-grid button,
.profile-icon-choice-grid button {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px;
  border: 1px solid rgba(191, 208, 245, 0.82);
  border-radius: 18px;
  background: #fff;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 760;
}

.profile-icon-choice-grid button {
  min-height: 82px;
}

.profile-icon-choice-grid img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.profile-choice-grid button.is-active,
.profile-icon-choice-grid button.is-active {
  border-color: transparent;
  background: var(--color-blue);
  color: #fff;
}

.bottom-nav {
  position: fixed;
  left: max(8px, calc(env(safe-area-inset-left, 0px) + 8px));
  right: max(8px, calc(env(safe-area-inset-right, 0px) + 8px));
  bottom: calc(8px + var(--safe-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 76px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(30px) saturate(1.35);
  -webkit-backdrop-filter: blur(30px) saturate(1.35);
  box-shadow:
    0 24px 54px rgba(42, 95, 203, 0.22),
    0 8px 20px rgba(9, 26, 70, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(191, 208, 245, 0.36);
  transform: translateZ(0);
  will-change: transform;
  isolation: isolate;
  overflow: visible;
}

.bottom-nav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 1px);
  height: calc(8px + var(--safe-bottom));
  border-radius: 0 0 28px 28px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  pointer-events: none;
  z-index: -1;
}

.bottom-nav button {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 62px;
  border-radius: 25px;
  background: transparent;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 900;
  transition:
    flex 0.24s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.16s ease;
}

.bottom-nav button:active {
  transform: scale(0.97);
}

.bottom-nav button.is-active {
  flex: 1.38 1 0;
  background: var(--color-blue);
  color: #fff;
  box-shadow:
    0 16px 30px rgba(58, 133, 253, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.bottom-nav button span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 0.18s ease;
}

.bottom-nav button span img {
  width: 23px;
  height: 23px;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(37%) sepia(12%) saturate(1305%) hue-rotate(183deg) brightness(92%) contrast(88%);
  opacity: 0.9;
  transition: opacity 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}

.bottom-nav button.is-active span {
  width: 28px;
  height: 28px;
  background: transparent;
  box-shadow: none;
}

.bottom-nav button.is-active span img {
  filter: brightness(0) invert(1);
  opacity: 1;
  transform: scale(1.02);
}

.bottom-nav strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 78px;
  font-size: 11px;
  line-height: 1.08;
  white-space: nowrap;
}

.floating-create-game {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 18px);
  z-index: 64;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-pill);
  background: var(--color-blue);
  color: #fff;
  box-shadow:
    0 16px 34px rgba(58, 133, 253, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateX(-50%);
}

.floating-create-game[hidden] {
  display: none;
}

.floating-create-game span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.floating-create-game strong {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.floating-create-game:active {
  transform: translateX(-50%) scale(0.97);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 26, 70, 0.28);
  opacity: 0;
  transition: opacity 280ms ease;
}

.sheet.is-activity-onboarding-root .sheet-backdrop {
  background: #fff;
}

.sheet.is-open.is-activity-onboarding-root .sheet-backdrop {
  opacity: 1;
}

.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: min(94svh, 860px);
  max-height: calc(100svh - var(--safe-top) - var(--tg-top-offset));
  overflow: hidden;
  padding: 12px var(--space-4) calc(var(--space-4) + var(--safe-bottom));
  border-radius: 30px 30px 0 0;
  background: var(--color-card-soft);
  box-shadow: 0 -18px 46px rgba(9, 26, 70, 0.18);
  touch-action: pan-y;
  transform: translate3d(0, 105%, 0);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.sheet.is-open .sheet-backdrop {
  opacity: 1;
}

.sheet.is-open .sheet-panel {
  transform: translate3d(0, 0, 0);
}

.sheet.is-closing .sheet-backdrop {
  opacity: 0;
}

.sheet.is-closing .sheet-panel {
  transform: translate3d(0, 105%, 0);
}

.sheet.is-dragging .sheet-backdrop,
.sheet.is-dragging .sheet-panel {
  transition: none;
}

.sheet-handle {
  justify-self: center;
  width: 56px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: #d5dded;
}

.sheet-content {
  display: grid;
  gap: var(--space-4);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-5) 0 calc(var(--space-5) + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
}

.sheet-panel.is-filter-sheet .sheet-content {
  overflow: hidden;
  padding-bottom: 0;
}

.sheet-panel.is-notifications-sheet .sheet-content {
  overflow-y: auto;
  padding-bottom: calc(var(--space-4) + var(--safe-bottom));
}

.sheet-panel.is-location-sheet .sheet-content {
  display: grid;
  min-height: 0;
  overflow: hidden;
  padding: var(--space-4) 0 0;
}

.sheet-panel.is-detail-sheet .sheet-content {
  display: grid;
  min-height: 0;
  overflow: hidden;
  padding: var(--space-4) 0 0;
}

.sheet-panel.is-promo-notice-sheet {
  height: auto;
  max-height: min(430px, calc(100svh - var(--safe-top) - var(--tg-top-offset)));
}

.sheet-panel.is-promo-notice-sheet .sheet-content {
  overflow: visible;
  padding: 16px 0 calc(8px + var(--safe-bottom));
}

.promo-unavailable-sheet {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 4px 4px 0;
  text-align: center;
}

.promo-unavailable-sheet > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(58, 133, 253, 0.12);
  color: var(--color-blue);
  font-size: 24px;
  font-weight: 900;
}

.promo-unavailable-sheet h2 {
  max-width: 15ch;
  margin: 0;
  color: var(--color-text);
  font-size: 25px;
  line-height: 1.02;
}

.promo-unavailable-sheet p {
  max-width: 31ch;
  margin: 0 0 4px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.promo-unavailable-sheet .button {
  margin-top: 4px;
}

.sheet-panel.is-game-history-sheet {
  height: min(94svh, 860px);
}

.sheet-panel.is-game-history-sheet .sheet-content {
  padding: 8px 0 calc(var(--space-5) + var(--safe-bottom));
}

.sheet-panel.is-activity-goal-sheet {
  height: min(92svh, 780px);
  padding-bottom: var(--safe-bottom);
}

.sheet-panel.is-activity-goal-sheet .sheet-content {
  padding: 8px 0 12px;
}

.sheet-panel.is-activity-onboarding-sheet {
  position: fixed;
  inset: 0;
  height: auto;
  max-height: none;
  width: 100%;
  padding: max(12px, var(--safe-top)) 0 var(--safe-bottom);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.sheet-panel.is-activity-onboarding-sheet .sheet-handle {
  display: none;
}

.sheet-panel.is-activity-onboarding-sheet .sheet-content {
  display: block;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: #fff;
}

.activity-goal-sheet {
  display: grid;
  gap: 18px;
}

.activity-goal-onboarding {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: calc(100svh - max(12px, var(--safe-top)) - var(--safe-bottom));
  min-height: 0;
  gap: 0;
  overflow: hidden;
  background: #fff;
}

.activity-goal-onboarding-header {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 20px 32px 14px;
  min-width: 0;
}

.activity-goal-onboarding-header > button {
  position: static;
  display: grid;
  align-items: start;
  justify-items: end;
  justify-self: end;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--color-text);
  box-shadow: none;
  font-size: 27px;
  line-height: 1;
}

.activity-goal-onboarding-header > button img {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.activity-goal-onboarding-header h2,
.activity-goal-onboarding-header p {
  margin: 0;
}

.activity-goal-onboarding-header h2 {
  grid-row: 2;
  width: 100%;
  max-width: 100%;
  margin-top: -8px;
  color: #65dc84;
  font-size: clamp(30px, 8vw, 39px);
  font-weight: 850;
  line-height: 1.02;
  white-space: nowrap;
}

.activity-goal-onboarding-header h2 span {
  color: #65dc84;
}

.activity-goal-onboarding-header p {
  grid-row: 3;
  max-width: 28ch;
  color: #202839;
  font-size: 17px;
  font-weight: 560;
  line-height: 1.35;
}

.activity-goal-sheet-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  padding: 4px 0 2px;
  text-align: center;
}

.activity-goal-sheet-header > button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-text);
  font-size: 27px;
  line-height: 1;
}

.activity-goal-sheet-header div {
  grid-column: 2;
  display: grid;
  gap: 2px;
}

.activity-goal-sheet-header span {
  color: #657491;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.activity-goal-sheet-header h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 23px;
  line-height: 1.05;
}

.activity-goal-onboarding-visual {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.activity-goal-onboarding-visual > img {
  width: 80%;
  height: 88%;
  background: #fff;
  filter: brightness(1.025) contrast(1.02);
  object-fit: contain;
  object-position: center;
}

.activity-goal-setup-intro h3,
.activity-goal-setup-intro p {
  margin: 0;
}

.activity-goal-onboarding-steps {
  display: grid;
  gap: 2px;
  padding: 8px 32px 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.activity-goal-onboarding-steps > div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 50px;
  border: 0;
  box-shadow: none;
}

.activity-goal-onboarding-steps > div::before,
.activity-goal-onboarding-steps > div::after {
  display: none;
}

.activity-goal-onboarding-steps b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3a85fd;
  color: #fff;
  font-size: 12px;
}

.activity-goal-onboarding-steps > div:nth-child(2) b {
  background: #ffbd18;
}

.activity-goal-onboarding-steps > div:nth-child(3) b {
  background: var(--color-red);
}

.activity-goal-onboarding-steps span {
  display: grid;
  gap: 3px;
}

.activity-goal-onboarding-steps strong {
  color: var(--color-text);
  font-size: 13px;
}

.activity-goal-onboarding-steps small {
  color: #697791;
  font-size: 10px;
  font-weight: 650;
}

.activity-goal-onboarding-footer {
  display: grid;
  padding: 8px 32px 32px;
  background: transparent;
}

.activity-goal-onboarding-footer .button {
  min-height: 52px;
  border-radius: 8px;
  background: #59d87b;
  box-shadow: none;
}

.activity-goal-setup {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  height: calc(100svh - max(12px, var(--safe-top)) - var(--safe-bottom));
  min-height: 0;
  gap: 14px;
  padding: 20px 32px 32px;
  overflow: hidden;
  background: #fff;
}

.activity-goal-setup-header {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.activity-goal-setup-actions {
  display: grid;
  align-items: center;
  justify-items: end;
  min-width: 0;
}

.activity-goal-setup-actions > button {
  display: grid;
  align-items: start;
  justify-items: end;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
}

.activity-goal-setup-close img {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.activity-goal-setup-header h2 {
  width: 100%;
  max-width: 100%;
  margin: -8px 0 0;
  color: #65dc84;
  font-size: clamp(30px, 8vw, 39px);
  font-weight: 850;
  line-height: 1.02;
  white-space: nowrap;
}

.activity-goal-setup .activity-goal-options {
  min-height: 0;
  align-content: start;
  overflow: visible;
}

.activity-goal-setup-footer {
  display: grid;
  align-self: end;
}

.activity-goal-setup-footer .button {
  min-height: 52px;
  border-radius: 8px;
  background: #59d87b;
  box-shadow: none;
}

.activity-goal-setup-intro {
  display: grid;
  gap: 7px;
}

.activity-goal-setup-intro h3 {
  max-width: 25ch;
  color: var(--color-text);
  font-size: 23px;
  line-height: 1.08;
}

.activity-goal-setup-intro p {
  color: #657491;
  font-size: 12px;
  font-weight: 650;
}

.activity-goal-sheet-summary {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 8px;
  background: #2f76ed;
  color: #fff;
}

.activity-goal-ring.is-large {
  width: 96px;
  height: 96px;
}

.activity-goal-ring.is-large::before {
  inset: 8px;
}

.activity-goal-ring.is-large strong {
  font-size: 25px;
}

.activity-goal-sheet-summary > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.activity-goal-sheet-summary > div > span {
  color: #cfe0ff;
  font-size: 12px;
  font-weight: 800;
}

.activity-goal-sheet-summary h3,
.activity-goal-sheet-summary p {
  margin: 0;
}

.activity-goal-sheet-summary h3 {
  color: #fff;
  font-size: 21px;
  line-height: 1.05;
}

.activity-goal-sheet-summary p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}

.activity-goal-options {
  display: grid;
  gap: 11px;
}

.activity-goal-options > button {
  --goal-option-color: var(--color-yellow);
  --goal-option-soft: rgba(252, 192, 5, 0.14);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 67px;
  padding: 14px 17px;
  border: 1px solid #dce5f3;
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  text-align: left;
}

.activity-goal-options > button > span {
  min-width: 0;
  color: #263142;
  font-size: 16px;
  font-weight: 850;
}

.activity-goal-options > button strong {
  font-size: inherit;
  font-weight: inherit;
}

.activity-goal-options > button small {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--goal-option-soft);
  color: var(--goal-option-color);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
}

.activity-goal-options > button.is-selected {
  border-color: var(--goal-option-color);
  background: var(--goal-option-soft);
  color: var(--goal-option-color);
}

.activity-goal-options > button.is-selected > span,
.activity-goal-options > button.is-selected strong {
  color: var(--goal-option-color);
}

.activity-goal-options > button.is-selected small {
  background: var(--goal-option-color);
  color: #fff;
}

.activity-goal-options > button[data-value="120"] {
  --goal-option-color: var(--color-yellow);
  --goal-option-soft: rgba(252, 192, 5, 0.16);
}

.activity-goal-options > button[data-value="180"] {
  --goal-option-color: var(--color-green);
  --goal-option-soft: rgba(117, 234, 137, 0.18);
}

.activity-goal-options > button[data-value="240"] {
  --goal-option-color: var(--color-blue);
  --goal-option-soft: rgba(58, 131, 253, 0.14);
}

.activity-goal-options > button[data-value="300"] {
  --goal-option-color: var(--color-red);
  --goal-option-soft: rgba(232, 38, 68, 0.13);
}

.activity-goal-active-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.activity-goal-active-stats > span {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  padding: 13px 8px;
  border: 1px solid #dce5f3;
  border-radius: 8px;
  background: #fff;
}

.activity-goal-active-stats strong {
  color: var(--color-text);
  font-size: 20px;
}

.activity-goal-active-stats small {
  color: #657491;
  font-size: 10px;
  font-weight: 750;
}

.activity-goal-source {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 8px;
  background: #eef5ff;
}

.activity-goal-source > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #2f76ed;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.activity-goal-source > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.activity-goal-source strong {
  color: var(--color-text);
  font-size: 13px;
}

.activity-goal-source p {
  margin: 0;
  color: #62718d;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}

.game-history-sheet {
  display: grid;
  gap: 22px;
}

.game-history-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 8px 0 14px;
  background: var(--color-card-soft);
}

.game-history-header > button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 6px 16px rgba(42, 95, 203, 0.1);
  font-size: 22px;
}

.game-history-header div {
  min-width: 0;
}

.game-history-header div > span {
  color: var(--color-blue);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.game-history-header h2 {
  margin: 1px 0 0;
  color: var(--color-text);
  font-size: 27px;
  line-height: 1;
}

.game-history-header > b,
.game-history-section .section-header > span {
  display: grid;
  place-items: center;
  min-width: 27px;
  height: 27px;
  padding-inline: 7px;
  border-radius: var(--radius-pill);
  background: rgba(58, 133, 253, 0.11);
  color: var(--color-blue);
  font-size: 12px;
  font-weight: 850;
}

.game-history-section,
.game-history-list {
  display: grid;
  gap: 10px;
}

.game-history-section .section-header h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.1;
}

.game-history-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(184, 204, 242, 0.72);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  text-align: left;
  box-shadow: 0 8px 20px rgba(42, 95, 203, 0.06);
}

.game-history-row.is-past {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.game-history-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(58, 133, 253, 0.11);
}

.game-history-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.game-history-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.game-history-copy small,
.game-history-copy strong,
.game-history-copy em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-history-copy small {
  color: var(--color-blue);
  font-size: 10px;
  font-weight: 800;
}

.game-history-copy strong {
  font-size: 15px;
  line-height: 1.1;
}

.game-history-copy em {
  color: var(--color-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.game-history-side {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.game-history-side b {
  color: var(--color-text);
  font-size: 11px;
  white-space: nowrap;
}

.game-history-side i {
  color: var(--color-blue);
  font-size: 18px;
  font-style: normal;
}

.game-history-complete {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(76, 204, 113, 0.14);
  color: #219448;
  font-size: 15px;
  font-weight: 900;
}

.sheet-heading {
  display: grid;
  gap: var(--space-2);
}

.filter-sheet {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--space-3);
  min-height: 0;
  height: 100%;
}

.filter-sheet-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 2px 0 var(--space-3);
  background: #f8fbff;
  text-align: center;
}

.filter-sheet-header span {
  color: var(--color-blue);
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
}

.filter-sheet-header h2 {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(32px, 8vw, 48px);
  line-height: 0.98;
}

.filter-sheet-header p {
  max-width: 92%;
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.sheet-standard-header {
  margin-bottom: var(--space-2);
}

.sort-sheet .filter-sheet-header h2 {
  font-size: clamp(28px, 7vw, 38px);
}

.sort-sheet .filter-sheet-header {
  padding-bottom: var(--space-4);
}

.sort-sheet .filter-sheet-header span {
  font-size: 20px;
}

.filter-sheet-section {
  display: grid;
  gap: var(--space-2);
}

.filter-sheet-body {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 0 var(--space-3);
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-sheet-body::-webkit-scrollbar {
  display: none;
}

.filter-sheet-section h3 {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.filter-section-title-row strong {
  display: none;
}

.filter-control-group {
  display: grid;
  gap: 8px;
}

.filter-block-title {
  margin: 0 0 0 2px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 820;
  text-transform: uppercase;
}

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

.sport-filter-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--color-line-soft);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(58, 133, 253, 0.1), transparent 38%),
    #fff;
  color: var(--color-text);
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sport-filter-card img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef3ff;
  box-shadow: 0 8px 18px rgba(58, 133, 253, 0.12);
}

.sport-filter-card span {
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sport-filter-card.is-active {
  border-color: transparent;
  background: var(--color-blue);
  color: #fff;
  transform: translateY(-1px);
}

.sport-filter-card.is-active img {
  background: rgba(255, 255, 255, 0.22);
}

.price-range-section {
  padding: var(--space-4);
  border: 1px solid var(--color-line-soft);
  border-radius: 24px;
  background: #fff;
  box-shadow: none;
}

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

.price-input-row label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(191, 208, 245, 0.75);
  border-radius: 16px;
  background: #fff;
}

.price-input-row span,
.price-input-row b {
  color: var(--color-text);
  font-size: 18px;
  font-weight: 900;
}

.price-input-row input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 750;
  outline: 0;
}

.filter-option-list {
  overflow: hidden;
  border: 1px solid var(--color-line-soft);
  border-radius: 24px;
  background: #fff;
}

.filter-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 13px var(--space-4);
  border: 0;
  border-bottom: 1px solid var(--color-line-soft);
  background: transparent;
  color: var(--color-text);
  text-align: left;
  transition: background 0.16s ease, transform 0.16s ease;
}

.filter-option:last-child {
  border-bottom: 0;
}

.filter-option span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.filter-option strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 820;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-option small {
  overflow: hidden;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-option i {
  width: 22px;
  height: 22px;
  border: 2px solid #c8d6f4;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 5px #fff;
}

.filter-option.is-active {
  background: #f0f6ff;
}

.filter-option.is-active i {
  border-color: var(--color-blue);
  background: var(--color-blue);
}

.distance-range-section {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

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

.distance-choice-button {
  min-height: 44px;
  border: 1px solid rgba(191, 208, 245, 0.82);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 900;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.distance-choice-button.is-active {
  border-color: transparent;
  background: var(--color-blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(58, 133, 253, 0.2);
  transform: translateY(-1px);
}

.type-segment {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  min-height: 58px;
  padding: 5px;
  border: 0;
  border-radius: var(--radius-pill);
  background: #eef4ff;
}

.type-segment::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 3);
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: 0 8px 18px rgba(58, 88, 146, 0.1);
  transition: transform 280ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 220ms ease;
}

.type-segment[data-active="indoor"]::before {
  transform: translateX(100%);
}

.type-segment[data-active="open"]::before {
  transform: translateX(200%);
}

.type-segment button {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 820;
  transition: color 180ms ease, transform 180ms ease;
}

.type-segment button.is-active {
  color: var(--color-blue-dark);
  transform: scale(1.02);
}

.filter-sheet-footer {
  --filter-footer-y: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: -8px calc(-1 * var(--space-4)) 0;
  padding: var(--filter-footer-y) var(--space-4) calc(var(--filter-footer-y) + var(--safe-bottom));
  border-top: 0;
  border-radius: 18px 18px 0 0;
  background: rgba(248, 251, 255, 0.96);
  box-shadow: 0 -14px 34px rgba(58, 88, 146, 0.12);
  align-items: center;
}

.filter-sheet-footer .button {
  min-height: 50px;
}

.filter-sheet-footer.is-single {
  grid-template-columns: 1fr;
  box-shadow: none;
}

.filter-sheet-footer.is-single .button-primary {
  box-shadow: none;
}

.filter-reset-button {
  border-color: var(--color-red);
  background: rgba(232, 38, 68, 0.07);
  color: var(--color-red);
  box-shadow: none;
}

.filter-reset-button.is-active {
  background: rgba(232, 38, 68, 0.1);
  box-shadow: 0 10px 22px rgba(232, 38, 68, 0.08);
}

.filter-apply-button {
  border: 1px solid var(--color-blue);
  background: rgba(58, 133, 253, 0.08);
  color: var(--color-blue);
  box-shadow: none;
}

.filter-apply-button.is-active {
  border-color: transparent;
  background: var(--color-blue);
  color: #fff;
}

.filter-apply-button:disabled {
  opacity: 1;
  cursor: default;
}

.detail-sheet {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
  height: 100%;
}

.detail-scroll-body {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  min-height: 0;
  overflow-y: auto;
  padding-bottom: var(--space-4);
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.detail-scroll-body::-webkit-scrollbar {
  display: none;
}

.detail-photo-slider {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  margin-top: -2px;
  height: clamp(188px, 48vw, 270px);
  border: 0;
  border-radius: 28px;
  background: linear-gradient(135deg, #edf4ff, #ffffff);
  box-shadow: none;
}

.detail-photo-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.detail-photo-track::-webkit-scrollbar {
  display: none;
}

.detail-photo-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  background: #dfeafd;
}

.detail-photo-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 26, 70, 0.04), rgba(9, 26, 70, 0));
  pointer-events: none;
}

.detail-photo-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.detail-photo-dots {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  display: flex;
  gap: 5px;
  padding: 6px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
}

.detail-photo-dots span {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(58, 133, 253, 0.32);
}

.detail-photo-dots span.is-active {
  width: 16px;
  background: var(--color-blue);
}

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

.detail-grid .stat-card {
  padding: 13px;
  border-color: rgba(190, 210, 252, 0.72);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(58, 133, 253, 0.08), transparent 46%),
    #fff;
  box-shadow: 0 10px 24px rgba(42, 95, 203, 0.045);
}

.detail-grid .stat-card span {
  color: #63728f;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0;
}

.detail-grid .stat-card strong {
  margin-top: 7px;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.1;
}

.detail-copy {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  font-weight: 620;
  line-height: 1.45;
}

.detail-sheet .section-card.flat {
  gap: 12px;
  padding: 15px;
  border-color: rgba(190, 210, 252, 0.72);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(42, 95, 203, 0.055);
}

.detail-sheet .section-header.compact h3 {
  font-size: 17px;
  font-weight: 780;
}

.detail-sheet .section-header.compact .eyebrow {
  font-weight: 760;
}

.player-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.player-chip-grid span,
.schedule-grid span {
  min-height: 36px;
  padding: 9px 11px;
  border-radius: var(--radius-pill);
  background: #eef3ff;
  color: var(--color-blue-dark);
  font-size: 13px;
  font-weight: 760;
}

.game-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.game-social-grid button {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: var(--space-3);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff, #f4f8ff);
  color: var(--color-text);
  text-align: left;
}

.game-social-grid strong {
  font-size: 16px;
  font-weight: 780;
}

.game-social-grid span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 680;
}

.detail-sheet .card-actions {
  position: relative;
  z-index: 3;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 12px;
  margin: 0 calc(-1 * var(--space-4));
  padding: 10px var(--space-4) calc(12px + var(--safe-bottom));
  border-radius: 22px 22px 0 0;
  background: #f8fbff;
  box-shadow: none;
  backdrop-filter: none;
  isolation: isolate;
}

.detail-sheet .card-actions .button {
  min-height: 54px;
  font-size: 17px;
  font-weight: 820;
  box-shadow: none;
}

.detail-favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 45, 85, 0.16);
  border-radius: 50%;
  background: rgba(255, 45, 85, 0.08);
  box-shadow: none;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.detail-favorite-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(35%) sepia(95%) saturate(3685%) hue-rotate(330deg) brightness(103%) contrast(104%);
  transition: filter 180ms ease, transform 180ms ease;
}

.detail-favorite-button.is-active {
  border-color: transparent;
  background: #ff2d55;
  box-shadow: none;
}

.detail-favorite-button.is-active img {
  filter: brightness(0) invert(1);
}

.detail-favorite-button.is-bouncing {
  animation: favorite-bounce 420ms cubic-bezier(0.2, 1.4, 0.34, 1);
}

@keyframes favorite-bounce {
  0% { transform: translateY(0) scale(1); }
  38% { transform: translateY(-7px) scale(1.08); }
  68% { transform: translateY(1px) scale(0.98); }
  100% { transform: translateY(0) scale(1); }
}

.schedule-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.sheet-success {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-7) var(--space-4);
  text-align: center;
}

.sheet-success strong {
  font-size: 26px;
}

.sheet-success p {
  margin: 0;
  color: var(--color-muted);
  font-weight: 600;
}

.toast {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 24px);
  z-index: 100;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-text);
  color: #fff;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(9, 26, 70, 0.24);
}

.notifications-sheet {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  min-height: 0;
}

.location-sheet {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  align-content: start;
  gap: 12px;
  min-height: 0;
  height: 100%;
}

.location-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(184, 207, 252, 0.9);
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
}

.location-search img {
  width: 22px;
  height: 22px;
  opacity: 0.72;
}

.location-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 700;
  outline: 0;
}

.location-letter-rail {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 0 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  align-items: center;
}

.location-letter-rail::-webkit-scrollbar {
  display: none;
}

.location-letter-rail button {
  flex: 0 0 auto;
  min-width: 34px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(191, 208, 245, 0.84);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 760;
  appearance: none;
  -webkit-appearance: none;
  outline: 0;
  box-shadow: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.location-letter-rail button:focus,
.location-letter-rail button:focus-visible {
  outline: 0;
  box-shadow: none;
}

.location-letter-rail button.is-active {
  border-color: transparent;
  background: var(--color-blue);
  color: #fff;
  transform: none;
}

.location-city-list {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: calc(var(--space-4) + var(--safe-bottom));
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.location-city-list::-webkit-scrollbar {
  display: none;
}

.location-city-group {
  display: grid;
  gap: 8px;
}

.location-city-group h3 {
  margin: 0 0 0 4px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.location-city-group.is-featured {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.location-city-group.is-featured h3 {
  color: var(--color-blue);
}

.location-option-list {
  display: grid;
  gap: 7px;
}

.location-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid rgba(198, 215, 255, 0.72);
  border-radius: 18px;
  background: #fff;
  color: var(--color-text);
  text-align: left;
  box-shadow: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.location-option span {
  font-size: 15px;
  font-weight: 700;
}

.location-option i {
  width: 20px;
  height: 20px;
  border: 2px solid #c8d6f4;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 5px #fff;
}

.location-option.is-active {
  border-color: rgba(58, 133, 253, 0.36);
  background: #eef4ff;
}

.location-option.is-active i {
  border-color: var(--color-blue);
  background: var(--color-blue);
}

.location-empty {
  margin: var(--space-5) 0;
  color: var(--color-muted);
  text-align: center;
  font-weight: 720;
}

.location-confirm-footer {
  margin: 0 calc(-1 * var(--space-4));
  padding: 10px var(--space-4) calc(12px + var(--safe-bottom));
  border-radius: 22px 22px 0 0;
  background: #f8fbff;
}

.location-confirm-footer[hidden] {
  display: none;
}

.location-confirm-footer .button {
  min-height: 52px;
  box-shadow: none;
}

.notification-summary-card {
  display: grid;
  gap: 8px;
  padding: var(--space-4);
  border: 1px solid rgba(198, 215, 255, 0.76);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(117, 234, 137, 0.22), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(58, 133, 253, 0.16), transparent 38%),
    #fff;
  box-shadow: 0 14px 32px rgba(42, 95, 203, 0.08);
}

.notification-summary-card span {
  color: var(--color-blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.notification-summary-card strong {
  color: var(--color-text);
  font-size: 22px;
  line-height: 1.05;
}

.notification-summary-card p {
  margin: 0;
  color: var(--color-muted);
  font-weight: 700;
  line-height: 1.35;
}

.notification-list {
  display: grid;
  gap: var(--space-3);
  min-height: 0;
}

.notification-card {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: var(--space-4);
  border: 1px solid rgba(198, 215, 255, 0.78);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(58, 133, 253, 0.08), transparent 34%),
    #fff;
  box-shadow:
    0 12px 28px rgba(42, 95, 203, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.notification-card::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 5px;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  background: var(--color-blue);
}

.notification-card:nth-child(2n)::before {
  background: var(--color-green);
}

.notification-card:nth-child(3n)::before {
  background: var(--color-red);
}

.notification-card.is-unread {
  border-color: rgba(58, 133, 253, 0.38);
  box-shadow: 0 14px 32px rgba(58, 133, 253, 0.12);
}

.notification-card div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

.notification-card span {
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: #eef4ff;
  color: var(--color-blue);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.notification-card small {
  color: var(--color-muted);
  font-weight: 850;
}

.notification-card strong {
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.2;
}

.notification-card p {
  margin: 0;
  color: var(--color-muted);
  font-weight: 650;
  line-height: 1.35;
}

.profile-service-sheet {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  min-height: 0;
}

.service-hero-card {
  display: grid;
  gap: 8px;
  padding: var(--space-4);
  border: 1px solid rgba(198, 215, 255, 0.76);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(58, 133, 253, 0.14), transparent 40%),
    #fff;
  box-shadow: 0 14px 32px rgba(42, 95, 203, 0.075);
}

.service-hero-card span {
  justify-self: start;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: #eef4ff;
  color: var(--color-blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-hero-card strong {
  color: var(--color-text);
  font-size: 22px;
  line-height: 1.08;
}

.service-hero-card p {
  margin: 0;
  color: var(--color-muted);
  font-weight: 650;
  line-height: 1.35;
}

.service-option-list {
  overflow: hidden;
  border: 1px solid rgba(198, 215, 255, 0.72);
  border-radius: 26px;
  background: #fff;
}

.service-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 68px;
  padding: 12px 15px;
  border: 0;
  border-bottom: 1px solid rgba(198, 215, 255, 0.58);
  background: transparent;
  color: var(--color-text);
  text-align: left;
}

.service-option-row:last-child {
  border-bottom: 0;
}

.service-option-row.is-static {
  cursor: default;
}

.service-option-row span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.service-option-row strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-option-row small {
  overflow: hidden;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 640;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-option-row b {
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  background: #eef4ff;
  color: var(--color-blue);
  font-size: 12px;
  font-weight: 800;
}

/* Typography tuning: keep hierarchy clear without making every control extra-bold. */
:where(
  .search-bar input,
  .filter-pill,
  .meta-pill,
  .result-label,
  .view-toggle button,
  .bottom-nav button,
  .filter-option small,
  .notification-card small,
  .card-meta-row,
  .card-fill,
  .profile-info-item span
) {
  font-weight: 700;
}

:where(
  .filter-option strong,
  .sport-filter-card span,
  .distance-choice-button,
  .type-segment button,
  .price-input-row input,
  .profile-info-item strong,
  .profile-info-item input,
  .card-content h3,
  .notification-card strong,
  .location-option span
) {
  font-weight: 760;
}

:where(
  .button,
  .section-header h2,
  .section-header h3,
  .filter-sheet-section h3,
  .card-price,
  .bottom-nav strong,
  .floating-create-game strong
) {
  font-weight: 800;
}

:where(
  .profile-detail-heading h2,
  .filter-sheet-header span,
  .sheet-standard-header h2
) {
  font-weight: 850;
}

@media (max-width: 360px) {
  .mobile-app {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  .home-user-games-track {
    margin-inline: calc(var(--space-3) * -1);
    padding-inline: var(--space-3);
    scroll-padding-inline: var(--space-3);
  }

  .profile-head {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: var(--space-3);
    padding-right: 0;
  }

  .profile-head img {
    width: 76px;
    height: 76px;
  }

  .profile-head h2 {
    font-size: clamp(22px, 6.8vw, 25px);
  }

  .profile-detail-avatar-row {
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
    gap: var(--space-2);
  }

  .profile-detail-avatar,
  .profile-detail-avatar-button {
    width: 96px;
    height: 96px;
  }

  .profile-detail-action {
    width: 48px;
    height: 48px;
  }

  .profile-detail-action img {
    width: 20px;
    height: 20px;
  }

  .avatar-preset-grid {
    gap: var(--space-3);
  }

  .stats-grid,
  .card-actions,
  .form-pair,
  .home-main-actions,
  .profile-info-grid,
  .progress-period-grid {
    grid-template-columns: 1fr;
  }

  .profile-info-item.wide {
    grid-column: auto;
  }

  .detail-sheet .card-actions {
    grid-template-columns: minmax(0, 1fr) 54px;
  }

  .home-game-panel {
    grid-template-columns: 66px minmax(0, 1fr) auto;
  }

  .home-game-panel img {
    width: 66px;
    height: 66px;
  }

  .search-row:not(.has-tools) {
    grid-template-columns: 1fr;
  }

  .search-row:not(.has-tools) .search-action {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  .app-screen.is-active,
  .catalog-screen > .map-preview,
  .catalog-screen > .list-stack {
    animation: none;
  }

  .view-toggle-indicator,
  .view-toggle button {
    transition: none;
  }
}

@media (min-width: 540px) {
  .app-shell {
    max-width: 430px;
    margin: 0 auto;
    box-shadow: 0 30px 80px rgba(9, 26, 70, 0.22);
  }

  .app-header {
    left: 50%;
    right: auto;
    width: 430px;
    transform: translateX(-50%);
  }

  .bottom-nav,
  .sheet-panel,
  .toast {
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
  }

  .bottom-nav {
    left: 50%;
    right: auto;
    width: min(414px, calc(100vw - 16px));
    transform: translateX(-50%) translateZ(0);
  }
}
