/* =========================
GLOBAL RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

/* =========================
LANDING PAGE
========================= */

.landing-page {
    height: 100vh;
    background:
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8)),
        url('https://images.unsplash.com/photo-1511512578047-dfb367046420?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    color: white;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.landing-container {
    position: relative;
    z-index: 2;
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-area {
    text-align: center;
    margin-bottom: 60px;
}

.logo-area h1 {
    font-size: 72px;
    color: #FFD700;
    letter-spacing: 4px;
    margin-bottom: 15px;

    text-shadow:
        0 0 10px #FFD700,
        0 0 20px #FFD700;
}

.logo-area p {
    font-size: 24px;
    color: #ddd;
}

.button-group {
    display: flex;
    gap: 40px;
}

.main-btn {
    width: 280px;
    height: 120px;

    border: none;
    border-radius: 20px;

    font-size: 28px;
    font-weight: bold;
    cursor: pointer;

    transition: 0.3s;

    display: flex;
    justify-content: center;
    align-items: center;

    text-decoration: none;
    color: white;
}

.admin-btn {
    background: #c0392b;
}

.display-btn {
    background: #27ae60;
}

.main-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(255,255,255,0.5);
}

@media(max-width:900px) {
    .button-group {
        flex-direction: column;
    }

    .logo-area h1 {
        font-size: 48px;
    }

    .main-btn {
        width: 240px;
        height: 100px;
        font-size: 24px;
    }
}

/* =========================
ADMIN PAGE
========================= */

.admin-page {
    background: #0f172a;
    color: white;
    min-height: 100vh;
    padding: 20px;
}

.admin-container {
    max-width: 1600px;
    margin: auto;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-topbar h1 {
    color: #FFD700;
    font-size: 42px;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
}

.game-settings {
    background: #1e293b;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 25px;
}

.pattern-row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.input-group label {
    margin-bottom: 10px;
    font-size: 18px;
    color: #ccc;
}

.input-group input {
    height: 55px;
    border: none;
    border-radius: 12px;
    padding: 0 15px;
    font-size: 20px;
}

.control-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.control-buttons button {
    flex: 1;
    height: 70px;
    border: none;
    border-radius: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.start-btn { background: #27ae60; color: white; }
.end-btn { background: #c0392b; color: white; }
.reset-btn { background: #f39c12; color: white; }

.number-board {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 12px;
}

.number-btn {
    height: 75px;
    border: none;
    border-radius: 15px;
    background: #334155;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.number-btn:hover {
    transform: scale(1.05);
}

.number-btn.selected {
    background: #FFD700;
    color: black;
    box-shadow: 0 0 15px #FFD700, 0 0 30px #FFD700;
}

@media (max-width: 1000px) {

    .pattern-row {
        flex-direction: column;
    }

    .number-board {
        grid-template-columns: repeat(6, 1fr);
    }
}