/* Copyright (c) 2026 VSS (Vision Strike Studios). All rights reserved. Styles for the AIslop100 website.
   Laid out like the ZombieSplat site (same studio): sticky nav, two-column hero, numbers strip,
   card sections, gallery, sister-title advert, store cards and footer. Colours come from SLOP-64. */

:root {
  --bg: #100e17;
  --bg-2: #171832;
  --card: #1c1d3a;
  --ink: #fff4d6;
  --muted: #c4c2cf;
  --lime: #9be04a;
  --lime-dark: #2f9e44;
  --pink: #f27ab8;
  --gold: #f7d44a;
  --sky: #4fb6e8;
  --red: #e0453a;
  --line: #3a4078;
  --radius: 12px;
  --pixel: "Press Start 2P", ui-monospace, "Consolas", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(ellipse at top, #2a2650 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* Every screenshot is pixel art: scale it with hard edges, never blur */
.px { image-rendering: pixelated; image-rendering: crisp-edges; }

a { color: var(--lime); }

h1, h2, .brand { font-family: var(--pixel); font-weight: 400; letter-spacing: 1px; }

h2 { font-size: clamp(1.3rem, 4vw, 2rem); line-height: 1.3; margin: 0 0 24px; color: var(--lime); text-shadow: 0 3px 0 #000; }

h3 { margin: 0 0 6px; font-size: 1.1rem; }

sup { font-family: "Inter", sans-serif; font-size: 0.4em; vertical-align: super; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--gold); color: #000; padding: 6px 10px; }

/* ------------------------------------------------------------------ navigation */

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
  padding: 10px 24px;
  background: rgba(16, 14, 23, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.brand { font-size: 1.1rem; color: var(--lime); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--pink); }

.nav nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }

.nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; }

.nav nav a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ hero */

.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  max-width: 1150px; margin: 0 auto; padding: 56px 24px 40px;
}

.hero-text { min-width: 0; }

.publisher { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem; }

.hero h1 {
  margin: 10px 0 14px; font-size: clamp(1.9rem, 7vw, 3.6rem); line-height: 1.1;
  color: var(--lime); text-shadow: 0 4px 0 var(--lime-dark), 0 10px 24px rgba(0, 0, 0, 0.7);
  overflow-wrap: anywhere;
}
.hero h1 .ai { color: var(--pink); text-shadow: 0 4px 0 #b83a86, 0 10px 24px rgba(0, 0, 0, 0.7); }
.hero h1 .num { color: var(--gold); text-shadow: 0 4px 0 #d16a09, 0 10px 24px rgba(0, 0, 0, 0.7); }

.tagline { font-size: 1.35rem; font-weight: 800; margin: 0 0 12px; }

.tagline em { color: var(--pink); font-style: normal; }

.lede { color: var(--muted); max-width: 560px; }

.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  border: 2px solid var(--lime); color: var(--lime); text-decoration: none; font-weight: 800;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover { transform: translateY(-2px); }

.button.primary { background: var(--lime); color: #10200a; }

.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 150px; padding: 8px 20px; border-radius: 12px;
  background: #08070d; border: 2px solid var(--lime); color: var(--ink);
  text-decoration: none; font-weight: 800; font-size: 1.25rem; line-height: 1.2;
  transition: transform 0.15s ease;
}

.store small { font-weight: 400; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.store:hover { transform: translateY(-2px); }

.store.planned { border-color: var(--line); cursor: default; }
.store.planned:hover { transform: none; }

.hero-shot { margin: 0; min-width: 0; }

.hero-shot img {
  width: 100%;
  border-radius: var(--radius); border: 3px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); transform: rotate(1.5deg);
}

.hero-shot figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* ------------------------------------------------------------------ pledge */

.pledge { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0; }
.pledge li { border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 4px 12px;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
.pledge li::before { content: "\2715\00a0"; }
.footer .pledge { justify-content: center; }

/* ------------------------------------------------------------------ numbers strip */

.stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px;
  max-width: 1150px; margin: 0 auto; padding: 18px 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

.stats div { text-align: center; }

.stats b { display: block; font-family: var(--pixel); font-weight: 400; font-size: 1.4rem; line-height: 1.8; color: var(--lime); }

.stats span { color: var(--muted); font-size: 0.9rem; }

/* ------------------------------------------------------------------ sections */

.section { max-width: 1150px; margin: 0 auto; padding: 64px 24px 16px; }

.intro { color: var(--muted); margin-top: -12px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }

.card, .floor-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}

.card h3, .floor-card h3 { color: var(--lime); }

.card p, .floor-card p { margin: 0; color: var(--muted); }

.card ul { margin: 0; padding-left: 20px; color: var(--muted); }

kbd {
  font: 600 0.8em/1 "Inter", sans-serif; background: #08070d; border: 1px solid var(--line);
  border-bottom-width: 3px; border-radius: 6px; padding: 2px 6px; color: var(--ink);
}

/* ------------------------------------------------------------------ the hotel tower */

.hotel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: start; }

.tower {
  margin: 0; padding: 14px; border-radius: var(--radius);
  background: linear-gradient(#2a2650, #171832); border: 3px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.tower-roof {
  text-align: center; font-family: var(--pixel); font-size: 0.75rem; color: var(--gold);
  padding: 8px 0 12px; letter-spacing: 2px;
}

.tower ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }

.storey { display: grid; grid-template-columns: 1.4fr repeat(10, 1fr) 1.4fr; gap: 3px; }

.lift {
  display: flex; align-items: center; justify-content: center;
  background: #5d5a69; color: #fff; border-radius: 3px;
  font-family: var(--pixel); font-size: 0.55rem; min-height: 30px;
}

.room {
  display: flex; align-items: center; justify-content: center; min-height: 30px; min-width: 0;
  background: #7a4a2a; border: 1px solid #b47542; border-radius: 3px 3px 0 0;
  color: var(--ink); text-decoration: none; font: 600 0.62rem/1 "Inter", sans-serif;
  transition: background 0.15s ease;
}
.room:hover, .room:focus-visible { background: var(--lime-dark); outline: none; }
.locked .room { background: #3a3840; border-color: #5d5a69; color: var(--muted); }
.locked .lift { background: #3a3840; color: var(--gold); }

.tower-lobby {
  margin-top: 4px; padding: 6px; text-align: center; border-radius: 3px;
  background: #5e2c72; color: var(--ink); font-family: var(--pixel); font-size: 0.6rem; letter-spacing: 1px;
}

.tower figcaption { margin-top: 10px; color: var(--muted); font-size: 0.85rem; text-align: center; }

.hotel-text p { color: var(--muted); }
.hotel-text p:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ gallery */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }

.gallery figure, .sheets figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.gallery img, .sheets img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.gallery figcaption, .sheets figcaption { padding: 10px 12px; color: var(--muted); font-size: 0.9rem; }

.sheets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 16px; }

/* ------------------------------------------------------------------ floors */

.floors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }

.floor-card { display: flex; gap: 14px; align-items: flex-start; }
.floor-card .num { font-family: var(--pixel); font-size: 1.2rem; color: var(--gold); min-width: 2.2em; line-height: 1.4; }
.floor-card .rooms { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--sky); font-weight: 600; }
.floor-card.secret { border-style: dashed; border-color: var(--pink); }
.floor-card.secret .num, .floor-card.secret h3 { color: var(--pink); }

/* ------------------------------------------------------------------ all 100 games */

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.filter[hidden] { display: none; }
.filter button {
  font: 700 0.8rem/1 "Inter", sans-serif; padding: 8px 12px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
}
.filter button[aria-pressed="true"] { background: var(--lime); color: #10200a; border-color: var(--lime); }

.games-floor { margin-bottom: 36px; }
.games-floor[hidden] { display: none; }
.games-floor h3 { font-family: var(--pixel); font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: var(--gold); margin-bottom: 14px; }
.games-floor h3 small { font-family: "Inter", sans-serif; font-size: 0.8rem; color: var(--muted); margin-left: 6px; }

.games { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 14px; }

.game { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 90px; }
.game:target { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.game img { width: 100%; aspect-ratio: 16 / 9; }
.game .meta { padding: 10px 12px 14px; }
.game .room-no { display: inline-block; font: 700 0.75rem/1 "Inter", sans-serif; color: #08070d; background: var(--sky); border-radius: 4px; padding: 3px 6px; }
.game h4 { font-family: var(--pixel); font-weight: 400; font-size: 0.72rem; line-height: 1.5; color: var(--lime); margin: 8px 0 6px; }
.game p { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; letter-spacing: 0.02em; }

/* ------------------------------------------------------------------ achievements */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }

.split figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.split figcaption { padding: 10px 12px; color: var(--muted); font-size: 0.9rem; }

.palette { display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; margin-top: 16px; }
.palette span { aspect-ratio: 1; border-radius: 2px; }

.rumour {
  margin-top: 24px; padding: 18px; text-align: center; border: 1px dashed var(--pink); border-radius: var(--radius);
  font-family: var(--pixel); font-size: 0.7rem; line-height: 2; color: var(--pink);
}
.rumour p { margin: 0; }

/* ------------------------------------------------------------------ advert and get it */

.advert { text-align: center; }
.advert h2 { margin-top: 4px; color: #8fd14f; }
.advert-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; opacity: 0.75; margin-bottom: 0; }
.advert p { max-width: 640px; margin-left: auto; margin-right: auto; }
.advert .tag { font-weight: 800; font-size: 1.15rem; }
.advert .button { border-color: #8fd14f; color: #8fd14f; margin-top: 8px; }

.get { text-align: center; padding-bottom: 64px; }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 20px 0; }

.store-card {
  flex: 1 1 240px; max-width: 320px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}

.store-card h3 { color: var(--lime); }

.store-card p { margin: 0; color: var(--muted); }

a.store-card { display: block; color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
a.store-card:hover, a.store-card:focus-visible { transform: translateY(-2px); border-color: var(--lime); }
.store-go { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--lime); }
.store-card .store-go.soon { color: var(--muted); }

.small { font-size: 0.85rem; color: var(--muted); }

/* ------------------------------------------------------------------ footer */

.footer { border-top: 1px solid var(--line); padding: 28px 24px 40px; text-align: center; color: var(--muted); }

.footer p { margin: 4px 0; }

/* ------------------------------------------------------------------ small screens */

@media (max-width: 820px) {
  .hero, .hotel, .split { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 32px; }
  .hero-shot img { transform: none; }
  .nav { padding: 10px 16px; }
  .section, .hero, .stats { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 480px) {
  /* Phone: room plates show just the room number; the floor is on the lift beside them */
  .room .f { display: none; }
  .tower { padding: 8px; }
  .storey { gap: 2px; }
  .lift { font-size: 0.45rem; }
  .stats { gap: 12px 24px; }
  .palette { grid-template-columns: repeat(8, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .store, a.store-card { transition: none; }
}

/* The "On Windows (Steam) and iPad" line under the pledge. */
.platforms { margin: 0 0 14px; color: var(--muted); }
.platforms strong { color: var(--sky); }

/* ------------------------------------------------------------------ free sampler (play.html) */

.play { padding-top: 32px; }

.play-title { font-size: clamp(1.2rem, 4vw, 1.9rem); line-height: 1.3; margin: 0 0 18px; color: var(--lime); text-shadow: 0 3px 0 #000; }
.play-title span { display: inline-block; margin-left: 10px; padding: 4px 10px; border-radius: 6px; font-size: 0.55em;
  vertical-align: middle; background: var(--red); color: var(--ink); text-shadow: none; }

/* The game keeps its own 16:9 letterbox inside; the stage fits the window. */
.stage {
  position: relative; width: 100%; max-width: calc((100vh - 170px) * 16 / 9); min-width: 280px;
  aspect-ratio: 16 / 9; margin: 0 auto; background: #000;
  border: 3px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.stage:fullscreen { max-width: none; border: 0; border-radius: 0; }

.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }

.stage-loading, .stage-note { position: absolute; inset: 0; display: grid; place-items: center; margin: 0;
  font-family: var(--pixel); font-size: 0.8rem; color: var(--muted); }

/* A plain message in place of "LOADING THE HOTEL..." (opened from a file, or the game failed to load). */
.stage-loading.stage-message { z-index: 3; padding: 0 12%; text-align: center; line-height: 1.8;
  color: var(--ink); background: rgba(16, 14, 23, 0.92); }

.gate {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; border: 0; cursor: pointer; color: var(--ink);
  background: radial-gradient(ellipse at center, rgba(42, 38, 80, 0.92) 0%, rgba(16, 14, 23, 0.97) 70%), url("img/sheet_1.png") center / cover;
  image-rendering: pixelated;
}
.gate[hidden] { display: none; }
.gate-big { font-family: var(--pixel); font-size: clamp(0.9rem, 3vw, 1.5rem); color: var(--gold); text-shadow: 0 3px 0 #000;
  padding: 14px 22px; border: 3px solid var(--gold); border-radius: 10px; background: rgba(0, 0, 0, 0.5); }
.gate:hover .gate-big, .gate:focus-visible .gate-big { background: var(--gold); color: #10200a; text-shadow: none; }
.gate-small { color: var(--muted); font-weight: 600; }

.controls { text-align: center; color: var(--muted); margin: 16px 0 4px; }
.controls kbd { font-size: 0.8rem; }
.small-button { padding: 4px 14px; margin-left: 10px; font-size: 0.85rem; background: none; cursor: pointer; font-family: inherit; }

.play-intro { text-align: center; max-width: 720px; margin: 12px auto 0; }
.play-cta { justify-content: center; }

.sampler-games { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }

/* ------------------------------------------------------------------ tip jar */

.tip { text-align: center; }
.tip .tag { font-weight: 800; font-size: 1.15rem; margin: 0 0 18px; }
.tip-button small { display: block; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
/* Until the itch.io page exists the button shows, greyed, and goes nowhere. */
.tip-button.soon { background: none; border-color: var(--line); color: var(--muted); pointer-events: none; cursor: default; }
.tip-collected { margin: 16px 0 2px; font-weight: 800; color: var(--gold); }
