:root {
  color-scheme: dark;
  font-family:
    Nunito, "Noto Sans SC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --bg: #090806;
  --panel: rgba(19, 15, 11, 0.88);
  --panel-solid: #17120d;
  --line: rgba(242, 178, 74, 0.32);
  --gold: #f2b24a;
  --gold-soft: #ffd98a;
  --cyan: #42d8ff;
  --text: #f8efe0;
  --muted: #cbbda9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(9, 8, 6, 0), #090806 720px),
    radial-gradient(circle at 18% 12%, rgba(66, 216, 255, 0.16), transparent 34%),
    #090806;
  color: var(--text);
}

body.is-modal-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.retro-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.retro-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
}

.retro-hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.retro-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.92), rgba(7, 6, 5, 0.56) 48%, rgba(7, 6, 5, 0.2)),
    linear-gradient(180deg, rgba(7, 6, 5, 0.22), #090806 100%);
}

.retro-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.retro-brand img {
  display: block;
  width: clamp(180px, 20vw, 270px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.42));
}

.retro-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 6px;
  background: rgba(9, 8, 6, 0.48);
  backdrop-filter: blur(14px);
}

.retro-nav a,
.retro-nav button {
  min-height: 38px;
  border: 0;
  padding: 9px 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.retro-nav a:hover,
.retro-nav button:hover {
  color: var(--text);
}

.retro-language-toggle {
  min-height: 52px;
  border: 1px solid rgba(242, 178, 74, 0.36);
  padding: 0 15px;
  background:
    linear-gradient(135deg, rgba(242, 178, 74, 0.16), rgba(66, 216, 255, 0.08)),
    rgba(9, 8, 6, 0.58);
  color: var(--gold-soft);
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
}

.retro-language-toggle:hover {
  border-color: rgba(242, 178, 74, 0.62);
  color: var(--text);
}

#nav-shelf-button[hidden],
.retro-screen-actions[hidden] {
  display: none;
}

.retro-hero-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 148px 0 92px;
}

.retro-kicker {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.retro-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-family: Almendra, Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 7vw, 6.25rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

.retro-hero-copy > p {
  max-width: 660px;
  margin: 26px 0 0;
  color: #f0dcc0;
  font-size: 1.13rem;
  line-height: 1.58;
}

.retro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.retro-badges span {
  border: 1px solid rgba(66, 216, 255, 0.28);
  padding: 8px 11px;
  color: #b8efff;
  background: rgba(12, 47, 58, 0.38);
  font-size: 0.86rem;
  font-weight: 900;
}

.retro-stage,
.retro-support-panel,
.retro-info-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.retro-stage {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
  align-items: start;
  gap: 20px;
  padding: 36px 0 18px;
}

.retro-stage > * {
  min-width: 0;
}

.retro-launch-panel,
.retro-screen-panel,
.retro-support-panel,
.retro-info-grid article {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(36, 28, 19, 0.92), rgba(13, 11, 9, 0.94)),
    var(--panel-solid);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

.retro-launch-panel {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
}

.retro-launch-panel h2,
.retro-info-grid h2 {
  margin: 0;
  font-family: Almendra, Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  line-height: 1.04;
}

.retro-launch-panel > p:not(.retro-kicker),
.retro-info-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.retro-launch-panel > p:not(.retro-kicker) {
  margin: 18px 0 0;
}

.retro-file-drop {
  display: grid;
  min-width: 0;
  gap: 6px;
  margin-top: 16px;
  border: 1px dashed rgba(242, 178, 74, 0.58);
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.retro-test-cartridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  gap: 14px;
  margin-top: 16px;
  border: 1px solid rgba(66, 216, 255, 0.28);
  padding: 14px;
  background: rgba(12, 47, 58, 0.34);
}

.retro-test-cartridge p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.retro-test-cartridge button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0 15px;
  background: rgba(15, 13, 11, 0.72);
  color: var(--text);
  font-weight: 900;
}

.retro-test-cartridge button:hover {
  border-color: rgba(66, 216, 255, 0.48);
  color: #b8efff;
}

