:root {
  --sneey-navy: #17283b;
  --sneey-navy-2: #0b1725;
  --sneey-blue: #18bce8;
  --sneey-blue-2: #087eae;
  --sneey-red: #ff4540;
  --sneey-red-2: #d52e35;
  --sneey-white: #ffffff;
  --sneey-ice: #eef7ff;
  --sneey-ink: #17283b;
  --sneey-muted: #5f7286;
  --sneey-line: rgba(23, 40, 59, 0.14);
  --sneey-shadow: 0 14px 36px rgba(23, 40, 59, 0.14);
  --sneey-radius: 22px;
}

.startup-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  color: var(--sneey-navy);
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.72) 50%, transparent calc(50% + 1px)),
    linear-gradient(180deg, #fbfdff 0%, #eaf6ff 100%);
  isolation: isolate;
  animation: sneey-splash-failsafe 420ms cubic-bezier(0.4, 0, 0.2, 1) 2200ms forwards;
}

.startup-splash::before,
.startup-splash::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(68vmax, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.18;
  animation: sneey-splash-orbit 1200ms ease-out both;
}

.startup-splash::before {
  inset: -34vmax auto auto -28vmax;
  background: radial-gradient(circle, var(--sneey-red) 0 36%, rgba(255, 69, 64, 0) 72%);
}

.startup-splash::after {
  inset: auto -30vmax -38vmax auto;
  background: radial-gradient(circle, var(--sneey-blue) 0 36%, rgba(24, 188, 232, 0) 72%);
  animation-direction: reverse;
}

