:root {
  --bg-dark: #070d18;
  --bg-card: #0c1729;
  --bg-card-hover: #112038;
  --border-color: #1a2f4c;
  --border-glow: #2ad4ff;
  --text-main: #f0f6fc;
  --text-muted: #8ba2be;
  --cyan-glow: #2ad4ff;
  --gold-glow: #ffbe2e;
  --ice-glow: #56ccf2;
  --ocean-glow: #ff9924;
}

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

html {
  height: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  padding-bottom: 60px;
}

.glow-bg {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 500px;
  background: radial-gradient(circle, rgba(42, 212, 255, 0.08) 0%, rgba(255, 190, 46, 0.03) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  background: rgba(7, 13, 24, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  font-size: 26px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #103254, #194672);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(42, 212, 255, 0.25);
}

.brand-title {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #2ad4ff, #ffbe2e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 36px 0 80px;
  display: flex;
  align-items: center;
}

.section-header {
  margin-bottom: 40px;
  text-align: center;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.page-sub {
  font-size: 15px;
  color: var(--text-muted);
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(42, 212, 255, 0.18);
}

.card-media {
  position: relative;
  height: 190px;
  background: #081424;
  overflow: hidden;
}

.media-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 13, 24, 0.15) 0%, rgba(12, 23, 41, 0.95) 100%);
}

.game-icon {
  position: absolute;
  bottom: 16px;
  left: 20px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 2px solid #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  object-fit: cover;
  z-index: 2;
  background: #091a2c;
}

.card-body {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.genre-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  width: fit-content;
}

.genre-ice {
  background: rgba(86, 204, 242, 0.14);
  border: 1px solid rgba(86, 204, 242, 0.35);
  color: var(--ice-glow);
}

.genre-ocean {
  background: rgba(0, 210, 255, 0.14);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: var(--cyan-glow);
}

.genre-tactical {
  background: rgba(255, 179, 71, 0.14);
  border: 1px solid rgba(255, 179, 71, 0.35);
  color: #ffb347;
}

.genre-gold {
  background: rgba(255, 207, 92, 0.14);
  border: 1px solid rgba(255, 207, 92, 0.35);
  color: #ffcf5c;
}

.genre-lotus {
  background: rgba(236, 72, 153, 0.14);
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: #f472b6;
}

.game-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.native-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.card-actions {
  margin-top: auto;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  color: #fff;
  gap: 8px;
}

.btn-ice {
  background: linear-gradient(135deg, #1e88e5, #00acc1);
  box-shadow: 0 4px 16px rgba(30, 136, 229, 0.35);
}

.btn-ice:hover {
  background: linear-gradient(135deg, #2196f3, #26c6da);
  box-shadow: 0 6px 20px rgba(30, 136, 229, 0.55);
  transform: translateY(-2px);
}

.btn-ocean {
  background: linear-gradient(135deg, #ff9924, #d84315);
  box-shadow: 0 4px 16px rgba(255, 153, 36, 0.35);
}

.btn-ocean:hover {
  background: linear-gradient(135deg, #ffa726, #f4511e);
  box-shadow: 0 6px 20px rgba(255, 153, 36, 0.55);
  transform: translateY(-2px);
}

.btn-tactical {
  background: linear-gradient(135deg, #e65100, #ff8f00);
  box-shadow: 0 4px 16px rgba(230, 81, 0, 0.35);
}

.btn-tactical:hover {
  background: linear-gradient(135deg, #f4511e, #ffa000);
  box-shadow: 0 6px 20px rgba(230, 81, 0, 0.55);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #d4942a, #ffb300);
  box-shadow: 0 4px 16px rgba(212, 148, 42, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #e6a100, #ffc107);
  box-shadow: 0 6px 20px rgba(212, 148, 42, 0.55);
  transform: translateY(-2px);
}

.btn-lotus {
  background: linear-gradient(135deg, #c026d3, #e11d48);
  box-shadow: 0 4px 16px rgba(192, 38, 211, 0.35);
}

.btn-lotus:hover {
  background: linear-gradient(135deg, #d946ef, #f43f5e);
  box-shadow: 0 6px 20px rgba(192, 38, 211, 0.55);
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Footer (Pinned to browser bottom) */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--border-color);
  padding: 16px 0;
  text-align: center;
  background: rgba(6, 12, 22, 0.95);
  backdrop-filter: blur(12px);
  z-index: 50;
}

.footer-inner p {
  font-size: 13px;
  color: var(--text-muted);
}
