:root {
  --bg: #f6f8ff;
  --card: #ffffff;
  --text: #172033;
  --muted: #6f7890;
  --primary: #6c63ff;
  --secondary: #00c2a8;
  --dark: #111827;

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;

  --shadow-sm: 0 10px 30px rgba(64, 80, 140, 0.1);
  --shadow-md: 0 18px 55px rgba(67, 83, 145, 0.14);
  --shadow-lg: 0 24px 70px rgba(64, 80, 140, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(108, 99, 255, 0.22), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(0, 194, 168, 0.18), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 58%, #eef3ff 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(108, 99, 255, 0.35);
}

.logo-icon::before {
  content: "▶";
  color: white;
  font-size: 17px;
  margin-left: 2px;
}

.logo-img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--primary);
}

.language-select {
  border: 1px solid rgba(108, 99, 255, 0.16);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.hero {
  padding: 70px 0 50px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(108, 99, 255, 0.14);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

.badge::before {
  content: "✨";
}

.hero h1 {
  max-width: 940px;
  margin: 0 auto 24px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.hero h1 strong {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.games-section {
  padding: 30px 0 90px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 36px;
  letter-spacing: -0.055em;
}

.section-head p {
  color: var(--muted);
  font-weight: 650;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.game-card {
  position: relative;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.game-image-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #dfe7ff;
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.game-card:hover .game-image {
  transform: scale(1.08);
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background:
    linear-gradient(180deg,
      rgba(17, 24, 39, 0.04) 0%,
      rgba(17, 24, 39, 0.62) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.store-btn {
  min-width: 118px;
  padding: 13px 16px;
  border-radius: 999px;
  color: white;
  text-align: center;
  font-size: 14px;
  font-weight: 950;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(10px);
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.game-card:hover .store-btn {
  transform: translateY(0);
}

.store-btn:hover {
  filter: brightness(1.08);
}

.store-btn.google {
  background: linear-gradient(135deg, #34a853, var(--secondary));
}

.store-btn.ios {
  background: linear-gradient(135deg, #111827, #3b4255);
}

.game-info {
  padding: 22px;
}

.game-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.game-title {
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.tag {
  flex-shrink: 0;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
}

.game-desc {
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: #ffb800;
  font-weight: 950;
  font-size: 14px;
}

.rating-score {
  color: var(--muted);
}

.feature-band {
  margin: 20px 0 80px;
  padding: 44px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 255, 0.86)),
    #ffffff;
  border: 1px solid rgba(108, 99, 255, 0.12);
  box-shadow: 0 24px 70px rgba(64, 80, 140, 0.13);
}

.feature-band-head {
  max-width: 680px;
  margin: 0 auto 30px;
  text-align: center;
}

.feature-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 950;
}

.feature-band h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.feature-band-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-item {
  padding: 26px;
  border-radius: 26px;
  background: white;
  border: 1px solid rgba(108, 99, 255, 0.1);
  box-shadow: 0 14px 34px rgba(67, 83, 145, 0.09);
  text-align: center;
}

.feature-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.14), rgba(0, 194, 168, 0.14));
  font-size: 26px;
}

.feature-item h3 {
  margin-bottom: 9px;
  font-size: 19px;
  letter-spacing: -0.035em;
}

.feature-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.contact-box {
  margin-top: 24px;
  padding: 24px 26px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(108, 99, 255, 0.96), rgba(0, 194, 168, 0.9)),
    var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  box-shadow: 0 18px 46px rgba(108, 99, 255, 0.24);
}

.contact-box h3 {
  margin-bottom: 6px;
  font-size: 24px;
  letter-spacing: -0.045em;
}

.contact-box p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.contact-box p a {
  color: white;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-btn {
  flex-shrink: 0;
  padding: 15px 22px;
  border-radius: 999px;
  background: white;
  color: var(--primary);
  font-weight: 950;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.16);
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.footer {
  padding: 28px 0 46px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 920px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 28px, 1180px);
  }

  .contact-box {
    flex-direction: column;
    text-align: center;
  }

  .contact-btn {
    width: 100%;
    text-align: center;
  }

  .header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 48px 0 34px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-head {
    display: block;
    text-align: center;
  }

  .section-head h2 {
    margin-bottom: 8px;
    font-size: 30px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .game-overlay {
    opacity: 1;
  }

  .store-btn {
    transform: translateY(0);
  }

  .feature-band {
    padding: 30px 20px;
  }

  .feature-band h2 {
    font-size: 30px;
  }
}

.not-found-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.not-found-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 36px 0 70px;
}

.not-found-card {
  width: min(980px, 100%);
  padding: 54px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 18% 18%, rgba(108, 99, 255, 0.16), transparent 32%),
    radial-gradient(circle at 86% 24%, rgba(0, 194, 168, 0.15), transparent 30%),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(108, 99, 255, 0.12);
  box-shadow: 0 28px 80px rgba(64, 80, 140, 0.16);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 44px;
  overflow: hidden;
  position: relative;
}

.not-found-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.18), rgba(0, 194, 168, 0.16));
}

