/* SpiralTower24 – front-end styles */
.spiraltower24-canvas-wrap {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: block;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    border-radius: 4px;
}

.spiraltower24-canvas-wrap:active {
    cursor: grabbing;
}

.spiraltower24-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    outline: none;
}

/* ── Lightbox ─────────────────────────────────────────────────────────── */
.spiraltower24-lightbox {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(6px);
    animation: st24-lb-in 0.25s ease both;
}

.spiraltower24-lightbox[style*="display:none"],
.spiraltower24-lightbox[style*="display: none"] {
    display: none !important;
    animation: none;
}

@keyframes st24-lb-in {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

.st24-lb-img {
    max-width: 90%;
    max-height: 88%;
    border-radius: 6px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.9);
    object-fit: contain;
    display: block;
}

.st24-lb-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st24-lb-close:hover {
    background: rgba(255,255,255,0.22);
}

/* ── Hint ──────────────────────────────────────────────────────────────── */
.spiraltower24-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    letter-spacing: 0.12em;
    font-family: sans-serif;
    pointer-events: none;
    white-space: nowrap;
    animation: st24-hint-fade 4s ease 2s forwards;
}

@keyframes st24-hint-fade {
    from { opacity: 1; }
    to   { opacity: 0; }
}
