/*
Theme Name: IcyGamePlatforms
Theme URI: https://icygameplatforms.com
Author: IcyGamePlatforms
Author URI: https://icygameplatforms.com
Description: Free Social Casino Games – Entertainment Only. No Real Money. No Real Prizes. 18+ Only.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: icygameplatforms
Tags: casino, social, entertainment, ice, frozen, games
*/

/* ============================================
   ICE / FROZEN COLOUR PALETTE
   Arctic · Glacier · Frost · Crystal · Powder
   ============================================ */
:root {
  --bg-primary:     #03080f;
  --bg-secondary:   #050d18;
  --bg-card:        #071422;
  --bg-card-hover:  #0a1d30;

  /* Glacier blue */
  --ice:            #4fc3f7;
  --ice-light:      #81d4fa;
  --ice-dark:       #0288d1;

  /* Arctic white */
  --frost:          #e8f4fd;
  --frost-dim:      #b0d4f0;

  /* Deep ocean */
  --deep:           #0d2137;
  --deep-light:     #123354;

  /* Crystal teal */
  --crystal:        #00bcd4;
  --crystal-light:  #26c6da;

  /* Snowflake silver */
  --silver:         #90a8c0;
  --silver-dim:     #4a6680;

  --text-primary:   #e8f4fd;
  --text-secondary: #8ab8d8;
  --text-muted:     #3d6080;

  --border:         rgba(79,195,247,0.18);
  --border-subtle:  rgba(144,168,192,0.08);
  --shadow-ice:     0 0 40px rgba(79,195,247,0.12);

  --radius:         12px;
  --radius-sm:      8px;

  --font-display:   'Orbitron', 'Courier New', monospace;
  --font-body:      'Exo 2', 'Segoe UI', sans-serif;
  --transition:     0.25s ease;
}

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Frosted hex-crystal pattern on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.018;
  background-image:
    repeating-linear-gradient(30deg,  transparent, transparent 34px, rgba(79,195,247,0.6) 34px, rgba(79,195,247,0.6) 35px),
    repeating-linear-gradient(150deg, transparent, transparent 34px, rgba(79,195,247,0.6) 34px, rgba(79,195,247,0.6) 35px),
    repeating-linear-gradient(90deg,  transparent, transparent 34px, rgba(79,195,247,0.6) 34px, rgba(79,195,247,0.6) 35px);
}

/* Subtle aurora at very top of page */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 260px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 100% 100% at 50% -20%,
    rgba(0,188,212,0.07) 0%,
    rgba(79,195,247,0.05) 30%,
    transparent 70%);
}

a { color: var(--ice); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ice-light); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--ice-dark); border-radius: 3px; }

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
  background: linear-gradient(90deg, #020b14, #03101f, #020b14);
  border-bottom: 1px solid rgba(79,195,247,0.2);
  padding: 7px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}
.announcement-bar .warn { color: var(--ice-light); font-weight: 700; }
.announcement-bar a     { color: var(--crystal-light); font-weight: 600; }

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3,8,15,0.96);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Icy shimmer line under nav */
.site-nav::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--ice-dark) 25%,
    var(--ice-light) 50%,
    var(--ice-dark) 75%,
    transparent 100%);
  opacity: 0.5;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--frost);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--ice); }
.nav-logo::before {
  content: '❄';
  font-size: 18px;
  color: var(--ice);
  animation: spinSlow 8s linear infinite;
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--ice-light); }

