/* Public web store — launcher chrome + MiniStudios theme.
   Steam contributes CONTENT TYPES only. No Steam blue, no Inter. */

.ms-web {
  --ms-bg: #0a0b0d;
  --ms-cap: #111316;
  --ms-elev: #171a1f;
  --ms-panel: #1b1f26;
  --ms-line: #2a3038;
  --ms-fg: #e8eaed;
  --ms-mute: #8b929e;
  --ms-subtle: #5c6570;
  --ms-ice: #7fdbff;
  --ms-gold: #c9a227;
  --ms-gold-hot: #f5d76e;
  --ms-red: #9e1b14;
  --ms-ok: #4a8f5c;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--ms-bg);
  color: var(--ms-fg);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.ms-web .ms-shell {
  grid-template-rows: 32px 48px 36px 1fr 28px;
}

.ms-web img.ms-mark,
.ms-web .ms-tile img {
  background: #000;
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
  color-scheme: only light;
  forced-color-adjust: none;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}

.ms-web-stage {
  grid-row: 4;
  min-height: 0;
  overflow: auto;
  background: var(--ms-bg);
}

.ms-web-browse {
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 10px;
  background: #0e1014;
  border-bottom: 1px solid var(--ms-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.ms-web-browse::-webkit-scrollbar { display: none; }
.ms-web-browse button {
  border: 0;
  background: transparent;
  color: var(--ms-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0 10px;
  height: 36px;
  white-space: nowrap;
}
.ms-web-browse button:hover { color: var(--ms-fg); }
.ms-web-browse button.on { color: var(--ms-ice); }

.ms-web-top {
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: var(--ms-cap);
  border-bottom: 1px solid var(--ms-line);
}
.ms-web-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ms-web-tabs::-webkit-scrollbar { display: none; }
.ms-web-tabs button,
.ms-web-tabs a {
  border: 0;
  background: transparent;
  color: var(--ms-mute);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 14px;
  height: 48px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.ms-web-tabs button:hover, .ms-web-tabs a:hover { color: var(--ms-fg); }
.ms-web-tabs button.on, .ms-web-tabs a.on {
  color: var(--ms-fg);
  border-bottom-color: var(--ms-gold);
}
.ms-web-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  min-width: 180px;
  max-width: 280px;
  flex: 0 1 240px;
  padding: 0 10px;
  background: var(--ms-panel);
  border: 1px solid var(--ms-line);
  border-radius: 4px;
}
.ms-web-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ms-fg);
  font-size: 12px;
  outline: none;
}
.ms-web-search.help {
  border-color: #c47a2a;
  box-shadow: 0 0 0 1px rgba(196, 122, 42, 0.35);
}
.ms-web-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--ms-line);
  background: var(--ms-panel);
  color: var(--ms-fg);
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}
.ms-web-cart b { color: var(--ms-gold); }

.ms-web-foot {
  grid-row: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  background: #111316;
  border-top: 1px solid var(--ms-line);
  color: var(--ms-subtle);
  font-size: 11px;
}
.ms-web-ticker { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ms-web-ticker.warn { color: #e8a020; }

.ms-stub {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 5px;
  border: 1px solid #3a3220;
  background: #241c10;
  color: var(--ms-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: middle;
}

.ms-shelf {
  padding: 18px 16px 8px;
}
.ms-shelf-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ms-shelf-h h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ms-fg);
}
.ms-shelf-h p {
  margin: 0;
  color: var(--ms-subtle);
  font-size: 11px;
}
.ms-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.ms-card {
  background: var(--ms-elev);
  border: 1px solid var(--ms-line);
  min-height: 118px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  color: inherit;
}
.ms-card:hover { border-color: #3d4652; }
.ms-card .k {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ms-gold);
}
.ms-card h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.ms-card p {
  margin: 0;
  font-size: 11px;
  color: var(--ms-mute);
  line-height: 1.4;
  flex: 1;
}
.ms-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ms-subtle);
  font-variant-numeric: tabular-nums;
}
.ms-card .meta b { color: var(--ms-gold-hot); font-weight: 600; }

