/* ── Zoltan Fortune Teller Plugin ── */

#zoltan-game-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ── Stage ── */
.zoltan-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

/* ── Video Frame ── */
.zoltan-video-frame {
    position: relative;
    width: 100%;
    max-width: 680px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #000;
    line-height: 0;
}

.zoltan-video-frame video {
    width: 100%;
    display: block;
    border-radius: 12px;
}

/* ── Fortune Card ── */
.zoltan-fortune-card {
    width: 100%;
    max-width: 680px;
    min-height: 90px;
    border-left: 4px solid #4169A8;
    border-top: 1px solid #e8edf8;
    border-right: 1px solid #e8edf8;
    border-bottom: 1px solid #e8edf8;
    border-radius: 0 10px 10px 0;
    background: #fff;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.zoltan-fortune-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #4169A8;
}

#zoltan-fortune {
    font-size: 1.2rem;
    font-style: italic;
    color: #444;
    line-height: 1.6;
    min-height: 1.6em;
    white-space: pre-wrap;
}

#zoltan-fortune.thinking-state {
    font-size: 0.9rem;
    font-style: normal;
    color: #888;
}

.zoltan-fortune-placeholder {
    color: #bbb;
    font-style: italic;
    font-size: 0.95rem;
}

/* Typewriter cursor */
.zoltan-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: #4169A8;
    vertical-align: text-bottom;
    margin-left: 1px;
    animation: zoltan-blink 0.7s step-end infinite;
}

@keyframes zoltan-blink { 50% { opacity: 0; } }

/* ── Button ── */
#zoltan-button {
    height: 50px;
    padding: 0 2.5rem;
    background: #4169A8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.15s;
}

#zoltan-button:hover { background: #305090; }

#zoltan-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ── Lore Grid ── */
.zoltan-lore {
    border-top: 1px solid #e8edf8;
    padding-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.zoltan-lore-block strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 0.4rem;
}

.zoltan-lore-block p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ── Noscript ── */
.zoltan-noscript {
    padding: 0.75rem 1rem;
    background: #fff4e5;
    border-left: 4px solid #d97706;
    color: #92400e;
    font-size: 0.9rem;
    margin: 0;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .zoltan-cursor { animation: none; }
    #zoltan-button { transition: none; }
}

/* ── Mobile ≤ 768px ── */
@media (max-width: 768px) {
    #zoltan-game-wrapper { padding: 0 20px; }

    .zoltan-video-frame { width: 100%; max-width: 100%; }
    .zoltan-lore { grid-template-columns: 1fr; }

    #zoltan-fortune { font-size: 1rem; }
}
