/* ===== Tutorial Mockup Styles ===== */

/* Common mockup container */
.slide-image-container>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Chest images */
.chest-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.chest-img-large {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

.chest-small {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.chest-tiny {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.chest-gray {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* Chests Triangle */
.mockup-chests-triangle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mockup-chests-triangle .chest-top {
    margin-bottom: -5px;
}

.mockup-chests-triangle .chest-row {
    display: flex;
    gap: 20px;
}

/* Chests Duo */
.mockup-chests-duo {
    display: flex;
    flex-direction: column;
    gap: 48px;
    /* Separation between top and bottom group */
    align-items: center;
    width: 100%;
}

.mockup-chests-duo .chest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* DESKTOP STANDARDIZATION (High Specificity - 20px Universal) */
@media (min-width: 601px) {

    /* Slide 1: Chests Duo */
    .mockup-chests-duo .chest-item .chest-description {
        font-size: 1.25rem;
        /* 20px */
        line-height: 1.6;
        color: var(--text-secondary);
        display: block;
        text-align: center;
        max-width: 380px;
        /* Restored to original width */
        margin-left: auto;
        margin-right: auto;
        font-weight: 400;
        /* Ensure normal weight */
    }

    /* Slide 3: Pending Chest */
    .mockup-pending-v2 .pending-text-app {
        font-size: 1.1rem;
        /* 17.6px - Same as other descriptions */
        line-height: 1.6;
        color: var(--text-secondary);
        display: block;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
    }

    /* All other internal descriptions AND main description */
    #slide-description,
    .mockup-group-code-v2 .slide-desc-internal,
    .mockup-group-chests .slide-desc-internal,
    .mockup-time-limit .slide-desc-internal,
    .mockup-resolution .slide-desc-internal,
    .mockup-response-types-stacked .slide-desc-internal,
    .mockup-validation-app .slide-desc-internal,
    .ranking-wrapper .slide-desc-internal {
        font-size: 1.1rem;
        /* 17.6px - Reduced from 1.25rem */
        line-height: 1.6;
        color: var(--text-secondary);
    }

    /* Onboarding PC Specifics (Clean Overrides) */
    #tutorial-modal[data-tutorial-type="onboarding"] .slide-title {
        display: none !important;
        /* Still needed for inline style override */
    }

    #tutorial-modal[data-tutorial-type="onboarding"] .slide-image--large {
        width: 187px;
        /* +10% from 170px */
        height: 187px;
    }

    #tutorial-modal[data-tutorial-type="onboarding"] .slide-image--xlarge {
        width: 242px;
        /* +10% from 220px */
        height: 242px;
    }

    /* Reduce padding/margins for larger images */
    #tutorial-modal[data-tutorial-type="onboarding"] .slide-panel {
        padding: 24px 20px 20px;
    }

    #tutorial-modal[data-tutorial-type="onboarding"] .slide-visual {
        margin-bottom: 20px;
    }

    /* Predictions PC Specifics */
    /* Slide 1: Reduce chests by ~13% (140px -> 122px) */
    #tutorial-modal[data-tutorial-type="predictions"] .mockup-chests-duo .chest-img-large {
        width: 122px;
        height: 122px;
    }

    /* Slide 5: Center content vertically */
    #tutorial-modal[data-tutorial-type="predictions"] .mockup-group-chests {
        padding-top: 40px;
    }

    #tutorial-modal[data-tutorial-type="predictions"] .mockup-group-chests .slide-desc-internal {
        margin-top: 32px;
    }

    /* Slide 6: Move buttons down */
    #tutorial-modal[data-tutorial-type="predictions"] .slide-buttons {
        margin-top: 56px;
        /* Increased from default 32px */
    }
}
}

.chest-description {
    color: var(--text-secondary);
}

.slide-desc-internal {
    color: var(--text-secondary);
}

.pending-text-app {
    color: var(--text-secondary);
}

.ranking-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.ranking-table {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
}

/* Form Mockup */
.mockup-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.form-giraffe {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.form-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 280px;
    /* Wider card */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center internal content like image */
}

.form-giraffe-internal {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 12px;
}

.form-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.form-input {
    background: #f5f5f5;
    padding: 14px;
    /* Larger padding */
    border-radius: 8px;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.form-visibility {
    font-size: 0.75rem;
    text-align: left;
    margin-bottom: 10px;
}

.form-visibility span {
    display: block;
    margin-bottom: 4px;
}

.radio-opt {
    display: flex;
    align-items: center;
    gap: 6px;
}

.radio-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: inline-block;
}

