:root {
  --bg: #0b120e;
  --bg-alt: #0f1a14;
  --card: #15231b;
  --line: #22382b;
  --text: #e9f1ec;
  --muted: #9bb0a3;
  --gold: #f5c542;
  --gold-dark: #d9a520;
  --green: #2ecc71;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

h1, h2, .logo-text, .slot-top, .stat strong {
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 1px;
  font-weight: 400;
}
h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.95; margin-bottom: 20px; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; margin-bottom: 16px; }
h3 { font-size: 1.15rem; margin-bottom: 6px; }
p { color: var(--muted); }
.gold { color: var(--gold); }
.muted { color: var(--muted); font-size: 0.9rem; }

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.lead { font-size: 1.1rem; max-width: 540px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a1200;
  box-shadow: 0 6px 24px rgba(245, 197, 66, .25);
}
.btn-gold:hover { box-shadow: 0 10px 32px rgba(245, 197, 66, .4); }
.btn-outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: rgba(245, 197, 66, .1); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 14, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { font-size: 1.9rem; }
.logo-text { font-size: 1.9rem; }
.logo-text span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--gold); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 90px 0 110px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 80% 40%, rgba(245, 197, 66, .14), transparent 70%),
    radial-gradient(700px 500px at 10% 80%, rgba(46, 204, 113, .12), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* Slot machine */
.slot-machine {
  background: linear-gradient(160deg, #1d3326, #101b15);
  border: 3px solid var(--gold);
  border-radius: 28px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 60px rgba(245,197,66,.15), inset 0 0 30px rgba(0,0,0,.4);
}
.slot-top {
  font-size: 1.8rem; color: var(--gold);
  text-shadow: 0 0 16px rgba(245,197,66,.6);
  margin-bottom: 18px;
}
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.reel {
  height: 120px;
  background: linear-gradient(#fff, #e7e2d0);
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 3.4rem;
  overflow: hidden;
  box-shadow: inset 0 8px 14px rgba(0,0,0,.25), inset 0 -8px 14px rgba(0,0,0,.25);
}
.reel.spinning span { animation: blur-spin .1s linear infinite; }
@keyframes blur-spin {
  0% { transform: translateY(-40px); filter: blur(3px); }
  100% { transform: translateY(40px); filter: blur(3px); }
}
.slot-msg { margin: 18px 0 14px; min-height: 1.6em; font-weight: 600; }
.slot-msg.win { color: var(--gold); }
.spin-btn { width: 100%; font-size: 1.1rem; letter-spacing: 2px; }
.spin-btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ===== Stats ===== */
.stats { border-block: 1px solid var(--line); background: var(--bg-alt); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: inline; font-size: 3rem; color: var(--gold); }
.stat span { display: block; color: var(--muted); font-size: .9rem; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }

/* Filters */
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter {
  background: var(--card); color: var(--muted);
  border: 1px solid var(--line);
  padding: 9px 20px; border-radius: 999px;
  cursor: pointer; font: inherit; font-weight: 600;
  transition: .2s;
}
.filter:hover { color: var(--text); }
.filter.active { background: var(--gold); color: #1a1200; border-color: var(--gold); }

/* Games */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.game-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.game-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.game-card.hidden { display: none; }
.game-art { height: 170px; display: grid; place-items: center; font-size: 4.5rem; position: relative; }
.game-art span { transition: transform .4s; filter: drop-shadow(0 8px 12px rgba(0,0,0,.4)); }
.game-card:hover .game-art span { transform: scale(1.15) rotate(-6deg); }
.art-1 { background: radial-gradient(circle at 30% 30%, #3b7a4f, #0f2a1a); }
.art-2 { background: radial-gradient(circle at 30% 30%, #e0b623, #6b4a05); }
.art-3 { background: radial-gradient(circle at 30% 30%, #b0283a, #3a0910); }
.art-4 { background: radial-gradient(circle at 30% 30%, #1e6b52, #062019); }
.art-5 { background: radial-gradient(circle at 30% 30%, #2c3e70, #0a1028); }
.art-6 { background: radial-gradient(circle at 30% 30%, #d35400, #3d1600); }
.art-7 { background: radial-gradient(circle at 30% 30%, #8e44ad, #2a0c36); }
.art-8 { background: radial-gradient(circle at 30% 30%, #c49b2c, #3a2a05); }
.art-9 { background: linear-gradient(180deg, #2b7bb3 0%, #1f5a3a 55%, #0e3524 100%); }
.game-card.playable .game-info h3 a:hover { color: var(--gold); }
.badge-new {
  position: absolute; top: 12px; left: 12px;
  font-style: normal; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--gold); color: #1a1200;
}
.game-info { padding: 20px; }
.game-info p { font-size: .9rem; }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--green); margin-bottom: 6px;
}
.meta { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.meta span {
  font-size: .75rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(245,197,66,.1); color: var(--gold);
}

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  transition: border-color .3s;
}
.feature:hover { border-color: var(--gold); }
.feature .icon {
  font-size: 1.8rem; width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px; background: rgba(245,197,66,.1);
  margin-bottom: 18px;
}

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split p + p { margin-top: 14px; }
.checklist { list-style: none; margin: 24px 0 32px; }
.checklist li { padding: 6px 0 6px 32px; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: #1a1200;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800;
}

.code-card {
  background: #07100b; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  overflow-x: auto;
}
.code-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.code-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f56; }
.code-dots i:nth-child(2) { background: #ffbd2e; }
.code-dots i:nth-child(3) { background: #27c93f; }
pre { font-family: "Consolas", "Courier New", monospace; font-size: .88rem; color: #cfe3d6; line-height: 1.7; }
.code-card .c { color: #5f7a69; }
.code-card .k { color: var(--green); font-weight: 700; }
.code-card .s { color: var(--gold); }

.about-visual {
  aspect-ratio: 1; max-width: 420px; width: 100%; margin: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a5a3c, #0b1a11 70%);
  border: 3px solid var(--gold);
  display: grid; place-items: center;
  box-shadow: 0 0 80px rgba(245,197,66,.15);
}
.about-badge { font-size: clamp(7rem, 18vw, 11rem); filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }

/* Careers */
.jobs { max-width: 760px; margin: auto; display: grid; gap: 14px; }
.job {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px;
  transition: border-color .3s;
}
.job:hover { border-color: var(--gold); }
.job p { font-size: .88rem; }

/* Contact */
.contact-list { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.contact-list a { color: var(--gold); }
.contact-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  display: grid; gap: 16px;
}
.contact-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold);
}
.contact-form .invalid { border-color: #e74c3c; }
.form-msg { font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #e74c3c; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { margin-bottom: 12px; font-size: .9rem; text-transform: uppercase; letter-spacing: 2px; }
.footer-grid a:not(.logo) { display: block; color: var(--muted); padding: 4px 0; font-size: .92rem; }
.footer-grid a:not(.logo):hover { color: var(--gold); }
.footer-grid .muted { margin-top: 12px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.footer-bottom p { font-size: .85rem; }
.footer-bottom a { color: var(--gold); }
.age {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #e74c3c; color: #e74c3c;
  font-weight: 800; font-size: .72rem; margin-right: 6px;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 50px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .slot-machine { max-width: 440px; margin: auto; width: 100%; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 16px 20px;
    transform: translateY(-120%); transition: transform .35s;
    z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links a { width: 100%; padding: 14px 0; text-align: center; }
  .nav-links a.btn { margin-top: 10px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 70px 0; }
  .hero { padding: 60px 0 80px; }
  .features-grid { grid-template-columns: 1fr; }
  .job { flex-direction: column; align-items: flex-start; }
  .reel { height: 96px; font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
