@font-face {
  font-family: 'Oswald Stencil';
  src: url('assets/fonts/oswald-stencil-webfont.woff') format('woff'),
       url('assets/fonts/oswald-stencil-webfont.eot') format('embedded-opentype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --primary-color: #ff6a2a;
  --secondary-color: #61e7ff;
  --bg-color: #07090b;
  --text-color: #e8ecee;
  --muted: #aab2b8;
  --dim: #7f8a90;
  --header-bg: #0b0e10;
  --card-bg: #11161a;
  --line: rgba(214, 229, 235, .16);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Inter, 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; opacity: .05;
  background-image: url('assets/brushed-steel-tile.webp');
  background-size: 520px;
  mix-blend-mode: screen;
}

#game-container { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
canvas { display: block; width: 100%; height: 100%; }

/* ---------- Splash ---------- */
.splash-screen {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; justify-content: center; align-items: center;
  background: radial-gradient(circle at 50% 45%, #10161b 0%, #04060700 60%), #040607;
  transition: opacity .6s ease;
}
.splash-video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; visibility: hidden; transition: opacity .5s ease;
  background: #040607;
}
.splash-screen.playing .splash-video { opacity: 1; visibility: visible; }
.splash-screen.playing .splash-inner,
.splash-screen.playing .splash-bars { opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.splash-screen.playing .splash-skip { opacity: 1; pointer-events: auto; }
.splash-screen.playing .splash-inner {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  padding: 0; z-index: 3; opacity: 1;
}
.splash-screen.playing .splash-mark,
.splash-screen.playing .splash-title,
.splash-screen.playing .splash-sub,
.splash-screen.playing #play-button { display: none; }
.splash-inner { position: relative; z-index: 2; text-align: center; padding: 20px; }
.splash-mark { display: flex; justify-content: center; margin-bottom: 26px; }
.splash-logo {
  width: 86px; height: auto; display: block;
  filter: drop-shadow(0 0 26px rgba(97,231,255,.45));
  animation: markRise .9s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes markRise { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
.splash-title {
  margin: 0; font-family: 'Oswald Stencil', 'Barlow Condensed', sans-serif;
  font-size: clamp(46px, 9vw, 108px); letter-spacing: .06em;
  text-transform: uppercase; color: #eef4f6;
  text-shadow: 0 0 44px rgba(97, 231, 255, .3);
}
.splash-sub { margin: 10px 0 40px; color: var(--secondary-color); font-size: 11px; letter-spacing: .34em; text-transform: uppercase; }
#play-button {
  background: linear-gradient(145deg, #e6e6e6, #b9c0c4);
  color: #10171b; border: 2px solid #8e989e;
  padding: 18px 54px; font: 700 15px Inter; letter-spacing: .22em; text-transform: uppercase;
  border-radius: 50px; cursor: pointer; transition: all .3s;
  box-shadow: 0 4px 22px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.6);
}
#play-button:hover { background: linear-gradient(145deg, #fff, #d6dcdf); transform: scale(1.05); box-shadow: 0 8px 34px rgba(97,231,255,.3), inset 0 1px 0 rgba(255,255,255,.7); }
.splash-skip { display: block; margin-top: 22px; color: var(--dim); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.splash-skip:hover { color: var(--secondary-color); }
.splash-bars { position: absolute; bottom: 42px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.splash-bars i { width: 34px; height: 2px; background: #2c3439; overflow: hidden; }
.splash-bars i::after { content: ""; display: block; height: 100%; background: var(--secondary-color); animation: load 1.4s infinite; }
.splash-bars i:nth-child(2)::after { animation-delay: .18s; }
.splash-bars i:nth-child(3)::after { animation-delay: .36s; }
@keyframes load { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- Shell ---------- */
.page-container { position: relative; z-index: 3; width: 100%; flex: 1; display: none; flex-direction: column; }
.page-container.show { display: flex; }

.header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 4vw; flex-shrink: 0;
  background: linear-gradient(180deg, rgba(11,14,16,.97), rgba(11,14,16,.82));
  border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; }
.brand span { font-family: 'Oswald Stencil', 'Barlow Condensed', sans-serif; font-size: clamp(19px, 3vw, 30px); letter-spacing: .1em; text-transform: uppercase; }
.brand-mark { flex-shrink: 0; width: 30px; height: 30px; object-fit: contain; display: block; filter: drop-shadow(0 0 10px rgba(97,231,255,.45)); }

.sound { background: none; border: 1px solid var(--line); color: var(--muted); padding: 9px 14px; font: 600 10px Inter; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: .25s; }
.sound:hover { color: var(--secondary-color); border-color: var(--secondary-color); }

.mobile-menu-icon { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 0; }

.nav-tabs { display: flex; background: #333; overflow-x: auto; -webkit-overflow-scrolling: touch; flex-shrink: 0; position: sticky; top: 63px; z-index: 55; border-bottom: 1px solid var(--line); }
.nav-tab {
  flex: 1; min-width: 108px; padding: 14px 8px; text-align: center; text-decoration: none;
  color: #000; font: 700 13px Inter; letter-spacing: .02em; text-shadow: none;
  background-image: url('assets/menu-bg.gif'); background-size: 100% 100%; background-position: center; background-repeat: no-repeat;
  white-space: nowrap; transition: all .3s ease;
}
.nav-tab:hover { background-image: url('assets/menu1.gif'); color: #000; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,.2); }
.nav-tab.active { background-image: url('assets/menu1.gif'); color: #000; border-bottom: 3px solid var(--primary-color); transform: translateY(-1px); }

.menu-scrim { position: fixed; inset: 0; background: rgba(4,6,7,.7); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 990; }
.menu-scrim.active { opacity: 1; pointer-events: auto; }
.side-menu { position: fixed; top: 0; left: -300px; height: 100vh; width: 288px; background: #0d1113; z-index: 1000; transition: left .3s ease; box-shadow: 2px 0 26px rgba(0,0,0,.6); border-right: 1px solid var(--line); }
.side-menu.active { left: 0; }
.side-menu-content { height: 100%; display: flex; flex-direction: column; }
.menu-header { padding: 20px; background: var(--header-bg); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.menu-header h3 { margin: 0; font-family: 'Oswald Stencil','Barlow Condensed',sans-serif; letter-spacing: .14em; text-transform: uppercase; font-size: 18px; }
.close-menu { background: none; border: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.menu-items { padding: 14px 0; overflow-y: auto; }
.menu-item { display: flex; align-items: center; gap: 15px; padding: 14px 22px; color: #c3cbcf; text-decoration: none; font: 600 12px Inter; letter-spacing: .14em; text-transform: uppercase; transition: .25s; border-left: 3px solid transparent; }
.menu-item:hover, .menu-item.active { background: rgba(97,231,255,.07); color: var(--secondary-color); border-left-color: var(--secondary-color); }

.main-content { flex: 1; display: block; min-height: 60vh; }
.footer { text-align: center; padding: 22px; background: var(--header-bg); border-top: 1px solid var(--line); color: var(--dim); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; flex-shrink: 0; }
.footer p { margin: 0; }

/* ---------- Page content ---------- */
.page { padding: 76px 6vw 96px; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--secondary-color); font: 600 11px Inter; letter-spacing: .24em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--secondary-color); }
h1, h2, h3 { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.page h2 { font-size: clamp(42px, 6vw, 80px); line-height: .92; letter-spacing: -.02em; margin: 14px 0 18px; }
.lede { max-width: 620px; color: var(--muted); line-height: 1.8; }
.section-title { font-size: clamp(26px, 3vw, 38px); margin: 112px 0 28px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.page h2.section-title { margin: 120px 0 28px; }
.section-title + .lede { margin-bottom: 8px; }
.page > .section-title:first-child, .page h2.section-title:first-child { margin-top: 36px; }
@media (max-width: 768px) { .page h2.section-title { margin-top: 84px; } }

.hero { min-height: 74vh; display: flex; align-items: center; }
.hero-copy { width: min(680px, 62vw); }
.hero h1 { margin: 22px 0 18px; font-size: clamp(56px, 8vw, 128px); line-height: .78; letter-spacing: -.04em; font-weight: 800; }
.hero h1 span { display: block; color: transparent; -webkit-text-stroke: 1px rgba(232,236,238,.7); }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; gap: 26px; justify-content: space-between; min-width: 200px; padding: 16px 20px; border: 1px solid var(--secondary-color); background: var(--secondary-color); color: #000; text-decoration: none; font: 700 11px Inter; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: .25s; }
.button:hover { background: #8df0ff; border-color: #8df0ff; color: #000; box-shadow: 0 0 26px rgba(97,231,255,.35); }
.button.secondary { background: #cfd6da; border-color: #cfd6da; color: #000; }
.button.secondary:hover { background: #eef3f5; border-color: #eef3f5; color: #000; }

.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card-bg); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: .3s; }
.card:hover { border-color: rgba(97,231,255,.45); transform: translateY(-4px); }
.card-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0a0d0f; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.tag { color: var(--secondary-color); font: 600 10px Inter; letter-spacing: .2em; text-transform: uppercase; }
.card h3 { margin: 10px 0; font-size: 28px; }
.card p { margin: 0 0 16px; color: var(--dim); font-size: 13.5px; line-height: 1.65; }
.card .meta { margin-top: auto; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; color: var(--dim); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.price { color: var(--primary-color); font-weight: 700; }
.card-link { color: #000; background: var(--secondary-color); padding: 6px 12px; text-decoration: none; font: 700 10px Inter; letter-spacing: .16em; text-transform: uppercase; transition: .25s; }
.card-link:hover { background: #8df0ff; color: #000; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5vw; align-items: start; }
.about-photo { width: 100%; border: 1px solid var(--line); }
.about-copy p { color: var(--muted); line-height: 1.85; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 34px; }
.stat { padding: 22px 0; }
.stat strong { display: block; font-family: 'Barlow Condensed'; font-size: 40px; }
.stat span { color: var(--dim); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }

.thanks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.thanks { text-align: center; margin: 0; }
.thanks img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); transition: .35s; }
.thanks:hover img { border-color: var(--secondary-color); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.thanks span { display: block; margin-top: 14px; font-family: 'Barlow Condensed', sans-serif; font-size: 20px; letter-spacing: .06em; color: var(--text-color); text-transform: uppercase; }

.shoe-media { aspect-ratio: 1; background: #fff; }
.shoe-media img { object-fit: cover; }
.swatches { display: flex; gap: 8px; margin-bottom: 14px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); }

.store-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 0 0 24px; }
.store-note { color: var(--dim); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Arcade (chrome collection) ---------- */
.arcade-page {
  --chrome: #c0c0c0;
  --chrome-light: #e8e8e8;
  position: relative;
  background: #000;
  background-image:
    linear-gradient(45deg, rgba(192,192,192,.05) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(192,192,192,.05) 1px, transparent 1px);
  background-size: 30px 30px;
  border: 1px solid rgba(192,192,192,.35);
  box-shadow: 0 0 40px rgba(192,192,192,.12);
  color: var(--chrome);
  overflow: hidden;
  animation: fade .5s ease;
}

/* Floating controller backdrop */
.poker-background { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.controller { position: absolute; opacity: 0; font-size: 96px; line-height: 1; color: var(--chrome); text-shadow: 0 0 20px rgba(192,192,192,.5); filter: drop-shadow(0 0 10px rgba(192,192,192,.3)); animation: cfloat 10s infinite ease-in-out; }
@keyframes cfloat {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
  10% { opacity: .35; }
  50% { transform: translateY(-200px) rotate(180deg) scale(1.2); opacity: .22; }
  90% { opacity: .35; }
}

.filter-bar { position: relative; z-index: 2; padding: 26px 24px; background: rgba(0,0,0,.9); border-bottom: 1px solid var(--chrome); box-shadow: 0 10px 20px rgba(192,192,192,.12); }
.filter-bar input { display: block; width: 100%; max-width: 600px; margin: 0 auto; padding: 16px 24px; background: rgba(0,0,0,.8); border: 2px solid var(--chrome); border-radius: 16px; color: var(--chrome); font: 400 17px Inter; transition: .3s; }
.filter-bar input::placeholder { color: rgba(192,192,192,.55); }
.filter-bar input:focus { outline: none; box-shadow: 0 0 15px rgba(232,232,232,.5); }
.arcade-empty { position: relative; z-index: 2; text-align: center; color: rgba(192,192,192,.7); padding: 0 24px 40px; letter-spacing: .06em; }

.games-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 40px; padding: 48px 40px; max-width: 1600px; margin: 0 auto; }
.game-card { position: relative; background: rgba(0,0,0,.8); border: 1px solid var(--chrome); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 20px rgba(192,192,192,.2); transition: .4s cubic-bezier(.4,0,.2,1); }
.game-card:hover { transform: translateY(-8px); border-color: var(--chrome-light); animation: cardGlow 1.5s infinite alternate; }
@keyframes cardGlow {
  from { box-shadow: 0 0 30px rgba(192,192,192,.4), 0 0 60px rgba(192,192,192,.3), 0 0 90px rgba(192,192,192,.2); }
  to { box-shadow: 0 0 50px rgba(192,192,192,.5), 0 0 100px rgba(192,192,192,.4), 0 0 150px rgba(192,192,192,.3); }
}
.game-thumbnail { width: 100%; height: 250px; object-fit: cover; border-bottom: 2px solid var(--chrome); background: #0a0a0a; transition: opacity .3s ease; }
.game-card:hover .game-thumbnail { opacity: .7; }
.play-button { position: absolute; top: 125px; left: 50%; transform: translate(-50%,-50%); z-index: 2; background: var(--chrome); color: #000; border: 0; padding: 16px 40px; border-radius: 32px; font: 700 17px Inter; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; opacity: 0; transition: .3s; box-shadow: 0 0 15px rgba(192,192,192,.5); }
.play-button:hover { background: var(--chrome-light); }
a.play-button { text-decoration: none; white-space: nowrap; }
.game-card[hidden] { display: none !important; }
.game-card:hover .play-button, .play-button:focus-visible { opacity: 1; }
.game-info { padding: 24px; flex: 1; display: flex; flex-direction: column; color: var(--chrome); }
.game-title { margin: 0 0 8px; font-family: Inter, sans-serif; font-size: 20px; font-weight: 700; color: var(--chrome); text-shadow: 0 0 5px rgba(192,192,192,.3); letter-spacing: 0; text-transform: none; }
.game-description { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--chrome); opacity: .9; }
.source-badge { align-self: flex-start; margin-top: auto; background: var(--chrome); color: #000; padding: 4px 12px; border-radius: 16px; font: 500 13px Inter; }
.source-badge:empty { display: none; }

.promotional-section { position: relative; z-index: 2; text-align: center; padding: 64px 32px; background: linear-gradient(135deg, rgba(0,0,0,.9), rgba(0,0,0,.7)); border-top: 2px solid var(--chrome); }
.promotional-header { margin: 0 0 32px; font-family: Inter, sans-serif; font-size: 40px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--chrome); text-shadow: 0 0 15px rgba(192,192,192,.6); animation: promoPulse 2s infinite; }
@keyframes promoPulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.promotional-button { position: relative; display: inline-block; width: 100%; max-width: 600px; border: 2px solid var(--chrome); border-radius: 16px; overflow: hidden; cursor: pointer; box-shadow: 0 10px 20px rgba(192,192,192,.2); transition: .4s cubic-bezier(.4,0,.2,1); }
.promotional-button:hover { transform: translateY(-8px) scale(1.02); border-color: var(--chrome-light); box-shadow: 0 0 40px rgba(232,232,232,.5), 0 0 80px rgba(232,232,232,.4), 0 0 120px rgba(232,232,232,.3); }
.promotional-image { display: block; width: 100%; height: auto; }
.promotional-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.4); opacity: 0; transition: .3s; }
.promotional-button:hover .promotional-overlay { opacity: 1; }
.promotional-text { padding: 16px 32px; border: 2px solid var(--chrome-light); border-radius: 32px; background: rgba(0,0,0,.7); color: var(--chrome-light); font: 700 24px Inter; text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 0 10px rgba(232,232,232,.8); }

/* ---------- Steel Cyclone Engine ---------- */
.engine-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 44px; align-items: center;
  padding: 44px; background: var(--card-bg); border: 1px solid var(--line);
  background-image: radial-gradient(circle at 18% 30%, rgba(97,231,255,.1), transparent 55%);
  transition: .3s;
}
.engine-panel:hover { border-color: rgba(97,231,255,.4); box-shadow: 0 0 40px rgba(97,231,255,.12); }
.engine-art { display: flex; align-items: center; justify-content: center; }
.engine-art img { width: 100%; max-width: 470px; height: auto; display: block; filter: drop-shadow(0 0 40px rgba(97,231,255,.32)); }
.engine-copy h3 { margin: 12px 0 14px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; }
.engine-copy > p { margin: 0 0 28px; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 62ch; }
.engine-specs { margin: 0; display: grid; gap: 18px; }
.engine-spec { padding-left: 16px; border-left: 2px solid rgba(97,231,255,.45); }
.engine-spec dt { color: var(--secondary-color); font: 600 10px Inter; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 6px; }
.engine-spec dd { margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 980px) {
  .engine-panel { grid-template-columns: 1fr; gap: 30px; padding: 30px 24px; }
  .engine-art img { max-width: 320px; }
}

.engine-link { color: inherit; text-decoration: none; transition: color .25s, text-shadow .25s; }
.engine-link:hover { color: #61e7ff; text-shadow: 0 0 18px rgba(97,231,255,.45); }
.engine-art a { display: block; }
.work-art img { max-width: 340px; margin: 0 auto; border-radius: 8px; transition: transform .3s; }
.work-art a:hover img { transform: scale(1.03); }

.contact-image { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 0 40px rgba(97,231,255,.15); }

/* ---------- BioTouch page ---------- */
.biotouch-logo { display: block; width: 100%; max-width: 560px; margin: 28px 0; border-radius: 10px; background: #fff; }
.job-card { margin-top: 32px; padding: 36px; max-width: 820px; background: var(--card-bg); border: 1px solid var(--line); border-left: 3px solid #61e7ff; }
.job-card h3 { margin: 0 0 16px; font-size: clamp(22px, 2.6vw, 32px); }
.job-card h4 { margin: 26px 0 10px; font-size: 20px; }
.job-card p { color: var(--muted); line-height: 1.7; }
.job-card strong { color: var(--text-color); }
.job-perks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; font-size: 17px; }
.job-details { margin: 14px 0; border: 1px solid var(--line); background: rgba(97,231,255,.03); }
.job-details summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.job-details summary::-webkit-details-marker { display: none; }
.job-details summary::after { content: '+'; color: #61e7ff; font-size: 22px; transition: transform .25s; }
.job-details[open] summary::after { transform: rotate(45deg); }
.job-details summary:hover { color: #61e7ff; }
.job-details-body { padding: 0 18px 16px; }
.job-tips { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--muted); line-height: 1.6; }
.job-warning { padding: 16px 18px; background: rgba(255,180,0,.07); border: 1px solid rgba(255,180,0,.3); }
.job-note { margin-top: 18px; font-size: 14px; }
@media (max-width: 768px) { .job-card { padding: 24px 20px; } }

/* ---------- Featured artists ---------- */
.artist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.artist-card { display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.artist-card:hover { border-color: rgba(97,231,255,.45); box-shadow: 0 0 34px rgba(97,231,255,.15); }
.artist-image-wrap { height: 200px; display: flex; align-items: center; justify-content: center; background: #0a0d0f; border-bottom: 1px solid var(--line); overflow: hidden; }
.artist-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.artist-image.artist-logo { object-fit: contain; padding: 24px; }
.artist-info { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.artist-info h3 { margin: 0; }
.artist-info .tag { align-self: flex-start; }
.artist-player { width: 100%; border: 0; margin-top: auto; }
.artist-video { margin-top: auto; }
@media (max-width: 768px) { .artist-grid { grid-template-columns: 1fr; } }

/* ---------- AI Help Desk ---------- */
.helpdesk-page { position: relative; }
.hd-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hd-grid-bg { position: absolute; inset: 0 0 auto; height: 900px; pointer-events: none; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(214,229,235,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(214,229,235,.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); }
.hd-title span { background: linear-gradient(180deg, #ffffff, #9aa6ae 60%, #e8eef1); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hd-console { margin-top: 36px; border: 1px solid rgba(214,229,235,.2); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(26,31,36,.82), rgba(10,13,15,.9)); box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.hd-stage { position: relative; height: clamp(340px, 46vw, 500px); overflow: hidden; touch-action: pan-y;
  background: radial-gradient(ellipse at 50% 42%, rgba(200,220,232,.14), transparent 60%), linear-gradient(180deg, #13181c, #0a0d10); border-bottom: 1px solid rgba(214,229,235,.14); }
.hd-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: pan-y; }
.hd-scanline { position: absolute; left: 0; right: 0; height: 120px; top: -120px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(220,235,245,.05), transparent); animation: hdScan 7s linear infinite; }
@keyframes hdScan { to { transform: translateY(640px); } }

.hd-loader { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); font: 600 11px Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; text-align: center; padding: 20px; }
.hd-loader-rings { position: relative; width: 84px; height: 84px; }
.hd-loader-rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: #e6edf1; border-left-color: rgba(230,237,241,.3); animation: hdSpin 1.2s cubic-bezier(.6,.1,.4,.9) infinite; }
.hd-loader-rings i:nth-child(2) { inset: 12px; border-top-color: #9aa6ae; animation-duration: 1.6s; animation-direction: reverse; }
.hd-loader-rings i:nth-child(3) { inset: 26px; border-top-color: #61e7ff; animation-duration: 2s; }
@keyframes hdSpin { to { transform: rotate(360deg); } }

.hd-status { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: rgba(10,13,15,.7); border: 1px solid rgba(214,229,235,.18); font: 600 10px Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #d9e1e6; }
.hd-dot { width: 8px; height: 8px; border-radius: 50%; background: #8d969d; box-shadow: 0 0 0 0 rgba(141,150,157,.6); }
.hd-status[data-state="listening"] .hd-dot { background: #ff4d4d; animation: hdPulse 1s infinite; }
.hd-status[data-state="processing"] .hd-dot { background: #e6edf1; animation: hdPulse .7s infinite; }
.hd-status[data-state="responding"] .hd-dot { background: #61e7ff; }
@keyframes hdPulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 8px rgba(0,0,0,0); } }
.hd-speaker { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; gap: 8px; }
.hd-icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(214,229,235,.22); color: #e8ecee; cursor: pointer; font-size: 15px;
  background: linear-gradient(180deg, #3a4249, #1c2126); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 4px 12px rgba(0,0,0,.4); transition: .2s; }
.hd-icon-btn:hover:not(:disabled) { border-color: rgba(230,237,241,.5); transform: translateY(-1px); }
.hd-icon-btn[aria-pressed="true"] { background: linear-gradient(180deg, #d7dde1, #8f99a0); color: #0b0e10; }
.hd-icon-btn:disabled { opacity: .4; cursor: not-allowed; }

.hd-terminal { padding: 24px clamp(16px, 3vw, 32px) 22px; }
.hd-log { max-height: 420px; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 4px 4px 12px; scrollbar-width: thin; scrollbar-color: #3a4249 transparent; }
.hd-msg { display: flex; flex-direction: column; gap: 6px; max-width: 88%; }
.hd-msg--user { align-self: flex-end; align-items: flex-end; }
.hd-who { font: 600 10px Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #8d969d; }
.hd-bubble { padding: 14px 16px; border-radius: 14px; line-height: 1.65; font-size: 15px; }
.hd-bubble p { margin: 0 0 10px; } .hd-bubble p:last-of-type { margin-bottom: 0; }
.hd-msg--ai .hd-bubble { background: rgba(255,255,255,.04); border: 1px solid rgba(214,229,235,.14); border-top-left-radius: 4px; color: #e8ecee; }
.hd-msg--user .hd-bubble { background: linear-gradient(180deg, #d9dfe3, #a9b3ba); color: #0b0e10; border-top-right-radius: 4px; font-weight: 500; }
.hd-badge { display: inline-block; margin-bottom: 10px; padding: 4px 9px; border-radius: 6px; font: 600 10px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.hd-badge--official { background: rgba(230,237,241,.1); color: #e6edf1; border: 1px solid rgba(230,237,241,.25); }
.hd-badge--web { background: rgba(255,178,122,.1); color: #ffcf9e; border: 1px solid rgba(255,178,122,.35); }
.hd-sources { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.hd-sources a { color: #ffcf9e; }
.hd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hd-action { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: #e8ecee; font: 600 12px Inter, sans-serif;
  background: linear-gradient(180deg, #343c43, #1b2025); border: 1px solid rgba(214,229,235,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); transition: .2s; }
.hd-action:hover { border-color: rgba(230,237,241,.55); transform: translateY(-1px); }
.hd-rel-cards { margin-top: 14px; display: grid; gap: 6px; }
.hd-rel-cards > span, .hd-related > span { font: 600 10px Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #8d969d; }
.hd-rel-card { text-align: left; padding: 9px 12px; border-radius: 8px; background: rgba(0,0,0,.25); border: 1px dashed rgba(214,229,235,.2); color: #cfd7dc; cursor: pointer; font: 500 13px Inter, sans-serif; }
.hd-rel-card:hover { border-style: solid; color: #fff; }
.hd-typing .hd-bubble { display: inline-flex; gap: 5px; padding: 16px 18px; }
.hd-typing i { width: 7px; height: 7px; border-radius: 50%; background: #c9d1d6; animation: hdDots 1s infinite ease-in-out; }
.hd-typing i:nth-of-type(2) { animation-delay: .15s; } .hd-typing i:nth-of-type(3) { animation-delay: .3s; }
@keyframes hdDots { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

.hd-ask { display: flex; gap: 10px; align-items: stretch; margin-top: 14px; }
.hd-input-wrap { position: relative; flex: 1; }
.hd-input-wrap input { width: 100%; height: 56px; padding: 0 44px 0 18px; border-radius: 12px; border: 1px solid rgba(214,229,235,.25); background: rgba(5,7,9,.7); color: #fff; font: 500 16px Inter, sans-serif; box-shadow: inset 0 2px 8px rgba(0,0,0,.4); transition: border-color .2s, box-shadow .2s; }
.hd-input-wrap input::placeholder { color: #7f8a92; }
.hd-input-wrap input:focus { outline: none; border-color: #e6edf1; box-shadow: 0 0 0 3px rgba(230,237,241,.15), inset 0 2px 8px rgba(0,0,0,.4); }
.hd-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #aab2b8; font-size: 20px; cursor: pointer; }
.hd-clear:hover { color: #fff; background: rgba(255,255,255,.06); }
.hd-mic { position: relative; flex: 0 0 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(214,229,235,.35); cursor: pointer; color: #0b0e10;
  background: radial-gradient(circle at 35% 30%, #ffffff, #c4ccd2 45%, #7d878e); box-shadow: 0 6px 18px rgba(0,0,0,.5), inset 0 -3px 6px rgba(0,0,0,.25); transition: transform .2s, box-shadow .2s; display: grid; place-items: center; }
.hd-mic:hover:not(:disabled) { transform: scale(1.05); }
.hd-mic:disabled { opacity: .4; cursor: not-allowed; }
.hd-mic-icon { width: 24px; height: 24px; position: relative; z-index: 1; }
.hd-mic.is-listening { color: #fff; background: radial-gradient(circle at 35% 30%, #ff8080, #e02f2f 55%, #8c1414); box-shadow: 0 0 0 6px rgba(255,77,77,.18), 0 0 30px rgba(255,77,77,.45); }
.hd-wave { position: absolute; inset: -14px; display: none; align-items: center; justify-content: center; gap: 3px; pointer-events: none; }
.hd-mic.is-listening .hd-wave { display: flex; }
.hd-wave i { width: 3px; height: 10px; border-radius: 2px; background: rgba(255,120,120,.75); animation: hdWave .9s ease-in-out infinite; }
.hd-wave i:nth-child(1) { transform: translateX(-34px); animation-delay: .1s; } .hd-wave i:nth-child(2) { transform: translateX(-28px); animation-delay: .3s; }
.hd-wave i:nth-child(3) { opacity: 0; } .hd-wave i:nth-child(4) { transform: translateX(28px); animation-delay: .2s; } .hd-wave i:nth-child(5) { transform: translateX(34px); animation-delay: .4s; }
@keyframes hdWave { 0%, 100% { height: 6px; } 50% { height: 26px; } }
.hd-send { height: 56px; white-space: nowrap; }
.hd-hint { margin: 10px 2px 0; font-size: 12px; color: #8d969d; min-height: 18px; }
.hd-hint.warn { color: #ffb27a; }
.hd-related { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.hd-related button { padding: 7px 11px; border-radius: 8px; border: 1px solid rgba(214,229,235,.2); background: rgba(255,255,255,.03); color: #dbe2e6; font: 500 12px Inter, sans-serif; cursor: pointer; }
.hd-related button:hover { border-color: rgba(230,237,241,.5); }
.hd-starters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hd-starter { padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(214,229,235,.2); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.01)); color: #dbe2e6; font: 500 13px Inter, sans-serif; cursor: pointer; transition: .2s; }
.hd-starter:hover { border-color: rgba(230,237,241,.55); color: #fff; transform: translateY(-1px); }
.hd-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(214,229,235,.1); }
.hd-privacy { margin: 0; font-size: 12px; color: #7f8a92; }
.hd-new { flex-shrink: 0; padding: 9px 14px; border-radius: 8px; border: 1px solid rgba(214,229,235,.22); background: transparent; color: #cfd7dc; font: 600 12px Inter, sans-serif; cursor: pointer; }
.hd-new:hover { color: #fff; border-color: rgba(230,237,241,.5); }

.helpdesk-page button:focus-visible, .helpdesk-page a:focus-visible { outline: 2px solid #e6edf1; outline-offset: 3px; }

/* Knowledge base accordion */
.hd-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.hd-cat { padding: 10px 14px; min-height: 42px; border-radius: 8px; border: 1px solid rgba(214,229,235,.18); background: rgba(255,255,255,.02); color: #aab2b8; font: 600 12px Inter, sans-serif; letter-spacing: .04em; cursor: pointer; transition: .2s; }
.hd-cat:hover { color: #fff; }
.hd-cat.active { background: linear-gradient(180deg, #dfe5e8, #9aa5ac); color: #0b0e10; border-color: transparent; }
.hd-faq { display: grid; gap: 34px; }
.hd-faq-group[hidden] { display: none; }
.hd-faq-cat { margin: 0 0 12px; font-size: 22px; color: #cfd7dc; letter-spacing: .02em; }
.hd-faq-item { border: 1px solid rgba(214,229,235,.13); border-radius: 12px; background: linear-gradient(180deg, rgba(22,27,31,.85), rgba(14,18,21,.85)); margin-bottom: 10px; transition: border-color .25s, box-shadow .25s; }
.hd-faq-item.open { border-color: rgba(230,237,241,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.hd-faq-item.hd-flash { box-shadow: 0 0 0 2px rgba(230,237,241,.6), 0 0 30px rgba(230,237,241,.15); }
.hd-faq-q { width: 100%; min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; background: none; border: 0; color: #e8ecee; text-align: left; font: 600 16px Inter, sans-serif; cursor: pointer; }
.hd-faq-q i { position: relative; flex: 0 0 18px; height: 18px; }
.hd-faq-q i::before, .hd-faq-q i::after { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: #c9d1d6; transition: transform .25s; }
.hd-faq-q i::after { transform: rotate(90deg); }
.hd-faq-item.open .hd-faq-q i::after { transform: rotate(0deg); }
.hd-faq-a { padding: 0 20px 18px; color: var(--muted); line-height: 1.75; overflow: hidden; }
.hd-faq-a p { margin: 0 0 10px; }
.hd-contact-strip { margin-top: 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px; border-radius: 14px; border: 1px solid rgba(214,229,235,.18); background: linear-gradient(120deg, rgba(40,46,52,.7), rgba(14,18,21,.8)); }
.hd-contact-strip h3 { margin: 0 0 6px; font-size: 26px; }
.hd-contact-strip p { margin: 0; color: var(--muted); }
.hd-contact-strip a:not(.button) { color: #e6edf1; }

/* ---------- Compact assistant layout ---------- */
.helpdesk-page .hd-title { margin-bottom: 10px; }
.helpdesk-page > .lede { margin-bottom: 0; max-width: 760px; }
.hd-console { margin-top: 22px; display: grid; grid-template-columns: 1fr; }
.hd-stage { height: clamp(210px, 32vh, 300px); }
.hd-terminal { display: flex; flex-direction: column; min-height: 0; padding: 16px clamp(14px, 2.2vw, 24px) 14px; }
.hd-log { flex: 1 1 auto; min-height: 90px; max-height: 38vh; gap: 12px; }
.hd-bubble { padding: 11px 14px; font-size: 14.5px; line-height: 1.6; }
.hd-ask { margin-top: 10px; gap: 8px; }
.hd-input-wrap input { height: 48px; font-size: 15.5px; }
.hd-mic { flex-basis: 48px; height: 48px; }
.hd-mic-icon { width: 21px; height: 21px; }
.hd-send { height: 48px; }
.hd-hint { margin-top: 6px; }
.hd-related { margin-top: 8px; }
.hd-starters { margin-top: 8px; gap: 6px; }
.hd-starter { padding: 7px 12px; font-size: 12.5px; }
.hd-foot { margin-top: 12px; padding-top: 10px; }
.hd-status { top: 12px; left: 12px; padding: 5px 10px; }
.hd-speaker { top: 10px; right: 10px; gap: 6px; }
.hd-icon-btn { width: 36px; height: 36px; font-size: 14px; }
.hd-loader-rings { width: 64px; height: 64px; }

#hd-voice { width: auto; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; font: 600 11px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
#hd-voice.is-muted { border-color: rgba(255,178,122,.55); color: #ffcf9e; }
.hd-msg--superseded .hd-bubble { opacity: .82; }

/* Desktop: head beside the conversation, whole console fits the viewport */
@media (min-width: 980px) {
  .hd-console { grid-template-columns: minmax(260px, 34%) 1fr;
    height: clamp(480px, calc(100vh - 150px), 660px); }
  .hd-stage { height: 100%; border-right: 1px solid rgba(214,229,235,.12); }
  .hd-terminal { height: 100%; overflow: hidden; }
  .hd-log { max-height: none; }
  .hd-status { bottom: 12px; top: auto; }
}
/* Tablet: stacked, short stage */
@media (min-width: 769px) and (max-width: 979px) {
  .hd-stage { height: clamp(220px, 30vh, 280px); }
  .hd-log { max-height: 34vh; }
}

@media (max-width: 768px) {
  .hd-stage { height: clamp(180px, 46vw, 250px); }
  .hd-icon-btn { width: 44px; height: 44px; }
  .hd-status { top: 12px; left: 12px; }
  .hd-ask { flex-wrap: wrap; }
  .hd-input-wrap { flex: 1 1 calc(100% - 66px); }
  .hd-send { flex: 1 1 100%; justify-content: center; }
  .hd-msg { max-width: 96%; }
  .hd-log { max-height: 42vh; }
  .hd-icon-btn { width: 40px; height: 40px; }
  .hd-send { height: 44px; }
  .hd-hint { font-size: 11.5px; }
  .hd-foot, .hd-contact-strip { flex-direction: column; align-items: flex-start; }
  .hd-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .hd-cat { flex-shrink: 0; }
  .hd-scanline { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-scanline, .hd-loader-rings i, .hd-wave i, .hd-typing i { animation: none !important; }
}

/* ---------- Video embeds ---------- */
.video-embed { position: relative; width: 100%; max-width: 900px; margin: 24px auto 0; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 0 34px rgba(97,231,255,.12); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.engine-video, .video-embed { transform: none !important; filter: none !important; }
.engine-video { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); }
.engine-video .video-embed { margin-top: 16px; }

/* ---------- Mega banner / Missionary ---------- */
.mega-banner .engine-copy > p { margin-bottom: 16px; }
.mega-art a { display: block; width: 100%; max-width: 270px; margin: 0 auto; }
.mega-art img { max-width: 270px; margin: 0 auto; border-radius: 8px; filter: drop-shadow(0 0 30px rgba(217,39,46,.3)); transition: transform .3s; }
.mega-art a:hover img { transform: scale(1.03); }
.missionary-embed { max-width: 640px; margin: 28px auto 0; }
.gfm-frame { display: block; width: 100%; height: 620px; border: 0; border-radius: 12px; background: #fff; }

/* ---------- Clients ---------- */
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.client { display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--line); text-decoration: none; color: var(--text-color); overflow: hidden; transition: .3s; }
.client:hover { transform: translateY(-6px); border-color: rgba(97,231,255,.45); box-shadow: 0 0 34px rgba(97,231,255,.15), 0 18px 40px rgba(0,0,0,.45); }
.client-frame { display: flex; align-items: center; justify-content: center; padding: 26px; min-height: 220px; background: #0a0d0f; border-bottom: 1px solid var(--line); }
.client-frame img { max-width: 100%; max-height: 240px; width: auto; height: auto; object-fit: contain; display: block; transition: .3s; }
.client:hover .client-frame img { transform: scale(1.03); }
.client-body { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 22px; }
.client-body h3 { margin: 0; font-size: 26px; letter-spacing: .02em; }
.client-link { color: var(--secondary-color); font: 600 10px Inter; letter-spacing: .2em; text-transform: uppercase; }
@media (max-width: 768px) { .client-grid { grid-template-columns: 1fr; } }

/* ---------- Steel Wear shop ---------- */
.shop-page { display: flex; flex-direction: column; background: #fff; animation: fade .5s ease; }
.shop-frame { width: 100%; height: 88vh; min-height: 600px; border: 0; display: block; background: #fff; }
.shop-fallback { margin: 0; padding: 14px 20px; background: #0b0f11; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; text-align: center; }
.shop-fallback a { color: var(--secondary-color); }

/* ---------- Game modal ---------- */
.game-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(3,5,6,.93); backdrop-filter: blur(6px); }
.game-modal[hidden] { display: none; }
.close-modal { position: absolute; top: 18px; right: 20px; z-index: 2010; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--secondary-color); background: var(--secondary-color); color: #000; font-size: 24px; line-height: 1; cursor: pointer; transition: .25s; }
.close-modal:hover { background: #8df0ff; transform: rotate(90deg); }
.modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(94vw, 1500px); height: min(88vh, 940px); background: #05080a; border: 1px solid var(--secondary-color); box-shadow: 0 0 60px rgba(97,231,255,.25); display: flex; flex-direction: column; overflow: hidden; }
.modal-game-frame { flex: 1; width: 100%; border: none; display: block; background: #05080a; }
.modal-loading { margin: 0; padding: 10px 16px; background: rgba(97,231,255,.1); border-top: 1px solid var(--line); color: var(--secondary-color); font-size: 12px; letter-spacing: .08em; text-align: center; }
.modal-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 18px; background: #0b0f11; border-top: 1px solid var(--line); }
.modal-title { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; }
.modal-buttons { display: flex; align-items: center; gap: 10px; }
.control-button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 38px; background: none; border: 1px solid var(--line); color: var(--muted); font-size: 16px; text-decoration: none; cursor: pointer; transition: .25s; }
.control-button:hover { background: var(--secondary-color); border-color: var(--secondary-color); color: #000; }
.volume-slider { width: 100px; accent-color: var(--secondary-color); cursor: pointer; }
@media (max-width: 768px) {
  .games-grid { grid-template-columns: 1fr; padding: 24px 20px; gap: 28px; }
  .filter-bar { padding: 20px 16px; }
  .promotional-section { padding: 32px 16px; }
  .promotional-header { font-size: 29px; margin-bottom: 24px; }
  .promotional-text { font-size: 19px; letter-spacing: 1px; padding: 13px 24px; }
  .play-button { opacity: 1; }
  .game-card:hover .game-thumbnail { opacity: .7; }
  .modal-content { width: 96vw; height: 84vh; }
  .volume-slider { width: 70px; }
}

.track { display: flex; align-items: center; gap: 20px; padding: 18px 22px; border: 1px solid var(--line); background: var(--card-bg); margin-bottom: 12px; transition: .25s; }
.track:hover { border-color: rgba(97,231,255,.45); }
.track-play { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--secondary-color); background: none; color: var(--secondary-color); cursor: pointer; font-size: 14px; transition: .25s; }
.track-play:hover, .track-play.playing { background: var(--secondary-color); color: #071014; }
.track-info { flex: 1; min-width: 0; }
.track-info strong { display: block; font-family: 'Barlow Condensed'; font-size: 21px; text-transform: uppercase; letter-spacing: .04em; }
.track-info span { color: var(--dim); font-size: 12px; }
.track-len { color: var(--dim); font-size: 12px; letter-spacing: .1em; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--text-color); padding: 22px 40px 22px 0; font: 600 clamp(16px,2vw,21px) 'Barlow Condensed'; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--secondary-color); font-size: 22px; }
.faq-item.open .faq-q::after { content: "\2013"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 340px; }
.faq-a p { margin: 0 0 22px; color: var(--muted); line-height: 1.8; max-width: 760px; }

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 5vw; }
.contact-link { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); color: #fff; text-decoration: none; font: 600 clamp(16px,2vw,25px) 'Barlow Condensed'; letter-spacing: .03em; }
.contact-link:last-child { border-bottom: 1px solid var(--line); }
.contact-link i { font-style: normal; color: var(--secondary-color); transition: transform .2s; }
.contact-link:hover i { transform: translateX(8px); }
.form-field { display: block; margin-bottom: 16px; }
.form-field span { display: block; margin-bottom: 7px; color: var(--dim); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.form-field input, .form-field textarea { width: 100%; padding: 13px 14px; background: #0d1214; border: 1px solid var(--line); color: var(--text-color); font-family: Inter; font-size: 14px; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--secondary-color); }
.form-note { color: var(--secondary-color); font-size: 12px; letter-spacing: .1em; min-height: 18px; margin-top: 10px; }

@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .thanks-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { width: 100%; }
}
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-menu-icon { display: block; }
  .brand span { font-size: 17px; }
  .g4, .g3 { grid-template-columns: 1fr; }
  .thanks-grid { grid-template-columns: repeat(2, 1fr); }
  .page { padding: 48px 6vw 70px; }
  .section-title { margin: 76px 0 24px; }
}
/* ---------- Advertising (clearly labeled, never styled as site content) ---------- */
.ad-slot { position: relative; z-index: 1; width: 100%; max-width: 1100px; margin: 96px auto 0; padding: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; box-sizing: border-box; }
.ad-label { display: block; margin-bottom: 8px; font: 500 11px/1 Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); text-align: center; }
.ad-frame { width: 100%; min-height: 250px; max-width: 100%; overflow: hidden; }
.ad-frame ins.adsbygoogle { width: 100%; max-width: 100%; }
.ad-frame ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
.arcade-page .ad-slot, .shop-page .ad-slot { margin: 64px auto; width: calc(100% - 12vw); }

/* ---------- Supporting content ---------- */
.prose { max-width: 820px; color: var(--muted); line-height: 1.7; }
.prose p + p { margin-top: 16px; }
.arcade-intro, .arcade-about, .shop-about { position: relative; z-index: 1; max-width: 900px; margin: 0 auto 36px; padding: 0 6vw; text-align: center; color: var(--muted); line-height: 1.65; }
.arcade-intro h1 { font-size: clamp(34px, 5vw, 60px); color: var(--text-color); margin: 10px 0 12px; }
.arcade-about { margin-top: 56px; }
.arcade-intro--promo { margin: 28px auto 0; padding: 0; }
.arcade-about h2, .shop-about h2 { font-size: clamp(24px, 3vw, 34px); color: var(--text-color); margin-bottom: 10px; }
.shop-about { margin-top: 48px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 768px) {
  .ad-slot { margin-top: 64px; }
  .ad-frame { min-height: 100px; }
}

/* ---------- Learning library (Courses) ---------- */
.learn-hero { max-width: 1040px; padding: 30px 0 10px; }
.learn-hero h1 { font-size: clamp(46px, 7vw, 104px); line-height: .9; letter-spacing: -.03em; margin: 16px 0 20px; }
.learn-hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(232,236,238,.75); }
.learn-search { position: relative; display: flex; align-items: center; gap: 10px; background: rgba(9,12,14,.88); border: 1px solid var(--line); padding: 6px 6px 6px 48px; }
.learn-search:focus-within { border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(97,231,255,.14); }
.learn-search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text-color); font: 500 16px Inter, sans-serif; padding: 12px 4px; outline: none; }
.learn-search input::-webkit-search-cancel-button { display: none; }
.learn-search--hero { margin-top: 30px; padding: 8px 8px 8px 56px; border-color: rgba(214,229,235,.32); background: linear-gradient(180deg, rgba(22,28,32,.94), rgba(9,12,14,.94)); }
.learn-search--hero input { font-size: clamp(16px, 1.6vw, 20px); padding: 16px 4px; }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%) rotate(-45deg); color: var(--muted); font-size: 22px; pointer-events: none; }
.learn-search--hero .search-icon { left: 22px; font-size: 26px; }
.search-clear { background: none; border: 1px solid var(--line); color: var(--muted); width: 36px; height: 36px; cursor: pointer; font-size: 20px; }
.search-clear:hover, .search-clear:focus-visible { color: var(--secondary-color); border-color: var(--secondary-color); }
.learn-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 6px; color: var(--muted); font: 500 12px Inter; letter-spacing: .12em; text-transform: uppercase; }
.learn-stats strong { color: var(--text-color); font-size: 18px; margin-right: 6px; letter-spacing: 0; }
.learn-hero .cta-row { margin-top: 18px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card { display: grid; gap: 6px; text-align: left; padding: 22px 20px; background: var(--card-bg); border: 1px solid var(--line); color: var(--text-color); cursor: pointer; transition: border-color .3s, box-shadow .3s, background .3s; }
.cat-card:hover, .cat-card:focus-visible { border-color: rgba(222,232,238,.55); background: #151b20; box-shadow: 0 0 26px rgba(97,231,255,.1); }
.cat-icon { font-size: 26px; }
.cat-card strong { font: 700 20px 'Barlow Condensed', sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.cat-card small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.cat-card em { font-style: normal; color: var(--secondary-color); font: 600 11px Inter; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }

.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feat-card { display: grid; grid-template-columns: minmax(150px, 40%) 1fr; background: var(--card-bg); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.feat-card:hover { border-color: rgba(222,232,238,.5); box-shadow: 0 20px 44px -24px rgba(0,0,0,.9); }
.feat-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feat-body h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1; }
.feat-body p { color: var(--muted); line-height: 1.55; font-size: 14px; }
.feat-body .button { margin-top: auto; align-self: flex-start; min-width: 0; }
.feat-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.lib-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #0a0d0f; }
.lib-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .5s ease; }
.lib-cover--wide img { object-fit: contain; }
.lib-cover--text { display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(145deg, #1b2226, #0a0d0f 60%), #0a0d0f; border-bottom: 1px solid var(--line); }
.lib-cover--text span { font: 800 clamp(26px, 3vw, 40px)/.95 'Barlow Condensed', sans-serif; text-transform: uppercase; text-align: center; background: linear-gradient(180deg, #fff, #9aa6ad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feat-cover { aspect-ratio: auto; height: 100%; min-height: 240px; }

.library { scroll-margin-top: 120px; }
.lib-toolbar { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: stretch; padding: 12px; background: rgba(11,14,16,.94); border: 1px solid var(--line); backdrop-filter: blur(10px); z-index: 20; }
.lib-select { display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--line); color: var(--dim); font: 600 10px Inter; letter-spacing: .16em; text-transform: uppercase; }
.lib-select select { background: transparent; color: var(--text-color); border: 0; font: 500 14px Inter; padding: 12px 0; cursor: pointer; }
.lib-select select option { background: #0b0e10; }
.lib-select:focus-within { border-color: var(--secondary-color); }
.chip-row { display: flex; gap: 8px; margin: 16px 0 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.chip { flex-shrink: 0; background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 10px 16px; font: 600 12px Inter; letter-spacing: .06em; cursor: pointer; transition: .25s; }
.chip:hover { color: var(--text-color); border-color: rgba(222,232,238,.5); }
.chip.active { background: #cfd6da; border-color: #cfd6da; color: #000; }
.lib-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; color: var(--muted); font-size: 13px; }
.text-button { background: none; border: 0; color: var(--secondary-color); font: 600 12px Inter; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; padding: 8px 0; }
.text-button:hover { text-decoration: underline; }

.lib-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 6px; }
.lib-grid--in .lib-card { animation: libIn .45s cubic-bezier(.2,.7,.2,1) both; }
.lib-grid--in .lib-card:nth-child(2) { animation-delay: .04s; } .lib-grid--in .lib-card:nth-child(3) { animation-delay: .08s; } .lib-grid--in .lib-card:nth-child(4) { animation-delay: .12s; }
@keyframes libIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lib-card { position: relative; display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, box-shadow .3s, translate .3s; }
.lib-card:hover, .lib-card:focus-within { border-color: rgba(222,232,238,.5); box-shadow: 0 18px 38px -22px rgba(0,0,0,.95), 0 0 22px rgba(97,231,255,.08); translate: 0 -4px; }
.lib-card:hover .lib-cover img, .feat-card:hover .lib-cover img, .deep-card:hover .lib-cover img { scale: 1.05; }
.lib-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }
.lib-cat { color: var(--secondary-color); font: 600 10px Inter; letter-spacing: .16em; text-transform: uppercase; }
.lib-title { font-size: 22px; line-height: 1.02; }
.lib-summary { color: var(--muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lib-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--dim); font: 500 11px Inter; letter-spacing: .06em; }
.lib-meta span + span::before { content: '\00B7'; margin-right: 12px; }
.lib-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.lib-cta { background: none; border: 0; color: var(--text-color); font: 700 11px Inter; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; padding: 8px 0; transition: color .25s; }
.lib-cta b { display: inline-block; transition: translate .25s; }
.lib-card .lib-cta::after { content: ''; position: absolute; inset: 0; }
.lib-cta:hover, .lib-card:hover .lib-cta { color: var(--secondary-color); }
.lib-card:hover .lib-cta b, .deep-card:hover .lib-cta b { translate: 4px 0; }
.lib-empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line); margin-top: 12px; color: var(--muted); }
.lib-empty h3 { color: var(--text-color); font-size: 28px; margin-bottom: 10px; }
.lib-empty .button { margin-top: 20px; }

.bundle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.bundle { position: relative; padding: 0; border: 1px solid var(--line); background: #0a0d0f; cursor: pointer; overflow: hidden; text-align: left; transition: border-color .3s, box-shadow .3s; }
.bundle img { width: 100%; aspect-ratio: 360 / 215; object-fit: cover; display: block; transition: scale .5s; }
.bundle span { display: block; padding: 12px 14px; color: var(--text-color); font: 700 18px 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .04em; border-top: 1px solid var(--line); }
.bundle:hover, .bundle:focus-visible { border-color: rgba(222,232,238,.55); box-shadow: 0 0 26px rgba(97,231,255,.12); }
.bundle:hover img { scale: 1.04; }

.deep-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.deep-card { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 16px; background: linear-gradient(135deg, #141a1e, #0c1013); border: 1px solid var(--line); border-left: 3px solid #cfd6da; }
.deep-card .lib-cover { aspect-ratio: 3 / 4; }
.deep-card h3 { font-size: 24px; margin: 6px 0 8px; }
.deep-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 8px; }

.learn-story { display: grid; grid-template-columns: minmax(220px, 34%) 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; margin-top: 112px; }
.learn-story--time { grid-template-columns: 1fr minmax(220px, 34%); }
.learn-story img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.learn-story h2 { font-size: clamp(32px, 4vw, 56px); line-height: .95; margin: 14px 0 18px; }
.learn-story p { color: var(--muted); line-height: 1.7; max-width: 680px; }
.learn-story p + p { margin-top: 14px; }

.instructor-row { display: grid; grid-template-columns: 1fr minmax(240px, 380px); gap: 28px; align-items: start; }
.instructor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 18px; }
.instructor { background: var(--card-bg); border: 1px solid var(--line); }
.instructor img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; filter: grayscale(.2); }
.instructor figcaption { padding: 14px 16px; display: grid; gap: 4px; }
.instructor strong { font: 700 22px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.instructor span { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.quote-card { background: var(--card-bg); border: 1px solid var(--line); padding: 12px; }
.quote-card img { width: 100%; height: auto; max-height: 420px; object-fit: cover; object-position: top; display: block; }
.quote-card figcaption { color: var(--muted); font-size: 12px; padding: 10px 2px 0; }

.learn-final { margin-top: 120px; padding: clamp(40px, 6vw, 80px); text-align: center; border: 1px solid var(--line); background: radial-gradient(circle at 50% 0%, rgba(97,231,255,.1), transparent 60%), linear-gradient(180deg, #11161a, #0a0d0f); }
.learn-final h2 { font-size: clamp(34px, 5vw, 68px); line-height: .95; max-width: 900px; margin: 0 auto 16px; }
.learn-final .lede { margin: 0 auto; }
.learn-final .cta-row { justify-content: center; margin-top: 28px; }

.course-dialog { width: min(1040px, 94vw); max-height: 90vh; padding: 0; border: 1px solid rgba(214,229,235,.3); background: #0b0f12; color: var(--text-color); overflow: auto; }
.course-dialog::backdrop { background: rgba(3,5,6,.78); backdrop-filter: blur(4px); }
.dialog-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; background: rgba(11,15,18,.96); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--dim); font: 500 12px Inter; }
.crumbs [aria-current] { color: var(--text-color); }
.dialog-close { background: none; border: 1px solid var(--line); color: var(--text-color); width: 38px; height: 38px; font-size: 22px; cursor: pointer; flex-shrink: 0; }
.dialog-close:hover, .dialog-close:focus-visible { border-color: var(--secondary-color); color: var(--secondary-color); }
.dialog-grid { display: grid; grid-template-columns: minmax(200px, 38%) 1fr; gap: 28px; padding: 24px; }
.dialog-cover { align-self: start; }
.dialog-copy h2 { font-size: clamp(30px, 4vw, 50px); line-height: .95; margin: 12px 0 14px; }
.dialog-copy h3 { font-size: 20px; margin: 22px 0 10px; }
.dialog-copy p { color: var(--muted); line-height: 1.6; }
.dialog-summary { font-size: 16px; }
.learn-list { list-style: none; display: grid; gap: 8px; }
.learn-list li { position: relative; padding-left: 26px; color: var(--text-color); line-height: 1.5; font-size: 14px; }
.learn-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--secondary-color); font-weight: 700; }
.dialog-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.dialog-facts div { border: 1px solid var(--line); padding: 10px 14px; }
.dialog-facts dt { color: var(--dim); font: 600 10px Inter; letter-spacing: .16em; text-transform: uppercase; }
.dialog-facts dd { margin: 4px 0 0; font-weight: 600; }
.dialog-cta { padding: 18px; background: linear-gradient(135deg, #151b20, #0d1114); border: 1px solid var(--line); margin-bottom: 14px; }
.dialog-cta .button { width: 100%; }
.dialog-note { font-size: 12px; margin-top: 10px; }

.learn-page :focus-visible { outline: 2px solid var(--secondary-color); outline-offset: 2px; }

@media (min-width: 981px) {
  .lib-toolbar { position: sticky; top: 112px; }
}
@media (max-width: 1100px) {
  .lib-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .lib-grid, .bundle-grid, .deep-grid, .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-card { grid-template-columns: 1fr; }
  .feat-cover { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  .instructor-row { grid-template-columns: 1fr; }
  .lib-toolbar { grid-template-columns: 1fr 1fr; }
  .lib-toolbar .learn-search { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .lib-grid, .bundle-grid, .deep-grid, .feat-grid, .learn-story, .learn-story--time, .dialog-grid { grid-template-columns: 1fr; }
  .cat-grid { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .cat-card { flex: 0 0 72%; scroll-snap-align: start; }
  .learn-search--hero { flex-wrap: wrap; padding: 8px 8px 8px 48px; }
  .learn-search--hero .button { flex: 1 0 100%; margin-left: -40px; }
  .learn-story img { max-width: 360px; }
  .learn-story--time img { order: -1; }
  .deep-card { grid-template-columns: 100px 1fr; gap: 14px; }
  .instructor-grid { grid-template-columns: repeat(2, 1fr); }
  .dialog-grid { padding: 16px; }
  .dialog-cover { max-width: 260px; }
  .lib-status { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .lib-grid--in .lib-card { animation: none; }
}

/* ---------- GSAP motion support (active only when the motion module loads) ---------- */
#main-content { overflow-x: clip; }
.sc-motion .card, .sc-motion .client, .sc-motion .game-card, .sc-motion .promotional-button, .sc-motion .button {
  transition-property: border-color, box-shadow, background, background-color, color, translate, scale;
  transition-duration: .35s; transition-timing-function: cubic-bezier(.2,.7,.2,1);
}
/* Hover lifts use independent translate/scale so they stack on top of GSAP transforms. */
.sc-motion .card:hover { translate: 0 -4px; }
.sc-motion .service-grid .card:hover { translate: 0 -6px; border-color: rgba(222,232,238,.55); box-shadow: 0 22px 44px -22px rgba(0,0,0,.9), 0 0 28px rgba(97,231,255,.12), inset 0 1px 0 rgba(255,255,255,.08); }
.sc-motion .service-grid .card .tag { display: inline-block; transition: scale .35s, color .35s; }
.sc-motion .service-grid .card:hover .tag { scale: 1.08; color: var(--secondary-color); }
.sc-motion .client:hover { translate: 0 -6px; }
.sc-motion .game-card:hover { translate: 0 -8px; }
.sc-motion .promotional-button:hover { translate: 0 -8px; scale: 1.02; }
.sc-motion .card-media img { transition: scale .6s; }
.sc-motion .card:hover .card-media img { transform: none; scale: 1.05; }
.sc-motion .card-media img.sc-par { position: relative; height: 118%; top: -9%; }
.section-title { position: relative; }
.sc-rule { position: absolute; left: 0; bottom: -1px; width: min(160px, 40%); height: 2px; background: linear-gradient(90deg, #f2f5f7, #9aa6ad 60%, transparent); transform-origin: left center; pointer-events: none; }
.sc-sweep-host { position: relative; overflow: hidden; }
.sc-sweep { position: absolute; inset: -2px; pointer-events: none; z-index: 2; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.16) 46%, rgba(255,255,255,.42) 50%, rgba(255,255,255,.16) 54%, transparent 62%); mix-blend-mode: overlay; }

@media (prefers-reduced-motion: reduce) {
  .sc-sweep { display: none; }
  html { scroll-behavior: auto; }
  .splash-logo, .splash-bars i::after { animation: none; }
  .page { animation: none; }
}

/* ---------- Shoes: Slamtech + linked cards ---------- */
.slamtech-feature { display: grid; justify-items: center; gap: 22px; margin: 28px 0 10px; padding: clamp(20px, 4vw, 44px); background: linear-gradient(150deg, #20272c, #0c0f11 60%, #1a2024); border: 1px solid rgba(230,238,242,.22); text-decoration: none; transition: border-color .3s, box-shadow .3s; }
.slamtech-feature:hover { border-color: rgba(97,231,255,.5); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.slamtech-feature img { width: 100%; max-width: 900px; height: auto; transition: scale .5s; }
.slamtech-feature:hover img { scale: 1.03; }
.shoe-link { display: block; color: inherit; text-decoration: none; }
.shoe-link > .card { height: 100%; }

/* ---------- Clickable course cards ---------- */
.lib-card[data-item], .feat-card[data-item], .deep-card[data-item] { cursor: pointer; }

/* ---------- The Wealth Blueprint ---------- */
.wb-page { position: relative; }
.wb-crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font: 600 11px Inter; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 28px; }
.wb-crumbs a { color: var(--muted); text-decoration: none; transition: color .2s; }
.wb-crumbs a:hover { color: var(--secondary-color); }
.wb-crumbs i { font-style: normal; opacity: .5; }
.wb-crumbs span { color: #eef3f5; }

.wb-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 7vw, 90px); border-bottom: 1px solid var(--line); }
.wb-hero h1 { font-family: 'Barlow Condensed', Inter, sans-serif; font-size: clamp(48px, 7.5vw, 104px); line-height: .9; text-transform: uppercase; margin: 14px 0 18px; letter-spacing: .01em; }
.wb-hero h1 span { background: linear-gradient(180deg, #ffffff 0%, #c9d1d6 45%, #7c878d 60%, #e7ecef 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wb-headline { font: 600 clamp(18px, 2vw, 24px) Inter; color: #eef3f5; margin: 0 0 14px; }
.wb-hero .cta-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
.wb-disclaimer { margin-top: 18px; font-size: 12px; color: var(--dim); }
.wb-hero-art { margin: 0; position: relative; padding: 14px; background: linear-gradient(145deg, #2a3136, #0c0f11 55%, #1d2327); border: 1px solid rgba(230, 238, 242, .22); box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.18); transition: translate .4s, box-shadow .4s; }
.wb-hero-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%); }
.wb-hero-art:hover { translate: 0 -6px; box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(97,231,255,.35); }
.wb-hero-art img { display: block; width: 100%; height: auto; }

.wb-about { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 70px); padding: clamp(48px, 7vw, 90px) 0; }
.wb-about h2, .wb-panel h2, .wb-buy h2 { font-family: 'Barlow Condensed', Inter, sans-serif; font-size: clamp(32px, 4vw, 52px); line-height: 1; text-transform: uppercase; margin: 12px 0 0; }
.wb-about p, .wb-panel p, .wb-step-body p, .wb-generational p, .wb-buy p { color: var(--muted); line-height: 1.75; }

.wb-topics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 28px 0 clamp(56px, 8vw, 100px); }
.wb-topic { padding: 22px 20px; background: linear-gradient(160deg, #161c20, #0d1113); border: 1px solid var(--line); transition: border-color .3s, translate .3s, box-shadow .3s; }
.wb-topic:hover { border-color: rgba(97,231,255,.5); translate: 0 -4px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.wb-topic span { font: 700 12px Inter; letter-spacing: .18em; color: var(--secondary-color); }
.wb-topic h3 { font: 700 17px Inter; margin: 12px 0 8px; }
.wb-topic p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

.wb-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: clamp(56px, 8vw, 100px); }
.wb-panel { padding: clamp(24px, 3.5vw, 44px); background: var(--card-bg); border: 1px solid var(--line); }
.wb-panel--steel { background: linear-gradient(150deg, #20272c, #0e1215 60%, #1a2024); border-color: rgba(230,238,242,.24); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.wb-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.wb-list li { position: relative; padding-left: 22px; color: #dfe5e8; line-height: 1.6; }
.wb-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 10px; height: 2px; background: linear-gradient(90deg, #f2f5f7, #8e9aa1); }
.wb-list--compact { gap: 4px; }
.wb-included { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.wb-included li { display: flex; gap: 16px; align-items: center; padding: 14px 16px; background: rgba(0,0,0,.28); border: 1px solid var(--line); }
.wb-included b { flex: 0 0 44px; height: 44px; display: grid; place-items: center; font: 700 18px 'Barlow Condensed', Inter; color: #000; background: linear-gradient(180deg, #f4f7f8, #9da8ae); }
.wb-included span { color: #dfe5e8; line-height: 1.5; }
.wb-inline { color: var(--secondary-color); text-decoration: none; border-bottom: 1px solid rgba(97,231,255,.35); font-weight: 600; }
.wb-inline:hover { border-bottom-color: var(--secondary-color); }

.wb-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.wb-step { display: grid; grid-template-columns: 96px 1fr; gap: 28px; padding: clamp(22px, 3vw, 38px); background: var(--card-bg); border: 1px solid var(--line); transition: border-color .3s; }
.wb-step:hover { border-color: rgba(230,238,242,.35); }
.wb-step-num { font: 700 64px/1 'Barlow Condensed', Inter; background: linear-gradient(180deg, #fff, #7d888e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wb-step-body h3 { font: 700 clamp(20px, 2.2vw, 26px) Inter; margin: 4px 0 10px; }
.wb-quote { margin: 20px 0; padding: 18px 22px; border-left: 3px solid var(--secondary-color); background: rgba(97,231,255,.05); font: 600 20px Inter; color: #fff; }
.wb-quote cite { display: block; margin-top: 6px; font: 500 12px Inter; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.wb-generational { margin-top: 16px; padding: clamp(24px, 3.5vw, 44px); background: linear-gradient(150deg, #1d2428, #0c0f11); border: 1px solid rgba(230,238,242,.22); }
.wb-generational h3 { font: 700 24px Inter; margin: 10px 0; }
.wb-note { font-style: italic; color: #eef3f5 !important; }

.wb-buy { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; margin: clamp(56px, 8vw, 100px) 0; padding: clamp(28px, 4.5vw, 60px); background: linear-gradient(135deg, #2b3338 0%, #0d1114 45%, #20272b 100%); border: 1px solid rgba(230,238,242,.28); box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.18); }
.wb-buy-box { display: grid; gap: 14px; justify-items: start; padding: 26px; background: rgba(0,0,0,.4); border: 1px solid var(--line); }
.wb-price-label { font: 600 10px Inter; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.wb-price { font: 700 44px/1 'Barlow Condensed', Inter; text-transform: uppercase; }
.wb-buy-box .button { width: 100%; }

.wb-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.wb-rel { display: flex; flex-direction: column; gap: 8px; padding-bottom: 18px; background: var(--card-bg); border: 1px solid var(--line); color: inherit; text-decoration: none; overflow: hidden; transition: border-color .3s, translate .3s, box-shadow .3s; }
.wb-rel:hover { border-color: rgba(97,231,255,.5); translate: 0 -4px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.wb-rel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: scale .5s; }
.wb-rel:hover img { scale: 1.05; }
.wb-rel .lib-cat, .wb-rel strong, .wb-rel em { padding: 0 18px; }
.wb-rel strong { font: 700 18px Inter; }
.wb-rel em { font: 600 11px Inter; font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--secondary-color); }
.wb-back { margin: 36px 0 20px; }
.pp-title { font-size: clamp(40px, 6vw, 84px) !important; }
.pp-topics .wb-topic h3 { margin-bottom: 0; }
.smg-buy { grid-template-columns: 1fr !important; align-items: start; gap: 28px; }
.smg-buy > div:first-child { max-width: 760px; }
.smg-embed { justify-items: stretch; width: 100%; max-width: 780px; margin: 0 auto; padding: clamp(8px, 1.2vw, 14px); }
.smg-embed .gumroad-product-embed { width: 100%; overflow: hidden; }
/* Checkout must always stay visible, regardless of any animation state. */
[data-no-motion], .smg-embed, .gumroad-product-embed, .gumroad-product-embed iframe { opacity: 1 !important; visibility: visible !important; transform: none !important; translate: none !important; }
/* The checkout lives in a cross-origin iframe, so compact it by scaling the whole frame:
   a narrower column keeps the cover art short, and zoom trims the rest while staying crisp. */
.smg-embed .gumroad-product-embed { min-height: 60px; background: #fff; }
.smg-embed .gumroad-product-embed > a { display: block; padding: 18px; color: #333; font: 600 13px Inter; text-decoration: none; }
.smg-embed iframe { width: 100% !important; max-width: none; border: 0; display: block; }
@media (min-width: 901px) { .smg-embed .gumroad-product-embed iframe { zoom: .86; width: calc(100% / .86) !important; } }
@media (min-width: 601px) and (max-width: 900px) { .smg-embed .gumroad-product-embed iframe { zoom: .92; width: calc(100% / .92) !important; } }

@media (max-width: 1100px) { .wb-topics { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .wb-hero, .wb-about, .wb-split, .wb-buy { grid-template-columns: 1fr; }
  .wb-hero-art { order: -1; }
  .wb-related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wb-topics, .wb-related { grid-template-columns: 1fr; }
  .wb-step { grid-template-columns: 1fr; gap: 8px; }
  .wb-step-num { font-size: 44px; }
  .wb-hero .button { width: 100%; }
}