:root {
  --bg: #10130f;
  --bg-soft: #151a14;
  --panel: #1b2119;
  --panel-2: #20271e;
  --ink: #f1efe5;
  --muted: #a8aa9d;
  --quiet: #777b70;
  --line: #323b2f;
  --line-strong: #4a513f;
  --accent: #c3b36d;
  --accent-soft: #746b45;
  --blue: #7e9aa0;
  --rose: #9a6d66;
  --danger: #d16a5d;
  --success: #87aa7b;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 0%, rgba(195, 179, 109, 0.13), transparent 34%),
    radial-gradient(circle at 86% 10%, rgba(126, 154, 160, 0.10), transparent 30%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
.button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0c47f;
  border-radius: 8px;
  padding: 0 16px;
  color: #151711;
  background: var(--accent);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

button:hover,
.button:hover {
  background: #d8cb84;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: #242b22;
  box-shadow: none;
}

.secondary:hover {
  color: var(--ink);
  background: #2d362a;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(195, 179, 109, 0.16);
  color: var(--ink);
  background: rgba(16, 19, 15, 0.9);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.brand-lockup {
  min-width: 230px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #81764b;
  border-radius: 50%;
  color: #efe7b7;
  background: linear-gradient(135deg, #292f24, #171b15);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 0 0 4px rgba(195, 179, 109, 0.06);
}

.brand {
  display: block;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1.1;
}

.tagline {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-color: rgba(195, 179, 109, 0.2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 52px;
}

.home-main {
  padding-top: 34px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(27, 33, 25, 0.96);
  box-shadow: var(--shadow);
}

.home-hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
}

.home-copy,
.home-primary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: rgba(27, 33, 25, 0.96);
  box-shadow: var(--shadow);
}

.home-copy {
  display: grid;
  align-content: center;
}

.home-copy h1,
.creator-hero h1,
.leaderboard-main h1 {
  max-width: 760px;
  margin: 8px 0 12px;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: 0;
}

.home-copy p,
.creator-hero p,
.leaderboard-main .game-banner p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.banner-subtext {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
}

.home-primary-card {
  display: grid;
  align-content: end;
  min-height: 320px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(150deg, rgba(195, 179, 109, 0.18), rgba(126, 154, 160, 0.12)),
    #1b2119;
}

.home-primary-card:hover,
.choice-card:hover,
.home-secondary a:hover {
  border-color: rgba(195, 179, 109, 0.48);
}

.card-kicker,
.choice-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-primary-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 36px;
  line-height: 1.05;
}

.home-primary-card span:last-child {
  color: var(--muted);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.choice-card {
  min-height: 250px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  color: inherit;
  background: rgba(27, 33, 25, 0.96);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.choice-card h2 {
  margin: 34px 0 8px;
  font-size: 26px;
}

.choice-card p {
  margin: 0;
  color: var(--muted);
}

.choice-card strong {
  margin-top: 20px;
  color: var(--accent);
}

.home-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.home-secondary a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: inherit;
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
}

.home-secondary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.home-secondary strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 34px;
  align-items: center;
  padding: 34px 0 24px;
}

.hero-copy h2,
.game-banner h2,
.intro-panel h2 {
  max-width: 720px;
  margin: 8px 0 14px;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 570px;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-stats {
  max-width: 500px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hero-stats div,
.scorebar div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.hero-stats strong,
.scorebar strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.hero-stats span,
.metric-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-preview {
  min-width: 0;
}

.preview-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #22291f, #151914);
  box-shadow: var(--shadow);
}

.preview-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.preview-screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-window {
  min-height: 286px;
  border: 1px solid #394235;
  border-radius: 8px;
  padding: 18px;
  background: #090b09;
}

.mini-window.shifted {
  background: #11150f;
}

.mini-window span {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
  background: #5e6656;
}

.mini-window strong {
  display: block;
  margin-top: 54px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.mini-bar {
  width: 74%;
  height: 34px;
  margin: 24px auto 0;
  border: 1px solid #d5d8d0;
  border-radius: 999px;
  background: #f2efe6;
}

.mini-bar.altered {
  width: 62%;
  transform: translateX(8px);
}

.mini-window p {
  margin: 24px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.lobby-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.lobby-card {
  min-height: 118px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: inherit;
  background: var(--panel);
  text-decoration: none;
}

.lobby-card:hover {
  border-color: rgba(195, 179, 109, 0.44);
}

.primary-lobby {
  background: linear-gradient(135deg, rgba(195, 179, 109, 0.18), rgba(126, 154, 160, 0.09)), var(--panel);
}

.lobby-card span,
.mode-tag {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.lobby-card strong {
  margin-top: 4px;
  font-size: 21px;
}

.lobby-card em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mode-card {
  position: relative;
  min-height: 220px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: inherit;
  background: rgba(27, 33, 25, 0.96);
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.mode-card:hover {
  transform: translateY(-2px);
  border-color: rgba(195, 179, 109, 0.45);
  background: #20271e;
}

.mode-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  color: rgba(241, 239, 229, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
}

.mode-card h3 {
  margin: 54px 0 8px;
  font-size: 23px;
}

.mode-card p,
.compact-panel p,
.section-heading p {
  color: var(--muted);
}

.mode-tag {
  display: inline-flex;
  border: 1px solid rgba(195, 179, 109, 0.28);
  border-radius: 999px;
  padding: 4px 9px;
}

.compact-panel {
  margin-top: 14px;
}

.template-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: center;
}

.template-panel h2 {
  margin: 4px 0 0;
  font-size: 26px;
}

.template-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.template-chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: #151a14;
  font-size: 13px;
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  padding-top: 24px;
}

.creator-main,
.leaderboard-main {
  padding-top: 28px;
}

.creator-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.creator-steps {
  display: grid;
  gap: 8px;
}

.creator-steps span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 850;
}

.creator-steps a {
  border: 1px solid rgba(195, 179, 109, 0.30);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--accent);
  background: rgba(195, 179, 109, 0.07);
  font-weight: 850;
  text-decoration: none;
}

.creator-layout,
.creator-bottom,
.leaderboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 18px;
  margin-bottom: 18px;
}

.builder-panel,
.preview-panel {
  min-width: 0;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.preset-card {
  min-height: 76px;
  color: var(--ink);
  border-color: var(--line);
  background: #151a14;
  box-shadow: none;
}

.preset-card:hover {
  color: #151711;
  border-color: var(--accent);
}

.builder-heading {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.inline-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.chip-builder {
  margin-top: 14px;
}

.chip-list {
  min-height: 48px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 10px;
  background: #111510;
}

.glyph-chip,
.empty-chip {
  min-height: 34px;
  border: 1px solid rgba(195, 179, 109, 0.30);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: #252b22;
  box-shadow: none;
  font-weight: 850;
}

.empty-chip {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  border-color: var(--line);
}

.quality-meter {
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-top: 14px;
  background: #111510;
}

.quality-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--accent), var(--success));
  transition: width 160ms ease;
}

.creator-preview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.creator-preview-grid span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #1d2119;
  background: #f1ecdf;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 24px;
  font-weight: 900;
}

