/* ============================================
   GAMES CSS — Mini-game UI for all phases
   Mirror · Hobbit · Compassion · Game Theory
   ============================================ */

/* ── Phase Header ── */
.part-title {
    font-size: 0.7rem;
    color: #80808a;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 0.4rem;
}

.phase-progress {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.6rem;
}

.phase-label {
    font-size: 0.65rem;
    color: #606070;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.phase-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.phase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2a2a3a;
    border: 1px solid #404050;
    transition: background 0.3s, border-color 0.3s;
}

.phase-dot.active {
    background: #00FF88;
    border-color: #00FF88;
    box-shadow: 0 0 6px #00FF88;
}

.phase-dot.completed {
    background: #006640;
    border-color: #00CC66;
}

/* ── Hint section (disabled) ── */
.hint-section, .hint-toggle, .hint-text {
    display: none !important;
}

/* ── Memory Flash Overlay ── */
.memory-flash-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: flashIn 0.4s ease;
}

.memory-flash-overlay.fading {
    animation: flashOut 0.6s ease forwards;
}

@keyframes flashIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes flashOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.memory-flash-content {
    text-align: center;
    padding: 3rem;
    max-width: 560px;
}

.memory-flash-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #606070;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.memory-flash-token {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    color: #00FF88;
    text-shadow: 0 0 20px #00FF88;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.memory-flash-warning {
    font-size: 0.8rem;
    color: #808090;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.memory-flash-bar {
    width: 100%;
    height: 3px;
    background: #1a1a2a;
    border-radius: 2px;
    overflow: hidden;
}

.memory-flash-fill {
    height: 100%;
    background: #00FF88;
    width: 0%;
    transition: width 0.1s linear;
}

/* ─────────────────────────────────────────────
   MIRROR OF ERISED (Gate 1c)
───────────────────────────────────────────── */
.mirror-game {
    text-align: center;
}

.mirror-intro {
    color: #a0a0b0;
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.mirror-frame {
    border: 2px solid #3a3050;
    border-radius: 50% / 10%;
    padding: 2rem 1.5rem;
    margin: 0 auto 1.5rem;
    max-width: 400px;
    background: linear-gradient(160deg, #0d0d1a 0%, #1a1230 100%);
    box-shadow: 0 0 30px rgba(100, 60, 200, 0.15), inset 0 0 40px rgba(100, 60, 200, 0.05);
    position: relative;
}

.mirror-frame.mirror-small {
    border-radius: 12px;
    padding: 1.5rem;
}

.mirror-glass {
    position: relative;
}

.mirror-shimmer {
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg,
        transparent 40%,
        rgba(160, 120, 255, 0.04) 50%,
        transparent 60%);
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-60%) rotate(0deg); opacity: 0.3; }
    50%       { transform: translateX(60%) rotate(5deg);  opacity: 0.8; }
}

.mirror-sees {
    font-size: 0.7rem;
    color: #605878;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.mirror-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.mirror-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid #2a2240;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    text-align: left;
}

.mirror-glyph {
    font-size: 1.4rem;
    color: #8060d0;
    min-width: 2rem;
    text-align: center;
}

.mirror-option p {
    font-size: 0.82rem;
    color: #a090c8;
    margin: 0;
    line-height: 1.4;
}

.mirror-sub {
    font-size: 0.7rem;
    color: #605878;
}

.mirror-warning {
    font-size: 0.78rem;
    color: #706888;
    font-style: italic;
    line-height: 1.7;
    margin: 0;
}

.mirror-question {
    font-size: 0.82rem;
    color: #a090c8;
    margin-bottom: 0.5rem;
}

.mirror-ask {
    font-size: 0.9rem;
    color: #c0b0e0;
    line-height: 1.7;
}

.mirror-hint-text {
    font-size: 0.72rem;
    color: #504860;
    margin-top: 0.8rem;
    font-style: italic;
}

.mirror-subtext {
    font-size: 0.78rem;
    color: #706888;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.mirror-second {
    padding: 0.5rem 0;
}

/* ─────────────────────────────────────────────
   HOBBIT RIDDLES (Gate 2a)
───────────────────────────────────────────── */
.hobbit-game {
    text-align: center;
}

.hobbit-scene {
    margin-bottom: 1.2rem;
}

.hobbit-progress {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: #605050;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.hobbit-speaker {
    font-size: 0.7rem;
    color: #907060;
    font-style: italic;
    margin-bottom: 0.6rem;
}

.hobbit-riddle {
    font-style: italic;
    color: #c8b898;
    border-left: 3px solid #604030;
    padding-left: 1rem;
    text-align: left;
    line-height: 1.8;
    font-size: 0.78rem;              /* shrink hobbit riddle text */
}

.hobbit-mercy {
    text-align: center;
}

.hobbit-choices {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.hobbit-choice-prompt {
    font-size: 0.85rem;
    color: #a09080;
    margin: 1rem 0 0.5rem;
}

.hobbit-btn-bad {
    border-color: #803030 !important;
    color: #c06060 !important;
}

.hobbit-btn-bad:hover {
    background: rgba(128, 48, 48, 0.15) !important;
}

.hobbit-btn-good {
    /* inherits from .hunt-btn.submit */
}

/* ─────────────────────────────────────────────
   COMPASSION GAME (Gate 2c)
───────────────────────────────────────────── */
.compassion-game {
    text-align: center;
}

.compassion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.compassion-progress {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: #606070;
    text-transform: uppercase;
}

.compassion-timer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: #00FF88;
    font-weight: bold;
    min-width: 2rem;
    text-align: right;
    transition: color 0.3s;
}