.btn-nav-play {
  background: transparent;
  color: var(--ice);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid var(--ice);
  transition: all var(--transition);
  box-shadow: 0 0 12px rgba(79,195,247,0.15), inset 0 0 12px rgba(79,195,247,0.04);
}
.btn-nav-play:hover {
  background: rgba(79,195,247,0.12);
  color: var(--ice-light);
  box-shadow: 0 0 24px rgba(79,195,247,0.35), inset 0 0 16px rgba(79,195,247,0.08);
  transform: translateY(-1px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 20px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,   rgba(79,195,247,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 15% 90%,  rgba(0,188,212,0.07)  0%, transparent 50%),
    radial-gradient(ellipse 55% 50% at 85% 80%,  rgba(13,105,195,0.06) 0%, transparent 50%),
    var(--bg-primary);
}

/* Floating snowflake decorations */
.hero-deco {
  position: absolute;
  opacity: 0.09;
  font-size: 56px;
  animation: floatSnow 8s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
  color: var(--ice);
}
.hero-deco:nth-child(1) { top: 10%; left: 5%;   animation-delay: 0s;   font-size: 70px; }
.hero-deco:nth-child(2) { top: 15%; right: 7%;  animation-delay: 2s;   font-size: 48px; }
.hero-deco:nth-child(3) { bottom: 20%; left: 8%;animation-delay: 4s;   font-size: 60px; }
.hero-deco:nth-child(4) { bottom: 15%; right: 5%;animation-delay: 6s;  font-size: 44px; }
/* Small drifting snow particles */
.snowfall { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.snow-p {
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(232,244,253,0.5);
  border-radius: 50%;
  animation: snowDrift linear infinite;
}
@keyframes floatSnow {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-18px) rotate(30deg); }
  66%      { transform: translateY(8px) rotate(-20deg); }
}
@keyframes snowDrift {
  from { transform: translateY(-10px); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.5; }
  to   { transform: translateY(100vh); opacity: 0; }
}

.hero-inner { position: relative; z-index: 1; max-width: 740px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(79,195,247,0.07);
  border: 1px solid rgba(79,195,247,0.25);
  color: var(--ice);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 100px;
  margin-bottom: 30px;
  font-family: var(--font-display);
  box-shadow: 0 0 20px rgba(79,195,247,0.08);
}
.hero-badge::before, .hero-badge::after { content: '❄'; font-size: 10px; opacity: 0.7; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6.5vw, 66px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--frost);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 0 40px rgba(79,195,247,0.25), 0 2px 20px rgba(0,0,0,0.6);
}
.hero-title .ice-text {
  background: linear-gradient(135deg, var(--ice-light) 0%, var(--crystal) 50%, var(--ice) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(79,195,247,0.4));
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }

.btn-primary {
  background: var(--ice-dark);
  color: var(--frost);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 34px;
  border-radius: 8px;
  border: 1px solid var(--ice);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(79,195,247,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
  font-family: var(--font-display);
  font-size: 12px;
}
.btn-primary:hover {
  background: rgba(79,195,247,0.18);
  color: var(--frost);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79,195,247,0.35), 0 0 0 1px var(--ice-light);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  padding: 14px 32px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-display);
}
.btn-secondary:hover {
  background: rgba(79,195,247,0.06);
  border-color: rgba(79,195,247,0.25);
  color: var(--ice-light);
}

.hero-trust {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-trust span { display: flex; align-items: center; gap: 5px; }

/* ============================================
   STATS STRIP
   ============================================ */
.stats-strip {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 40px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice), var(--crystal), var(--ice), transparent);
  opacity: 0.6;
}
.stat-item {
  text-align: center;
  padding: 12px 20px;
  border-right: 1px solid var(--border-subtle);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ice-light), var(--crystal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: none;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 80px 40px; max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--frost);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.section-desc { color: var(--text-secondary); font-size: 14px; max-width: 500px; }

/* Ice divider */
.ice-divider {
  text-align: center;
  padding: 10px 0;
  color: var(--ice-dark);
  opacity: 0.5;
  font-size: 16px;
  letter-spacing: 14px;
}

/* ============================================
   GAME CARDS
   ============================================ */
#games-section { background: var(--bg-primary); }
.games-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 40px; }

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 30px 18px 24px;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}
/* Frost crack lines - top highlight */
.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice-dark), var(--ice), var(--ice-dark), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
/* Ice glow bottom */
.game-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(0deg, rgba(79,195,247,0.04) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.game-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(79,195,247,0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-ice), 0 2px 0 rgba(79,195,247,0.15) inset;
}
.game-card:hover::before,
.game-card:hover::after { opacity: 1; }

.game-icon {
  width: 68px; height: 68px;
  background: radial-gradient(circle, rgba(79,195,247,0.1) 0%, rgba(2,136,209,0.05) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  margin: 0 auto 18px;
  border: 1px solid rgba(79,195,247,0.18);
  box-shadow: 0 0 20px rgba(79,195,247,0.08), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: box-shadow 0.35s ease;
}
.game-card:hover .game-icon {
  box-shadow: 0 0 30px rgba(79,195,247,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}

.game-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--frost);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.game-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.55; }

