* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 210, 77, 0.18), transparent 28rem),
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.14), transparent 26rem),
        #f8fbff;
    color: #172033;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.cx-playdock-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px clamp(16px, 5vw, 72px);
    background: rgba(16, 24, 48, 0.94);
    border-bottom: 1px solid rgba(94, 234, 212, 0.28);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.cx-playdock-brand,
.cx-quest-nav,
.cx-dock-footer nav,
.cx-game-ledger {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cx-playdock-brand {
    flex: 0 0 auto;
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffffff;
    min-width: 0;
}

.cx-brand-logo {
    width: 154px;
    height: 48px;
    object-fit: contain;
}

.cx-brand-copy {
    display: none;
}

.cx-quest-nav {
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

.cx-quest-nav a,
.cx-dock-footer a {
    color: #c9d7ef;
    font-size: 0.94rem;
}

.cx-quest-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.cx-quest-nav a:hover,
.cx-dock-footer a:hover {
    color: #ffd24d;
}

.cx-quest-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cx-nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.cx-toggle-bars,
.cx-toggle-bars::before,
.cx-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #ffd24d;
}

.cx-toggle-bars {
    position: relative;
}

.cx-toggle-bars::before,
.cx-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.cx-toggle-bars::before {
    top: -6px;
}

.cx-toggle-bars::after {
    top: 6px;
}

.cx-playfield {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 56px;
}

.cx-front-stage,
.cx-collection-banner,
.cx-notes-panel {
    border: 1px solid #dbe4ef;
    background: #ffffff;
    border-radius: 8px;
    padding: clamp(24px, 5vw, 54px);
}

.cx-front-stage {
    min-height: 360px;
    display: grid;
    align-items: center;
    background:
        linear-gradient(120deg, rgba(17, 24, 48, 0.94), rgba(79, 70, 229, 0.82), rgba(14, 165, 233, 0.70)),
        url("/game_cover/caslix_bubble-journey.jpg") center/cover;
    color: #fff;
    box-shadow: inset 0 -90px 120px rgba(15, 23, 42, 0.18);
}

.cx-hero-console {
    max-width: 760px;
}

.cx-kicker {
    margin: 0 0 8px;
    color: #ff4d6d;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.cx-front-stage .cx-kicker {
    color: #ffd24d;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 16px;
}

h2 {
    font-size: 1.35rem;
}

.cx-front-stage p,
.cx-collection-banner p,
.cx-notes-panel p,
.cx-detail-brief p {
    line-height: 1.7;
}

.cx-gamefinder {
    margin-top: 24px;
    max-width: 520px;
}

.cx-gamefinder input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
}

.cx-rack {
    margin-top: 36px;
}

.cx-rack-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.cx-rack-heading p {
    margin-bottom: 4px;
    color: #ff4d6d;
    font-weight: 800;
}

.cx-rack-heading h2 {
    margin-bottom: 0;
    color: #334155;
    font-weight: 600;
}

.cx-rack-heading a,
.cx-launch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff4d6d, #ff9f1c);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(255, 77, 109, 0.24);
}

.cx-game-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.cx-feature-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.cx-quest-card {
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease;
    position: relative;
}

.cx-quest-card::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #7c3aed, #ffd24d);
}

.cx-quest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(79, 70, 229, 0.18);
}

.cx-quest-card a {
    display: grid;
    gap: 9px;
    padding: 12px;
}

.cx-quest-card img {
    width: 100%;
    aspect-ratio: 1 / 0.78;
    object-fit: cover;
    border-radius: 6px;
    background: #e2e8f0;
}

.cx-card-genre,
.cx-card-ledger {
    color: #64748b;
    font-size: 0.82rem;
}

.cx-card-genre {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 800;
}

.cx-quest-card h3 {
    margin: 0;
    font-size: 1rem;
    min-height: 2.6em;
    line-height: 1.3;
}

.cx-quest-card p {
    margin: 0;
    color: #475569;
    line-height: 1.45;
    font-size: 0.92rem;
}

.cx-detail-shell {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(360px, 1.1fr);
    gap: clamp(28px, 5vw, 54px);
    align-items: center;
    padding: clamp(18px, 4vw, 36px);
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
}

.cx-cover-stage img {
    width: 100%;
    aspect-ratio: 1 / 0.78;
    object-fit: cover;
    border-radius: 8px;
}

.cx-game-ledger {
    margin: 16px 0 18px;
    color: #475569;
}

.cx-game-ledger span {
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff7d6;
    color: #7c2d12;
}

.cx-signal-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.cx-signal-strip li {
    min-height: 82px;
    padding: 12px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbff, #eef2ff);
    border: 1px solid #dbe4ef;
}

.cx-signal-strip span {
    display: block;
    margin-bottom: 6px;
    color: #ff4d6d;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cx-signal-strip strong {
    display: block;
    color: #172033;
    font-size: 0.92rem;
    line-height: 1.35;
}

.cx-notes-panel {
    margin-top: 28px;
}

.cx-notes-panel h2 {
    margin: 18px 0 8px;
}

.cx-policy-page {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.cx-policy-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 58px);
    border-radius: 8px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(16, 24, 48, 0.96), rgba(79, 70, 229, 0.86)),
        radial-gradient(circle at 90% 20%, rgba(255, 210, 77, 0.38), transparent 18rem);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 50px rgba(30, 41, 59, 0.16);
}

