/* Bonfire - Clean Console UI */

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

:root {
    --bg: #0a0a12;
    --surface: #16161f;
    --text: #ffffff;
    --text-dim: #888;
    --accent: #ff6b35;
    --radius: 16px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    height: 100vh;
}

#app {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* System Bar */
.system-bar {
    position: fixed;
    top: 24px;
    right: 32px;
    z-index: 100;
    font-size: 14px;
    color: var(--text-dim);
}

/* Main scrollable area */
.main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.main::-webkit-scrollbar { display: none; }
.main { scrollbar-width: none; }

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    padding: 48px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, rgba(10,10,18,0.7) 50%, rgba(10,10,18,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255,107,53,0.2);
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn:focus-visible,
.btn.selected {
    box-shadow: 0 0 0 4px var(--accent), 0 0 30px rgba(255,107,53,0.4);
    transform: scale(1.05);
}

/* Game Rows */
.rows {
    padding: 0 0 100px 0;
}

.row {
    margin-bottom: 48px;
}

.row-header {
    padding: 0 48px 16px;
    font-size: 20px;
    font-weight: 600;
}

.row-scroll {
    display: flex;
    gap: 20px;
    padding: 16px 48px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll { scrollbar-width: none; }

/* Game Cards */
.card {
    flex-shrink: 0;
    width: 320px;
    height: 180px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    background: var(--surface);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-dev {
    font-size: 13px;
    color: var(--text-dim);
}

/* Card Focus/Selected State */
.card:focus-visible,
.card.selected {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 0 0 4px var(--accent), 0 20px 60px rgba(0,0,0,0.5);
}

.card:focus-visible .card-info,
.card.selected .card-info {
    opacity: 1;
    transform: translateY(0);
}

.card:focus-visible img,
.card.selected img {
    transform: scale(1.05);
}

/* Controller Prompts */
.prompts {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 14px;
    color: var(--text-dim);
}

kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    margin-right: 8px;
}
