/* Portal site entries - Life template extension */

.portal-lang-bar {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10050;
    pointer-events: auto;
}
.portal-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(8, 12, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}
.portal-lang-switcher .lang-switcher-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 30px;
    padding: 0 9px;
    border-radius: 999px;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10051;
}
.portal-lang-switcher .lang-switcher-item:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}
.portal-lang-switcher .lang-switcher-item.active {
    background: #fff;
    color: #111827 !important;
}

.countdown-wrap,
.social-wrap,
.launch-time,
.launch-time-mobile,
.launch-social,
.hide-menu,
.hide-menu-mobile,
#menu-wrapper,
#menu-wrapper-mobile,
#customizer {
    display: none !important;
}

html.portal-ready .portal-entries {
    opacity: 1;
    transform: translateY(0);
}

html.portal-ready .portal-split-overlay {
    opacity: 1;
}

#portal-wrapper {
    position: relative;
    margin: 10px auto 0 auto;
    padding: 0 15px;
    text-align: center;
    z-index: 2;
}

.portal-split-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease 1.2s;
}

.portal-split-overlay-left,
.portal-split-overlay-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.portal-split-overlay-left {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
}

.portal-split-overlay-right {
    right: 0;
    background: linear-gradient(-90deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
}

body.portal-hover-left .portal-split-overlay-left,
body.portal-hover-right .portal-split-overlay-right {
    opacity: 1;
}

.portal-entries {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 920px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease 1.4s, transform 0.7s ease 1.4s;
}

.portal-entries-3 .portal-entry-left,
.portal-entries-3 .portal-entry-right {
    flex: 1 1 0;
}

.portal-entries-3 .portal-entry-mid {
    border-left: none;
    border-right: none;
    flex: 1.45 1 0;
    min-width: 0;
    padding-left: 22px;
    padding-right: 22px;
}

.portal-entries-3 .portal-entry-mid .portal-entry-title {
    letter-spacing: 1.5px;
}

.portal-entries-3 .portal-entry-mid .portal-entry-desc {
    max-width: 260px;
}

button.portal-entry {
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.western-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.western-modal[hidden] {
    display: none !important;
}

.western-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.western-modal-panel {
    position: relative;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #0f1419;
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 28px 24px 24px;
    z-index: 1;
}

.western-modal-panel h2 {
    font-family: 'Dosis', sans-serif;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 28px;
    margin: 0 0 20px;
}

.western-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.western-grid {
    display: grid;
    gap: 14px;
}

.western-grid label {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 6px;
}

.western-grid select,
.western-grid input {
    width: 100%;
    margin-bottom: 8px;
    min-height: 42px;
    padding: 8px 10px;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #111827 !important;
    color-scheme: light;
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
}

.western-grid select option {
    background: #ffffff;
    color: #111827;
}

.western-amount-row input {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.western-grid input[type="number"]::-webkit-outer-spin-button,
.western-grid input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.western-grid input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.western-start {
    margin-top: 18px;
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: 'Dosis', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
}

.western-start:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.western-open {
    overflow: hidden;
}

.portal-entry {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    padding: 24px 18px 20px;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}

.portal-entry::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s ease;
}

.portal-entry-left {
    border-right: none;
}

.portal-entry-right {
    border-left: none;
}

.portal-entry:hover,
.portal-entry:focus,
body.portal-hover-left .portal-entry-left,
body.portal-hover-mid .portal-entry-mid,
body.portal-hover-right .portal-entry-right {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.9);
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.portal-entry:hover::before,
.portal-entry:focus::before,
body.portal-hover-left .portal-entry-left::before,
body.portal-hover-mid .portal-entry-mid::before,
body.portal-hover-right .portal-entry-right::before {
    left: 140%;
}

.portal-entry-icon {
    font-size: 22px;
    margin-bottom: 12px;
    opacity: 0.85;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.portal-entry:hover .portal-entry-icon,
.portal-entry:focus .portal-entry-icon,
body.portal-hover-left .portal-entry-left .portal-entry-icon,
body.portal-hover-mid .portal-entry-mid .portal-entry-icon,
body.portal-hover-right .portal-entry-right .portal-entry-icon {
    transform: scale(1.12);
    opacity: 1;
}

.portal-entry-tag {
    font-family: 'Dosis', sans-serif;
    font-size: 11px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 8px;
}

.portal-entry-title {
    font-family: 'Dosis', sans-serif;
    font-size: 30px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.portal-entry-desc {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.72;
    margin-top: 10px;
    max-width: 180px;
}

.portal-entry-arrow {
    position: absolute;
    right: 14px;
    bottom: 12px;
    font-family: 'Dosis', sans-serif;
    font-size: 18px;
    line-height: 1;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portal-entry:hover .portal-entry-arrow,
.portal-entry:focus .portal-entry-arrow,
body.portal-hover-left .portal-entry-left .portal-entry-arrow,
body.portal-hover-mid .portal-entry-mid .portal-entry-arrow,
body.portal-hover-right .portal-entry-right .portal-entry-arrow {
    opacity: 0.9;
    transform: translateX(0);
}

.portal-or {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    font-family: 'Dosis', sans-serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.5);
}

.title-bottom-time {
    letter-spacing: 2px;
}

@media only screen and (max-width: 767px) {
    .portal-split-overlay {
        display: none;
    }

    #portal-wrapper {
        margin-top: 5px;
        padding: 0 10px;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .portal-entries {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        gap: 0;
    }

    .portal-entry {
        min-height: 108px;
        padding: 20px 16px 18px;
        width: 100%;
    }

    .portal-entries-3 .portal-entry-mid {
        flex: 1 1 auto;
        padding-left: 16px;
        padding-right: 16px;
    }

    .portal-entries-3 .portal-entry-mid .portal-entry-desc {
        max-width: 100%;
    }

    .portal-entry-left,
    .portal-entry-mid,
    .portal-entry-right {
        border: 1px solid rgba(255, 255, 255, 0.45);
    }

    .portal-entry-left,
    .portal-entry-mid {
        border-bottom: none;
    }

    .portal-or {
        flex: 0 0 auto;
        width: 100%;
        min-height: 44px;
        border-left: 1px solid rgba(255, 255, 255, 0.45);
        border-right: 1px solid rgba(255, 255, 255, 0.45);
    }

    .portal-entry-title {
        font-size: clamp(20px, 6vw, 24px);
    }

    .portal-entry-desc {
        font-size: 11px;
        margin-top: 8px;
        padding-right: 28px;
    }

    .portal-entry-arrow {
        opacity: 0.55;
        transform: translateX(0);
        right: 12px;
        bottom: 50%;
        margin-bottom: -9px;
    }

    .western-modal-panel {
        padding: 24px 16px 18px;
        width: min(100%, 420px);
        max-height: min(90vh, 640px);
        overflow-y: auto;
    }

    .western-modal-panel h2 {
        font-size: 22px;
    }

    .western-form input,
    .western-form select,
    .western-form button {
        font-size: 16px;
        min-height: 44px;
    }
}

@media only screen and (max-width: 480px) {
    .portal-entry-title {
        font-size: 22px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .portal-entries-3 {
        max-width: 720px;
    }

    .portal-entries-3 .portal-entry-mid {
        flex: 1.55 1 0;
    }

    .portal-entries-3 .portal-entry-mid .portal-entry-desc {
        max-width: 220px;
    }

    .portal-entry-title {
        font-size: 22px;
    }

    .portal-entry-desc {
        font-size: 11px;
    }
}