.ms-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 10px;
  padding: 14px 16px 4px;
}
@media (max-width: 860px) {
  .ms-hero { grid-template-columns: 1fr; }
}
.ms-hero-main {
  position: relative;
  min-height: 280px;
  background: #000 center/cover no-repeat;
  border: 1px solid var(--ms-line);
  overflow: hidden;
}
.ms-hero-main .veil {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 16px 14px;
  background: linear-gradient(transparent, rgba(10, 11, 13, 0.92) 55%);
}
.ms-hero-main h1 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ms-hero-side {
  display: grid;
  gap: 8px;
}
.ms-hero-side button {
  border: 1px solid var(--ms-line);
  background: var(--ms-elev);
  color: inherit;
  text-align: left;
  padding: 10px;
}
.ms-hero-side button.on { border-color: var(--ms-gold); }
.ms-hero-side .k { font-size: 10px; color: var(--ms-gold); letter-spacing: 0.1em; text-transform: uppercase; }
.ms-hero-side h3 { margin: 2px 0 0; font-size: 13px; }

.ms-chart {
  display: grid;
  gap: 4px;
}
.ms-chart button {
  display: grid;
  grid-template-columns: 24px 36px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  background: var(--ms-elev);
  color: inherit;
  padding: 6px 8px;
  text-align: left;
}
.ms-chart button:hover { border-color: var(--ms-line); }
.ms-chart .n { color: var(--ms-subtle); font-variant-numeric: tabular-nums; font-size: 12px; }
.ms-chart img { width: 36px; height: 36px; object-fit: cover; background: #000; }
.ms-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 800px) {
  .ms-split { grid-template-columns: 1fr; }
}

