@font-face{
  font-family:Cinzel;
  src:url("../fonts/cinzel.woff2") format("woff2");
  font-weight:400 900;
  font-display:swap;
}
:root{
  --bg:#050814;
  --bg-raise:#0a1220;
  --bg-card:#0c1628;
  --ink:#e8eef6;
  --muted:#9aabc0;
  --dim:#6e8096;
  --gold:#e4c778;
  --gold-deep:#b8944a;
  --gold-line:rgba(212,175,99,.38);
  --ice:#8fd0ff;
  --danger:#e08a6a;
  --radius:18px;
  --shadow:0 18px 40px rgba(0,0,0,.45);
  --header-h:64px;
  --max:1120px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{margin:0;background:var(--bg);color:var(--ink)}
body{
  font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  min-height:100%;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--gold);text-underline-offset:3px}
a:hover{color:#f3e0a6}
h1,h2,h3,.wordmark,.btn{
  font-family:Cinzel,Georgia,serif;
  letter-spacing:.04em;
}
.skip{
  position:absolute;left:-999px;top:0;
  background:var(--gold);color:#1a1204;padding:8px 12px;z-index:100;
}
.skip:focus{left:8px;top:8px}

/* Header */
.site-header{
  position:sticky;top:0;z-index:40;
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;
  min-height:var(--header-h);
  padding:8px 18px;
  padding-top:max(8px,env(safe-area-inset-top));
  background:rgba(5,8,20,.78);
  border-bottom:1px solid var(--gold-line);
  backdrop-filter:blur(14px) saturate(1.2);
  -webkit-backdrop-filter:blur(14px) saturate(1.2);
}
.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;min-height:44px}
.brand img{width:44px;height:44px;border-radius:50%;box-shadow:0 0 0 1px var(--gold-line),0 0 16px rgba(127,200,255,.25)}
.wordmark{font-weight:700;font-size:15px;line-height:1.15;letter-spacing:.12em;text-transform:uppercase}
.wordmark span{display:block;font-size:10px;color:var(--gold);letter-spacing:.18em;font-weight:600}
.nav{display:flex;gap:4px;align-items:center}
.nav a{
  color:var(--ink);text-decoration:none;font-weight:600;font-size:14px;
  padding:10px 12px;min-height:44px;display:inline-flex;align-items:center;border-radius:10px;
}
.nav a:hover,.nav a[aria-current="page"]{color:var(--gold);background:rgba(212,175,99,.08)}
.nav-toggle{
  display:none;background:transparent;border:1px solid var(--gold-line);color:var(--gold);
  border-radius:10px;min-width:44px;min-height:44px;font:inherit;cursor:pointer;
}

/* Hero */
.hero{
  position:relative;
  min-height:calc(100svh - var(--header-h));
  display:flex;align-items:flex-end;
  background:#050814 center 30%/cover no-repeat;
  background-image:image-set(url("../images/hero.webp?v=2") type("image/webp"), url("../images/hero.jpg?v=2") type("image/jpeg"));
}
.hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(5,8,20,.15) 0%,rgba(5,8,20,.2) 40%,rgba(5,8,20,.82) 78%,var(--bg) 100%);
  pointer-events:none;
}
.hero-inner{
  position:relative;z-index:1;
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
  padding:0 0 56px;
}
.hero h1{
  margin:0 0 12px;
  font-size:clamp(2rem, 7vw, 3.4rem);
  line-height:1.1;
  font-weight:800;
  color:#f6e7b6;
  text-shadow:0 2px 24px rgba(0,0,0,.6);
}
.hero p{
  margin:0 0 22px;
  max-width:34rem;
  color:#d5deea;
  font-size:1.08rem;
}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;padding:12px 20px;
  border-radius:12px;text-decoration:none;font-weight:700;
  font-size:14px;letter-spacing:.08em;text-transform:uppercase;
  border:1px solid transparent;cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:focus-visible{outline:2px solid var(--ice);outline-offset:3px}