.creator-preview-grid .preview-target-cell {
  color: #10130f;
  background: var(--success);
}

.creator-tip {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.creator-tip span {
  color: var(--muted);
}

.leaderboard-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.leaderboard-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.leaderboard-tabs button {
  min-height: 38px;
}

.leaderboard-tabs .active-tab {
  color: #151711;
  border-color: var(--accent);
  background: var(--accent);
}

.leaderboard-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(27, 33, 25, 0.96);
}

.leaderboard-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.record-list {
  display: grid;
  gap: 10px;
}

.record-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #151a14;
}

.record-rank {
  color: var(--accent);
  font-weight: 900;
}

.record-row h3,
.record-row p {
  margin: 0;
}

.record-row p {
  color: var(--muted);
  font-size: 13px;
}

.game-banner {
  min-height: 150px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(195, 179, 109, 0.16);
  margin-bottom: 18px;
  padding: 28px 0 22px;
}

.game-banner h2 {
  margin-bottom: 0;
  font-size: 40px;
}

.section-heading {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
}

.section-heading p {
  margin: 0;
  font-size: 14px;
}

.controls-row,
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  gap: 12px;
  align-items: end;
}

.field {
  display: grid;
  gap: 6px;
}

.field-wide {
  grid-column: 1 / -1;
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: #111510;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(195, 179, 109, 0.74);
  box-shadow: 0 0 0 3px rgba(195, 179, 109, 0.12);
}

input[type="file"] {
  padding: 8px;
}