.ms-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ms-tags button {
  border: 1px solid var(--ms-line);
  background: var(--ms-panel);
  color: var(--ms-mute);
  font-size: 11px;
  padding: 6px 10px;
  min-height: 32px;
}
.ms-tags button:hover { color: var(--ms-fg); border-color: #3d4652; }

.ms-queue {
  border: 1px solid var(--ms-line);
  background: var(--ms-elev);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ms-queue h2 { margin: 0 0 4px; font-size: 16px; }
.ms-queue p { margin: 0; color: var(--ms-mute); font-size: 12px; max-width: 48ch; }

.ms-news {
  display: grid;
  gap: 8px;
}
.ms-news article {
  border: 1px solid var(--ms-line);
  background: var(--ms-elev);
  padding: 12px 14px;
}
.ms-news h3 { margin: 0 0 4px; font-size: 14px; }
.ms-news p { margin: 0; color: var(--ms-mute); font-size: 12px; }

.ms-legal-page {
  max-width: 720px;
  padding: 28px 20px 64px;
}
.ms-legal-page h1 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.ms-legal-page .lead { color: var(--ms-fg); font-size: 15px; max-width: 46ch; }
.ms-legal-page p, .ms-legal-page li { color: var(--ms-mute); font-size: 13px; line-height: 1.55; }
.ms-legal-page .k {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ms-gold);
}

.ms-lib-list button {
  display: grid;
  grid-template-columns: 8px 36px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #1c2128;
  background: transparent;
  color: inherit;
  padding: 8px 12px;
  text-align: left;
}
.ms-lib-list button:hover { background: #14181e; }
.ms-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.ms-dot.gold { background: var(--ms-gold); box-shadow: 0 0 8px rgba(201, 162, 39, 0.7); }
.ms-dot.red { background: #ef4444; }
.ms-dot.off { background: transparent; }

.ms-cap-wallet {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border: 1px solid var(--ms-line);
  background: var(--ms-panel);
  color: var(--ms-gold-hot);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ms-web-foot a {
  color: var(--ms-mute);
  text-decoration: none;
}
.ms-web-foot a:hover { color: var(--ms-gold); }
.ms-shell { display: grid; height: 100%; min-height: 0; background: #0a0b0d; color: #e8eaed; font-family: "Segoe UI", system-ui, sans-serif; }
.ms-shell-outer { height: 100dvh; overflow: hidden; background: #0a0b0d; }
.ms-caption { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 10px; background: #111316; border-bottom: 1px solid #2a3038; font-size: 11px; color: #8b929e; min-height: 32px; user-select: none; }
.ms-caption-left { display: flex; align-items: center; gap: 8px; }
.ms-caption-mark { width: 14px; height: 14px; background: #000; border: 1px solid #2a3038; border-radius: 2px; }
.ms-caption-right { display: flex; align-items: center; gap: 1px; }
.ms-re { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid #2a3038; border-radius: 4px; background: #1b1f26; color: #e8eaed; font-size: 11px; font-weight: 600; }
.ms-winbtn { width: 36px; height: 26px; border: 0; background: transparent; color: #8b929e; }
.ms-winbtn:hover { background: #1b1f26; color: #e8eaed; }
.ms-site-solid, .ms-site-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; font-size: 12px; font-weight: 600; text-decoration: none; border-radius: 2px; }
.ms-site-solid { background: #c9a227; color: #1a1408; border: 1px solid #c9a227; }
.ms-site-ghost { background: transparent; color: #e8eaed; border: 1px solid #2a3038; }
html, body { margin: 0; height: 100%; background: #0a0b0d; }
.panel[hidden] { display: none !important; }

.ms-land {
  max-width: 920px;
  padding: 24px 20px 72px;
  margin: 0 auto;
}
.ms-land .k {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ms-gold);
  margin: 0 0 8px;
}
.ms-land-hero {
  max-width: 42rem;
  margin: 0 0 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ms-line, #2a3038);
}
.ms-land-hero .lead { margin-bottom: 14px; }
.ms-land h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  max-width: 18ch;
}
.ms-land h2 {
  margin: 36px 0 8px;
  font-size: 1.2rem;
  font-weight: 600;
  text-wrap: balance;
}
.ms-land .lead {
  font-size: 1.05rem;
  color: var(--ms-fg);
  max-width: 40rem;
  line-height: 1.5;
  margin: 0 0 16px;
  text-wrap: pretty;
}
.ms-land p, .ms-land li {
  color: var(--ms-mute);
  font-size: 14px;
  line-height: 1.55;
  max-width: 42rem;
  text-wrap: pretty;
}
.ms-land p strong, .ms-land p em { color: var(--ms-fg); }
.ms-land .ms-split { margin: 18px 0 6px; }
.ms-thesis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0 8px;
}
@media (min-width: 760px) {
  .ms-thesis { grid-template-columns: repeat(3, 1fr); }
}
.ms-thesis .ms-card p { max-width: none; }
.ms-land-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.ms-land ul { padding-left: 1.15rem; margin: 8px 0 0; }
.ms-land li + li { margin-top: 4px; }

.ms-flows {
  display: grid;
  gap: 18px;
  margin: 22px 0 8px;
}
.ms-flows figure,
.ms-flow-fig {
  margin: 16px 0;
}
.ms-flows img,
.ms-flow-fig img {
  width: 100%;
  height: auto;
  display: block;
  background: #0a0b0d;
  outline: 1px solid #2a3038;
  outline-offset: -1px;
}
.ms-flows figcaption {
  margin-top: 10px;
  max-width: 42rem;
  color: var(--ms-mute);
  font-size: 13px;
  line-height: 1.5;
}
.ms-flows figcaption .k {
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 700px) {
  .ms-land { padding: 18px 14px 56px; }
  .ms-land-hero {
  max-width: 42rem;
  margin: 0 0 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ms-line, #2a3038);
}
.ms-land-hero .lead { margin-bottom: 14px; }
.ms-land h1 { max-width: none; }
}

.ms-segues { margin-top: 36px; }
.ms-house-games {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0 8px;
}
@media (min-width: 720px) {
  .ms-house-games { grid-template-columns: 1fr 1fr; }
}
.ms-house-card {
  display: block;
  text-align: left;
  width: 100%;
  border: 1px solid var(--ms-line, #2a3038);
  background: #111316;
  color: inherit;
  padding: 14px 14px 12px;
  min-height: 44px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}
.ms-house-card:hover { border-color: #3d4652; }
.ms-house-card h3 { margin: 4px 0 6px; font-size: 1.05rem; color: var(--ms-fg, #ebe6d8); }
.ms-house-card p { margin: 0; max-width: none; }
.ms-text-link {
  background: none;
  border: 0;
  color: var(--ms-gold, #c9a227);
  padding: 0;
  min-height: 44px;
  font: inherit;
  cursor: pointer;
}
.ms-dl-hero {
  margin: 36px 0 12px;
  padding: 22px 18px;
  border: 1px solid #3a3220;
  background: #14110c;
}
.ms-dl-hero h2 { margin: 6px 0 8px; }
.ms-dl-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 14px;
  min-height: 56px;
  padding: 12px 22px;
  background: #c9a227;
  color: #1a1408;
  border: 1px solid #c9a227;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.ms-dl-btn span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.75;
}
.ms-founder { margin: 10px 0 16px; }
.ms-founder strong { color: var(--ms-fg, #ebe6d8); }


.ms-own-k {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ms-gold, #c9a227);
  margin: 0 0 10px;
  text-align: left;
}
.ms-own-banner {
  position: relative;
  overflow: hidden;
  min-height: clamp(228px, 36vw, 318px);
  margin: 0 0 22px;
  border: 1px solid #3a3220;
  background: #08090b;
}
.ms-own-cycle {
  position: absolute;
  inset: 0;
}
.ms-own-cycle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: ms-own-cycle 88s ease-in-out infinite;
}
.ms-own-cycle img:nth-child(1) { animation-delay: 0s; }
.ms-own-cycle img:nth-child(2) { animation-delay: 17.6s; }
.ms-own-cycle img:nth-child(3) { animation-delay: 35.2s; }
.ms-own-cycle img:nth-child(4) { animation-delay: 52.8s; }
.ms-own-cycle img:nth-child(5) { animation-delay: 70.4s; }
.ms-own-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,9,11,.20) 0%, rgba(8,9,11,.08) 48%, rgba(8,9,11,.16) 100%),
              linear-gradient(180deg, rgba(8,9,11,.03), rgba(8,9,11,.12));
  pointer-events: none;
}
.ms-own-banner figcaption {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(228px, 36vw, 318px);
  padding: 20px 20px 18px;
  max-width: 44rem;
}
.ms-own-banner h1 {
  max-width: 14ch;
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  text-shadow: 0 2px 16px rgba(0,0,0,.7);
}
.ms-own-hook {
  margin: 0 0 18px;
  color: #c9a227 !important;
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.02em;
  font-weight: 600;
  max-width: 32rem !important;
  text-shadow: 0 1px 12px rgba(0,0,0,.7);
}
.ms-own-points {
  list-style: none;
  padding: 0;
  margin: 4px 0 20px;
  display: grid;
  gap: 10px;
  max-width: 42rem;
}
.ms-own-points li {
  margin: 0;
  padding: 8px 0 8px 14px;
  border-left: 2px solid #c9a227;
  color: var(--ms-mute, #8b929e);
  font-size: 15px;
  line-height: 1.45;
  max-width: none;
}
.ms-own-points strong { color: var(--ms-fg, #ebe6d8); }
.ms-own-rule {
  font-size: clamp(1.28rem, 2.4vw, 1.55rem);
  line-height: 1.5;
  color: var(--ms-fg, #ebe6d8);
  max-width: 46rem;
  margin: 0 0 16px;
}
.ms-read-more {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  background: #2f6fbf;
  color: #f4f8ff;
  border: 1px solid #3d82d6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.ms-read-more:hover { background: #3a7fd0; }
@keyframes ms-own-cycle {
  0% { opacity: 0; }
  4% { opacity: 1; }
  16% { opacity: 1; }
  20% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-own-cycle img { animation: none; opacity: 1; }
  .ms-own-cycle img + img { display: none; }
}

.ms-stagger { margin: 28px 0 8px; }
.ms-stagger-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  align-items: start;
}
.ms-stagger-row.store { margin-bottom: -48px; }
.ms-stagger-row.market { padding-top: 72px; }
.ms-stagger-gif video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  border: 1px solid #2a3038;
  background: #08090b;
}
.ms-stagger-row.store .ms-stagger-gif { transform: translateY(36px); z-index: 1; }
.ms-stagger-copy h2 { margin: 6px 0 8px; }
.ms-stagger-copy ol {
  list-style: none;
  padding: 0;
  margin: 14px 0 16px;
}
.ms-stagger-copy li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 8px;
  margin: 0 0 10px;
  max-width: none;
}
.ms-stagger-copy li span {
  color: #c9a227;
  font-weight: 700;
  font-size: 13px;
}
.ms-stagger-copy li strong { display: block; color: var(--ms-fg, #ebe6d8); }
.ms-view-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  background: #9eb6c8;
  color: #101418;
  border: 1px solid #b7c9d6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.ms-view-link:hover { background: #b0c4d4; }
.ms-dl-after { margin-top: 36px; }
@media (max-width: 720px) {
  .ms-stagger-row, .ms-stagger-row.market { grid-template-columns: 1fr; padding-top: 0; margin-bottom: 24px; }
  .ms-stagger-row.store { margin-bottom: 24px; }
  .ms-stagger-row.store .ms-stagger-gif { transform: none; }
  .ms-stagger-row.market .ms-stagger-gif { order: -1; }
}

.ms-excerpts { margin: 28px 0 8px; display: grid; gap: 22px; }
.ms-excerpts section h2 { margin-top: 0; }
.ms-excerpt-line {
  color: var(--ms-fg, #ebe6d8) !important;
  font-size: 1.05rem !important;
  margin-top: 6px !important;
}
