/* Larpcord website. Look: banknotes like in the logo (dollar green, paper beige, gold). */

:root {
    --bg: #0b1810;
    --bg-2: #10241a;
    --bill: #1d3d2a;
    --bill-2: #2b5a3d;
    --mint: #85bb65;
    --mint-soft: #a8cf8e;
    --paper: #e9e5cf;
    --paper-2: #d6d1b3;
    --ink: #14261b;
    --gold: #d4af37;
    --gold-2: #f3d77a;
    --text: #edf2e7;
    --muted: #a9b8a6;
    --line: rgba(212, 175, 55, .28);
    --radius: 14px;
    --serif: "Georgia", "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Discord preview */
    --d-bg: #313338;
    --d-bg-2: #2b2d31;
    --d-bg-3: #1e1f22;
    --d-text: #dbdee1;
    --d-muted: #949ba4;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    color: var(--text);
    font: 16px/1.6 var(--sans);
    background-color: var(--bg);
    /* Guilloche pattern like on banknotes */
    background-image:
        radial-gradient(ellipse at 20% -10%, rgba(133, 187, 101, .22), transparent 55%),
        radial-gradient(ellipse at 90% 10%, rgba(212, 175, 55, .14), transparent 50%),
        repeating-radial-gradient(circle at 0 0, transparent 0 22px, rgba(133, 187, 101, .05) 22px 23px),
        repeating-radial-gradient(circle at 100% 100%, transparent 0 22px, rgba(212, 175, 55, .04) 22px 23px),
        linear-gradient(180deg, var(--bg-2), var(--bg));
    background-attachment: fixed;
    overflow-x: hidden;
}

a { color: var(--gold-2); }
code { font-size: .9em; background: rgba(0, 0, 0, .25); padding: .1em .35em; border-radius: 5px; }
img { max-width: 100%; }

/* ---------- Money rain in the background ---------- */
.money-rain { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bill {
    position: absolute; top: -120px;
    width: 120px; height: 52px;
    opacity: .16;
    animation: fall linear infinite;
}
@keyframes fall {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    100% { transform: translate3d(var(--drift, 60px), 115vh, 0) rotate(var(--spin, 240deg)); }
}
@media (prefers-reduced-motion: reduce) { .money-rain { display: none; } }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px max(16px, calc((100vw - 1180px) / 2));
    background: rgba(11, 24, 16, .82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.25rem var(--serif); letter-spacing: .02em; }
.brand img { border-radius: 8px; }
.topnav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.topnav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.topnav a:hover { color: var(--text); }
.topnav .btn { color: var(--ink); }
@media (max-width: 760px) { .topnav a:not(.btn) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: .8em 1.4em; border-radius: 999px; border: 1px solid transparent;
    font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
    background: var(--mint); color: var(--ink);
    transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.btn-small { padding: .45em 1em; font-size: .9rem; }
.btn-big { padding: 1em 1.8em; font-size: 1.1rem; }
.btn-dark { background: #1f2328; color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset; }
.btn-dark:hover { background: #2d333b; }
.gh-icon { flex: none; }
.download-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a1f00; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }

/* ---------- Layout ---------- */
main { position: relative; z-index: 1; }
.section { max-width: 1180px; margin: 0 auto; padding: 72px 16px; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--mint-soft); margin: 0 0 .6em; font-weight: 700; }
.gold {
    background: linear-gradient(90deg, var(--gold-2), var(--gold), #fff1b8, var(--gold));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15rem; color: #d4dccf; max-width: 600px; }
.fineprint { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.stamp {
    display: inline-block; padding: .15em .6em; margin-right: .4em;
    border: 2px solid var(--gold); border-radius: 6px; color: var(--gold-2);
    transform: rotate(-4deg); letter-spacing: .05em;
}

/* ---------- Hero ---------- */
.hero {
    max-width: 1180px; margin: 0 auto; padding: 64px 16px 40px;
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center;
}
.hero-logo { position: relative; display: grid; place-items: center; }
.hero-logo::before {
    content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, .35), transparent 65%);
    filter: blur(10px);
}
.hero-logo img {
    position: relative; width: min(340px, 80vw); height: auto;
    border-radius: 32px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5));
    animation: bob 6s ease-in-out infinite;
    /* The logo has a white background – frame it like a banknote */
    border: 6px solid var(--paper);
    box-shadow: 0 0 0 2px var(--gold), 0 0 0 10px rgba(212, 175, 55, .12);
}
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .hero-logo img { animation: none; } }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; text-align: center; gap: 24px; padding-top: 40px; }
    .lead { margin-inline: auto; }
    .cta-row { justify-content: center; }
    .hero-logo img { width: min(240px, 70vw); }
}

