/* ============================================================
   Weez Beez — styles (plain CSS, mirrors the Figma design)
   ============================================================ */

:root {
  --brand: #7c3aed;
  --brand-light: #ede9fe;
  --ink: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --maxw: 1152px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

[hidden] { display: none !important; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  padding: 12px 24px; border-radius: 999px; transition: opacity .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { opacity: .9; }
.btn-outline { border: 1px solid var(--gray-200); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--gray-300); background: var(--gray-50); }
.btn-sm { padding: 8px 16px; font-size: 14px; font-weight: 600; }
.btn-lg { padding: 16px 28px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 32px; width: auto; }
.nav-title { font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--gray-600); transition: color .2s; }
.nav-link:hover { color: var(--ink); }
.nav-link.brand { color: var(--brand); font-weight: 600; }
.nav-toggle { display: none; padding: 8px; color: var(--gray-600); }
.nav-mobile { display: none; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile {
    display: flex; flex-direction: column; gap: 12px;
    border-top: 1px solid var(--gray-100); background: #fff; padding: 16px 24px;
  }
}

/* ---------- Hero ---------- */
.hero { padding-top: 96px; padding-bottom: 80px; }
.hero-inner { max-width: 640px; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; padding: 6px 12px; border-radius: 999px;
  background: var(--brand-light); color: var(--brand); margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(48px, 8vw, 72px);
  line-height: 1; letter-spacing: -.02em; margin-bottom: 24px; color: var(--ink);
}
.hero-title .accent { color: var(--brand); }
.hero-sub { font-size: clamp(18px, 2.5vw, 20px); color: var(--gray-500); max-width: 512px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 640px) { .hero { padding-top: 64px; padding-bottom: 48px; } }

/* ---------- Stats ---------- */
.stats-band { border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); background: var(--gray-50); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.stat { text-align: center; }
.stat-value { font-family: var(--font-display); font-weight: 900; font-size: 36px; letter-spacing: -.02em; color: var(--brand); }
.stat-label { font-size: 14px; color: var(--gray-500); margin-top: 4px; font-weight: 500; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ---------- Games section ---------- */
.games-section { padding-top: 96px; padding-bottom: 96px; }
.section-head { margin-bottom: 56px; }
.section-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 4vw, 40px); margin-bottom: 12px; color: var(--ink); }
.section-desc { color: var(--gray-500); font-size: 16px; max-width: 460px; }
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .games-grid { grid-template-columns: 1fr; } .games-section { padding-top: 64px; padding-bottom: 64px; } }

/* ---------- Card ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: 24px; overflow: hidden; border: 1px solid var(--gray-100);
  background: #fff; transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -12px rgba(0,0,0,.15); }
.card-media { position: relative; width: 100%; height: 200px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-emoji { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 72px; opacity: .2; }
.card-emoji.big { font-size: 96px; }
.card-dot { position: absolute; top: 12px; right: 12px; width: 12px; height: 12px; border-radius: 999px; }
.card-soon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.card-soon span {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .05em;
  color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
}
.card-play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .2s;
}
.card-media:hover .card-play-overlay { opacity: 1; }
.play-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px; gap: 12px; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--ink); }
.card-sub { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.card-desc { font-size: 14px; color: var(--gray-500); flex: 1; }
.btn-play-browser {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 10px 12px; border-radius: 12px; font-family: var(--font-display); font-weight: 600; font-size: 14px;
  transition: opacity .2s;
}
.btn-play-browser:hover { opacity: .88; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.pbadge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; transition: opacity .2s; }
.pbadge:hover { opacity: .8; }

/* ---------- Contact band ---------- */
.contact-band { background: #030712; color: #fff; }
.contact-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.contact-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 4vw, 40px); margin-bottom: 8px; }
.contact-sub { color: var(--gray-400); font-size: 14px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--gray-100); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--gray-400); }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-name { font-family: var(--font-display); font-weight: 700; color: var(--gray-700); }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links a:hover { color: var(--gray-700); }

/* ============================================================
   SPLASH (preview) view
   ============================================================ */
.splash-main { min-height: 60vh; }
.splash-inner { max-width: 672px; margin: 0 auto; padding: 56px 24px; display: flex; flex-direction: column; gap: 32px; }
.splash-thumb { width: 100%; border-radius: 24px; overflow: hidden; aspect-ratio: 16/9; max-height: 380px; }
.splash-thumb img { width: 100%; height: 100%; object-fit: cover; }
.splash-sub { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; }
.splash-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 5vw, 40px); line-height: 1.1; margin-bottom: 12px; color: var(--ink); }
.splash-desc { font-size: 16px; color: var(--gray-500); max-width: 512px; }

