.eh-game-app-component-wrap {
    width: 100%;
}

.eh-game-app--launcher {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 0.625em;
    background: var(--global-palette-btn-bg, #6e5ae2);
    box-shadow: 0 0 0.9375em rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.eh-game-app--launcher:hover {
    background-color: var(--global-palette-btn-bg-hover, #5947c4);
}

.eh-game-app--launcher:not(.is-locked) img.eh-game-app--premium-badge {
    display: none;
}

.eh-game-app--launcher.is-locked {
    cursor: default;
}

.eh-game-app--main-thumbnail {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.eh-game-app--premium-badge {
    position: absolute;
    top: -32px;
    left: -32px;
    z-index: 2;
    width: 80px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.eh-game-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 24px;
    color: #fff;
    background: linear-gradient(135deg, #6e5ae2, #f76a0c);
    font-weight: 700;
}

.eh-game-app__titlearea {
    display: flex !important;
    justify-content: center;
    gap: 16px !important;
    padding-top: 24px !important;
}

.eh-game-app--title {
    margin: 0;
    font-size: 2em !important;
}

.eh-game-app--playbutton,
.eh-game-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-height: 50px;
    padding: 8px 24px !important;
    color: inherit;
    border: 0;
    border-radius: 25px;
    background: var(--global-palette-btn-bg, #6e5ae2);
    cursor: pointer;
    text-decoration: none;
    color:white;
}

.eh-game-app--playbutton:hover,
.eh-game-banner-btn:hover {
    color: inherit;
    background: var(--global-palette-btn-bg-hover, #5947c4);
}

.eh-game-app--play-icon {
    display: inline-flex;
    width: 1em;
    height: 1em;
    margin-left: 8px;
    vertical-align: sub;
}

.eh-game-app--play-icon svg {
    width: 100%;
    height: 100%;
}

.eh-game-app--playbutton.is-locked-btn,
.eh-game-banner-btn.is-locked-btn {
    cursor: pointer;
}

.highlight {
    color: #f76a0c !important;
}

.eh-game-banner-wrap {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    align-items: stretch;
    padding: 16px;
}

.eh-game-banner-image-side {
    min-width: 0;
}

.eh-game-banner-image-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.eh-game-banner-image,
.eh-game-banner-image-side img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    border-radius: 12px;
    object-fit: cover;
}

.eh-game-banner-content-side {
    min-width: 0;
}

.eh-game-banner-tag {
    display: inline-block;
    padding: 8px 16px;
    color: #fff;
    background-color: #6e5ae2;
    border-radius: 25px;
}

.eh-game-banner-heading {
    margin-top: 8px;
    margin-bottom: 0;
    color: var(--global-palette3, #222);
    font-family: inherit;
    font-size: 1.8em;
}

.eh-game-banner-sub {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 1.2em;
    font-weight: 700;
}

.eh-game-banner-btn {
    margin-top: 24px !important;
}

.eh-game-banner-arrow {
    padding-left: 8px;
}

.eh-game-app--modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 24px;
    background: rgba(0, 0, 0, 0.95);
}

.eh-game-app--modal.is-active {
    display: flex;
}

.eh-game-app--viewer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1200px, 95vw);
    min-width: 100%;
    height: min(800px, 92vh);
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.4);
}

.eh-game-app--iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.eh-game-app--iframe.is-ready {
    opacity: 1;
}

.eh-game-app--status {
    position: absolute;
    z-index: 2;
    color: #444;
    font-size: 16px;
}

.eh-game-app--status.is-error {
    max-width: 80%;
    padding: 12px 16px;
    color: #8a1f11;
    background: #ffe9e5;
    border-radius: 6px;
    text-align: center;
}

.eh-game-app--close {
    position: absolute;
    top: var(--eh-close-top, 32px);
    right: var(--eh-close-right, 60px);
    z-index: 3;
    padding: 0;
    color: var(--eh-close-color, #fff);
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 40px;
    line-height: 1;
}

/* Tablet. Overridden by the mobile rule further down. */
@media (max-width: 1024px) {
    .eh-game-app--close {
        top: var(--eh-close-top-tablet, 24px);
        right: var(--eh-close-right-tablet, 32px);
    }
}

.eh-game-app--modal-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .button.eh-game-app--playbutton {
        margin-left: 16px;
    }
}

@media (max-width: 767px) {
    .eh-game-app__titlearea {
        flex-wrap: wrap;
        gap: 0 !important;
    }

    .eh-game-banner-wrap {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 12px;
        text-align: center;
    }

    .eh-game-banner-image,
    .eh-game-banner-image-side img {
        width: 100%;
        height: auto;
        min-height: 0;
        border-radius: 12px;
    }

    .eh-game-banner-heading {
        margin-top: 12px;
        font-size: 1.5em;
        line-height: 1.2;
    }

    .eh-game-banner-tag {
        padding: 6px 14px;
        font-size: 0.9em;
    }

    .eh-game-banner-sub {
        margin-top: 8px;
        margin-bottom: 15px;
        font-size: 1.1em;
    }

    .eh-game-banner-btn {
        width: 100%;
        margin-top: 24px !important;
    }

    .eh-game-app--modal {
        padding: 10px;
    }

    .eh-game-app--viewer {
        width: 100%;
        height: 90vh;
    }

    .eh-game-app--close {
        top: var(--eh-close-top-mobile, 4px);
        right: var(--eh-close-right-mobile, 12px);
    }
}

/* Memory Match only: use the full available browser viewport when app 45767 is open. */
#eh-game-app-modal[data-eh-game-id="45767"] {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}

#eh-game-app-modal[data-eh-game-id="45767"] .eh-game-app--viewer {
    width: 100vw;
    max-width: none;
    min-width: 0;
    height: 100vh;
    max-height: none;
    border-radius: 0;
}

#eh-game-app-modal[data-eh-game-id="45767"] .eh-game-app--iframe {
    width: 100%;
    height: 100%;
}
