:root {
  color-scheme: dark;
  --ink: #f6f1e8;
  --muted: #b8c4d0;
  --panel: rgba(18, 23, 29, 0.82);
  --panel-strong: rgba(12, 16, 22, 0.94);
  --line: rgba(255, 255, 255, 0.16);
  --accent: #f59e0b;
  --good: #31d67b;
  --blue: #49a7ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #101419;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

.game-site-nav {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 20;
  width: min(820px, calc(100% - 24px));
  min-height: 50px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 13, 18, 0.76);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.game-site-nav a,
.game-site-nav strong,
.game-site-nav button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.game-site-nav strong {
  color: var(--accent);
  text-transform: uppercase;
}

.game-site-nav button {
  border: 1px solid rgba(245, 158, 11, 0.42);
  padding: 0 12px;
  background: rgba(245, 158, 11, 0.14);
  cursor: pointer;
}

.game-intro {
  height: 310vh;
  min-height: 1560px;
  background: #080b10;
}

.game-intro-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.game-intro-frame,
.game-intro-shade {
  position: absolute;
  inset: 0;
}

.game-intro-frame {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 420ms ease, transform 900ms ease;
}

.game-intro-frame-one {
  background-image:
    linear-gradient(90deg, rgba(8, 12, 18, 0.08), rgba(8, 12, 18, 0.6)),
    url("../assets/intro/rap-studio-approach.webp");
  opacity: 1;
}

.game-intro-frame-two {
  background:
    linear-gradient(135deg, rgba(49, 214, 123, 0.18), transparent 48%),
    linear-gradient(315deg, rgba(73, 167, 255, 0.16), transparent 46%),
    #111820;
}

.game-intro-frame-two::before,
.game-intro-frame-three::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 22%, rgba(255, 255, 255, 0.12) 22% 24%, transparent 24% 48%, rgba(255, 255, 255, 0.12) 48% 50%, transparent 50%),
    linear-gradient(0deg, transparent 0 28%, rgba(245, 158, 11, 0.2) 28% 30%, transparent 30% 62%, rgba(245, 158, 11, 0.2) 62% 64%, transparent 64%),
    rgba(9, 13, 18, 0.76);
}

.game-intro-frame-three {
  background:
    radial-gradient(circle at 52% 42%, rgba(245, 158, 11, 0.34), transparent 24%),
    linear-gradient(160deg, #151b24, #0c0f14 64%);
}

.game-intro-frame-three::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 76px;
  height: 120px;
  border-radius: 999px 999px 8px 8px;
  background:
    radial-gradient(circle at 50% 18%, #f6f1e8 0 15%, transparent 16%),
    linear-gradient(90deg, transparent 0 45%, #f59e0b 45% 55%, transparent 55%),
    linear-gradient(35deg, transparent 0 44%, #f59e0b 44% 52%, transparent 52%),
    linear-gradient(-35deg, transparent 0 44%, #f59e0b 44% 52%, transparent 52%);
  filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.52));
  transform: translate(-50%, -50%);
}

.game-intro[data-scene="1"] .game-intro-frame-one,
.game-intro[data-scene="2"] .game-intro-frame-one {
  opacity: 0;
}

.game-intro[data-scene="1"] .game-intro-frame-two,
.game-intro[data-scene="2"] .game-intro-frame-three {
  opacity: 1;
  transform: scale(1);
}

.game-intro-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 11, 16, 0.16), rgba(8, 11, 16, 0.88)),
    linear-gradient(90deg, rgba(8, 11, 16, 0.88), rgba(8, 11, 16, 0.24) 56%, rgba(8, 11, 16, 0.7));
}

.game-intro-copy {
  position: relative;
  z-index: 2;
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 132px;
}

.game-intro-copy span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-intro-copy h1 {
  max-width: 820px;
  margin: 8px 0 0;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.88;
}

.game-intro-copy p {
  max-width: 560px;
  margin: 18px 0 0;
  color: #d7e1ec;
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 780;
  line-height: 1.38;
}

