:root {
  --primary-500: oklch(0.683 0.170 0);
  --primary-600: oklch(0.598 0.169 0);
  --primary-700: oklch(0.515 0.149 0);
  --primary-100: oklch(0.950 0.033 0);
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --gray-50:  oklch(0.985 0 0);
  --gray-100: oklch(0.967 0.001 286);
  --gray-200: oklch(0.92 0.004 286);
  --gray-400: oklch(0.705 0.015 286);
  --gray-600: oklch(0.442 0.017 285);
  --gray-700: oklch(0.37 0.013 285);
  --gray-800: oklch(0.274 0.006 286);
  --gray-900: oklch(0.21 0.006 285);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gray-900); }
.brand-logo {
  width: 44px; height: 44px;
  display: block;
  object-fit: contain;
}
.brand-text strong { font-weight: 800; letter-spacing: 0.02em; }
.brand-sub { color: var(--gray-600); font-weight: 500; margin-left: 4px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--gray-700); text-decoration: none; font-weight: 600; font-size: 14px; transition: color .2s; }
.site-nav a:hover { color: var(--purple-600); }
.lang-btn {
  background: transparent;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.lang-btn:hover { border-color: var(--purple-500); color: var(--purple-600); }

/* Hero */
.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in oklch, var(--primary-500) 18%, transparent), transparent 50%),
    radial-gradient(circle at 85% 30%, color-mix(in oklch, var(--purple-500) 14%, transparent), transparent 50%),
    var(--gray-50);
}
.hero-inner { max-width: 760px; }
.eyebrow {
  display: inline-block;
  background: white;
  color: var(--primary-600);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
}
.lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--gray-600);
  max-width: 620px;
  margin: 0 0 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary {
  background: var(--primary-500);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
}
.btn-ghost:hover { border-color: var(--purple-500); color: var(--purple-600); }
.btn-link { background: transparent; color: var(--purple-600); padding: 8px 0; }
.btn-link:hover { color: var(--purple-700, var(--purple-600)); text-decoration: underline; }
.btn-block { width: 100%; }

