/* =====================================================================
   Soggy Socks — soggysocks.dev
   Type: the studio's pixel faces. Keep font sizes on multiples of 8px
   (16 / 24 / 32 / 40 / 48 / 64 / 80 ...) and line heights on multiples
   of the pixel size so every glyph lands on whole pixels.
   ===================================================================== */

@font-face { font-family: "Drop Shop Pixel"; src: url("../fonts/DropShopPixel-Regular.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Drop Shop Pixel Outline"; src: url("../fonts/DropShopPixelOutline-Regular.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Drop Shop Tiny"; src: url("../fonts/DropShopTiny-Regular.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Drop Shop Tiny Outline"; src: url("../fonts/DropShopTinyOutline-Regular.woff2") format("woff2"); font-display: block; }

:root {
  --paper: #f2f0ea;
  --paper-2: #e8e5dd;
  --ink: #121212;
  --ink-2: #2a2a2a;
  --muted: #67645c;
  --rule: #d5d1c7;
  --accent: #2b50e0;

  --px: "Drop Shop Pixel", ui-monospace, "Courier New", monospace;
  --px-outline: "Drop Shop Pixel Outline", ui-monospace, monospace;
  --tiny: "Drop Shop Tiny", "Drop Shop Pixel", ui-monospace, monospace;
  --tiny-outline: "Drop Shop Tiny Outline", ui-monospace, monospace;

  --wrap: 1280px;
  --gutter: 64px;

  /* per-game theme (overridden on a game's page or card) */
  --g-bg: #68386c;
  --g-ink: #181425;
  --g-text: #ffffff;
  --g-soft: #ead4aa;
  --g-hi: #fee761;
  --g-cta: #feae34;
  --g-cta-ink: #181425;
  --g-alt: #2ce8f5;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/24px var(--px);
  -webkit-font-smoothing: none;
  font-smooth: never;
  text-rendering: optimizeSpeed;
}
img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
p { margin: 0 0 16px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol, dl, dd { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.pix { image-rendering: crisp-edges; image-rendering: pixelated; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 20; padding: 8px 12px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 16px; }

/* labels: the tiny face, always caps */
.label, .tiny {
  font-family: var(--tiny);
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
  letter-spacing: 0;
}
.muted { color: var(--muted); }

/* outlined type: an Outline-face copy sits under the regular face */
.ol { position: relative; display: inline-block; isolation: isolate; }
.ol::before {
  content: attr(data-text);
  position: absolute; inset: 0; z-index: -1;
  font-family: var(--px-outline);
  color: var(--ol, var(--ink));
  white-space: inherit;
}
.label.ol::before, .tiny.ol::before { font-family: var(--tiny-outline); }

/* ---------------------------------------------------------------- buttons */
.btn {
  --b: var(--ink);
  --f: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--b);
  color: var(--f);
  border: 2px solid var(--ink);
  font-family: var(--tiny);
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .08s steps(2), box-shadow .08s steps(2);
}
.btn:hover { color: var(--f); transform: translate(-4px, -4px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn--ghost { --b: transparent; --f: var(--ink); }
.btn--game { --b: var(--g-cta); --f: var(--g-cta-ink); border-color: var(--g-ink); }
.btn--game:hover { box-shadow: 4px 4px 0 var(--g-ink); }
.btn--light { --b: var(--paper); --f: var(--ink); }
.arrow-link { font-family: var(--tiny); font-size: 16px; line-height: 24px; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.arrow-link:hover { border-bottom-color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------------------------------------------------------------- header */
.top { border-bottom: 2px solid var(--ink); background: var(--paper); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.mark { font-family: var(--px); font-size: 24px; line-height: 32px; text-transform: uppercase; text-decoration: none; }
.mark:hover { color: var(--ink); }
.nav ul { list-style: none; display: flex; gap: 32px; }
.nav a { display: inline-block; padding: 12px 0; font-family: var(--tiny); font-size: 16px; line-height: 24px; text-transform: uppercase; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { text-decoration: underline; }

/* ---------------------------------------------------------------- home hero */
.hero { padding: 72px 0 0; }
.giant {
  display: block;
  font-family: var(--px);
  font-size: 136px;
  line-height: 136px;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0 0 40px -6px;
}
.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: end;
  padding: 32px 0 56px;
  border-top: 2px solid var(--ink);
}
.hero__row p { margin: 0; font-size: 24px; line-height: 32px; max-width: 28em; }
.now {
  justify-self: end;
  display: grid;
  gap: 8px;
  text-align: right;
  text-decoration: none;
}
.now .tiny { color: var(--muted); }
.now strong { font-weight: 400; font-size: 24px; line-height: 32px; }
.now:hover strong { color: var(--accent); }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--accent); vertical-align: 2px; animation: pulse 1.6s steps(2) infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------------------------------------------------------------- featured game band */
.feature {
  position: relative;
  overflow: hidden;
  color: var(--g-text);
  background: var(--g-bg) url("../games/drop-shop/burst.png") 72% 50% / 1440px 800px no-repeat;
  image-rendering: pixelated;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.feature > * { image-rendering: auto; }
.feature__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.feature .label { color: var(--g-soft); margin: 0 0 24px; }
.feature__logo { margin: 0 0 24px; line-height: 0; }
.feature__logo img { width: 408px; height: 240px; margin-left: -6px; }
.feature__tag { font-size: 24px; line-height: 32px; margin: 0 0 16px; color: var(--g-hi); }
.feature__tag .c { color: var(--g-alt); }
.feature p { max-width: 34em; }
.feature .cta-row { margin: 32px 0 24px; }
.feature a:not(.btn) { color: var(--g-text); }
.feature a:not(.btn):hover { color: var(--g-hi); }
.feature .fine { color: var(--g-soft); margin: 0; }
.phone {
  position: relative;
  justify-self: end;
  width: 400px;
  padding: 12px;
  background: var(--g-ink);
  border: 2px solid #000;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .35);
  line-height: 0;
}
.phone video, .phone img { display: block; width: 372px; height: 661px; background: #000; image-rendering: pixelated; }
.vid-toggle {
  position: absolute; right: 20px; bottom: 20px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--tiny); font-size: 16px; line-height: 1;
  cursor: pointer;
}
.vid-toggle[hidden] { display: none; }

/* ---------------------------------------------------------------- sections */
.section { padding: 112px 0; }
.section + .section { border-top: 2px solid var(--ink); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section__head h2, .h2 { font-size: 48px; line-height: 56px; text-transform: uppercase; }
.section__head p { margin: 0; color: var(--muted); }
.lede { font-size: 24px; line-height: 32px; max-width: 30em; }

/* ---------------------------------------------------------------- games grid */
.games { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.game { position: relative; display: flex; flex-direction: column; }
.game__art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  transition: transform .08s steps(2), box-shadow .08s steps(2);
}
.game:hover .game__art { transform: translate(-4px, -4px); box-shadow: 4px 4px 0 var(--ink); }
.art-ds {
  background: var(--g-bg) url("../games/drop-shop/burst.png") 70% 55% / 720px 400px no-repeat;
  image-rendering: pixelated;
}
.art-ds .logo { position: absolute; left: 8%; top: 50%; width: 272px; height: 160px; transform: translateY(-50%); }
.art-ds .pip { position: absolute; right: 6%; bottom: 0; width: 192px; height: 192px; }
.art-tbd {
  display: grid;
  place-items: center;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(45deg, transparent 0 14px, rgba(18, 18, 18, .06) 14px 16px);
}
.art-tbd .ghost { font-family: var(--px); font-size: 64px; line-height: 64px; text-transform: uppercase; color: #cfcabe; }
.badge {
  position: absolute; left: 16px; top: 16px;
  padding: 4px 8px;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-family: var(--tiny); font-size: 16px; line-height: 24px; text-transform: uppercase;
}
.badge .dot { margin-right: 6px; }
.game__meta { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0 0; }
.game__meta h3 { font-size: 32px; line-height: 40px; text-transform: uppercase; }
.game__meta h3 a { text-decoration: none; }
.game__meta h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.game__meta .genre { grid-column: 1; margin: 0; color: var(--muted); }
.game__meta .plat { grid-column: 2; grid-row: 1; align-self: center; margin: 0; color: var(--muted); }
.game__meta .note { grid-column: 1 / -1; margin: 8px 0 0; }
.game--tbd .game__meta a { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- studio + contact */
.cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 40px; border-top: 2px solid var(--ink); }
.facts div { padding: 16px 0; border-bottom: 2px solid var(--rule); }
.facts dt { font-family: var(--tiny); font-size: 16px; line-height: 24px; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 16px; line-height: 24px; }
.contact { background: var(--ink); color: var(--paper); }
.contact .label { color: #a8a49b; margin: 0 0 24px; }
.contact a:not(.btn) { color: var(--paper); }
.contact a:not(.btn):hover { color: #9fb2ff; }
.mail { display: inline-block; font-size: 48px; line-height: 56px; text-decoration: none; border-bottom: 4px solid currentColor; margin-bottom: 32px; word-break: break-all; }
.contact p { max-width: 36em; color: #d6d2c8; }
.contact .cta-row { margin-top: 32px; }
.contact .btn { --b: var(--paper); --f: var(--ink); border-color: var(--paper); }
.contact .btn:hover { box-shadow: 4px 4px 0 #6a675f; }
.contact .btn--ghost { --b: transparent; --f: var(--paper); }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ink); color: #d6d2c8; padding: 0 0 40px; border-top: 2px solid #2e2e2e; }
.foot__mark {
  --ol: #3b3b3b;
  display: block;
  margin: 0;
  padding: 56px 0 40px;
  color: var(--ink);
  font-family: var(--px);
  font-size: 136px;
  line-height: 136px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 24px; border-top: 2px solid #2e2e2e; }
.foot__row ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--paper); }
.foot a:hover { color: #9fb2ff; }
.foot .tiny a { text-decoration: none; }
.foot p { margin: 0; }

/* ---------------------------------------------------------------- game page */
.g-hero {
  position: relative;
  overflow: hidden;
  color: var(--g-text);
  background: var(--g-bg) url("../games/drop-shop/burst.png") 72% 50% / 1440px 800px no-repeat;
  image-rendering: pixelated;
  border-bottom: 2px solid var(--ink);
}
.g-hero > * { image-rendering: auto; }
.g-hero .wrap { padding-top: 48px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--g-soft); }
.crumbs li + li::before { content: "/"; margin-right: 12px; }
.crumbs a { color: var(--g-text); }
.crumbs a:hover { color: var(--g-hi); }
.g-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: center; padding: 40px 0 80px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.chips li { padding: 4px 8px; background: var(--g-ink); color: var(--g-soft); font-family: var(--tiny); font-size: 16px; line-height: 24px; text-transform: uppercase; }
.chips li.on { background: var(--g-hi); color: var(--g-ink); }
.g-hero a:not(.btn) { color: var(--g-text); }
.g-hero a:not(.btn):hover { color: var(--g-hi); }
.g-hero .fine { color: var(--g-soft); margin: 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: st; }
.step { counter-increment: st; display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 2px solid var(--ink); background: var(--paper); }
.step::before {
  content: counter(st);
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: var(--g-cta); color: var(--g-cta-ink);
  border: 2px solid var(--ink);
  font-family: var(--px); font-size: 32px; line-height: 32px;
}
.step h3 { font-size: 24px; line-height: 32px; text-transform: uppercase; }
.step p { margin: 0; }
.step .btn { align-self: flex-start; margin-top: auto; }
.trailer { position: relative; aspect-ratio: 16 / 9; background: #000; border: 2px solid var(--ink); }
.trailer img, .trailer video, .trailer iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.trailer .btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.trailer .btn:hover { transform: translate(calc(-50% - 4px), calc(-50% - 4px)); }
.trailer .btn:active { transform: translate(-50%, -50%); }
.shots { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.shots figure { margin: 0; }
.shots a { display: block; border: 2px solid var(--ink); background: var(--g-ink); line-height: 0; }
.shots img { width: 100%; height: auto; image-rendering: pixelated; }
.shots figcaption { margin-top: 12px; font-family: var(--tiny); font-size: 16px; line-height: 24px; text-transform: uppercase; }
.feats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 2px solid var(--ink); }
.feats li { padding: 24px 0 28px; border-bottom: 2px solid var(--rule); }
.feats .icons { display: flex; gap: 4px; margin-bottom: 16px; }
.feats .icons img { width: 48px; height: 48px; }
.feats h3 { font-size: 24px; line-height: 32px; text-transform: uppercase; margin-bottom: 8px; }
.feats p { margin: 0; }
.bosses { list-style: none; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 16px; }
.bosses li { display: grid; justify-items: center; gap: 12px; text-align: center; font-family: var(--tiny); font-size: 16px; line-height: 24px; text-transform: uppercase; }
.bosses img { width: 64px; height: 64px; }
.faq { display: grid; max-width: 880px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 2px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 24px; line-height: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "-"; }
.faq .a { padding: 0 0 20px; max-width: 40em; }
.g-final { text-align: center; color: var(--g-text); background: var(--g-bg); border-top: 2px solid var(--ink); }
.g-final .h2 { margin-bottom: 16px; }
.g-final p { color: var(--g-soft); }
.g-final .cta-row { justify-content: center; margin-top: 32px; }
.g-final a:not(.btn) { color: var(--g-text); }

/* ---------------------------------------------------------------- 404 */
.lost { padding: 120px 0 160px; }
.lost .giant { color: var(--ink); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1240px) {
  :root { --gutter: 40px; }
  .giant, .foot__mark { font-size: 112px; line-height: 112px; }
  .feature__grid, .g-hero__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  .phone { width: 320px; padding: 10px; }
  .phone video, .phone img { width: 296px; height: 526px; }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bosses { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 960px) {
  .giant, .foot__mark { font-size: 80px; line-height: 80px; }
  .hero__row { grid-template-columns: 1fr; gap: 32px; }
  .now { justify-self: start; text-align: left; }
  .feature__grid, .g-hero__grid { grid-template-columns: 1fr; }
  .phone { justify-self: start; }
  .games { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: 24px; }
  .steps, .feats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .top__inner { min-height: 64px; }
  .mark { font-size: 16px; line-height: 24px; }
  .nav ul { gap: 16px; }
  .nav li.wide { display: none; }
  .hero { padding-top: 48px; }
  .giant, .foot__mark { font-size: 40px; line-height: 40px; margin-left: -2px; }
  .hero__row p, .lede { font-size: 16px; line-height: 24px; }
  .feature__grid { padding-top: 56px; padding-bottom: 56px; }
  .feature__logo img { width: 272px; height: 160px; margin-left: -4px; }
  .feature__tag { font-size: 16px; line-height: 24px; }
  .phone { width: 100%; max-width: 320px; padding: 8px; }
  .phone video, .phone img { width: 100%; height: auto; aspect-ratio: 9 / 16; }
  .section { padding: 72px 0; }
  .section__head { display: block; }
  .section__head h2, .h2 { font-size: 32px; line-height: 40px; }
  .section__head p { margin-top: 8px; }
  .art-ds .logo { width: 136px; height: 80px; }
  .art-ds .pip { width: 128px; height: 128px; }
  .art-tbd .ghost { font-size: 40px; line-height: 40px; }
  .game__meta h3 { font-size: 24px; line-height: 32px; }
  .facts { grid-template-columns: 1fr; }
  .mail { font-size: 16px; line-height: 24px; border-bottom-width: 2px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .bosses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__mark { padding: 40px 0 32px; }
  .foot__row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
