:root {
    --bg-color: #050a08;
    --panel-bg: rgba(10, 25, 20, 0.95);
    --main-green: #4ae0a6;
    --dim-green: #1e5741;
    --text-color: #4ae0a6;
    --ball-white: #e0fff5;
    --log-system: #4ae0a6;
    --log-action: #d0a0ff;
    --log-success: #2ecc71;
    --log-error: #e74c3c;
    --locked-color: #444;
    --warning-yellow: #f1c40f;
}
body {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    overflow-y: auto;
    background-image: 
        linear-gradient(rgba(0, 20, 10, 0.9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 20, 10, 0.9) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
}

/* --- DASHBOARD STYLES --- */
#dashboard-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    z-index: 10;
    margin-bottom: 60px;
}
.dashboard-title {
    font-size: 32px;
    letter-spacing: 4px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--main-green);
    padding-bottom: 10px;
    text-shadow: 0 0 15px var(--main-green);
    text-align: center;
    word-wrap: break-word;
}
.hack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    margin-bottom: 40px;
}
.hack-card {
    background: rgba(5, 15, 10, 0.8);
    border: 1px solid var(--dim-green);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    touch-action: manipulation; 
    -webkit-tap-highlight-color: transparent;
}
.hack-card.active {
    border-color: var(--main-green);
    box-shadow: 0 0 20px rgba(74, 224, 166, 0.1);
}
.hack-card.active:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(74, 224, 166, 0.3);
    background: rgba(10, 30, 20, 0.9);
}
.hack-card.locked {
    border-color: #333;
    color: #555;
    cursor: not-allowed;
    background: rgba(0,0,0,0.6);
}
.card-icon { font-size: 40px; margin-bottom: 20px; display: block; }
.card-title { font-size: 18px; font-weight: bold; margin-bottom: 10px; letter-spacing: 1px; }
.card-status { font-size: 10px; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; margin-top: auto; }
.active .card-status { background: var(--dim-green); color: #fff; }
.locked .card-status { background: #222; color: #555; }

/* --- FEEDBACK BUTTON & MODAL STYLES --- */
.feedback-trigger {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    background: rgba(0, 20, 10, 0.6);
    border: 2px dashed var(--dim-green);
    color: var(--main-green);
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    touch-action: manipulation;
}
.feedback-trigger:hover {
    background: rgba(74, 224, 166, 0.1);
    border-color: var(--main-green);
    box-shadow: 0 0 20px rgba(74, 224, 166, 0.2);
    transform: translateY(-2px);
}

/* Form Styles inside Modal */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}
.form-label {
    font-size: 11px;
    color: #888;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hacker-input {
    background: #050a08;
    border: 1px solid var(--dim-green);
    color: var(--main-green);
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: 0.3s;
    border-radius: 4px;
}
.hacker-input:focus {
    border-color: var(--main-green);
    box-shadow: 0 0 10px rgba(74, 224, 166, 0.2);
}
.hacker-input::placeholder { color: #1e5741; }

.hacker-select {
    cursor: pointer;
    appearance: none; 
    background-image: linear-gradient(45deg, transparent 50%, var(--main-green) 50%), linear-gradient(135deg, var(--main-green) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
.hacker-select option { background: #000; color: var(--main-green); }

.form-submit-btn {
    background: var(--dim-green);
    color: #fff;
    border: 1px solid var(--main-green);
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 15px;
    border-radius: 4px;
    transition: 0.3s;
    font-family: inherit;
}
.form-submit-btn:hover {
    background: var(--main-green);
    color: #000;
    box-shadow: 0 0 20px var(--main-green);
}

#feedback-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- COMMON VIEW STYLES --- */
.view-container {
    display: none; 
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
}
#top-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
}
.back-btn {
    background: transparent;
    border: 1px solid var(--dim-green);
    color: var(--dim-green);
    padding: 8px 15px;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
    cursor: pointer;
    touch-action: manipulation;
}
.back-btn:hover {
    border-color: var(--main-green);
    color: var(--main-green);
    box-shadow: 0 0 10px rgba(74, 224, 166, 0.2);
}

/* --- SIMON SOLVER STYLES --- */
#simon-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    width: 100%;
}
#simon-ring-container {
    position: relative;
    width: 500px; 
    height: 500px;
    background: var(--panel-bg);
    border: 1px solid var(--dim-green);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 40px rgba(74, 224, 166, 0.1);
    overflow: hidden;
    flex-shrink: 0; 
}
.grid-line {
    position: absolute;
    background: rgba(74, 224, 166, 0.15);
    pointer-events: none;
    z-index: 0;
}
.grid-vertical { width: 1px; height: 100%; left: 50%; top: 0; }
.grid-horizontal { width: 100%; height: 1px; top: 50%; left: 0; }
.grid-circle {
    position: absolute;
    border: 1px dashed rgba(74, 224, 166, 0.1);
    border-radius: 50%;
    width: 70%; height: 70%;
    pointer-events: none;
}
#simon-ring {
    position: relative;
    width: 100%; 
    height: 100%;
    border-radius: 50%;
}
.simon-segment-wrapper {
    position: absolute;
    top: 50%; left: 50%;
    width: 30px; height: 26px;
    margin-top: -13px; margin-left: -15px;
    z-index: 5;
    --badge-rotation: 0deg; 
}
.simon-segment-inner {
    width: 100%;
    height: 100%;
    border-radius: 8px; 
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    border: 1px solid rgba(0,0,0,0.3);
    touch-action: manipulation;
}
.simon-segment-inner:hover, .simon-segment-inner:active {
    transform: scale(1.4);
    filter: brightness(1.4) contrast(1.2);
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
    border-color: #fff;
    z-index: 100;
}
.segment-badge {
    position: absolute;
    left: 35px; 
    top: 50%;
    transform: translateY(-50%) rotate(var(--badge-rotation)); 
    background: #000;
    color: var(--main-green);
    border: 1px solid var(--main-green);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    z-index: 500; 
    pointer-events: none;
    box-shadow: 0 0 8px rgba(74, 224, 166, 0.5);
    white-space: nowrap;
}
#simon-center-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    width: 220px;
    z-index: 10;
}
#simon-center-text h3 { margin: 0; font-size: 18px; color: #fff; letter-spacing: 2px; text-shadow: 0 0 10px var(--dim-green); }
.helper-text { 
    font-size: 14px; 
    color: #fff !important; 
    display: block; 
    margin-top: 8px; 
    font-weight: bold;
    background: rgba(0,0,0,0.6);
    padding: 5px;
    border-radius: 4px;
    border: 1px dashed #f1c40f;
}
.helper-sub { font-size: 10px; color: #888; margin-top: 2px; }
#simon-log-panel {
    width: 300px;
    height: 500px;
    background: #000;
    border: 1px solid var(--dim-green);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 15px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}