.retro-file-drop.is-dragging {
  border-color: var(--cyan);
  background: rgba(66, 216, 255, 0.12);
}

.retro-file-title {
  color: var(--gold-soft);
  font-size: 1.05rem;
  font-weight: 900;
}

.retro-file-detail {
  color: var(--muted);
}

.retro-file-drop input {
  width: 100%;
  min-width: 0;
  margin-top: 10px;
  max-width: 100%;
}

.retro-launch-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  gap: 10px;
  margin-top: 12px;
}

.retro-launch-actions button {
  min-height: 46px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-weight: 900;
}

#launch-button {
  background: linear-gradient(180deg, #ffe0a0, var(--gold));
  color: #27190a;
  box-shadow: 0 0 32px rgba(242, 178, 74, 0.28);
}

#launch-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

#clear-button {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(15, 13, 11, 0.72);
  color: var(--text);
}

.retro-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: #cbf59c;
  line-height: 1.4;
}

.retro-status.is-error {
  color: #ffb9a9;
}

.retro-helper-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.retro-helper-actions button {
  min-height: 42px;
  border: 1px solid rgba(66, 216, 255, 0.25);
  padding: 0 14px;
  background:
    linear-gradient(135deg, rgba(66, 216, 255, 0.1), rgba(242, 178, 74, 0.08)),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-weight: 900;
}

.retro-helper-actions button:hover {
  border-color: rgba(66, 216, 255, 0.48);
  color: #b8efff;
}

.retro-helper-actions span {
  color: var(--muted);
  font-size: 0.92rem;
}

.retro-support-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.46fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px;
  margin-bottom: 18px;
}

.retro-discord-panel {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: 22px;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 1px solid rgba(242, 178, 74, 0.24);
  background:
    radial-gradient(circle at 18% 24%, rgba(66, 216, 255, 0.14), transparent 32%),
    rgba(20, 16, 11, 0.82);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

.retro-discord-panel > img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.retro-discord-panel > div {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.retro-discord-panel h2 {
  margin: 0;
  font-family: Almendra, Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.03;
}

.retro-discord-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.retro-discord-panel a {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  border: 1px solid transparent;
  padding: 0 16px;
  background: linear-gradient(180deg, #ffe0a0, var(--gold));
  color: #27190a;
  font-weight: 900;
}

.retro-discord-panel span {
  color: #b8efff;
  font-size: 0.92rem;
  font-weight: 800;
}

.retro-member-shelf {
  position: relative;
  display: grid;
  width: min(1120px, calc(100vw - 36px));
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  gap: 18px;
  border: 1px solid rgba(242, 178, 74, 0.52);
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 8%, transparent 92%, rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 20% 0, rgba(66, 216, 255, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(47, 34, 20, 0.98), rgba(14, 10, 7, 0.98));
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.035),
    inset 0 0 0 10px rgba(6, 5, 4, 0.58),
    0 34px 90px rgba(0, 0, 0, 0.68);
}

.retro-member-shelf::before {
  content: "";
  position: absolute;
  inset: 86px 18px 20px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 188px,
      rgba(255, 255, 255, 0.16) 188px 191px,
      rgba(242, 178, 74, 0.22) 191px 197px,
      rgba(0, 0, 0, 0.58) 197px 206px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 9%, transparent 91%, rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.retro-member-shelf > * {
  position: relative;
  z-index: 1;
}

.retro-shelf-close {
  z-index: 6;
  top: 18px;
  right: 18px;
}

.retro-member-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  padding-right: 54px;
}

.retro-member-heading .retro-kicker,
.retro-member-heading h2,
.retro-member-heading p {
  grid-column: 1;
}

.retro-member-heading h2 {
  margin: 0;
  font-family: Almendra, Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.retro-member-heading p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.retro-member-signin {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid transparent;
  padding: 0 16px;
  background: linear-gradient(180deg, #ffe0a0, var(--gold));
  color: #27190a;
  font-weight: 900;
  box-shadow: 0 0 32px rgba(242, 178, 74, 0.2);
}

.retro-member-signin[hidden] {
  display: none;
}

.retro-shelf-status {
  margin: 0;
  border: 1px solid rgba(66, 216, 255, 0.25);
  padding: 12px 14px;
  background: rgba(3, 20, 26, 0.58);
  color: #b8efff;
  line-height: 1.45;
}

.retro-cartridge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.06)),
    rgba(0, 0, 0, 0.28);
}

.retro-cartridge-card {
  --cart-accent: var(--gold);
  position: relative;
  display: grid;
  min-height: 174px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px 10px 6px 6px;
  padding: 23px 14px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent 20%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.42)),
    #252525;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    inset 0 -6px 0 rgba(0, 0, 0, 0.28),
    0 13px 0 rgba(0, 0, 0, 0.38),
    0 22px 32px rgba(0, 0, 0, 0.36);
}