.game-card-actions { display: flex; gap: 8px; align-items: center; justify-content: center; }

.badge-free {
  background: rgba(0,188,212,0.1);
  border: 1px solid rgba(0,188,212,0.25);
  color: var(--crystal-light);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
  font-family: var(--font-display);
}

.btn-play {
  background: transparent;
  color: var(--ice);
  border: 1px solid rgba(79,195,247,0.4);
  font-weight: 700; font-size: 11px;
  padding: 6px 16px; border-radius: 5px;
  transition: all var(--transition);
  display: flex; align-items: center; gap: 5px;
  text-transform: uppercase; letter-spacing: 0.05em;
  font-family: var(--font-display);
}
.btn-play:hover {
  background: rgba(79,195,247,0.14);
  border-color: var(--ice);
  color: var(--ice-light);
  box-shadow: 0 0 16px rgba(79,195,247,0.25);
}

.games-disclaimer {
  text-align: center; margin-top: 24px;
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* ============================================
   RESPONSIBLE PLAY
   ============================================ */
.responsible-section {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(79,195,247,0.04) 0%, transparent 60%),
    var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.responsible-inner { max-width: 1100px; margin: 0 auto; padding: 70px 40px; }
.responsible-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.responsible-header h2 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700; color: var(--frost); text-transform: uppercase; letter-spacing: 0.04em;
}
.responsible-icon { font-size: 28px; }
.responsible-intro { color: var(--text-secondary); font-size: 14px; margin-bottom: 36px; max-width: 600px; }

.responsible-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 32px; }
.responsible-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--ice-dark);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color var(--transition);
}
.responsible-card:nth-child(2) { border-top-color: var(--crystal); }
.responsible-card:nth-child(3) { border-top-color: var(--frost-dim); }
.responsible-card:nth-child(4) { border-top-color: var(--silver); }
.responsible-card:hover { border-color: rgba(79,195,247,0.25); border-top-color: var(--ice); }
.responsible-card-title {
  font-weight: 700; font-size: 14px; color: var(--frost); margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
}
.responsible-card-desc { font-size: 13px; color: var(--text-secondary); }

.helpline-strip { display: flex; gap: 12px; flex-wrap: wrap; }
.helpline-btn {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  color: var(--text-secondary); font-size: 13px; font-weight: 600;
  padding: 10px 20px; border-radius: 8px;
  transition: all var(--transition);
  display: flex; align-items: center; gap: 7px;
}
.helpline-btn:hover { border-color: var(--ice); color: var(--ice); box-shadow: 0 0 12px rgba(79,195,247,0.1); }

/* ============================================
   LEGAL
   ============================================ */
.legal-section { max-width: 1100px; margin: 0 auto; padding: 50px 40px; }
.legal-title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px;
  font-family: var(--font-display);
}
.legal-text { font-size: 12px; color: var(--text-muted); line-height: 1.8; max-width: 750px; }
.legal-badges { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.legal-badge {
  font-size: 11px; font-weight: 700; color: var(--ice-dark);
  background: rgba(79,195,247,0.05);
  border: 1px solid rgba(79,195,247,0.15);
  padding: 4px 12px; border-radius: 4px; font-family: var(--font-display);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #020710;
  border-top: 1px solid var(--border);
  padding: 60px 40px 30px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice-dark) 20%, var(--ice) 50%, var(--ice-dark) 80%, transparent);
}
/* Footer iceberg silhouette glow */
.site-footer::after {
  content: '';
  position: absolute;
  bottom: 0; left: -10%; right: -10%;
  height: 160px;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(79,195,247,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.footer-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; color: var(--frost);
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-brand-name span { color: var(--ice); }
.footer-brand-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.footer-col-title {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ice-dark); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 13px; transition: color var(--transition); }
.footer-links a:hover { color: var(--ice); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-bottom-text { font-size: 12px; color: var(--text-muted); }
.footer-bottom-badges { display: flex; gap: 8px; }
.footer-mini-badge {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  border: 1px solid var(--border-subtle); padding: 3px 8px; border-radius: 3px;
  font-family: var(--font-display);
}

/* ============================================
   MODAL
   ============================================ */
.game-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,5,12,0.92);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.game-modal {
  background: #060f1c;
  border: 1px solid rgba(79,195,247,0.22);
  border-radius: 16px;
  width: 100%; max-width: 520px; max-height: 92vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  position: relative;
  box-shadow: 0 0 60px rgba(79,195,247,0.08);
}
/* Frost shimmer on modal top */
.game-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice-dark) 20%, var(--ice-light) 50%, var(--ice-dark) 80%, transparent);
  border-radius: 16px 16px 0 0;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 16px; border-bottom: 1px solid var(--border-subtle);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; color: var(--frost);
  display: flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.modal-close {
  background: rgba(79,195,247,0.06); border: 1px solid var(--border-subtle);
  color: var(--text-secondary); width: 32px; height: 32px; border-radius: 8px;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
}
.modal-close:hover { background: rgba(79,195,247,0.15); color: var(--ice); border-color: var(--ice); }

