.home-page {
  background:
    radial-gradient(circle at top, rgba(83, 111, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #0a1020 0%, #0e1428 48%, #09101f 100%);
}

.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 10%, rgba(59, 130, 246, 0.14), transparent 18%),
    radial-gradient(circle at 82% 16%, rgba(255, 123, 72, 0.12), transparent 20%);
  pointer-events: none;
}

.home-navbar {
  --f7-navbar-bg-color: rgba(7, 12, 24, 0.78);
  --f7-bars-bg-color: rgba(7, 12, 24, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.home-navbar .navbar-inner {
  padding-left: 16px;
  padding-right: 16px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-kicker {
  color: #7ea8ff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-title {
  color: #f7fbff;
  font-size: 1.12rem;
  line-height: 1.1;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(109, 87, 255, 0.18);
  color: #dfe6ff;
  font-size: 0.84rem;
  font-weight: 800;
}

.page-content {
  padding-top: calc(18px + env(safe-area-inset-top));
}

.hero-zone,
.shortcut-zone,
.library-zone {
  margin-bottom: 24px;
}

.update-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(14, 22, 40, 0.82);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.update-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #79b7ff, #78d4bd);
  color: #08101f;
  font: inherit;
  font-weight: 800;
}

.update-button[disabled] {
  opacity: 0.72;
}

.update-status {
  margin: 0;
  color: #b8c6e6;
  line-height: 1.55;
  font-size: 0.88rem;
}

.section-head {
  margin-bottom: 14px;
}

.section-kicker {
  margin: 0 0 8px;
  color: #8da9ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h1 {
  margin: 0;
  color: #f7fbff;
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-row h2 {
  margin: 0;
  color: #f7fbff;
  font-size: 1.45rem;
  line-height: 1.1;
}

.section-row span {
  color: #8e9bbc;
  font-size: 0.84rem;
  font-weight: 700;
}

.featured-card,
.arcade-card {
  display: block;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: #121a2e;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.featured-cover,
.card-cover {
  position: relative;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.cover-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cover-position, center 42%);
  transform: scale(var(--cover-scale, 1.08));
  transform-origin: center;
}

.featured-cover {
  min-height: 320px;
}

.card-cover {
  aspect-ratio: 1 / 1.02;
}

.breakout-cover,
.pinball-cover,
.tetris-cover,
.game2048-cover,
.sudoku-cover,
.snake-cover,
.match3-cover,
.linkup-cover,
.flow-cover,
.water-sort-cover,
.minesweeper-cover,
.sokoban-cover {
  background-color: #16213a;
}

.breakout-cover {
  --cover-scale: 1.11;
  --cover-position: center 42%;
}

.pinball-cover {
  --cover-scale: 1.11;
  --cover-position: center 44%;
}

.tetris-cover {
  --cover-scale: 1.09;
  --cover-position: center 42%;
}

.game2048-cover {
  --cover-scale: 1.12;
  --cover-position: center 42%;
}

.sudoku-cover {
  --cover-scale: 1.15;
  --cover-position: center 40%;
}

.snake-cover {
  --cover-scale: 1.12;
  --cover-position: center 42%;
}

.match3-cover {
  --cover-scale: 1.12;
  --cover-position: center 40%;
}

.linkup-cover {
  --cover-scale: 1.09;
  --cover-position: center 45%;
}

.flow-cover {
  --cover-scale: 1.09;
  --cover-position: center 44%;
}

.water-sort-cover {
  --cover-scale: 1.08;
  --cover-position: center 42%;
}

.minesweeper-cover {
  --cover-scale: 1.08;
  --cover-position: center 44%;
}

.sokoban-cover {
  --cover-scale: 1.08;
  --cover-position: center 43%;
}

.breakout-cover::before,
.pinball-cover::before,
.tetris-cover::before,
.game2048-cover::before,
.sudoku-cover::before,
.snake-cover::before,
.match3-cover::before,
.linkup-cover::before,
.flow-cover::before,
.water-sort-cover::before,
.minesweeper-cover::before,
.sokoban-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, transparent 20%, rgba(5, 8, 18, 0.28) 100%);
}

.cover-badge,
.card-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f7fbff;
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.cover-logo {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(7, 12, 24, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  opacity: 0.88;
}

.cover-logo svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #f6f8ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}

.cover-logo svg circle,
.cover-logo svg rect {
  fill: rgba(255, 255, 255, 0.08);
}

.cover-logo-image {
  width: 100%;
  height: 100%;
  display: block;
}

.featured-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 96px 18px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 12, 24, 0.18) 16%, rgba(8, 12, 24, 0.92) 100%);
}

.featured-meta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(126, 168, 255, 0.18);
  color: #dce7ff;
  font-size: 0.74rem;
  font-weight: 800;
}

.featured-overlay h2 {
  margin: 12px 0 8px;
  color: #f7fbff;
  font-size: 1.9rem;
  line-height: 1.05;
}

.featured-overlay p {
  margin: 0;
  max-width: 18rem;
  color: #b8c3df;
  line-height: 1.6;
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6d57ff, #4a7fff);
  color: #ffffff;
  font-weight: 800;
}

.shortcut-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.shortcut-chips::-webkit-scrollbar {
  display: none;
}

.shortcut-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5ebff;
  font-weight: 800;
}

.arcade-grid {
  --f7-row-gap: 14px;
  --f7-column-gap: 14px;
}

.arcade-card {
  position: relative;
}

.arcade-card .cover-logo {
  top: 16px;
  left: 16px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(6, 12, 24, 0.46);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  opacity: 0.96;
}

.arcade-card .cover-logo svg {
  width: 28px;
  height: 28px;
}

.arcade-card .card-pill {
  background: rgba(6, 12, 24, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 84px 16px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 13, 26, 0.18) 18%, rgba(9, 13, 26, 0.94) 100%);
}

.card-body h3 {
  margin: 0 0 6px;
  color: #f7fbff;
  font-size: 1.08rem;
  line-height: 1.15;
}

.card-body p {
  margin: 0;
  color: #9eaccb;
  font-size: 0.92rem;
  line-height: 1.5;
}

.arcade-card:hover .card-cover,
.arcade-card:focus-visible .card-cover {
  transform: scale(1.02);
}

.arcade-card .card-cover {
  transition: transform 180ms ease;
}

.mobile-toolbar {
  --f7-toolbar-bg-color: rgba(7, 12, 24, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.mobile-toolbar .toolbar-inner {
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-toolbar .link {
  color: #8e9bbc;
  font-weight: 700;
  font-size: 0.8rem;
}

.mobile-toolbar .link-active {
  color: #f7fbff;
}

@media (max-width: 560px) {
  .update-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .update-button {
    width: 100%;
  }
  .small-100 {
    width: 100%;
  }

  .featured-cover {
    min-height: 300px;
  }
}