.ad-slot {
  width: 100%; max-width: 300px; aspect-ratio: 1/1; max-height: 300px;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--gray-200); border-radius: 16px; background: var(--gray-50);
}
.ad-inner { text-align: center; padding: 0 16px; }
.ad-mark { font-size: 24px; opacity: .3; margin-bottom: 8px; }
.ad-inner p { font-size: 12px; color: var(--gray-400); font-weight: 500; }
.ad-inner span { font-size: 12px; color: var(--gray-300); }

.btn-start {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px; border-radius: 16px; font-family: var(--font-display); font-weight: 900; font-size: 18px; color: #fff;
  transition: transform .1s, opacity .2s;
}
.btn-start:hover { opacity: .9; }
.btn-start:active { transform: scale(.97); }

.splash-section { display: flex; flex-direction: column; }
.splash-h2 { font-family: var(--font-display); font-weight: 900; font-size: 20px; margin-bottom: 12px; color: var(--ink); }
.splash-text { font-size: 14px; color: var(--gray-500); }
.controls { display: flex; flex-direction: column; gap: 8px; }
.control-row { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 12px; }
.control-key { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 8px; color: #fff; white-space: nowrap; font-family: var(--font-display); }
.control-action { font-size: 14px; color: var(--gray-600); }

.splash-back-wrap { padding-top: 8px; padding-bottom: 16px; }
.splash-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; transition: opacity .2s; }
.splash-back:hover { opacity: .7; }

/* ============================================================
   PLAYER view
   ============================================================ */
