/* iOS Download Options / WebGL guide */
.ios-download-modal .modal-dialog {
    max-width: 590px;
    padding: 10px;
}

.ios-download-modal .ios-download-card {
    overflow: hidden;
    border: 2px solid #e59a47;
    border-radius: 18px;
    background: #111820;
    color: #f7f8fa;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .58), 0 0 0 1px rgba(255, 181, 77, .18) inset;
}

.ios-download-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 54px 16px 18px;
    border-bottom: 1px solid rgba(229, 154, 71, .35);
    background: linear-gradient(135deg, #17212a 0%, #151a20 60%, #2f210f 100%);
}

.ios-download-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    border: 1px solid #e59a47;
    background: rgba(229, 154, 71, .13);
    color: #ffc36f;
    font-size: 24px;
}

.ios-download-header h4 {
    margin: 0 0 3px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
}

.ios-download-header p {
    margin: 0;
    color: #aeb9c5;
    font-size: 13px;
    line-height: 1.4;
}

.ios-download-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 27px;
    line-height: 32px;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.ios-download-close:hover,
.ios-download-close:focus {
    background: #d86d20;
    outline: none;
    transform: rotate(4deg);
}

.ios-download-body {
    padding: 17px;
    background: radial-gradient(circle at top right, rgba(10, 157, 153, .10), transparent 38%), #111820;
}

.ios-download-panel[hidden] {
    display: none !important;
}

.ios-option-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    margin: 0 0 12px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 14px;
    background: #19232d;
    color: #fff !important;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

button.ios-option-card {
    appearance: none;
    font: inherit;
}

.ios-option-card:hover,
.ios-option-card:focus {
    transform: translateY(-1px);
    border-color: #e59a47;
    background: #202d39;
    outline: none;
}

.ios-option-card.is-disabled {
    opacity: .58;
    cursor: not-allowed;
}

.ios-option-card.is-disabled:hover {
    transform: none;
    border-color: rgba(255, 255, 255, .11);
}

.ios-option-badge {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #e68d31, #b96016);
    color: #fff;
    font-size: 21px;
}

.ios-option-webgl .ios-option-badge {
    background: linear-gradient(135deg, #0b9d9a, #08716f);
}

.ios-option-guide .ios-option-badge {
    background: linear-gradient(135deg, #7667d8, #5143a8);
}

.ios-option-play .ios-option-badge {
    font-size: 18px;
}

.ios-option-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.ios-option-copy strong,
.ios-option-copy small {
    display: block;
}

.ios-option-copy strong {
    margin-bottom: 3px;
    font-size: 15px;
    color: #fff;
}

.ios-option-copy small {
    color: #aeb9c5;
    font-size: 12px;
    line-height: 1.4;
}

.ios-option-arrow {
    color: #e9a959;
    font-size: 14px;
}

.ios-option-note {
    padding: 10px 12px;
    border: 1px dashed rgba(20, 187, 181, .45);
    border-radius: 10px;
    background: rgba(8, 113, 111, .11);
    color: #9fd9d7;
    font-size: 12px;
    line-height: 1.45;
}

.ios-guide-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #fff;
}

.ios-guide-toolbar strong {
    font-size: 15px;
}

.ios-guide-back {
    flex: 0 0 auto;
    border: 1px solid rgba(229, 154, 71, .55);
    border-radius: 9px;
    padding: 7px 10px;
    background: rgba(229, 154, 71, .10);
    color: #ffd39a;
    cursor: pointer;
}

.ios-guide-back:hover,
.ios-guide-back:focus {
    background: rgba(229, 154, 71, .20);
    outline: none;
}


.ios-guide-video-card {
    margin-bottom: 14px;
    padding: 13px;
    border: 1px solid rgba(20, 184, 166, .34);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(8, 113, 111, .16), rgba(24, 34, 44, .96));
}

.ios-guide-video-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 11px;
}

.ios-guide-video-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #087d7a;
    color: #fff;
    font-size: 19px;
    box-shadow: 0 0 0 4px rgba(8, 125, 122, .12);
}

