/* AP CS Arcade website: blue arcade identity shared by the home page and the game shell. */
:root {
  --ar-bg: #0b1d4d; --ar-bg2: #102a6b; --ar-card: #16367f; --ar-card-hover: #1c4499; --ar-accent: #ffd23f;
  --ar-cyan: #38d8ff; --ar-text: #fff; --ar-muted: #a9bde8;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--ar-bg); }
body { min-height: 100vh; background: radial-gradient(circle at 20% 0%, var(--ar-bg2), var(--ar-bg) 55%); color: var(--ar-text); font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; }

/* Home */
.home { max-width: 1040px; margin: 0 auto; padding: 40px 24px 60px; }
.home-header { text-align: center; margin-bottom: 36px; }
.home-title { margin: 0; font-size: clamp(36px, 6vw, 60px); font-weight: 900; letter-spacing: 0.06em; color: var(--ar-accent); text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
.home-subtitle { margin: 8px 0 0; font-size: 18px; color: var(--ar-muted); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 720px) { .game-grid { grid-template-columns: 1fr; } .home { padding: 28px 16px 40px; } }
.game-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 28px 24px 26px; border-radius: 20px; background: var(--ar-card); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); min-height: 300px; transition: transform 0.15s, background 0.15s; }
.game-card.playable { cursor: pointer; }
.game-card.playable:hover, .game-card.playable:focus-within { background: var(--ar-card-hover); transform: translateY(-4px); }
.game-card.playable:active { transform: translateY(0); }
.game-card.soon { opacity: 0.7; }
.game-thumb { width: 100%; max-width: 280px; aspect-ratio: 16 / 10; border-radius: 14px; display: grid; place-items: center; font-size: 34px; font-weight: 900; letter-spacing: 0.06em; }
.thumb-playable { background: linear-gradient(160deg, #38d8ff 0 45%, #1c4e9a 45% 100%); color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35); position: relative; overflow: hidden; font-size: 28px; padding: 0 12px; text-align: center; }
.thumb-betlife { background: linear-gradient(160deg, #e0432f 0 45%, #1c4e9a 45% 100%); }
.thumb-flappy-bruh { background: linear-gradient(160deg, #7c4dff 0 45%, #15131c 45% 100%); }
.thumb-betlife::after { content: "+"; position: absolute; right: 18px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: #3db04f; box-shadow: inset 0 0 0 3px #fff; display: grid; place-items: center; font-size: 30px; }
.thumb-soon { background: rgba(255, 255, 255, 0.08); color: var(--ar-muted); font-size: 40px; }
.game-name { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: 0.04em; }
.game-desc { margin: 0; font-size: 14px; color: var(--ar-muted); line-height: 1.4; max-width: 300px; }
.badge { position: absolute; top: 14px; right: 14px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; background: var(--ar-accent); color: #1b1f27; }
.play-btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 160px; height: 46px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--ar-accent); color: #1b1f27; font-size: 16px; font-weight: 800; letter-spacing: 0.04em; text-decoration: none; cursor: pointer; }
.play-btn:hover { background: #ffdf6b; } .play-btn:active { background: #f2c419; }
.play-btn:focus-visible, .game-card.playable:focus-visible { outline: 3px solid var(--ar-cyan); outline-offset: 3px; }
.soon-btn { margin-top: auto; min-width: 160px; height: 46px; padding: 0 22px; border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 12px; background: transparent; color: var(--ar-muted); font-size: 14px; font-weight: 800; letter-spacing: 0.06em; cursor: not-allowed; }
.grid-loading, .grid-error { grid-column: 1 / -1; text-align: center; color: var(--ar-muted); }
.home-footer { margin-top: 40px; text-align: center; font-size: 13px; color: var(--ar-muted); }
.home-footer a { color: var(--ar-cyan); }

/* Game shell (around BetLife) */
.shell-body { display: flex; flex-direction: column; min-height: 100vh; }
.shell-bar { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: rgba(0, 0, 0, 0.25); }
.shell-brand { font-weight: 900; letter-spacing: 0.08em; color: var(--ar-accent); text-decoration: none; font-size: 16px; }
.shell-back { color: var(--ar-text); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.shell-back:hover, .shell-back:focus-visible { background: rgba(255, 255, 255, 0.12); outline: none; }
