@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
    --bg:          #060510;
    --bg-card:     #0d0b1e;
    --violet:      #a78bfa;
    --violet-deep: #7c3aed;
    --violet-dim:  #4c1d95;
    --gold:        #f0c060;
    --gold-light:  #fde68a;
    --gold-dim:    rgba(240,192,96,0.15);
    --cyan:        #67e8f9;
    --pink:        #f0abfc;
    --text:        #ede9fe;
    --text-dim:    #8b7faa;
    --glass:       rgba(167,139,250,0.04);
    --glass-border:rgba(167,139,250,0.14);
    --glow-v:      rgba(124,58,237,0.35);
    --glow-g:      rgba(240,192,96,0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Jost', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── COSMIC BACKGROUND ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 50% -5%,  rgba(124,58,237,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 15% 60%,  rgba(167,139,250,0.07) 0%, transparent 55%),
        radial-gradient(ellipse 40% 35% at 85% 70%,  rgba(240,192,96,0.06)  0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(232,121,249,0.05) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* Soft star field */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(rgba(167,139,250,0.18) 1px, transparent 1px),
        radial-gradient(rgba(240,192,96,0.10) 1px, transparent 1px);
    background-size: 38px 38px, 71px 71px;
    background-position: 0 0, 19px 19px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

/* ── LANG BAR ── */
.lang-bar {
    position: fixed;
    top: 1.2rem; right: 1.5rem;
    z-index: 100;
    display: flex; gap: 0.4rem;
}

.lang-btn {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.38rem 0.75rem;
    background: rgba(6,5,16,0.93);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; border-radius: 8px;
    transition: all 0.25s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.lang-btn:hover {
    border-color: var(--violet);
    color: var(--violet);
    box-shadow: 0 0 12px var(--glow-v);
}

.lang-btn.active {
    background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(240,192,96,0.08));
    border-color: var(--violet);
    color: var(--violet);
    box-shadow: 0 0 18px var(--glow-v);
}

.lang-flag { font-size: 0.95rem; }

/* ── LAYOUT ── */
.page-wrapper {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ── HEADER ── */
.site-header {
    text-align: center;
    padding: 60px 0 48px;
    animation: fadeDown 0.7s ease both;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 28px;
}

/* Dual orbital rings */
.logo-wrap::before,
.logo-wrap::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 26px;
    border: 1px solid rgba(167,139,250,0.2);
    animation: ring-spin 16s linear infinite;
}

.logo-wrap::after {
    inset: -7px;
    border-color: rgba(240,192,96,0.15);
    animation-duration: 10s;
    animation-direction: reverse;
}

@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.logo-halo {
    position: absolute;
    inset: -24px;
    border-radius: 32px;
    background: radial-gradient(ellipse, rgba(124,58,237,0.22) 0%, rgba(240,192,96,0.06) 50%, transparent 75%);
    animation: halo-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes halo-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.07); }
}

.logo-wrap img {
    width: 168px;
    height: 168px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid rgba(167,139,250,0.25);
    box-shadow:
        0 0 40px rgba(124,58,237,0.35),
        0 0 80px rgba(124,58,237,0.12),
        0 0 20px rgba(240,192,96,0.12);
    position: relative;
    z-index: 1;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-9px); }
}

.site-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--violet) 40%, var(--gold) 80%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.site-header .subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.site-header .game-tag {
    font-size: 0.78rem;
    color: var(--gold);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 20px;
}

.badge-date {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.badge-date svg { color: var(--gold); }

/* ── DIVIDER ── */
.divider {
    display: flex; align-items: center; gap: 14px;
    margin: 0 0 40px;
}

.divider-line {
    flex: 1; height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border), transparent);
}

.divider-lotus {
    font-size: 1.1rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px var(--glow-v));
    animation: halo-pulse 3s ease-in-out infinite;
}

/* ── TOC ── */
.toc {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.6s ease both 0.1s;
}

.toc::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--violet), var(--gold), var(--pink), transparent);
}

.toc h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}

.toc ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
}

.toc ul li a {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 5px 0;
    transition: color 0.2s;
}

.toc ul li a:hover { color: var(--violet); }

.toc-num {
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 22px;
    opacity: 0.8;
}

/* ── SECTIONS (accordion) ── */
.policy-section {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
    animation: fadeUp 0.55s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.policy-section:hover {
    border-color: rgba(167,139,250,0.28);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.08);
}