.ios-guide-video-heading h5 {
    margin: 0 0 3px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.ios-guide-video-heading p {
    margin: 0;
    color: #bdc7d1;
    font-size: 12.5px;
    line-height: 1.45;
}

.ios-guide-video-wrap {
    display: flex;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: #05090d;
}

.ios-guide-video {
    display: block;
    width: auto;
    max-width: 100%;
    height: min(58vh, 520px);
    max-height: 520px;
    background: #000;
}

.ios-guide-video-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    padding: 8px 10px;
    border: 1px solid rgba(22, 143, 140, .78);
    border-radius: 9px;
    background: rgba(8, 125, 122, .14);
    color: #9ee5e2 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.ios-guide-video-open:hover,
.ios-guide-video-open:focus {
    background: rgba(8, 125, 122, .25);
    color: #fff !important;
    outline: none;
}

.ios-guide-video-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 90px;
    padding: 14px;
    border: 1px dashed rgba(255, 255, 255, .16);
    border-radius: 10px;
    color: #8f9ba7;
    font-size: 12px;
    text-align: center;
}

.ios-guide-video-fallback .fa {
    color: #e59a47;
    font-size: 20px;
}

.ios-guide-video-fallback code {
    color: #f0b56b;
}

.ios-guide-step {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    background: #18222c;
}

.ios-guide-step-number {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #d97720;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 0 0 4px rgba(217, 119, 32, .13);
}

.ios-guide-step-content {
    min-width: 0;
    flex: 1 1 auto;
}

.ios-guide-step-content h5 {
    margin: 2px 0 5px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.ios-guide-step-content p {
    margin: 0 0 10px;
    color: #bdc7d1;
    font-size: 13px;
    line-height: 1.5;
}

.ios-webgl-url-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 9px;
}

.ios-webgl-url-row code {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    overflow-wrap: anywhere;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 9px;
    background: #0d141b;
    color: #8ee3df;
    font-size: 12px;
}

.ios-copy-link,
.ios-open-webgl {
    border: 1px solid #168f8c;
    border-radius: 9px;
    padding: 9px 11px;
    background: #087d7a;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

.ios-copy-link {
    cursor: pointer;
}

.ios-copy-link:hover,
.ios-copy-link:focus,
.ios-open-webgl:hover,
.ios-open-webgl:focus {
    background: #0a9995;
    outline: none;
}

.ios-guide-image-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 430px;
    margin-top: 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: #0c1319;
}

.ios-guide-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    background: #fff;
}

.ios-guide-image-fallback {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 16px;
    color: #8f9ba7;
    text-align: center;
    font-size: 12px;
}

.ios-guide-image-fallback[hidden] {
    display: none !important;
}

.ios-guide-image-fallback .fa {
    color: #e59a47;
    font-size: 25px;
}

.ios-guide-image-fallback code {
    color: #f0b56b;
}

.ios-copy-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 11000;
    transform: translate(-50%, 14px);
    opacity: 0;
    pointer-events: none;
    padding: 9px 14px;
    border-radius: 999px;
    background: #0f8e79;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    transition: opacity .2s ease, transform .2s ease;
}

.ios-copy-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 575.98px) {
    .ios-download-modal .modal-dialog {
        margin: 7px auto;
        padding: 0 5px;
    }

    .ios-download-header {
        padding: 13px 48px 13px 13px;
    }

    .ios-download-icon {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
        font-size: 21px;
    }

    .ios-download-header h4 {
        font-size: 17px;
    }

    .ios-download-header p {
        font-size: 11px;
    }

    .ios-download-body {
        padding: 12px;
        max-height: calc(100vh - 105px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ios-option-card {
        padding: 12px;
    }

    .ios-guide-step {
        gap: 10px;
        padding: 12px;
    }

    .ios-guide-step-number {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .ios-webgl-url-row {
        flex-direction: column;
    }

    .ios-copy-link,
    .ios-open-webgl {
        display: block;
        width: 100%;
        text-align: center;
    }
}
