.tutorial-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tutorial-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.tutorial-highlight {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 0 0 4px var(--neon-green, #00ff88), 0 0 20px var(--neon-green, #00ff88);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tutorial-callout {
    position: fixed;
    z-index: 10000;
    max-width: 320px;
    min-width: 260px;
    background: #1a1a1a;
    border: 2px solid var(--neon-green, #00ff88);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 136, 0.2);
    font-family: 'Inter', sans-serif;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.tutorial-callout.active {
    transform: scale(1);
    opacity: 1;
}

.tutorial-callout-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.tutorial-callout-arrow.top {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: var(--neon-green, #00ff88);
}

.tutorial-callout-arrow.bottom {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: var(--neon-green, #00ff88);
}

.tutorial-callout-arrow.left {
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: var(--neon-green, #00ff88);
}

.tutorial-callout-arrow.right {
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: var(--neon-green, #00ff88);
}

.tutorial-step-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: var(--neon-green, #00ff88);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.tutorial-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--neon-green, #00ff88);
}

.tutorial-body {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #ccc;
}

.tutorial-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.tutorial-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tutorial-btn-skip {
    background: transparent;
    color: #666;
    border: 1px solid #444;
}

.tutorial-btn-skip:hover {
    color: #999;
    border-color: #666;
}

.tutorial-btn-back {
    background: #333;
    color: #ccc;
}

.tutorial-btn-back:hover {
    background: #444;
}

.tutorial-btn-next {
    background: var(--neon-green, #00ff88);
    color: #000;
}

.tutorial-btn-next:hover {
    background: #00cc70;
    transform: scale(1.02);
}

.tutorial-progress {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 12px;
}

.tutorial-progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #444;
    transition: all 0.2s ease;
}

.tutorial-progress-dot.done {
    background: var(--neon-green, #00ff88);
}

.tutorial-progress-dot.current {
    background: var(--neon-green, #00ff88);
    transform: scale(1.3);
}

.first-turn-checklist {
    position: fixed;
    bottom: 100px;
    left: 10px;
    width: 240px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 12px;
    z-index: 800;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.first-turn-checklist.collapsed {
    width: auto;
    padding: 8px 12px;
}

.first-turn-checklist.collapsed .checklist-content {
    display: none;
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.checklist-title {
    font-weight: 700;
    color: var(--neon-green, #00ff88);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checklist-toggle {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #888;
}

.checklist-item.done {
    color: #555;
    text-decoration: line-through;
}

.checklist-item.done .checklist-check {
    color: var(--neon-green, #00ff88);
}

.checklist-check {
    width: 16px;
    text-align: center;
    color: #444;
}

.checklist-dismiss {
    width: 100%;
    margin-top: 10px;
    padding: 6px;
    background: #333;
    border: none;
    border-radius: 4px;
    color: #888;
    font-size: 11px;
    cursor: pointer;
}

.checklist-dismiss:hover {
    background: #444;
    color: #aaa;
}

.help-btn {
    position: fixed;
    bottom: 60px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #222;
    border: 2px solid #444;
    color: #888;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    z-index: 850;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.help-btn:hover {
    border-color: var(--neon-green, #00ff88);
    color: var(--neon-green, #00ff88);
    transform: scale(1.1);
}

.help-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.help-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.help-modal-content {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
}

.help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.help-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--neon-green, #00ff88);
}

.help-modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
}

.help-section {
    margin-bottom: 20px;
}

.help-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 6px;
}

.glossary-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    background: #222;
    border-radius: 6px;
}

.glossary-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.glossary-text {
    flex: 1;
}

.glossary-name {
    font-weight: 600;
    color: #ddd;
    font-size: 12px;
}

.glossary-desc {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.help-restart-btn {
    width: 100%;
    padding: 12px;
    background: var(--neon-green, #00ff88);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

.help-restart-btn:hover {
    background: #00cc70;
}

.help-tips {
    background: #222;
    border-radius: 8px;
    padding: 12px;
}

.help-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 6px;
}

.help-tip:last-child {
    margin-bottom: 0;
}

.help-tip-icon {
    color: var(--neon-green, #00ff88);
}

@media (max-width: 480px) {
    .tutorial-callout {
        max-width: calc(100vw - 40px);
        min-width: 200px;
    }
    
    .first-turn-checklist {
        bottom: 90px;
        left: 8px;
        width: 200px;
    }
    
    .help-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}
