:root {
  --bg-top: #ffe8f5;
  --bg-bottom: #fff8dc;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-border: rgba(255, 219, 236, 0.9);
  --text-main: #624b63;
  --text-soft: #977992;
  --pink: #ff74b3;
  --pink-deep: #ff4d9a;
  --peach: #ffc286;
  --mint: #c8f3db;
  --gold: #ffd969;
  --shadow: 0 28px 50px rgba(228, 135, 177, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.72), transparent 18%),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.68), transparent 16%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.background-blobs span {
  position: fixed;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(5px);
  pointer-events: none;
  animation: float 5s ease-in-out infinite;
}

.background-blobs span:nth-child(1) {
  top: 24px;
  left: -24px;
}

.background-blobs span:nth-child(2) {
  top: 120px;
  right: 32px;
  width: 84px;
  height: 84px;
  animation-delay: 0.7s;
}

.background-blobs span:nth-child(3) {
  bottom: 86px;
  left: 12%;
  width: 76px;
  height: 76px;
  animation-delay: 0.35s;
}

.background-blobs span:nth-child(4) {
  right: -20px;
  bottom: 120px;
  animation-delay: 1s;
}

.site-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.site-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.site-nav a {
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.68);
  border: 2px solid rgba(255, 222, 238, 0.88);
  box-shadow: 0 10px 18px rgba(231, 147, 184, 0.1);
}

.hero-card,
.games-panel,
.ads-panel {
  background: var(--panel);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.hero-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px;
  margin-bottom: 18px;
}

.eyebrow,
.mini-label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.96;
}

.subtitle,
.section-note {
  color: var(--text-soft);
  line-height: 1.6;
}

.subtitle {
  margin: 12px 0 0;
  max-width: 560px;
}

.hero-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-badges span {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.72),
    0 14px 20px rgba(234, 146, 184, 0.14);
}

.games-panel,
.ads-panel {
  padding: 22px;
}

.games-panel {
  margin-bottom: 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

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

.link-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.game-card,
.ad-slot,
.link-card,
.article-card,
.update-item {
  border-radius: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.game-card,
.link-card,
.article-card {
  min-height: 250px;
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 235, 0.92));
  border: 2px solid rgba(255, 232, 198, 0.92);
  box-shadow: 0 16px 28px rgba(230, 160, 146, 0.12);
}

.game-card,
.link-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.game-card:hover,
.ad-slot:hover,
.link-card:hover,
.article-card:hover,
.update-item:hover {
  transform: translateY(-4px);
}

.game-card .card-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  margin-bottom: 16px;
  font-size: 1.7rem;
  background: rgba(255, 255, 255, 0.74);
}

.game-card h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.game-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-soft);
}

.game-card strong {
  margin-top: auto;
  padding-top: 20px;
  color: var(--pink-deep);
}

.link-card h3,
.article-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.link-card p,
.article-card p,
.article-card li,
.update-item p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-soft);
}

.article-card ul {
  margin: 0;
  padding-left: 20px;
}

.article-card li + li {
  margin-top: 8px;
}

.game-card.snake {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 245, 230, 0.94)),
    linear-gradient(135deg, rgba(255, 140, 190, 0.08), rgba(141, 236, 182, 0.1));
}

.game-card.sokoban {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 232, 0.94)),
    linear-gradient(135deg, rgba(255, 225, 122, 0.1), rgba(255, 140, 190, 0.08));
}

.game-card.tetris {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 255, 247, 0.94)),
    linear-gradient(135deg, rgba(110, 207, 255, 0.08), rgba(255, 176, 112, 0.08));
}

.game-card.sudoku {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 248, 255, 0.94)),
    linear-gradient(135deg, rgba(126, 219, 165, 0.1), rgba(255, 217, 105, 0.1));
}

.game-card.merge {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 232, 0.94)),
    linear-gradient(135deg, rgba(255, 166, 176, 0.08), rgba(142, 200, 255, 0.1));
}

.ads-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}

.ad-slot {
  padding: 22px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 245, 231, 0.9));
  border: 2px dashed rgba(255, 197, 224, 0.92);
}

.ad-slot span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.ad-slot p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.ad-slot.wide {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 248, 0.92));
}

.content-card {
  padding: 26px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.content-card p + p {
  margin-top: 12px;
}

.content-card p,
.content-card li {
  color: var(--text-soft);
  line-height: 1.7;
}

.content-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.content-card h2 {
  margin-top: 2px;
  margin-bottom: 12px;
}

.checklist li + li {
  margin-top: 8px;
}

.update-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.update-item {
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 232, 0.92));
  border: 2px solid rgba(255, 227, 195, 0.9);
}

.update-item time {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.update-item h3 {
  margin: 0 0 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 8px 0;
  color: var(--text-soft);
}

.site-footer a {
  color: var(--pink-deep);
  text-decoration: none;
  font-weight: 700;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

@media (max-width: 960px) {
  .games-grid,
  .ads-grid,
  .link-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-left: 2px;
    padding-right: 2px;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 18px, 100%);
    padding: 18px 0 28px;
  }

  .hero-card,
  .games-panel,
  .ads-panel {
    border-radius: 28px;
  }

  .hero-card {
    padding: 22px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-badges {
    justify-content: flex-start;
  }
}