.modal-warn {
  margin: 16px 24px;
  background: rgba(79,195,247,0.05);
  border: 1px solid rgba(79,195,247,0.15);
  border-radius: 8px; padding: 10px 14px;
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 8px;
}
.modal-coins-bar {
  margin: 0 24px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-secondary);
}
.modal-coins-value { font-weight: 700; color: var(--ice); font-size: 15px; font-family: var(--font-display); }
.modal-body { padding: 0 24px 24px; }

/* ============================================
   SLOTS
   ============================================ */
.slots-reels { display: flex; gap: 12px; justify-content: center; margin: 8px 0 24px; }
.reel-window {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, #060f1c, #0a1525);
  border: 2px solid rgba(79,195,247,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; overflow: hidden; position: relative;
  transition: border-color 0.3s ease;
  box-shadow: inset 0 0 20px rgba(79,195,247,0.03);
}
.reel-window.win-flash { border-color: var(--ice); animation: winFlash 0.5s ease 3; }
@keyframes winFlash {
  0%,100% { box-shadow: inset 0 0 20px rgba(79,195,247,0.03); }
  50%      { box-shadow: 0 0 28px rgba(79,195,247,0.7), inset 0 0 20px rgba(79,195,247,0.1); }
}
.reel-spinning { animation: reelSpin 0.08s linear infinite; }
@keyframes reelSpin {
  0%   { transform: translateY(0); opacity: 1; }
  50%  { transform: translateY(-10px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

.slots-bet-row { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 20px; }
.slots-bet-label { font-size: 13px; color: var(--text-secondary); }

.bet-btn {
  background: rgba(79,195,247,0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
  transition: all var(--transition);
}
.bet-btn:hover, .bet-btn.active {
  background: rgba(79,195,247,0.12);
  border-color: var(--ice);
  color: var(--ice);
}

.btn-spin {
  display: flex; width: 100%;
  background: var(--ice-dark);
  color: var(--frost); font-weight: 800; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 16px; border-radius: 10px; border: 1px solid var(--ice);
  cursor: pointer; transition: all 0.3s ease; margin-bottom: 20px;
  align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  box-shadow: 0 0 24px rgba(79,195,247,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn-spin:hover:not(:disabled) {
  background: rgba(79,195,247,0.2);
  box-shadow: 0 6px 28px rgba(79,195,247,0.4), 0 0 0 1px var(--ice-light);
  transform: translateY(-2px);
}
.btn-spin:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.slots-result {
  text-align: center; min-height: 28px; font-weight: 700; font-size: 16px;
  color: var(--ice); margin-bottom: 16px; font-family: var(--font-display);
}
.paytable {
  background: rgba(79,195,247,0.02); border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 14px;
}
.paytable-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0; font-size: 12px; color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.paytable-row:last-child { border-bottom: none; }
.paytable-row .symbols { font-size: 14px; }
.paytable-row .mult { color: var(--ice); font-weight: 700; font-family: var(--font-display); }

/* ============================================
   BLACKJACK
   ============================================ */
.bj-section-label {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); text-align: center; margin-bottom: 8px;
  font-family: var(--font-display);
}
.bj-cards { min-height: 90px; display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.bj-hand-area { margin-bottom: 20px; }

.playing-card {
  width: 56px; height: 80px;
  background: linear-gradient(160deg, #f0f8ff, #ddeeff);
  border-radius: 6px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; line-height: 1;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 0 8px rgba(79,195,247,0.1);
  animation: cardDeal 0.3s ease; position: relative; overflow: hidden;
}
@keyframes cardDeal {
  from { transform: scale(0.7) translateY(-20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.playing-card.red { color: #c0392b; }
.playing-card.black { color: #1a2a3a; }
.playing-card.face-down {
  background: linear-gradient(135deg, #071422 25%, #0a1d30 25%, #0a1d30 50%, #071422 50%, #071422 75%, #0a1d30 75%);
  background-size: 14px 14px;
  border: 2px solid rgba(79,195,247,0.15);
}
.card-value  { font-size: 18px; font-weight: 900; display: block; }
.card-suit-sm { font-size: 12px; display: block; }

.bj-score { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.bj-score strong { color: var(--ice); font-size: 16px; font-family: var(--font-display); }

.bj-message { text-align: center; min-height: 28px; font-weight: 700; font-size: 15px; margin-bottom: 16px; color: var(--frost); font-family: var(--font-display); letter-spacing: 0.04em; }
.bj-message.win  { color: var(--crystal-light); }
.bj-message.lose { color: #5e90b8; }
.bj-message.push { color: var(--ice); }

.bj-bet-row { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 16px; }
.bj-actions { display: flex; gap: 10px; justify-content: center; }
.btn-bj { padding: 11px 26px; border-radius: 8px; font-weight: 700; font-size: 13px; border: none; cursor: pointer; transition: all var(--transition); text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--font-display); }
.btn-deal { background: var(--ice-dark); color: var(--frost); border: 1px solid var(--ice); box-shadow: 0 0 16px rgba(79,195,247,0.15); }
.btn-deal:hover { background: rgba(79,195,247,0.2); box-shadow: 0 0 24px rgba(79,195,247,0.3); }
.btn-hit { background: rgba(0,188,212,0.12); color: var(--crystal-light); border: 1px solid rgba(0,188,212,0.3); }
.btn-hit:hover { background: rgba(0,188,212,0.25); }
.btn-stand { background: rgba(255,255,255,0.04); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.btn-stand:hover { background: rgba(255,255,255,0.08); color: var(--frost); }
.btn-bj:disabled { opacity: 0.35; cursor: not-allowed; }

/* ============================================
   ROULETTE
   ============================================ */
.roulette-wheel-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.roulette-wheel-svg {
  width: 200px; height: 200px;
  filter: drop-shadow(0 0 28px rgba(79,195,247,0.3));
}
.roulette-result-num { text-align: center; margin-bottom: 8px; font-size: 13px; color: var(--text-muted); min-height: 24px; }
.roulette-result-num strong { font-size: 20px; color: var(--ice); font-family: var(--font-display); }
.roulette-message { text-align: center; min-height: 28px; font-weight: 700; font-size: 15px; margin-bottom: 16px; font-family: var(--font-display); letter-spacing: 0.04em; }
.roulette-message.win  { color: var(--crystal-light); }
.roulette-message.lose { color: #4a7a9b; }

.roulette-bet-types { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.rbet-btn {
  background: rgba(79,195,247,0.04); border: 1px solid var(--border-subtle);
  color: var(--text-secondary); font-size: 11px; font-weight: 600;
  padding: 7px 12px; border-radius: 6px; cursor: pointer; transition: all var(--transition);
  text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--font-display);
}
.rbet-btn.selected { background: rgba(79,195,247,0.12); border-color: var(--ice); color: var(--ice); }
.rbet-btn.red-btn { color: #e57373; }
.rbet-btn.red-btn.selected { background: rgba(229,115,115,0.1); border-color: #e57373; }

.roulette-num-label { text-align: center; font-size: 11px; color: var(--text-muted); margin-bottom: 8px; font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.roulette-numbers { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 16px; }
.rnum-btn {
  aspect-ratio: 1; border: none; border-radius: 4px; font-size: 11px; font-weight: 700;
  cursor: pointer; transition: all var(--transition);
  background: rgba(255,255,255,0.04); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
}
.rnum-btn.num-red   { background: rgba(229,115,115,0.12); color: #ef9a9a; }
.rnum-btn.num-black { background: rgba(79,195,247,0.06); color: var(--silver); }
.rnum-btn.num-green { background: rgba(0,188,212,0.15); color: var(--crystal-light); }
.rnum-btn.selected  { outline: 2px solid var(--ice); transform: scale(1.12); }

.roulette-spin-row { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* ============================================
   VIDEO POKER
   ============================================ */
.poker-title-sub {
  text-align: center; font-weight: 700;
  background: linear-gradient(135deg, var(--ice-light), var(--crystal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-family: var(--font-display); font-size: 15px; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.poker-section-label { text-align: center; font-size: 10px; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; font-family: var(--font-display); }
.poker-cards { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; flex-wrap: wrap; }
.poker-card-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hold-label { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--ice); opacity: 0; transition: opacity var(--transition); text-transform: uppercase; font-family: var(--font-display); }
.poker-card-wrap.held .hold-label { opacity: 1; }
.poker-card-wrap .playing-card { cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); border: 2px solid transparent; }
.poker-card-wrap.held .playing-card { border-color: var(--ice); transform: translateY(-8px); box-shadow: 0 4px 20px rgba(79,195,247,0.5); }

.poker-message { text-align: center; min-height: 28px; font-weight: 700; font-size: 15px; color: var(--ice); margin-bottom: 12px; font-family: var(--font-display); letter-spacing: 0.04em; }
.poker-bet-row { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 16px; }
.poker-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.btn-poker-deal {
  background: var(--ice-dark); color: var(--frost); font-weight: 700; font-size: 13px;
  padding: 12px 36px; border-radius: 8px; border: 1px solid var(--ice); cursor: pointer;
  transition: all var(--transition); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-display);
  box-shadow: 0 0 16px rgba(79,195,247,0.15);
}
.btn-poker-deal:hover { background: rgba(79,195,247,0.18); box-shadow: 0 0 28px rgba(79,195,247,0.3); }
.btn-poker-draw {
  background: rgba(0,188,212,0.1); border: 1px solid rgba(0,188,212,0.3);
  color: var(--crystal-light); font-weight: 700; font-size: 13px;
  padding: 12px 36px; border-radius: 8px; cursor: pointer; transition: all var(--transition);
  text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-display);
}
.btn-poker-draw:hover { background: rgba(0,188,212,0.22); }
.btn-poker-deal:disabled, .btn-poker-draw:disabled { opacity: 0.35; cursor: not-allowed; }

.poker-paytable { background: rgba(79,195,247,0.02); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 12px; }
.poker-pay-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.poker-pay-row:last-child { border-bottom: none; }
.poker-pay-row .hand-name { color: var(--text-secondary); }
.poker-pay-row .pay-mult { color: var(--ice); font-weight: 700; font-family: var(--font-display); }
.poker-pay-row.active-hand .hand-name { color: var(--ice); font-weight: 700; }

/* ============================================
   SAFE PLAY
   ============================================ */
#safe-play { scroll-margin-top: 70px; }
.safe-play-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 36px; }
.safe-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 24px;
  transition: border-color var(--transition);
}
.safe-card:hover { border-color: rgba(79,195,247,0.2); }
.safe-card-icon { font-size: 28px; margin-bottom: 12px; }
.safe-card-title { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--frost); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.safe-card-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ============================================
   SCROLL TARGETS
   ============================================ */
#games-section, #responsible, #legal { scroll-margin-top: 70px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .games-grid  { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 600px) {
  .site-nav { padding: 0 16px; }
  .nav-links { display: none; }
  .games-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats-strip { grid-template-columns: 1fr 1fr; padding: 20px 16px; }
  .section, .responsible-inner, .legal-section { padding: 50px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 40px 16px 24px; }
  .responsible-grid { grid-template-columns: 1fr; }
  .safe-play-grid { grid-template-columns: 1fr; }
  .slots-reels .reel-window { width: 80px; height: 80px; font-size: 38px; }
  .roulette-wheel-svg { width: 160px; height: 160px; }
}
