* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

:root {
    --room-dark: #1c140c;
    --wood-dark: #2a1b07;
    --wood-mid: #8a5a34;
    --paper-text: #f0e9dc;
    --peg-red: #c23b3b;
    --felt-green: #1b3a1d;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--room-dark);
    color: var(--paper-text);
}

.shelf-room {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.name {
    margin: 0 0 6px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.2rem;
    letter-spacing: 0.5px;
    color: var(--paper-text);
}

.intro {
    margin: 0 0 40px;
    color: var(--wood-mid);
    font-size: 1rem;
}

.shelf {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding-top: 16px;
    border-top: 10px solid;
    border-image-slice: 10;
    border-image-source: url("../assets/img/wood.png");
    width: min(560px, 90vw);
}

.game-tile {
    flex: 1 1 220px;
    min-width: 200px;
    padding: 28px 20px;
    text-decoration: none;
    color: #f4efe3;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.55);
}

.game-tile.mastermind {
    background: linear-gradient(160deg, var(--peg-red), #8f2b2b);
}

.game-tile.blackjack {
    background: linear-gradient(160deg, var(--felt-green), #0f2410);
}

.game-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.game-desc {
    font-size: 0.9rem;
    opacity: 0.85;
}