:root {
  --bg: #070913;
  --bg-2: #0d1224;
  --surface: rgba(17, 24, 46, 0.78);
  --surface-strong: #121a33;
  --border: rgba(148, 163, 184, 0.16);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #a855f7;
  --gold: #fbbf24;
  --radius: 20px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background:
    radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.14), transparent 38%),
    radial-gradient(circle at 85% 15%, rgba(168, 85, 247, 0.16), transparent 40%),
    radial-gradient(circle at 50% 95%, rgba(52, 211, 153, 0.1), transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 9, 19, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #070913;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.94rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 64px 0 36px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #67e8f9;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff 10%, #a5f3fc 55%, #d8b4fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Game Hub Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 24px 0 64px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent, var(--accent));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 28px color-mix(in srgb, var(--card-accent, #22d3ee) 28%, transparent);
}

.card-banner {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: #0b1020;
}

.card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.game-card:hover .card-banner img {
  transform: scale(1.05);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.game-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.card-head h2 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.card-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--card-accent, var(--accent));
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.card-desc {
  color: var(--muted);
  font-size: 0.94rem;
  flex: 1;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.74rem;
  color: var(--text);
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  transform: translateY(-2px);
}

.icon-btn-play {
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.icon-btn-play:hover {
  background: rgba(52, 211, 153, 0.18);
  border-color: #34d399;
}

.icon-btn-apple {
  opacity: 0.55;
  cursor: default;
  color: #cbd5e1;
}

.icon-btn-apple:hover {
  transform: none;
}

.icon-btn-web {
  background: color-mix(in srgb, var(--card-accent, #22d3ee) 20%, transparent);
  border-color: color-mix(in srgb, var(--card-accent, #22d3ee) 65%, transparent);
  color: #ffffff;
}

.icon-btn-web:hover {
  background: color-mix(in srgb, var(--card-accent, #22d3ee) 34%, transparent);
  border-color: var(--card-accent, var(--accent));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--card-accent, #22d3ee) 32%, transparent);
}

/* Game Detail Landing Page */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 20px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
}

.back-link:hover {
  color: var(--text);
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.detail-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.detail-icon {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.detail-identity h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900;
  line-height: 1.15;
}

.detail-subtitle {
  color: var(--card-accent, var(--accent));
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}

.detail-lead {
  color: #cbd5e1;
  font-size: 1.03rem;
  margin-bottom: 24px;
}

.platform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-web {
  background: linear-gradient(135deg, var(--card-accent, #22d3ee), #6366f1);
  color: #060913;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--card-accent, #22d3ee) 38%, transparent);
}

.btn-android {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

.btn-android:hover {
  background: rgba(52, 211, 153, 0.24);
}

.btn-apple {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
}

.btn-apple[aria-disabled="true"] {
  opacity: 0.72;
  cursor: default;
}

.btn-apple[aria-disabled="true"]:hover {
  transform: none;
}

.detail-art {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.detail-art img {
  width: 100%;
  height: auto;
  display: block;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 56px;
}

.feature-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.feature-box h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-box p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Privacy & Info Panel */
.prose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  margin: 28px 0 64px;
  box-shadow: var(--shadow);
}

.prose-card h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.prose-card h2 {
  font-size: 1.2rem;
  margin-top: 24px;
  margin-bottom: 8px;
  color: #67e8f9;
}

.prose-card p, .prose-card li {
  color: #cbd5e1;
  font-size: 0.96rem;
  margin-bottom: 8px;
}

.prose-card ul {
  padding-left: 20px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-inner a:hover {
  color: var(--text);
}

@media (max-width: 820px) {
  .detail-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}
