:root {
    --bg: #080b1f;
    --bg-soft: #10183a;
    --card: rgba(19, 26, 60, 0.82);
    --text: #f6f2ff;
    --muted: #b7b9d6;
    --accent: #d9c7ff;
    --accent-strong: #8f6cff;
    --gold: #ffe49c;
    --line: rgba(255, 255, 255, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 80% 8%, rgba(217, 199, 255, 0.28), transparent 28rem),
        radial-gradient(circle at 18% 22%, rgba(143, 108, 255, 0.24), transparent 24rem),
        linear-gradient(180deg, #060817 0%, var(--bg) 45%, #03040c 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(#fff 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px);
    background-position: 0 0, 35px 55px;
    background-size: 90px 90px, 130px 130px;
    opacity: 0.26;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 5vw, 70px);
    background: rgba(5, 8, 24, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
}

.brand-moon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--bg);
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    border-radius: 50%;
    box-shadow: 0 0 32px rgba(217, 199, 255, 0.58);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
}

.site-nav a:hover,
.section-head a:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    color: var(--text);
    font-size: 1.5rem;
    background: transparent;
    border: 0;
}

#app {
    position: relative;
    z-index: 1;
}

.hero,
.section,
.notice-grid,
.game-detail {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 32px;
    align-items: center;
    padding: 72px 0 38px;
}

.hero > * {
    min-width: 0;
}

.eyebrow,
.pill,
.game-card span {
    display: inline-block;
    max-width: 100%;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
}

h1 {
    max-width: 840px;
    margin-top: 12px;
    font-size: clamp(2.4rem, 7vw, 5.6rem);
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-copy p {
    max-width: 760px;
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    color: #130d2b;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.button.secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
}

.moon-card,
.content-box,
.game-card,
.notice-grid article,
.detail-panel,
.filters,
details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.moon-card {
    min-width: 0;
    max-width: 100%;
    padding: 28px;
    text-align: center;
    overflow: hidden;
}

.moon-card p,
.hero-copy p,
.hero-copy h1 {
    overflow-wrap: anywhere;
}

.moon {
    width: 180px;
    height: 180px;
    margin: 0 auto 22px;
    background: radial-gradient(circle at 35% 35%, #fff8cf, #d8ccff 55%, #7e63db 100%);
    border-radius: 50%;
    box-shadow: 0 0 70px rgba(217, 199, 255, 0.68);
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
    margin-bottom: 44px;
}

.notice-grid article {
    padding: 18px;
}

.notice-grid strong,
.notice-grid span {
    display: block;
}

.notice-grid strong {
    margin-bottom: 6px;
    color: var(--gold);
}

.notice-grid span {
    color: var(--muted);
    font-size: 0.92rem;
}

.section {
    padding: 42px 0;
}

.split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.game-card {
    overflow: hidden;
}

.game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.game-card div {
    padding: 18px;
}

.game-card h3 {
    margin: 8px 0;
    font-size: 1.18rem;
}

.game-card p {
    min-height: 76px;
    font-size: 0.94rem;
}

.filters {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

input,
select,
textarea {
    width: 100%;
    color: var(--text);
    font: inherit;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input,
select {
    height: 48px;
    padding: 0 14px;
}

select {
    padding-right: 44px;
    color: var(--text);
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--gold) 50%),
        linear-gradient(135deg, var(--gold) 50%, transparent 50%),
        linear-gradient(135deg, rgba(255, 228, 156, 0.18), rgba(217, 199, 255, 0.1));
    background-position:
        calc(100% - 23px) 20px,
        calc(100% - 16px) 20px,
        calc(100% - 44px) 50%;
    background-size:
        7px 7px,
        7px 7px,
        1px 28px;
    background-repeat: no-repeat;
    cursor: pointer;
}

input:hover,
select:hover,
textarea:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 228, 156, 0.34);
}

input:focus,
select:focus,
textarea:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 228, 156, 0.72);
    box-shadow: 0 0 0 4px rgba(255, 228, 156, 0.11);
}

textarea {
    padding: 14px;
    resize: vertical;
}

option {
    color: var(--text);
    background: #10183a;
}

.muted {
    color: var(--muted);
}

.game-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
    padding-top: 44px;
}

.iframe-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(143, 108, 255, 0.22), transparent 48%),
        #000;
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.iframe-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.detail-panel {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 18px;
}