.retro-cartridge-card::before,
.retro-cartridge-card::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.24), rgba(0, 0, 0, 0.5));
}

.retro-cartridge-card::before {
  left: 13px;
}

.retro-cartridge-card::after {
  right: 13px;
}

.retro-cartridge-card.is-linkout {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent 20%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.42)),
    #302821;
}

.retro-cartridge-ridge {
  position: absolute;
  top: 7px;
  left: 50%;
  width: min(160px, 54%);
  height: 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.15));
}

.retro-cartridge-meta,
.retro-cartridge-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.retro-cartridge-meta,
.retro-cartridge-card h3,
.retro-cartridge-card p,
.retro-cartridge-footer {
  margin-inline: 8px;
}

.retro-cartridge-meta span {
  border: 1px solid color-mix(in srgb, var(--cart-accent), white 12%);
  padding: 5px 7px;
  background: rgba(5, 5, 4, 0.48);
  color: color-mix(in srgb, var(--cart-accent), white 42%);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.retro-cartridge-card h3 {
  display: flex;
  align-items: center;
  min-height: 54px;
  border: 2px solid color-mix(in srgb, var(--cart-accent), black 14%);
  padding: 9px 11px;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--cart-accent), white 28%), transparent 24%),
    linear-gradient(135deg, color-mix(in srgb, var(--cart-accent), black 18%), #111 62%);
  color: #fff9eb;
  font-family: Almendra, Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2vw, 1.55rem);
  line-height: 1.05;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}

.retro-cartridge-card p {
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 10px;
  background: rgba(246, 238, 216, 0.08);
  color: #e9dcc8;
  font-size: 0.92rem;
  line-height: 1.34;
}

.retro-cartridge-footer {
  align-self: end;
  min-height: 45px;
  color: rgba(248, 239, 224, 0.72);
  font-size: 0.85rem;
  font-weight: 800;
}

.retro-cartridge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.retro-cartridge-actions button,
.retro-cartridge-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 0 11px;
  background: rgba(15, 13, 11, 0.72);
  color: var(--text);
  font-weight: 900;
  font-size: 0.84rem;
}

.retro-member-shelf.is-unlocked .retro-cartridge-actions button {
  border-color: rgba(242, 178, 74, 0.36);
  background: linear-gradient(180deg, rgba(255, 224, 160, 0.94), rgba(242, 178, 74, 0.94));
  color: #27190a;
}

.retro-cartridge-actions a {
  color: #b8efff;
}

.retro-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 20%, rgba(66, 216, 255, 0.16), transparent 36%),
    rgba(5, 4, 3, 0.76);
  backdrop-filter: blur(8px);
}

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

.retro-shelf-backdrop {
  place-items: center;
  overflow: auto;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 8%, rgba(242, 178, 74, 0.16), transparent 32%),
    radial-gradient(circle at 35% 16%, rgba(66, 216, 255, 0.14), transparent 28%),
    rgba(5, 4, 3, 0.82);
}

.retro-tinker-backdrop {
  z-index: 30;
  background:
    radial-gradient(circle at 50% 16%, rgba(66, 216, 255, 0.18), transparent 34%),
    radial-gradient(circle at 70% 28%, rgba(242, 178, 74, 0.14), transparent 30%),
    rgba(5, 4, 3, 0.84);
}

