/* SasiPixel Games: studio frame.
   The studio itself is monochrome (ink on fog, Bricolage Grotesque). Colour and lettering belong
   to the games: each game's band and page uses that game's own palette and fonts. Every class here
   starts with "sp-" so game pages can load their own stylesheet without clashing. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/bricolage-grotesque-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/bricolage-grotesque-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Lilita One"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/lilita-one-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/nunito-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/nunito-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url(/assets/fonts/nunito-latin-900-normal.woff2) format("woff2"); }

:root {
  --sp-fog: #edeff4;
  --sp-paper: #ffffff;
  --sp-ink: #1a1c2e;
  --sp-slate: #565c73;
  --sp-line: #c9cedb;
  --sp-gr: #3f3496;
  --sp-gr-deep: #252261;
  --sp-gr-gold: #ffbe2e;
  --sp-omr: #2f8dff;
  --sp-omr-deep: #1d4fb8;
  --sp-omr-sun: #ffd23f;
  --sp-font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sp-wrap: 1120px;
  --sp-gutter: clamp(16px, 4vw, 40px);
}

/* ---------- base (studio pages only: body.sp) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.sp {
  margin: 0; background: var(--sp-fog); color: var(--sp-ink);
  font: 400 17px/1.6 var(--sp-font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.sp img { max-width: 100%; display: block; }
body.sp a { color: var(--sp-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
body.sp a:hover { text-decoration-thickness: 3px; }
body.sp :focus-visible { outline: 3px solid var(--sp-ink); outline-offset: 3px; }
.sp-wrap { width: min(var(--sp-wrap), 100%); margin: 0 auto; padding: 0 var(--sp-gutter); }
.sp-skip {
  position: absolute; left: 12px; top: -80px; z-index: 20; padding: 10px 14px;
  background: var(--sp-ink); color: #fff !important; font: 600 16px/1.2 var(--sp-font); text-decoration: none;
}
.sp-skip:focus { top: 12px; }

/* ---------- studio header (every page) ---------- */
.sp-header { background: var(--sp-fog); color: var(--sp-ink); border-bottom: 2px solid var(--sp-ink); font-family: var(--sp-font); position: relative; z-index: 10; }
.sp-header .sp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.sp-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--sp-ink) !important; text-decoration: none !important; font: 800 18px/1 var(--sp-font); letter-spacing: -0.01em; }
.sp-brand img { width: 26px; height: 26px; display: block; }
.sp-nav { display: flex; gap: 2px; }
.sp-nav a { color: var(--sp-ink) !important; text-decoration: none; font: 600 15px/1 var(--sp-font); padding: 10px 10px; }
.sp-nav a:hover, .sp-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.sp-header :focus-visible, .sp-footer :focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }

/* ---------- hero: the studio name and the game shelf ---------- */
.sp-hero { padding: clamp(36px, 7vw, 88px) 0 clamp(44px, 7vw, 96px); }
.sp-hero-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: end; }
.sp-hero h1 {
  margin: 0; font-weight: 800; line-height: .86; letter-spacing: -0.045em;
  font-size: clamp(64px, 18.5vw, 132px);
}
.sp-hero h1 span { display: block; }
.sp-intro { margin: 22px 0 0; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; max-width: 30ch; }

/* The shelf repeats the mark: one square per game, an open slot below for the next one. */
.sp-shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-slot { position: relative; }
.sp-slot a { display: block; position: relative; aspect-ratio: 1; overflow: hidden; color: #fff !important; text-decoration: none !important; }
.sp-slot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.sp-slot a:hover img { transform: scale(1.04); }
.sp-slot b {
  position: absolute; left: 0; bottom: 0; padding: 8px 12px 9px; background: var(--sp-ink); color: #fff;
  font: 800 clamp(15px, 1.7vw, 19px)/1.1 var(--sp-font); letter-spacing: -0.01em;
}
.sp-slot--gr a { background: var(--sp-gr); }
.sp-slot--omr a { background: var(--sp-omr); }
.sp-slot--open {
  grid-column: 1 / -1; min-height: 76px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--sp-ink); background: var(--sp-paper); color: var(--sp-slate); font-weight: 600; text-align: center; padding: 12px;
}

/* ---------- section headings ---------- */
.sp-section { padding: clamp(40px, 6vw, 72px) 0; }
.sp-hero + .sp-section { padding-top: 8px; }
.sp-h2 { margin: 0 0 8px; font-weight: 800; font-size: clamp(36px, 5.4vw, 56px); line-height: 1; letter-spacing: -0.035em; }
.sp-lead { margin: 0 0 32px; color: var(--sp-slate); font-size: 19px; max-width: 52ch; }

