:root {
  --bg: #0c0c0c;
  --bg-alt: #121212;
  --surface: #171717;
  --surface-elevated: #202020;
  --border: #2a2a2a;
  --border-strong: #3d3d3d;
  --text: #f3f1eb;
  --text-muted: #b0ada5;
  --text-dim: #7a7870;

  --red: #e11d2e;
  --red-dark: #b91423;
  --red-soft: rgba(225, 29, 46, 0.14);
  --yellow: #f5b800;
  --yellow-soft: rgba(245, 184, 0, 0.13);

  --font-display: "Chakra Petch", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-hard: 4px 4px 0 #000000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Subtle studio graph paper background — no glowing blobs */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 12, 12, 0.94);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 66px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-strong);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.15s ease;
  position: relative;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.16s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 0 9px;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
}

.mobile-drawer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer a {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-drawer a:hover {
  background: var(--surface);
  color: var(--text);
}

.mobile-drawer .drawer-cta {
  margin-top: 0.4rem;
  background: var(--red);
  color: #fff;
  text-align: center;
  font-weight: 600;
}

/* Buttons — tactile flat & hard border */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translate(-1px, -1px);
}

.btn-sm {
  padding: 0.48rem 0.85rem;
  font-size: 0.82rem;
}

.btn-primary {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
  box-shadow: 3px 3px 0 #000000;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text);
  background: var(--surface-elevated);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}

/* Tags & Badges */
.tag {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.tag-red {
  background: var(--red-soft);
  color: #ff6b78;
  border-color: rgba(225, 29, 46, 0.45);
}

.tag-yellow {
  background: var(--yellow-soft);
  color: #ffd147;
  border-color: rgba(245, 184, 0, 0.42);
}

/* Hero Section */
.hero {
  padding: 4rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.34rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 1.15rem;
}

.red-square {
  width: 8px;
  height: 8px;
  background: var(--red);
  flex-shrink: 0;
}

.hero-title {
  margin: 0 0 1.05rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.85rem);
  font-weight: 700;
  line-height: 1.04;
  color: var(--text);
}

.title-accent {
  color: var(--red);
}

.hero-lead {
  margin: 0 0 1.65rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 58ch;
}

.hero-lead strong {
  color: var(--text);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
}

.stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.stat-lbl {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* Profile Card */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  box-shadow: var(--shadow-hard);
}

.profile-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.status-chip {
  font-size: 0.68rem;
  color: var(--yellow);
  background: var(--yellow-soft);
  border: 1px solid rgba(245, 184, 0, 0.35);
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
}

.identity-pair {
  display: grid;
  gap: 0.7rem;
  margin: 0.95rem 0;
}

.identity-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.id-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.id-avatar-rb {
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
}

.id-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.id-platform {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-dim);
}

.id-meta strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.id-handle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mini-link {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.mini-link:hover {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
}

.profile-divider {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin: 0.85rem 0 0.55rem;
}

.quick-games-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.quick-game-pill {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}

.quick-game-pill:hover {
  border-color: var(--red);
}

.qg-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.qg-tag {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.profile-quote {
  margin-top: 0.9rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border-left: 3px solid var(--red);
}

.quote-prefix {
  display: block;
  font-size: 0.66rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.profile-quote p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.4rem;
}

.section-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.12;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  max-width: 64ch;
}

.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.3rem;
  border-radius: var(--radius-sm);
}

.filter-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.filter-btn:hover {
  background: var(--surface-elevated);
  color: var(--text);
}

.filter-btn.active {
  background: var(--red);
  color: #fff;
}

/* Flagship Game Card */
.game-flagship {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-hard);
}

.flagship-media {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  aspect-ratio: 1 / 1;
  background: #080808;
}

.flagship-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flagship-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.26rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--red);
  color: #fff;
}

.place-id-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 0.68rem;
  padding: 0.22rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(12, 12, 12, 0.88);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.flagship-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.game-title {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  font-weight: 700;
}

.game-tagline {
  margin: 0 0 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--yellow);
}

.brief-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.brief-box.compact {
  padding: 0.8rem 0.9rem;
}

.brief-label {
  display: block;
  font-size: 0.66rem;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

.brief-box p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--text-muted);
}

.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.mech-item {
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.mech-k {
  display: block;
  font-size: 0.64rem;
  color: var(--text-dim);
  margin-bottom: 0.12rem;
}

.mech-v {
  font-size: 0.82rem;
  font-weight: 600;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

/* 3-up Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.game-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--text-muted);
}

.game-card.is-hidden,
.game-flagship.is-hidden {
  display: none;
}

.game-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #080808;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.game-thumb img,
.buy-a-law-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-id {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  font-size: 0.66rem;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(12, 12, 12, 0.88);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.game-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.2rem;
}

.bullet-specs {
  margin: 0 0 1.15rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.bullet-specs li + li {
  margin-top: 0.32rem;
}

.bullet-specs strong {
  color: var(--text);
}

/* Schematics & Editing Section */
.schematics-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 1.65rem;
  align-items: start;
}

.editing-briefs {
  display: grid;
  gap: 1rem;
}

.brief-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.brief-card-num {
  font-size: 0.7rem;
  color: var(--red);
  margin-bottom: 0.3rem;
}

.brief-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
}

