/* =====================================================================
   Shared look of the standalone pages: status, roadmap, clan events,
   public profiles and server templates. Silent Night tokens, both themes.
   ===================================================================== */

.pg-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--sn-line);
    background: linear-gradient(135deg, var(--sn-s2), var(--sn-s1) 60%, color-mix(in oklab, var(--sn-s1) 85%, var(--sn-aurora) 15%));
}
.pg-hero__glow {
    position: absolute;
    inset: -50% -10% auto auto;
    width: 460px;
    height: 380px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(closest-side, rgb(71 199 248 / 0.2), transparent 70%),
                radial-gradient(closest-side at 70% 60%, rgb(171 147 237 / 0.16), transparent 70%);
}
html.light .pg-hero__glow { opacity: 0.5; }
.pg-title {
    font-family: var(--sn-display);
    font-weight: 600;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.2;
    color: var(--sn-text);
}
.pg-card {
    background: var(--sn-s1);
    border: 1px solid var(--sn-line);
    border-radius: 18px;
    overflow: hidden;
}
.pg-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--sn-muted);
    background: var(--sn-ice-a08);
    border: 1px solid var(--sn-line);
}

/* ---------- status ---------- */
.st-orb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff8, transparent 45%), var(--st, var(--sn-ok));
    box-shadow: 0 0 0 6px color-mix(in oklab, var(--st, var(--sn-ok)) 18%, transparent), 0 0 32px color-mix(in oklab, var(--st, var(--sn-ok)) 60%, transparent);
    animation: st-breathe 3s ease-in-out infinite;
}
.st-orb--ok { --st: var(--sn-ok); }
.st-orb--warn { --st: var(--sn-warn); }
.st-orb--down { --st: var(--sn-danger); }
@keyframes st-breathe { 50% { transform: scale(0.92); } }
.st-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.st-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: var(--sn-ice);
    background: var(--sn-ice-a08);
    border: 1px solid var(--sn-ice-a14);
}
.st-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--st);
    background: color-mix(in oklab, var(--st) 12%, transparent);
    border: 1px solid color-mix(in oklab, var(--st) 30%, transparent);
}
.st-badge--ok { --st: var(--sn-ok); }
.st-badge--warn { --st: var(--sn-warn); }
.st-badge--down { --st: var(--sn-danger); }
.st-badge--off { --st: var(--sn-muted); }
.st-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-badge--ok .st-dot { animation: st-blink 2s ease-in-out infinite; }
@keyframes st-blink { 50% { opacity: 0.35; } }
@media (max-width: 520px) { .st-row { flex-wrap: wrap; } .st-badge { margin-left: 52px; } }

/* ---------- roadmap ---------- */
.rm-cols { display: grid; gap: 16px; }
@media (min-width: 900px) { .rm-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rm-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rm-col__head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 4px 6px;
    font-weight: 700;
    color: var(--sn-text);
}
.rm-col__head i { color: var(--tone); }
.rm-col__head .pg-chip { margin-left: auto; }
.rm-item {
    display: block;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--sn-s1);
    border: 1px solid var(--sn-line);
    border-left: 3px solid var(--tone);
    transition: transform 240ms var(--sn-ease), border-color 200ms;
}
.rm-item:hover { transform: translateY(-2px); border-color: var(--sn-line-2); border-left-color: var(--tone); }
.rm-item__title { font-weight: 600; color: var(--sn-text); font-size: 0.9rem; line-height: 1.35; }
.rm-item__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 0.72rem; color: var(--sn-muted); }
.rm-item__note { margin-top: 8px; font-size: 0.78rem; color: var(--sn-muted); border-top: 1px dashed var(--sn-line); padding-top: 8px; }
.rm-empty { padding: 18px; text-align: center; font-size: 0.8rem; color: var(--sn-subtle); border: 1px dashed var(--sn-line); border-radius: 16px; }

/* ---------- leaderboards (events, seasons) ---------- */
.lb-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
.lb-row + .lb-row { border-top: 1px solid var(--sn-line); }
.lb-place {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-family: var(--sn-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sn-muted);
    background: var(--sn-s2);
}
.lb-row:nth-child(1) .lb-place { color: #1a1200; background: linear-gradient(135deg, #fde68a, #f59e0b); }
.lb-row:nth-child(2) .lb-place { color: #0b1220; background: linear-gradient(135deg, #e5e7eb, #94a3b8); }
.lb-row:nth-child(3) .lb-place { color: #1a0d00; background: linear-gradient(135deg, #fdba74, #c2410c); }
.lb-score { margin-left: auto; font-family: var(--sn-mono); font-weight: 700; color: var(--sn-ice); }
.lb-bar { height: 4px; border-radius: 4px; background: var(--sn-s3); overflow: hidden; margin-top: 6px; }
.lb-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sn-ice-2), var(--sn-aurora)); }