/* ---------- Cards styled as banknotes ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.note {
    position: relative; display: flex; flex-direction: column;
    padding: 22px; border-radius: var(--radius);
    background:
        repeating-linear-gradient(45deg, rgba(29, 61, 42, .06) 0 2px, transparent 2px 7px),
        linear-gradient(160deg, var(--paper), var(--paper-2));
    color: var(--ink);
    border: 1px solid #b9b28c;
    box-shadow: 0 0 0 4px rgba(233, 229, 207, .08), 0 12px 28px rgba(0, 0, 0, .35);
}
.note::before {
    content: ""; position: absolute; inset: 7px; border-radius: 10px; pointer-events: none;
    border: 1.5px double rgba(29, 61, 42, .45);
}
.note p { margin: 0 0 16px; color: #33463a; font-size: .95rem; flex: 1; }
.note h3 { color: var(--bill); }
.card-icon {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem;
    background: radial-gradient(circle, #fff 0 45%, var(--paper-2) 46%);
    border: 2px solid var(--bill-2); margin-bottom: 12px;
}
.try, .try-pill {
    align-self: flex-start; font: 700 .85rem var(--sans); border-radius: 999px; padding: .45em 1em;
    background: var(--bill); color: var(--gold-2); border: 1px solid var(--gold); cursor: pointer;
}
.try:hover { background: var(--bill-2); }
.try-pill { cursor: default; font-size: .8rem; padding: .2em .7em; }
.try-off { background: transparent; color: #5b6b5f; border-color: #a7a082; cursor: default; }

/* ---------- Playground ---------- */
.playground { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }
@media (max-width: 920px) { .playground { grid-template-columns: 1fr; } }
.panel {
    background: rgba(16, 36, 26, .88); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; box-shadow: 0 16px 36px rgba(0, 0, 0, .35);
}
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs button {
    font: 600 .85rem var(--sans); color: var(--muted); background: rgba(0, 0, 0, .25);
    border: 1px solid transparent; border-radius: 999px; padding: .45em .9em; cursor: pointer;
}
.tabs button[aria-selected="true"] { color: #2a1f00; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.tabpanel { display: grid; gap: 12px; }
.tabpanel.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--gold); border-radius: 10px; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hint { margin: 0; font-size: .88rem; color: var(--mint-soft); }
.field { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.field.grow { flex: 1; }
.field-row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
input[type="text"], input[type="date"], input[type="number"], select {
    width: 100%; font: 1rem var(--sans); color: var(--text);
    background: rgba(0, 0, 0, .35); border: 1px solid rgba(169, 184, 166, .25); border-radius: 8px; padding: .5em .7em;
}
input[type="color"] { width: 64px; height: 38px; padding: 2px; border-radius: 8px; border: 1px solid rgba(169, 184, 166, .25); background: rgba(0, 0, 0, .35); cursor: pointer; }
input[type="range"] { width: 100%; accent-color: var(--gold); }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .95rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span {
    width: 40px; height: 22px; border-radius: 999px; background: #3b4a40; position: relative; flex: none; transition: background .2s;
}
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--mint); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.check-grid label {
    display: flex; align-items: center; gap: 8px; font-size: .88rem; padding: 6px 8px; border-radius: 8px;
    background: rgba(0, 0, 0, .2); cursor: pointer;
}
.check-grid input { accent-color: var(--gold); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; font: 600 .82rem var(--sans); color: var(--text);
    background: rgba(0, 0, 0, .3); border: 1px solid rgba(169, 184, 166, .25); border-radius: 999px; padding: .3em .8em; cursor: pointer;
}
.chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Compare switch */
.compare { display: inline-flex; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 12px; }
.compare button { font: 600 .9rem var(--sans); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: .45em 1em; cursor: pointer; }
.compare button[aria-pressed="true"] { background: var(--mint); color: var(--ink); }