.retro-control-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid rgba(242, 178, 74, 0.5);
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(36, 28, 19, 0.98), rgba(13, 11, 9, 0.98)),
    var(--panel-solid);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.retro-tinker-modal {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(780px, 100%);
  max-height: min(780px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid rgba(66, 216, 255, 0.38);
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(25, 31, 30, 0.98), rgba(12, 10, 8, 0.98)),
    var(--panel-solid);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 28px 80px rgba(0, 0, 0, 0.62);
}

.retro-tinker-modal h2 {
  max-width: calc(100% - 48px);
  margin: 0;
  font-family: Almendra, Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.02;
}

.retro-tinker-modal > p:not(.retro-kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.retro-tinker-note {
  border: 1px solid rgba(242, 178, 74, 0.28);
  border-left: 4px solid var(--gold);
  padding: 12px 14px;
  background: rgba(242, 178, 74, 0.08);
  color: #eadac5;
  line-height: 1.45;
}

.retro-code-panel {
  max-height: 300px;
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(66, 216, 255, 0.34);
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(66, 216, 255, 0.08), transparent 42%),
    #050706;
  color: #c8f8ff;
  font:
    0.95rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  white-space: pre-wrap;
}

.retro-tinker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.retro-tinker-actions a,
.retro-tinker-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0 14px;
  background: rgba(15, 13, 11, 0.76);
  color: var(--text);
  font-weight: 900;
}

.retro-tinker-actions a:first-child {
  border-color: rgba(242, 178, 74, 0.38);
  background: linear-gradient(180deg, rgba(255, 224, 160, 0.96), rgba(242, 178, 74, 0.96));
  color: #27190a;
}

.retro-tinker-actions a:nth-child(2) {
  color: #b8efff;
}

.retro-control-modal h2 {
  margin: 0;
  font-family: Almendra, Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.02;
}

.retro-control-modal > p:not(.retro-kicker) {
  margin: 12px 42px 20px 0;
  color: var(--muted);
  line-height: 1.52;
}

.retro-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 5, 4, 0.7);
  color: var(--gold-soft);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.retro-modal-close:hover {
  border-color: rgba(242, 178, 74, 0.5);
  color: var(--text);
}

.retro-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.retro-control-row {
  display: grid;
  gap: 5px;
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 10px 12px;
  background: rgba(9, 8, 6, 0.38);
}

.retro-control-row span {
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.retro-control-row strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.25;
}

.retro-control-row kbd {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom-color: rgba(255, 255, 255, 0.34);
  padding: 3px 8px;
  background: rgba(5, 5, 4, 0.78);
  color: #b8efff;
  font: inherit;
  font-weight: 900;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.08);
}

.retro-modal-primary {
  min-height: 46px;
  margin-top: 18px;
  border: 1px solid transparent;
  padding: 0 18px;
  background: linear-gradient(180deg, #ffe0a0, var(--gold));
  color: #27190a;
  font-weight: 900;
  box-shadow: 0 0 32px rgba(242, 178, 74, 0.28);
}

.retro-legal {
  border-left: 3px solid var(--gold);
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  line-height: 1.48;
}

.retro-legal strong {
  color: var(--gold-soft);
}

.retro-legal a {
  color: #b8efff;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.retro-screen-panel {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-rows: auto auto auto;
  align-content: start;
  min-width: 0;
  overflow: hidden;
}

.retro-screen-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid rgba(242, 178, 74, 0.2);
  padding: 0 16px;
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.retro-screen {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 20%, rgba(66, 216, 255, 0.16), transparent 42%),
    #050504;
}

.retro-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.retro-screen-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(242, 178, 74, 0.2);
  padding: 14px 16px;
  background:
    linear-gradient(90deg, rgba(66, 216, 255, 0.08), transparent 48%),
    rgba(9, 8, 6, 0.34);
}

