:root {
  --bg: #0f0f14;
  --panel: #191922;
  --panel-2: #22222e;
  --border: #2c2c3a;
  --text: #ececf1;
  --muted: #a3a3b5;
  --red: #e63946;
  --red-2: #ff6b6b;
  --ring: #ffb4a2;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg) radial-gradient(1200px 600px at 80% -10%, rgba(230, 57, 70, 0.16), transparent 60%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; }
.brand span b { color: var(--red); }
.nav-links { display: flex; gap: 18px; font-size: 0.95rem; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 32px; padding: 40px 0 56px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--red); }
.hero p { font-size: 1.15rem; color: var(--muted); margin: 0 0 26px; max-width: 520px; }
.hero-art { display: grid; place-items: center; }
.hero-art img { width: min(320px, 70vw); height: auto; filter: drop-shadow(0 20px 50px rgba(230, 57, 70, 0.35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 700;
  padding: 13px 22px; border-radius: 12px; min-height: 48px;
  transition: transform 0.1s, background-color 0.15s;
}
.btn:hover { background: #f04a56; }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text); margin-left: 8px; }
.btn.ghost:hover { border-color: var(--muted); }

h2 { font-size: 1.5rem; margin: 0 0 18px; letter-spacing: -0.01em; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform 0.15s, border-color 0.15s;
}
a.card:hover { transform: translateY(-4px); border-color: var(--red); }
.thumb { aspect-ratio: 16 / 10; display: grid; place-items: center; font-weight: 800; font-size: 2.4rem; color: #fff; }
.thumb.t2048 { background: #edc22e; text-shadow: 0 2px 12px rgba(120, 80, 0, 0.35); }
.thumb.tdaily { background: #f67c5f; }
.thumb.tsoon { background: var(--panel-2); color: var(--muted); font-size: 1.1rem; }
.card-body { padding: 14px 16px 18px; }
.card-body h3 { margin: 0 0 4px; font-size: 1.1rem; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.tag { display: inline-block; margin-top: 10px; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(230, 57, 70, 0.15); color: var(--red-2); }
.card.soon { opacity: 0.6; }

section { padding: 28px 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 24px 0 40px; color: var(--muted); font-size: 0.9rem; }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--muted); }

.not-found { text-align: center; padding: 14vh 0; }
.not-found img { width: 120px; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 16px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; }
  .hero-art img { width: 180px; }
  .nav-links { display: none; }
  .btn.ghost { margin: 10px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }
