/* Maze page UX/UI improvements (kept self-contained) */

:root {
    --maze-bg: #ede6e3;
    --maze-surface: rgba(255, 255, 255, 0.7);
    --maze-surface-solid: #ffffff;
    --maze-text: #210124;
    --maze-muted: rgba(33, 1, 36, 0.72);
    --maze-brand: #f06449;
    --maze-brand-2: #7d82b8;
    --maze-border: rgba(33, 1, 36, 0.12);
    --maze-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    --maze-radius: 18px;
}

/* Base */
body {
    background: radial-gradient(1200px 500px at 50% -150px, rgba(125, 130, 184, 0.18), transparent 60%),
        radial-gradient(900px 420px at 10% 10%, rgba(240, 100, 73, 0.10), transparent 55%),
        var(--maze-bg);
    color: var(--maze-text);
}

/* Hero */
.maze-hero {
    margin: 22px auto 18px;
    padding: 18px 18px 16px;
    background: var(--maze-surface);
    border: 1px solid var(--maze-border);
    border-radius: var(--maze-radius);
    box-shadow: var(--maze-shadow);
    backdrop-filter: blur(10px);
}

.maze-hero h1 {
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.12;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.maze-hero p {
    margin: 0;
    color: var(--maze-muted);
    font-size: 16px;
    line-height: 1.55;
}

.maze-hero__meta {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.maze-hero__meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(33, 1, 36, 0.08);
    border-radius: 14px;
    font-weight: 600;
    color: rgba(33, 1, 36, 0.85);
}

@media (min-width: 768px) {
    .maze-hero__meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Main layout spacing */
#center {
    padding: 12px 0 28px;
}

/* Improve note */
#note {
    max-width: 280px;
    margin: 0 auto;
}

#note p {
    margin: 6px 0;
    font-size: 0.95em;
}

#note kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9em;
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid rgba(33, 1, 36, 0.18);
    background: rgba(255, 255, 255, 0.6);
}

/* Youtube widget: keep it off-screen for small heights */
@media (max-height: 425px) {

    #youtube,
    #youtube-card {
        display: none !important;
    }
}

/* Note hint in the game area */
#note .maze-instructions__hint {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(33, 1, 36, 0.08);
    border-radius: 14px;
    padding: 10px 12px;
}

#note .maze-instructions__kbd {
    display: inline-block;
    margin-left: 6px;
}