/*
 * Site styles layered over the theme (plugins.css + main.css).
 * Everything that used to be an inline style="" lives here, so the CSP can
 * refuse inline styles outright.
 */

/* ── Shared bits ─────────────────────────────────────────────────────────── */

/* The menu toggles are <button>s for keyboard/screen-reader use; strip the
   browser's button look and let the theme's own rules style them. */
:where(button.mobile-nav-toggler, button.close-btn) {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
}

/* Spam honeypot on the Formspree forms: off-screen, never seen by people. */
.hp {
    position: absolute !important;
    left: -9999px !important;
}

.form-status {
    min-height: 24px;
    margin: 14px 0 0;
    font-weight: 500;
}

.form-status.success {
    color: var(--tg-theme-primary);
}

.form-status.error {
    color: var(--tg-theme-secondary);
}

.section__title-gap {
    margin-top: 15px;
}

.site-footer__inner {
    margin-top: 20px !important;
}

.site-footer__brand {
    font-size: 24px;
}

/* ── Game cards ──────────────────────────────────────────────────────────── */

.game-card__col {
    margin-bottom: 30px;
}

.services__item.game-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 25px;
    overflow: hidden;
    border-radius: 15px;
    background: #1a1b24;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-card .game-card__icon {
    display: block;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-card .game-card__body {
    flex-grow: 1;
}

.game-card .game-card__title {
    font-size: 22px;
    margin-bottom: 10px;
}

.game-card .game-card__meta {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #45f882;
}

.game-card .game-card__desc {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #a1a1b5;
}

/*
 * Store badges sit side by side at one size. Every badge takes the official
 * Google Play badge's proportions (180 × 53.33), so the browser badge and the
 * store badges always line up, whatever width the card gives them.
 */
.game-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.store-badge {
    flex: 1 1 0;
    min-width: 112px;
    max-width: 160px;
    aspect-ratio: 180 / 53.333;
    display: block;
    border-radius: 3.7%/12.5%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover,
.store-badge:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.store-badge img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* "Play in browser" drawn to match the Google Play badge: same black, grey
   hairline and corner radius. The badge is a size container and everything
   inside is sized in cqw (% of the badge's width), so text and spacing scale
   with the badge. cqw on the container itself would resolve against the
   viewport, hence the inner wrapper. */
.play-badge {
    container-type: inline-size;
    background: #100f0d;
    border: 1px solid #a2a2a1;
    color: #fff;
    line-height: 1;
}

.play-badge:hover,
.play-badge:focus-visible {
    color: #fff;
    border-color: var(--tg-theme-primary);
}

.play-badge__inner {
    display: flex;
    align-items: center;
    gap: 7cqw;
    height: 100%;
    padding: 0 8cqw;
}

.play-badge i {
    font-size: 13cqw;
    color: var(--tg-theme-primary);
}

.play-badge__text {
    display: flex;
    flex-direction: column;
    gap: 2.5cqw;
    min-width: 0;
}

.play-badge small {
    font-size: 6.4cqw;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.play-badge strong {
    font-size: 12.5cqw;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Home: Ember Eclipse teaser ──────────────────────────────────────────── */

.ember-teaser {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 50px 45px;
    overflow: hidden;
    border: 1px solid rgba(255, 122, 26, 0.35);
    border-radius: 15px;
    background: radial-gradient(ellipse at 85% 120%, rgba(255, 122, 26, 0.22), transparent 60%), #1a1b24;
}

.ember-teaser__text {
    max-width: 560px;
}

.ember-teaser__text p {
    margin: 0;
}

.ember-teaser__badge {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ff9a3d;
}

.ember-teaser .ember-teaser__title {
    font-size: 40px;
    margin-bottom: 12px;
}

/* ── Policy pages ────────────────────────────────────────────────────────── */

.breadcrumb-area--pulled {
    margin-top: -50px !important;
}

.policy-hero-img {
    height: 300px !important;
}

.policy-title {
    margin-bottom: 20px;
}

.policy-title__text {
    font-size: 22px;
}

.policy-title__text strong,
.policy-h {
    color: #3fca90 !important;
}

.policy-list {
    margin-left: 40px !important;
    margin-right: 40px !important;
}

.policy-em {
    color: #ffe0a6 !important;
}

.policy-link {
    color: #0aa879 !important;
}

.policy-link--inherit {
    color: inherit !important;
}

.policy-callout {
    margin-bottom: 25px;
    padding: 15px;
    border-left: 4px solid #3fca90;
    border-radius: 4px;
    background-color: rgba(63, 202, 144, 0.1);
}

/* ── 404 ─────────────────────────────────────────────────────────────────── */

.not-found__lead {
    margin: 10px 0 30px;
}

.not-found__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* ── Home: Enterprise Solution teaser ────────────────────────────────────── */

.enterprise-teaser {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 40px;
    padding: 50px 45px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(69, 248, 130, 0.3);
    border-radius: 15px;
    background:
        radial-gradient(60% 90% at 100% 0, rgba(107, 139, 255, 0.2), transparent 70%),
        radial-gradient(50% 80% at 0 100%, rgba(69, 248, 130, 0.12), transparent 70%),
        #12191f;
}

.enterprise-teaser__badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tg-common-color-black);
    background: var(--tg-theme-primary);
}

.enterprise-teaser__title {
    margin-bottom: 14px;
    font-size: 38px;
}

.enterprise-teaser__text p {
    margin-bottom: 18px;
}

.enterprise-teaser__points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.enterprise-teaser__points li {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 13px;
    color: #d7d9e2;
}

.enterprise-teaser__shot {
    display: block;
}

.enterprise-teaser__shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

@media (max-width: 991.98px) {
    .enterprise-teaser {
        grid-template-columns: 1fr;
        padding: 34px 26px;
    }

    .enterprise-teaser__title {
        font-size: 30px;
    }
}
