/* === ICE LABS — Web Liquid Ice Theme === */

/* ─────────────────────────────────────────────
   DESIGN TOKENS
   ───────────────────────────────────────────── */
:root {
  --bg:           #0d0d1a;
  --bg-card:      transparent;
  --bg-nav:       rgba(13, 13, 26, 0.4);

  --ice:          #5ec4e8;
  --ice-glow:     #3aadd4;
  --frost:        #a8e0f0;
  --white:        rgba(255, 255, 255, 0.95);
  --muted:        rgba(200, 220, 235, 0.58);

  --glass-fill:         rgba(255, 255, 255, 0.07);
  --glass-fill-hover:   rgba(255, 255, 255, 0.11);
  --glass-fill-active:  rgba(255, 255, 255, 0.15);
  --glass-border:       rgba(255, 255, 255, 0.18);
  --glass-border-hover: rgba(255, 255, 255, 0.28);
  --glass-shine:        rgba(255, 255, 255, 0.55);
  --glass-sheen:        rgba(255, 255, 255, 0.18);

  --blur-sm:   blur(12px) saturate(160%);
  --blur-md:   blur(24px) saturate(180%);
  --blur-lg:   blur(40px) saturate(200%);

  --font-display: "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-body:    "SF Pro Text",    "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
}

/* ─────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--frost); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--white); }

/* ─────────────────────────────────────────────
   GLASS UTILITY
   ───────────────────────────────────────────── */
.glass {
  background:          var(--glass-fill);
  backdrop-filter:     var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border:              1px solid var(--glass-border);
  border-radius:       20px;
  position:            relative;
  overflow:            hidden;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.glass::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 5%,
    var(--glass-shine) 40%,
    var(--glass-shine) 60%,
    transparent 95%
  );
  pointer-events: none;
  z-index: 1;
}

.glass:hover {
  background:    var(--glass-fill-hover);
  border-color:  var(--glass-border-hover);
}

.glass > * { position: relative; z-index: 2; }

/* ─────────────────────────────────────────────
   NAVIGATION — bottom bar
   ───────────────────────────────────────────── */
.nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  top: unset;
  z-index: 100;
  background:          var(--bg-nav);
  backdrop-filter:     var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border-bottom:       none;
  border-top:          1px solid var(--glass-border);
}

/* Specular line sits at the top edge of the bar */
.nav::after {
  content: '';
  position: absolute;
  top: 0; bottom: unset; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 35%,
    rgba(255, 255, 255, 0.45) 65%,
    transparent 100%
  );
  pointer-events: none;
}

.nav-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 60px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.92);
}
.nav-logo span { color: rgba(255, 255, 255, 0.45); font-weight: 400; }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--muted);
  font-size: 13px; letter-spacing: 0.4px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: rgba(255, 255, 255, 0.9); }

.nav-toggle {
  display: none; background: none; border: none;
  color: rgba(255, 255, 255, 0.7); font-size: 22px; cursor: pointer;
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute;
    bottom: 60px; top: unset; /* opens upward */
    left: 0; right: 0;
    background: rgba(13, 13, 26, 0.88);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border-top:    1px solid var(--glass-border);
    border-bottom: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--glass-border);
  }
}

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */
.hero {
  padding: 100px 24px 120px; /* extra bottom padding clears the nav */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(
    circle,
    rgba(94, 196, 232, 0.12) 0%,
    rgba(58, 141, 224, 0.07) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff 30%, var(--frost) 70%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 44px;
  line-height: 1.65;
}

/* ─────────────────────────────────────────────
   GAME CARDS
   ───────────────────────────────────────────── */
.games-section {
  max-width: 1080px; margin: 0 auto; padding: 0 24px 100px; /* bottom pad clears nav */
}
.games-section h2 {
  font-family: var(--font-display);
  font-size: 11px; text-transform: uppercase; letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 28px;
}

.game-card {
  background:          var(--glass-fill);
  backdrop-filter:     var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border:              1px solid var(--glass-border);
  border-radius:       24px;
  padding:             40px;
  display:             grid;
  grid-template-columns: 1fr 1fr;
  gap:                 40px;
  align-items:         center;
  position:            relative;
  overflow:            hidden;
  transition:          background 0.3s, border-color 0.3s;
}

.game-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.game-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.5) 40%, rgba(255,255,255,0.5) 60%, transparent 95%);
  pointer-events: none;
}
.game-card:hover {
  background:   var(--glass-fill-hover);
  border-color: var(--glass-border-hover);
}

.game-card > * { position: relative; z-index: 1; }

@media (max-width: 700px) {
  .game-card { grid-template-columns: 1fr; padding: 28px; }
}