/* ---------- Discord preview ---------- */
.discord {
    display: grid; grid-template-columns: 64px 170px 1fr; min-height: 560px;
    background: var(--d-bg); color: var(--d-text); border-radius: var(--radius); overflow: hidden;
    border: 1px solid #111; box-shadow: 0 20px 44px rgba(0, 0, 0, .5);
    font-family: "gg sans", var(--sans);
}
@media (max-width: 560px) {
    .discord { grid-template-columns: 56px 1fr; }
    .d-channels { display: none; }
}
.d-guilds { background: var(--d-bg-3); padding: 10px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.d-guild {
    width: 44px; height: 44px; border-radius: 50%; background: var(--d-bg); display: grid; place-items: center;
    font-weight: 700; font-size: .9rem; color: var(--d-text); overflow: hidden; transition: border-radius .2s;
    position: relative;
}
.d-guild.active { border-radius: 14px; background: var(--bill-2); }
.d-guild.active::before { content: ""; position: absolute; left: -10px; width: 4px; height: 36px; background: #fff; border-radius: 0 4px 4px 0; }
.d-home { background: #fff; border-radius: 14px; }
.d-home img { width: 38px; }
.d-sep { width: 28px; height: 2px; background: var(--d-bg); border-radius: 2px; }
.d-channels { background: var(--d-bg-2); padding: 0 8px 10px; }
.d-server-head {
    display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: #f2f3f5;
    padding: 14px 4px; border-bottom: 1px solid var(--d-bg-3); margin: 0 -8px 8px; padding-inline: 12px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.d-sbadge:empty { display: none; }
.d-sbadge { width: 16px; height: 16px; flex: none; display: grid; place-items: center; font-size: 10px; color: #fff; }
.d-sbadge.partner { background: #5865f2; clip-path: polygon(50% 0, 64% 12%, 83% 11%, 88% 30%, 100% 43%, 92% 60%, 96% 79%, 78% 86%, 67% 100%, 50% 92%, 33% 100%, 22% 86%, 4% 79%, 8% 60%, 0 43%, 12% 30%, 17% 11%, 36% 12%); }
.d-sbadge.verified { background: #23a55a; clip-path: polygon(50% 0, 64% 12%, 83% 11%, 88% 30%, 100% 43%, 92% 60%, 96% 79%, 78% 86%, 67% 100%, 50% 92%, 33% 100%, 22% 86%, 4% 79%, 8% 60%, 0 43%, 12% 30%, 17% 11%, 36% 12%); }
.d-boost { font-size: .75rem; color: #ff73fa; padding: 0 4px 8px; font-weight: 600; }
.d-boost:empty { display: none; }
.d-chan { color: var(--d-muted); font-size: .9rem; padding: 5px 8px; border-radius: 6px; }
.d-chan.active { background: #404249; color: #fff; }

.profile {
    margin: 18px; align-self: start; justify-self: center; width: min(340px, 100%);
    border-radius: 12px; overflow: hidden; position: relative;
    background: linear-gradient(180deg, var(--p1, #232428), var(--p2, #232428));
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    padding: 4px;
}
.profile.themed { padding: 4px; }
.p-banner { height: 110px; border-radius: 10px 10px 0 0; background: var(--banner, #5865f2); position: relative; overflow: hidden; }
.p-effect { position: absolute; inset: 0; pointer-events: none; }
.p-effect .fx { position: absolute; top: -20px; font-size: 16px; animation: fx-fall 3.2s linear infinite; }
@keyframes fx-fall { to { transform: translateY(160px) rotate(200deg); } }
.p-effect .spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px var(--gold-2); animation: twinkle 1.8s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .p-effect .fx, .p-effect .spark { animation: none; } }

.p-avatar-wrap { position: absolute; top: 64px; left: 18px; width: 92px; height: 92px; }
.p-avatar {
    position: absolute; inset: 0; border-radius: 50%; background: #fff; border: 6px solid rgba(17, 18, 20, .9);
    display: grid; place-items: center; overflow: hidden;
}
.p-avatar img { width: 80%; }
.p-status { position: absolute; right: 2px; bottom: 4px; width: 22px; height: 22px; border-radius: 50%; background: #23a55a; border: 5px solid rgba(17, 18, 20, .95); z-index: 3; }
.p-deco { position: absolute; inset: -9px; border-radius: 50%; z-index: 2; pointer-events: none; }
.p-deco.gold { border: 5px solid var(--gold); box-shadow: 0 0 0 2px #fff3c0 inset, 0 0 14px rgba(212, 175, 55, .8); }
.p-deco.neon { border: 4px solid transparent; background: conic-gradient(from 0deg, #00f0ff, #b400ff, #ff2fa0, #00f0ff) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); animation: spin 4s linear infinite; filter: drop-shadow(0 0 6px #b400ff); }
.p-deco.cash { inset: -14px; }
.p-deco.cash span { position: absolute; left: 50%; top: 50%; font-size: 16px; transform-origin: 0 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .p-deco.neon { animation: none; } }

.p-badges {
    display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; min-height: 30px;
    margin: 8px 10px 0 120px; padding: 3px 5px; border-radius: 8px; background: rgba(17, 18, 20, .55);
}
.p-badges:empty { background: none; }
.badge {
    width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
    font-size: 13px; color: #fff; cursor: default; position: relative;
}
.badge[title]:hover::after {
    content: attr(title); position: absolute; bottom: 130%; right: 0; white-space: nowrap; font: 600 .75rem var(--sans);
    background: #111214; color: #fff; padding: 4px 8px; border-radius: 6px; z-index: 5;
}
.p-body { margin: 14px 8px 8px; padding: 12px; border-radius: 8px; background: rgba(17, 18, 20, .82); }
.p-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.p-name { font-size: 1.3rem; font-weight: 800; color: #f2f3f5; }
.p-name.gold { background: linear-gradient(90deg, #fff1b8, var(--gold), var(--gold-2), #b8860b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-name.glow { color: #d6ffd0; text-shadow: 0 0 6px var(--mint), 0 0 16px var(--mint); }
.p-name.rainbow { background: linear-gradient(90deg, #ff5f6d, #ffc371, #7bff8a, #4fc3ff, #c77dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-clan { font-size: .72rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: #404249; color: #f2f3f5; }
.p-clan:empty { display: none; }
.p-extra { font-size: .8rem; }
#pVerified { width: 18px; height: 18px; display: inline-grid; place-items: center; background: #5865f2; color: #fff; border-radius: 50%; font-size: 10px; }
.p-user { color: var(--d-muted); font-size: .88rem; margin-bottom: 10px; }
.p-label { text-transform: uppercase; font-size: .7rem; font-weight: 800; color: #b5bac1; letter-spacing: .03em; margin: 10px 0 4px; }
.p-since { font-size: .88rem; }
.p-activity { border-top: 1px solid #2e2f34; padding-top: 4px; }
.p-act-row { display: flex; gap: 10px; align-items: center; }
.p-act-img { width: 56px; height: 56px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 28px; background: linear-gradient(135deg, var(--bill-2), var(--bill)); }
.p-act-name { font-weight: 700; font-size: .9rem; color: #f2f3f5; }
.p-act-line { font-size: .82rem; color: var(--d-text); }
.p-act-line:empty { display: none; }
.p-progress { height: 4px; background: #4e5058; border-radius: 2px; margin-top: 6px; overflow: hidden; display: none; }
.p-progress span { display: block; height: 100%; width: 38%; background: #fff; }
.p-activity.listening .p-progress { display: block; }
.p-activity.custom .p-act-img { display: none; }
.p-music { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 8px; border-radius: 8px; background: rgba(133, 187, 101, .12); border: 1px solid rgba(133, 187, 101, .3); }
.p-play { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 0; background: var(--mint); color: var(--ink); font-size: .9rem; cursor: pointer; }
.p-music-info { flex: 1; min-width: 0; }
.p-music-title { font-size: .82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-music-bar { height: 4px; background: #4e5058; border-radius: 2px; margin-top: 6px; overflow: hidden; }
.p-music-bar span { display: block; height: 100%; width: 0; background: var(--mint); transition: width .2s linear; }
.p-roles { display: flex; flex-wrap: wrap; gap: 4px; }
.role-pill { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: #2e2f34; }
.role-pill i { width: 10px; height: 10px; border-radius: 50%; }
.p-watermark { margin-top: 12px; font-size: .72rem; color: var(--gold-2); text-align: center; opacity: .8; }

/* "What others see": hide everything larp */
.discord[data-view="plain"] .p-deco,
.discord[data-view="plain"] .p-clan,
.discord[data-view="plain"] .p-extra,
.discord[data-view="plain"] .p-effect,
.discord[data-view="plain"] .p-music,
.discord[data-view="plain"] .p-watermark,
.discord[data-view="plain"] .d-sbadge,
.discord[data-view="plain"] .d-boost,
.discord[data-view="plain"] .p-conns { display: none !important; }
.discord[data-view="plain"] .p-badges { visibility: hidden; }

/* ---------- What you can larp ---------- */
.larp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.larp-item {
    padding: 20px; border-radius: var(--radius); background: rgba(16, 36, 26, .85); border: 1px solid var(--line);
    border-left: 4px solid var(--mint);
}
.larp-item ul { margin: 0; padding-left: 1.1em; color: #cdd7c8; font-size: .93rem; }
.larp-item li { margin: .25em 0; }
.larp-item li::marker { content: "$  "; color: var(--gold); font-weight: 700; }

/* ---------- Differences ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; background: rgba(16, 36, 26, .88); }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(212, 175, 55, .15); font-size: .95rem; }
.compare-table thead th { font-family: var(--serif); font-size: 1.05rem; color: var(--gold-2); background: rgba(0, 0, 0, .25); }
.compare-table tbody th { color: var(--text); white-space: nowrap; }
.compare-table td:nth-child(2) { color: var(--muted); }
.compare-table td:nth-child(3) { color: #dcebd2; }
.compare-table tr:last-child > * { border-bottom: 0; }
.warn { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius); background: rgba(212, 175, 55, .1); border: 1px solid var(--line); color: #eadca8; font-size: .95rem; }

/* ---------- Download as a banknote ---------- */
.banknote {
    position: relative; padding: 36px clamp(20px, 5vw, 56px); border-radius: 18px; color: var(--ink);
    background:
        repeating-radial-gradient(ellipse at center, transparent 0 10px, rgba(29, 61, 42, .07) 10px 11px),
        linear-gradient(135deg, #efe9cf, #d3cda8 60%, #c9d1ad);
    border: 2px solid var(--bill);
    box-shadow: 0 0 0 6px var(--paper-2), 0 0 0 8px var(--bill), 0 30px 60px rgba(0, 0, 0, .5);
}
.banknote::before { content: ""; position: absolute; inset: 14px; border: 2px dashed rgba(29, 61, 42, .35); border-radius: 12px; pointer-events: none; }
.bn-corner { position: absolute; font: 700 1.6rem var(--serif); color: var(--bill); width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--bill); border-radius: 50%; background: var(--paper); }
.bn-corner.tl { top: 20px; left: 20px; } .bn-corner.tr { top: 20px; right: 20px; }
.bn-corner.bl { bottom: 20px; left: 20px; } .bn-corner.br { bottom: 20px; right: 20px; }
@media (max-width: 600px) { .bn-corner { display: none; } }
.download-inner { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: left; position: relative; }
.download-inner h2 { color: var(--bill); }
.download-inner .eyebrow { color: var(--bill-2); }
.bn-portrait { border-radius: 50%; background: #fff; border: 4px solid var(--bill); box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold); }
.release-line { margin: 0 0 14px; color: #3c5144; font-weight: 600; }
.banknote .fineprint { color: #4c5d51; }
.banknote code { background: rgba(29, 61, 42, .12); }
.steps { position: relative; max-width: 760px; margin: 28px auto 0; padding-left: 1.3em; color: #25372b; }
.steps li { margin: .4em 0; }

/* ---------- Footer ---------- */
.footer {
    position: relative; z-index: 1;
    display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
    padding: 40px max(16px, calc((100vw - 1180px) / 2)); border-top: 1px solid var(--line);
    background: rgba(8, 17, 11, .9);
}
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand img { border-radius: 8px; background: #fff; }
.footer-brand p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.quicklinks { display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: center; }
.quicklinks h2 { font: 700 .78rem var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--mint-soft); margin: 0; width: 100%; }
.quicklinks a { color: var(--text); text-decoration: none; font-size: .95rem; }
.quicklinks a:hover { color: var(--gold-2); text-decoration: underline; }

/* ---------- Sub pages (privacy) ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 16px 80px; position: relative; z-index: 1; }
.legal-card { padding: clamp(20px, 4vw, 40px); border-radius: 18px; background: rgba(16, 36, 26, .92); border: 1px solid var(--line); }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; color: var(--gold-2); }
.legal p, .legal li { color: #d4dccf; }
.legal .fill { background: rgba(212, 175, 55, .15); border: 1px dashed var(--gold); padding: 0 .3em; border-radius: 4px; color: var(--gold-2); }

/* ---------- Connections (preview + controls) ---------- */
.p-conn-list { display: flex; flex-wrap: wrap; gap: 6px; }
.p-conn { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 4px; background: #2e2f34; font-size: .78rem; font-weight: 600; }
.p-conn i { width: 10px; height: 10px; border-radius: 50%; }
.p-conn small { color: var(--d-muted); font-weight: 500; }
.conn-row { display: flex; gap: 8px; align-items: center; }
.conn-row select { width: auto; flex: none; }

/* ---------- Larp accounts (controls + switch screen) ---------- */
.acc-list { display: grid; gap: 8px; }
.acc-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .25); border: 1px solid transparent; }
.acc-item.active { border-color: var(--mint); }
.acc-item img { width: 34px; height: 34px; border-radius: 50%; background: #fff; flex: none; }
.acc-names { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.acc-names strong, .acc-names small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-names small { color: var(--muted); }
.acc-state { font-size: .8rem; font-weight: 700; color: var(--mint-soft); }
.discord { position: relative; }
.d-switch { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--d-bg); opacity: 0; transition: opacity .25s ease; }
.d-switch.show { opacity: 1; }
.d-cubes { position: relative; width: 32px; height: 32px; margin-bottom: 14px; }
.d-cubes span { position: absolute; top: 0; left: 0; width: 10px; height: 10px; background: #5865f2; animation: d-cube 1.8s ease-in-out infinite; }
.d-cubes span:last-child { animation-delay: -.9s; }
@keyframes d-cube {
    25% { transform: translateX(22px) rotate(-90deg) scale(.5); }
    50% { transform: translateX(22px) translateY(22px) rotate(-179deg); }
    50.1% { transform: translateX(22px) translateY(22px) rotate(-180deg); }
    75% { transform: translateX(0) translateY(22px) rotate(-270deg) scale(.5); }
    100% { transform: rotate(-360deg); }
}
.d-switch b { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: #b5bac1; }
.d-switch p { margin: 0; max-width: 320px; padding: 0 16px; text-align: center; color: var(--d-text); font-size: .95rem; }