.detail-panel img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 22px;
}

.detail-panel h1 {
    margin: 10px 0;
    font-size: clamp(1.65rem, 2.6vw, 2.65rem);
}

.legal-mini {
    padding: 14px;
    color: var(--gold);
    background: rgba(255, 228, 156, 0.08);
    border: 1px solid rgba(255, 228, 156, 0.25);
    border-radius: 18px;
}

.content-box {
    padding: 24px;
}

.content-box img,
.content-box iframe {
    max-width: 100%;
}

.content-box p:first-child {
    margin-top: 0;
}

.content-box p:last-child {
    margin-bottom: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 24px;
}

label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
}

.success-message {
    color: var(--gold);
    font-weight: 700;
}

.faq-list {
    display: grid;
    gap: 14px;
}

details {
    padding: 18px 22px;
}

summary {
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}

.legal {
    width: min(980px, calc(100% - 36px));
    max-width: 980px;
    overflow-wrap: anywhere;
    word-break: normal;
}

.legal h2 {
    margin-top: 28px;
    margin-bottom: 10px;
    color: var(--text);
}

.legal h2:first-child {
    margin-top: 0;
}

.legal ul {
    display: grid;
    gap: 8px;
    padding-left: 22px;
    margin: 12px 0 20px;
    color: var(--muted);
}

.legal li {
    line-height: 1.65;
}

.legal li::marker {
    color: var(--gold);
}

.site-footer {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    padding: 34px clamp(18px, 5vw, 70px);
    margin-top: 56px;
    background: rgba(4, 6, 18, 0.9);
    border-top: 1px solid var(--line);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 22px;
    color: var(--muted);
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 76px;
        right: 18px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: min(300px, calc(100vw - 36px));
        padding: 18px;
        background: var(--bg-soft);
        border: 1px solid var(--line);
        border-radius: 20px;
    }

    .site-nav.open {
        display: flex;
    }

    .hero,
    .split,
    .game-detail,
    .contact-layout,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .game-detail {
        gap: 18px;
        padding-top: 26px;
    }

    .detail-panel {
        position: static;
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 16px;
        align-items: start;
    }

    .detail-panel img {
        grid-row: span 4;
        margin-bottom: 0;
    }

    .notice-grid,
    .games-grid,
    .filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer nav {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    body {
        overflow-x: hidden;
    }

    .site-header {
        padding: 14px 16px;
    }

    .brand {
        font-size: 1.12rem;
    }

    .brand-moon {
        width: 36px;
        height: 36px;
        font-size: 1.45rem;
    }

    .site-nav {
        top: 66px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .hero,
    .section,
    .notice-grid,
    .game-detail {
        width: min(100% - 24px, 1180px);
    }

    h1 {
        font-size: clamp(2rem, 12vw, 3.1rem);
    }

    h2 {
        font-size: 1.45rem;
    }

    p,
    li {
        font-size: 0.98rem;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding-top: 34px;
        padding-bottom: 22px;
    }

    .hero-copy,
    .moon-card {
        width: 100%;
        min-width: 0;
    }

    .hero-actions,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .moon-card,
    .content-box,
    .detail-panel,
    .filters,
    details {
        border-radius: 22px;
    }

    .moon-card {
        padding: 18px;
    }

    .moon {
        width: min(138px, 52vw);
        height: min(138px, 52vw);
    }

    .notice-grid,
    .games-grid,
    .filters {
        grid-template-columns: 1fr;
    }

    .game-card p {
        min-height: auto;
    }

    .detail-panel {
        grid-template-columns: 1fr;
    }

    .detail-panel img {
        grid-row: auto;
        aspect-ratio: 16 / 9;
    }

    .iframe-wrap {
        border-radius: 22px;
    }

    .content-box {
        padding: 18px;
    }

    .legal {
        width: min(100% - 24px, 980px);
        padding: 18px;
    }

    .legal h2 {
        margin-top: 24px;
        font-size: 1.22rem;
        line-height: 1.22;
    }

    .legal ul {
        gap: 7px;
        padding-left: 18px;
        margin-bottom: 18px;
    }

    .site-footer {
        gap: 14px;
        padding: 26px 18px;
    }

    .site-footer nav {
        flex-direction: column;
        gap: 10px;
    }
}