.player-view { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: #0f0f0f; }
.player-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; flex-shrink: 0; background: #1a1a1a; border-bottom: 1px solid #2a2a2a; }
.player-meta { display: flex; align-items: center; gap: 12px; }
.player-dot { width: 10px; height: 10px; border-radius: 999px; }
.player-name { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 14px; }
.player-sub { font-size: 12px; color: #6b7280; }
.player-actions { display: flex; align-items: center; gap: 8px; }
.btn-player { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 12px; color: #fff; transition: opacity .2s; }
.btn-player:hover { opacity: .8; }
.btn-home { background: #2a2a2a; }
.btn-quit { background: #ef4444; }

.player-stage { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 16px; }
.frame-wrap { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,.6); border: 2px solid #2a2a2a; }
.frame-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.frame-wrap.landscape { width: 100%; height: 100%; max-width: 1200px; max-height: 720px; }
.frame-wrap.portrait { width: min(390px, 100%); height: 100%; max-height: min(844px, 100%); }

.player-hint { text-align: center; font-size: 12px; color: #6b7280; padding: 0 16px 8px; }
/* rotate hint is only useful on small screens */
@media (min-width: 641px) { .player-hint { display: none; } }
@media (max-width: 640px) { .player-meta .player-sub { display: none; } }


/* ===== static site additions ===== */
/* contrast (WCAG AA) — darken muted text that failed the audit */
.footer-inner{ color:#4b5563; }
.footer-name{ color:#374151; }
.footer-links a{ color:#4b5563; }
.badge{ color:#6d28d9; }
.card-icon{ width:104px; height:104px; border-radius:24px; box-shadow:0 10px 24px -8px rgba(0,0,0,.3); }
.card-media{ display:flex; align-items:center; justify-content:center; }
.card-badge{ position:absolute; top:12px; left:12px; background:rgba(255,255,255,.92); color:var(--brand); font-family:var(--font-display); font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.06em; padding:5px 10px; border-radius:999px; }
.about{ padding:72px 0; border-top:1px solid var(--gray-100); }
.about-inner{ max-width:760px; }
.about-title{ font-family:var(--font-display); font-weight:900; font-size:clamp(26px,3.5vw,34px); margin-bottom:16px; color:var(--ink); }
.about-body{ font-size:17px; color:var(--gray-600); line-height:1.75; }
.detail{ padding:40px 0 88px; }
.detail-head{ display:flex; gap:28px; flex-wrap:wrap; align-items:flex-start; margin:18px 0 8px; }
.detail-icon{ width:132px; height:132px; border-radius:28px; box-shadow:0 16px 32px -10px rgba(0,0,0,.35); flex-shrink:0; }
.detail-sub{ font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.12em; margin-bottom:6px; }
.detail-title{ font-family:var(--font-display); font-weight:900; font-size:clamp(30px,5vw,44px); line-height:1.05; margin-bottom:14px; color:var(--ink); }
.detail-desc{ font-size:16px; color:var(--gray-600); max-width:620px; margin-bottom:20px; line-height:1.65; }
.store-btns{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.detail-section{ margin-top:44px; max-width:720px; }
.detail-article{ color:var(--gray-600); line-height:1.75; font-size:16px; }
.detail-article h2{ font-size:22px; font-weight:800; color:var(--ink,#111827); margin:28px 0 12px; letter-spacing:-.01em; }
.detail-article h3{ font-size:18px; font-weight:700; color:var(--ink,#111827); margin:22px 0 10px; }
.detail-article h2:first-child,.detail-article h3:first-child{ margin-top:0; }
.detail-article p{ margin:0 0 14px; }
.detail-article ul,.detail-article ol{ margin:0 0 14px; padding-left:22px; }
.detail-article li{ margin:6px 0; }
.detail-article a{ color:#2563EB; text-decoration:underline; }
.detail-article img{ max-width:100%; height:auto; border-radius:12px; margin:12px 0; }
.detail-article table{ border-collapse:collapse; width:100%; margin:12px 0; font-size:15px; }
.detail-article th,.detail-article td{ border:1px solid var(--line,#e5e7eb); padding:8px 10px; text-align:left; }
.detail-article blockquote{ margin:14px 0; padding:8px 16px; border-left:4px solid #c7d2fe; color:var(--gray-600); background:#f8fafc; border-radius:0 8px 8px 0; }
.play-embed{ margin-top:32px; display:flex; justify-content:center; }
.play-embed .frame-wrap{ position:relative; border-radius:16px; overflow:hidden; box-shadow:0 25px 50px -12px rgba(0,0,0,.4); border:2px solid #2a2a2a; width:min(390px,100%); height:min(760px,82vh); }
.play-embed iframe{ width:100%; height:100%; border:0; display:block; }
.yt-facade{ position:relative; width:100%; aspect-ratio:16/9; border-radius:20px; overflow:hidden; cursor:pointer; background:#000; }
.yt-facade img{ width:100%; height:100%; object-fit:cover; opacity:.92; transition:opacity .2s, transform .3s; }
.yt-facade:hover img{ opacity:1; transform:scale(1.03); }
.yt-play{ position:absolute; inset:0; margin:auto; width:76px; height:76px; border-radius:999px; background:rgba(124,58,237,.92); display:flex; align-items:center; justify-content:center; box-shadow:0 8px 24px rgba(0,0,0,.4); }
.yt-play svg{ width:34px; height:34px; fill:#fff; margin-left:4px; }
.yt-frame{ width:100%; aspect-ratio:16/9; border:0; border-radius:20px; display:block; }
.ad-wrap{ max-width:var(--maxw); margin:28px auto; padding:0 24px; text-align:center; }
.ad-wrap ins{ margin:0 auto; }
.block{ padding:56px 24px; max-width:var(--maxw); margin:0 auto; }
.block-h{ font-family:var(--font-display); font-weight:900; font-size:clamp(24px,3.2vw,32px); margin-bottom:14px; color:var(--ink); }
.block-body{ font-size:17px; color:var(--gray-600); line-height:1.75; max-width:760px; }
.block-body p{ margin-bottom:14px; }
.block-img{ width:100%; border-radius:20px; box-shadow:0 16px 34px -14px rgba(0,0,0,.3); }
.block-cap{ font-size:14px; color:var(--gray-500); margin-top:10px; text-align:center; }
.block-cta{ background:var(--brand); color:#fff; }
.block-cta-inner{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; padding:52px 24px; }
.block-cta .contact-title{ color:#fff; } .block-cta .contact-sub{ color:rgba(255,255,255,.85); }
.block-cta .btn-brand{ background:#fff; color:var(--brand); }
.lang{ position:relative; }
.lang>summary{ list-style:none; cursor:pointer; font-family:var(--font-display); font-weight:600; font-size:14px; color:var(--gray-600); padding:6px 10px; border-radius:8px; }
.lang>summary::-webkit-details-marker{ display:none; }
.lang>summary:hover{ color:var(--ink); background:var(--gray-50); }
.lang-menu{ position:absolute; right:0; top:100%; margin-top:8px; background:#fff; border:1px solid var(--gray-200); border-radius:12px; box-shadow:0 14px 30px -10px rgba(0,0,0,.28); padding:6px; min-width:160px; z-index:60; display:flex; flex-direction:column; max-height:320px; overflow:auto; }
.lang-item{ padding:8px 12px; border-radius:8px; font-size:14px; color:var(--gray-700); }
.lang-item:hover{ background:var(--gray-50); }
.lang-item.current{ color:var(--brand); font-weight:700; }
.player-bar .lang>summary{ color:#cbd5e1; }
.player-bar .lang>summary:hover{ color:#fff; background:#2a2a2a; }
.player-bar .lang-menu{ background:#1a1a1a; border-color:#2a2a2a; }
.player-bar .lang-item{ color:#cbd5e1; }
.player-bar .lang-item:hover{ background:#2a2a2a; }
.shots{ display:flex; gap:14px; overflow-x:auto; padding-bottom:8px; scroll-snap-type:x mandatory; }
.shots .shot{ height:340px; width:auto; border-radius:16px; box-shadow:0 10px 24px -10px rgba(0,0,0,.35); scroll-snap-align:start; flex:0 0 auto; }
@media (max-width:520px){ .detail-icon{ width:96px; height:96px; border-radius:22px; } .shots .shot{ height:260px; } }
