:root { --bg: #0e0a28; --ink: #fff; --muted: #b9b4e8; --blue: #36c3ff; --pink: #ff50c8; --card: #1b1650; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: radial-gradient(120% 80% at 50% 0%, #2a1f78 0%, var(--bg) 60%) fixed; color: var(--ink);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; padding: 20px 16px 40px; }
.top { text-align: center; margin: 8px 0 20px; }
.logo { margin: 0; font-size: 34px; font-weight: 900; letter-spacing: .02em; text-shadow: 0 0 14px rgba(255, 80, 200, .6); }
.logo span { color: var(--blue); text-shadow: 0 0 14px rgba(54, 195, 255, .7); }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; max-width: 1100px; margin: 0 auto; }
.tile { display: block; width: 100%; padding: 0; border: 3px solid transparent; border-radius: 18px; overflow: hidden; background: var(--card);
  color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.tile img { display: block; width: 100%; height: auto; }
.tile .cap { display: block; padding: 12px 16px 14px; }
.tile strong { display: block; font-size: 22px; }
.tile .tag { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.tile .ppl { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.tile .ppl svg { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 2; }
.tile:hover, .tile:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(54, 195, 255, .25), 0 0 32px rgba(54, 195, 255, .45); }
.on-tv { display: flex; gap: 12px; align-items: center; max-width: 1100px; margin: 26px auto 0; color: var(--muted); font-size: 15px; }
.on-tv svg { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.on-tv p { margin: 0; }
.tv-only { display: none; }
.family { max-width: 1100px; margin: 14px auto 0; font-size: 15px; }
.family a { color: var(--blue); text-decoration: none; }
.offline { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 18px; }
#notice { position: fixed; left: 50%; bottom: 7vh; transform: translateX(-50%); max-width: 80vw; background: #2b1d6e; border: 2px solid var(--pink);
  border-radius: 14px; padding: 14px 22px; font-size: 20px; box-shadow: 0 0 24px rgba(255, 80, 200, .4); }

/* 10-foot TV layout: big tiles in a row, strong focus, remote hints. Sized in vh so it scales with the TV. */
body.tv { padding: 5vh 5vw; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
body.tv .phone-only { display: none; }
body.tv .tv-only { display: flex; }
body.tv .top { margin: 0 0 5vh; }
body.tv .logo { font-size: 7vh; }
body.tv .games { flex: 1; max-width: none; width: 100%; display: flex; gap: 3vw; align-items: center; justify-content: center; }
body.tv .tile { width: 40vw; max-width: 64vh; flex: none; border-width: .6vh; border-radius: 2.4vh; }
body.tv .tile .cap { padding: 1.6vh 2vh 2vh; }
body.tv .tile strong { font-size: 4vh; }
body.tv .tile .tag { font-size: 2.6vh; }
body.tv .tile .ppl { font-size: 2.4vh; }
body.tv .tile .ppl svg { width: 2.8vh; height: 2.8vh; }
body.tv .tile:focus { transform: scale(1.06); border-color: var(--blue); box-shadow: 0 0 0 .8vh rgba(54, 195, 255, .3), 0 0 6vh rgba(54, 195, 255, .6); }
body.tv .remote { justify-content: center; gap: 4vw; color: var(--muted); font-size: 2.4vh; margin-top: 4vh; align-items: center; }
body.tv .remote .key { font-style: normal; display: inline-block; min-width: 4.6vh; padding: .4vh 1vh; border: 2px solid var(--muted); border-radius: 99px; text-align: center; margin-right: .8vh; font-size: 2vh; }
body.tv #engine { opacity: .55; font-size: 1.8vh; }
body.tv #notice { font-size: 3vh; }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } body.tv .tile:focus { transform: none; } }
