/* MCD Games. One stylesheet for the whole site: the launcher home page and the calm
   reading pages (contact, privacy, terms). A neutral dark stage; on the home page the
   key art does the work, on a reading page the type does. Everything per game (art
   framing, logo type) is an inline style written by launcher.js; the frame lives here. */

:root {
  --stage: #0e0f11;          /* page background */
  --stage-2: #15161a;        /* a raised surface: the About band */
  --line: #1d1f22;           /* hairlines */
  --text: #f2f2f0;           /* headings, high-emphasis */
  --text-2: #e6e6e4;         /* body copy */
  --text-3: #9b9ea4;         /* secondary, captions, footer */
  --text-4: #6f7278;         /* the quietest label */
  --key: #f2f2f0;            /* the one primary key: the Play pill */
  --on-key: #0e0f11;
  --gutter: clamp(20px, 4.5vw, 72px);
  --sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--stage); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
a { color: var(--text); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
img { display: block; }

/* ---- header: the wordmark, and a short nav ---- */
.lh {
  z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(var(--top) + clamp(12px, 2vw, 28px)) var(--gutter) 0;
}
.lh .wordmark {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--text);
  font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.01em;
}
.lh .wordmark b { font-weight: 700; } .lh .wordmark span { font-weight: 400; color: #d9dadc; }
.lh nav { display: flex; gap: 4px; }
.lh nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: #c9cbcf; font-size: 15px; font-weight: 500; }
.lh nav a:hover, .lh nav a[aria-current="page"] { color: var(--text); }
.lh nav a:hover { background: rgba(255, 255, 255, .08); }
/* on the home page the header floats over the hero */
.home .lh { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
.home .lh a { pointer-events: auto; }
.home .lh nav a { text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
/* on a reading page it sits on a hairline */
.page .lh { padding-bottom: clamp(12px, 2vw, 20px); border-bottom: 1px solid var(--line); }

/* ---- the launcher hero: one full-bleed slide at a time, cross-faded ---- */
#launcher { display: block; }
.hero { position: relative; height: clamp(480px, 80vh, 900px); overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; background: var(--stage); }
.slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity 1s ease; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide .shade { position: absolute; inset: 0; }
.hcontent {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(clamp(40px, 6vh, 64px) + clamp(28px, 5vh, 56px));
  max-width: 780px; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(12px, 1.6vw, 20px);
  transform: translateY(16px); transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}
.slide.on .hcontent { transform: none; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #dcdddf; }
.hcontent h2 span, .tlogo span { display: block; }
.pitch { margin: 0; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.4; color: var(--text-2); max-width: 34ch; text-wrap: pretty; }
.play {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 32px 0 26px; border-radius: 999px;
  background: var(--key); color: var(--on-key); font-size: 18px; font-weight: 600; transition: transform .2s, background .2s;
}
.play:hover { background: #fff; color: var(--on-key); transform: scale(1.03); }
.play .tri { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid var(--on-key); }
/* the App Store action is Apple's badge, at the same height as the Play pill */
.store { margin-top: 6px; display: inline-flex; align-items: center; min-height: 56px; border-radius: 10px; transition: transform .2s; }
.store img { height: 56px; width: auto; }
.store:hover { transform: scale(1.03); }
.dots { position: absolute; right: clamp(12px, 4vw, 64px); bottom: calc(clamp(40px, 6vh, 64px) + clamp(28px, 5vh, 56px) + 6px); display: flex; z-index: 4; }
.dot { min-width: 44px; height: 44px; padding: 0 4px; display: flex; align-items: center; justify-content: center; }
.dot .bar { position: relative; display: block; height: 6px; width: 8px; border-radius: 3px; background: rgba(255, 255, 255, .32); overflow: hidden; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.dot.on .bar { width: 36px; }
.dot .fill { position: absolute; inset: 0; background: var(--key); transform-origin: left center; animation: mcdfill 8s linear forwards; }
.hero.paused .fill { animation-play-state: paused; }
@keyframes mcdfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- shelves: horizontal, snapping, arrows only where they overflow on a pointer device ---- */
.shelf { position: relative; z-index: 3; padding-top: clamp(6px, 1.2vw, 16px); }
.shelf.first { margin-top: calc(-1 * clamp(40px, 6vh, 64px)); }
.shead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); min-height: 44px; }
.stitle { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.stitle h3 { margin: 0; font-size: clamp(20px, 1.8vw, 28px); font-weight: 600; letter-spacing: -.01em; }
.stitle span { font-size: 15px; color: var(--text-3); }
.sctl { display: flex; gap: 8px; align-items: center; flex: none; }
.clear { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); color: #d4d5d8; font-size: 14px; font-weight: 600; }
.arrow { display: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); align-items: center; justify-content: center; }
.shelf.scrollable .arrow { display: flex; }
.clear:hover, .arrow:hover { background: rgba(255, 255, 255, .08); }
.arrow span { width: 9px; height: 9px; }
.arrow.prev span { border-left: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: translateX(2px) rotate(45deg); }
.arrow.next span { border-right: 2px solid var(--text-2); border-top: 2px solid var(--text-2); transform: translateX(-2px) rotate(45deg); }
.row {
  display: flex; gap: clamp(12px, 1.6vw, 24px); overflow-x: auto; overflow-y: hidden; padding: 18px var(--gutter) 34px;
  scroll-padding-inline: var(--gutter); scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.row::-webkit-scrollbar { display: none; }

/* ---- cards: landscape key-art tiles; hover or focus lifts one and reveals its line and tags ---- */
.card { flex: 0 0 auto; scroll-snap-align: start; display: block; position: relative; z-index: 1; color: var(--text); outline: none; }
.card.sm { width: clamp(232px, 25vw, 360px); } .card.md { width: clamp(264px, 31vw, 460px); } .card.lg { width: clamp(296px, 42vw, 600px); }
.card:is(:hover, :focus) { z-index: 2; }
.tile {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; container-type: inline-size; isolation: isolate;
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .7); transition: transform .38s cubic-bezier(.2, .8, .2, 1), box-shadow .38s;
}
.card:is(:hover, :focus) .tile { transform: translateY(-6px) scale(1.06); box-shadow: 0 0 0 3px var(--key), 0 28px 56px -16px rgba(0, 0, 0, .85); }
.ring { position: absolute; left: 74%; top: 70%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.r1 { width: 22%; border: 1.5px solid rgba(114, 227, 156, .55); } .r2 { width: 44%; border: 1.5px solid rgba(114, 227, 156, .3); } .r3 { width: 70%; border: 1.5px solid rgba(114, 227, 156, .14); }
.vig { position: absolute; inset: 0; background: radial-gradient(ellipse 100% 100% at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .42) 100%); }
.lowshade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 9, 10, .72) 0%, rgba(8, 9, 10, 0) 50%); }
.hovshade { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; background: linear-gradient(to top, rgba(8, 9, 10, .94) 0%, rgba(8, 9, 10, .6) 45%, rgba(8, 9, 10, 0) 88%); }
.card:is(:hover, :focus) .hovshade { opacity: 1; }
.tfoot { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 5.5cqw 5cqw; display: flex; flex-direction: column; gap: 1.8cqw; }
.reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .38s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.card:is(:hover, :focus) .reveal { grid-template-rows: 1fr; opacity: 1; }
.reveal > div { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.reveal p { margin: 0; font-size: max(13px, 3.9cqw); line-height: 1.35; color: var(--text); text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
/* an App Store tile wears the badge in its top corner, so the action reads before the hover */
.tile .badge { position: absolute; top: 5cqw; right: 5cqw; height: max(28px, 9cqw); width: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .4)); }
/* on touch there is no hover, so the name and tags sit under the tile instead */
.caption { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.caption .ct { font-size: 15px; font-weight: 600; color: var(--text); }
.caption .cs { font-size: 14px; line-height: 1.45; color: #a3a6ab; text-wrap: pretty; }

/* ---- the About band, before the footer ---- */
.about { margin: clamp(16px, 3vw, 40px) var(--gutter) 0; padding: clamp(28px, 4vw, 48px) clamp(24px, 3.5vw, 48px); border-radius: 18px; background: var(--stage-2); }
.about h2 { margin: 0 0 12px; font-size: clamp(20px, 1.8vw, 28px); font-weight: 600; letter-spacing: -.01em; }
.about p { margin: 0; max-width: 62ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.about p + p { margin-top: 10px; }
.about a { border-bottom: 1px solid rgba(242, 242, 240, .35); }
.about a:hover { border-bottom-color: var(--text); }

/* ---- footer ---- */
.lf {
  margin-top: clamp(16px, 3vw, 40px); padding: 28px var(--gutter) calc(36px + var(--bottom)); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; justify-content: space-between; color: var(--text-3); font-size: 14px;
}
.lf > div { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.lf > nav { display: flex; gap: 4px 20px; align-items: center; flex-wrap: wrap; }
.lf b { color: var(--text-2); font-weight: 600; }
.lf a { display: inline-flex; align-items: center; min-height: 44px; color: #c9cbcf; }
.lf a:hover { color: var(--text); }
.page .lf { margin-top: auto; }

/* ---- reading pages: contact, privacy, terms ---- */
.page main { flex: 1; width: 100%; max-width: 72ch; margin: 0 auto; padding: clamp(40px, 7vh, 88px) var(--gutter) clamp(48px, 8vh, 96px); }
.page-header { margin-bottom: clamp(28px, 4vh, 44px); }
.page-header h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
.last-updated { margin: 14px 0 0; font-size: 15px; color: var(--text-3); }
.policy-content { font-size: clamp(16px, 1.1vw, 18px); line-height: 1.65; color: var(--text-2); }
.policy-content h2 { margin: clamp(36px, 5vh, 52px) 0 12px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: var(--text); }
.policy-content h2:first-child { margin-top: 0; }
.policy-content h3 { margin: 28px 0 10px; font-size: 1.125em; font-weight: 600; color: var(--text); }
.policy-content p { margin: 0 0 16px; text-wrap: pretty; }
.policy-content ul { margin: 0 0 16px; padding-left: 22px; }
.policy-content li { margin-bottom: 8px; }
.policy-content li::marker { color: var(--text-4); }
.policy-content strong { color: var(--text); font-weight: 600; }
.policy-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .08); color: var(--text); }
.policy-content a, .contact-value a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(242, 242, 240, .35); text-underline-offset: 3px; }
.policy-content a:hover, .contact-value a:hover { text-decoration-color: var(--text); }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; flex-direction: column; gap: 6px; }
.contact-label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.contact-value { font-size: clamp(20px, 2vw, 26px); font-weight: 500; color: var(--text); }

@media (max-width: 600px) {
  .lh nav a { padding: 0 10px; font-size: 14px; }
  .lf { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .card:is(:hover, :focus) .tile { transform: none; }
  .dot.on .bar { background: var(--key); }
  .play:hover, .store:hover { transform: none; }
}
