:root {
  --bg: #f6f2ea;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #162234;
  --muted: #687383;
  --line: #d8d1c7;
  --navy: #14253b;
  --blue: #627f9a;
  --green: #5d7f64;
  --red: #7c2f2f;
  --gold: #b48445;
  --violet: #675a92;
  --shadow: 0 18px 45px rgba(25, 35, 50, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(98, 127, 154, 0.13), transparent 34%),
    linear-gradient(210deg, rgba(124, 47, 47, 0.12), transparent 29%),
    var(--bg);
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

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

svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

i[data-lucide] {
  width: 16px;
  height: 16px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  font-style: normal;
}

i[data-lucide]::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
}

.app-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 26px;
  background: rgba(20, 37, 59, 0.96);
  color: #fffdf8;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: #7c2f2f;
  color: #fffdf8;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.66);
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
}

.side-nav a:hover,
.side-nav a.is-active {
  color: #fffdf8;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.sidebar-card p {
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 0;
  line-height: 1.55;
}

main {
  min-width: 0;
  padding: 24px clamp(18px, 3vw, 42px) 96px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0 18px;
  backdrop-filter: blur(18px);
}

.mobile-brand {
  display: none;
  font-weight: 700;
}

.mobile-brand .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 0.78rem;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.82);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.top-actions,
.button-row,
.hero-actions,
.panel-header,
.section-heading,
.prompt-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions {
  flex: 0 0 auto;
}

.primary-btn,
.secondary-btn,
.icon-btn,
.text-btn,
.chip,
.prompt-row button,
.bottom-nav button {
  border: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.primary-btn {
  padding: 0 16px;
  color: #fffdf8;
  background: var(--navy);
}

.secondary-btn,
.chip,
.prompt-row button {
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.icon-btn {
  width: 42px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.text-btn {
  min-height: 34px;
  padding: 0 10px;
  color: var(--red);
  background: transparent;
}

.primary-btn:hover,
.secondary-btn:hover,
.icon-btn:hover,
.chip:hover,
.prompt-row button:hover,
.text-btn:hover {
  transform: translateY(-1px);
}

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2.25rem, 4.2vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.command-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  align-items: end;
  gap: 28px;
  padding: 22px 0 18px;
}

.command-strip .eyebrow {
  margin-bottom: 12px;
}

.hero-lede {
  max-width: 670px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 22px;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.signal-grid div {
  padding: 16px;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.76);
}

.signal-grid strong {
  display: block;
  font-size: 1.55rem;
}

.signal-grid span,
.creator-card span,
.leaderboard small,
.filter-count,
.dialog-copy dt,
.submit-summary span {
  color: var(--muted);
  font-size: 0.88rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.85fr);
  gap: 18px;
  margin-bottom: 36px;
}

.market-loop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.market-loop article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.76);
}

.market-loop svg,
.market-loop i {
  color: var(--red);
  margin-top: 2px;
}

.market-loop strong,
.market-loop span {
  display: block;
}

.market-loop span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.contest-panel,
.judge-panel,
.curator-panel,
.rules-panel,
.creator-card,
.studio-section,
.game-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.contest-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.92fr);
  gap: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(20, 37, 59, 0.97), rgba(55, 72, 88, 0.94)),
    var(--navy);
  color: #fffdf8;
}

.contest-copy {
  padding: 26px;
}

.contest-copy .eyebrow,
.contest-copy p {
  color: rgba(255, 253, 248, 0.72);
}

.contest-copy h2 {
  margin-top: 10px;
  color: #fffdf8;
}

.contest-copy p {
  max-width: 560px;
  line-height: 1.55;
}

.prize-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.prize-row span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.prize-row b {
  color: #e7bf7f;
}

.contest-panel .primary-btn {
  background: #fffdf8;
  color: var(--navy);
}

.contest-panel .secondary-btn {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fffdf8;
}