.not-found-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.not-found-logo {
  position: absolute;
  width: 170px;
  height: 170px;
  opacity: 0.16;
  transform: rotate(-12deg);
}

.not-found-number {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(92px, 14vw, 170px);
  line-height: 0.85;
  font-weight: 950;
  letter-spacing: -0.1em;
  color: var(--primary);
}

.not-found-number span {
  display: inline-flex;
}

.not-found-number .zero {
  width: 0.82em;
  height: 0.82em;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(0, 194, 168, 0.12)),
    white;
  box-shadow: 0 18px 45px rgba(64, 80, 140, 0.14);
  margin: 0 0.06em;
}

.not-found-number .zero img {
  width: 72%;
  height: 72%;
  display: block;
  object-fit: contain;
}

.not-found-content {
  position: relative;
  z-index: 1;
}

.not-found-content h1 {
  margin: 12px 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.not-found-content p {
  max-width: 500px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.not-found-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.not-found-primary,
.not-found-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 950;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    background 0.2s ease;
}

.not-found-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 16px 36px rgba(108, 99, 255, 0.24);
}

.not-found-secondary {
  color: var(--primary);
  background: rgba(108, 99, 255, 0.1);
}

.not-found-primary:hover,
.not-found-secondary:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

@media (max-width: 860px) {
  .not-found-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 42px 28px;
    gap: 24px;
  }

  .not-found-visual {
    min-height: 220px;
  }

  .not-found-content p {
    margin: 0 auto;
  }

  .not-found-actions {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .not-found-main {
    padding: 20px 0 54px;
  }

  .not-found-card {
    padding: 34px 20px;
    border-radius: 32px;
  }

  .not-found-visual {
    min-height: 180px;
  }

  .not-found-logo {
    width: 130px;
    height: 130px;
  }

  .not-found-actions {
    flex-direction: column;
  }

  .not-found-primary,
  .not-found-secondary {
    width: 100%;
  }

  .player-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
    padding-right: 52px;
  }

  .player-title-box {
    width: 100%;
  }

  .player-title-box h1 {
    font-size: 24px;
    line-height: 1.25;
    margin: 0;
    font-weight: 900;
  }

  .player-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .player-toolbar select {
    width: auto;
    min-width: 96px;
  }

  .player-toolbar button {
    min-width: 72px;
  }

  .player-card {
    margin-bottom: 14px;
  }

  .webview-close-btn {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 9999;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 0;
    background: #dc2626;
    color: white;
    font-size: 24px;
    line-height: 42px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  }

  @media (max-width: 480px) {
    .app {
      padding: 12px;
    }

    .player-top {
      padding-right: 48px;
    }

    .player-toolbar {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .player-toolbar select,
    .player-toolbar button {
      width: 100%;
      min-width: 0;
    }

    .tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }
  }
}