/* Games */
.games { padding: 64px 0; }
.games h2 { font-size: 28px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; }
.muted { color: var(--gray-600); margin: 0 0 32px; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.game-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.game-art { height: 180px; position: relative; overflow: hidden; }
.game-art-multiping {
  background:
    radial-gradient(circle at 30% 50%, rgba(239,68,68,0.15), transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(59,130,246,0.15), transparent 60%),
    #0c0e14;
}
.art-paddle {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 60px;
  border-radius: 2px;
  transform: translateY(-50%);
  animation: paddle 2.4s ease-in-out infinite alternate;
}
.art-paddle-red { left: 16%; background: #ef4444; }
.art-paddle-blue { right: 16%; background: #3b82f6; animation-delay: -1.2s; }
.art-ball {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  transform: translate(-50%, -50%);
  animation: ball 1.6s ease-in-out infinite alternate;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}
@keyframes paddle {
  from { transform: translateY(-80%); }
  to   { transform: translateY(-20%); }
}
@keyframes ball {
  from { transform: translate(-260%, -120%); }
  to   { transform: translate(160%,  60%); }
}

/* Runners */
.game-art-runners {
  background: linear-gradient(180deg, #fde68a 0%, #fcd34d 60%, #f59e0b 100%);
  position: relative;
}
.art-ground {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, #b45309, #78350f);
  border-top: 2px solid #92400e;
}
.art-runner {
  position: absolute;
  bottom: 22%;
  width: 24px;
  height: 36px;
  border-radius: 6px 6px 4px 4px;
  animation: hop 0.7s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
.art-runner-back  { left: 28%; background: #ef4444; box-shadow: inset 0 -8px 0 rgba(0,0,0,0.15); animation-delay: -0.35s; }
.art-runner-front { left: 48%; background: #3b82f6; box-shadow: inset 0 -8px 0 rgba(0,0,0,0.15); }
@keyframes hop {
  from { transform: translateY(0) scaleY(1); }
  to   { transform: translateY(-22px) scaleY(0.96); }
}

/* Memory */
.game-art-card {
  background: linear-gradient(135deg, #818cf8, #c084fc);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 22px;
}
.art-card {
  border-radius: 10px;
  background: white;
  box-shadow: 0 4px 8px rgba(15,23,42,0.18);
  position: relative;
  animation: flip 2.4s ease-in-out infinite;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.art-card::before { content: '☆'; color: var(--purple-500); }
.art-card-1 { animation-delay: 0s; }
.art-card-2 { animation-delay: -0.6s; }
.art-card-3 { animation-delay: -1.2s; }
.art-card-4 { animation-delay: -1.8s; }
@keyframes flip {
  0%, 40%, 100% { transform: rotateY(0deg); }
  50%, 90%      { transform: rotateY(180deg); background: linear-gradient(135deg, #ef4444, #a855f7); }
}

/* Invaders / Chickmen */
.game-art-invaders {
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
  position: relative;
  overflow: hidden;
}
.game-art-invaders::before {
  /* starfield */
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, white, transparent),
    radial-gradient(1px 1px at 80% 20%, white, transparent),
    radial-gradient(1px 1px at 60% 60%, white, transparent),
    radial-gradient(1px 1px at 30% 80%, white, transparent),
    radial-gradient(1px 1px at 90% 70%, white, transparent);
  opacity: 0.7;
}
.art-chicken {
  position: absolute;
  font-size: 26px;
  top: 22%;
  animation: invade 3s ease-in-out infinite;
}
.art-chicken-1 { left: 22%; animation-delay: 0s; }
.art-chicken-2 { left: 46%; animation-delay: -1s; }
.art-chicken-3 { left: 70%; animation-delay: -2s; }
@keyframes invade {
  0%, 100% { transform: translateX(0) translateY(0); }
  50%      { transform: translateX(20px) translateY(8px); }
}
.art-shooter {
  position: absolute;
  bottom: 14%;
  left: 46%;
  font-size: 24px;
  animation: hover 1.4s ease-in-out infinite alternate;
}
@keyframes hover {
  from { transform: translateX(-12px); }
  to   { transform: translateX(12px); }
}
.art-shot {
  position: absolute;
  width: 3px; height: 12px;
  background: #f97316;
  left: calc(46% + 14px);
  bottom: 32%;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(249,115,22,0.8);
  animation: shoot 0.8s linear infinite;
}
@keyframes shoot {
  from { transform: translateY(40px); opacity: 0; }
  10%  { opacity: 1; }
  to   { transform: translateY(-60px); opacity: 0; }
}

.game-art-soon {
  background: repeating-linear-gradient(45deg, var(--gray-100) 0 12px, white 12px 24px);
  display: flex; align-items: center; justify-content: center;
}
.soon-tag {
  background: var(--gray-800);
  color: white;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.game-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.game-body h3 { margin: 0; font-size: 22px; font-weight: 800; }
.game-body p { margin: 0; color: var(--gray-600); font-size: 15px; flex: 1; }
.game-meta {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}
.game-meta li {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.game-meta li span { color: var(--gray-600); font-weight: 500; margin-right: 4px; }

/* About */
.about { padding: 56px 0; background: white; border-top: 1px solid var(--gray-200); }
.about h2 { font-size: 22px; font-weight: 800; margin: 0 0 12px; }
.about p { color: var(--gray-600); max-width: 720px; margin: 0 0 16px; }

/* Footer */
.site-footer { padding: 28px 0; border-top: 1px solid var(--gray-200); background: var(--gray-50); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.socials { display: flex; gap: 18px; }
.socials a { color: var(--gray-700); text-decoration: none; font-weight: 600; }
.socials a:hover { color: var(--purple-600); }

@media (max-width: 600px) {
  .site-nav a:nth-child(1), .site-nav a:nth-child(2) { display: none; }
}