.btn:hover{transform:translateY(-1px)}
.btn-gold{
  background:linear-gradient(#f0d78a,#c9a04a);
  color:#1a1204;
  box-shadow:0 6px 20px rgba(201,160,74,.35);
}
.btn-gold:hover{color:#1a1204;box-shadow:0 8px 24px rgba(201,160,74,.5)}
.btn-ghost{
  background:rgba(8,14,28,.65);
  color:var(--gold);
  border-color:var(--gold-line);
}
.btn-ghost:hover{background:rgba(20,30,50,.85);color:#f3e0a6}
.btn-soon{
  background:rgba(255,255,255,.04);
  color:var(--dim);
  border:1px dashed rgba(154,171,192,.35);
  cursor:default;
  pointer-events:none;
}
.btn-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}

/* Games */
.wrap{width:min(var(--max), calc(100% - 32px));margin:0 auto}
.section{padding:28px 0 64px}
.section h2{
  margin:0 0 8px;
  font-size:clamp(1.5rem, 4vw, 2rem);
  color:var(--gold);
  font-weight:700;
}
.lede{color:var(--muted);margin:0 0 28px;max-width:40rem}
.note{
  margin:0 0 28px;padding:14px 16px;
  border:1px solid var(--gold-line);
  border-radius:12px;
  background:rgba(12,22,40,.7);
  color:var(--muted);
  font-size:.95rem;
}
.grid{
  display:grid;
  gap:22px;
  grid-template-columns:1fr;
}
.card{
  background:linear-gradient(180deg,rgba(16,28,48,.92),rgba(8,14,26,.96));
  border:1px solid var(--gold-line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex;flex-direction:column;
}
.card-media{
  position:relative;aspect-ratio:16/9;background:#070b14;overflow:hidden;
}
.card-media img{width:100%;height:100%;object-fit:cover}
.card-body{padding:18px 18px 20px;display:flex;flex-direction:column;flex:1}
.card h3{
  margin:0 0 8px;
  font-size:1.25rem;
  color:#f3e0a6;
  font-weight:700;
}
.card p{margin:0;color:var(--muted);flex:1}
.alt-link{margin-top:10px;font-size:.92rem}
.alt-link a{color:var(--ice)}
.ver{display:block;margin-top:4px;font-size:.78rem;color:var(--dim);letter-spacing:0;text-transform:none;font-family:system-ui,sans-serif;font-weight:600}

/* Legal / article pages */
.page-hero{
  padding:36px 0 10px;
  border-bottom:1px solid var(--gold-line);
  background:radial-gradient(ellipse at 50% 0%, #12203a 0%, var(--bg) 70%);
}
.page-hero h1{margin:0 0 8px;color:var(--gold);font-size:clamp(1.8rem,5vw,2.6rem)}
.page-hero .sub{margin:0;color:var(--muted)}
article.legal{padding:28px 0 72px;max-width:760px}
article.legal h2{
  font-size:1.2rem;color:var(--gold);border-bottom:1px solid var(--gold-line);
  padding-bottom:4px;margin:2em 0 .7em;
}
article.legal h2:first-child{margin-top:0}
article.legal ul{padding-left:1.2em}
article.legal li{margin:.35em 0}
article.legal code{color:var(--gold);font-size:.92em}
.placeholder{
  display:inline;background:#4d0b07;color:#fff;
  padding:1px 7px;border:1px dashed #f0613f;border-radius:4px;
  font-size:.92em;
}

/* Forms */
.form{display:grid;gap:14px;margin-top:18px}
label{display:grid;gap:6px;font-weight:600;color:#d9e2ee;font-size:.95rem}
input,select,textarea{
  font:inherit;color:var(--ink);
  background:#0a101c;
  border:1px solid var(--gold-line);
  border-radius:10px;
  padding:12px 14px;
  min-height:48px;
  width:100%;
}
textarea{min-height:140px;resize:vertical}
.form-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.hint{color:var(--dim);font-size:.9rem}

/* Footer */
.site-footer{
  border-top:1px solid var(--gold-line);
  background:#070b14;
  padding:28px 0 calc(28px + env(safe-area-inset-bottom));
  color:var(--muted);
  font-size:.92rem;
}
.foot-row{display:flex;flex-wrap:wrap;gap:14px 28px;justify-content:space-between;align-items:flex-start}
.foot-nav{display:flex;flex-wrap:wrap;gap:8px 16px}
.foot-nav a{color:#d5c089;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.foot-nav a:hover{color:var(--gold)}
.site-footer small{display:block;margin-top:6px;color:var(--dim)}

@media (min-width:720px){
  .grid{grid-template-columns:1fr 1fr}
  .card:first-child{grid-column:1 / -1}
  .card:first-child .card-body{padding:22px 24px 24px}
  .card:first-child h3{font-size:1.5rem}
}
@media (min-width:980px){
  .grid{grid-template-columns:1fr 1fr}
  .site-header{padding-left:28px;padding-right:28px}
}
@media (max-width:640px){
  .nav-toggle{display:inline-flex;align-items:center;justify-content:center}
  .nav{
    display:none;
    position:absolute;right:12px;top:calc(var(--header-h) + env(safe-area-inset-top));
    flex-direction:column;align-items:stretch;
    background:rgba(8,12,24,.96);
    border:1px solid var(--gold-line);
    border-radius:12px;
    padding:8px;
    min-width:200px;
    box-shadow:var(--shadow);
  }
  .site-header.is-open .nav{display:flex}
  .hero-inner{padding-bottom:36px}
}