.game-intro-progress {
  position: absolute;
  left: 50%;
  bottom: max(90px, calc(env(safe-area-inset-bottom) + 82px));
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.game-intro-dot {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(246, 241, 232, 0.72);
  border-radius: 50%;
  padding: 0;
  background: rgba(246, 241, 232, 0.18);
  cursor: pointer;
}

.game-intro-dot.active {
  width: 34px;
  border-radius: 999px;
  border-color: var(--accent);
  background: var(--accent);
}

.game-intro-button {
  position: absolute;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 3;
  min-width: 172px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(246, 241, 232, 0.42);
  border-radius: 8px;
  padding: 0 20px;
  background: rgba(10, 13, 18, 0.72);
  color: #fff4d6;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-weight: 900;
  transform: translateX(-50%);
}

.game-intro-button i {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.game-intro[data-scene="2"] .game-intro-button {
  color: #101419;
  background: var(--accent);
}

button,
input {
  font: inherit;
}

button {
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
}

button.is-pressed:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}

button.is-working {
  opacity: 0.78;
  position: relative;
}

button.is-working::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.game-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 520px;
  overflow: hidden;
}

#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #162029;
}

.hud {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.top-hud {
  top: 14px;
  left: 14px;
  right: 336px;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(150px, 1.1fr) minmax(150px, 1.1fr) minmax(320px, 2fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
}

.identity {
  display: grid;
  gap: 4px;
}

.identity span {
  color: var(--muted);
  font-size: 0.82rem;
}

.identity strong {
  font-size: 1.12rem;
}

.meter-group {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.meter-group label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ffdd66);
  transition: width 120ms linear;
}

.meter.energy span {
  background: linear-gradient(90deg, var(--good), #a7f3d0);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 8px;
  min-width: 0;
}

.stat-grid span {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-grid b {
  color: var(--ink);
}

.side-panel {
  top: 14px;
  right: 14px;
  width: 304px;
  max-height: calc(100vh - 112px);
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 14px;
  border-radius: 8px;
}

.side-panel h1 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.side-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.studio-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.studio-link:hover {
  border-color: rgba(245, 158, 11, 0.72);
}

.message,
.nearby,
.objective,
.career-title,
.action-log {
  padding: 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.9rem;
}

.nearby {
  color: var(--ink);
  border-left: 3px solid var(--accent);
}

.objective {
  color: var(--ink);
  border-left: 3px solid var(--blue);
}

.career-title {
  color: var(--ink);
  border-left: 3px solid var(--good);
  font-weight: 800;
}

.action-log {
  color: var(--muted);
  min-height: 42px;
}

.journal-panel,
.inventory-panel {
  display: grid;
  gap: 8px;
}

.journal-panel h2,
.inventory-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.quest-list,
.inventory-list {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.quest-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 8px;
  padding: 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.quest-item strong,
.inventory-item strong {
  display: block;
  color: var(--ink);
}

.quest-item span,
.inventory-item em {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.25;
}

.quest-item em {
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
}

.quest-item.is-complete {
  border-color: rgba(49, 214, 123, 0.5);
  background: rgba(49, 214, 123, 0.1);
}

.quest-meter {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.quest-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--good);
}

.inventory-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.inventory-item:hover:not(:disabled) {
  border-color: rgba(73, 167, 255, 0.72);
  background: rgba(73, 167, 255, 0.12);
}

.inventory-item b {
  color: var(--accent);
}

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

.leaderboard li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 8px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.84rem;
}

.leaderboard strong {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.controls {
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
}

.controls button,
.join-content > button[type="submit"],
.menu-heading button {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #1d1303;
  font-weight: 800;
  cursor: pointer;
}

.controls button {
  padding: 0 16px;
}

.controls span {
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.join-panel {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 10, 14, 0.45);
}

.join-panel.is-hidden {
  display: none;
}

.building-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 10, 14, 0.38);
  z-index: 7;
}

.building-screen.is-hidden {
  display: none;
}

.building-content {
  width: min(620px, 100%);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

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

.building-header span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: capitalize;
}

.building-header h2 {
  margin: 0;
  font-size: 1.45rem;
}

.building-header p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.building-header button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
}

