/* ==========================================================================================
   Binary Helm — site styles
   Brand pages (home, sign-in, admin) use the black + helm-green identity.
   Store pages (projects, project, play) use a dark storefront palette modelled on game-store
   listing pages, tinted per project via --accent / --app-bg.
   ========================================================================================== */

:root {
  --bh-green: #35af74;
  --bh-green-hi: #47c98a;
  --bh-black: #050706;
  --bh-ink: #0b0f0d;
  --bh-panel: #111714;
  --bh-line: #1f2a24;
  --bh-text: #e8efe9;
  --bh-muted: #8fa198;

  --st-bg: #1b2838;
  --st-bg-deep: #171d25;
  --st-panel: rgba(0, 0, 0, 0.2);
  --st-text: #c6d4df;
  --st-text-dim: #8f98a0;
  --st-link: #67c1f5;
  --st-tag-bg: rgba(103, 193, 245, 0.2);
  --st-hd: #fff;
  --st-buy-1: #75b022;
  --st-buy-2: #588a1b;

  --radius: 10px;
  --font-brand: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--bh-text);
  background: var(--bh-black);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1; }
img { max-width: 100%; }
a { color: var(--bh-green-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; background: rgba(255, 255, 255, 0.07); padding: 1px 5px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-brand); line-height: 1.2; margin: 0 0 0.5em; }
.muted { color: var(--bh-muted); }
.small { font-size: 12px; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font-brand);
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--bh-green); color: #04140b; }
.btn-primary:hover { background: var(--bh-green-hi); }
.btn-ghost { background: transparent; color: var(--bh-text); border-color: #2c3a33; }
.btn-ghost:hover { border-color: var(--bh-green); color: #fff; }
.btn-danger { background: transparent; color: #ff8a80; border-color: #5a2a27; }
.btn-danger:hover { background: #3a1513; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.linklike { background: none; border: 0; padding: 0; color: var(--bh-green-hi); font: inherit; cursor: pointer; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: #2a2410; color: #f5d36b; }

.alert { padding: 10px 14px; border-radius: 8px; background: #16201b; border: 1px solid var(--bh-line); font-size: 14px; }
.alert-error { background: #2a1513; border-color: #5a2a27; color: #ffb4ab; }
.alert-ok { background: #10251a; border-color: #1f5a3a; color: #b8f0d0; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(5, 7, 6, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bh-line); }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.brand img { height: 30px; width: auto; }
.brand-word { font: 700 18px var(--font-brand); letter-spacing: .01em; }
.brand-word b { color: var(--bh-green); }
.topnav { display: flex; gap: 22px; flex: 1; }
.topnav a { color: var(--bh-muted); font: 600 13px var(--font-brand); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; padding: 20px 0; border-bottom: 2px solid transparent; }
.topnav a:hover { color: #fff; }
.topnav a.is-active { color: #fff; border-bottom-color: var(--bh-green); }
.userbox { margin-left: auto; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--bh-text); font-size: 14px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary img, .avatar-fallback { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bh-green); color: #04140b; font-weight: 700; }
.usermenu-pop { position: absolute; right: 0; top: 42px; background: var(--bh-panel); border: 1px solid var(--bh-line); border-radius: 10px; padding: 12px 14px; min-width: 220px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.usermenu-email { color: var(--bh-muted); font-size: 13px; margin-bottom: 8px; word-break: break-all; }

/* ---------- Footer ---------- */
.sitefoot { border-top: 1px solid var(--bh-line); background: var(--bh-black); }
.sitefoot-inner { max-width: 1180px; margin: 0 auto; padding: 28px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-logo { height: 44px; width: auto; opacity: .9; }
.foot-meta { display: flex; gap: 18px; color: var(--bh-muted); font-size: 13px; flex-wrap: wrap; }

/* ==========================================================================================
   Home
   ========================================================================================== */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--bh-line); }
.hero-grid {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(53, 175, 116, .22), transparent 70%),
    linear-gradient(rgba(53, 175, 116, .07) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(53, 175, 116, .07) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; padding: 72px 16px 80px; text-align: center; }
.hero-logo { width: min(520px, 86vw); height: auto; display: block; margin: 0 auto 18px; }
.hero-tag { font: 600 clamp(18px, 2.4vw, 22px) var(--font-brand); color: var(--bh-green-hi); margin: 0 0 12px; }
.hero-intro { color: #b9c7bf; font-size: 17px; max-width: 680px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.toolbox { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.toolbox li { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--bh-muted); border: 1px solid var(--bh-line); padding: 5px 12px; border-radius: 999px; }

.band { padding: 72px 0; }
.band-alt { background: var(--bh-ink); border-top: 1px solid var(--bh-line); border-bottom: 1px solid var(--bh-line); }
.band-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.band-head { max-width: 720px; margin-bottom: 32px; }
.band-head h2 { font-size: clamp(26px, 3.2vw, 34px); }
.band-head h2::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--bh-green); margin-bottom: 14px; }
.band-head p { color: var(--bh-muted); margin: 0; }

.teaser-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.teaser { display: flex; flex-direction: column; background: var(--bh-panel); border: 1px solid var(--bh-line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none !important; transition: transform .2s, border-color .2s, box-shadow .2s; }
.teaser:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 40px -14px var(--accent); }
.teaser img { aspect-ratio: 920 / 430; object-fit: cover; width: 100%; height: auto; display: block; }
.teaser-blank { aspect-ratio: 920 / 430; background: linear-gradient(135deg, var(--accent), #000); }
.teaser-body { padding: 16px 18px 18px; }
.teaser-body h3 { font-size: 19px; margin-bottom: 4px; color: #fff; }
.teaser-body p { color: #b9c7bf; margin: 0 0 10px; font-size: 14px; }
.teaser-meta { font-size: 12px; color: var(--bh-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.lock { margin-left: 6px; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.fact { background: var(--bh-panel); border: 1px solid var(--bh-line); border-radius: var(--radius); padding: 20px 22px; }
.fact h3 { font-size: 16px; color: #fff; }
.fact p { margin: 0; color: #aebdb5; font-size: 14px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 22px; border-radius: var(--radius); border: 1px solid var(--bh-line); background: linear-gradient(160deg, #0f1612, #090c0a); }
.steps h3 { font-size: 17px; color: #fff; }
.steps p { color: #aebdb5; margin: 0; font-size: 14px; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bh-green); color: #04140b; font: 800 16px var(--font-brand); margin-bottom: 14px; }


/* ==========================================================================================
   Sign-in / locked
   ========================================================================================== */
.auth-wrap, .locked-wrap { position: relative; overflow: hidden; display: grid; place-items: center; padding: 64px 16px; min-height: calc(100vh - 160px); }
.auth-card, .locked-card { position: relative; width: min(480px, 100%); background: var(--bh-panel); border: 1px solid var(--bh-line); border-radius: 16px; padding: 36px 32px; text-align: center; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.auth-mark { display: block; margin: 0 auto 16px; height: 60px; width: auto; }
.auth-card h1, .locked-card h1 { font-size: 24px; }
.google-btn { display: flex; justify-content: center; margin: 22px 0 8px; min-height: 44px; }
/* Google renders its button in a light-scheme iframe; matching the scheme keeps it transparent instead of boxed in white. */
.google-btn { color-scheme: light; }
.dev-login { margin-top: 26px; padding-top: 20px; border-top: 1px dashed #2c3a33; text-align: left; }
.dev-login-head { font-size: 13px; color: var(--bh-muted); margin-bottom: 10px; }
.dev-login .row { display: flex; gap: 8px; }
input[type=email], input[type=text], textarea {
  width: 100%; font: inherit; color: var(--bh-text); background: #0a0e0c; border: 1px solid #2c3a33; border-radius: 8px; padding: 10px 12px;
}
input:focus, textarea:focus { outline: 2px solid var(--bh-green); outline-offset: 1px; border-color: transparent; }
.auth-error { margin-top: 16px; text-align: left; }

.page-locked { background: #0b0f14; }
.locked-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(28px) brightness(.35) saturate(1.2); transform: scale(1.1); }
.locked-icon { font-size: 34px; margin-bottom: 10px; }
.locked-tag { color: var(--accent, var(--bh-green-hi)); font-weight: 600; }
.locked-card p { color: #b9c7bf; }
.request-form { text-align: left; margin-top: 20px; display: grid; gap: 16px; }
.request-form fieldset { border: 1px solid var(--bh-line); border-radius: 10px; padding: 12px 16px; margin: 0; display: grid; gap: 6px; }
.request-form legend { padding: 0 6px; font-weight: 600; font-size: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--bh-green); width: 16px; height: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form-msg { margin: 0; color: #ffb4ab; font-size: 14px; }

/* ==========================================================================================
   Admin
   ========================================================================================== */
.admin-inner { max-width: 900px; margin: 0 auto; padding: 40px 16px 64px; }
.admin h1 { font-size: 28px; }
.admin-card { background: var(--bh-panel); border: 1px solid var(--bh-line); border-radius: 12px; padding: 22px; margin-top: 20px; }
.admin-card h2 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.count { font: 700 12px var(--font-body); background: var(--bh-green); color: #04140b; border-radius: 999px; padding: 2px 9px; }
.req-list { display: grid; gap: 12px; }
.req { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--bh-line); border-radius: 10px; background: #0c110e; }
.req-note { margin: 0; padding: 8px 12px; border-left: 3px solid var(--bh-green); color: #c9d6cf; background: #0f1713; border-radius: 0 6px 6px 0; font-size: 14px; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.req-actions { display: flex; gap: 8px; }
.history { width: 100%; border-collapse: collapse; font-size: 13px; }
.history th, .history td { text-align: left; padding: 8px; border-bottom: 1px solid var(--bh-line); }

/* ==========================================================================================
   Store pages
   ========================================================================================== */
.page-store { background: var(--st-bg); color: var(--st-text); font-size: 14px; }
.page-store .topbar { background: rgba(23, 26, 33, .92); border-bottom-color: #0e141b; }
.page-store a { color: var(--st-link); }
.page-store .muted { color: var(--st-text-dim); }
.store { position: relative; }
.store-inner { position: relative; max-width: 972px; margin: 0 auto; padding: 18px 16px 64px; }

.store-subnav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 20px; padding: 10px 14px; border-radius: 3px; background: linear-gradient(90deg, rgba(62, 103, 150, .92) 11%, rgba(58, 120, 177, .8) 26%, rgba(15, 33, 110, .9) 99%); box-shadow: 0 0 3px rgba(0,0,0,.4); }
.store-subnav-title { font: 600 15px var(--font-brand); color: #fff; letter-spacing: .02em; }
.store-subnav .muted { color: #c7d5e0; font-size: 13px; }

.home-hd { font: 500 14px var(--font-body); text-transform: uppercase; letter-spacing: .04em; color: #fff; margin: 0 0 10px; }

/* Featured carousel */
.featured { position: relative; margin-bottom: 36px; }
.featured-track { position: relative; height: 353px; }
.featured-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 616px 1fr; box-shadow: 0 0 7px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .4s; color: inherit; text-decoration: none !important; }
.featured-slide.is-active { opacity: 1; pointer-events: auto; }
.featured-main { width: 100%; height: 353px; object-fit: cover; display: block; }
.featured-info { background: linear-gradient(180deg, #0f1923, #142433); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.featured-info h3 { font: 500 24px var(--font-body); color: #fff; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.featured-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; opacity: .85; }
.featured-slide:hover .featured-shots img { opacity: 1; }
.featured-reason { color: #fff; font-size: 13px; margin: auto 0 0; }
.featured-price .free { display: inline-block; background: rgba(0,0,0,.2); color: #beee11; padding: 4px 8px; font-size: 13px; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 64px; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; background: linear-gradient(90deg, rgba(0,0,0,.3), rgba(0,0,0,0)); }
.carousel-arrow.prev { left: -42px; }
.carousel-arrow.next { right: -42px; transform: translateY(-50%) scaleX(-1); }
.carousel-arrow:hover { background: linear-gradient(90deg, rgba(103,193,245,.5), rgba(103,193,245,0)); }
.carousel-dots { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.carousel-dots button { width: 15px; height: 9px; border: 0; border-radius: 2px; background: hsla(202, 60%, 100%, .2); cursor: pointer; }
.carousel-dots button.is-active { background: hsla(202, 60%, 100%, .45); }

/* List rows */
.app-list { display: grid; gap: 5px; }
.app-row { display: grid; grid-template-columns: 184px 1fr 140px 120px; align-items: center; gap: 14px; background: rgba(0, 0, 0, .2); color: var(--st-text) !important; text-decoration: none !important; padding-right: 14px; transition: background .15s; }
.app-row:hover { background: linear-gradient(90deg, rgba(103,193,245,.25), rgba(103,193,245,.06)); }
.app-row img, .app-row-blank { width: 184px; height: 69px; object-fit: cover; display: block; background: #0f1923; }
.app-row-title { color: #fff; font-size: 16px; }
.app-row-tags { color: #556772; font-size: 12px; margin-top: 2px; }
.app-row:hover .app-row-tags { color: #8bb9e0; }
.app-row-release { font-size: 12px; color: var(--st-text-dim); }
.app-row-price { justify-self: end; font-size: 13px; color: #beee11; }
.app-row.is-locked { opacity: .7; }
.app-row.is-locked .app-row-price { color: var(--st-text-dim); }

.platform-icon { display: inline-block; width: 20px; height: 18px; margin-right: 4px; vertical-align: middle; background: currentColor; opacity: .7; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; color: #c6d4df; }
.platform-icon.windows { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M0 2.8 8.2 1.7v7.9H0zm9.1-1.2L20 0v9.6H9.1zM0 10.4h8.2v7.9L0 17.2zm9.1 0H20V20L9.1 18.4z'/%3E%3C/svg%3E"); }
.platform-icon.android { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.5 9.4 19.3 6.3a.4.4 0 0 0-.7-.4l-1.8 3.1a11 11 0 0 0-9.6 0L5.4 5.9a.4.4 0 0 0-.7.4l1.8 3.1A10 10 0 0 0 1.5 17h21a10 10 0 0 0-5-7.6zM7 14.3a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm10 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/%3E%3C/svg%3E"); }
.platform-icon.web { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20'/%3E%3C/svg%3E"); }

/* ---------- Project page ---------- */
.app-page { background: var(--app-bg); }
.app-bg { position: absolute; inset: 0 0 auto; height: 900px; pointer-events: none; background-size: cover; background-position: center top; opacity: .5;
  background-image: radial-gradient(ellipse 70% 60% at 50% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.breadcrumbs { font-size: 12px; color: var(--st-text-dim); margin: 6px 0 6px; }
.breadcrumbs a { color: var(--st-text-dim); }
.breadcrumbs a:hover { color: #fff; text-decoration: none; }
.app-title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.app-name { font: 400 26px var(--font-body); color: #fff; margin: 0; letter-spacing: .01em; }

.btn-store-dark { display: inline-block; padding: 0 15px; line-height: 30px; border-radius: 2px; border: 0; cursor: pointer; font: 13px var(--font-body); color: #67c1f5 !important; background: rgba(103, 193, 245, .2); text-decoration: none !important; white-space: nowrap; }
.btn-store-dark:hover { color: #fff !important; background: linear-gradient(-60deg, #417a9b 5%, #67c1f5 95%); }
.btn-store-green { display: inline-block; padding: 0 18px; line-height: 34px; border-radius: 2px; font: 15px var(--font-body); color: #d2efa9 !important; background: linear-gradient(to right, var(--st-buy-1) 5%, var(--st-buy-2) 95%); text-decoration: none !important; text-shadow: 1px 1px 0 rgba(0,0,0,.3); }
.btn-store-green:hover { color: #fff !important; background: linear-gradient(to right, #8ed629 5%, #6aa621 95%); }
.btn-store-green.is-disabled { filter: grayscale(1); opacity: .6; cursor: default; }

.glance-block { display: grid; grid-template-columns: 616px 1fr; gap: 14px; background: linear-gradient(90deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.15) 100%); padding: 14px; border-radius: 2px; }
.highlight { min-width: 0; outline: none; }
.highlight-main { position: relative; aspect-ratio: 616 / 347; background: #000; overflow: hidden; cursor: zoom-in; }
.highlight-item { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s; }
.highlight-item.is-active { opacity: 1; z-index: 1; }
.highlight-empty { display: grid; place-items: center; height: 100%; color: var(--st-text-dim); }
.highlight-strip-wrap { margin-top: 6px; }
.highlight-strip { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.highlight-strip::-webkit-scrollbar { display: none; }
.highlight-thumb { position: relative; flex: 0 0 116px; height: 65px; padding: 0; border: 0; background: #000; cursor: pointer; opacity: .6; outline: 2px solid transparent; transition: opacity .15s; }
.highlight-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.highlight-thumb:hover { opacity: 1; }
.highlight-thumb.is-active { opacity: 1; outline-color: #fff; }
.highlight-thumb.is-video::after { content: '▶'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 20px; text-shadow: 0 0 6px #000; }
.highlight-slider { position: relative; height: 14px; margin-top: 6px; background: rgba(0,0,0,.25); border-radius: 3px; cursor: pointer; touch-action: none; }
.highlight-slider-handle { position: absolute; top: 2px; bottom: 2px; background: #3d6c8d; border-radius: 3px; }
.highlight-slider:hover .highlight-slider-handle { background: #67c1f5; }

.glance { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.glance-capsule { width: 100%; height: auto; aspect-ratio: 920 / 430; object-fit: cover; display: block; }
.glance-desc { margin: 0; color: #c6d4df; font-size: 13px; line-height: 1.5; max-height: 7.5em; overflow: hidden; }
.glance-meta { margin: 0; display: grid; gap: 4px; font-size: 12px; }
.glance-meta div { display: grid; grid-template-columns: 96px 1fr; }
.glance-meta dt { color: #556772; text-transform: uppercase; font-size: 10px; letter-spacing: .03em; padding-top: 2px; }
.glance-meta dd { margin: 0; color: var(--st-text-dim); }
.glance-meta dd.status { color: #66c0f4; }
.glance-tags-label { color: #556772; font-size: 12px; margin-bottom: 4px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 2px 3px; }
.tag { display: inline-block; padding: 0 7px; line-height: 19px; font-size: 11px; color: #67c1f5; background: var(--st-tag-bg); border-radius: 2px; white-space: nowrap; }

.queue-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 14px 0 18px; padding: 12px 14px; background: linear-gradient(90deg, rgba(103, 193, 245, .14) 0%, rgba(103, 193, 245, .04) 100%); border-radius: 2px; }
.queue-note { margin-left: auto; color: var(--st-text-dim); font-size: 12px; }

.app-columns { display: grid; grid-template-columns: 1fr 308px; gap: 26px; }
.app-left { min-width: 0; }

.purchase-box { position: relative; margin-bottom: 30px; padding: 16px 16px 26px; background: linear-gradient(-60deg, rgba(226,244,255,.3) 5%, rgba(84,107,115,.3) 95%); border-radius: 4px; }
.purchase-box h2 { font: 400 21px var(--font-body); color: #fff; margin: 0 0 8px; padding-right: 70px; }
.platform-row { position: absolute; top: 18px; right: 16px; }
.purchase-note { margin: 0; color: #b0c3d0; font-size: 12px; }
.purchase-note code { background: rgba(0,0,0,.25); }
.purchase-action { position: absolute; right: 16px; bottom: -17px; display: flex; align-items: center; padding: 2px 2px 2px 0; background: #000; border-radius: 2px; }
.purchase-action .price { padding: 0 12px; font-size: 13px; color: #c6d4df; white-space: nowrap; }
.purchase-alt { position: absolute; left: 16px; bottom: -22px; font-size: 12px; }
.notice-box { margin: -6px 0 30px; padding: 12px 16px; font-size: 13px; background: rgba(240, 180, 60, .08); border-left: 3px solid #e2a83a; color: #d9c9a3; }
.notice-box ul { margin: 6px 0 0; padding-left: 18px; }

.game-section { margin-bottom: 34px; }
.section-hd { font: 400 14px var(--font-body); text-transform: uppercase; letter-spacing: .03em; color: #fff; padding-bottom: 5px; margin: 0 0 12px; background-image: linear-gradient(to right, #3b6e8c 0%, rgba(59,110,140,0) 100%); background-size: 100% 1px; background-repeat: no-repeat; background-position: bottom left; }
.game-desc { color: #acb2b8; font-size: 14px; line-height: 1.6; }
.game-desc p { margin: 0 0 14px; }
.bb-h { font: 400 14px var(--font-body); color: var(--accent); text-transform: uppercase; letter-spacing: .04em; margin: 22px 0 8px; }
.bb-list { margin: 0 0 14px; padding-left: 20px; }
.bb-list li { margin-bottom: 6px; }
.bb-img { margin: 6px 0 18px; }
.bb-img img { width: 100%; display: block; image-rendering: pixelated; }
.bb-img figcaption { font-size: 12px; color: var(--st-text-dim); margin-top: 6px; }

.controls { border-collapse: collapse; width: 100%; font-size: 13px; }
.controls th { text-align: left; font-weight: 400; color: #acb2b8; padding: 6px 12px 6px 0; width: 46%; }
.controls td { padding: 6px 0; color: var(--st-text-dim); }
.controls tr + tr th, .controls tr + tr td { border-top: 1px solid rgba(255,255,255,.05); }
kbd { display: inline-block; font: 600 11px var(--font-body); padding: 2px 7px; border-radius: 4px; color: #e6edf3; background: #2a3f52; box-shadow: inset 0 -2px 0 rgba(0,0,0,.35); }


.sysreq { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sysreq h4 { margin: 0 0 6px; font: 400 12px var(--font-body); text-transform: uppercase; color: #c6d4df; }
.sysreq ul { list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--st-text-dim); display: grid; gap: 4px; }
.sysreq strong { color: #acb2b8; font-weight: 400; }

.kit summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.kit summary::-webkit-details-marker { display: none; }
.kit summary .section-hd { flex: 1; }
.kit summary .section-hd::after { content: ' ▸'; color: var(--st-text-dim); }
.kit[open] summary .section-hd::after { content: ' ▾'; }
.kit-summary { font-size: 12px; color: var(--st-text-dim); white-space: nowrap; }
.kit-intro { font-size: 13px; color: var(--st-text-dim); }
.kit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kit-table th { text-align: left; font-weight: 400; color: #556772; text-transform: uppercase; font-size: 11px; padding: 6px 8px; }
.kit-table td { padding: 8px; vertical-align: middle; border-top: 1px solid rgba(255,255,255,.06); color: #acb2b8; }
.kit-thumb { height: 44px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.checker { background: repeating-conic-gradient(#333 0 25%, #555 0 50%) 50% / 12px 12px; }
.kit-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 2px; }
.kit-badge.ok { background: rgba(117, 176, 34, .25); color: #a4d007; }
.kit-badge.ph { background: rgba(103, 193, 245, .18); color: #67c1f5; }
.kit-badge.warn { background: rgba(226, 168, 58, .2); color: #e2a83a; }
.kit-badge.miss { background: rgba(255, 255, 255, .08); color: var(--st-text-dim); }
.warn-text { color: #e2a83a; }

.app-right { display: flex; flex-direction: column; gap: 10px; }
.side-block { background: rgba(0, 0, 0, .2); padding: 12px 14px; font-size: 12px; color: var(--st-text-dim); }
.side-block p { margin: 0; }
.side-hd { color: #fff; text-transform: uppercase; font-size: 12px; margin-bottom: 8px; letter-spacing: .03em; }
.features { padding: 6px 0; }
.feature-row { display: flex; align-items: center; gap: 10px; padding: 6px 14px; color: #67c1f5; font-size: 13px; background: rgba(103, 193, 245, .08); margin: 0 6px 3px; }
.feature-ico { width: 22px; height: 22px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 35%, #000)); flex: 0 0 auto; }
.lang-table { width: 100%; border-collapse: collapse; }
.lang-table th { font-weight: 400; color: #556772; font-size: 10px; text-transform: uppercase; padding: 2px; text-align: center; }
.lang-table td { padding: 4px 2px; text-align: center; color: #c6d4df; }
.lang-table td:first-child { text-align: left; }
.details { margin: 0; display: grid; gap: 4px; }
.details div { display: grid; grid-template-columns: 90px 1fr; }
.details dt { color: #556772; text-transform: uppercase; font-size: 10px; padding-top: 2px; }
.details dd { margin: 0; color: #c6d4df; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0, 0, 0, .88); padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 0 40px #000; }
.lightbox-close { position: absolute; top: 12px; right: 18px; font-size: 36px; color: #fff; background: none; border: 0; cursor: pointer; }

/* Web demo player */
.play-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.play-frame-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 20px rgba(0,0,0,.6); margin-bottom: 10px; }
.play-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================================
   Responsive
   ========================================================================================== */
@media (max-width: 1060px) {
  .carousel-arrow.prev { left: 0; }
  .carousel-arrow.next { right: 0; }
}
@media (max-width: 980px) {
  .glance-block { grid-template-columns: 1fr; }
  .glance { display: grid; grid-template-columns: 324px 1fr; gap: 14px; align-items: start; }
  .glance-capsule { grid-row: span 3; }
  .app-columns { grid-template-columns: 1fr; }
  .featured-track { height: auto; aspect-ratio: auto; }
  .featured-slide { position: relative; display: none; grid-template-columns: 1fr; }
  .featured-slide.is-active { display: grid; }
  .featured-main { height: auto; aspect-ratio: 1232 / 706; }
  .featured-shots { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .topbar-inner { gap: 14px; }
  .topnav { gap: 14px; }
  .topnav a[href="/#good-to-know"] { display: none; }
  .brand-word { display: none; }
  .username { display: none; }
  .glance { grid-template-columns: 1fr; }
  .glance-capsule { grid-row: auto; }
  .app-row { grid-template-columns: 120px 1fr; padding-right: 10px; }
  .app-row img, .app-row-blank { width: 120px; height: 45px; }
  .app-row-release { display: none; }
  .app-row-price { grid-column: 2; justify-self: start; margin-top: -10px; }
  .app-row-platform { display: none; }
  .sysreq { grid-template-columns: 1fr; }
  .purchase-box h2 { font-size: 18px; }
  .purchase-action { position: static; margin-top: 14px; justify-content: space-between; }
  .purchase-box { padding-bottom: 16px; }
  .purchase-alt { position: static; margin-top: 8px; }
  .queue-note { margin-left: 0; width: 100%; }
  .kit-table th:nth-child(4), .kit-table td:nth-child(4) { display: none; }
  .auth-card, .locked-card { padding: 28px 20px; }
  .dev-login .row { flex-direction: column; }
  .carousel-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Legal pages */
.legal-inner { max-width: 720px; margin: 0 auto; padding: 48px 16px 72px; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 19px; margin-top: 32px; color: #fff; }
.legal p, .legal li { color: #b9c7bf; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.foot-meta a { color: var(--bh-muted); }
.foot-meta a:hover { color: #fff; }
