/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:        #0d0f14;
  --surface:   #151821;
  --surface2:  #1c2030;
  --border:    rgba(255,255,255,.07);
  --txt:       #e8eaf0;
  --muted:     #8890a4;
  --accent-1:  #6c63ff;   /* Team Fight – purple */
  --accent-2:  #ff6b35;   /* Bag Hero   – orange */
  --accent-3:  #22c55e;   /* Watermelon – green  */
  --radius:    14px;
  --max:       1160px;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout helpers ──────────────────────────────────────── */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}

/* ── Language Switch ─────────────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-switch-sep {
  color: var(--border);
  user-select: none;
  font-size: .8rem;
  padding: 0 2px;
}
.lang-switch-btn {
  margin: 0;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .8rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.lang-switch-btn:hover { color: var(--txt); }
.lang-switch-btn.is-active {
  color: var(--accent-1);
  background: rgba(108,99,255,.14);
  font-weight: 600;
  border-color: rgba(108,99,255,.3);
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,15,20,.88);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.nav-logo {
  font-size: 1rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--txt);
}
.nav-logo span { color: var(--accent-1); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: .875rem; color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--txt); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 112px 0 88px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(108,99,255,.18) 0%, transparent 65%),
    var(--bg);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 99px;
  background: rgba(108,99,255,.12); border: 1px solid rgba(108,99,255,.3);
  font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: #a5a0ff;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-1);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 900; letter-spacing: -.04em;
  line-height: 1.1; margin-bottom: 24px;
}
.hero h1 .hl { color: var(--accent-1); }
.hero-lead {
  font-size: clamp(1rem, 2vw, 1.175rem);
  color: var(--muted); max-width: 600px;
  margin: 0 auto 44px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding: 12px 30px; border-radius: 9px;
  background: var(--accent-1); color: #fff;
  font-size: .95rem; font-weight: 700;
  transition: opacity .2s, transform .15s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-ghost {
  padding: 12px 30px; border-radius: 9px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .95rem; font-weight: 600;
  transition: border-color .2s, color .2s, transform .15s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.22); color: var(--txt); transform: translateY(-1px); }

/* ── Games grid ──────────────────────────────────────────── */
.games-section { background: var(--bg); }
.games-section .container { max-width: 1480px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900; letter-spacing: -.04em;
  margin-bottom: 14px;
}
.section-header p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.45);
}
.game-card:hover .game-card-banner { filter: brightness(1.08); }

/* coloured accent top bar */
.game-card-banner {
  height: 5px;
  transition: filter .25s;
}
.game-card--tf .game-card-banner  { background: linear-gradient(90deg, var(--accent-1), #a78bfa); }
.game-card--bh .game-card-banner  { background: linear-gradient(90deg, var(--accent-2), #fbbf24); }
.game-card--wm .game-card-banner  { background: linear-gradient(90deg, var(--accent-3), #86efac); }

.game-card--tf:hover { border-color: rgba(108,99,255,.4); }
.game-card--bh:hover { border-color: rgba(255,107,53,.4); }
.game-card--wm:hover { border-color: rgba(34,197,94,.4); }

/* ── Game Card Showcases ─────────────────────────────────── */
.game-card-showcase {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

/* ── Team Fight: Battle Scene ────────────────────────────── */
.tf-showcase { background: var(--surface2); }

.gc-map-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.gc-map-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg,
    rgba(13,15,20,.80) 0%,
    rgba(13,15,20,.38) 50%,
    rgba(13,15,20,.72) 100%);
}
.gc-hero-formation {
  position: absolute; bottom: 16px; left: 16px;
  display: flex; align-items: flex-end; gap: 8px; z-index: 2;
}
.gc-hero-unit {
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(108,99,255,.22);
  border: 1px solid rgba(108,99,255,.40);
  backdrop-filter: blur(6px);
  animation: gc-float 4s ease-in-out infinite;
  box-shadow: 0 6px 18px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07);
}
.gc-hero-unit img { object-fit: contain; image-rendering: pixelated; }
.gc-unit-lg { width: 60px; height: 60px; animation-delay: 0s; }
.gc-unit-sm { width: 44px; height: 44px; animation-delay: .5s; }

.gc-enemy-cluster {
  position: absolute; bottom: 16px; right: 16px;
  display: flex; align-items: flex-end; gap: 8px; z-index: 2;
}
.gc-enemy-unit {
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(248,113,113,.22);
  border: 1px solid rgba(248,113,113,.40);
  backdrop-filter: blur(6px);
  animation: gc-float 3.5s ease-in-out infinite;
  box-shadow: 0 6px 18px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07);
}
.gc-enemy-unit img { object-fit: contain; image-rendering: pixelated; }

.gc-vs-badge {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px; font-weight: 900; letter-spacing: .12em;
  color: #fde68a; padding: 5px 10px; border-radius: 7px;
  background: rgba(245,158,11,.2);
  border: 1px solid rgba(245,158,11,.45);
  backdrop-filter: blur(6px);
  z-index: 3;
}
.gc-game-logo {
  position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  height: 50px; width: auto; max-width: 136px;
  object-fit: contain; z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.7));
}

/* ── Bag Hero: Hero + Mini Bag Grid ──────────────────────── */
.bh-showcase {
  background:
    radial-gradient(circle at 72% 50%, rgba(255,107,53,.10) 0%, transparent 55%),
    linear-gradient(135deg, #0d1520, #0a1420);
}
.bh-showcase::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(10,20,32,.72) 0%,
    rgba(10,20,32,.30) 42%,
    rgba(10,20,32,.00) 100%);
  pointer-events: none; z-index: 1;
}
.gc-bh-hero-img {
  position: absolute; right: 0; top: 0;
  height: 100%; width: 58%;
  object-fit: contain; object-position: right center;
  filter: drop-shadow(-6px 0 18px rgba(0,0,0,.55));
  z-index: 0;
}
.gc-bh-bag-wrap {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
}

