/* Shared play chrome for the ten vault rounds. Scoped so other games are untouched. */

.vr-page .game-screen {
    display: none;
    min-height: 100vh;
}

.vr-page .game-screen.active {
    display: block;
}

.vr-page.game-menu-active #game-header {
    display: none !important;
}

.vr-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 12px 32px;
}

.vr-page.with-game-header .vr-shell {
    padding-top: 5.4rem;
}

.vr-hud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 12px;
}

.vr-stat {
    flex: 1 1 120px;
    min-height: 64px;
    border: 2px solid currentColor;
    border-radius: 14px;
    padding: 8px 10px;
    background: color-mix(in srgb, canvas 88%, transparent);
}

.vr-stat span {
    display: block;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vr-num {
    font-family: "Segoe UI", "Outfit", system-ui, sans-serif !important;
    font-variant-numeric: tabular-nums lining-nums;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.2;
}

.vr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.vr-btn {
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 2px solid currentColor;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.vr-btn:focus-visible,
.vr-cell:focus-visible,
.vr-page button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.vr-live {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.vr-page .modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(12, 16, 20, 0.55);
    padding: 24px 12px;
}

.vr-page .modal.active { display: flex; align-items: flex-start; justify-content: center; }

.vr-page .modal-content {
    width: min(560px, 100%);
    background: #fffdf8;
    color: #1c2430;
    border-radius: 18px;
    padding: 18px;
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.vr-grid, .ph-grid, .ss-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.vr-cell, .ph-tile, .ss-cell, .vv-cell {
    min-height: 44px;
    border: 2px solid currentColor;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
}

.vv-grid { display: grid; gap: 4px; }
.oe-pool, .oe-hand, .nn-levels, .ee-levels, .es-platforms, .pp-pad {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mm-input, .ph-modal input, #vv-input, #ff-slider {
    width: 100%;
    min-height: 44px;
    font-size: 1.2rem;
}
.nn-garden { position: relative; width: 100%; max-width: 640px; margin: 0 auto; }
.nn-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.nn-flower {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 18%;
    min-width: 48px;
    min-height: 48px;
    border-radius: 40% 40% 46% 46%;
    border: 2px solid #1c2a1a;
    background: #fff8e7;
    color: #1c2a1a;
}
.nn-flower-wasp { background: #f3d2cf; }
.nn-flower-gate { border-radius: 12px; background: #d7f4ec; }
.nn-flower.is-cursor { outline: 3px dashed #1c2a1a; }
.nn-flower.is-on { box-shadow: inset 0 0 0 3px #5b8c3e; }
.nn-wing { fill: rgba(255,255,255,.85); animation: nn-flap .18s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes nn-flap { to { transform: scaleY(.4); } }
.nn-honey { fill: #F5B301; }
.nn-glass { fill: none; stroke: #1c2a1a; stroke-width: 2; }
.nn-jar { width: 64px; height: 80px; }
.es-timer { height: 12px; border: 2px solid currentColor; border-radius: 99px; overflow: hidden; }
.es-timer span { display: block; height: 100%; background: #E63946; }
.pp-ring { width: 72px; height: 72px; border: 6px solid currentColor; border-radius: 50%; margin: 8px auto; }
.ff-bar { width: 100%; height: 64px; }
.ff-metal { fill: #ffd9a0; stroke: #6b7280; }
.ff-cut { stroke: #b23a1e; stroke-width: 3; }
.ee-pans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.oe-card { min-width: 72px; }

@media (max-width: 420px) {
    .ee-pans { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .nn-wing, .pp-ring, .es-train { animation: none !important; }
}

.vr-page .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.vr-help p { margin: 0 0 10px; }

@media (prefers-reduced-motion: reduce) {
    .vr-page .vr-motion {
        animation: none !important;
        transition: none !important;
    }
}
