:root {
  --bg: #f7f8ff;
  --surface: #ffffff;
  --surface-soft: #f0f2ff;
  --text: #20223a;
  --muted: #696d88;
  --primary: #705cf6;
  --primary-dark: #5541dd;
  --secondary: #ff6ea8;
  --accent: #25c7a7;
  --border: #e4e6f2;
  --shadow: 0 22px 60px rgba(58, 48, 120, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: inherit; }
button, input, select { font: inherit; }

.background-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(10px);
  opacity: .45;
}
.shape-one { width: 420px; height: 420px; background: #d9d2ff; top: -180px; right: -80px; }
.shape-two { width: 360px; height: 360px; background: #ffd6e7; bottom: -160px; left: -100px; }

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 20px;
  box-shadow: 0 12px 38px rgba(40, 35, 85, .08);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 14px;
  z-index: 20;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.28rem; font-weight: 900; }
.logo > span:last-child > span { color: var(--primary); }
.logo-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 9px 20px rgba(112, 92, 246, .25);
}
.main-menu { display: flex; gap: 8px; }
.main-menu a { text-decoration: none; color: var(--muted); font-weight: 700; padding: 10px 14px; border-radius: 12px; }
.main-menu a:hover { color: var(--primary); background: var(--surface-soft); }
.menu-button { display: none; border: 0; background: transparent; padding: 8px; }
.menu-button span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px; }

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 76px 0 56px;
}
.eyebrow { margin: 0 0 14px; color: var(--primary); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.hero h1, .section-heading h2, .about-card h2 { margin: 0; line-height: 1.05; }
.hero h1 { font-size: clamp(3.2rem, 7vw, 6.5rem); letter-spacing: -.065em; }
.hero h1 span { color: var(--primary); }
.hero-text { max-width: 680px; color: var(--muted); font-size: 1.12rem; line-height: 1.75; margin: 26px 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.primary-button, .secondary-button {
  text-decoration: none; font-weight: 900; padding: 15px 21px; border-radius: 15px; transition: .2s ease;
}
.primary-button { color: #fff; background: var(--primary); box-shadow: 0 14px 28px rgba(112, 92, 246, .28); }
.primary-button:hover { transform: translateY(-2px); background: var(--primary-dark); }
.secondary-button { background: #fff; border: 1px solid var(--border); }
.secondary-button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(34, 30, 78, .09); }

.hero-card {
  height: 500px;
  position: relative;
  border-radius: 42px;
  background: linear-gradient(145deg, #ece9ff, #fff4f8);
  box-shadow: var(--shadow);
  border: 1px solid #fff;
  overflow: hidden;
}
.hero-card::before, .hero-card::after { content:""; position:absolute; border-radius:50%; background:rgba(255,255,255,.62); }
.hero-card::before { width:260px; height:260px; top:-100px; left:-70px; }
.hero-card::after { width:220px; height:220px; bottom:-90px; right:-40px; }
.hero-center {
  position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%);
  width:150px; height:150px; display:grid; place-items:center; font-size:4.5rem;
  border-radius:42px; background:#fff; box-shadow:0 24px 50px rgba(65,50,120,.18); z-index:2;
}
.floating-card {
  position:absolute; z-index:3; min-width:130px; padding:15px 18px; border-radius:20px; background:rgba(255,255,255,.92);
  box-shadow:0 16px 32px rgba(58,48,120,.14); font-size:2rem; display:flex; align-items:center; gap:10px;
  animation: float 4.5s ease-in-out infinite;
}
.floating-card span { font-size:.92rem; font-weight:900; }
.card-one { top:42px; left:34px; }
.card-two { top:75px; right:28px; animation-delay:.5s; }
.card-three { bottom:75px; left:24px; animation-delay:1s; }
.card-four { bottom:42px; right:34px; animation-delay:1.5s; }
@keyframes float { 0%,100% { transform:translateY(0) rotate(-1deg); } 50% { transform:translateY(-12px) rotate(1deg); } }

.section { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 90px 0; }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading h2, .about-card h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -.045em; }
.section-heading > p:last-child, .about-card p { color: var(--muted); line-height: 1.75; }
.section-heading code { padding: 3px 7px; border-radius: 7px; background: #ececff; color: var(--primary-dark); }
.toolbar { display:flex; justify-content:space-between; gap:14px; margin-bottom:28px; }
.search-box { flex:1; display:flex; align-items:center; gap:10px; padding:0 15px; background:#fff; border:1px solid var(--border); border-radius:15px; }
.search-box input { width:100%; border:0; outline:0; background:transparent; padding:14px 0; color:var(--text); }
.toolbar select { min-width:220px; padding:14px 40px 14px 14px; border:1px solid var(--border); border-radius:15px; background:#fff; color:var(--text); outline:0; }
.games-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:24px; }
.game-card {
  background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden;
  box-shadow:0 12px 32px rgba(44,38,90,.07); transition:.22s ease; display:grid; grid-template-columns:165px 1fr;
}
.game-card:hover { transform:translateY(-6px); box-shadow:var(--shadow); }
.game-visual { min-height:100%; position:relative; display:grid; place-items:center; font-size:4.3rem; background:linear-gradient(145deg, var(--card-color, #e9e5ff), #fff); }
.game-status { position:absolute; top:13px; left:13px; font-size:.72rem; font-weight:900; padding:6px 9px; border-radius:999px; color:#146956; background:#d9fff5; }
.game-content { padding:24px; }
.game-meta { display:flex; gap:8px; flex-wrap:wrap; color:var(--muted); font-size:.78rem; font-weight:800; }
.game-category, .game-players { background:var(--surface-soft); padding:6px 9px; border-radius:999px; }
.game-title { margin:15px 0 10px; font-size:1.45rem; }
.game-description { color:var(--muted); line-height:1.6; margin:0 0 15px; }
.game-tags { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:20px; }
.game-tags span { font-size:.72rem; color:var(--primary-dark); background:#f0edff; padding:5px 8px; border-radius:8px; font-weight:800; }
.game-link { display:inline-flex; align-items:center; gap:8px; color:var(--primary); text-decoration:none; font-weight:900; }
.game-link:hover span { transform:translateX(4px); }
.game-link span { transition:.2s ease; }
.empty-message { text-align:center; padding:40px; color:var(--muted); }

.about-card { display:grid; grid-template-columns:1fr auto; gap:45px; align-items:center; padding:55px; background:#20223a; color:#fff; border-radius:36px; box-shadow:var(--shadow); }
.about-card p { color:#c7c9d8; }
.about-icon { width:180px; height:180px; display:grid; place-items:center; border-radius:48px; font-size:5rem; background:linear-gradient(145deg, var(--primary), var(--secondary)); }
.site-footer { width:min(1180px, calc(100% - 32px)); margin:0 auto; padding:28px 0 42px; border-top:1px solid var(--border); display:flex; justify-content:space-between; gap:18px; color:var(--muted); font-size:.9rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns:1fr; padding-top:65px; }
  .hero-card { height:430px; }
  .games-grid { grid-template-columns:1fr; }
}
@media (max-width: 650px) {
  .site-header { align-items:center; }
  .menu-button { display:block; }
  .main-menu { display:none; position:absolute; top:70px; left:0; right:0; padding:12px; background:#fff; border-radius:16px; box-shadow:var(--shadow); flex-direction:column; }
  .main-menu.open { display:flex; }
  .hero { min-height:auto; gap:36px; }
  .hero h1 { font-size:3.5rem; }
  .hero-card { height:340px; }
  .hero-center { width:105px; height:105px; font-size:3rem; border-radius:30px; }
  .floating-card { min-width:95px; padding:11px; font-size:1.45rem; }
  .floating-card span { font-size:.72rem; }
  .card-one { top:28px; left:18px; }
  .card-two { top:48px; right:14px; }
  .card-three { bottom:52px; left:12px; }
  .card-four { bottom:25px; right:18px; }
  .toolbar { flex-direction:column; }
  .toolbar select { width:100%; }
  .game-card { grid-template-columns:1fr; }
  .game-visual { min-height:180px; }
  .about-card { grid-template-columns:1fr; padding:32px 25px; }
  .about-icon { width:110px; height:110px; font-size:3rem; border-radius:30px; }
  .site-footer { flex-direction:column; }
}

.game-link.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.5);
}
