/* ==========================================================================
   Velorimark — Social Gameplay  ·  "Midnight Arcade" theme
   Jewel-toned nocturne: deep indigo + violet/cyan aurora + token gold.
   Type: Bricolage Grotesque (display) · DM Sans (body) · Space Mono (labels).
   Entertainment-only showcase. No real money.
   ========================================================================== */

:root {
  --bg: #120e2b;
  --bg-2: #17123a;
  --surface: #1e1850;
  --surface-2: #271f63;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(183, 162, 255, 0.16);
  --ink: #efecff;
  --ink-dim: #c2bbe8;
  --muted: #8e87bd;
  --violet: #8b5cf6;
  --violet-lt: #b79bff;
  --cyan: #34e0d4;
  --gold: #ffc861;
  --grad: linear-gradient(135deg, #9a6bff 0%, #34e0d4 100%);
  --grad-gold: linear-gradient(135deg, #ffd98a 0%, #ffb24a 100%);
  --glow-violet: 0 18px 48px -16px rgba(139, 92, 246, 0.55);
  --glow-cyan: 0 18px 48px -16px rgba(52, 224, 212, 0.45);
  --shadow: 0 22px 60px -24px rgba(0, 0, 0, 0.7);
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1180px;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(820px 520px at 8% 4%, rgba(52, 224, 212, 0.14), transparent 58%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
h1 { font-weight: 800; font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-weight: 700; font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-weight: 700; font-size: 1.34rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--tight { padding: 60px 0; }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

/* Mono "ticket" label — the recurring signature device */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .16s ease, box-shadow .22s ease, background .22s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #140d2e; box-shadow: var(--glow-violet); }
.btn--primary:hover { box-shadow: 0 22px 60px -16px rgba(139, 92, 246, 0.75); }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--ink); border-color: rgba(183,162,255,.45); }
.btn--ghost:hover { border-color: var(--violet-lt); background: rgba(139,92,246,.14); }
.btn--light { background: var(--grad-gold); color: #2a1900; box-shadow: 0 16px 40px -16px rgba(255, 178, 74, 0.6); }
.btn--light:hover { box-shadow: 0 20px 52px -14px rgba(255, 178, 74, 0.85); }
.btn .arr { font-size: 1.05em; }

/* ---- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 11, 36, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 6px 14px rgba(139,92,246,.5)); }
.brand span small { display: block; font-family: var(--font-mono); font-weight: 700; font-size: .56rem; letter-spacing: .26em; color: var(--cyan); text-transform: uppercase; margin-top: 1px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-dim); font-family: var(--font-mono); font-weight: 700; font-size: .73rem; letter-spacing: .14em; text-transform: uppercase; }
.nav a:hover { color: var(--cyan); text-decoration: none; }

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

/* ---- Hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero h1 { margin: 22px 0 0; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.18rem; color: var(--ink-dim); max-width: 31em; margin: 22px 0 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__art { position: relative; display: grid; place-items: center; }
.hero__art svg { width: 100%; max-width: 440px; height: auto; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }
.scroll-hint { text-align: center; margin-top: 60px; color: var(--muted); font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.scroll-hint .arrow { display: block; margin-top: 8px; font-size: 1.3rem; color: var(--cyan); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ---- Games grid ----------------------------------------------------------- */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.game-card {
  position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .26s ease, border-color .26s ease;
}
.game-card:hover { transform: translateY(-8px); border-color: var(--violet-lt); box-shadow: 0 30px 70px -28px rgba(139, 92, 246, 0.7); }
.game-card__media { display: block; position: relative; aspect-ratio: 500 / 350; overflow: hidden; background: #0c0920; }
.game-card__body h3 a { color: inherit; text-decoration: none; }
.game-card__body h3 a:hover { color: var(--cyan); }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.game-card:hover .game-card__media img { transform: scale(1.06); }
.game-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18,14,43,.85)); }
.free-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #2a1900; background: var(--grad-gold); padding: 5px 10px; border-radius: 7px; box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.game-card__body { padding: 20px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.game-card__body h3 { margin-bottom: 8px; }
.game-card__body p { color: var(--muted); font-size: .92rem; flex: 1; margin-bottom: 18px; }
.game-card .btn { align-self: stretch; justify-content: center; padding: 12px 24px; font-size: .9rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(52,224,212,.32); padding: 5px 10px; border-radius: 7px; }

/* ---- About ---------------------------------------------------------------- */
.about { background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about__text { padding: 56px 56px; max-width: 760px; }
.about__text h2 { margin: 14px 0 18px; }
.about__text p { color: var(--ink-dim); }

/* ---- Steps / features ----------------------------------------------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 34px 30px; transition: border-color .22s, transform .22s; }
.info-card:hover { border-color: var(--violet-lt); transform: translateY(-4px); }
.info-card .num { font-family: var(--font-mono); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.info-card .icon { width: 54px; height: 54px; border-radius: 15px; background: var(--grad); display: grid; place-items: center; margin-bottom: 18px; color: #140d2e; box-shadow: var(--glow-violet); }
.info-card .icon svg { width: 28px; height: 28px; }
.info-card h3 { margin: 8px 0 10px; }
.info-card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---- Callout / disclaimer ------------------------------------------------- */
.callout { position: relative; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 48px 52px 48px 56px; box-shadow: var(--shadow); overflow: hidden; }
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad); }
.callout h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 16px; }
.callout p { color: var(--ink-dim); }
.callout p:last-child { margin-bottom: 0; }