textarea {
  resize: vertical;
}

.status {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: var(--muted);
}

.status-success {
  color: var(--success);
  font-weight: 850;
}

.status-error {
  color: var(--danger);
  font-weight: 850;
}

.status-hint {
  color: var(--muted);
}

.scorebar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.board-panel {
  padding: 18px;
}

.board-header {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.board-header h2 {
  margin: 0;
  font-size: 24px;
}

.audio-target {
  flex: none;
}

.grid {
  --columns: 8;
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
}

.cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #3c4438;
  border-radius: 6px;
  color: #1f211b;
  background: #f1ecdf;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.cell:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: #fff9e8;
}

.cell.miss {
  color: #7d2119;
  background: #f5d8d2;
}

.cell.found {
  color: #071007;
  border-color: var(--success);
  background: var(--success);
}

.cell[aria-disabled="true"] {
  cursor: default;
}

.pack-list {
  display: grid;
  gap: 10px;
}

.pack-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #151a14;
}

.pack-card h3 {
  margin: 0 0 4px;
}

.pack-card p {
  margin: 0;
  color: var(--muted);
}

.pack-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pack-actions button {
  min-height: 34px;
  padding: 0 10px;
}

.spot-panel {
  overflow: hidden;
}

.spot-boards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.spot-board {
  min-width: 0;
}

.screen-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #3a4037;
  border-radius: 8px;
  background: #0b0d0b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.changed-screen {
  cursor: crosshair;
}

.changed-screen.solved::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--success);
  pointer-events: none;
}

.mock {
  position: absolute;
  inset: 0;
  color: #eff0ea;
  background: #090b09;
  font-family: Arial, sans-serif;
}

.mock-top {
  position: absolute;
  top: 18px;
  right: 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  color: #d9d9d2;
  font-size: 12px;
}

.mock-top b {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #56776c;
}

.mock-search h3 {
  margin: 82px 0 0;
  text-align: center;
  font-size: 48px;
  letter-spacing: 0;
}

.search-pill {
  width: 56%;
  height: 42px;
  margin: 26px auto 0;
  display: flex;
  gap: 14px;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  color: #60656b;
  background: #f4f5f0;
}

.search-pill span {
  width: 12px;
  height: 12px;
  border: 2px solid #8c9298;
  border-radius: 50%;
}

.search-pill p {
  flex: 1;
  margin: 0;
  font-size: 13px;
}

.search-pill strong {
  border-radius: 999px;
  padding: 5px 10px;
  background: #e8e9e3;
  color: #111;
  font-size: 12px;
}

.quick-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.quick-row i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1f241d;
}

.mock-video {
  display: grid;
  grid-template-columns: 118px 1fr;
}

.mock-video aside,
.mock-chat aside {
  border-right: 1px solid #252a24;
  padding: 18px 14px;
}

.mock-video aside b,
.mock-video aside span,
.mock-chat aside b,
.mock-chat aside span,
.mock-chat aside i {
  display: block;
  height: 18px;
  margin-bottom: 16px;
  border-radius: 5px;
  background: #252a24;
}

.mock-video aside b {
  width: 76px;
  background: #5d1f26;
}

.mock-video main {
  padding: 18px;
}

.video-search {
  width: 42%;
  height: 30px;
  margin: 0 auto;
  border: 1px solid #343a31;
  border-radius: 999px;
}

.mock-video section {
  width: 42%;
  margin: 52px auto 0;
  border: 1px solid #343a31;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  background: #1d211d;
}

.mock-video h3,
.mock-video p {
  margin: 0;
}

.mock-video p {
  margin-top: 10px;
  color: #a9aa9f;
  font-size: 12px;
}

.mock-wiki {
  text-align: center;
  background: #111719;
}

