:root {
  --bg: #0b0e14;
  --panel: #141a26;
  --panel-2: #1a2130;
  --line: #243044;
  --text: #e6ecf5;
  --muted: #8fa0b8;
  --accent: #35e0ff;
  --danger: #ff4d5e;
  --orange: #ff8c3c;
  --purple: #be78ff;
  --gold: #ffd166;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
a { color: inherit; }

.bg { position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,77,94,0.14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(53,224,255,0.08), transparent 70%),
    linear-gradient(rgba(130,160,210,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130,160,210,0.05) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 40px 40px, 40px 40px, auto; }

main { max-width: 1040px; margin: 0 auto; padding: 56px 20px 40px; }

.hero { text-align: center; margin-bottom: 48px; }
.brand { font: 700 clamp(56px, 10vw, 96px)/1 "Rajdhani", system-ui, sans-serif; letter-spacing: 0.14em; text-shadow: 0 0 40px rgba(53,224,255,0.25); }
.brand span { color: var(--danger); text-shadow: 0 0 40px rgba(255,77,94,0.55); }
.tag { margin: 10px 0 0; font: 700 clamp(18px, 3vw, 26px)/1.2 "Rajdhani", system-ui, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.sub { max-width: 620px; margin: 18px auto 0; color: var(--muted); }
.cta { display: inline-block; margin-top: 26px; padding: 14px 30px; border-radius: 10px; text-decoration: none;
  font: 700 18px/1 "Rajdhani", system-ui, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: #04121a;
  background: linear-gradient(180deg, #5ee8ff, #22cdf0); box-shadow: 0 10px 30px rgba(53,224,255,0.28); transition: transform .12s, box-shadow .12s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(53,224,255,0.4); }
.plays { margin: 18px 0 0; font: 700 13px/1 "Rajdhani", system-ui, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.plays b { color: var(--text); font-size: 15px; text-shadow: 0 0 16px rgba(53,224,255,0.35); font-variant-numeric: tabular-nums; }
.plays[hidden] { display: none; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.game { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none;
  background: linear-gradient(180deg, #1b2232 0%, var(--panel) 100%); box-shadow: 0 10px 30px rgba(0,0,0,0.35); transition: transform .15s, border-color .15s; }
.game.live { grid-column: 1 / -1; flex-direction: row; }
.game.live:hover { transform: translateY(-3px); border-color: rgba(53,224,255,0.5); }
.game.soon { opacity: 0.72; }
.art { position: relative; height: 150px; overflow: hidden; background: #0e1219; border-bottom: 1px solid var(--line); }
.game.live .art { width: 42%; min-width: 280px; height: auto; border-bottom: 0; border-right: 1px solid var(--line); }
.meta { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.title { display: flex; align-items: center; gap: 10px; font: 700 24px/1.1 "Rajdhani", system-ui, sans-serif; letter-spacing: 0.06em; }
.badge { font: 700 11px/1 "Rajdhani", system-ui, sans-serif; letter-spacing: 0.18em; padding: 4px 8px; border-radius: 999px; background: var(--line); color: var(--muted); }
.live-badge { background: rgba(255,77,94,0.18); color: var(--danger); box-shadow: 0 0 14px rgba(255,77,94,0.35); }
.desc { color: var(--muted); font-size: 14px; }
.stats { margin-top: 6px; display: flex; align-items: center; gap: 8px; font: 700 13px/1 "Rajdhani", system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Card art: pure CSS, no assets. */
.art-ove { background: radial-gradient(circle at 50% 45%, #1a2232, #0e1219 70%); }
.art-ove .boss { position: absolute; left: 50%; top: 42%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8d98, #ff4d5e 45%, #8e1a27); box-shadow: 0 0 40px rgba(255,77,94,0.55), 0 0 0 7px rgba(255,255,255,0.08), 0 0 0 10px rgba(255,77,94,0.6); }
.art-ove .boss::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: radial-gradient(circle at 60% 60%, #07080c 28%, #8e1a27 32%, #fff 55%); }
.art-ove .ship { position: absolute; left: 50%; top: 78%; width: 0; height: 0; margin-left: -9px; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 22px solid var(--accent); filter: drop-shadow(0 0 10px var(--accent)); }
.art-pilot { background: radial-gradient(circle at 30% 60%, rgba(255,209,102,0.35), transparent 22%), repeating-linear-gradient(90deg, #121826 0 18px, #0e1219 18px 36px); }
.art-tower { background: linear-gradient(#0e1219, #141a26); }
.art-tower::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 60px; height: 120px; margin-left: -30px;
  background: repeating-linear-gradient(#ff8c3c 0 14px, #0e1219 14px 18px); transform: rotate(-6deg); transform-origin: bottom center; box-shadow: 0 0 30px rgba(255,140,60,0.3); }
.art-bridge { background: linear-gradient(#0e1219 60%, #1a1020); }
.art-bridge::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 30px; height: 26px; border-radius: 13px; background: repeating-linear-gradient(90deg, #be78ff 0 10px, #7a3fd1 10px 20px); opacity: .7; box-shadow: 0 0 30px rgba(190,120,255,0.3); }
.art-hand { background: radial-gradient(circle at 50% 50%, rgba(255,209,102,0.25), transparent 40%), #0e1219; }
.art-hand::before { content: "⚔"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; color: var(--gold); text-shadow: 0 0 30px rgba(255,209,102,0.6); }

/* Suggestion board */
.board { margin-top: 64px; }
.board-head { text-align: center; margin-bottom: 20px; }
.board-head h2 { margin: 0; font: 700 clamp(26px, 4vw, 38px)/1.1 "Rajdhani", system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; text-shadow: 0 0 30px rgba(53,224,255,0.2); }
.board-head .sub { margin-top: 8px; }
.board-form { display: flex; gap: 10px; max-width: 760px; margin: 0 auto; }
.board-form input { min-width: 0; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; }
.board-form input:focus { outline: none; border-color: var(--accent); }
#board-name { flex: 0 0 150px; }
#board-text { flex: 1; }
.board-form button { border: 0; border-radius: 10px; padding: 12px 18px; cursor: pointer; white-space: nowrap; font: 700 15px/1 "Rajdhani", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #04121a; background: linear-gradient(180deg, #5ee8ff, #22cdf0); box-shadow: 0 6px 18px rgba(53,224,255,0.25); }
.board-form button:hover { filter: brightness(1.08); }
.board-note { max-width: 760px; margin: 10px auto 0; font-size: 13px; color: var(--danger); }
.board-list { list-style: none; margin: 22px auto 0; padding: 0; max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.board-list li { display: flex; gap: 14px; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #1b2232 0%, var(--panel) 100%); padding: 10px 16px 10px 8px; transition: border-color .15s; }
.board-list li.mine { border-color: rgba(53,224,255,0.35); }
.board-list li.empty { justify-content: center; padding: 22px; color: var(--muted); border-style: dashed; background: none; }
.board-list .votes { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 48px; }
.board-list .votes button { display: grid; place-items: center; background: none; border: 0; border-radius: 6px; padding: 3px 8px; cursor: pointer; color: var(--muted); transition: color .12s, background .12s; }
.board-list .votes button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.board-list .votes button:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.board-list .votes .up.on { color: var(--accent); filter: drop-shadow(0 0 6px rgba(53,224,255,0.6)); }
.board-list .votes .down.on { color: var(--danger); filter: drop-shadow(0 0 6px rgba(255,77,94,0.6)); }
.board-list .score { font: 700 18px/1 "Rajdhani", system-ui, sans-serif; min-width: 2ch; text-align: center; }
.board-list .score.neg { color: var(--danger); }
.board-list .body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.board-list .text { font-size: 15px; overflow-wrap: anywhere; }
.board-list .by { font: 700 11px/1 "Rajdhani", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) {
  .board-form { flex-wrap: wrap; }
  #board-text { flex: 1 1 100%; order: -1; }
  #board-name { flex: 1 1 120px; }
}

footer { margin-top: 48px; text-align: center; color: var(--muted); font: 700 12px/1 "Rajdhani", system-ui, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; }
footer .sep { margin: 0 10px; }

@media (max-width: 760px) {
  .game.live { flex-direction: column; }
  .game.live .art { width: auto; min-width: 0; height: 170px; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Card art: real screenshots of each game. */
.art.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.game.live:hover .art.shot img { transform: scale(1.03); }
.game.live .art.shot { min-height: 150px; }
