/* Cheat Menu System Styles - Typewriter Terminal */

/* fonts: css/fonts.css (shipped with the game) */

.cheat-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2520 0%, #1a1815 100%);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
    font-family: 'Special Elite', 'Courier New', monospace;
}

/* ═══════════════════════════════════════════════════════════════
   NOTES STACKS (On the Desk)
   ═══════════════════════════════════════════════════════════════ */

.cheat-notes-container {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 20px;
    pointer-events: auto;
    max-width: 400px;
}

.cheat-notes-stack {
    position: relative;
    height: 90px;
    width: 145px;
    pointer-events: auto;
    flex-shrink: 0;
    cursor: pointer;
    padding: 5px;
}

/* Expand button */
.cheat-stack-expand-btn {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 16px;
    background: #3a3a3a;
    border: 1px solid #5a5a5a;
    border-radius: 3px;
    color: #888;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    transition: all 0.2s ease;
}

.cheat-stack-expand-btn:hover {
    background: #4a4a4a;
    color: #f4e4c0;
}

.cheat-note-slip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 130px;
    padding: 10px 12px;
    background: linear-gradient(145deg, #f8f0d8 0%, #e8d8b8 100%);
    border: 1px solid #c4b496;
    border-radius: 2px;
    box-shadow:
        2px 3px 6px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.5);
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 10px;
    color: #1a1815;
    transform-origin: center center;
    transition: all 0.3s ease;
}

/* Paper lines on note */
.cheat-note-slip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 11px,
        rgba(139, 115, 85, 0.08) 11px,
        rgba(139, 115, 85, 0.08) 12px
    );
    pointer-events: none;
    border-radius: 2px;
}