.radio-dot.active {
    background: var(--primary);
}

.form-btn {
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Pending Mockup */
.mockup-pending-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.pending-text-app {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 340px;
    line-height: 1.5;
    padding: 0 20px;
}

.pending-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 280px;
    text-align: center;
    border: 2px solid #ffb74d;
}

.pending-text {
    font-weight: 700;
    font-size: 1rem;
    color: #e65100;
    margin-bottom: 16px;
}

.pending-question {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.pending-buttons-app {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-fail,
.btn-success {
    padding: 10px 20px;
    border-radius: 20px;
    color: white !important;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-fail {
    background: #ef5350;
}

.btn-success {
    background: #66bb6a;
}

/* History Grid */
.mockup-history {
    display: flex;
    justify-content: center;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns */
    gap: 16px;
}

.chest-large {
    width: 146px;
    /* Increased by 12% */
    height: 146px;
    object-fit: contain;
}

/* Group Chests */
.mockup-group-chests {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 260px;
}

.chests-row-vertical {
    display: flex;
    flex-direction: column-reverse;
    /* Chests on top, Label bottom */
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.row-chests {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* Removed redundant desktop overrides to allow universal standardizer to work */
.mockup-chests-duo .chest-img-large {
    width: 160px;
    height: 160px;
}

.mockup-chests-duo {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

/* Removed redundant desktop override */

/* Group Code */
.mockup-group-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mockup-group-code-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.code-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.code-box {
    background: #FFF9C4;
    border: 2px dashed #FFC107;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 8px;
    font-family: monospace;
    color: #333;
}

.code-box-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.copy-btn-mockup {
    background: #FFD54F;
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Admin Card */
.mockup-admin {
    display: flex;
    justify-content: center;
}

.admin-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 200px;
}

.admin-avatar {
    font-size: 3rem;
    margin-bottom: 8px;
}

.admin-name {
    font-weight: 700;
    margin-bottom: 12px;
}

.admin-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-btn {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-btn.promote {
    background: #fff8e1;
    color: #f9a825;
}

.admin-btn.kick {
    background: #ffebee;
    color: #c62828;
}

/* Privacy Badge */
.mockup-privacy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.privacy-badge {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
}

/* Time Limit */
.mockup-time-limit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.time-icon {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

.time-badge-soft {
    background: #FFF9C4;
    /* Soft yellow */
    color: #F57F17;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}


/* Response Types */
.mockup-response-types-stacked {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.response-card-highlight {
    background: white;
    border-radius: 16px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.response-option-selected {
    background: #E3F2FD;
    border: 2px solid var(--primary);
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.radio-dot-selected {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}


.resolution-card-wide {
    width: 320px;
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.resolution-option-green {
    background: #E8F5E9;
    border: 2px solid #4CAF50;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.winners-emoji-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.winner-emoji-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid #FFD54F;
}


.code-box {
    background: #FFD54F;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.5rem;
    color: #333;
    border: 2px dashed #F57F17;
    white-space: nowrap;
}

/* Response Types - RESTORED */
.response-card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 150px;
}

.response-title {
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.response-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    padding: 4px 0;
}

.response-input {
    background: #f5f5f5;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #999;
}

/* Removed duplicate Resolution and Winners block */

/* Resolution */
.mockup-resolution {
    width: 85%;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resolution-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.resolution-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.resolution-option {
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.resolution-option.correct {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
    font-weight: bold;
}

.resolution-option.incorrect {
    background: #f5f5f5;
    /* Light gray */
    color: #757575;
    border: 1px solid #e0e0e0;
}

.winners-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.winners-label {
    font-size: 0.9rem;
    color: #555;
    font-weight: bold;
}

.winners-avatars {
    display: flex;
    gap: 10px;
}

.winner {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: #333;
}

.winner-avatar {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 2px solid #FFD54F;
    border-radius: 50%;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.winner small {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Validation */
.mockup-validation {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
}

.val-step {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.val-label {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Cleaned orphan code */

.admin-buttons-row {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.admin-btn {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: default;
    white-space: nowrap;
}

/* Privacy Badge */
.mockup-privacy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.privacy-badge {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    color: #555;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.privacy-badge.yellow {
    background-color: #FFF9C4;
    /* Light yellow */
    color: #FBC02D;
    /* Darker yellow text */
    border: 1px solid #FFF176;
}

/* Time Limit */
.mockup-time-limit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.time-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.time-text {
    font-size: 1rem;
    color: #555;
    font-weight: 500;
}

.time-badge {
    background: #FF5252;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Validation */
.mockup-validation {
    width: 85%;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.val-step {
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.val-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.val-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    color: #333;
}

.val-row.selected {
    background-color: #E8F5E9;
    /* Slight green tint */
    padding: 6px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.val-row:last-child {
    border-bottom: none;
}

.val-btn {
    background: #4CAF50;
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
}

.val-status {
    font-weight: bold;
    color: #2E7D32;
    /* Green check */
}

/* X icon class via CSS content or ensure span has content */
.val-status.icon-x::after {
    content: "✖";
    /* Unicode X */
    color: #ccc;
    /* Grey color for unmarked/incorrect in context of selection */
}

/* If we want the tick to be the same */
.val-status.icon-tick::after {
    content: "✔";
}

/* Cleaned orphan code block */

.val-row.approved .val-status {
    color: #2e7d32;
}

.val-row.pending .val-status {
    color: #f9a825;
}

/* Ranking */
.mockup-ranking {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ranking-giraffe {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.ranking-table {
    background: white;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
}

.ranking-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
}

.ranking-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.ranking-row span:first-child {
    font-weight: 700;
    width: 20px;
}

.ranking-row span:nth-child(2) {
    flex: 1;
    text-align: left;
    padding-left: 8px;
}

.ranking-row.gold {
    background: #fff8e1;
}

.ranking-row.silver {
    background: #f5f5f5;
}

.ranking-row.bronze {
    background: #fff3e0;
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 600px) {

    /* Tutorial 1 (Onboarding): Images 1.3x bigger except chests-triangle */
    .slide-image {
        width: 130px;
        height: 130px;
    }

    /* Keep chests triangle same size */
    .mockup-chests-triangle .chest-img {
        width: 90px;
        height: 90px;
    }

    /* Tutorial 2 (Predictions) Slide 1: Middle ground restoration */
    .mockup-chests-duo .chest-img-large {
        width: 100px;
        height: 100px;
    }

    /* Lowering content on Predictions (Tutorial 2) mobile */
    #tutorial-modal[data-tutorial-type="predictions"] .slide-panel {
        padding-top: 60px !important;
        padding-bottom: 10px !important;
    }

    #tutorial-modal[data-tutorial-type="predictions"] .slide-visual {
        margin-bottom: 24px !important;
    }

    .mockup-chests-duo .chest-description {
        font-size: 0.9rem;
        max-width: 280px;
        line-height: 1.3;
        margin-top: 4px;
    }

    .mockup-chests-duo {
        gap: 12px;
    }

    /* Tutorial 2 Slide 3: Even larger as requested */
    .mockup-pending-v2 {
        gap: 16px;
    }

    .mockup-pending-v2 .chest-img-large {
        width: 120px;
        height: 120px;
    }

    .pending-text-app {
        font-size: 1rem;
        padding: 0 10px;
        max-width: 320px;
        margin: 8px 0;
    }

    .pending-card {
        padding: 14px;
        width: 260px;
        margin-top: 6px;
    }

    .pending-text {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .pending-question {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }

    .btn-fail,
    .btn-success {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    /* Tutorial 2 Slide 4: Chests smaller */
    .history-grid .chest-large {
        width: 100px;
        height: 100px;
    }

    .history-grid {
        gap: 8px;
    }

    /* Tutorial 2 Slide 5: Text 1-2px bigger */
    .mockup-group-chests .slide-desc-internal {
        font-size: 1.05rem;
    }

    .mockup-group-chests .row-label {
        font-size: 0.95rem;
    }

    /* Tutorial 2 Slide 6: Image 20% bigger, less margin */
    .slide-image-container img.slide-image[src*="giraffe-oracle"] {
        width: 156px;
        height: 156px;
    }

    /* Form card smaller on mobile */
    .form-card {
        width: 250px;
        padding: 16px;
    }

    .form-giraffe-internal {
        width: 70px;
        height: 70px;
        margin-bottom: 8px;
    }

    .form-title {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .form-input {
        padding: 10px;
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    /* Group chests smaller on mobile */
    .mockup-group-chests .chest-small {
        width: 45px;
        height: 45px;
    }

    /* Standardize Tutorial 3 helper text (outside components) */
    .slide-desc-internal,
    #slide-desc-group8,
    .pending-text-app {
        font-size: 1.125rem;
        margin-top: 12px;
        max-width: 320px;
    }
}