.mock-wiki h3 {
  margin: 28px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.mock-wiki p {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.wiki-globe {
  width: 92px;
  height: 92px;
  margin: 20px auto 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111719;
  background: #d9d9d5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
}

.wiki-links {
  position: absolute;
  inset: 88px 16% auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 17px 130px;
  color: #84a7ff;
  font-weight: 700;
  font-size: 12px;
}

.wiki-search {
  width: 34%;
  height: 34px;
  margin: 86px auto 0;
  border: 2px solid #5278d8;
}

.mock-chat {
  display: grid;
  grid-template-columns: 120px 1fr;
}

.mock-chat aside b {
  width: 80px;
  background: #30342f;
}

.mock-chat main {
  display: grid;
  place-items: center;
}

.mock-chat h3 {
  margin-top: 28px;
  font-size: 20px;
}

.prompt-bar {
  width: 58%;
  height: 44px;
  margin-top: -90px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding: 0 14px;
  background: #252525;
}

.prompt-bar p {
  flex: 1;
  color: #b8b8b8;
}

.prompt-bar strong {
  border-radius: 999px;
  padding: 8px 12px;
  background: #3a3a3a;
  font-size: 12px;
}

.mock-chat footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 120px;
  height: 36px;
  background: #3a3a3a;
}

.diff-shift {
  transform: translateX(-12px);
}

.diff-shift-small {
  transform: translate(8px, -3px);
}

.diff-font {
  font-family: Georgia, "Times New Roman", serif !important;
}

.diff-hide {
  opacity: 0.08;
}

.diff-short {
  width: 48px !important;
}

.diff-thin {
  height: 23px !important;
}

.diff-weight {
  font-weight: 400 !important;
}

.diff-color {
  color: #c6b66f !important;
}

.diff-short-wide {
  width: 28% !important;
}

.upload-screen {
  position: absolute;
  inset: 0;
}

.upload-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.upload-difference {
  position: absolute;
  border: 0;
  border-radius: 3px;
  background: rgba(240, 235, 210, 0.16);
  box-shadow: inset 0 0 0 1px rgba(240, 235, 210, 0.12);
  transform: translate(-50%, -50%);
}

.lab-diff-patch {
  background: rgba(240, 235, 210, 0.24);
}

.lab-diff-blur {
  backdrop-filter: blur(7px);
  background: rgba(255, 255, 255, 0.08);
}

.lab-diff-dark {
  background: rgba(0, 0, 0, 0.34);
}

.lab-diff-gold {
  background: rgba(195, 179, 109, 0.28);
  box-shadow: inset 0 0 0 1px rgba(195, 179, 109, 0.38);
}

.target-reveal {
  position: absolute;
  border: 2px solid var(--success);
  border-radius: 999px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.10), 0 0 18px rgba(135, 170, 123, 0.8);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
}

.result-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 6, 4, 0.72);
  backdrop-filter: blur(12px);
}

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

.result-dialog {
  width: min(560px, 100%);
  border: 1px solid rgba(195, 179, 109, 0.28);
  border-radius: 8px;
  padding: 24px;
  background: #1b2119;
  box-shadow: var(--shadow);
}

.result-dialog h2 {
  margin: 8px 0;
  font-size: 34px;
}

.result-dialog p {
  color: var(--muted);
}

.result-name-field {
  margin-top: 14px;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.result-stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.result-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.result-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.lab-stage-wrap {
  margin-top: 18px;
}

.lab-stage {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #0b0d0b;
  cursor: crosshair;
}

.lab-stage p,
.lab-empty {
  color: var(--muted);
}

.lab-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lab-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(195, 179, 109, 0.16);
}

.lab-preview-boards {
  grid-template-columns: 1fr;
}

.lab-empty {
  height: 100%;
  display: grid;
  place-items: center;
}

.mock-shop,
.mock-social,
.mock-inbox,
.mock-maps,
.mock-stream,
.mock-dashboard {
  background: #0d100d;
}

.mock-shop header,
.mock-stream header {
  height: 48px;
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #252a24;
}

.mock-shop header div {
  flex: 1;
  height: 26px;
  border-radius: 999px;
  background: #1f241d;
}

.mock-shop aside,
.mock-social aside,
.mock-inbox aside,
.mock-dashboard aside {
  position: absolute;
  top: 48px;
  bottom: 0;
  left: 0;
  width: 118px;
  border-right: 1px solid #252a24;
  padding: 16px;
}

.mock-shop aside i,
.mock-social aside span,
.mock-social aside b,
.mock-inbox aside span,
.mock-inbox aside b,
.mock-dashboard aside span,
.mock-dashboard aside b {
  display: block;
  height: 18px;
  margin-bottom: 14px;
  border-radius: 5px;
  background: #252a24;
}

.mock-shop main,
.mock-social main,
.mock-inbox main,
.mock-dashboard main {
  margin-left: 118px;
  padding: 20px;
}