/* gradient left bar: alternates violet/gold */
.policy-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--violet), var(--gold), transparent);
    pointer-events: none;
}

.policy-section:nth-child(even)::before {
    background: linear-gradient(180deg, var(--gold), var(--violet), transparent);
}

.section-header {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.section-header:hover { background: rgba(124,58,237,0.04); }

.section-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(124,58,237,0.08);
    border: 1px solid rgba(167,139,250,0.18);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(124,58,237,0.12);
}

.section-meta { flex: 1; }

.section-num {
    font-size: 0.68rem;
    color: var(--gold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 3px;
}

.section-title-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
}

.section-chevron {
    color: var(--violet);
    font-size: 0.62rem;
    flex-shrink: 0;
    opacity: 0.55;
    transition: transform 0.35s ease, opacity 0.2s;
}

.policy-section.open .section-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Accordion body */
.section-body {
    padding: 0 24px 24px;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.45s ease, padding 0.35s ease, opacity 0.3s ease;
    opacity: 1;
    border-top: 1px solid rgba(167,139,250,0.07);
}

.section-body.collapsed {
    max-height: 0;
    padding-top: 0; padding-bottom: 0;
    opacity: 0;
    border-top-color: transparent;
}

.section-body-inner { padding-top: 18px; }

.section-body p {
    color: var(--text-dim);
    font-weight: 400;
    line-height: 1.85;
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.section-body p:last-child { margin-bottom: 0; }

.section-body ul {
    list-style: none;
    margin-bottom: 14px;
}

.section-body li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.75;
}

.section-body li::before {
    content: '☽';
    position: absolute;
    left: 0;
    color: var(--violet);
    font-size: 0.55rem;
    top: 6px;
}

.section-body a {
    color: var(--violet);
    text-decoration: none;
    border-bottom: 1px solid rgba(167,139,250,0.3);
    transition: color 0.2s, border-color 0.2s;
}

.section-body a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* Info boxes */
.info-box {
    border-radius: 12px;
    padding: 14px 18px;
    margin: 14px 0;
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 0.86rem;
}

.info-box.safe {
    background: rgba(103,232,249,0.05);
    border: 1px solid rgba(103,232,249,0.2);
}

.info-box.notice {
    background: rgba(124,58,237,0.07);
    border: 1px solid rgba(167,139,250,0.2);
}

.info-box.gold {
    background: rgba(240,192,96,0.06);
    border: 1px solid rgba(240,192,96,0.22);
}

.info-box.warn {
    background: rgba(240,96,120,0.05);
    border: 1px solid rgba(240,96,120,0.18);
}

.info-box-icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }
.info-box p { margin: 0 !important; color: var(--text-dim); }

/* Contact card */
.contact-card {
    display: flex; align-items: center; gap: 16px;
    background: rgba(124,58,237,0.07);
    border: 1px solid rgba(167,139,250,0.22);
    border-radius: 14px;
    padding: 18px 22px;
    margin-top: 16px;
    transition: background 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    background: rgba(124,58,237,0.12);
    box-shadow: 0 0 20px rgba(124,58,237,0.18);
}

.contact-card .contact-icon { font-size: 1.8rem; }
.contact-card .contact-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-card a {
    color: var(--violet);
    font-size: 0.95rem;
    font-weight: 600;
    border: none !important;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-card a:hover { color: var(--gold); }

/* ── FOOTER ── */
footer {
    margin-top: 56px;
    text-align: center;
    padding: 28px 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet), var(--gold), var(--pink), transparent);
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--violet), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    letter-spacing: 0.06em;
}

.footer-icons {
    display: flex; justify-content: center; gap: 10px;
    margin: 10px 0 12px;
    font-size: 1.1rem;
}

footer p { color: var(--text-dim); font-size: 0.8rem; line-height: 1.7; }
footer a { color: var(--violet); text-decoration: none; }
footer a:hover { color: var(--gold); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .lang-bar {
        top: auto; bottom: 1.2rem; right: 50%; transform: translateX(50%);
        background: rgba(6,5,16,0.96); padding: 0.4rem;
        border-radius: 10px; border: 1px solid var(--glass-border);
    }
    .page-wrapper { padding: 20px 16px 90px; }
    .logo-wrap img { width: 130px; height: 130px; }
    .section-header { padding: 14px 18px; }
    .section-body { padding: 0 18px 18px; }
    .toc ul { grid-template-columns: 1fr; }
    .contact-card { flex-direction: column; gap: 10px; }
}