.compassion-scenario {
    margin-bottom: 1.2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 1rem;
}

.compassion-situation {
    font-size: 0.83rem;
    color: #b0b0c0;
    line-height: 1.8;
    margin: 0;
}

.compassion-choices {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.compassion-btn {
    width: 100%;
    justify-content: center;
}

.compassion-fail {
    padding: 1rem;
}

.compassion-fail-msg {
    color: #e04060;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.compassion-fail-sub {
    color: #808090;
    font-size: 0.78rem;
    margin-bottom: 1.2rem;
}

.compassion-win {
    text-align: center;
    padding: 1rem;
}

.compassion-win-msg {
    font-size: 1rem;
    color: #00FF88;
    margin-bottom: 0.5rem;
}

.compassion-win-sub {
    color: #808090;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.compassion-win-quote {
    font-style: italic;
    color: #a0a0b0;
    font-size: 0.82rem;
}

/* ─────────────────────────────────────────────
   GAME THEORY SIMULATION (Gate 6a)
───────────────────────────────────────────── */
.gametheory-game {
    text-align: left;
}

.gt-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.gt-progress {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: #606070;
    text-transform: uppercase;
}

.gt-scenario {
    background: rgba(255,255,255,0.02);
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.gt-title {
    font-size: 0.85rem;
    color: #c0c0d0;
    margin: 0 0 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.gt-opponent-note {
    font-size: 0.72rem;
    color: #808090;
    background: rgba(0, 255, 136, 0.04);
    border-left: 2px solid #00CC66;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.7rem;
    border-radius: 0 4px 4px 0;
}

.gt-situation {
    font-size: 0.82rem;
    color: #a0a0b0;
    line-height: 1.8;
    margin: 0;
}

.gt-choices {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gt-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
}

.gt-final {
    text-align: left;
}

.gt-results {
    background: rgba(255,255,255,0.02);
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.gt-results-text {
    font-size: 0.82rem;
    color: #a0a0b0;
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.gt-insight {
    font-size: 0.8rem;
    color: #808090;
    line-height: 1.8;
    border-left: 2px solid #303040;
    padding-left: 0.8rem;
    margin-bottom: 0.8rem;
}

.gt-question {
    font-size: 0.9rem;
    color: #c0c0d0;
    font-style: italic;
    margin: 0;
}

/* ─────────────────────────────────────────────
   SLOT MACHINE (Gate 6c) — inherits existing
   .slot-machine styles from style.css
───────────────────────────────────────────── */
.slot-machine-wrapper {
    text-align: center;
}

.slot-machine-wrapper .slot-header {
    margin-bottom: 1rem;
}

.slot-machine-wrapper .slot-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: #c8a860;
    letter-spacing: 0.15em;
}

.slot-machine-wrapper .slot-display {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 0.6rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid #2a2a3a;
    border-radius: 6px;
}

.slot-machine-wrapper .slot-score,
.slot-machine-wrapper .slot-jackpot {
    text-align: center;
}

.slot-machine-wrapper .score-label,
.slot-machine-wrapper .jackpot-label {
    display: block;
    font-size: 0.55rem;
    color: #505060;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.slot-machine-wrapper .score-value,
.slot-machine-wrapper .jackpot-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: #c8a860;
}

.slot-machine-wrapper .slot-reels {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.slot-machine-wrapper .reel {
    width: 80px;
    height: 80px;
    background: #0d0d1a;
    border: 2px solid #303040;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.2s;
}

.slot-machine-wrapper .reel.spinning {
    border-color: #c8a860;
    animation: reelSpin 0.1s linear infinite;
}

@keyframes reelSpin {
    0%   { transform: scaleY(1); }
    50%  { transform: scaleY(0.95); }
    100% { transform: scaleY(1); }
}

.slot-machine-wrapper .reel-inner {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot-machine-wrapper .reel-inner img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.slot-machine-wrapper .slot-result {
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
}

.slot-machine-wrapper .slot-result.win {
    background: rgba(0, 200, 100, 0.08);
    color: #00CC66;
    border: 1px solid #00CC66;
}

.slot-machine-wrapper .slot-result.lose {
    background: rgba(200, 50, 50, 0.08);
    color: #e06060;
    border: 1px solid #803030;
}

.slot-machine-wrapper .slot-controls {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.slot-machine-wrapper .slot-spin {
    /* inherits hunt-btn.action */
}

.slot-machine-wrapper .slot-wisdom {
    margin-bottom: 0.6rem;
}

.slot-machine-wrapper .wisdom-text {
    font-size: 0.75rem;
    color: #806040;
    font-style: italic;
}

.slot-machine-wrapper .challenge-hint {
    margin-top: 0.6rem;
}

.slot-machine-wrapper .skinner-riddle {
    margin-top: 0.6rem;
}

/* hunt-btn.action (gold) — used for slot spin */
.hunt-btn.action {
    background: linear-gradient(135deg, #c8a820, #a07818);
    color: #0d0d1a;
    font-weight: 700;
    border: none;
}

.hunt-btn.action:hover {
    background: linear-gradient(135deg, #e0c030, #c09020);
    transform: translateY(-1px);
}
