/* Mode-select landing page. */
body { background: #000; color: #fff; min-height: 100vh; display: flex; flex-direction: column; }
.landing { flex: 1; display: grid; place-items: center; padding: 24px 16px; }
.landing-inner { width: 100%; max-width: 960px; text-align: center; }
.landing h1 { font-size: clamp(1.6rem, 4.5vw, 2.8rem); letter-spacing: -.01em; margin-bottom: 4px; }
.landing .sub { color: #9aa3b5; margin-bottom: 36px; }
.landing .sub a { color: #8fb3ff; text-decoration: underline; display: inline-block; padding: 8px 4px; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 680px) { .modes { grid-template-columns: 1fr; } }
.mode {
  display: block; border-radius: 16px; padding: 32px 24px; text-decoration: none; color: inherit;
  border: 2px solid #2a3040; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.mode:hover, .mode:focus-visible { transform: translateY(-3px); text-decoration: none; outline: none; }
.mode h2 { font-size: 1.35rem; margin-bottom: 8px; }
.mode p { color: #b6bdcc; margin: 0; }
.mode .kbd { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: .8rem; color: #9aa3b5; border: 1px solid #2a3040; border-radius: 6px; padding: 4px 8px; }
.mode.classic { background: #171b24; }
.mode.classic:hover { border-color: #6c9cff; box-shadow: 0 10px 30px rgba(108,156,255,.15); }
.mode.arcade { background: #05051a; font-family: "Press Start 2P", var(--mono); border-color: #2121de; }
.mode.arcade h2 { color: #ffd400; font-size: 1rem; line-height: 1.6; }
.mode.arcade p { font-size: .72rem; line-height: 1.9; color: #cfd3ff; }
.mode.arcade:hover { border-color: #ffd400; box-shadow: 0 10px 30px rgba(255,212,0,.15); }
.mode.arcade .kbd { color: #ffd400; border-color: #2121de; }

.marquee { position: relative; height: 40px; margin: 40px 0 8px; overflow: hidden; }
.marquee .dots { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 2%; }
.marquee .dots i { width: 6px; height: 6px; background: #ffb8ae; border-radius: 1px; }
.marquee .pac {
  position: absolute; top: 50%; left: -40px; width: 32px; height: 32px; margin-top: -16px;
  background: #ffd400; border-radius: 50%; animation: cross 9s linear infinite;
  clip-path: polygon(50% 50%, 100% 22%, 100% 0, 0 0, 0 100%, 100% 100%, 100% 78%);
}
.marquee .pac.chomp { animation: cross 9s linear infinite, chomp .3s steps(1) infinite; }
@keyframes cross { from { left: -40px; } to { left: 104%; } }
@keyframes chomp { 0%,100% { clip-path: polygon(50% 50%, 100% 22%, 100% 0, 0 0, 0 100%, 100% 100%, 100% 78%); } 50% { clip-path: polygon(50% 50%, 100% 48%, 100% 0, 0 0, 0 100%, 100% 100%, 100% 52%); } }
.marquee .ghost { position: absolute; top: 50%; width: 28px; height: 28px; margin-top: -14px; left: -120px; border-radius: 14px 14px 4px 4px; animation: cross 9s linear infinite; animation-delay: .6s; }
.marquee .ghost.red { background: #ff0000; }
.marquee .ghost::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 10px 0 0 #fff; }
@media (prefers-reduced-motion: reduce) { .marquee .pac, .marquee .ghost { animation: none; left: 45%; } .marquee .ghost { left: 55%; } }
.err-code { font-family: "Press Start 2P", var(--mono); color: #ff2a2a; font-size: clamp(2rem, 8vw, 4rem); margin: 0 0 8px; text-shadow: 0 0 18px rgba(255,42,42,.5); }
.landing footer { color: #5d6474; font-size: .82rem; padding: 12px; text-align: center; }