/* 3×3 grid: 40px cells + 5px gap = 130px total */
.gc-bag-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 40px);
  grid-template-rows: repeat(3, 40px);
  gap: 5px;
  width: 130px; height: 130px;
}
.gc-bag-cell {
  border-radius: 7px;
  border: 1.5px solid rgba(255,255,255,.14);
  animation: gc-slot-float 4s ease-in-out infinite;
}
.gc-sword-cell     { background: rgba(96,165,250,.18);  border-color: rgba(96,165,250,.42); }
.gc-sword-cell:nth-child(4) { animation-delay: .44s; }
.gc-axe-cell       { background: rgba(251,146,60,.18);  border-color: rgba(251,146,60,.42);  animation-delay: .3s; }
.gc-dart-cell      { background: rgba(250,204,21,.18);  border-color: rgba(250,204,21,.42);  animation-delay: .6s; }
.gc-dagger-cell    { background: rgba(192,132,252,.18); border-color: rgba(192,132,252,.42); animation-delay: .9s; }
.gc-dagger-cell:nth-child(8) { animation-delay: 1.1s; }
.gc-gauntlet-cell  { background: rgba(248,113,113,.18); border-color: rgba(248,113,113,.42); animation-delay: 1.3s; }

/* Weapon overlays: step = 40 + 5 = 45px */
.gc-bag-weapon-wrap {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.gc-bag-weapon-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.6));
}
/* sword: 1 wide × 2 tall  (40×85) */
.gc-sword-wrap    { left: 0;    top: 0;    width: 40px; height: 85px; padding: 6px 4px; }
/* axe:   2×2 bounding box (85×85) */
.gc-axe-wrap      { left: 45px; top: 0;    width: 85px; height: 85px;
                    padding: 0 0 18px 22px;
                    align-items: flex-start; justify-content: flex-end; }
.gc-axe-wrap img  { transform: translate(-6px, 6px); }
/* dart:  1×1 (40×40) */
.gc-dart-wrap     { left: 45px; top: 45px; width: 40px; height: 40px; padding: 7px; z-index: 1; }
/* dagger: 2 wide × 1 tall (85×40) */
.gc-dagger-wrap   { left: 0;    top: 90px; width: 85px; height: 40px; padding: 4px 7px; }
/* gauntlet: 1×1 (40×40) */
.gc-gauntlet-wrap { left: 90px; top: 90px; width: 40px; height: 40px; padding: 7px; }