.arena-preview {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.arena-preview::before {
  content: "";
  position: absolute;
  inset: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotate(-8deg);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(231, 191, 127, 0.44);
  border-radius: 50%;
}

.orbit-one {
  width: 240px;
  height: 240px;
  right: 42px;
  top: 48px;
}

.orbit-two {
  width: 180px;
  height: 180px;
  right: 128px;
  top: 106px;
  border-color: rgba(145, 169, 189, 0.5);
}

.agent {
  position: absolute;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fffdf8;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.agent-one {
  right: 200px;
  top: 72px;
  background: var(--red);
}

.agent-two {
  right: 80px;
  top: 168px;
  background: var(--blue);
}

.agent-three {
  right: 210px;
  top: 218px;
  background: var(--green);
}

.arena-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 150px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.12);
  backdrop-filter: blur(16px);
}

.arena-card span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.arena-card strong {
  display: block;
  margin-top: 4px;
  color: #fffdf8;
  font-size: 1.55rem;
}

.judge-panel,
.curator-panel,
.rules-panel,
.studio-section {
  padding: 22px;
}

.panel-header,
.section-heading {
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading.compact {
  margin-bottom: 12px;
}

.leaderboard {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.leaderboard li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.leaderboard li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fffdf8;
  background: var(--navy);
}

.leaderboard strong,
.leaderboard small {
  display: block;
}

.leaderboard b {
  color: var(--red);
}

.catalog-section {
  scroll-margin-top: 90px;
  margin-bottom: 36px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chip.is-selected {
  color: #fffdf8;
  background: var(--navy);
  border-color: var(--navy);
}

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

.game-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.game-art {
  position: relative;
  min-height: 184px;
  overflow: hidden;
  background: #dce5eb;
  border-bottom: 1px solid var(--line);
}

.game-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.game-art:has(img)::before,
.game-art:has(img)::after {
  display: none;
}

.game-art::before,
.game-art::after {
  content: "";
  position: absolute;
  display: block;
}

.art-dungeon {
  background:
    linear-gradient(140deg, rgba(20, 37, 59, 0.95), rgba(74, 65, 97, 0.94)),
    #273046;
}

.art-dungeon::before {
  inset: 26px;
  border: 1px solid rgba(255, 253, 248, 0.22);
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 253, 248, 0.16) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 253, 248, 0.16) 50%, transparent 51%);
  background-size: 44px 44px;
}

.art-dungeon::after {
  width: 72px;
  height: 72px;
  right: 34px;
  bottom: 24px;
  border-radius: 8px;
  background: var(--gold);
  box-shadow: -92px -48px 0 -18px var(--red), -142px 34px 0 -22px var(--blue);
}

