:root {
    --paper: #f3ead7;
    --paper-dark: #e4d7bb;
    --ink: #2b1d14;
    --wood: #6b4a2f;
    --wood-dark: #3e281c;
    --gold: #c8a96b;
    --gold-soft: #e2c998;
    --mist: rgba(20, 12, 8, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--paper);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* celá stránka */
.menu-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* tmavý filter nad background image */
.menu-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(15, 10, 7, 0.35), rgba(15, 10, 7, 0.55)),
        radial-gradient(circle at center, rgba(255,255,255,0.04), transparent 40%);
    backdrop-filter: blur(2px);
}

/* hlavný panel */
.menu-panel {
    position: relative;
    z-index: 1;
    width: min(900px, 92vw);
    padding: 36px 40px 42px;
    border-radius: 28px;
    background: rgba(35, 22, 15, 0.60);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

/* nadpis */
.menu-title {
    margin: 0 0 28px;
    text-align: center;
    font-size: clamp(2.4rem, 4vw, 4rem);
    letter-spacing: 0.04em;
    color: var(--paper);
    text-shadow:
        0 2px 8px rgba(0,0,0,0.35),
        0 0 20px rgba(226, 201, 152, 0.12);
}

/* karta s pravidlami */
.rules-card {
    background: linear-gradient(145deg, rgba(243,234,215,0.96), rgba(228,215,187,0.92));
    color: var(--ink);
    border-radius: 22px;
    padding: 28px 30px;
    box-shadow:
        0 14px 35px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.55);
    border: 1px solid rgba(80, 55, 35, 0.12);
}

.rules-card h2 {
    margin: 0 0 18px;
    text-align: center;
    font-size: 2rem;
    color: #2c1d14;
}

.rules-card p {
    margin: 0 0 16px;
    font-size: 1.08rem;
    line-height: 1.6;
}

.rules-card ul {
    margin: 10px 0 18px 24px;
    padding: 0;
}

.rules-card li {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

/* sekcia tlačidiel */
.menu-actions {
    margin-top: 34px;
    text-align: center;
}

.menu-actions h2 {
    margin: 0 0 22px;
    font-size: 2rem;
    color: var(--paper);
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* zen button */
.zen-button {
    min-width: 280px;
    padding: 16px 28px;
    border: none;
    border-radius: 999px;
    cursor: pointer;

    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;

    color: #2b1d14;
    background:
        linear-gradient(145deg, var(--gold-soft), var(--gold));
    box-shadow:
        0 8px 18px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.45);

    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.zen-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow:
        0 12px 24px rgba(0,0,0,0.26),
        inset 0 1px 0 rgba(255,255,255,0.55);
}

.zen-button:active {
    transform: translateY(0);
    box-shadow:
        0 4px 10px rgba(0,0,0,0.2),
        inset 0 2px 5px rgba(0,0,0,0.18);
}

.zen-button-secondary {
    background:
        linear-gradient(145deg, #d7ccb5, #bca98b);
    color: #2a1c13;
}

.zen-button-loading {
    pointer-events: none; /* zablokuje ďalšie kliky */
    cursor: wait;

    color: #3a2a1d;

    background:
        linear-gradient(145deg, #e7d49a, #d8b85f);

    box-shadow:
        0 6px 14px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.35);

    filter: brightness(0.98);
    transform: scale(0.98);

    position: relative;
}

/* jemná pulzácia počas loadingu */
.zen-button-loading {
    animation: zenLoadingPulse 1.2s ease-in-out infinite;
}

@keyframes zenLoadingPulse {
    0% {
        transform: scale(0.98);
        filter: brightness(0.96);
    }
    50% {
        transform: scale(1);
        filter: brightness(1.03);
    }
    100% {
        transform: scale(0.98);
        filter: brightness(0.96);
    }
}




/* mobile */
@media (max-width: 768px) {
    .menu-panel {
        padding: 26px 20px 30px;
    }

    .rules-card {
        padding: 22px 18px;
    }

    .rules-card p,
    .rules-card li {
        font-size: 1rem;
    }

    .zen-button {
        min-width: 100%;
    }
}