.retro-screen-actions button {
  min-height: 42px;
  border: 1px solid rgba(242, 178, 74, 0.42);
  padding: 0 16px;
  background:
    linear-gradient(180deg, rgba(255, 224, 160, 0.96), rgba(242, 178, 74, 0.96));
  color: #27190a;
  font-weight: 900;
  box-shadow: 0 0 26px rgba(242, 178, 74, 0.18);
}

.retro-screen-actions button:hover {
  filter: brightness(1.06);
}

.retro-screen-actions span {
  color: var(--muted);
  font-size: 0.92rem;
}

.retro-screen-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.retro-screen-empty span {
  font-family: Almendra, Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 700;
}

.retro-screen-empty p {
  max-width: 380px;
  color: var(--muted);
}

.retro-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding-bottom: 58px;
}

.retro-info-grid article {
  padding: 22px;
}

.retro-info-grid h2 {
  font-size: 1.65rem;
}

.retro-comments-panel {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.08fr);
  gap: 20px;
  align-items: stretch;
  margin: -28px auto 44px;
  border: 1px solid rgba(242, 178, 74, 0.3);
  padding: 18px;
  background:
    radial-gradient(circle at 82% 18%, rgba(66, 216, 255, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(33, 25, 17, 0.92), rgba(10, 9, 7, 0.94));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

.retro-comments-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 12px;
}

.retro-comments-copy h2 {
  margin: 0;
  font-family: Almendra, Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.03;
}

.retro-comments-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.retro-comments-copy a {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  margin-top: 4px;
  border: 1px solid transparent;
  padding: 0 16px;
  background: linear-gradient(180deg, #ffe0a0, var(--gold));
  color: #27190a;
  font-weight: 900;
}

.retro-comments-copy span {
  color: #b8efff;
  font-size: 0.92rem;
  font-weight: 800;
}

.retro-comments-widget {
  display: grid;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(66, 216, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(7, 24, 31, 0.58), rgba(8, 7, 6, 0.9)),
    #070605;
}

.retro-comments-widget iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.retro-widget-placeholder {
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
}

.retro-widget-placeholder strong {
  font-family: Almendra, Georgia, "Times New Roman", serif;
  color: var(--text);
  font-size: 2rem;
  line-height: 1.05;
}

.retro-widget-placeholder p {
  max-width: 460px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.55;
}

.retro-footer {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  padding: 0 0 36px;
  color: rgba(248, 239, 224, 0.74);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.retro-footer img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

@media (max-width: 940px) {
  .retro-stage,
  .retro-support-panel,
  .retro-discord-panel,
  .retro-comments-panel,
  .retro-info-grid {
    grid-template-columns: 1fr;
  }

  .retro-discord-panel > img {
    min-height: 210px;
  }

  .retro-comments-panel {
    margin-top: -28px;
  }

  .retro-member-heading {
    grid-template-columns: 1fr;
  }

  .retro-member-heading .retro-kicker,
  .retro-member-heading h2,
  .retro-member-heading p,
  .retro-member-signin {
    grid-column: 1;
  }

  .retro-member-signin {
    grid-row: auto;
    justify-self: start;
  }

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

  .retro-hero {
    min-height: 690px;
  }

  .retro-hero-copy {
    padding-top: 92px;
  }
}

@media (max-width: 640px) {
  .retro-topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .retro-nav {
    width: 100%;
  }

  .retro-language-toggle {
    justify-self: start;
  }

  .retro-nav a,
  .retro-nav button {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .retro-hero {
    min-height: 620px;
  }

  .retro-launch-actions {
    grid-template-columns: 1fr;
  }

  .retro-test-cartridge {
    grid-template-columns: 1fr;
  }

  .retro-control-grid {
    grid-template-columns: 1fr;
  }

  .retro-cartridge-grid {
    grid-template-columns: 1fr;
  }

  .retro-launch-actions button {
    width: 100%;
  }

  .retro-test-cartridge button {
    width: 100%;
  }

  .retro-footer {
    flex-direction: column;
    text-align: center;
  }
}