/* ---------- game bands: each in its own game's colours and lettering ---------- */
.sp-games { display: grid; gap: 18px; }
.sp-band { display: grid; overflow: hidden; color: #fff; }
.sp-band-copy { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; }
.sp-band h3 { margin: 0; line-height: .95; font-weight: 400; }
.sp-band .sp-kind { margin: 10px 0 0; font-size: 19px; font-weight: 600; opacity: .92; }
.sp-band .sp-desc { margin: 14px 0 0; font-size: 18px; line-height: 1.5; max-width: 40ch; }
.sp-band .sp-fine { margin: 10px 0 0; font-size: 15px; opacity: .85; }
.sp-band-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 24px; }
.sp-band-links a.sp-more { color: #fff !important; font-weight: 600; font-size: 16px; }
.sp-band-art { display: flex; gap: 12px; justify-content: center; align-items: flex-start; padding: 0 clamp(20px, 4vw, 44px); height: 300px; overflow: hidden; }
.sp-band-art img { width: min(42%, 190px); height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
.sp-band-art img:nth-child(2) { margin-top: 36px; }

.sp-band--gr { background: var(--sp-gr-deep); }
.sp-band--gr h3 {
  font-family: "Lilita One", var(--sp-font); color: #fff; font-size: clamp(44px, 6vw, 64px); letter-spacing: .01em;
  -webkit-text-stroke: 2.5px #1a1838; paint-order: stroke fill; text-shadow: 0 4px 0 #3fe0ff, 0 7px 0 #1a1838;
}
.sp-band--gr .sp-kind { color: var(--sp-gr-gold); font-family: "Nunito", var(--sp-font); font-weight: 900; }
.sp-band--gr .sp-desc, .sp-band--gr .sp-fine { font-family: "Nunito", var(--sp-font); font-weight: 700; }
.sp-band--gr .sp-band-art img { border: 4px solid #1a1838; border-radius: 22px; box-shadow: 0 6px 0 #1a1838; }

.sp-band--omr { background: linear-gradient(170deg, #2f8dff 0%, #5aa9ff 55%, #9fd4ff 100%); color: #fff; }
.sp-band--omr h3 {
  font-family: "Nunito", var(--sp-font); font-weight: 900; color: #fff; font-size: clamp(42px, 5.6vw, 60px); letter-spacing: -0.01em;
  text-shadow: 0 3px 0 #2a63d6, 0 6px 0 var(--sp-omr-deep), 0 14px 24px rgba(20, 30, 90, .3);
}
.sp-band--omr .sp-kind { color: var(--sp-omr-sun); font-family: "Nunito", var(--sp-font); font-weight: 900; text-shadow: 0 2px 0 var(--sp-omr-deep); }
.sp-band--omr .sp-desc, .sp-band--omr .sp-fine { font-family: "Nunito", var(--sp-font); font-weight: 800; text-shadow: 0 1px 0 rgba(29, 79, 184, .45); }
.sp-band--omr .sp-band-art img { border-radius: 22px; box-shadow: 0 6px 0 rgba(29, 79, 184, .55), 0 16px 30px rgba(20, 40, 110, .25); }

/* store buttons: "Coming soon" until a store address is set in /assets/js/site.js */
.sp-store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 9px 18px 9px 14px; text-decoration: none !important;
  background: #fff; color: var(--sp-ink) !important; font-family: var(--sp-font); border: 2px solid var(--sp-ink);
}
.sp-store svg { width: 22px; height: 22px; flex: none; }
.sp-store span { display: flex; flex-direction: column; line-height: 1.1; }
.sp-store small { font: 600 12px/1.1 var(--sp-font); }
.sp-store strong { font: 800 18px/1.1 var(--sp-font); }
.sp-store.is-soon { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .7); cursor: default; }
.sp-band--gr .sp-store:not(.is-soon) { background: var(--sp-gr-gold); border-color: #1a1838; }
.sp-band--omr .sp-store:not(.is-soon) { background: var(--sp-omr-sun); border-color: var(--sp-omr-deep); }

/* ---------- what every game has in common ---------- */
.sp-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0; border-top: 2px solid var(--sp-ink); }
.sp-rules li { padding: 20px 20px 24px 0; border-bottom: 1px solid var(--sp-line); }
.sp-rules b { display: flex; align-items: flex-start; gap: 10px; line-height: 1.25; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.sp-rules b::before { content: ""; width: 10px; height: 10px; margin-top: .4em; background: var(--sp-ink); flex: none; }
.sp-rules p { margin: 6px 0 0 20px; color: var(--sp-slate); }

/* ---------- privacy and contact ---------- */
.sp-split { display: grid; gap: 40px; }
.sp-policies { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--sp-ink); }
.sp-policies li { border-bottom: 1px solid var(--sp-line); }
.sp-policies a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.sp-policies a span { font-weight: 400; font-size: 15px; color: var(--sp-slate); }
.sp-policies a:hover { text-decoration: underline; }
.sp-mail { display: inline-block; margin-top: 4px; font-weight: 800; font-size: clamp(22px, 3.2vw, 30px); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sp-note { color: var(--sp-slate); margin: 12px 0 0; max-width: 46ch; }

/* ---------- footer (every page) ---------- */
.sp-footer { background: var(--sp-ink); color: #c9cddb; font: 400 15px/1.55 var(--sp-font); padding: 44px 0 40px; }
.sp-footer .sp-wrap { display: grid; gap: 28px; }
.sp-footer .sp-brand { color: #fff !important; }
.sp-footer .sp-brand img { background: #fff; padding: 2px; }
.sp-foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 22px; }
.sp-foot-cols h2 { margin: 0 0 6px; font: 600 14px/1.3 var(--sp-font); color: #9ca2b8; }
.sp-foot-cols ul { list-style: none; margin: 0; padding: 0; }
.sp-foot-cols li { margin: 4px 0; }
.sp-footer a { color: #fff !important; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.sp-footer a:hover { text-decoration: underline; }
.sp-legal { margin: 0; font-size: 13px; color: #9ca2b8; }

/* ---------- documents: privacy policies ---------- */
.sp-doc { padding: clamp(32px, 6vw, 64px) 0 80px; }
.sp-doc .sp-wrap { max-width: 800px; }
.sp-doc h1 { margin: 0 0 10px; font-weight: 800; font-size: clamp(38px, 6.4vw, 60px); line-height: 1; letter-spacing: -0.035em; }
.sp-doc .sp-meta { margin: 0 0 18px; color: var(--sp-slate); }
.sp-doc h2 { margin: 44px 0 10px; font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.sp-doc h3 { margin: 24px 0 6px; font-weight: 800; font-size: 19px; }
.sp-doc p, .sp-doc li { max-width: 68ch; }
.sp-doc ul { padding-left: 20px; }
.sp-doc li { margin: 6px 0; }
.sp-doc li::marker { color: var(--sp-ink); }
.sp-other { margin: 0 0 26px; padding: 12px 16px; background: var(--sp-paper); border-left: 6px solid var(--sp-ink); }
.sp-summary { background: var(--sp-paper); border: 2px solid var(--sp-ink); padding: 6px 22px 10px; margin-top: 8px; }
.sp-summary h2 { margin-top: 14px; font-size: 22px; }
.sp-summary ul { margin: 0 0 8px; }
.sp-table { width: 100%; overflow-x: auto; margin: 16px 0; background: var(--sp-paper); border: 2px solid var(--sp-ink); }
.sp-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.sp-table th, .sp-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--sp-line); }
.sp-table th { font-weight: 800; background: var(--sp-fog); }
.sp-table tr:last-child td { border-bottom: 0; }
.sp-doc .sp-game-mark { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-weight: 600; color: var(--sp-slate); }
.sp-doc .sp-game-mark img { width: 36px; height: 36px; border-radius: 9px; }

/* ---------- 404 ---------- */
.sp-lost { padding: clamp(56px, 10vw, 120px) 0; }
.sp-lost h1 { margin: 0 0 12px; font-weight: 800; font-size: clamp(44px, 9vw, 96px); line-height: .92; letter-spacing: -0.045em; max-width: 12ch; }
.sp-lost p { font-size: 19px; color: var(--sp-slate); margin: 0 0 24px; }
.sp-lost ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 800; font-size: 19px; }

/* ---------- wider screens ---------- */
@media (min-width: 900px) {
  .sp-hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .sp-band { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .sp-band-art { height: auto; min-height: 360px; padding-top: 34px; align-items: flex-start; }
  .sp-split { grid-template-columns: 1.3fr 1fr; gap: 64px; }
}
@media (max-width: 899px) {
  .sp-band-art { padding-top: 4px; }
}
@media (max-width: 430px) {
  .sp-nav a[href$="#contact"] { display: none; }
  .sp-brand { font-size: 17px; }
  .sp-nav a { padding: 10px 8px; }
  .sp-band-art { height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