#simon-log-list {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    border-bottom: 1px dashed #333;
}
.simon-log-item {
    padding: 8px;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.simon-log-idx { color: var(--main-green); font-weight: bold; min-width: 70px; }
.simon-log-color { width: 14px; height: 14px; border-radius: 4px; border: 1px solid #555; }
#simon-controls { display: flex; gap: 10px; }
.simon-btn-reset { width: 100%; padding: 10px; background: #300; border: 1px solid #e74c3c; color: #e74c3c; font-weight: bold; cursor: pointer; transition: 0.2s; touch-action: manipulation; }
.simon-btn-reset:hover { background: #e74c3c; color: #fff; }
.simon-btn-undo { width: 100%; padding: 10px; background: #330; border: 1px solid #f1c40f; color: #f1c40f; font-weight: bold; cursor: pointer; touch-action: manipulation;}
.simon-btn-undo:hover { background: #f1c40f; color: #000; }

/* --- GAME VIEW STYLES (RURA) --- */
#main-layout {
    display: flex;
    gap: 25px;
    padding: 10px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}
#game-container {
    border: 1px solid var(--dim-green);
    padding: 35px;
    background-color: var(--panel-bg);
    box-shadow: 0 0 50px rgba(74, 224, 166, 0.15);
    text-align: center;
    position: relative;
    border-radius: 12px;
    max-width: 100%;
    box-sizing: border-box;
}
#log-panel {
    width: 320px;
    height: 620px;
    background-color: #000;
    border: 1px solid var(--dim-green);
    font-size: 12px;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
    font-family: 'Lucida Console', Monaco, monospace;
    border-radius: 8px;
}
#log-panel::-webkit-scrollbar { width: 5px; }
#log-panel::-webkit-scrollbar-thumb { background: var(--dim-green); }
.log-entry {
    margin-bottom: 6px;
    border-bottom: 1px dotted #1a3a30;
    padding-bottom: 4px;
    line-height: 1.4;
}
.log-time { color: #555; font-size: 10px; margin-right: 5px; }
.log-cat { font-weight: bold; margin-right: 5px; }
.cat-SYSTEM { color: var(--log-system); }
.cat-SOLVER { color: var(--log-action); }
.cat-WIN { color: var(--log-success); }
.cat-ERR { color: var(--log-error); }
.log-msg { color: #ddd; }
.log-detail { display: block; color: #777; padding-left: 10px; font-style: italic; font-size: 11px;}

h3 { margin: 0 0 25px 0; font-size: 16px; opacity: 0.9; border-bottom: 2px solid var(--dim-green); padding-bottom: 15px; letter-spacing: 1px; }

canvas {
    border-radius: 12px;
    background: radial-gradient(circle, rgba(20,40,30,1) 0%, rgba(5,10,8,1) 70%);
    box-shadow: inset 0 0 50px rgba(0,0,0,1), 0 0 20px rgba(74, 224, 166, 0.1);
    margin-bottom: 20px;
    cursor: pointer;
    max-width: 100%;
    height: auto;
}
.controls { display: flex; gap: 15px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
button {
    padding: 12px 24px; font-family: inherit; font-weight: bold; cursor: pointer;
    background: rgba(0,20,10,0.4); border: 2px solid var(--main-green); color: var(--main-green);
    transition: all 0.2s ease-in-out; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; border-radius: 4px;
    touch-action: manipulation;
}
button:hover:not(:disabled) { background: var(--main-green); color: #050a08; box-shadow: 0 0 20px var(--main-green); transform: translateY(-2px); }
button:disabled { border-color: #333; color: #555; cursor: not-allowed; transform: none; }
#solveBtn { border-color: #a060d0; color: #d0a0ff; }
#solveBtn:hover:not(:disabled) { background: #a060d0; color: #fff; box-shadow: 0 0 25px #a060d0; }
#tutorialBtn { border-color: #f1c40f; color: #f1c40f; font-size: 13px; padding: 12px 15px; flex-grow: 1; max-width: 200px; }
#tutorialBtn:hover { background: #f1c40f; color: #000; box-shadow: 0 0 20px #f1c40f;}
.status-bar { height: 20px; margin-top: 10px; font-size: 13px; color: #aaa; font-weight: bold; letter-spacing: 1px;}

.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 100; justify-content: center; align-items: center; backdrop-filter: blur(4px);
    padding: 20px; box-sizing: border-box;
}
.modal-content {
    background: #0a1410; border: 3px solid var(--main-green); padding: 40px; max-width: 550px; width: 100%;
    color: #ddd; box-shadow: 0 0 50px rgba(74, 224, 166, 0.4); font-family: 'Segoe UI', sans-serif; 
    line-height: 1.6; border-radius: 8px; text-align: left;
    max-height: 90vh; overflow-y: auto;
}
.modal-content h2 { color: var(--main-green); margin-top: 0; font-family: 'Courier New'; border-bottom: 2px dashed #444; padding-bottom: 15px; text-align: center; font-size: 24px;}
#win-modal .modal-content { border-color: var(--log-success); box-shadow: 0 0 60px rgba(46, 204, 113, 0.5); text-align: center; }
#win-modal h2 { color: var(--log-success); border-bottom-style: solid;}
.win-message { font-size: 18px; margin: 20px 0; color: #fff;}
.win-icon { font-size: 60px; color: var(--log-success); margin-bottom: 10px; display: block;}
.close-btn { background: var(--dim-green); color: white; border: none; padding: 12px 25px; margin-top: 25px; display: block; width: 100%; font-size: 16px; touch-action: manipulation;}
.close-btn:hover { background: var(--main-green); color: #000; }

#progress-container { position: absolute; bottom: 0; left: 0; width: 100%; height: 6px; background: #111; z-index: 10; border-radius: 0 0 12px 12px; overflow: hidden; }
#progress-fill { height: 100%; background: var(--main-green); width: 0%; transition: width 0.1s linear; box-shadow: 0 0 15px var(--main-green); }

#start-screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(5, 10, 8, 0.97); z-index: 50;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; border-radius: 12px;
    padding: 20px; box-sizing: border-box;
}
.mode-btn { width: 100%; max-width: 280px; padding: 18px; font-size: 18px; letter-spacing: 2px; touch-action: manipulation;}

/* --- SPIKES BIRD STYLES --- */
#spikes-layout {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap; 
}
#spikes-container {
    position: relative;
    border: 1px solid var(--dim-green);
    padding: 20px;
    background: var(--panel-bg);
    border-radius: 12px;
    max-width: 100%;
    box-sizing: border-box;
}
#spikes-settings {
    width: 250px;
    background: #000;
    border: 1px solid var(--dim-green);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.setting-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.setting-label {
    font-size: 12px;
    color: var(--main-green);
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}
/* Cross-browser Range Slider Styling */
input[type=range] {
    width: 100%;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
}

/* Webkit (Chrome, Safari, Opera, Edge) - Track */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: #1a2f25;
    border-radius: 3px;
    border: 1px solid #0f1f18;
}

/* Webkit - Thumb */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--main-green);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -5px;
    box-shadow: 0 0 10px rgba(74, 224, 166, 0.5);
    transition: all 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    background: #5ef5ba;
    box-shadow: 0 0 15px rgba(74, 224, 166, 0.8);
    transform: scale(1.1);
}

/* Firefox - Track */
input[type=range]::-moz-range-track {
    width: 100%;
    height: 6px;
    background: #1a2f25;
    border-radius: 3px;
    border: 1px solid #0f1f18;
}

/* Firefox - Thumb */
input[type=range]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--main-green);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(74, 224, 166, 0.5);
    transition: all 0.2s;
}

input[type=range]::-moz-range-thumb:hover {
    background: #5ef5ba;
    box-shadow: 0 0 15px rgba(74, 224, 166, 0.8);
    transform: scale(1.1);
}

/* Microsoft Edge/IE - Track */
input[type=range]::-ms-track {
    width: 100%;
    height: 6px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type=range]::-ms-fill-lower {
    background: #1a2f25;
    border-radius: 3px;
    border: 1px solid #0f1f18;
}

input[type=range]::-ms-fill-upper {
    background: #1a2f25;
    border-radius: 3px;
    border: 1px solid #0f1f18;
}

/* Microsoft Edge/IE - Thumb */
input[type=range]::-ms-thumb {
    width: 16px;
    height: 16px;
    background: var(--main-green);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(74, 224, 166, 0.5);
    margin-top: 0;
}

input[type=range]::-ms-thumb:hover {
    background: #5ef5ba;
    box-shadow: 0 0 15px rgba(74, 224, 166, 0.8);
}


.ewron-note {
    margin-top: auto; 
    border-top: 1px dashed #555; 
    padding-top: 15px;
    background: rgba(40, 10, 10, 0.6); 
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.2);
}
.ewron-title { 
    color: #ff6b6b; 
    font-weight: bold; 
    font-size: 15px; 
    margin-bottom: 10px; 
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ewron-text {
    font-size: 13px; 
    color: #e0e0e0; 
    line-height: 1.6;
    font-family: 'Segoe UI', sans-serif;
}

/* FOOTER */
.linkedin-footer {
    position: fixed; bottom: 15px; right: 20px; 
    font-size: 14px; 
    background: rgba(0,0,0,0.6); 
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #333;
    color: #888; z-index: 200; 
    font-family: 'Segoe UI', sans-serif; 
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.linkedin-footer a { color: #aaa; text-decoration: none; transition: color 0.3s, text-shadow 0.3s; display: flex; align-items: center; gap: 8px; }
.linkedin-footer a:hover { color: var(--main-green); text-shadow: 0 0 5px rgba(74, 224, 166, 0.5); }
.linkedin-icon {
    font-weight: bold; background: #666; color: #000; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; font-size: 12px; transition: background 0.3s;
}
.linkedin-footer a:hover .linkedin-icon { background: var(--main-green); }
.footer-label { color: #a0a0a0; font-size: 12px; margin-right: -5px; }
.app-logo { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }

@media (max-width: 800px) {
    body { padding: 10px; }
    .dashboard-title { font-size: 22px; margin-bottom: 25px; }
    #simon-layout { flex-direction: column; align-items: center; }
    #simon-ring-container { 
        width: 100%; height: auto; aspect-ratio: 1/1; 
        max-width: 350px; transform: scale(0.7); margin: -50px 0; 
    }
    #simon-log-panel { width: 100%; max-width: 350px; height: 300px; }
    #main-layout { flex-direction: column-reverse; align-items: center; gap: 15px; }
    #game-container { padding: 15px; width: 100%; }
    #log-panel { width: 100%; height: 200px; }
    .controls button { padding: 10px 15px; font-size: 12px; }
    h3 { font-size: 14px; }
    #spikes-layout { flex-direction: column; align-items: center; }
    #spikes-container { width: 100%; padding: 10px; }
    #spikes-settings { width: 100%; max-width: 400px; }
    .linkedin-footer { 
        position: static; margin-top: 30px; margin-bottom: 20px;
        background: transparent; border: none; justify-content: center;
    }
}

/* --- NOWY STYL PANELU BOCZNEGO (Spikes) --- */
#spikes-settings {
    width: 280px;
    background: #080f0c;
    border-left: 1px solid #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; /* Czytelniejsza czcionka */
}

.setting-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
}

.card-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    font-size: 11px;
    font-weight: bold;
    color: #888;
    border-bottom: 1px solid #333;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace; /* Nagłówki dalej hakerskie */
}

.card-body {
    padding: 12px;
    font-size: 13px;
    color: #ccc;
}

/* Specjalne style kart */
.warning-card { border-color: #552020; }
.warning-card .card-header { color: #e74c3c; background: rgba(231, 76, 60, 0.1); }

.highlight-card { border-color: #f1c40f; box-shadow: 0 0 10px rgba(241, 196, 15, 0.05); }
.highlight-card .card-header { color: #000; background: #f1c40f; font-weight: 900; }

.important-card { border-color: #3498db; }
.important-card .card-header { background: rgba(52, 152, 219, 0.2); color: #3498db; }

/* Przyciski i Kontrolki */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}
.checkbox-row input { transform: scale(1.2); accent-color: #f1c40f; cursor: pointer; }

.btn-watch {
    width: 100%;
    background: transparent;
    border: 1px solid #f1c40f;
    color: #f1c40f;
    padding: 8px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.btn-watch:hover { background: #f1c40f; color: #000; }

.sidebar-thumb {
    width: 100%;
    border-radius: 4px;
    display: block;
    border: 1px solid #444;
}

.clickable-thumb {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.thumb-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.6);
    display: flex; justify-content: center; align-items: center;
    color: #fff; font-weight: bold; opacity: 0;
    transition: 0.2s;
    font-size: 12px; letter-spacing: 2px;
}
.clickable-thumb:hover .thumb-overlay { opacity: 1; }
.thumb-caption { font-size: 10px; color: #888; margin-top: 5px; text-align: center; }

/* MEDIA MODAL (POPUP) */
.media-overlay {
    display: none; /* Domyślnie ukryty */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center; align-items: center;
    animation: fadeIn 0.3s;
}
.media-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    background: #111;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}
.media-close {
    position: absolute;
    top: -40px; right: 0;
    background: transparent; border: none;
    color: #fff; font-size: 14px; cursor: pointer;
    font-weight: bold;
}
.media-close:hover { color: #e74c3c; }

@media (max-width: 900px) {
    #spikes-settings { width: 100%; border-left: none; border-top: 1px solid #333; }
}