.startup-splash__glow {
  position: absolute;
  z-index: -1;
  width: clamp(180px, 34vw, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.1;
}

.startup-splash__glow--red {
  inset: auto auto 7% -10%;
  background: var(--sneey-red);
}

.startup-splash__glow--blue {
  inset: 5% -11% auto auto;
  background: var(--sneey-blue);
}

.startup-splash__stage {
  width: min(100%, 450px);
  display: grid;
  justify-items: center;
  padding: clamp(32px, 6vw, 46px) clamp(24px, 6vw, 42px) clamp(28px, 5vw, 38px);
  border: 1px solid rgba(23, 40, 59, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(23, 40, 59, 0.11);
  animation: sneey-splash-stage-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.startup-splash__eyebrow {
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--sneey-muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.34em;
  line-height: 1;
}

.startup-splash__eyebrow::before,
.startup-splash__eyebrow::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.startup-splash__eyebrow::before { background: var(--sneey-red); }
.startup-splash__eyebrow::after { background: var(--sneey-blue); }

.startup-splash__brand {
  max-width: 100%;
  color: #26313c;
  font-size: clamp(31px, 8vw, 46px);
  font-weight: 1000;
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-align: center;
  white-space: nowrap;
  animation: sneey-splash-brand-in 560ms cubic-bezier(0.16, 1, 0.3, 1) 60ms both;
}

.startup-splash__lines {
  width: min(100%, 330px);
  height: 6px;
  margin-top: 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.startup-splash__lines i,
.startup-splash__lines b {
  display: block;
  height: 6px;
  border-radius: 999px;
  transform: scaleX(0);
  animation: sneey-splash-line-in 440ms cubic-bezier(0.16, 1, 0.3, 1) 240ms forwards;
}

.startup-splash__lines i {
  background: var(--sneey-red);
  transform-origin: right center;
}

.startup-splash__lines b {
  background: var(--sneey-blue);
  transform-origin: left center;
}

.startup-splash__status {
  margin: 22px 0 13px;
  color: var(--sneey-muted);
  font-size: clamp(13px, 3.5vw, 15px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  animation: sneey-splash-copy-in 320ms ease-out 350ms forwards;
}

.startup-splash__progress {
  width: min(48%, 168px);
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 40, 59, 0.09);
}

.startup-splash__progress span {
  width: 46%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sneey-red), var(--sneey-blue));
  animation: sneey-splash-progress 760ms cubic-bezier(0.65, 0, 0.35, 1) 180ms infinite alternate;
}

.startup-splash.is-leaving {
  pointer-events: none;
  animation: sneey-splash-leave 440ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.startup-splash.is-leaving .startup-splash__stage {
  animation: sneey-splash-stage-out 420ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sneey-splash-stage-in {
  from { opacity: 0; transform: translateY(16px) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sneey-splash-brand-in {
  from { opacity: 0; transform: translateY(8px); letter-spacing: 0.01em; }
  to { opacity: 1; transform: translateY(0); letter-spacing: -0.035em; }
}

@keyframes sneey-splash-line-in {
  to { transform: scaleX(1); }
}

@keyframes sneey-splash-copy-in {
  to { opacity: 1; }
}

@keyframes sneey-splash-progress {
  from { transform: translateX(-8%); }
  to { transform: translateX(126%); }
}

@keyframes sneey-splash-orbit {
  from { transform: scale(0.86); opacity: 0; }
  to { transform: scale(1); opacity: 0.18; }
}

@keyframes sneey-splash-stage-out {
  to { opacity: 0; transform: translateY(-8px) scale(0.985); }
}

@keyframes sneey-splash-leave {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@keyframes sneey-splash-failsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (max-width: 520px) {
  .startup-splash { padding-inline: 18px; }
  .startup-splash__stage { border-radius: 25px; }
  .startup-splash__brand { letter-spacing: -0.045em; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .startup-splash__stage { width: min(72vw, 440px); padding-block: 22px; }
  .startup-splash__eyebrow { margin-bottom: 10px; }
  .startup-splash__status { margin-block: 14px 10px; }
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--sneey-ice);
  color: var(--sneey-ink);
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 4px solid rgba(24, 188, 232, 0.42) !important;
  outline-offset: 3px;
}

body:not(.playing) {
  padding-bottom: 0 !important;
  background: linear-gradient(180deg, #ffffff 0, #f4faff 9rem, #edf6fd 100%);
}

body:not(.playing) .game-header {
  position: sticky !important;
  inset-block-start: 0;
  z-index: 50;
  width: 100%;
  min-height: 86px !important;
  height: auto !important;
  padding: 14px clamp(16px, 4vw, 52px) !important;
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) 56px !important;
  align-items: center !important;
  gap: 14px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(23, 40, 59, 0.1) !important;
  box-shadow: 0 8px 30px rgba(23, 40, 59, 0.07) !important;
  backdrop-filter: blur(18px);
}

body:not(.playing) .header-btn {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  border: 0 !important;
  border-radius: 17px !important;
  background: var(--sneey-navy) !important;
  color: #fff !important;
  box-shadow: 0 8px 16px rgba(23, 40, 59, 0.18) !important;
  font-size: 23px !important;
}

body:not(.playing) .header-btn:active {
  transform: translateY(2px) scale(0.98);
}

body:not(.playing) .header-btn.flag {
  font-size: 0 !important;
  position: relative;
}

body:not(.playing) .header-btn.flag::after {
  content: attr(data-short-label);
  font-size: 13px !important;
  font-weight: 950;
  letter-spacing: 0.05em;
}

body:not(.playing) .logo {
  width: min(100%, 420px) !important;
  min-height: 44px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  display: grid !important;
  place-items: center !important;
  text-decoration: none !important;
}

body:not(.playing) .logo-main {
  max-width: 100%;
  overflow: hidden;
  color: #26313c !important;
  font-size: clamp(28px, 3.4vw, 44px) !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  white-space: nowrap;
}

body:not(.playing) .logo-lines {
  width: min(100%, 360px) !important;
  height: 6px !important;
  margin-top: 8px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

body:not(.playing) .logo-lines i,
body:not(.playing) .logo-lines b {
  display: block !important;
  height: 6px !important;
  border-radius: 999px !important;
}

body:not(.playing) .logo-lines i { background: var(--sneey-red) !important; }
body:not(.playing) .logo-lines b { background: var(--sneey-blue) !important; }
body:not(.playing) .logo-tag { display: none !important; }

body:not(.playing) .app-screen {
  width: min(944px, 100%) !important;
  margin: 0 auto !important;
  padding: 24px clamp(14px, 3vw, 34px) 0 !important;
  min-height: auto !important;
}

.welcome-panel {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 128px;
  align-items: center;
  gap: clamp(12px, 2.4vw, 26px);
  padding: clamp(22px, 3.4vw, 32px);
  border: 1px solid rgba(23, 40, 59, 0.1);
  border-radius: 30px;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 78%, #f8fdff 100%);
  box-shadow: 0 12px 34px rgba(23, 40, 59, 0.08);
  isolation: isolate;
}

.welcome-panel::after {
  display: none;
}

.welcome-panel__star {
  display: grid;
  place-items: center;
  color: var(--sneey-red);
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1;
  transform: rotate(-8deg);
  filter: drop-shadow(0 7px 12px rgba(213, 46, 53, 0.18));
}

.welcome-panel__copy {
  min-width: 0;
}

.welcome-panel h1 {
  margin: 0;
  color: var(--sneey-navy-2);
  font-size: clamp(32px, 4.7vw, 52px);
  font-weight: 1000;
  letter-spacing: -0.025em;
  word-spacing: 0.08em;
  line-height: 1;
  text-wrap: nowrap;
  white-space: nowrap;
}

.welcome-panel p {
  max-width: 660px;
  margin: 12px 0 0;
  color: var(--sneey-muted);
  font-size: clamp(14px, 1.9vw, 18px);
  font-weight: 750;
  line-height: 1.45;
  text-wrap: balance;
}

.welcome-panel__gamepad {
  position: relative;
  width: 116px;
  height: 74px;
  justify-self: end;
  border: 7px solid rgba(8, 126, 174, 0.42);
  border-radius: 34px 34px 42px 42px;
  transform: rotate(10deg);
}

.welcome-panel__gamepad::before {
  content: "+";
  position: absolute;
  inset: 5px auto auto 15px;
  color: rgba(8, 126, 174, 0.55);
  font-size: 37px;
  font-weight: 1000;
  line-height: 1;
}

.welcome-panel__gamepad::after {
  content: "•••";
  position: absolute;
  inset: 15px 10px auto auto;
  width: 35px;
  color: rgba(8, 126, 174, 0.55);
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: -2px;
  line-height: 0.5;
  overflow-wrap: anywhere;
  transform: rotate(-28deg);
}

.welcome-panel__spark {
  position: absolute;
  inset: 30% 21% auto auto;
  width: 70px;
  height: 48px;
  color: rgba(93, 177, 222, 0.72);
  pointer-events: none;
}

.welcome-panel__spark i,
.welcome-panel__spark b,
.welcome-panel__spark em {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.welcome-panel__spark::before,
.welcome-panel__spark::after {
  content: "";
  position: absolute;
  display: block;
  border-radius: 999px;
}

.welcome-panel__spark::before {
  inset: 37px auto auto 43px;
  width: 8px;
  height: 8px;
  background: currentColor;
}

.welcome-panel__spark::after {
  inset: 67px auto auto 32px;
  width: 16px;
  height: 16px;
  border: 4px solid currentColor;
}

.welcome-panel__spark i {
  inset: 0 auto auto 2px;
  width: 8px;
  height: 26px;
  transform: rotate(25deg);
}

.welcome-panel__spark b {
  inset: 25px auto auto 20px;
  width: 8px;
  height: 19px;
  transform: rotate(55deg);
}

.welcome-panel__spark em {
  inset: 17px 1px auto auto;
  width: 9px;
  height: 9px;
}

.welcome-panel__mini-star {
  position: absolute;
  inset: 17px 25px auto auto;
  color: rgba(93, 177, 222, 0.72);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(10deg);
  pointer-events: none;
}

.library-controls {
  position: relative;
  z-index: 10;
  margin: 12px 0 12px;
  padding: 8px;
  border: 1px solid rgba(23, 40, 59, 0.09);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 40, 59, 0.08);
}

.game-filters {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(23, 40, 59, 0.1);
  border-radius: 20px;
  background: #f7fbff;
}

.game-filters .filter-chip {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  font-size: clamp(15px, 2.2vw, 19px);
}

.game-filters .filter-chip::before {
  margin-inline-end: 8px;
  color: var(--sneey-blue-2);
  font-size: 1.22em;
}

.game-filters .filter-chip[data-filter="all"]::before { content: "★"; }
.game-filters .filter-chip[data-filter="favorite"]::before { content: "♡"; }
.game-filters .filter-chip[data-filter="favorite"].active::before { content: "♥"; }

.game-filters .filter-chip.active {
  color: #fff;
  background: linear-gradient(110deg, var(--sneey-red-2), var(--sneey-red));
  box-shadow: 0 10px 22px rgba(213, 46, 53, 0.22);
}

.game-filters .filter-chip[data-filter="favorite"].active {
  background: linear-gradient(110deg, var(--sneey-blue-2), var(--sneey-blue));
  box-shadow: 0 10px 22px rgba(8, 126, 174, 0.22);
}

.game-filters .filter-chip.active::before { color: #fff; }

.library-more {
  margin-top: 7px;
}

.library-more summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 14px;
  color: var(--sneey-blue-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.library-more summary::-webkit-details-marker { display: none; }
.library-more summary::after { content: "+"; font-size: 18px; line-height: 1; }
.library-more[open] summary::after { content: "−"; }

.library-more__content {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: 10px;
  padding: 7px 2px 2px;
}

.game-search {
  min-width: 0;
  height: 48px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  border: 2px solid rgba(23, 40, 59, 0.12);
  border-radius: 15px;
  background: #f7fbff;
}

.game-search span {
  display: grid;
  place-items: center;
  color: var(--sneey-blue-2);
  font-size: 25px;
  font-weight: 950;
}

.game-search input {
  min-width: 0;
  width: 100%;
  height: 44px;
  padding: 0 12px 0 0;
  border: 0;
  outline: 0;
  color: var(--sneey-ink);
  background: transparent;
  font-size: 15px;
  font-weight: 750;
}

.game-filter-categories {
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.game-filter-categories::-webkit-scrollbar { display: none; }

.filter-chip {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(23, 40, 59, 0.12);
  border-radius: 14px;
  color: var(--sneey-ink);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.filter-chip.active {
  border-color: var(--sneey-blue-2);
  color: #fff;
  background: var(--sneey-blue-2);
  box-shadow: 0 8px 18px rgba(8, 126, 174, 0.2);
}

body:not(.playing) .games-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 24px !important;
}

body:not(.playing) .game-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(12px, 2.2vw, 22px) !important;
}

body:not(.playing) .game-card {
  position: relative;
  min-width: 0;
  --card-accent: var(--sneey-blue-2);
  --card-accent-dark: #075d84;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.playing) .game-card.hockey { --card-accent: #ef3e3b; --card-accent-dark: #cc292e; }
body:not(.playing) .game-card.knife { --card-accent: #127dc3; --card-accent-dark: #075c9d; }
body:not(.playing) .game-card.memory { --card-accent: #7149a3; --card-accent-dark: #523378; }
body:not(.playing) .game-card.connect { --card-accent: #1253a5; --card-accent-dark: #0b3978; }
body:not(.playing) .game-card.ttt { --card-accent: #0d94a6; --card-accent-dark: #086c79; }

body:not(.playing) .card-play {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  aspect-ratio: 1.04 / 1 !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 4px solid #fff !important;
  border-radius: var(--sneey-radius) !important;
  background: var(--sneey-navy-2) !important;
  box-shadow: 0 0 0 1px rgba(23, 40, 59, 0.14), 0 14px 28px rgba(23, 40, 59, 0.14) !important;
  isolation: isolate;
}

body:not(.playing) .card-play::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 23, 37, 0.03) 0 62%, rgba(11, 23, 37, 0.18) 76%, rgba(11, 23, 37, 0.35) 100%);
}

body:not(.playing) .card-play::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(23, 40, 59, 0.14);
  border-radius: calc(var(--sneey-radius) - 4px);
}

body:not(.playing) .card-play:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(23, 40, 59, 0.2) !important;
}

body:not(.playing) .card-art,
body:not(.playing) .card-art picture,
body:not(.playing) .card-art img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

body:not(.playing) .card-art img {
  object-fit: cover !important;
  filter: saturate(1.04) contrast(1.02) !important;
}

body:not(.playing) .card-play h2 {
  position: absolute !important;
  inset: auto 0 0 0 !important;
  z-index: 5 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: clamp(58px, 8vw, 76px) !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  background: linear-gradient(110deg, var(--card-accent-dark), var(--card-accent)) !important;
  font-size: clamp(20px, 2.7vw, 32px) !important;
  line-height: 1 !important;
  letter-spacing: -0.025em !important;
  text-align: center !important;
  text-wrap: balance;
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.24) !important;
}

body:not(.playing) .game-card[data-game="knife"] h2,
body:not(.playing) .game-card[data-game="tictactoe"] h2 {
  font-size: clamp(17px, 2.5vw, 28px) !important;
}

.favorite-toggle {
  position: absolute;
  inset: 13px 13px auto auto;
  z-index: 8;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  display: grid !important;
  place-items: center;
  border: 3px solid var(--sneey-navy);
  border-radius: 50%;
  color: var(--sneey-navy);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 16px rgba(11, 23, 37, 0.24);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.favorite-toggle:hover { transform: scale(1.06); }
.favorite-toggle:active { transform: scale(0.94); }

.favorite-toggle[aria-pressed="true"] {
  border-color: var(--sneey-navy);
  color: #ffb800;
  background: #fff8ce;
}

body:not(.playing) .new-badge {
  position: absolute !important;
  inset: auto 12px calc(clamp(58px, 8vw, 76px) + 8px) auto !important;
  z-index: 7 !important;
  min-height: 28px !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  background: #ffe33f !important;
  color: var(--sneey-navy) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  box-shadow: none !important;
}

body:not(.playing) .crown { display: none !important; }

.no-results {
  margin: 30px auto;
  padding: 22px;
  border: 1px dashed rgba(23, 40, 59, 0.24);
  border-radius: 20px;
  text-align: center;
  color: var(--sneey-muted);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

body:not(.playing) .tournament-bar {
  position: sticky !important;
  inset-block-end: 0 !important;
  z-index: 45 !important;
  width: min(1180px, calc(100% - 28px)) !important;
  min-height: 84px !important;
  height: auto !important;
  margin: 0 auto 14px !important;
  padding: 12px !important;
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) 64px !important;
  align-items: center !important;
  gap: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 24px !important;
  background: rgba(23, 40, 59, 0.94) !important;
  box-shadow: 0 18px 40px rgba(23, 40, 59, 0.2) !important;
  backdrop-filter: blur(18px);
}

body:not(.playing) .player-score {
  width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

body:not(.playing) .player-score span,
body:not(.playing) .player-score span::after { display: none !important; }

body:not(.playing) .player-score b {
  position: static !important;
  color: #fff !important;
  font-size: 28px !important;
  line-height: 1 !important;
  text-shadow: none !important;
}

body:not(.playing) .player-score.red b { color: #ff7773 !important; }
body:not(.playing) .player-score.blue b { color: #63d9f5 !important; }

body:not(.playing) .tournament-btn {
  width: 100% !important;
  max-width: none !important;
  min-height: 58px !important;
  padding: 12px 18px !important;
  border: 0 !important;
  border-radius: 18px !important;
  color: #fff !important;
  background: linear-gradient(100deg, var(--sneey-red), #d83d65 45%, var(--sneey-blue)) !important;
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.2) !important;
  font-size: clamp(16px, 3vw, 23px) !important;
  font-weight: 950 !important;
  letter-spacing: -0.025em !important;
}

.site-footer {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 14px 34px;
  color: var(--sneey-muted);
  text-align: center;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--sneey-ink);
  font-weight: 800;
}

/* In-game chrome shared by every duel. */
body.playing {
  margin: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: manipulation;
  background: var(--sneey-navy-2) !important;
}

body.playing .app-screen {
  width: 100% !important;
  max-width: none !important;
  height: 100svh !important;
  min-height: 100svh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.playing .arena:not(.hidden) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 80 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100svh !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: none !important;
}

.play-actions {
  position: fixed;
  z-index: 150;
  inset: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) auto auto;
  display: flex;
  gap: 7px;
  direction: ltr;
}

.play-actions button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  color: #fff;
  background: rgba(11, 23, 37, 0.78);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  font-size: 20px;
  font-weight: 950;
  backdrop-filter: blur(12px);
}

/* Tic-Tac-Toe besitzt rechts oben einen eigenen ENDE-Knopf. Die globalen
   Spielaktionen halten deshalb eine freie Touch-Zone daneben. */
body.playing .arena[data-game="tictactoe"] .play-actions {
  right: max(72px, calc(env(safe-area-inset-right) + 72px));
}

/* Messerwurf: kompakter Zurückknopf oben rechts, gegenüber der HUD-Anzeige. */
body.playing .arena[data-game="knife"] .arena-head {
  inset: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) auto auto !important;
  left: auto !important;
  z-index: 180 !important;
}

body.playing .arena[data-game="knife"] .ghost {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
}

body.playing .arena.menu-screen .play-actions,
body.playing .arena.tournament-menu-screen .play-actions { display: none; }

.game-pause-layer {
  position: fixed;
  inset: 0;
  z-index: 145;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background: rgba(8, 18, 30, 0.84);
  backdrop-filter: blur(12px);
}

.game-pause-layer[hidden] { display: none; }
.game-pause-layer section { text-align: center; }
.game-pause-layer b { display: block; font-size: clamp(36px, 10vw, 72px); }
.game-pause-layer button { min-width: 180px; min-height: 54px; margin-top: 20px; border: 0; border-radius: 17px; color: #fff; background: var(--sneey-blue-2); font-weight: 950; }

.game-toast {
  position: fixed;
  z-index: 220;
  inset: auto 50% max(18px, env(safe-area-inset-bottom)) auto;
  transform: translateX(50%);
  max-width: calc(100% - 28px);
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(11, 23, 37, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
  font-weight: 850;
  text-align: center;
}

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

/* Dialogs for stats, settings, tournament setup and achievements. */
.next-dialog {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(11, 23, 37, 0.72);
  backdrop-filter: blur(12px);
}

.next-dialog[hidden] { display: none; }

.next-dialog-card {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100svh - 36px));
  overflow: auto;
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  color: var(--sneey-ink);
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.next-dialog-close {
  position: absolute;
  inset: 14px 14px auto auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--sneey-navy);
  font-size: 26px;
  font-weight: 950;
}

.next-dialog h2 { margin: 0 52px 8px 0; font-size: clamp(28px, 6vw, 44px); line-height: 1; }
.next-dialog p { color: var(--sneey-muted); font-weight: 650; line-height: 1.5; }

.series-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.series-picker button {
  min-width: 0;
  min-height: 44px;
  padding: 5px 7px;
  border: 2px solid var(--sneey-line);
  border-radius: 12px;
  color: var(--sneey-ink);
  background: #eef6fc;
  font-size: 12px;
  font-weight: 950;
}

.series-picker button.active {
  border-color: var(--sneey-blue-2);
  color: #fff;
  background: var(--sneey-blue-2);
}

.mode-select-screen .mode-card > p { margin-bottom: 10px !important; }

/* Arabic reads right-to-left while physical game boards keep their own fixed sides. */
html[dir="rtl"] .site-footer,
html[dir="rtl"] .next-dialog-card,
html[dir="rtl"] .mode-card,
html[dir="rtl"] .difficulty-page { text-align: right; }

html[dir="rtl"] .game-search { grid-template-columns: 34px 1fr; }
html[dir="rtl"] .game-search input { padding: 0 0 0 12px; text-align: right; }
html[dir="rtl"] .game-filters,
html[dir="rtl"] .game-filter-categories { direction: rtl; }
html[dir="rtl"] body:not(.playing) .card-play { text-align: right !important; }
html[dir="rtl"] .favorite-toggle { inset: 13px auto auto 13px; }
html[dir="rtl"] body:not(.playing) .new-badge { inset: auto auto calc(clamp(58px, 8vw, 76px) + 8px) 12px !important; }
html[dir="rtl"] .next-dialog-close { inset: 14px auto auto 14px; }
html[dir="rtl"] .next-dialog h2 { margin: 0 0 8px 52px; }
html[dir="rtl"] .vs-btn { text-align: right; }
html[dir="rtl"] .tournament-select label,
html[dir="rtl"] .tournament-length label { text-align: right; }

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

.stat-box,
.badge-box {
  min-width: 0;
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--sneey-line);
  border-radius: 18px;
  background: #f3f8fc;
}

.stat-box b { display: block; font-size: 30px; }
.stat-box span,
.badge-box span { color: var(--sneey-muted); font-size: 13px; font-weight: 800; }

.dialog-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.dialog-actions button { min-height: 48px; padding: 0 18px; border: 0; border-radius: 15px; color: #fff; background: var(--sneey-navy); font-weight: 900; }
.dialog-actions button.danger { background: var(--sneey-red-2); }

.tournament-length {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tournament-length label,
.tournament-select label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.tournament-length input,
.tournament-select input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tournament-length span,
.tournament-select span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 2px solid var(--sneey-line);
  border-radius: 14px;
  color: var(--sneey-ink);
  background: #f3f8fc;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.tournament-length input:checked + span,
.tournament-select input:checked + span {
  border-color: var(--sneey-blue-2);
  color: #fff;
  background: var(--sneey-navy);
}

.tournament-length input:focus-visible + span,
.tournament-select input:focus-visible + span {
  outline: 4px solid rgba(24, 188, 232, 0.38);
  outline-offset: 2px;
}

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

.badge-box.unlocked {
  border-color: rgba(24, 188, 232, 0.45);
  background: linear-gradient(145deg, #fff, #e7f8ff);
}

.mode-hero > picture,
.mode-hero > picture img {
  width: 100%;
  height: 100%;
}

.mode-hero > picture img { object-fit: cover; }

@media (max-width: 700px) {
  body:not(.playing) .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .library-more__content { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body:not(.playing) .game-header {
    min-height: 72px !important;
    padding: 10px 14px !important;
    grid-template-columns: 46px minmax(0, 1fr) 46px !important;
    gap: 9px !important;
  }

  body:not(.playing) .header-btn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 15px !important;
  }

  body:not(.playing) .logo-main { font-size: clamp(23px, 7vw, 32px) !important; }
  body:not(.playing) .logo-lines { width: min(100%, 190px) !important; height: 4px !important; margin-top: 5px !important; }
  body:not(.playing) .logo-lines i,
  body:not(.playing) .logo-lines b { height: 4px !important; }

  body:not(.playing) .app-screen { padding: 13px 12px 0 !important; }

  .welcome-panel {
    min-height: 86px;
    grid-template-columns: 32px minmax(0, 1fr) 62px;
    gap: 7px;
    padding: 11px 14px;
    border-color: rgba(93, 177, 222, 0.14);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 84%, #f9fdff 100%);
    box-shadow: 0 4px 14px rgba(74, 173, 218, 0.12);
  }
  .welcome-panel__star {
    font-size: 27px;
    transform: translate(1px, -14px) rotate(-8deg);
  }
  .welcome-panel__copy { transform: translate(-6px, 8px); }
  .welcome-panel h1 {
    font-size: clamp(22px, 5.8vw, 26px);
    letter-spacing: -0.02em;
    word-spacing: 0.09em;
  }
  .welcome-panel__gamepad {
    width: 56px;
    height: 39px;
    border-width: 3px;
    border-radius: 19px 19px 23px 23px;
    transform: translate(-3px, 11px) rotate(10deg);
  }
  .welcome-panel__gamepad::before { inset: 2px auto auto 7px; font-size: 21px; }
  .welcome-panel__gamepad::after { inset: 6px 3px auto auto; width: 23px; font-size: 16px; }
  .welcome-panel__spark { inset: 20px 73px auto auto; transform: scale(0.48); transform-origin: top right; }
  .welcome-panel__spark i { inset-inline-start: -120px; }
  .welcome-panel__spark b { inset-inline-start: -90px; }
  .welcome-panel__spark em { inset-inline-end: 31px; }
  .welcome-panel__spark::before { inset-inline-start: 12px; }
  .welcome-panel__spark::after { inset-inline-start: 1px; }
  .welcome-panel__mini-star { inset: 16px -1px auto auto; font-size: 20px; }

  .library-controls { margin: 7px 0 9px; padding: 4px; border-radius: 20px; }
  .game-filters { gap: 4px; padding: 0; border-radius: 17px; }
  .game-filters .filter-chip { min-height: 44px; border-radius: 14px; font-size: 15px; }
  .game-filters .filter-chip::before { margin-inline-end: 5px; }
  .library-more { margin-top: 3px; }
  .library-more summary { min-height: 42px; padding-block: 6px; font-size: 12px; }
  .library-more__content { padding-top: 4px; }
  .game-search { height: 46px; }
  .filter-chip { min-height: 44px; padding-inline: 13px; }

  body:not(.playing) .game-grid { gap: 10px !important; }
  body:not(.playing) .card-play { aspect-ratio: 1.04 / 1 !important; border-width: 3px !important; border-radius: 19px !important; }
  body:not(.playing) .card-play::after { border-radius: 15px; }
  body:not(.playing) .card-play h2 { min-height: 42px !important; padding: 6px 8px !important; font-size: clamp(17px, 4.4vw, 22px) !important; }
  body:not(.playing) .game-card[data-game="knife"] h2,
  body:not(.playing) .game-card[data-game="tictactoe"] h2 { font-size: clamp(14px, 4.6vw, 20px) !important; }
  body:not(.playing) .new-badge { inset: auto 8px 50px auto !important; }
  html[dir="rtl"] body:not(.playing) .new-badge { inset: auto auto 50px 8px !important; }

  .site-footer { width: calc(100% - 20px); padding-top: 16px; }
  .site-footer nav { gap: 3px 14px; }
  .site-footer a { font-size: 12px; }

  .play-actions { gap: 5px; }
  .play-actions button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 13px; font-size: 18px; }

  html[dir="rtl"] .favorite-toggle { inset: 8px auto auto 8px; }

  .tournament-select { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tournament-length { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 370px) {
  body:not(.playing) .card-play h2 { font-size: 16px !important; }
  .welcome-panel { grid-template-columns: 29px minmax(0, 1fr) 52px; padding-inline: 11px; }
  .welcome-panel__star { font-size: 27px; transform: translate(1px, -14px) rotate(-8deg); }
  .welcome-panel h1 { font-size: 20px; }
  .welcome-panel__spark i { inset-inline-start: -48px; }
  .welcome-panel__spark b { inset-inline-start: -28px; }
  .welcome-panel__spark em { inset-inline-end: 1px; }
  .welcome-panel__spark::before { inset-inline-start: 43px; }
  .welcome-panel__spark::after { inset-inline-start: 32px; }
  .welcome-panel__gamepad { width: 49px; height: 36px; }
  .welcome-panel__gamepad::before { font-size: 19px; }
  .welcome-panel__gamepad::after { font-size: 14px; }
  .play-actions button:nth-child(4) { display: none; }
}

body:not(.playing) .site-footer a[href^="/spiele/"] {
  display: none !important;
}

@media (orientation: landscape) and (max-height: 620px) {
  body.playing .arena:not(.menu-screen):not(.tournament-menu-screen) {
    display: grid !important;
    grid-template-columns: minmax(72px, 0.12fr) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    padding: 0 !important;
  }

  body.playing .arena:not(.menu-screen) .arena-head {
    position: relative !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 72px !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: max(10px, env(safe-area-inset-top)) 8px max(10px, env(safe-area-inset-bottom)) !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    background: rgba(11, 23, 37, 0.92) !important;
  }

  body.playing .arena:not(.menu-screen) .arena-head > div,
  body.playing .arena:not(.menu-screen) .score-line,
  body.playing .arena:not(.menu-screen) .modebar { display: none !important; }

  body.playing .arena:not(.menu-screen) .ghost {
    position: static !important;
    width: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    padding: 6px !important;
    border-radius: 16px !important;
    font-size: 12px !important;
    writing-mode: vertical-rl;
  }

  body.playing .arena:not(.menu-screen) .game-mount {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 100svh !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: grid !important;
    place-items: center !important;
  }

  body.playing .arena[data-game="hockey"] .game-mount > *,
  body.playing .arena[data-game="knife"] .game-mount > *,
  body.playing .arena[data-game="memory"] .game-mount > *,
  body.playing .arena[data-game="tictactoe"] .game-mount > *,
  body.playing .arena[data-game="connect4"] .game-mount > * {
    max-width: min(100%, 820px) !important;
    max-height: 100svh !important;
  }

  body.playing .arena[data-game="hockey"] .arena-head {
    display: none !important;
  }

  body.playing .arena[data-game="hockey"] .game-mount {
    grid-column: 1 / -1 !important;
  }

  body.playing .arena[data-game="hockey"] .air-hockey-game {
    width: 100vw !important;
    max-width: none !important;
  }

  .play-actions {
    inset: 8px max(8px, env(safe-area-inset-right)) auto auto;
  }

  body.playing .arena.menu-screen .mode-menu,
  body.playing .arena.difficulty-screen .difficulty-page {
    min-height: 100svh !important;
    max-height: 100svh !important;
    overflow: auto !important;
  }
}

/* Messerwurf: Die Spielfläche bleibt frei von Symbolleisten. Der einzige
   Zurückknopf sitzt neben der Punktanzeige statt auf ihr. */
body.playing .arena[data-game="knife"] > .play-actions {
  display: none !important;
}

@media (orientation: portrait) {
  body.playing .arena[data-game="knife"] .arena-head {
    position: fixed !important;
    inset: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) auto auto !important;
    z-index: 180 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }
}

.info-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 10, 20, 0.58);
  backdrop-filter: blur(10px);
}

.info-overlay section {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 26px;
  color: #f8fbff;
  background: #111827;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.info-overlay p { margin: 0 0 8px; color: #9bdcff; font-size: 0.82rem; font-weight: 900; text-transform: uppercase; }
.info-overlay h2 { margin: 0 0 12px !important; color: #fff !important; font-size: 1.7rem !important; }
.info-overlay span { display: block; color: #d7e2ee; line-height: 1.5; }
.info-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, 0.1); font-size: 1.2rem; cursor: pointer; }
.info-ok { width: 100%; min-height: 44px; margin-top: 22px; border: 0; border-radius: 999px; padding: 13px 18px; color: #06101f; background: #7dd3fc; font-weight: 900; cursor: pointer; }

.language-menu {
  position: fixed;
  top: 94px;
  right: 18px;
  z-index: 5000;
  width: min(260px, calc(100vw - 36px));
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.25);
}

.language-menu.hidden { display: none !important; }
.language-menu button { min-height: 44px; border: 0; border-radius: 14px; padding: 13px 14px; display: flex; align-items: center; gap: 12px; background: #eaf6ff; color: #243040; font: 900 18px/1.1 Inter, system-ui, sans-serif; text-align: left; cursor: pointer; }
.language-menu button:hover { background: #d8efff; }
.language-menu span { font-size: 24px; line-height: 1; }
html[dir="rtl"] .language-menu { right: auto; left: 18px; }
html[dir="rtl"] .language-menu button { flex-direction: row-reverse; text-align: right; }

.consent-banner { position: fixed; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; z-index: 60; max-width: 560px; margin: 0 auto; border-radius: 16px; padding: 16px 18px; color: #f1f5f9; background: #26313c; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
.consent-banner p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.consent-banner a { color: #7dd3fc; text-decoration: underline; }
.consent-actions { display: flex; justify-content: flex-end; gap: 10px; }
.consent-actions button { min-height: 44px; border: 0; border-radius: 12px; padding: 0 18px; font-weight: 900; cursor: pointer; }
.consent-decline { color: #e2e8f0; background: #3d4a55; }
body.playing .consent-banner { bottom: 12px; }

.consent-accept {
  background: #1f7a35;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .startup-splash { animation-delay: 120ms !important; }
  .startup-splash * { animation-delay: 0ms !important; }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* App-Hauptnavigation, Suche, Einzelangebot und lokaler Spielerpass. */
body.has-app-nav:not(.playing) {
  padding-bottom: calc(102px + env(safe-area-inset-bottom)) !important;
}

.app-bottom-nav {
  position: fixed;
  z-index: 70;
  inset: auto 50% max(10px, env(safe-area-inset-bottom)) auto;
  width: min(700px, calc(100% - 24px));
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  opacity: 1;
  transform: translate(50%, 0);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  color: #fff;
  background: rgba(9, 27, 49, 0.97);
  box-shadow: 0 18px 48px rgba(9, 27, 49, 0.3);
  backdrop-filter: blur(18px);
  will-change: transform, opacity;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 160ms ease;
}

body.playing .app-bottom-nav { display: none !important; }

@media (max-width: 1199px) {
  .app-bottom-nav.is-scroll-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, calc(100% + 32px + env(safe-area-inset-bottom)));
  }
}

.app-nav-item {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-rows: 28px auto;
  place-items: center;
  gap: 3px;
  padding: 5px 4px;
  border: 0;
  border-radius: 17px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

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

.app-nav-item.is-active {
  color: #fff;
  background: linear-gradient(120deg, rgba(255, 69, 64, 0.98), rgba(24, 188, 232, 0.98));
  box-shadow: 0 8px 18px rgba(9, 27, 49, 0.3);
}

.standalone-page {
  padding-bottom: 30px !important;
}

.page-hero {
  position: relative;
  min-height: 145px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 18px;
  padding: 26px clamp(22px, 5vw, 46px);
  border: 1px solid rgba(23, 40, 59, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 8% 22%, rgba(255, 69, 64, 0.16), transparent 25%),
    radial-gradient(circle at 88% 78%, rgba(24, 188, 232, 0.22), transparent 30%),
    #fff;
  box-shadow: var(--sneey-shadow);
}

.page-hero__icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(145deg, var(--sneey-red), var(--sneey-red-2));
  box-shadow: 0 12px 24px rgba(213, 46, 53, 0.22);
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
}

.page-hero p,
.shop-heading p,
.profile-heading p {
  margin: 0 0 5px;
  color: var(--sneey-blue-2);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.page-hero h1,
.shop-heading h1,
.profile-heading h1 {
  margin: 0;
  color: var(--sneey-navy-2);
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 1000;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.page-hero__spark {
  justify-self: end;
  color: var(--sneey-blue);
  font-size: 58px;
  filter: drop-shadow(0 7px 12px rgba(24, 188, 232, 0.22));
}

.search-page-panel {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(23, 40, 59, 0.1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 40, 59, 0.08);
}

.app-search-field {
  min-height: 58px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  border: 2px solid rgba(23, 40, 59, 0.12);
  border-radius: 18px;
  background: #f3f9ff;
}

.app-search-field:focus-within {
  border-color: var(--sneey-blue);
  box-shadow: 0 0 0 4px rgba(24, 188, 232, 0.12);
}

.app-search-field svg {
  width: 24px;
  height: 24px;
  margin-inline-start: 13px;
  fill: none;
  stroke: var(--sneey-blue-2);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.app-search-field input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 16px 0 8px;
  border: 0;
  outline: 0;
  color: var(--sneey-ink);
  background: transparent;
  font-size: 17px;
  font-weight: 750;
}

.app-search-filters {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 8px;
}

.app-search-filters::-webkit-scrollbar { display: none; }

.app-search-filters button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(23, 40, 59, 0.13);
  border-radius: 15px;
  color: var(--sneey-ink);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  scroll-snap-align: start;
}

.app-search-filters button.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(110deg, var(--sneey-red), var(--sneey-blue));
  box-shadow: 0 8px 18px rgba(8, 126, 174, 0.2);
}

.app-search-count {
  margin: 11px 4px 0;
  color: var(--sneey-muted);
  font-size: 13px;
  font-weight: 800;
}

.app-search-results { padding-bottom: 20px; }

.shop-heading,
.profile-heading {
  min-height: 100px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 16px;
  padding: 4px 8px 20px;
}

.profile-heading { grid-template-columns: 70px minmax(0, 1fr); }
.profile-heading h1 { font-size: clamp(27px, 5vw, 46px); }

.sneey-split-mark {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 21px;
  color: #fff;
  background: linear-gradient(135deg, var(--sneey-red) 0 49%, var(--sneey-blue) 51% 100%);
  box-shadow: 0 10px 24px rgba(23, 40, 59, 0.16);
  transform: skew(-5deg);
}

.sneey-split-mark i {
  font-size: 36px;
  font-style: italic;
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 3px 0 rgba(11, 23, 37, 0.25);
  transform: skew(5deg);
}

.shop-lock {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: var(--sneey-navy);
  font-size: 24px;
}

.single-offer-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(340px, 1.2fr);
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 69, 64, 0.55), transparent 32%),
    radial-gradient(circle at 90% 92%, rgba(24, 188, 232, 0.52), transparent 34%),
    var(--sneey-navy-2);
  box-shadow: 0 24px 58px rgba(11, 23, 37, 0.28);
  isolation: isolate;
}

.single-offer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, #000, transparent 48%, #000);
}

.single-offer-art {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 69, 64, 0.24), rgba(24, 188, 232, 0.14));
}

.single-offer-art::before {
  content: "";
  width: min(68%, 210px);
  aspect-ratio: 1;
  border: 14px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(255, 69, 64, 0.92), 0 20px 44px rgba(0, 0, 0, 0.28);
}

.single-offer-art::after {
  content: "";
  position: absolute;
  width: min(80%, 250px);
  height: 22px;
  border: 5px solid var(--sneey-navy-2);
  border-radius: 999px;
  background: var(--sneey-red);
  transform: rotate(-45deg);
  box-shadow: 0 5px 0 rgba(255, 255, 255, 0.92);
}

.single-offer-art > span {
  position: absolute;
  z-index: 2;
  width: min(32%, 88px);
  aspect-ratio: 4 / 3;
  border: 7px solid #fff;
  border-radius: 13px;
  background: linear-gradient(#fff 0 0) 50% 35% / 55% 7px no-repeat, linear-gradient(#fff 0 0) 50% 63% / 36% 7px no-repeat;
  box-shadow: 0 5px 0 rgba(11, 23, 37, 0.38);
}

.single-offer-copy {
  padding: clamp(28px, 5vw, 56px);
}

.single-offer-kicker {
  margin: 0 0 8px;
  color: var(--sneey-blue);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.24em;
}

.single-offer-copy h2 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(40px, 7vw, 70px);
  font-weight: 1000;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-wrap: balance;
}

.single-offer-lead {
  max-width: 570px;
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(16px, 2.3vw, 21px);
  font-weight: 700;
  line-height: 1.45;
}

.single-offer-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: linear-gradient(110deg, rgba(255, 69, 64, 0.92), rgba(24, 188, 232, 0.9));
}

.single-offer-price strong {
  font-size: clamp(42px, 7vw, 64px);
  line-height: 1;
}

.single-offer-price span {
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.single-offer-copy ul {
  margin: 22px 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.single-offer-copy li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 800;
}

.single-offer-copy li span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--sneey-navy-2);
  background: var(--sneey-blue);
  font-weight: 1000;
}

.parent-area-button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 0;
  border-radius: 18px;
  color: var(--sneey-navy-2);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  font-size: 16px;
  font-weight: 1000;
  cursor: pointer;
}

.offer-status {
  margin: 14px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.parent-notice-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(135deg, var(--sneey-red), var(--sneey-blue));
  font-size: 28px;
}

.profile-pass-card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(320px, 1.45fr);
  align-items: center;
  border: 1px solid rgba(23, 40, 59, 0.12);
  border-radius: 32px;
  background: linear-gradient(115deg, var(--sneey-navy-2) 0 38%, #fff 38% 84%, rgba(24, 188, 232, 0.14) 100%);
  box-shadow: var(--sneey-shadow);
}

.profile-avatar {
  position: relative;
  width: min(70%, 190px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 10px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--sneey-red) 0 49%, var(--sneey-blue) 51% 100%);
  box-shadow: 0 18px 36px rgba(11, 23, 37, 0.32);
}

.profile-avatar > span {
  font-size: clamp(70px, 13vw, 120px);
  font-weight: 1000;
  font-style: italic;
  line-height: 1;
  text-shadow: 0 5px 0 rgba(11, 23, 37, 0.3);
}

.profile-avatar > i {
  position: absolute;
  inset: auto -8px 2px auto;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 6px solid #fff;
  border-radius: 50%;
  color: var(--sneey-red);
  background: #fff;
  box-shadow: 0 8px 18px rgba(11, 23, 37, 0.22);
  font-size: 26px;
  font-style: normal;
}

.profile-identity {
  min-width: 0;
  padding: clamp(28px, 5vw, 50px);
}

@media (min-width: 721px) {
  .profile-identity {
    margin: 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(11, 23, 37, 0.12);
  }
}

@media (min-width: 1200px) {
  .app-bottom-nav {
    inset: 50% 18px auto auto;
    width: 82px;
    min-height: 320px;
    grid-template-columns: 1fr;
    transform: translateY(-50%);
  }
}

.profile-identity > p,
.best-game-copy > p {
  margin: 0 0 6px;
  color: var(--sneey-muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.profile-name-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-name-line h2 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--sneey-navy-2);
  font-size: clamp(36px, 7vw, 62px);
  font-weight: 1000;
  letter-spacing: -0.045em;
  line-height: 1;
}

.profile-name-line button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--sneey-navy);
  font-size: 20px;
}

.profile-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.profile-totals > span {
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid var(--sneey-line);
  border-radius: 16px;
  color: var(--sneey-muted);
  background: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 900;
}

.profile-totals > span:first-child { border-color: #f2b82b; }
.profile-totals > span:last-child { border-color: var(--sneey-blue); }
.profile-totals b { color: var(--sneey-navy-2); font-size: 20px; }
.profile-identity small { display: block; margin-top: 10px; color: var(--sneey-muted); font-weight: 700; }

.best-game-card {
  margin-top: 18px;
  min-height: 250px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(330px, 1.25fr);
  border: 5px solid transparent;
  border-radius: 31px;
  color: #fff;
  background: linear-gradient(var(--sneey-navy-2), var(--sneey-navy-2)) padding-box, linear-gradient(110deg, var(--sneey-red), var(--sneey-blue)) border-box;
  box-shadow: 0 18px 42px rgba(11, 23, 37, 0.24);
}

.best-game-art {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.best-game-art picture,
.best-game-art img {
  width: 100%;
  height: 100%;
  display: block;
}

.best-game-art img { object-fit: cover; }
.best-game-art > span { min-height: 230px; display: grid; place-items: center; color: var(--sneey-blue); font-size: 110px; }
.best-game-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--sneey-navy-2)); }

.best-game-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  padding: 28px clamp(24px, 5vw, 50px);
}

