/* SegaWorld Homepage Design — safe visual layer for Reboot theme */
:root {
    --swh-bg: #030b1d;
    --swh-panel: rgba(5, 19, 48, .92);
    --swh-panel-2: rgba(6, 26, 66, .84);
    --swh-blue: #1f7dff;
    --swh-blue-2: #48a5ff;
    --swh-text: #ffffff;
    --swh-muted: rgba(255,255,255,.72);
    --swh-line: rgba(77, 163, 255, .34);
    --swh-shadow: 0 18px 55px rgba(0, 82, 255, .22);
}

body.home,
body.front-page {
    background:
        radial-gradient(circle at top left, rgba(31,125,255,.26), transparent 34rem),
        radial-gradient(circle at top right, rgba(0,184,255,.16), transparent 28rem),
        linear-gradient(180deg, #010714 0%, #031331 48%, #020817 100%);
}

.seagworld-home,
.segaworld-home {
    max-width: 1480px;
    margin: 0 auto;
    padding: clamp(14px, 2vw, 28px);
    color: var(--swh-text);
}

.segaworld-home * {
    box-sizing: border-box;
}

.swh-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(300px, 42%) minmax(420px, 58%);
    gap: clamp(18px, 3vw, 44px);
    align-items: stretch;
    padding: clamp(26px, 4vw, 50px);
    border: 1px solid rgba(70, 160, 255, .72);
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(2, 10, 31, .98) 0%, rgba(3, 18, 50, .76) 48%, rgba(3, 14, 36, .9) 100%),
        radial-gradient(circle at 60% 28%, rgba(57, 146, 255, .42), transparent 24rem),
        linear-gradient(135deg, #020919, #07255b);
    box-shadow: var(--swh-shadow), inset 0 0 0 1px rgba(255,255,255,.06);
}

.swh-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(72,165,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(72,165,255,.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.8) 28%, transparent 100%);
    pointer-events: none;
}

.swh-hero__content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.swh-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.04;
    letter-spacing: -.03em;
    font-weight: 900;
    text-wrap: balance;
}

.swh-hero p {
    margin: 0 0 13px;
    color: rgba(255,255,255,.92);
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.48;
}

.swh-hero .swh-heart {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    color: #4da3ff;
    font-weight: 800;
    font-size: clamp(17px, 1.7vw, 22px);
}

.swh-hero .swh-heart::before {
    content: "♥";
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(31,125,255,.18);
}

.swh-hero__art {
    position: relative;
    z-index: 1;
    min-height: 330px;
}

.swh-hero__art-main,
.swh-hero__art-side {
    position: absolute;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 18px 45px rgba(0,0,0,.38);
}

.swh-hero__art-main {
    inset: 0 18% 0 0;
    width: 82%;
    height: 100%;
    opacity: .96;
}

.swh-hero__art-side {
    right: 0;
    top: 11%;
    width: 35%;
    height: 72%;
    border: 1px solid rgba(82, 169, 255, .42);
}

.swh-section {
    margin-top: 18px;
    padding: clamp(18px, 2.5vw, 32px);
    border: 1px solid rgba(76, 161, 255, .42);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(5,20,52,.95), rgba(3,14,36,.93));
    box-shadow: 0 16px 42px rgba(0,0,0,.24);
}

.swh-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.swh-section__head h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.15;
    font-weight: 850;
}

.swh-section__head a {
    color: #4da3ff;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.swh-section__head a::after {
    content: " ›";
    font-size: 1.35em;
    line-height: 0;
}

.swh-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #1f7dff, #57b5ff);
    box-shadow: 0 0 24px rgba(31,125,255,.36);
    font-size: 18px;
}

.swh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: clamp(14px, 1.8vw, 22px);
}

.swh-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(81, 166, 255, .36);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(8,32,79,.96), rgba(4,18,45,.98));
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.swh-card:hover {
    transform: translateY(-4px);
    border-color: rgba(89, 181, 255, .86);
    box-shadow: 0 16px 38px rgba(31,125,255,.24);
}

.swh-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    background: rgba(255,255,255,.06);
    overflow: hidden;
}

.swh-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.001);
    transition: transform .25s ease;
}

.swh-card:hover .swh-card__image img {
    transform: scale(1.055);
}

.swh-card__body {
    padding: 11px 12px 13px;
}

.swh-platform {
    display: inline-flex;
    max-width: 100%;
    padding: 3px 8px;
    margin-bottom: 7px;
    border-radius: 999px;
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.09);
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.swh-card__title {
    display: -webkit-box;
    min-height: 38px;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.swh-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    color: rgba(255,255,255,.70);
    font-size: 12px;
}

.swh-rating {
    color: #ffd54a;
    font-weight: 800;
}

.swh-features {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.swh-feature {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 13px;
    align-items: center;
    min-height: 96px;
    padding: 18px;
    border: 1px solid rgba(75, 162, 255, .32);
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(5,26,68,.86), rgba(3,15,40,.96));
    transition: transform .18s ease, border-color .18s ease;
}

.swh-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(82, 173, 255, .78);
    color: #fff;
}

.swh-feature span {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(31,125,255,.17);
    font-size: 24px;
}

.swh-feature strong {
    font-size: 16px;
    line-height: 1.2;
}

.swh-feature em {
    margin-top: 4px;
    color: rgba(255,255,255,.66);
    font-style: normal;
    font-size: 13px;
    line-height: 1.28;
}

@media (min-width: 1280px) {
    .swh-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .swh-hero {
        grid-template-columns: 1fr;
    }
    .swh-hero__art {
        min-height: 300px;
    }
    .swh-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .segaworld-home {
        padding: 10px;
    }
    .swh-hero,
    .swh-section {
        border-radius: 14px;
        padding: 18px;
    }
    .swh-hero__art {
        min-height: 220px;
    }
    .swh-hero__art-main {
        inset: 0;
        width: 100%;
    }
    .swh-hero__art-side {
        display: none;
    }
    .swh-section__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .swh-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .swh-features {
        grid-template-columns: 1fr;
    }
}