/* ---------- profile ---------- */
.pf-avatar { width: 88px; height: 88px; border-radius: 28px; object-fit: cover; border: 3px solid var(--sn-s1); box-shadow: 0 0 0 3px var(--sn-ice-a30); background: var(--sn-s2); }
.pf-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .pf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pf-stat { padding: 14px; border-radius: 16px; background: var(--sn-s1); border: 1px solid var(--sn-line); }
.pf-stat b { display: block; font-family: var(--sn-display); font-size: 1.15rem; color: var(--sn-text); }
.pf-stat span { font-size: 0.72rem; color: var(--sn-muted); }
.pf-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sn-text);
    background: linear-gradient(135deg, color-mix(in oklab, var(--tone, var(--sn-ice)) 18%, transparent), transparent);
    border: 1px solid color-mix(in oklab, var(--tone, var(--sn-ice)) 35%, transparent);
}

/* ---------- server templates ---------- */
.tp-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .tp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tp-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(160deg, color-mix(in oklab, var(--tone) 14%, var(--sn-s1)), var(--sn-s1) 55%);
    border: 1px solid var(--sn-line);
    transition: transform 260ms var(--sn-ease), border-color 200ms, box-shadow 260ms;
}
.tp-card:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--tone) 45%, var(--sn-line)); box-shadow: 0 24px 40px -28px var(--tone); }
.tp-ico {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1.1rem;
    color: var(--tone);
    background: color-mix(in oklab, var(--tone) 15%, transparent);
    border: 1px solid color-mix(in oklab, var(--tone) 35%, transparent);
}
.tp-list { display: flex; flex-wrap: wrap; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
    .st-orb, .st-badge--ok .st-dot { animation: none; }
    .rm-item, .tp-card { transition: none; }
}
.pg-chip.is-taken { opacity: 0.5; border-style: dashed; }

/* ---------- support ---------- */
.sp-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.sp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #ff7a45, #f15f2c 55%, #d9481b);
    box-shadow: 0 10px 28px -10px rgb(241 95 44 / 0.75), inset 0 1px 0 rgb(255 255 255 / 0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}