.building-status {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.building-status span {
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.82rem;
}

.building-status b {
  color: var(--ink);
}

.interior-scene {
  min-height: 142px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    #1d2731;
}

.interior-copy,
.interior-props {
  display: grid;
  gap: 7px;
  align-content: center;
}

.interior-copy strong {
  font-size: 1.05rem;
}

.interior-copy span {
  color: var(--muted);
  line-height: 1.35;
}

.interior-props {
  grid-template-columns: repeat(3, 1fr);
}

.interior-props span {
  min-height: 64px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.interior-apartment { background-color: #374151; }
.interior-university { background-color: #285f83; }
.interior-gym { background-color: #843838; }
.interior-burger { background-color: #8a651e; }
.interior-bank { background-color: #35694c; }
.interior-market { background-color: #673f82; }
.interior-casino { background-color: #85375e; }
.interior-office { background-color: #2f6970; }
.interior-arena { background-color: #614025; }
.interior-club { background-color: #4d4590; }

.building-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.building-option {
  min-height: 112px;
  display: grid;
  gap: 6px;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.building-option:hover:not(:disabled) {
  border-color: rgba(245, 158, 11, 0.78);
  background: rgba(245, 158, 11, 0.13);
}

.building-option:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.building-option.is-working {
  opacity: 0.9;
  border-color: rgba(245, 158, 11, 0.9);
}

.building-option span,
.building-option em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.3;
}

.join-content {
  width: min(620px, 100%);
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.join-content h2 {
  margin: 0;
  font-size: 1.45rem;
}

.menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-heading span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.menu-heading button {
  padding: 0 15px;
}

.character-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.character-slot,
.archetype {
  display: grid;
  gap: 3px;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.character-slot.is-selected,
.archetype.is-selected {
  border-color: rgba(245, 158, 11, 0.92);
  background: rgba(245, 158, 11, 0.16);
}

.character-slot span,
.archetype span,
.archetype em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.editor-layout {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: stretch;
}

.editor-fields {
  display: grid;
  gap: 13px;
}

.avatar-preview {
  min-height: 148px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
}

.preview-stick {
  --stick-color: var(--blue);
  position: relative;
  width: 74px;
  height: 118px;
}

.preview-stick::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 4px;
  width: 22px;
  height: 22px;
  border: 4px solid #101318;
  border-radius: 50%;
  background: var(--stick-color);
}

.preview-stick span,
.preview-stick span::before,
.preview-stick span::after {
  position: absolute;
  display: block;
  content: "";
  border-radius: 999px;
  background: var(--stick-color);
  box-shadow: 0 0 0 3px #101318;
}

.preview-stick span {
  left: 37px;
  top: 32px;
  width: 6px;
  height: 48px;
}

.preview-stick span::before {
  left: -23px;
  top: 13px;
  width: 52px;
  height: 6px;
  transform: rotate(-13deg);
}

.preview-stick span::after {
  left: -16px;
  top: 49px;
  width: 39px;
  height: 6px;
  transform: rotate(35deg);
}

.join-content label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
}

.join-content input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  outline: none;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.swatch {
  aspect-ratio: 1;
  min-height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  cursor: pointer;
}

.swatch.is-selected {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.archetypes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 980px) {
  .game-site-nav {
    width: min(100% - 20px, 680px);
    grid-template-columns: 1fr 1fr auto;
  }

  .game-site-nav strong {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .game-intro-copy {
    width: min(100% - 28px, 680px);
    padding-top: 116px;
    padding-bottom: 128px;
  }

  .game-intro-copy h1 {
    font-size: clamp(3rem, 16vw, 6.2rem);
  }

  .game-intro-progress {
    bottom: max(92px, calc(env(safe-area-inset-bottom) + 84px));
  }

  .top-hud {
    right: 14px;
    grid-template-columns: 1fr 1fr;
  }

  .stat-grid {
    grid-column: 1 / -1;
  }

  .side-panel {
    top: auto;
    right: 14px;
    bottom: 88px;
    width: min(304px, calc(100vw - 28px));
    max-height: 320px;
    overflow: auto;
  }
}

@media (max-width: 620px) {
  .game-site-nav {
    top: 10px;
    gap: 6px;
    padding: 7px;
  }

  .game-site-nav a,
  .game-site-nav strong,
  .game-site-nav button {
    min-height: 34px;
    font-size: 0.74rem;
  }

  .game-intro {
    height: 300vh;
    min-height: 1450px;
  }

  .game-intro-frame-one {
    background-position: 58% center;
  }

  .game-intro-copy h1 {
    font-size: clamp(2.72rem, 18vw, 4.8rem);
  }

  .game-intro-button {
    width: min(260px, calc(100% - 36px));
    min-height: 56px;
  }

  .game-shell {
    min-height: 100dvh;
  }

  .top-hud {
    grid-template-columns: 1fr;
    gap: 9px;
  }

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

  .controls {
    width: calc(100vw - 24px);
    justify-content: center;
    flex-wrap: wrap;
  }

  .controls span {
    display: none;
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }

  .avatar-preview {
    min-height: 120px;
  }

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

  .building-status,
  .building-options {
    grid-template-columns: 1fr;
  }

  .interior-scene {
    grid-template-columns: 1fr;
  }

  .interior-props {
    grid-template-columns: 1fr 1fr;
  }
}