/* ── Merge Watermelon: Fruit Orbit ───────────────────────── */
.wm-showcase {
  background:
    radial-gradient(circle at 52% 52%, rgba(34,197,94,.16) 0%, transparent 62%),
    linear-gradient(160deg, #040d07 0%, #0a1520 100%);
}
.gc-wm-scene { position: absolute; inset: 0; }

.gc-wm-fruit {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.gc-wm-fruit img { object-fit: contain; display: block; }

/* Central watermelon */
.gc-wm-main {
  width: 88px; height: 88px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(34,197,94,.14);
  border-color: rgba(34,197,94,.38);
  box-shadow: 0 0 32px rgba(34,197,94,.22), inset 0 1px 0 rgba(255,255,255,.08);
  z-index: 2;
  animation: gc-wm-pulse 3.5s ease-in-out infinite;
}
.gc-wm-main img { width: 66px; height: 66px; }

/* Satellite fruits */
.gc-wm-grape {
  width: 32px; height: 32px;
  left: 11%; top: 16%;
  animation: gc-float 3s ease-in-out infinite;
  animation-delay: .2s;
}
.gc-wm-grape img { width: 22px; height: 22px; }

.gc-wm-lemon {
  width: 42px; height: 42px;
  left: 5%; bottom: 14%;
  animation: gc-float 3.6s ease-in-out infinite;
  animation-delay: .55s;
}
.gc-wm-lemon img { width: 30px; height: 30px; }

.gc-wm-orange {
  width: 52px; height: 52px;
  right: 9%; top: 12%;
  animation: gc-float 4.2s ease-in-out infinite;
  animation-delay: .8s;
}
.gc-wm-orange img { width: 38px; height: 38px; }

.gc-wm-pine {
  width: 62px; height: 62px;
  right: 5%; bottom: 10%;
  animation: gc-float 3.9s ease-in-out infinite;
  animation-delay: 1.15s;
}
.gc-wm-pine img { width: 46px; height: 46px; }

.gc-wm-label {
  position: absolute; bottom: 9px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px; font-weight: 800; letter-spacing: .13em;
  color: rgba(134,239,172,.70);
  text-shadow: 0 0 8px rgba(34,197,94,.45);
  white-space: nowrap; z-index: 2;
}

/* ── Showcase hover states ───────────────────────────────── */
.game-card--tf:hover .gc-map-bg     { filter: brightness(1.06); }
.game-card--bh:hover .gc-bh-hero-img { filter: drop-shadow(-6px 0 22px rgba(0,0,0,.6)) brightness(1.06); }

/* ── Animations ──────────────────────────────────────────── */
@keyframes gc-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes gc-slot-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}
@keyframes gc-wm-pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(34,197,94,.18); }
  50%       { box-shadow: 0 0 44px rgba(34,197,94,.40); }
}

.game-body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.game-tag {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: 14px;
}
.game-card--tf .game-tag { background: rgba(108,99,255,.15); color: #a5a0ff; }
.game-card--bh .game-tag { background: rgba(255,107,53,.15); color: #ffb08a; }
.game-card--wm .game-tag { background: rgba(34,197,94,.15);  color: #86efac; }

.game-body h3 {
  font-size: 1.45rem; font-weight: 800;
  letter-spacing: -.03em; margin-bottom: 10px;
}
.game-body p {
  color: var(--muted); font-size: .93rem;
  line-height: 1.65; margin-bottom: 24px; flex: 1;
}
.game-features {
  list-style: none; display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 28px;
}
.game-features li {
  font-size: .83rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.game-features li::before {
  content: ""; flex-shrink: 0;
  width: 5px; height: 5px; border-radius: 50%;
}
.game-card--tf .game-features li::before { background: var(--accent-1); }
.game-card--bh .game-features li::before { background: var(--accent-2); }
.game-card--wm .game-features li::before { background: var(--accent-3); }

.game-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .875rem; font-weight: 700;
  padding: 10px 20px; border-radius: 8px;
  align-self: flex-start;
  transition: opacity .2s, transform .15s;
}
.game-link::after { content: "→"; }
.game-card--tf .game-link { background: rgba(108,99,255,.15); color: #a5a0ff; }
.game-card--bh .game-link { background: rgba(255,107,53,.15); color: #ffb08a; }
.game-card--wm .game-link { background: rgba(34,197,94,.15);  color: #86efac; }
.game-link:hover { opacity: .8; transform: translateX(3px); }

/* ── About / company ─────────────────────────────────────── */
.about-section {
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(108,99,255,.12) 0%, transparent 65%),
    var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900; letter-spacing: -.04em;
  margin-bottom: 18px; line-height: 1.15;
}
.about-copy h2 em { font-style: normal; color: var(--accent-1); }
.about-copy p {
  color: var(--muted); font-size: 1rem;
  line-height: 1.75; margin-bottom: 14px;
}
.about-copy .contact-row {
  display: flex; flex-direction: column; gap: 8px; margin-top: 28px;
}
.contact-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .875rem; color: var(--muted);
}
.contact-item .dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.contact-item a { color: var(--txt); transition: color .2s; }
.contact-item a:hover { color: var(--accent-1); }

.about-cards { display: flex; flex-direction: column; gap: 16px; }
.about-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 22px 24px;
  display: flex; align-items: flex-start; gap: 16px;
}
.about-card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.about-card-icon.purple { background: rgba(108,99,255,.15); }
.about-card-icon.orange { background: rgba(255,107,53,.15); }
.about-card-icon.green  { background: rgba(34,197,94,.15); }
.about-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.about-card p  { font-size: .83rem; color: var(--muted); line-height: 1.55; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-inner--center { justify-content: center; flex-direction: column; align-items: center; gap: 6px; }
.footer-copy { font-size: .78rem; color: var(--muted); text-align: center; }
.footer-address { font-size: .75rem; color: var(--muted); text-align: center; letter-spacing: .02em; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .hero { padding: 72px 0 56px; }
  .section { padding: 64px 0; }
}
