/* Yuvin Games + the "Where do you wanna go?" page. No scripts, no outside files: everything here is served from this folder. */
@font-face { font-family: "Press Start 2P"; src: url("fonts/PressStart2P-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #0f1020; --bg2: #1a1c2c; --card: #1a1c2c; --card-hover: #232a4e; --line: #3b4b99;
  --text: #f4f4f4; --muted: #b6bdd8; --gold: #ffcd75; --blue: #5ac8fa; --accent: #7c5cff;
  --pixel: "Press Start 2P", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  min-height: 100vh; min-height: 100dvh; color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 78% 12%, #ffcd75 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 34% 64%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 91% 71%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 33%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 66% 88%, #ffcd75 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 82%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 47% 8%, #fff 50%, transparent 51%),
    linear-gradient(180deg, var(--bg) 0%, #151a38 55%, #232a4e 100%);
  background-attachment: fixed;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
a { color: inherit; }
:focus-visible { outline: 4px solid var(--gold); outline-offset: 4px; }
.wrap { max-width: 980px; margin: 0 auto; }
.pixel { font-family: var(--pixel); letter-spacing: 0; line-height: 1.5; }
h1 { font-family: var(--pixel); font-weight: 400; font-size: clamp(18px, 4.6vw, 34px); line-height: 1.5; text-align: center; text-shadow: 3px 3px 0 #0b0c16; }
.sub { text-align: center; color: var(--muted); margin-top: 12px; }

/* ---------- "Where do you wanna go?" ---------- */
.choose { min-height: calc(100vh - 48px); min-height: calc(100dvh - 48px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.doors { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .doors { grid-template-columns: 1fr 1fr; gap: 28px; } }
.door {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 18px; text-align: center; text-decoration: none;
  min-height: 300px; padding: 26px 20px 22px; background: var(--card); border: 4px solid var(--line); border-radius: 6px;
  box-shadow: 0 6px 0 #0b0c16; transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.door:hover, .door:focus-visible { background: var(--card-hover); border-color: var(--gold); transform: translateY(-4px); }
.door:active { transform: translateY(2px); box-shadow: 0 2px 0 #0b0c16; }
.door .art { flex: 1; display: grid; place-items: center; width: 100%; }
.door img { display: block; max-width: 100%; height: auto; }
.door .games-logo { width: min(100%, 300px); }
.door .ts-icon { width: 128px; height: 128px; border-radius: 28px; border: 3px solid var(--line); background: #1A1A2E; }
.door .name { font-family: var(--pixel); font-size: clamp(13px, 3.4vw, 18px); line-height: 1.5; }
.door .hint { color: var(--muted); font-size: 15px; }
.door .go { font-family: var(--pixel); font-size: 12px; color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .door { transition: none; } .door:hover, .door:focus-visible, .door:active { transform: none; } }

/* ---------- Yuvin Games home ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.small-link { font-family: var(--pixel); font-size: 11px; color: var(--muted); text-decoration: none; padding: 12px 4px; min-height: 44px; display: inline-flex; align-items: center; }
.small-link:hover, .small-link:focus-visible { color: var(--gold); }
.hero { text-align: center; padding: 8px 0 26px; }
.hero img { width: min(86%, 420px); height: auto; display: block; margin: 0 auto 14px; }
.hero h1 { margin-top: 8px; }
.games { display: grid; gap: 22px; margin-top: 8px; }
.game { background: var(--card); border: 4px solid var(--line); border-radius: 6px; box-shadow: 0 6px 0 #0b0c16; overflow: hidden; display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .game { grid-template-columns: 1.15fr 1fr; } }
.game .shot { align-self: center; display: block; width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; background: #0b0c16; }
.game .info { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.game h2 { font-family: var(--pixel); font-weight: 400; font-size: clamp(13px, 3.2vw, 17px); line-height: 1.6; color: var(--gold); }
.badge { align-self: flex-start; font-family: var(--pixel); font-size: 10px; line-height: 1.6; padding: 8px 10px; background: #0b0c16; border: 2px solid var(--blue); color: var(--blue); border-radius: 4px; }
.game p { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-height: 48px; padding: 12px 18px; font-family: var(--pixel); font-size: 12px; text-decoration: none; border: 3px solid var(--line); background: #0b0c16; color: var(--muted); border-radius: 4px; }
.btn[aria-disabled="true"] { opacity: .75; cursor: not-allowed; }
.more { text-align: center; color: var(--muted); margin-top: 28px; }
.foot { text-align: center; color: #8991b5; font-size: 14px; margin-top: 34px; }
.foot a { color: var(--muted); }