.brief-card p {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mini-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Interactive Schematic Workbench */
.schematic-workbench {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
}

.workbench-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.workbench-tag {
  display: block;
  font-size: 0.72rem;
  color: var(--red);
}

.workbench-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.schematic-tabs {
  display: flex;
  gap: 0.3rem;
  background: var(--bg);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.schem-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
}

.schem-tab.active {
  background: var(--red);
  color: #fff;
}

.workbench-canvas {
  padding: 1.4rem 1.2rem;
  min-height: 270px;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.schem-flow-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.schem-node {
  flex: 1 1 130px;
  min-width: 120px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  color: var(--text);
  transition: border-color 0.15s, transform 0.12s;
}

.schem-node:hover {
  transform: translateY(-2px);
  border-color: var(--text-muted);
}

.schem-node.active {
  border-color: var(--red);
  background: var(--surface-elevated);
  box-shadow: 0 0 0 1px var(--red);
}

.schem-node-step {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--yellow);
  margin-bottom: 0.22rem;
}

.schem-node-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
}

.schem-node-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 0.22rem;
}

.schem-arrow {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.95rem;
  user-select: none;
}

.schem-timeline-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.timeline-bar {
  height: 6px;
  border-radius: 2px;
  background: var(--bg);
  overflow: hidden;
  margin-top: 0.55rem;
}

.timeline-fill {
  height: 100%;
  background: var(--red);
}

.workbench-inspector {
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.inspector-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.inspector-code {
  font-size: 0.7rem;
  color: var(--yellow);
}

.inspector-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 0.16rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.workbench-inspector h4 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.workbench-inspector p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--text-muted);
}

/* YouTube Shorts Grid */
.shorts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.short-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
}

.short-player-frame {
  position: relative;
  aspect-ratio: 9 / 13.5;
  background: #060606;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.short-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.short-player-frame:hover .short-thumb {
  transform: scale(1.03);
}

.short-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.45) 0%, rgba(12, 12, 12, 0.1) 45%, rgba(12, 12, 12, 0.75) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem;
}

.short-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(12, 12, 12, 0.88);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.play-circle-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease, background 0.15s ease;
}

.short-player-frame:hover .play-circle-btn {
  transform: scale(1.08);
  background: var(--red-dark);
}

.short-caption-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(12, 12, 12, 0.86);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.short-player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.short-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.2rem;
}

.short-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.short-body h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
}

.short-brief {
  margin: 0 0 1.15rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.short-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

/* Studio Attached Clips */
.clips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.clip-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-hard);
}

.clip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.clip-num {
  display: block;
  font-size: 0.68rem;
  color: var(--red);
  margin-bottom: 0.2rem;
}

.clip-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.video-shell {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-shell video,
.clip2-loaded video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.cue-group,
.speed-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.toolbar-lbl {
  font-size: 0.66rem;
  color: var(--text-dim);
  margin-right: 0.1rem;
}

.cue-btn,
.spd-btn {
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.24rem 0.45rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.cue-btn:hover,
.spd-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.spd-btn.active {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
  font-weight: 700;
}

.dropzone-area {
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border-strong);
  background: var(--bg);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone-area.drag-over {
  border-color: var(--red);
  background: var(--red-soft);
}

.dropzone-content {
  padding: 1.25rem;
  text-align: center;
  max-width: 44ch;
}

.dropzone-icon {
  color: var(--yellow);
  margin-bottom: 0.45rem;
  display: flex;
  justify-content: center;
}

.dropzone-content h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.dropzone-content p {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.upload-label {
  cursor: pointer;
}

.clip2-loaded {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.clip2-loaded[hidden] {
  display: none;
}

.clip2-loaded video {
  flex: 1;
  min-height: 0;
}

.clip2-filebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.7rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Channel Banner */
.channel-banner {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  box-shadow: var(--shadow-hard);
}

.channel-left {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
}

.channel-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.channel-avatar {
  width: 104px;
  height: 104px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--border-strong);
}

.channel-live-chip {
  font-size: 0.68rem;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.channel-name {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
}

.channel-bio-quote {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--red);
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
  font-style: italic;
}

.channel-summary {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.channel-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.channel-right {
  display: grid;
  gap: 0.7rem;
}

.channel-pillar {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.pillar-k {
  font-size: 0.66rem;
  color: var(--red);
}

.channel-pillar strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.channel-pillar span:last-child {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.65rem 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand strong {
  font-family: var(--font-display);
}

.footer-brand .mono {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(640px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.2rem 1.35rem;
  border-bottom: 1px solid var(--border);
}

.modal-code {
  display: block;
  font-size: 0.72rem;
  color: var(--red);
  margin-bottom: 0.2rem;
}

.modal-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
}

.modal-body {
  padding: 1.3rem 1.35rem;
  display: grid;
  gap: 0.9rem;
}

.modal-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}

.modal-block h4 {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--yellow);
}

.modal-block p,
.modal-block ul {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.91rem;
}

.modal-block ul {
  padding-left: 1.15rem;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 1rem 1.35rem;
  border-top: 1px solid var(--border);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1040px) {
  .main-nav,
  .header-actions .btn-primary {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-grid,
  .schematics-layout,
  .channel-banner {
    grid-template-columns: 1fr;
  }

  .game-flagship {
    grid-template-columns: 1fr;
  }

  .flagship-media {
    max-width: 360px;
  }

  .games-grid,
  .shorts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-stats,
  .mechanics-grid,
  .schem-timeline-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .games-grid,
  .shorts-grid,
  .clips-grid {
    grid-template-columns: 1fr;
  }

  .channel-left {
    flex-direction: column;
  }
}
