:root {
    --bg: #0b0b0f;
    --card: #15151c;
    --accent: #ff7a18;
    --accent-soft: rgba(255, 122, 24, 0.15);
    --text: #f5f5f5;
    --muted: #9aa0a6;
}

body.light {
    --bg: #f6efe7;
    --card: #fffaf3;
    --accent: #d97706;
    --accent-soft: rgba(217, 119, 6, 0.12);
    --text: #2b2118;
    --muted: #7a6a5a;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 100px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.header,
.container,
footer {
    position: relative;
    z-index: 1;
}

.header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 15, 0.7);
    border-bottom: 1px solid #1f1f2a;
    z-index: 10;
}

body.light .header {
    background: rgba(255, 245, 235, 0.7);
    border-color: #e5d6c6;
}

.header-inner {
    max-width: 1100px;
    margin: auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.logo {
    width: 60px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.brand h1 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--accent);
}

.tagline {
    font-size: 0.75rem;
    color: var(--muted);
}

.nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: 0.2s;
}

.nav a:hover {
    background: var(--accent-soft);
}

.toggles {
    display: flex;
    gap: 8px;
    margin-left: 10px;
}

.toggle {
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text);
    transition: 0.2s;
    border-radius: 8px;
    cursor: pointer;
}

.toggle:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.toggle svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
    fill: currentColor;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card {
    background: var(--card);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid #1f1f2a;
}

body.light .card {
    border-color: #e5d6c6;
}

.card h2 {
    margin-top: 0;
    color: var(--accent);
}

.copy-box {
    margin-top: 10px;
    background: #0f0f14;
    border: 1px solid #222;
    padding: 12px;
    border-radius: 10px;
    font-family: monospace;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.click-to-copy {
    white-space: nowrap;
}

body.light .copy-box {
    background: #f3e7db;
    border-color: #e5d6c6;
}

.copy-box:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.step {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #101018;
    padding: 12px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 10px;
    border: 1px solid #1f1f2a;
}

body.light .step {
    background: #fff5ea;
    border-color: #e5d6c6;
}

.step-number {
    min-width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--accent);
    color: black;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.muted {
    color: var(--muted);
    font-size: 0.85rem;
}

.map-container {
    position: relative;
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1f1f2a;
}

body.light .map-container {
    border-color: #e5d6c6;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: 0.25s;
}

.map-container:hover .map-overlay {
    opacity: 1;
}

.map-container.unavailable {
    position: relative;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--card);
    background: var(--card);
    text-align: center;
}

.map-container.unavailable .map-message {
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 1rem;
}

.map-container.unavailable .map-btn {
    background: var(--accent);
    color: black;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.map-container.unavailable .map-btn:hover {
    background: var(--accent);
    scale: 1.05;
}

.map-btn {
    background: var(--accent);
    color: black;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--card);
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    opacity: 0;
    transition: 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--muted);
    border-top: 1px solid #1f1f2a;
}

.mod-link {
    text-decoration: none;
    color: var(--accent);
}

.gay-rainbow {
    display: inline-block;
    font-weight: 600;
    background: linear-gradient(
        90deg,
        red,
        orange,
        yellow,
        green,
        cyan,
        blue,
        violet,
        red
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowMove 6s linear infinite;
}

.orange-rainbow {
    display: inline-block;
    font-weight: 600;
    background: linear-gradient(
        90deg,
        orange,
        yellow,
        orange,
        yellow,
        orange,
        yellow,
        orange,
        yellow
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowMove 6s linear infinite;
}

@keyframes rainbowMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}
