:root {
  --ink: #1a2430;
  --muted: #6b7380;
  --accent: #5b4db8;
  --bg: #ffffff;
  --soft: #f6f7fb;
  --line: rgba(26, 36, 48, 0.08);
  --font: "Poppins", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.logo img {
  width: 34px;
  height: 34px;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  color: rgba(255, 255, 255, 0.92);
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 0.75;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.hero-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(160deg, #2a3340 0%, #1a2430 45%, #121820 100%);
}

.blocks {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.blk {
  position: absolute;
  width: clamp(72px, 10vw, 120px);
  aspect-ratio: 1;
  border-radius: 22%;
  display: grid;
  place-items: center;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.28),
    inset 0 -8px 0 rgba(0, 0, 0, 0.18),
    0 18px 40px rgba(0, 0, 0, 0.35);
  animation: float 6s ease-in-out infinite;
}

.b-orange { background: linear-gradient(160deg, #ff9a4a, #f06a1a); top: 22%; left: 18%; transform: rotate(-12deg); }
.b-blue { background: linear-gradient(160deg, #5aa7ff, #2f6fd6); top: 28%; right: 20%; transform: rotate(10deg); animation-delay: -1s; }
.b-green { background: linear-gradient(160deg, #62d38a, #2ea85a); bottom: 26%; left: 26%; transform: rotate(8deg); animation-delay: -2s; }
.b-red { background: linear-gradient(160deg, #ff6b6b, #d94444); bottom: 22%; right: 24%; transform: rotate(-8deg); animation-delay: -0.5s; }
.b-yellow { background: linear-gradient(160deg, #ffd56a, #f0b429); top: 48%; left: 44%; transform: rotate(4deg); animation-delay: -1.5s; width: clamp(88px, 12vw, 140px); }
.b-teal { background: linear-gradient(160deg, #5ed0c4, #2f9f96); top: 58%; left: 58%; transform: rotate(-16deg); animation-delay: -2.5s; }

.pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #ffd56a 50%, #c98912);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.p1 { top: 36%; left: 36%; }
.p2 { top: 52%; right: 34%; }
.p3 { bottom: 34%; left: 48%; }

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(18, 24, 32, 0.15), rgba(18, 24, 32, 0.72) 70%),
    linear-gradient(180deg, rgba(18, 24, 32, 0.35) 0%, transparent 30%, rgba(18, 24, 32, 0.55) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 6rem 1.5rem 4rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  opacity: 0.92;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: -3.5rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 3;
}

.stat {
  background: #fff;
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: 0 16px 40px rgba(26, 36, 48, 0.1);
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat span {
  display: block;
  margin-top: 0.45rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
}

.games,
.about,
.contact {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 2rem;
}

.games h2,
.contact h2 {
  margin: 0 0 2rem;
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about h2 {
  margin: 0 0 1.5rem;
  text-align: left;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  margin: 0;
}

.thumb {
  aspect-ratio: 1.15 / 1;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 14px 34px rgba(26, 36, 48, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover .thumb {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(26, 36, 48, 0.16);
}

.thumb-a {
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0.15), transparent 40%),
    linear-gradient(160deg, #5a4030, #2d2118);
}

.thumb-b {
  background: linear-gradient(160deg, #2a1f55, #17122f 70%);
}

.thumb-c {
  background: linear-gradient(160deg, #1f4a45, #12302c 70%);
}

.thumb-ui {
  position: absolute;
  inset: 18% 14%;
}

.t-blk {
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 18%;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 10px 18px rgba(0, 0, 0, 0.25);
}

.t-blk.o { background: linear-gradient(160deg, #ff9a4a, #f06a1a); top: 8%; left: 8%; transform: rotate(-10deg); }
.t-blk.b { background: linear-gradient(160deg, #5aa7ff, #2f6fd6); top: 28%; right: 10%; transform: rotate(12deg); }
.t-blk.g { background: linear-gradient(160deg, #62d38a, #2ea85a); bottom: 8%; left: 28%; transform: rotate(6deg); }

.t-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  top: 20%;
  left: 42%;
  background: radial-gradient(circle at 30% 30%, #fff, #ffd56a 55%, #c98912);
}

.t-pin.t2 {
  top: 48%;
  left: 58%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.grid i {
  display: block;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffd56a, #f0b429);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.grid i:nth-child(2n) {
  background: linear-gradient(145deg, #9b8cff, #5b4db8);
}

.grid i:nth-child(3n) {
  background: linear-gradient(145deg, #7be0d4, #2f9f96);
}

.orbit {
  display: grid;
  place-items: center;
}

.orbit .ring {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 213, 106, 0.55);
}

.orbit .r2 {
  width: 72%;
  border-style: dashed;
  border-color: rgba(126, 224, 212, 0.5);
}

.orbit .core {
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #ffd56a 55%, #f06a1a);
  box-shadow: 0 0 20px rgba(255, 213, 106, 0.45);
}

.card h3 {
  margin: 1rem 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.about {
  padding-top: 4.5rem;
  padding-bottom: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  align-items: stretch;
}

.about-panel {
  background: #fff;
  border-radius: 24px;
  padding: 2rem 1.85rem;
  box-shadow: 0 16px 40px rgba(26, 36, 48, 0.08);
  border: 1px solid var(--line);
}

.about-panel p {
  margin: 0 0 1.05rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #4a5562;
}

.about-panel p:last-child {
  margin-bottom: 0;
}

.about-end {
  margin-top: 1.4rem !important;
  font-weight: 700;
  color: var(--ink) !important;
}

.about-visual {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 15%, rgba(91, 77, 184, 0.12), transparent 40%),
    radial-gradient(circle at 20% 85%, rgba(255, 154, 74, 0.14), transparent 42%),
    linear-gradient(160deg, #f4f6fb, #eef1f8);
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(58%, 210px);
  aspect-ratio: 9 / 17;
  border-radius: 28px;
  background: #1a2430;
  padding: 10px;
  box-shadow: 0 24px 50px rgba(26, 36, 48, 0.28);
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 8px;
  border-radius: 999px;
  background: #0f151c;
  z-index: 3;
}

.phone-screen {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(165deg, #2d3848, #1a2430 70%);
  padding: 1.6rem 0.8rem 0.9rem;
  color: #fff;
}

.lvl {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.85;
  text-align: center;
}

.bar {
  margin: 0.45rem auto 0.9rem;
  width: 70%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.bar span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9a4a, #ffd56a);
}

.board {
  position: relative;
  height: 58%;
  margin: 0 0.2rem;
}

.sq {
  position: absolute;
  width: 34%;
  aspect-ratio: 1.5;
  border-radius: 10px;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.25);
}

.sq.o { background: linear-gradient(135deg, #ff9a4a, #f06a1a); top: 8%; left: 8%; transform: rotate(-14deg); }
.sq.b { background: linear-gradient(135deg, #5aa7ff, #2f6fd6); top: 22%; right: 6%; transform: rotate(12deg); width: 30%; }
.sq.g { background: linear-gradient(135deg, #62d38a, #2ea85a); top: 42%; left: 22%; transform: rotate(8deg); width: 36%; }
.sq.y { background: linear-gradient(135deg, #ffd56a, #f0b429); top: 58%; right: 12%; transform: rotate(-8deg); width: 28%; }
.sq.r { background: linear-gradient(135deg, #ff6b6b, #d94444); bottom: 4%; left: 10%; transform: rotate(6deg); width: 32%; }
.sq.t { background: linear-gradient(135deg, #5ed0c4, #2f9f96); bottom: 10%; right: 18%; transform: rotate(-16deg); width: 26%; }

.dot {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #ffd56a 55%, #c98912);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.d1 { top: 14%; left: 40%; }
.d2 { top: 40%; left: 58%; }
.d3 { top: 62%; left: 34%; }

.hint {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.deco {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.deco-a {
  width: 120px;
  height: 120px;
  top: -20px;
  right: -10px;
  background: rgba(91, 77, 184, 0.18);
}

.deco-b {
  width: 90px;
  height: 90px;
  bottom: 20px;
  left: -10px;
  background: rgba(255, 154, 74, 0.2);
}

.chip {
  position: absolute;
  z-index: 2;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(26, 36, 48, 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}

.c1 {
  top: 18%;
  left: 8%;
  transform: rotate(-8deg);
}

.c2 {
  bottom: 16%;
  right: 8%;
  transform: rotate(7deg);
  color: var(--accent);
}

.contact {
  text-align: center;
  padding-bottom: 4rem;
}

.contact-label {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.mail {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  transition: opacity 0.2s ease;
}

.mail:hover {
  opacity: 0.75;
}

.facts {
  margin: 2rem auto 0;
  max-width: 520px;
  text-align: left;
  display: grid;
  gap: 1rem;
}

.facts > div {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.foot {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 1.5rem;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
}

.foot-brand img {
  border-radius: 0;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  font-weight: 500;
}

.foot-nav a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .nav {
    gap: 0.8rem;
    font-size: 0.8rem;
  }

  .stats,
  .gallery,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about h2 {
    text-align: center;
  }

  .about-visual {
    min-height: 360px;
  }

  .stats {
    margin-top: -2rem;
  }

  .hero {
    min-height: 78vh;
  }

  .b-yellow,
  .b-teal {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
