/* Abyscend theme. Author: zenh */
@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Rubik:wght@400;500;700;800&display=swap');

:root,
[data-bs-theme="dark"] {
    --abyss-bg: #0d0817;
    --abyss-bg-2: #120b22;
    --abyss-surface: #1a1130;
    --abyss-surface-2: #22173d;
    --abyss-border: #33244f;
    --abyss-violet: #9b6bff;
    --abyss-violet-dark: #5a35c4;
    --abyss-cyan: #4fe3ff;
    --abyss-cyan-dark: #1b8fb0;
    --abyss-gold: #ffc94d;
    --bs-body-bg: var(--abyss-bg);
    --bs-body-color: #e7e1f5;
    --bs-body-font-family: 'Rubik', system-ui, sans-serif;
    --bs-secondary-color: #a79cc0;
    --bs-link-color: var(--abyss-cyan);
    --bs-link-hover-color: #9cf0ff;
    --bs-link-color-rgb: 79, 227, 255;
    --bs-primary: var(--abyss-violet);
    --bs-primary-rgb: 155, 107, 255;
    --bs-border-color: var(--abyss-border);
    --bs-card-bg: var(--abyss-surface);
}

html { scroll-behavior: smooth; }
html, body { height: 100%; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }
.pixel { image-rendering: pixelated; }

h1, h2, h3, .h1, .h2, .h3, .h4, .h5, .navbar-brand { font-family: 'Lilita One', 'Rubik', sans-serif; letter-spacing: .5px; }

body.abyss {
    background:
        linear-gradient(rgba(155, 107, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, rgba(155, 107, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(180deg, var(--abyss-bg-2) 0%, var(--abyss-bg) 60%, #07040d 100%);
    background-attachment: fixed;
}

/* Navbar */
.navbar {
    background: rgba(13, 8, 23, .82) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--abyss-border);
    position: relative; z-index: 1030;
}
.brand-logo { height: 42px; width: auto; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .4)); }
.dropdown-menu {
    --bs-dropdown-bg: var(--abyss-surface-2); --bs-dropdown-border-color: var(--abyss-border);
    --bs-dropdown-link-color: #e7e1f5; --bs-dropdown-link-hover-bg: rgba(155, 107, 255, .2);
    --bs-dropdown-link-hover-color: #fff; --bs-dropdown-link-active-bg: var(--abyss-violet);
    border-width: 2px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); z-index: 1040;
}
.navbar .nav-link {
    font-weight: 800; text-transform: uppercase; font-size: .9rem; letter-spacing: .5px;
    color: #e7e1f5 !important;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--abyss-cyan) !important; }

/* Chunky block buttons, inspired by game UI */
.btn-block, .btn-primary, .btn-abyss {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    position: relative;
    font-family: 'Lilita One', 'Rubik', sans-serif; font-size: 1.15rem; letter-spacing: 1px; text-transform: uppercase;
    padding: 14px 28px; border: 0; border-radius: 10px; color: #fff !important;
    transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn-block:hover, .btn-primary:hover, .btn-abyss:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-block:active, .btn-primary:active, .btn-abyss:active { transform: translateY(3px); }
.btn-block-violet, .btn-primary, .btn-abyss {
    background: linear-gradient(180deg, #b38cff, var(--abyss-violet) 55%, #7f4ff5) !important;
    box-shadow: 0 5px 0 var(--abyss-violet-dark), 0 10px 28px rgba(155, 107, 255, .35);
}
.btn-block-violet:active, .btn-primary:active { box-shadow: 0 2px 0 var(--abyss-violet-dark); }
.btn-block-cyan {
    background: linear-gradient(180deg, #8ff0ff, var(--abyss-cyan) 55%, #25bfe0);
    color: #0d0817 !important;
    box-shadow: 0 5px 0 var(--abyss-cyan-dark), 0 10px 28px rgba(79, 227, 255, .3);
}
.btn-block-cyan:active { box-shadow: 0 2px 0 var(--abyss-cyan-dark); }
.btn-sm-block { font-size: 1rem; padding: 11px 20px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; min-height: 78vh; display: flex; align-items: center; }
.hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 340px at 50% 42%, rgba(155, 107, 255, .35), transparent 70%),
        radial-gradient(900px 300px at 50% 100%, rgba(79, 227, 255, .14), transparent 70%);
}
.hero > .container { width: 100%; }
.hero-logo {
    width: min(640px, 92%);
    filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .35)) drop-shadow(0 0 40px rgba(155, 107, 255, .55));
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }

/* Animated hero logo */
.logo-anim {
    position: relative; display: inline-block; width: min(640px, 92%); line-height: 0;
    animation: float 6s ease-in-out infinite;
}
.hero-logo-img { width: 100%; animation: logo-glow 4s ease-in-out infinite; }
@keyframes logo-glow {
    0%, 100% { filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .35)) drop-shadow(0 0 30px rgba(155, 107, 255, .45)); }
    50% { filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .35)) drop-shadow(0 0 55px rgba(79, 227, 255, .55)); }
}
.logo-fx {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
    -webkit-mask: var(--logo) center / 100% 100% no-repeat; mask: var(--logo) center / 100% 100% no-repeat;
}
.logo-fx span { position: absolute; display: block; mix-blend-mode: screen; }
/* Waterfall, 12 frame pixel art sprite sheet aligned on the logo pixel grid */
.fx-water {
    position: absolute; left: 46.667%; top: 23.927%; width: 6.667%; height: 70.132%;
    background: url('../img/waterfall.png') 0 0 / 1200% 100% no-repeat;
    image-rendering: pixelated; pointer-events: none;
    animation: water-flow 1.1s steps(12, jump-none) infinite;
}
@keyframes water-flow { to { background-position-x: 100%; } }
/* Diagonal light sweep over the whole logo */
.fx-shine {
    inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .28) 48%, transparent 56%);
    background-size: 300% 100%; animation: shine 6s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
