/* Asylum page: a copy of maze3d.css, cloned 2026-11-13 so the two pages share no files */

.jl-asylum-controls {
    margin-bottom: 15px;
}

.jl-asylum-views {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.jl-asylum-label {
    margin-bottom: 4px;
    font-weight: bold;
}

.jl-asylum-canvas {
    display: block;
    border: 3px solid #333;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

.jl-asylum-buttons {
    margin-top: 10px;
}

.jl-asylum-row {
    text-align: center;
    margin-bottom: 4px;
}

.jl-asylum-button {
    min-width: 100px;
    min-height: 44px;
}

.jl-asylum-hint {
    text-align: center;
    margin-top: 6px;
    color: #555;
    font-size: 0.85em;
}

.jl-asylum-legend {
    margin-top: 4px;
    font-size: 0.85em;
    color: #555;
}

.jl-asylum-start { color: green; }
.jl-asylum-exit { color: red; }
.jl-asylum-you { color: blue; }
.jl-asylum-route { color: orange; }
.jl-asylum-inmate { color: #7b1fa2; }

/* the first-person view and the message laid over it */
.jl-asylum-viewport {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.jl-asylum-viewport .jl-asylum-canvas {
    max-width: 100%;
    height: auto;
}

.jl-asylum-message {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(20, 20, 20, 0.82);
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 1px 2px #000;
    pointer-events: none;
}

.jl-asylum-message:empty {
    display: none;
}

/* a warning: red, across the top, so the corridor ahead stays visible */
.jl-asylum-message[data-kind="danger"] {
    background: rgba(150, 10, 10, 0.88);
    border: 2px solid #ff6b6b;
}

/* shuffling: an inmate is close but has not seen you; amber, milder than the howl */
.jl-asylum-message[data-kind="warning"] {
    background: rgba(120, 78, 0, 0.88);
    border: 2px solid #ffcc66;
}

/* the end of the game: larger, in the middle of the view */
.jl-asylum-message[data-kind="end-bad"],
.jl-asylum-message[data-kind="end-good"] {
    top: 50%;
    transform: translateY(-50%);
    padding: 16px 14px;
    font-size: 1.5em;
}

.jl-asylum-message[data-kind="end-bad"] {
    background: rgba(150, 10, 10, 0.92);
    border: 3px solid #ff6b6b;
}

.jl-asylum-message[data-kind="end-good"] {
    background: rgba(10, 100, 40, 0.92);
    border: 3px solid #7be495;
}

.jl-asylum-count {
    margin-top: 6px;
    font-size: 0.9em;
    color: #555;
}