.note-title {
    font-size: 9px;
    color: #8b7355;
    margin-bottom: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.note-effect {
    font-weight: bold;
    font-size: 12px;
    color: #2a5a2a;
    position: relative;
    z-index: 1;
}

.note-count {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 11px;
    font-weight: bold;
    color: #8b7355;
    z-index: 1;
}

.note-time {
    font-size: 8px;
    color: #999;
    margin-top: 5px;
    position: relative;
    z-index: 1;
}

.note-stamp {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
    color: #4a7a3a;
    opacity: 0.8;
    transform: rotate(15deg);
    z-index: 1;
}

/* New note animation */
.cheat-note-slip.dropping {
    animation: noteDrop 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes noteDrop {
    0% {
        opacity: 0;
        transform: translateY(-80px) rotate(0deg) scale(1.3);
    }
    50% {
        opacity: 1;
    }
    70% {
        transform: translateY(8px) rotate(var(--rotation)) scale(1.02);
    }
    85% {
        transform: translateY(-3px) rotate(var(--rotation)) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(var(--rotation)) scale(1);
    }
}

/* Count update pulse */
.cheat-note-slip.pulse {
    animation: countPulse 0.3s ease;
}

@keyframes countPulse {
    0% { transform: rotate(var(--rotation)) scale(1); }
    50% { transform: rotate(var(--rotation)) scale(1.05); }
    100% { transform: rotate(var(--rotation)) scale(1); }
}

/* Stack hover */
.cheat-notes-stack:hover .cheat-note-slip {
    box-shadow:
        3px 5px 10px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

.cheat-note-slip:hover {
    transform: scale(1.02) rotate(var(--rotation)) !important;
    box-shadow:
        4px 6px 12px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.cheat-notes-stack.expanded .cheat-note-slip:hover {
    transform: scale(1.02) rotate(0deg) !important;
}

/* Expanded view */
.cheat-notes-stack.expanded {
    height: auto;
    min-height: 200px;
    z-index: 200;
    display: flex;
    flex-direction: column-reverse;
    background: rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px;
}

.cheat-notes-stack.expanded .cheat-note-slip {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    margin-bottom: 8px;
    transform: rotate(0deg) !important;
    box-shadow:
        3px 5px 10px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

/* New stack slide in */
.cheat-notes-stack.new-stack {
    animation: stackSlideIn 0.4s ease forwards;
}

@keyframes stackSlideIn {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   DESK SURFACE
   ═══════════════════════════════════════════════════════════════ */

.cheat-desk {
    background: linear-gradient(180deg, #4a3f35 0%, #3a322a 100%);
    padding: 30px;
    border-radius: 5px;
    box-shadow:
        0 30px 60px rgba(0,0,0,0.5),
        inset 0 2px 0 rgba(255,255,255,0.1);
    position: relative;
    width: 100%;
    max-width: 900px;
    height: calc(100vh - 40px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Wood grain texture */
.cheat-desk::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.03) 2px,
        rgba(0,0,0,0.03) 4px
    );
    pointer-events: none;
    border-radius: 5px;
}

/* ═══════════════════════════════════════════════════════════════
   TYPEWRITER BODY
   ═══════════════════════════════════════════════════════════════ */

.cheat-typewriter {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 15px 15px 5px 5px;
    padding: 20px;
    position: relative;
    box-shadow:
        0 15px 35px rgba(0,0,0,0.5),
        inset 0 2px 0 rgba(255,255,255,0.1),
        inset 0 -5px 15px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 20px);
}

/* Close button */
.cheat-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #5a4a3a 0%, #4a3a2a 100%);
    border: 2px solid #6a5a4a;
    border-radius: 50%;
    color: #f4e4c0;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow:
        0 2px 5px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.cheat-close-btn:hover {
    background: linear-gradient(135deg, #6a5a4a 0%, #5a4a3a 100%);
    border-color: #7a6a5a;
    transform: scale(1.1);
    box-shadow:
        0 3px 8px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.cheat-close-btn:active {
    transform: scale(1.05);
    box-shadow:
        0 1px 3px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Chrome trim */
.cheat-typewriter::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, #666, #999, #666);
    border-radius: 2px;
}

/* Brand plate */
.cheat-brand-plate {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #8b7355 0%, #6a5a45 100%);
    padding: 8px 20px 6px 20px;
    border-radius: 3px;
    border: 1px solid #a08060;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    text-align: center;
}

.cheat-brand-plate span {
    color: #f4e4c0;
    font-size: 13px;
    letter-spacing: 3px;
    text-shadow: 0 1px 0 rgba(0,0,0,0.5);
    display: block;
}

.brand-subtext {
    color: #d4c4a0;
    font-size: 8px;
    letter-spacing: 1px;
    margin-top: 2px;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   PAPER HOLDER
   ═══════════════════════════════════════════════════════════════ */

.cheat-paper-holder {
    background: #1a1815;
    border-radius: 10px 10px 0 0;
    padding: 15px 15px 0 15px;
    margin-top: 30px;
    position: relative;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.5);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Paper roller */
.cheat-paper-roller {
    position: absolute;
    top: -8px;
    left: 20px;
    right: 20px;
    height: 16px;
    background: linear-gradient(180deg, #333 0%, #1a1a1a 50%, #333 100%);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.cheat-paper-roller::before,
.cheat-paper-roller::after {
    content: '';
    position: absolute;
    top: 3px;
    width: 30px;
    height: 10px;
    background: linear-gradient(180deg, #444, #222);
    border-radius: 2px;
}

.cheat-paper-roller::before { left: 10px; }
.cheat-paper-roller::after { right: 10px; }

/* ═══════════════════════════════════════════════════════════════
   PAPER
   ═══════════════════════════════════════════════════════════════ */

.cheat-paper {
    background: #f4e4c0;
    width: 100%;
    flex: 1;
    padding: 30px;
    position: relative;
    box-shadow:
        0 5px 15px rgba(0,0,0,0.3),
        inset 0 0 30px rgba(139, 115, 85, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* Paper texture - horizontal lines */
.cheat-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 27px,
            rgba(139, 115, 85, 0.1) 27px,
            rgba(139, 115, 85, 0.1) 28px
        );
    pointer-events: none;
}

/* Red margin line */
.cheat-paper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    bottom: 0;
    width: 1px;
    background: rgba(139, 47, 71, 0.3);
}

/* Paper shake on stamp impact */
.cheat-paper.shake {
    animation: paperShake 0.3s ease-out;
}

@keyframes paperShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-3px) rotate(-0.5deg); }
    40% { transform: translateX(3px) rotate(0.5deg); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

/* ═══════════════════════════════════════════════════════════════
   PAPER HEADER
   ═══════════════════════════════════════════════════════════════ */

.cheat-paper-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #8b7355;
}

.cheat-paper-header h1 {
    color: #1a1815;
    font-size: 18px;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.cheat-paper-header .gorilla {
    font-size: 24px;
}

.cheat-paper-header .subtitle {
    color: #8b7355;
    font-size: 10px;
    letter-spacing: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   TYPED CONTENT
   ═══════════════════════════════════════════════════════════════ */

.cheat-typed-content {
    flex: 1;
    margin-bottom: 15px;
    padding-left: 40px;
    padding-right: 10px;
    color: #1a1815;
    font-size: 14px;
    line-height: 28px;
    overflow-y: auto;
    min-height: 0;
}

/* Scrollbar styling */
.cheat-typed-content::-webkit-scrollbar {
    width: 8px;
}

.cheat-typed-content::-webkit-scrollbar-track {
    background: rgba(139, 115, 85, 0.1);
    border-radius: 4px;
}

.cheat-typed-content::-webkit-scrollbar-thumb {
    background: #8b7355;
    border-radius: 4px;
}

.cheat-typed-content::-webkit-scrollbar-thumb:hover {
    background: #6a5a45;
}

.typed-line {
    position: relative;
    margin-bottom: 0;
    min-height: 28px;
}

.typed-line.success {
    color: #2a5a2a;
}

.typed-line.error {
    color: #8b2f47;
}

.typed-line.system {
    color: #666;
}

.typed-line.strikethrough {
    text-decoration: line-through;
    color: #999;
}

/* ═══════════════════════════════════════════════════════════════
   STAMP EFFECTS
   ═══════════════════════════════════════════════════════════════ */

.cheat-stamp-container {
    padding-left: 40px;
    margin-top: 15px;
    perspective: 500px;
}

.cheat-stamp {
    display: inline-block;
    padding: 10px 25px;
    border: 3px solid #8b2f47;
    border-radius: 4px;
    color: #8b2f47;
    font-weight: bold;
    font-size: 14px;
    font-family: 'Special Elite', 'Courier New', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    opacity: 0;
    transform: translateY(-100px) rotate(-15deg) scale(1.5);
    transition: none;
}

.cheat-stamp.slam {
    animation: stampSlam 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes stampSlam {
    0% {
        opacity: 0;
        transform: translateY(-100px) rotate(-15deg) scale(1.5);
    }
    60% {
        opacity: 1;
        transform: translateY(5px) rotate(-3deg) scale(1.05);
    }
    80% {
        transform: translateY(-2px) rotate(-5deg) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(-5deg) scale(1);
    }
}

/* Ink splatter effect */
.cheat-stamp.slam::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(139, 47, 71, 0.3);
    border-radius: 4px;
    opacity: 0;
    animation: inkSpread 0.3s ease-out 0.2s forwards;
}

@keyframes inkSpread {
    0% {
        opacity: 0.8;
        transform: scale(0.95);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

.cheat-stamp.approved {
    border-color: #4a7a3a;
    color: #4a7a3a;
}

.cheat-stamp.approved::before {
    content: '✓ ';
}

.cheat-stamp-border {
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid currentColor;
    border-radius: 2px;
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
   INPUT LINE
   ═══════════════════════════════════════════════════════════════ */

.cheat-input-line {
    display: flex;
    align-items: center;
    padding-left: 40px;
    margin-top: auto;
    border-top: 1px dashed #8b7355;
    padding-top: 15px;
    flex-shrink: 0;
}

.cheat-input-prompt {
    color: #8b2f47;
    margin-right: 10px;
    font-weight: bold;
}

.cheat-paper-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #1a1815;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    letter-spacing: 1px;
}

.cheat-paper-input::placeholder {
    color: #bba;
}

/* Typing cursor */
.cheat-typing-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #1a1815;
    animation: cursorBlink 0.8s infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes cursorBlink {
    0%, 40% { opacity: 1; }
    41%, 100% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   BOTTOM SECTION (Keyboard + History)
   ═══════════════════════════════════════════════════════════════ */

.cheat-bottom-section {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 15px;
    border-radius: 0 0 10px 10px;
    margin-top: -5px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   KEYBOARD
   ═══════════════════════════════════════════════════════════════ */

.cheat-keyboard {
    width: 100%;
}

.cheat-key-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.cheat-key {
    flex: 1;
    max-width: 60px;
    height: 38px;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border: 1px solid #444;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.12s ease;
    box-shadow:
        0 4px 0 #111,
        0 6px 6px rgba(0,0,0,0.3);
    user-select: none;
}

.cheat-key:hover {
    background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
    color: #f4e4c0;
}

.cheat-key:active,
.cheat-key.pressed {
    transform: translateY(3px);
    box-shadow:
        0 1px 0 #111,
        0 2px 3px rgba(0,0,0,0.3);
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
}

/* Key press flash effect - for manual input */
.cheat-key.flash {
    background: linear-gradient(180deg, #d4a574 0%, #8b7355 100%) !important;
    color: #1a1815 !important;
    transform: translateY(3px);
    box-shadow:
        0 1px 0 #111,
        0 2px 3px rgba(0,0,0,0.3);
}

/* Soft glow effect - for auto-typing */
.cheat-key.glow {
    background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
    color: #d4a574;
    box-shadow:
        0 4px 0 #111,
        0 6px 6px rgba(0,0,0,0.3),
        0 0 8px rgba(212, 165, 116, 0.3);
    transition: all 0.15s ease;
}

.cheat-key.space {
    flex: 4;
    max-width: 300px;
}

.cheat-key.enter {
    flex: 1.5;
    max-width: 80px;
    background: linear-gradient(180deg, #8b7355 0%, #6a5a45 100%);
    color: #f4e4c0;
}

.cheat-key.enter:hover {
    background: linear-gradient(180deg, #9b8365 0%, #7a6a55 100%);
}

.cheat-key.enter.flash {
    background: linear-gradient(180deg, #ff69b4 0%, #cc5599 100%) !important;
}

.cheat-key.backspace {
    flex: 1.2;
    max-width: 70px;
    font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════════
   HISTORY & INFO ROW
   ═══════════════════════════════════════════════════════════════ */

.cheat-info-row {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #3a3a3a;
}

.cheat-history-section {
    flex: 1;
}

.cheat-history-label {
    color: #666;
    font-size: 9px;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.cheat-history-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cheat-history-item {
    background: #1a1815;
    border: 1px solid #3a3a3a;
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 10px;
    color: #666;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    transition: all 0.15s ease;
    cursor: pointer;
}

.cheat-history-item.success {
    border-color: #4a6a3a;
    color: #6b8e23;
}

.cheat-history-item.error {
    border-color: #6a3a3a;
    color: #8b4a4a;
}

.cheat-history-item.empty {
    color: #444;
    font-style: italic;
    cursor: default;
}

.cheat-history-item:not(.empty):hover {
    background: #2a2a2a;
    border-color: #5a5a5a;
    color: #f4e4c0;
    transform: translateY(-1px);
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   PATRON BUTTON
   ═══════════════════════════════════════════════════════════════ */

.cheat-patreon-section {
    flex: 0 0 auto;
    min-width: 180px;
}

.cheat-patron-btn {
    background: linear-gradient(135deg, #8b2f47 0%, #6a1f35 100%);
    border: 2px solid #a03850;
    border-radius: 5px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow:
        0 3px 8px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.cheat-patron-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.cheat-patron-btn:hover::before {
    left: 100%;
}

.cheat-patron-btn:hover {
    background: linear-gradient(135deg, #9b3f57 0%, #7a2f45 100%);
    border-color: #b04860;
    transform: translateY(-2px);
    box-shadow:
        0 5px 12px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.cheat-patron-btn:active {
    transform: translateY(0);
    box-shadow:
        0 2px 5px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.patron-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.patron-text {
    flex: 1;
}

.patron-main {
    color: #f4e4c0;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 2px;
}

.patron-sub {
    color: #d4c4a0;
    font-size: 8px;
    letter-spacing: 0.5px;
    font-style: italic;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

/* ═══════════════════════════════════════════════════════════════
   CLASSIFIED ACCESS POPUP
   ═══════════════════════════════════════════════════════════════ */

.cheat-access-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 30000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

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

.access-popup-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    animation: popupSlide 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes popupSlide {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.access-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #8b2f47 0%, #6a1f35 100%);
    border: 3px solid #a03850;
    border-radius: 50%;
    color: #f4e4c0;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.access-popup-close:hover {
    background: linear-gradient(135deg, #9b3f57 0%, #7a2f45 100%);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 15px rgba(0,0,0,0.6);
}

.access-document {
    background: #1a1815;
    border: 3px solid #3a3028;
    border-radius: 4px;
    padding: 30px 40px;
    box-shadow:
        0 10px 40px rgba(0,0,0,0.7),
        inset 0 1px 0 rgba(255,255,255,0.05);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.access-header {
    margin-bottom: 25px;
}

.access-line {
    color: #8b7355;
    font-size: 11px;
    text-align: center;
    margin: 8px 0;
    letter-spacing: 1px;
}

.access-line.bottom {
    margin-top: 25px;
}

.access-title {
    color: #f4e4c0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 3px;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.access-body {
    margin: 20px 0;
}

.access-intro {
    color: #f4e4c0;
    font-size: 14px;
    text-align: center;
    margin-bottom: 8px;
}

.access-sub {
    color: #c4b49a;
    font-size: 12px;
    text-align: center;
    font-style: italic;
    margin-bottom: 25px;
}

.access-channels {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.access-channel {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(139, 47, 71, 0.2) 0%, rgba(106, 31, 53, 0.2) 100%);
    border: 2px solid #8b2f47;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.access-channel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.access-channel:hover::before {
    left: 100%;
}

.access-channel:hover {
    background: linear-gradient(135deg, rgba(139, 47, 71, 0.4) 0%, rgba(106, 31, 53, 0.4) 100%);
    border-color: #a03850;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(139, 47, 71, 0.4);
}

.channel-label {
    color: #f4e4c0;
    font-weight: bold;
    font-size: 12px;
    min-width: 140px;
}

.channel-dots {
    color: #6a5a45;
    font-size: 12px;
    flex: 1;
    letter-spacing: 2px;
}

.channel-desc {
    color: #d4c4a0;
    font-size: 11px;
    font-style: italic;
}

.access-footer {
    color: #c4b49a;
    font-size: 13px;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 5px;
}

.access-footer-sub {
    color: #8b7355;
    font-size: 11px;
    text-align: center;
    font-style: italic;
}