.best-game-copy > p { color: var(--sneey-red); }
.best-game-copy h2 { margin: 0; font-size: clamp(37px, 6vw, 64px); font-weight: 1000; letter-spacing: -0.045em; line-height: 0.98; overflow-wrap: anywhere; }
.best-game-copy > b { margin-top: 9px; color: var(--sneey-blue); font-size: 17px; }

.best-score {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 15px;
}

.best-score > span { padding: 8px 13px; border-radius: 12px; background: var(--sneey-red); font-weight: 950; }
.best-score > strong { color: var(--sneey-blue); font-size: 48px; line-height: 1; }
.best-score small { color: #fff; font-size: 20px; }

.strength-bar {
  min-height: 70px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(110deg, #071b35, #0d355a);
  box-shadow: 0 12px 28px rgba(11, 23, 37, 0.18);
  text-align: center;
}

.strength-bar > span { color: var(--sneey-red); font-size: 30px; }
.strength-bar strong { color: var(--sneey-blue); }

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

.profile-summary > div {
  min-height: 94px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--sneey-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(23, 40, 59, 0.07);
  text-align: center;
}

.profile-summary strong { font-size: 30px; }
.profile-summary span { color: var(--sneey-muted); font-size: 11px; font-weight: 900; }

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

.profile-game-score {
  min-width: 0;
  min-height: 120px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(23, 40, 59, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 40, 59, 0.08);
}

.profile-game-icon {
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--sneey-navy-2);
}

.profile-game-icon picture,
.profile-game-icon img { width: 100%; height: 100%; display: block; }
.profile-game-icon img { object-fit: cover; }
.profile-game-score h3 { margin: 0 0 9px; color: var(--sneey-navy-2); font-size: 16px; font-weight: 1000; line-height: 1.05; overflow-wrap: anywhere; }
.profile-game-score p { margin: 7px 0 0; color: var(--sneey-muted); font-size: 12px; font-weight: 800; }
.profile-game-score p strong { color: var(--sneey-navy-2); font-size: 20px; }

.profile-score-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce5ec;
}