/* Crystal glints */
.fx-glint {
    width: 9%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 65%);
    animation: twinkle 3s ease-in-out infinite; opacity: 0;
}
.fx-glint.g1 { left: 46%; top: 3%; background: radial-gradient(circle, #fff6c8, rgba(255, 201, 77, 0) 65%); }
.fx-glint.g2 { left: 70%; top: 22%; animation-delay: -.8s; background: radial-gradient(circle, #f0dcff, rgba(155, 107, 255, 0) 65%); }
.fx-glint.g3 { left: 84%; top: 27%; animation-delay: -1.6s; background: radial-gradient(circle, #e0fbff, rgba(79, 227, 255, 0) 65%); }
.fx-glint.g4 { left: 61%; top: 21%; animation-delay: -2.3s; }
.fx-glint.g5 { left: 74%; top: 72%; animation-delay: -1.1s; background: radial-gradient(circle, #f0dcff, rgba(155, 107, 255, 0) 65%); }
.fx-glint.g6 { left: 82%; top: 70%; animation-delay: -2.7s; background: radial-gradient(circle, #e0fbff, rgba(79, 227, 255, 0) 65%); }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.1); } }
/* Sparkles drifting up from the gold crystal */
.fx-spark {
    position: absolute; width: 6px; height: 6px; background: #ffe79a; box-shadow: 0 0 8px #ffc94d;
    left: 50%; top: 14%; opacity: 0; animation: spark 3.2s ease-out infinite; pointer-events: none;
}
.fx-spark.s2 { left: 45%; animation-delay: -.6s; background: #bff6ff; box-shadow: 0 0 8px var(--abyss-cyan); }
.fx-spark.s3 { left: 55%; animation-delay: -1.3s; }
.fx-spark.s4 { left: 48%; animation-delay: -2s; width: 4px; height: 4px; }
.fx-spark.s5 { left: 53%; animation-delay: -2.6s; background: #e3cfff; box-shadow: 0 0 8px var(--abyss-violet); }
@keyframes spark { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70px); } }
@media (prefers-reduced-motion: reduce) {
    .logo-anim, .hero-logo-img, .fx-water, .logo-fx span, .fx-spark { animation: none !important; }
}
.hero-tagline { font-size: 1.2rem; font-weight: 500; color: var(--bs-secondary-color); max-width: 620px; margin: 18px auto 32px; }

.ip-copy { cursor: pointer; }
.btn-block.ip-copy { flex-direction: column; gap: 0; padding: 12px 34px; }
.ip-text { font-size: 1.35rem; }
.ip-hint { font-family: 'Rubik', sans-serif; font-size: .72rem; font-weight: 700; opacity: .7; letter-spacing: .3px; }
.online-badge {
    position: absolute; top: -12px; right: -12px;
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--abyss-surface-2); color: #fff; border: 2px solid var(--abyss-violet);
    border-radius: 999px; padding: 2px 10px; font-family: 'Rubik', sans-serif; font-size: .8rem; font-weight: 800;
}
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff5b6b; }
.dot.online { background: #6bff9e; box-shadow: 0 0 8px #6bff9e; }
.scroll-hint { display: block; margin-top: 46px; font-size: 1.6rem; color: var(--bs-secondary-color); animation: float 2.4s ease-in-out infinite; }

/* Sections */
.section { padding: 70px 0; }
.block-title { font-size: clamp(2rem, 4vw, 2.8rem); text-transform: uppercase; color: var(--abyss-cyan); text-shadow: 0 4px 0 rgba(0, 0, 0, .35); margin-bottom: 18px; }
.lead-text { font-size: 1.08rem; font-weight: 500; line-height: 1.7; }

/* How to join card */
.join-card {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, var(--abyss-surface-2), var(--abyss-surface));
    border: 2px solid var(--abyss-border); border-radius: 18px; padding: 32px;
    box-shadow: 0 8px 0 #0a0613, 0 20px 50px rgba(0, 0, 0, .4);
}
.join-tag {
    display: inline-block; background: var(--abyss-violet); color: #fff; font-weight: 800; font-size: .75rem;
    padding: 3px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .5px;
}
.join-title { font-size: 1.8rem; text-transform: uppercase; margin: 12px 0 14px; color: #fff; }
.join-steps { padding-left: 20px; margin-bottom: 20px; position: relative; z-index: 1; }
.join-steps li { margin-bottom: 6px; }
.join-steps b { color: var(--abyss-cyan); }
.join-field {
    position: relative; z-index: 1;
    display: flex; justify-content: space-between; align-items: center; max-width: 320px;
    background: #0a0613; border: 2px solid var(--abyss-cyan); border-radius: 8px;
    padding: 10px 14px; font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: #fff;
}
.join-field:hover { background: #140c26; }
.join-portal { position: absolute; right: -24px; bottom: -24px; width: 190px; opacity: .55; border-radius: 16px; transform: rotate(-8deg); }

/* Feature cards */
.feature-card {
    background: linear-gradient(180deg, var(--abyss-surface-2), var(--abyss-surface));
    border: 2px solid var(--abyss-border); border-radius: 16px; padding: 28px;
    box-shadow: 0 6px 0 #0a0613;
    transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--abyss-violet); }
.feature-img { width: 72px; height: 72px; margin-bottom: 16px; border-radius: 10px; filter: drop-shadow(0 0 14px rgba(79, 227, 255, .35)); }
.feature-title { font-size: 1.4rem; text-transform: uppercase; color: #fff; }
.post-img { border-radius: 10px; width: 100%; }

/* Shop banner */
.shop-banner {
    margin: 30px 0; padding: 48px;
    background:
        radial-gradient(500px 220px at 85% 50%, rgba(255, 201, 77, .14), transparent 70%),
        linear-gradient(135deg, #2a1650, #160d2b);
    border: 2px solid var(--abyss-violet); border-radius: 22px;
    box-shadow: 0 8px 0 #0a0613, 0 0 50px rgba(155, 107, 255, .25);
}
.shop-key { width: 96px; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.shop-key.k2 { width: 120px; animation-delay: -1.3s; }
.shop-key.k3 { animation-delay: -2.6s; }

/* FAQ */
.faq { max-width: 820px; }
.faq-item {
    background: var(--abyss-surface); border: 2px solid var(--abyss-border); border-radius: 10px;
    margin-bottom: 12px; box-shadow: 0 4px 0 #0a0613;
}
.faq-item summary {
    cursor: pointer; list-style: none; padding: 16px 20px;
    font-weight: 800; text-transform: uppercase; font-size: .95rem;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "\F282"; font-family: bootstrap-icons; transition: transform .2s; color: var(--abyss-cyan); }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item[open] { border-color: var(--abyss-violet); }
.faq-item p { padding: 0 20px 16px; margin: 0; color: var(--bs-secondary-color); }

/* Copy toast */
.copy-toast {
    position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120px);
    background: var(--abyss-cyan); color: #0d0817; font-weight: 800;
    padding: 10px 20px; border-radius: 10px; box-shadow: 0 4px 0 var(--abyss-cyan-dark);
    transition: transform .25s; z-index: 1080;
}
.copy-toast.show { transform: translate(-50%, 0); }

/* Generic cards on other pages */
.card, .abyss-card {
    background: var(--abyss-surface);
    border: 2px solid var(--abyss-border);
    border-radius: 14px;
}

/* Footer */
.abyss-footer { background: #08050f; border-top: 2px solid var(--abyss-border); }
.footer-logo { width: 150px; opacity: .9; }

/* Shop */
.list-group-item { background: var(--abyss-surface); border-color: var(--abyss-border); font-weight: 600; }
.list-group-item.active { background: var(--abyss-violet); border-color: var(--abyss-violet); }

@media (max-width: 576px) {
    .hero { min-height: auto; padding: 60px 0 40px; }
    .shop-banner, .join-card { padding: 26px; }
    .join-portal { width: 120px; }
}
