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

body {
    background-color: #6ab04c;
    font-family: 'VT323', monospace;
    min-height: 100vh;
}

/* ── Nav ── */
nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px 40px;
    background: rgba(0, 0, 0, 0.2);
}

/* Game Navigation */
nav.game-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 16px 0;
    background: none; 
}

.nav-back {
    font-family: 'Press Start 2P', monospace;
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-back:hover { color: #fff176; }

.nav-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 13px;
    color: #fff;
    letter-spacing: 2px;
}

/* ── Page header ── */
.page-header {
    text-align: center;
    padding: 10px 20px 32px;
}

.page-header h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 28px;
    color: #fff;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
    letter-spacing: 3px;
}

.page-header p {
    margin-top: 16px;
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

/* ── Two-column card grid ── */
.hobbies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px 60px;
}

.hobby-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(0,0,0,0.15);
    transition: transform 0.15s;
}

.hobby-card:hover {
    transform: translateY(-4px);
}

.hobby-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #c8e6c9;
}

.hobby-card-body {
    padding: 20px;
}

.hobby-card-tag {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 6px;
    padding: 5px 8px;
    border-radius: 2px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.hobby-card-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.6;
}

.hobby-card-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    font-weight: 400;
}

.game-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.game-nav-link {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.4);
    letter-spacing: 1px;
}

.game-nav-link:hover { color: #fff176; }

/* Hobby popup */
#hobby-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

#hobby-popup-overlay.active {
    display: flex;
}

#hobby-popup {
    background: transparent;
    border-radius: 0;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hobby-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e74c3c;
    color: #fff;
    border: none;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.hobby-slider {
    position: relative;
    width: 100%;
}

#hobby-slider-img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.hobby-slider-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 40px;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 210;
}

.hobby-slider-btn.left  { left: 24px; }
.hobby-slider-btn.right { right: 24px; }
.hobby-slider-btn.left  { left: 8px; }
.hobby-slider-btn.right { right: 8px; }

#hobby-slider-dots {
    text-align: center;
    margin-top: 12px;
}

.hobby-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 4px;
    cursor: pointer;
}

.hobby-dot.active { background: #e74c3c; }