.profile-score-track span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--sneey-red), var(--sneey-blue)); }

.profile-data-note {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(8, 126, 174, 0.2);
  border-radius: 20px;
  color: var(--sneey-ink);
  background: rgba(226, 247, 255, 0.86);
}

.profile-data-note > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--sneey-blue-2); }
.profile-data-note b { font-size: 14px; }
.profile-data-note p { margin: 3px 0 0; color: var(--sneey-muted); font-size: 12px; font-weight: 700; line-height: 1.4; }

html[dir="rtl"] .app-search-field input { padding: 0 8px 0 16px; text-align: right; }
html[dir="rtl"] .single-offer-card,
html[dir="rtl"] .profile-pass-card,
html[dir="rtl"] .best-game-card,
html[dir="rtl"] .profile-game-score,
html[dir="rtl"] .profile-data-note { text-align: right; }
html[dir="rtl"] .best-game-art::after { background: linear-gradient(270deg, transparent 55%, var(--sneey-navy-2)); }

@media (max-width: 720px) {
  .single-offer-card,
  .profile-pass-card,
  .best-game-card { grid-template-columns: 1fr; }
  .single-offer-art { min-height: 260px; }
  .profile-pass-card { background: linear-gradient(160deg, var(--sneey-navy-2) 0 42%, #fff 42% 92%, rgba(24, 188, 232, 0.15)); }
  .profile-avatar { width: 168px; margin-top: 28px; }
  .best-game-art { min-height: 200px; max-height: 240px; }
  .best-game-art::after { background: linear-gradient(180deg, transparent 45%, var(--sneey-navy-2)); }
  html[dir="rtl"] .best-game-art::after { background: linear-gradient(180deg, transparent 45%, var(--sneey-navy-2)); }
}

@media (max-width: 520px) {
  body.has-app-nav:not(.playing) { padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important; }
  .app-bottom-nav { width: calc(100% - 16px); min-height: 68px; inset-block-end: max(6px, env(safe-area-inset-bottom)); padding: 6px; border-radius: 21px; }
  .app-nav-item { min-height: 54px; grid-template-rows: 25px auto; border-radius: 15px; font-size: 10px; }
  .app-nav-item svg { width: 24px; height: 24px; }
  .page-hero { min-height: 102px; grid-template-columns: 58px minmax(0, 1fr) 32px; gap: 10px; padding: 17px; border-radius: 22px; }
  .page-hero__icon { width: 54px; height: 54px; border-radius: 18px; font-size: 36px; }
  .page-hero p { font-size: 10px; }
  .page-hero h1 { font-size: 34px; }
  .page-hero__spark { font-size: 30px; }
  .search-page-panel { margin: 10px 0; padding: 9px; border-radius: 19px; }
  .app-search-field { min-height: 52px; border-radius: 16px; }
  .app-search-field input { height: 48px; font-size: 15px; }
  .app-search-filters { margin-top: 8px; }
  .app-search-filters button { min-height: 44px; padding-inline: 14px; }
  body:not(.playing) .favorite-toggle { inset: 8px 8px auto auto; width: 44px; height: 44px; min-width: 44px; min-height: 44px; font-size: 24px; }
  .shop-heading,
  .profile-heading { min-height: 78px; grid-template-columns: 52px minmax(0, 1fr) 44px; gap: 10px; padding: 0 3px 12px; }
  .profile-heading { grid-template-columns: 52px minmax(0, 1fr); }
  .sneey-split-mark { width: 50px; height: 50px; border-radius: 16px; }
  .sneey-split-mark i { font-size: 29px; }
  .shop-lock { width: 42px; height: 42px; border-radius: 14px; }
  .shop-heading p { font-size: 9px; }
  .shop-heading h1 { font-size: 36px; }
  .profile-heading h1 { font-size: 25px; }
  .single-offer-card { border-radius: 26px; }
  .single-offer-art { min-height: 220px; }
  .single-offer-art::before { border-width: 10px; }
  .single-offer-art::after { height: 16px; }
  .single-offer-copy { padding: 25px 20px 22px; }
  .single-offer-copy h2 { font-size: clamp(36px, 11vw, 50px); }
  .single-offer-price strong { font-size: 43px; }
  .profile-pass-card { border-radius: 25px; }
  .profile-avatar { width: 142px; border-width: 7px; }
  .profile-avatar > i { width: 43px; height: 43px; border-width: 5px; font-size: 22px; }
  .profile-identity { padding: 25px 18px; }
  .profile-name-line h2 { font-size: 34px; }
  .profile-totals { display: grid; grid-template-columns: 1fr 1fr; }
  .profile-totals > span { min-width: 0; display: grid; gap: 3px; text-align: center; }
  .profile-totals b { font-size: 17px; }
  .best-game-card { border-radius: 25px; }
  .best-game-art { min-height: 170px; }
  .best-game-copy { padding: 22px 18px 26px; }
  .best-game-copy h2 { font-size: 36px; }
  .best-score > strong { font-size: 42px; }
  .strength-bar { border-radius: 18px; font-size: 13px; }
  .profile-summary { gap: 7px; }
  .profile-summary > div { min-height: 82px; padding: 9px 5px; border-radius: 17px; }
  .profile-summary strong { font-size: 25px; }
  .profile-summary span { font-size: 9px; }
  .profile-games-grid { grid-template-columns: 1fr; gap: 9px; }
  .profile-game-score { min-height: 104px; grid-template-columns: 72px minmax(0, 1fr); padding: 11px; border-radius: 19px; }
  .profile-game-icon { width: 68px; height: 68px; }
  .profile-data-note { padding: 14px; }
}

/* Home ist die einzige App-Seite: alte oder zwischengespeicherte Navigationsleisten
   bleiben ebenfalls unsichtbar und reservieren keinen Platz. */
#appBottomNav,
.app-bottom-nav {
  display: none !important;
}

body.has-app-nav:not(.playing) {
  padding-bottom: 0 !important;
}