.game-info h3 {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.game-info .game-badge {
  display: inline-block;
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.game-info .game-badge::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

.game-info p { color: var(--muted); margin-bottom: 20px; line-height: 1.6; }

.game-platforms {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.game-platforms span {
  font-size: 12px;
  color: rgba(168, 224, 240, 0.8);
  background: rgba(94, 196, 232, 0.08);
  border: 1px solid rgba(94, 196, 232, 0.18);
  padding: 4px 12px;
  border-radius: 100px;
  position: relative; overflow: hidden;
}
.game-platforms span::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.08), transparent);
}

/* ─────────────────────────────────────────────
   BUTTON — Liquid Glass pill
   ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 11px 28px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.22), transparent);
  border-radius: 100px 100px 0 0;
  pointer-events: none;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-1px);
  color: rgba(255, 255, 255, 0.95);
}

.btn:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.24);
}

.btn-accent {
  background: rgba(94, 196, 232, 0.18);
  border-color: rgba(94, 196, 232, 0.32);
  color: var(--frost);
}
.btn-accent::before {
  background: linear-gradient(to bottom, rgba(168,224,240,0.2), transparent);
}
.btn-accent:hover {
  background: rgba(94, 196, 232, 0.26);
  border-color: rgba(94, 196, 232, 0.48);
  color: rgba(255,255,255,0.96);
}

/* ─────────────────────────────────────────────
   GAME VISUAL PANEL
   ───────────────────────────────────────────── */
.game-visual {
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.game-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(94,196,232,0.08) 0%, transparent 60%);
}
.game-visual::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}
.game-visual .ice-icon { font-size: 72px; opacity: 0.65; position: relative; z-index: 1; }

/* ─────────────────────────────────────────────
   PAGE CONTENT WRAPPER
   ───────────────────────────────────────────── */
.page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 120px; /* extra bottom padding clears nav */
}
.page-wrap h1 {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
  letter-spacing: -0.2px;
  background: linear-gradient(135deg, #ffffff 20%, var(--frost) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-wrap h2 {
  font-family: var(--font-display);
  font-size: 21px; color: rgba(255, 255, 255, 0.8);
  margin: 36px 0 14px; font-weight: 600;
}
.page-wrap h3 {
  font-family: var(--font-display);
  font-size: 16px; color: rgba(255, 255, 255, 0.7);
  margin: 24px 0 10px; font-weight: 500;
}
.page-wrap p { color: var(--muted); margin-bottom: 14px; }
.page-wrap ul, .page-wrap ol { color: var(--muted); margin: 0 0 16px 20px; }
.page-wrap li { margin-bottom: 6px; }
.page-wrap strong { color: rgba(255, 255, 255, 0.88); }

/* ─────────────────────────────────────────────
   BLOG POST CARDS
   ───────────────────────────────────────────── */
.blog-post {
  background:          var(--glass-fill);
  backdrop-filter:     var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border:              1px solid var(--glass-border);
  border-radius:       18px;
  padding:             32px;
  margin-bottom:       20px;
  position:            relative;
  overflow:            hidden;
  transition:          background 0.25s, border-color 0.25s;
}
.blog-post::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.blog-post::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.45) 45%, rgba(255,255,255,0.45) 55%, transparent 95%);
  pointer-events: none;
}
.blog-post:hover { background: var(--glass-fill-hover); border-color: var(--glass-border-hover); }
.blog-post > * { position: relative; z-index: 1; }
.blog-post h2 { margin-top: 0; }
.blog-post p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────────
   EMPTY STATE
   ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: rgba(255, 255, 255, 0.25);
}
.empty-state .empty-icon { font-size: 44px; margin-bottom: 16px; opacity: 0.3; }

/* ─────────────────────────────────────────────
   REQUIREMENTS TABLE
   ───────────────────────────────────────────── */
.req-table { width: 100%; border-collapse: collapse; margin: 20px 0 32px; }
.req-table th,
.req-table td {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}
.req-table th {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.2px;
}
.req-table td { color: var(--muted); }
.req-table td:first-child {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  width: 130px;
}

/* ─────────────────────────────────────────────
   LEGAL SECTIONS
   ───────────────────────────────────────────── */
.legal-section { margin-bottom: 28px; }
.legal-section h3 { color: rgba(168, 224, 240, 0.75); }

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 40px 24px 100px; /* extra bottom padding clears nav */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.28);
  font-size: 13px;
}
.footer-links { margin-bottom: 10px; }
.footer-links a { margin: 0 12px; color: rgba(255, 255, 255, 0.28); }
.footer-links a:hover { color: rgba(255, 255, 255, 0.65); }

/* ─────────────────────────────────────────────
   AMBIENT ORB HELPER
   ───────────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.4;
}
.orb--blue    { background: radial-gradient(circle, rgba(58, 141, 224, 1), transparent); }
.orb--ice     { background: radial-gradient(circle, rgba(94, 196, 232, 1), transparent); }
.orb--purple  { background: radial-gradient(circle, rgba(168, 85, 247, 1), transparent); }
.orb--teal    { background: radial-gradient(circle, rgba(20, 184, 166, 1), transparent); }