* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0f14;
    --surface: #121a22;
    --surface-2: #1b2530;
    --line: #223040;
    --text: #e8edf2;
    --dim: #8ea0ad;
    --accent: #ff9c41;
    --live: #4ade80;
    --primary: #ff9c41;
}

body {
    font-family: 'IBM Plex Sans', 'Segoe UI', 'Rubik', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, .logo-text { font-family: 'Sora', sans-serif; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Animated background */
.bg-animation { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.circle { position: absolute; border-radius: 50%; background: rgba(255,156,65,0.06); animation: float 20s infinite ease-in-out; }
.circle:nth-child(1) { width: 80px; height: 80px; top: 10%; right: 10%; }
.circle:nth-child(2) { width: 140px; height: 140px; top: 65%; right: 75%; animation-delay: 2s; }
.circle:nth-child(3) { width: 60px; height: 60px; top: 40%; right: 65%; animation-delay: 4s; }
@keyframes float {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(-30px,-30px) scale(1.1); }
    66% { transform: translate(20px,20px) scale(0.9); }
}

/* Nav */
nav {
    position: sticky; top: 0; width: 100%;
    background: rgba(10,15,20,0.85); backdrop-filter: blur(15px);
    padding: 1rem 0; z-index: 1000; border-bottom: 1px solid var(--line);
}
nav .container { display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-size: 1.3rem; font-weight: 700; color: var(--text); text-decoration: none; }
nav ul { list-style: none; display: flex; gap: 1rem; }
nav a { color: var(--dim); text-decoration: none; font-weight: 500; padding: 0.4rem 0.9rem; border-radius: 6px; transition: all .3s; }
nav a:hover, nav a.active { background: var(--surface-2); color: var(--text); }

/* Hero */
.games-hero { text-align: center; padding: 4rem 1.5rem 2rem; }
.games-hero h1 { font-weight: 700; font-size: 2.6rem; letter-spacing: -0.01em; margin-bottom: .8rem; }
.games-hero p { font-size: 1.1rem; color: var(--dim); max-width: 640px; margin: 0 auto; }

/* Grid */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; padding: 2rem 0 4rem; }
.game-card {
    display: block; text-decoration: none; color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line); border-radius: 12px; padding: 2rem;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
a.game-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 16px 32px rgba(0,0,0,0.35); }
.game-card.soon { opacity: .55; }
/* "New" / "Soon" ribbons, set from the back office. */
.game-card { position: relative; }
.game-badge {
    position: absolute; top: 1rem; left: 1rem;
    font-size: .78rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px;
}
.game-badge-new { background: var(--live); color: #052e16; }
.game-badge-soon { background: var(--surface-2); color: var(--dim); border: 1px solid var(--line); }
.game-emoji { font-size: 2.6rem; display: block; margin-bottom: 1rem; }
.game-card h2 { font-size: 1.4rem; margin-bottom: .6rem; }
.game-card p { color: var(--dim); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.tag {
    font-family: 'IBM Plex Mono', monospace; font-size: .74rem;
    background: var(--surface-2); border: 1px solid var(--line);
    color: var(--dim); padding: .25rem .7rem; border-radius: 4px;
}
.play-cta { display: inline-block; margin-top: .5rem; font-weight: 700; color: var(--accent); }

footer { text-align: center; padding: 2rem; background: #070a0d; color: var(--dim); border-top: 1px solid var(--line); }

/* Idea suggestion box */
.idea-box { margin: 2rem 0 0; }
.idea-toggle {
    width: 100%; display: flex; align-items: center; gap: .7rem;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 10px; color: var(--text); font: inherit; font-size: .95rem; font-weight: 500;
    padding: .9rem 1.3rem; cursor: pointer; text-align: right;
    transition: border-color .25s;
}
.idea-toggle:hover { border-color: var(--accent); }
.idea-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.idea-icon { font-size: 1.15rem; line-height: 1; }
.idea-toggle-text { flex: 1; color: var(--dim); }
.idea-arrow { font-size: .9rem; color: var(--dim); transition: transform .3s ease; }
.idea-toggle[aria-expanded="true"] .idea-arrow { transform: rotate(180deg); }

.idea-panel-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.idea-panel-wrap.is-open { grid-template-rows: 1fr; }
.idea-panel { overflow: hidden; min-height: 0; }
.idea-panel-inner {
    padding: 1.4rem 1.3rem .2rem; background: var(--surface);
    border: 1px solid var(--line); border-top: none; border-radius: 0 0 10px 10px;
}
.idea-intro { color: var(--dim); margin-bottom: 1rem; line-height: 1.7; }
.idea-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.idea-list li { position: relative; padding-right: 1.4rem; color: var(--dim); line-height: 1.6; }
.idea-list li::before { content: "▸"; position: absolute; right: 0; color: var(--accent); }
.idea-cta {
    display: inline-block; background: var(--accent); color: #1a1206; font-weight: 700;
    text-decoration: none; padding: .75rem 1.6rem; border-radius: 6px;
    transition: transform .25s, box-shadow .25s;
}
.idea-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,156,65,0.25); }
.idea-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.idea-footnote { margin-top: 1rem; padding-bottom: 1.4rem; font-size: .82rem; color: var(--dim); opacity: .75; }

@media (prefers-reduced-motion: reduce) {
    .idea-panel-wrap, .idea-arrow { transition: none; }
}

@media (max-width: 600px) {
    .games-hero h1 { font-size: 2rem; }
    .idea-toggle { font-size: .9rem; padding: .8rem 1rem; }
    .idea-panel-inner { padding: 1.2rem 1rem .2rem; }
}