.mock-shop main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mock-shop article {
  min-height: 170px;
  border-radius: 8px;
  padding: 14px;
  background: #1b2119;
}

.mock-shop article strong,
.mock-shop article p,
.mock-shop article button {
  display: block;
  height: 18px;
  margin-top: 16px;
  border-radius: 5px;
  background: #343b31;
}

.mock-shop article strong {
  height: 70px;
  margin-top: 0;
}

.mock-social main section {
  min-height: 112px;
  border: 1px solid #252a24;
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 14px;
  background: #151a14;
}

.mock-social h3 {
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 50%;
  background: #465144;
}

.mock-social p {
  width: 70%;
  height: 18px;
  border-radius: 5px;
  background: #30372d;
}

.mock-social section div {
  height: 46px;
  border-radius: 6px;
  background: #242b22;
}

.mail-search {
  height: 30px;
  width: 60%;
  border-radius: 999px;
  background: #242b22;
}

.mock-inbox ul {
  list-style: none;
  padding: 0;
}

.mock-inbox li {
  height: 28px;
  border-bottom: 1px solid #252a24;
}

.mock-maps .map-panel {
  position: absolute;
  inset: 16px auto 16px 16px;
  width: 180px;
  border-radius: 8px;
  padding: 14px;
  background: #f1ecdf;
}

.mock-maps .map-panel div,
.mock-maps .map-panel span {
  display: block;
  height: 18px;
  margin-bottom: 12px;
  border-radius: 5px;
  background: #c9c4b8;
}

.mock-maps main {
  position: absolute;
  inset: 0 0 0 210px;
  background:
    linear-gradient(35deg, transparent 45%, rgba(195, 179, 109, 0.35) 46%, rgba(195, 179, 109, 0.35) 48%, transparent 49%),
    #263125;
}

.mock-maps main i {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d16a5d;
}

.mock-maps main i:nth-child(1) { left: 30%; top: 32%; }
.mock-maps main i:nth-child(2) { left: 56%; top: 48%; }
.mock-maps main i:nth-child(3) { left: 70%; top: 28%; }
.mock-maps main b {
  position: absolute;
  left: 24%;
  top: 38%;
  width: 54%;
  height: 8px;
  border-radius: 999px;
  background: #7e9aa0;
  transform: rotate(-18deg);
}

.mock-stream main {
  padding: 20px;
}

.mock-stream main section {
  height: 150px;
  border-radius: 8px;
  background: linear-gradient(135deg, #394235, #5d1f26);
}

.mock-stream main div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.mock-stream main i {
  height: 74px;
  border-radius: 8px;
  background: #242b22;
}

.dash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dash-cards section {
  height: 72px;
  border-radius: 8px;
  background: #242b22;
}

.chart {
  height: 150px;
  margin-top: 18px;
  border-radius: 8px;
  background: linear-gradient(160deg, #242b22, #384337);
}

.diff-darken {
  filter: brightness(0.65);
}

.diff-pin-shift {
  transform: translate(18px, -12px);
}

.diff-card-color {
  background: rgba(195, 179, 109, 0.32) !important;
}

@media (max-width: 980px) {
  .home-hero,
  .choice-grid,
  .home-secondary,
  .creator-hero,
  .creator-layout,
  .creator-bottom,
  .leaderboard-layout,
  .leaderboard-summary,
  .hero,
  .lobby-strip,
  .mode-grid,
  .template-panel,
  .two-column,
  .spot-boards {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 28px;
  }

  .hero-copy h2 {
    font-size: 48px;
  }

  .template-chips {
    justify-content: flex-start;
  }

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

@media (max-width: 760px) {
  .site-header-inner,
  .game-banner,
  .board-header,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header-inner {
    padding: 12px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .brand-lockup {
    min-width: 0;
  }

  .hero-copy h2,
  .game-banner h2,
  .intro-panel h2,
  .home-copy h1,
  .creator-hero h1,
  .leaderboard-main h1 {
    font-size: 36px;
  }

  .hero-stats,
  .scorebar,
  .preview-screens {
    grid-template-columns: 1fr;
  }

  .mini-window {
    min-height: 220px;
  }

  .cell {
    font-size: 22px;
  }

  .grid {
    gap: 4px;
  }

  .choice-card,
  .home-primary-card {
    min-height: 210px;
  }

  .record-row {
    grid-template-columns: 1fr;
  }
}