.art-colony {
  background: linear-gradient(145deg, #d9e4d7, #8da57d);
}

.art-colony::before {
  inset: 24px 34px;
  background:
    radial-gradient(circle at 20% 26%, var(--navy) 0 11px, transparent 12px),
    radial-gradient(circle at 78% 32%, var(--green) 0 15px, transparent 16px),
    radial-gradient(circle at 52% 72%, var(--red) 0 10px, transparent 11px),
    linear-gradient(90deg, transparent 0 48%, rgba(20, 37, 59, 0.28) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 0 48%, rgba(20, 37, 59, 0.28) 49% 51%, transparent 52%);
  border: 1px solid rgba(20, 37, 59, 0.22);
}

.art-colony::after {
  width: 96px;
  height: 46px;
  left: 28px;
  bottom: 24px;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 124px -42px 0 -10px rgba(255, 253, 248, 0.7);
}

.art-racer {
  background: linear-gradient(140deg, #1f3142, #546f89 60%, #e0c184);
}

.art-racer::before {
  left: 44%;
  top: -20px;
  width: 28%;
  height: 260px;
  transform: skewX(-14deg);
  background: rgba(255, 253, 248, 0.16);
}

.art-racer::after {
  width: 70px;
  height: 38px;
  left: 36px;
  bottom: 32px;
  border-radius: 18px 18px 8px 8px;
  background: var(--red);
  box-shadow: 134px -78px 0 -8px var(--navy), 204px -22px 0 -14px var(--green);
}

.art-oracle {
  background:
    radial-gradient(circle at 72% 25%, rgba(180, 132, 69, 0.62), transparent 25%),
    linear-gradient(135deg, #efe0d1, #788fa5);
}

.art-oracle::before {
  width: 78px;
  height: 110px;
  left: 42px;
  bottom: 0;
  border-radius: 40px 40px 0 0;
  background: var(--navy);
  box-shadow: 122px -34px 0 -18px var(--red);
}

.art-oracle::after {
  inset: 42px 34px;
  border: 1px solid rgba(20, 37, 59, 0.24);
}

.art-forge {
  background: linear-gradient(145deg, #f2d2b7, #7c2f2f 72%);
}

.art-forge::before {
  inset: 36px;
  background:
    linear-gradient(90deg, transparent 0 44%, rgba(255, 253, 248, 0.45) 45% 55%, transparent 56%),
    linear-gradient(0deg, transparent 0 44%, rgba(255, 253, 248, 0.45) 45% 55%, transparent 56%);
  transform: rotate(8deg);
}

.art-forge::after {
  width: 82px;
  height: 82px;
  right: 34px;
  top: 42px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: -138px 62px 0 -18px var(--navy);
}

.art-echo {
  background: linear-gradient(135deg, #edece7, #9aa5b1);
}

.art-echo::before {
  width: 170px;
  height: 170px;
  left: 50%;
  top: 50%;
  border: 10px solid rgba(20, 37, 59, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 26px rgba(124, 47, 47, 0.1), 0 0 0 56px rgba(93, 127, 100, 0.1);
}

.art-echo::after {
  width: 50px;
  height: 96px;
  left: 54%;
  top: 36px;
  border-radius: 26px;
  background: var(--navy);
}

.art-garden {
  background: linear-gradient(145deg, #dce8d5, #efe0d1);
}

.art-garden::before {
  inset: 20px;
  background:
    radial-gradient(circle at 22% 60%, var(--green) 0 20px, transparent 21px),
    radial-gradient(circle at 58% 35%, var(--red) 0 12px, transparent 13px),
    radial-gradient(circle at 76% 70%, var(--gold) 0 18px, transparent 19px),
    linear-gradient(90deg, rgba(20, 37, 59, 0.18) 1px, transparent 1px);
  background-size: auto, auto, auto, 38px 38px;
  border: 1px solid rgba(20, 37, 59, 0.18);
}

.art-garden::after {
  width: 120px;
  height: 26px;
  left: 34px;
  bottom: 28px;
  background: rgba(20, 37, 59, 0.74);
}

.art-voice {
  background: linear-gradient(135deg, #24384f, #7d8fa0);
}

.art-voice::before {
  width: 92px;
  height: 92px;
  right: 46px;
  top: 46px;
  border: 1px solid rgba(255, 253, 248, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 253, 248, 0.1), 0 0 0 48px rgba(255, 253, 248, 0.08);
}

.art-voice::after {
  left: 28px;
  top: 42px;
  width: 84px;
  height: 108px;
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 253, 248, 0.18) 1px, transparent 1px),
    rgba(255, 253, 248, 0.12);
  background-size: 100% 18px;
}

.game-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.game-topline,
.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-topline span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
}

.game-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.15;
}

.game-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
}

.game-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.game-footer button {
  min-height: 36px;
  padding: 0 10px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  margin-bottom: 36px;
}

.prompt-row {
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.curator-answer {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-strong);
  line-height: 1.55;
}

.rules-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.rules-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.45;
}

.rules-list svg {
  color: var(--red);
  margin-top: 2px;
}

.creators-section,
.studio-section {
  scroll-margin-top: 90px;
  margin-bottom: 36px;
}

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

.creator-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

.creator-card p,
.creator-card .mini-tags {
  grid-column: 1 / -1;
}

.creator-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fffdf8;
  background: var(--blue);
  font-weight: 800;
}

.creator-avatar.green {
  background: var(--green);
}

.creator-avatar.red {
  background: var(--red);
}

.creator-card strong,
.creator-card span {
  display: block;
}

.creator-card p {
  color: var(--muted);
  line-height: 1.5;
}

.studio-section {
  padding: 24px;
}

.studio-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.studio-grid svg {
  color: var(--red);
  margin-bottom: 16px;
}

.studio-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.bottom-nav {
  display: none;
}

dialog {
  width: min(920px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(16, 24, 36, 0.5);
}

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
  margin: 8px 0 0;
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
}

.dialog-body .game-art {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dialog-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.dialog-copy dl {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.dialog-copy dl div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.dialog-copy dt,
.dialog-copy dd {
  margin: 0;
}

.dialog-copy dd {
  margin-top: 4px;
}

.submit-dialog {
  width: min(620px, calc(100vw - 28px));
}

.submit-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.submit-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.submit-form input,
.submit-form select,
.submit-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: var(--surface-strong);
}

.submit-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

@media (max-width: 1180px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  main {
    padding-bottom: 112px;
  }

  .mobile-brand {
    display: inline-flex;
  }

  .command-strip,
  .dashboard-grid,
  .contest-panel,
  .two-column {
    grid-template-columns: 1fr;
  }

  .market-loop {
    grid-template-columns: 1fr;
  }

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

  .creator-grid,
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, minmax(66px, 1fr));
    gap: 3px;
    width: min(520px, calc(100vw - 24px));
    padding: 6px;
    border: 1px solid rgba(216, 209, 199, 0.9);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: var(--shadow);
    transform: translate(-50%, 92px);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  body.nav-visible .bottom-nav {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
  }

  .bottom-nav a,
  .bottom-nav button {
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
    font-size: 0.74rem;
  }

  .bottom-nav a:hover,
  .bottom-nav button:hover {
    color: var(--ink);
    background: rgba(20, 37, 59, 0.07);
  }
}

@media (max-width: 720px) {
  main {
    padding: 14px 14px 108px;
  }

  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
  }

  .mobile-brand {
    flex: 1 1 auto;
    width: auto;
  }

  .top-actions {
    width: auto;
    margin-left: auto;
  }

  .top-actions .primary-btn {
    min-height: 38px;
    padding: 0 12px;
  }

  .search {
    order: 3;
    flex-basis: 100%;
    min-height: 44px;
  }

  h1 {
    font-size: clamp(2.08rem, 10.5vw, 3.25rem);
    line-height: 1.02;
  }

  .command-strip {
    padding: 18px 0 14px;
  }

  .command-strip .eyebrow {
    margin-bottom: 10px;
  }

  .hero-lede {
    margin-top: 14px;
    font-size: 0.98rem;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .hero-actions .primary-btn,
  .hero-actions .secondary-btn {
    flex: 1 1 160px;
  }

  .market-loop {
    gap: 8px;
    margin-bottom: 14px;
  }

  .market-loop article {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 12px;
  }

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

  .signal-grid div {
    min-height: 74px;
    padding: 10px 8px;
  }

  .signal-grid strong {
    font-size: 1.24rem;
  }

  .signal-grid span {
    display: block;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .contest-copy {
    padding: 20px;
  }

  .arena-preview {
    min-height: 250px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 0;
  }

  .game-art {
    min-height: 150px;
  }

  .game-content {
    padding: 14px;
  }

  .filters {
    flex-wrap: nowrap;
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px 2px;
    overflow-x: auto;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .dialog-body {
    grid-template-columns: 1fr;
  }

  .dialog-body .game-art {
    min-height: 230px;
  }
}