.sp-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgb(241 95 44 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.25); }
.sp-btn i { animation: sp-beat 1.6s ease-in-out infinite; }
@keyframes sp-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .sp-btn i { animation: none; } }
.sp-url { font-family: var(--sn-mono, monospace); font-size: 0.78rem; color: var(--sn-muted); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; text-align: center; }
.sp-url:hover { color: #f15f2c; }
.sp-head { font-family: var(--sn-display); font-weight: 600; font-size: 1.1rem; color: var(--sn-text); margin-bottom: 12px; }
.sp-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sp-card { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.sp-card b { color: var(--sn-text); }
.sp-card p { font-size: 0.85rem; color: var(--sn-muted); line-height: 1.55; }
.sp-ico {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    color: var(--tone); background: color-mix(in oklab, var(--tone) 14%, transparent);
    border: 1px solid color-mix(in oklab, var(--tone) 30%, transparent);
}
.sp-more { padding: 18px 20px; }
.sp-links { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-links a {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-size: 0.85rem;
    color: var(--sn-text); background: var(--sn-ice-a08); border: 1px solid var(--sn-line); transition: border-color 0.15s ease;
}
.sp-links a:hover { border-color: var(--sn-ice, #47c7f8); }

/* ---------- «Тонкая ночь 2026» shelf on profiles (stays after the event) ---------- */
.hn-aura { box-shadow: 0 0 0 3px var(--aura, #f97316), 0 0 26px -2px var(--aura, #f97316) !important; }
.hn-shelf { border-color: color-mix(in oklab, var(--aura, #f97316) 45%, var(--sn-line)) !important; }
.hn-shelf__title { color: var(--aura, #ffb15c); font-style: italic; font-size: 0.9rem; }
.hn-ach-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hn-ach {
    display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; border-radius: 999px;
    font-size: 0.78rem; color: #ffe8cc; background: rgb(249 115 22 / 0.12); border: 1px solid rgb(249 115 22 / 0.35);
}

/* ---------- /halloween: «Тонкая ночь 2026» (looks the same with or without the seasonal theme) ---------- */
.hn-page { --hn-o: #f97316; --hn-o2: #ffb15c; --hn-v: #8b5cf6; }
.hn-hero { background: linear-gradient(135deg, #1d1030, #140c22 55%, #2a1208) !important; border-color: rgb(249 115 22 / 0.3) !important; }
html.light .hn-hero { background: linear-gradient(135deg, #fff1e6, #f5ecff 60%, #ffe8d6) !important; }
.hn-hero__grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
@media (max-width: 720px) { .hn-hero__grid { grid-template-columns: 1fr; } .hn-hero__art { justify-self: center; } }
.hn-title {
    font-family: var(--sn-display); font-weight: 700; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.05;
    background: linear-gradient(90deg, #ffb15c, #f97316 45%, #b07cff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hn-when { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 0.9rem; font-size: 0.85rem; color: var(--sn-muted); }
.hn-when b { color: var(--hn-o2); font-family: var(--sn-mono); }
.hn-samhain { color: #ff8a3d; font-weight: 600; }
.hn-hero__art { position: relative; width: clamp(130px, 18vw, 190px); }
.hn-hero__art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: 0 0 0 2px rgb(249 115 22 / 0.5), 0 0 50px -6px rgb(249 115 22 / 0.6); }
.hn-hero__art .hn-hero__pumpkin { position: absolute; right: -18px; bottom: -18px; width: 64px; height: 64px; box-shadow: none; border-radius: 0; filter: drop-shadow(0 4px 12px rgb(249 115 22 / 0.7)); animation: hn-bob 3s ease-in-out infinite; }
@keyframes hn-bob { 50% { transform: translateY(-6px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .hn-hero__pumpkin { animation: none; } }
.hn-h2 { font-family: var(--sn-display); font-weight: 600; font-size: 1.1rem; color: var(--sn-text); }
.hn-h3 { font-weight: 600; color: var(--sn-text); margin: 1.4rem 0 0.7rem; }
.hn-me { border-color: color-mix(in oklab, var(--aura, #f97316) 45%, var(--sn-line)) !important; }
.hn-level { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 0.4rem 0.6rem; margin-top: 1rem; }
.hn-level > b { font-family: var(--sn-display); font-size: 2.4rem; color: var(--hn-o2); line-height: 1; }
.hn-level > span { color: var(--sn-muted); }
.hn-level > small { grid-column: 1 / -1; color: var(--sn-muted); font-size: 0.75rem; }
.hn-bar { position: relative; height: 12px; border-radius: 999px; background: rgb(139 92 246 / 0.16); overflow: visible; }
.hn-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b07cff, #f97316 70%, #ffb15c); box-shadow: 0 0 14px -2px rgb(249 115 22 / 0.7); }
.hn-bar--thin { height: 6px; margin: 0.45rem 0 0.25rem; }
.hn-bar--big { height: 18px; }
.hn-stage { position: absolute; top: -4px; width: 4px; height: 26px; margin-left: -2px; border-radius: 2px; background: var(--sn-line-2); }
.hn-stage.is-on { background: #ffb15c; box-shadow: 0 0 10px #f97316; }
.hn-quests { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 1.2rem; }
.hn-quest { padding: 0.75rem 0.9rem; border-radius: 14px; background: var(--sn-s2); border: 1px solid var(--sn-line); font-size: 0.82rem; }
.hn-quest b { display: block; color: var(--sn-text); font-weight: 600; }
.hn-quest small { color: var(--sn-muted); }
.hn-quest.is-done { border-color: rgb(95 224 168 / 0.45); }
.hn-quest.is-done b::before { content: ""; display: inline-block; width: 1.1em; height: 1.1em; margin-right: 0.3em; vertical-align: -0.2em;
    background: url("../img/icons/hn_sparkles.webp") center / contain no-repeat; }
.hn-quest__kind { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--hn-o2); }
.hn-ach-grid { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.hn-ach-card { display: grid; grid-template-columns: auto 1fr; gap: 0 0.6rem; align-items: center; padding: 0.6rem 0.75rem; border-radius: 14px;
    background: rgb(249 115 22 / 0.08); border: 1px solid rgb(249 115 22 / 0.3); }
.hn-ach-card > span { grid-row: span 2; }
.hn-ach-card > span .ico { width: 2.1rem; height: 2.1rem; }
.hn-ach-card.is-locked > span .ico { filter: grayscale(0.6); }
.hn-ach-card b { color: var(--sn-text); font-size: 0.85rem; }
.hn-ach-card small { color: var(--sn-muted); font-size: 0.7rem; line-height: 1.3; }
.hn-ach-card.is-locked { background: var(--sn-s2); border-color: var(--sn-line); opacity: 0.7; }
.hn-track { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 0.5rem; overflow-x: auto; padding: 1rem 0.2rem 0.6rem; scroll-snap-type: x proximity; }
.hn-step { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.7rem 0.5rem; border-radius: 16px;
    background: var(--sn-s2); border: 1px solid var(--sn-line); text-align: center; min-height: 128px; }
.hn-step small { font-family: var(--sn-mono); color: var(--sn-muted); font-size: 0.7rem; }
.hn-step span .ico { width: 2.4rem; height: 2.4rem; }
.hn-step em .ico { width: 1.15em; height: 1.15em; }
.hn-step em { font-style: normal; font-size: 0.68rem; color: var(--sn-muted); line-height: 1.3; }
.hn-step--title, .hn-step--aura, .hn-step--badge, .hn-step--game { border-color: rgb(139 92 246 / 0.45); }
.hn-step.is-got { border-color: rgb(249 115 22 / 0.6); background: rgb(249 115 22 / 0.1); }
.hn-step.is-final { border-color: #ffb15c; box-shadow: 0 0 22px -6px #f97316; }
.hn-cols { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.hn-list { margin-top: 0.8rem; display: grid; gap: 0.55rem; font-size: 0.85rem; color: var(--sn-muted); }
.hn-list b { color: var(--sn-text); }
.hn-list code { color: var(--hn-o2); background: rgb(249 115 22 / 0.1); padding: 0.1rem 0.4rem; border-radius: 6px; font-size: 0.8rem; }
.hn-shop, .hn-top { margin-top: 0.8rem; display: grid; gap: 0.4rem; font-size: 0.85rem; }
.hn-shop li, .hn-top li { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.45rem 0.7rem; border-radius: 10px; background: var(--sn-s2); color: var(--sn-text); }
.hn-shop b { color: var(--hn-o2); white-space: nowrap; }
.hn-top { counter-reset: hn; }
.hn-top li::before { counter-increment: hn; content: counter(hn) "."; color: var(--hn-o2); font-weight: 700; margin-right: 0.4rem; }
.hn-top li span:last-child { color: var(--sn-muted); white-space: nowrap; }
.hn-top a { color: var(--sn-text); text-decoration: underline; text-underline-offset: 3px; }

/* «Тонкая ночь 2026»: frames round the avatar on a profile (kept for good, so they live here, not in halloween.css) */
@property --hn-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hn-frame { position: relative; display: inline-block; border-radius: 30px; line-height: 0; }
.hn-frame::before {
    content: ""; position: absolute; inset: -8px; border-radius: 36px; padding: 5px; pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.hn-frame--web::before { background: repeating-conic-gradient(from 8deg, rgb(203 213 225 / 0.75) 0 3deg, rgb(203 213 225 / 0.12) 3deg 30deg); }
.hn-frame--candles::before { background: repeating-conic-gradient(#fbbf24 0 7deg, rgb(251 191 36 / 0.1) 7deg 36deg); filter: drop-shadow(0 0 6px rgb(251 191 36 / 0.7)); animation: hn-candles 2.4s ease-in-out infinite; }
.hn-frame--moon::before { background: conic-gradient(from 210deg, #a78bfa, #312e81 40%, #c4b5fd 60%, #312e81 85%, #a78bfa); filter: drop-shadow(0 0 8px rgb(167 139 250 / 0.55)); }
.hn-frame--keeper::before { background: conic-gradient(from var(--hn-a), #f97316, #7c3aed, #fbbf24, #f97316); filter: drop-shadow(0 0 10px rgb(249 115 22 / 0.65)); animation: hn-keeper 4s linear infinite; }
@keyframes hn-candles { 50% { opacity: 0.7; } }
@keyframes hn-keeper { to { --hn-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .hn-frame::before { animation: none !important; } }