/* ---- Subscribe (OneSignal form) ------------------------------------------- */
.subscribe { position: relative; overflow: hidden; background: linear-gradient(135deg, #2a1d6b 0%, #15224f 100%); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 58px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.subscribe::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(52,224,212,.3), transparent 65%); }
.subscribe > * { position: relative; z-index: 1; }
.subscribe h2 { color: #fff; }
.subscribe p { color: rgba(239,236,255,.74); }
.form-wrap { width: 100%; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(239,236,255,.6); margin-bottom: 7px; }
.form-group input[type=text], .form-group input[type=tel], .form-group input[type=email] {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(183,162,255,.22);
  background: rgba(10,7,28,.55); color: var(--ink); font-size: .98rem; font-family: var(--font-body);
}
.form-group input::placeholder { color: #6f679c; }
.form-group input:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
.form-consent { font-size: .82rem; color: rgba(239,236,255,.7); }
.form-consent a { color: var(--cyan); }
.form-consent label { display: flex; gap: 9px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: .82rem; font-family: var(--font-body); }
.btn-block { width: 100%; padding: 15px; border: 0; border-radius: 12px; background: var(--grad-gold); color: #2a1900; font-weight: 700; font-size: 1rem; cursor: pointer; margin-top: 6px; font-family: var(--font-body); transition: box-shadow .2s, transform .16s; }
.btn-block:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(255,178,74,.7); }
.success-msg { display: none; margin-top: 12px; color: #7ff0d8; font-size: .9rem; }
.success-msg.show { display: block; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { background: #0c0920; border-top: 1px solid var(--glass-border); color: var(--muted); padding: 60px 0 30px; }
.site-footer .brand { color: var(--ink); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid rgba(183,162,255,.12); }
.footer-blurb { max-width: 34em; font-size: .94rem; margin-top: 16px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.footer-links a { color: var(--ink-dim); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links a:hover { color: var(--cyan); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .85rem; color: var(--muted); }
.age-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,200,97,.4); border-radius: 999px; padding: 5px 14px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--gold); }

/* ---- Sub-page (game + policy) layout ------------------------------------- */
.page-hero { padding: 64px 0 28px; }
.breadcrumb { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--cyan); }

.game-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.game-hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-border); box-shadow: 0 30px 70px -26px rgba(139,92,246,.6); background: #0c0920; }
.game-hero__media img { width: 100%; height: auto; }
.game-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 10px 0 14px; }
.game-hero p { color: var(--ink-dim); }

.prose { max-width: 780px; margin: 0 auto; }
.prose p, .prose li { color: var(--ink-dim); }
.prose h2 { margin: 40px 0 14px; font-size: 1.7rem; }
.prose h3 { margin: 28px 0 10px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose .updated { font-family: var(--font-mono); color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 30px; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 14px; padding: 15px 18px; color: var(--ink-dim); }
.feature-list .chk { color: var(--cyan); flex: none; margin-top: 1px; font-weight: 700; }

/* Live game embed on game pages */
.play-head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.play-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 12px; }
.play-head p { color: var(--muted); margin: 0; }
/* 16:9 game (Play'n GO landscape canvas). Wrapper width tracks the canvas:
   sized to the largest 16:9 box that fits within 70vh height and 100% width, then centred. */
.game-embed { aspect-ratio: 16 / 9; width: min(100%, calc(70vh * 16 / 9)); margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-border); background: #000; box-shadow: 0 30px 70px -26px rgba(52,224,212,.45); }
.game-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.embed-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.embed-bar .hint { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); }

.disclaimer-strip { background: var(--glass); border: 1px solid var(--glass-border); border-left: 4px solid var(--gold); border-radius: 14px; padding: 16px 20px; font-size: .92rem; color: var(--ink-dim); display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; }
.disclaimer-strip strong { color: var(--ink); }

.note-box { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 14px; padding: 18px 22px; margin: 22px 0; color: var(--ink-dim); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* ---- Accessibility & motion ---------------------------------------------- */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid, .about, .game-hero, .subscribe, .contact-grid { grid-template-columns: 1fr; }
  .hero__art svg { max-width: 320px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .about__text { padding: 44px 32px; max-width: none; }
  .subscribe { padding: 40px; }
}
@media (max-width: 760px) {
  .nav { position: absolute; top: 78px; left: 0; right: 0; background: rgba(20,15,48,.97); backdrop-filter: blur(14px); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 18px; box-shadow: var(--shadow); display: none; border-bottom: 1px solid var(--glass-border); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--glass-border); }
  .nav-toggle { display: block; }
  .section { padding: 64px 0; }
  .callout, .subscribe { padding: 32px 26px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .games-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .about__text { padding: 34px 24px; }
}
