/* ====== TURING TOWN GAMES — クラシック CRT / ドット絵スタイル（人間認定試験と共通のトークン） ====== */
:root {
  --bg: #0b0b12; --bg2: #13131d; --panel: #171724; --line: #5c5c84; --white: #f1f1f8; --text: #e4e4ee; --muted: #8d8daa;
  --green: #58f898; --magenta: #f878f8; --yellow: #f8b800; --red: #f85858; --cyan: #3cbcfc;
  --jp: "DotGothic16", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; --px: "Press Start 2P", "DotGothic16", monospace;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  font-family: var(--jp); font-size: 18px; color: var(--text); background: var(--bg);
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 24px 24px; image-rendering: pixelated; -webkit-font-smoothing: none;
}
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 160px rgba(0,0,0,.65); }
#app { min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }

.win { background: var(--panel); border: 3px solid var(--white); box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 4px var(--line), 6px 6px 0 #000; }
.pxbtn { display: inline-block; font-family: var(--jp); font-size: 18px; color: var(--white); background: var(--bg2); border: 3px solid var(--white); box-shadow: 4px 4px 0 #000; padding: 10px 18px; }
.pxbtn.primary { background: var(--green); color: #0b0b12; }

.px-robot { display: inline-block; vertical-align: middle; }
.px-eye { transform-box: fill-box; transform-origin: center; animation: pxblink 5s steps(1) infinite; }
.px-lamp { animation: pxlamp 1.2s steps(1) infinite; }
.px-idle { animation: bob 1.2s steps(2) infinite; }
@keyframes pxblink { 0%, 92% { transform: scaleY(1); } 93%, 97% { transform: scaleY(.1); } 98%, 100% { transform: scaleY(1); } }
@keyframes pxlamp { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .25; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; border-bottom: 3px solid var(--line); background: #000; }
.logo { white-space: nowrap; font-family: var(--px); font-size: 12px; color: var(--green); text-shadow: 3px 3px 0 #0a3a1c; }
.logo .jp { font-family: var(--jp); font-size: 22px; margin-left: 10px; color: var(--white); text-shadow: 3px 3px 0 #2a2a44; }
.pill { white-space: nowrap; font-family: var(--px); font-size: 10px; padding: 8px 12px; border: 3px solid var(--line); background: var(--bg2); color: var(--white); }

.screen { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 36px 16px 48px; }
.hero { text-align: center; margin-bottom: 34px; }
.bots { display: flex; justify-content: center; gap: 14px; margin-bottom: 16px; }
.bots .px-robot:nth-child(2n) { animation-delay: .6s; }
.hero h1 { margin: 0 0 10px; font-family: var(--px); font-size: 18px; color: var(--green); text-shadow: 4px 4px 0 #0a3a1c; line-height: 1.6; }
.hero h1 .jp { display: block; font-family: var(--jp); font-size: 30px; color: var(--white); text-shadow: 4px 4px 0 #2a2a44; margin-top: 12px; }
.tagline { color: var(--muted); line-height: 1.8; margin: 0; }

.games { display: grid; gap: 26px; }
.game { display: grid; grid-template-columns: 140px 1fr; gap: 22px; padding: 26px 28px; align-items: center; transition: transform .08s steps(2); }
a.game:hover { transform: translate(-2px, -2px); box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 4px var(--line), 8px 8px 0 #000; }
a.game:hover .pxbtn.primary { background: #8dffb8; }
.game-art { display: flex; align-items: center; justify-content: center; width: 140px; height: 140px; background: #000; border: 3px solid var(--line); }
.card-title { font-family: var(--px); font-size: 9px; color: var(--yellow); margin-bottom: 10px; letter-spacing: .05em; }
.game h2 { margin: 0 0 10px; font-size: 32px; color: var(--white); text-shadow: 3px 3px 0 #2a2a44; }
.game p { margin: 0 0 14px; line-height: 1.75; color: var(--text); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; }
.tags li { font-size: 14px; color: var(--muted); border: 2px solid var(--line); padding: 2px 10px; background: #000; }
.game.soon { grid-template-columns: 1fr; opacity: .55; }
.game.soon h2 { font-size: 24px; }

.foot { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 18px 16px 26px; border-top: 3px solid var(--line); background: #000; color: var(--muted); font-size: 14px; text-align: center; }
.foot .sep { color: var(--line); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .logo .jp { display: none; }
  .game { grid-template-columns: 1fr; gap: 16px; padding: 20px 18px; }
  .game-art { width: 100%; height: 120px; }
  .game h2 { font-size: 26px; }
  .hero h1 { font-size: 14px; }
  .hero h1 .jp { font-size: 24px; }
}