.cx-policy-hero::after {
    content: "Caslix";
    position: absolute;
    right: clamp(18px, 5vw, 60px);
    bottom: -16px;
    color: rgba(255, 255, 255, 0.08);
    font-size: clamp(4rem, 13vw, 10rem);
    font-weight: 900;
    line-height: 1;
}

.cx-policy-hero .cx-kicker {
    color: #ffd24d;
}

.cx-policy-hero h1,
.cx-policy-hero p {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.cx-policy-hero p {
    margin-bottom: 0;
    color: #dbeafe;
}

.cx-policy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.cx-policy-card {
    position: relative;
    min-height: 220px;
    padding: 22px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.cx-policy-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 8px 0 0 8px;
    background: linear-gradient(180deg, #00d4ff, #7c3aed, #ffd24d);
}

.cx-policy-card span {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.78rem;
    font-weight: 900;
}

.cx-policy-card h2 {
    margin: 16px 0 10px;
    font-size: 1.18rem;
}

.cx-policy-card p {
    margin-bottom: 0;
    color: #475569;
    line-height: 1.72;
}

.cx-policy-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 24px;
    border-radius: 8px;
    background: #fff7d6;
    border: 1px solid #fde68a;
}

.cx-policy-contact h2 {
    margin-bottom: 8px;
}

.cx-policy-contact p:last-child {
    margin-bottom: 0;
    color: #7c2d12;
}

.cx-missing-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
    gap: clamp(22px, 5vw, 54px);
    align-items: center;
    min-height: 380px;
    padding: clamp(28px, 6vw, 64px);
    border-radius: 8px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(16, 24, 48, 0.96), rgba(49, 46, 129, 0.90)),
        radial-gradient(circle at 85% 20%, rgba(255, 210, 77, 0.42), transparent 16rem);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 50px rgba(30, 41, 59, 0.18);
}

.cx-missing-stage .cx-kicker {
    color: #ffd24d;
}

.cx-missing-stage p {
    max-width: 720px;
    color: #dbeafe;
    line-height: 1.72;
}

.cx-missing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 22px;
}

.cx-missing-actions > a:not(.cx-launch-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
}

.cx-missing-code {
    display: grid;
    place-items: center;
    min-height: 220px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.cx-dock-footer {
    background: linear-gradient(135deg, #101830, #172554);
    color: #d1d5db;
    padding: 34px 16px;
}

.cx-dock-footer-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.cx-dock-footer strong {
    color: #fff;
    font-size: 1.2rem;
}

.cx-dock-footer nav {
    margin: 18px 0;
}

.cx-play-body {
    background: #101830;
    color: #fff;
    min-height: 100vh;
    overflow: auto;
}

.cx-playbar {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
    background: linear-gradient(90deg, #101830, #312e81);
}

.cx-playbar a {
    color: #fff;
    font-weight: 800;
}

.cx-play-frame {
    min-height: calc(100vh - 58px);
    display: grid;
    place-items: center;
    padding: clamp(14px, 2.5vw, 34px);
    background:
        radial-gradient(circle at 18% 20%, rgba(0, 212, 255, 0.16), transparent 24rem),
        radial-gradient(circle at 82% 10%, rgba(255, 210, 77, 0.14), transparent 22rem),
        #101830;
}

.cx-play-frame iframe {
    width: min(100%, 980px);
    height: min(calc(100vh - 118px), 620px);
    min-height: 520px;
    border: 0;
    display: block;
    background: #000;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    overflow: hidden;
}

@media (max-width: 760px) {
    .cx-playbar {
        height: auto;
        min-height: 56px;
        padding: 10px 14px;
    }

    .cx-play-frame {
        min-height: calc(100vh - 56px);
        padding: 10px;
    }

    .cx-play-frame iframe {
        width: 100%;
        height: min(calc(100vh - 86px), 620px);
        min-height: 420px;
        border-radius: 10px;
    }
}

.cx-back-top {
    position: fixed;
    right: clamp(16px, 3vw, 32px);
    bottom: clamp(16px, 3vw, 32px);
    z-index: 30;
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #00d4ff, #7c3aed 48%, #ff4d6d);
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(79, 70, 229, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.cx-back-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cx-back-top:hover {
    transform: translateY(-3px);
}

.cx-empty {
    display: none;
}

@media (min-width: 761px) and (max-width: 1120px) {
    .cx-playdock-bar {
        align-items: center;
        flex-wrap: wrap;
    }

    .cx-quest-nav {
        flex: 1 1 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        row-gap: 8px;
    }
}

@media (max-width: 760px) {
    .cx-playdock-bar {
        align-items: center;
        flex-wrap: wrap;
    }

    .cx-brand-logo {
        width: 136px;
        height: 42px;
    }

    .cx-nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .cx-quest-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
    }

    .cx-quest-nav.is-open {
        display: flex;
    }

    .cx-quest-nav a {
        width: 100%;
        justify-content: space-between;
        min-height: 42px;
        padding: 0 14px;
        background: rgba(255, 255, 255, 0.06);
    }

    .cx-detail-shell {
        grid-template-columns: 1fr;
    }

    .cx-signal-strip {
        grid-template-columns: 1fr;
    }

    .cx-rack-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cx-game-grid,
    .cx-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .cx-policy-grid {
        grid-template-columns: 1fr;
    }

    .cx-policy-contact {
        align-items: flex-start;
        flex-direction: column;
    }

    .cx-missing-stage {
        grid-template-columns: 1fr;
    }

    .cx-missing-code {
        min-height: 150px;
    }
}

@media (min-width: 761px) and (max-width: 1040px) {
    .cx-game-grid,
    .cx-feature-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
