:root {
    --bg: #030204;
    --bg-soft: #08050a;
    --panel: rgba(10, 6, 12, 0.76);

    --rose: #ff2e6e;
    --rose-soft: #a80f3e;
    --pink: #ff4d8d;
    --purple: #8c52ff;
    --cyan: #29f4ff;
    --green: #79ffb1;
    --gold: #ffd166;

    --text: #f8f4f6;
    --muted: #8d7e86;
    --border: rgba(255, 46, 110, 0.23);
}

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

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 18%, rgba(255,46,110,0.11), transparent 30%),
        radial-gradient(circle at 85% 75%, rgba(140,82,255,0.09), transparent 30%),
        radial-gradient(circle at 75% 10%, rgba(41,244,255,0.035), transparent 24%),
        var(--bg);
    color: var(--text);
    font-family: "Courier New", "Lucida Console", monospace;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed; inset: 0; z-index: 1000; pointer-events: none;
    background: repeating-linear-gradient(to bottom, transparent 0px, transparent 2px, rgba(255,255,255,0.018) 3px, transparent 4px);
    opacity: 0.7;
}

.cyber-grid {
    position: fixed;
    width: 160%; height: 100%;
    left: -30%; bottom: -62%;
    transform: perspective(500px) rotateX(63deg);
    transform-origin: center top;
    background-image:
        linear-gradient(rgba(255,46,110,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,46,110,0.08) 1px, transparent 1px);
    background-size: 58px 58px;
    animation: gridMove 5s linear infinite;
    mask-image: linear-gradient(to bottom, transparent, black);
    z-index: 0;
}
@keyframes gridMove { from { background-position: 0 0; } to { background-position: 0 58px; } }

#particles { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.particle {
    position: absolute; width: 2px; height: 2px;
    background: var(--rose);
    box-shadow: 0 0 8px var(--rose);
    opacity: 0.6;
    animation: particleMove linear infinite;
}
@keyframes particleMove { from { transform: translateY(110vh); } to { transform: translateY(-10vh); } }

.page { position: relative; width: min(1180px, calc(100% - 40px)); margin: auto; z-index: 5; }

/* ===== HEADER ===== */
header.site-head {
    min-height: 90px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.055);
    position: sticky; top: 0;
    background: rgba(3,2,4,0.85);
    backdrop-filter: blur(10px);
    z-index: 50;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 15px; color: inherit; text-decoration: none; }
.brand-logo {
    display: block;
    width: 88px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255,46,110,.22));
    transition: transform .25s ease, filter .25s ease;
}
.brand:hover .brand-logo { transform: translateY(-1px) scale(1.035); filter: drop-shadow(0 0 15px rgba(255,46,110,.4)); }

nav.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav.site-nav a {
    color: var(--muted); text-decoration: none; font-size: 0.65rem; letter-spacing: 1.5px; text-transform: uppercase;
    transition: color 0.2s;
}
nav.site-nav a:hover { color: var(--rose); }

.header-status { display: flex; align-items: center; gap: 9px; color: #786a72; font-size: 0.6rem; letter-spacing: 1.5px; }
.discord-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(88,101,242,.62);
    background: rgba(88,101,242,.1);
    color: #dfe2ff;
    text-decoration: none;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .7px;
    white-space: nowrap;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.discord-link svg { width: 21px; height: 21px; flex: 0 0 21px; }
.discord-link:hover {
    transform: translateY(-2px);
    background: #5865f2;
    border-color: #7b86ff;
    color: #fff;
    box-shadow: 0 8px 24px rgba(88,101,242,.3);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px var(--rose); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.72); } }

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 90px 0 70px;
    text-align: left;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.055);
}
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background-size: cover; background-position: center;
    opacity: 0.16;
    filter: grayscale(0.3) contrast(1.1) saturate(1.4);
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.tag { display: inline-flex; align-items: center; gap: 12px; color: var(--rose); font-size: 0.68rem; letter-spacing: 3px; margin-bottom: 22px; }
.tag::before { content: ""; width: 40px; height: 1px; background: var(--rose); box-shadow: 0 0 8px var(--rose); }

.glitch {
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(2.6rem, 8vw, 6rem);
    line-height: 0.92;
    letter-spacing: -3px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 4px 3px 0 rgba(255,46,110,0.85), -3px -3px 0 rgba(140,82,255,0.5);
}
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.glitch::before { color: var(--rose); clip-path: inset(5% 0 70% 0); animation: glitchOne 2.8s infinite steps(1); }
.glitch::after { color: var(--purple); clip-path: inset(68% 0 5% 0); animation: glitchTwo 2.1s infinite steps(1); }
@keyframes glitchOne { 0%,92%,100% { transform: translate(0); } 93% { transform: translate(7px,-2px); } 94% { transform: translate(-5px,3px); } 95% { transform: translate(4px,0); } 96% { transform: translate(0); } }
@keyframes glitchTwo { 0%,89%,100% { transform: translate(0); } 90% { transform: translate(-8px,2px); } 91% { transform: translate(5px,-2px); } 92% { transform: translate(0); } }

.hero-sub {
    margin-top: 14px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1.4rem, 3.6vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--pink);
    text-shadow: 0 0 24px rgba(255,77,141,0.4);
}
.hero-desc { max-width: 640px; margin-top: 26px; color: var(--muted); line-height: 1.9; font-size: 0.88rem; }
.hero-desc strong { color: #fff; }

.hero-meta {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px;
}
.meta-chip {
    display: flex; flex-direction: column; gap: 4px;
    padding: 10px 16px;
    border: 1px solid rgba(255,46,110,0.2);
    background: rgba(255,46,110,0.03);
    min-width: 130px;
}
.meta-chip span.label { color: #655861; font-size: 0.55rem; letter-spacing: 2px; }
.meta-chip span.value { color: var(--rose); font-size: 0.78rem; letter-spacing: 1px; font-weight: bold; }

.hero-cta { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn-rose {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(90deg, var(--rose-soft), var(--rose));
    color: #fff; text-decoration: none;
    font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; font-weight: bold;
    border: none; cursor: pointer;
    box-shadow: 0 0 22px rgba(255,46,110,0.45);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-rose:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(255,46,110,0.7); }
.btn-ghost {
    display: inline-block; padding: 14px 30px;
    background: transparent; color: var(--text); text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }

/* ===== SECTIONS ===== */
section.block { padding: 70px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.block-head { margin-bottom: 38px; }
.eyebrow { color: var(--rose); font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase; }
.block-title {
    margin-top: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 900; letter-spacing: -1px; text-transform: uppercase; color: #fff;
}
.block-title span { color: var(--rose); text-shadow: 0 0 18px rgba(255,46,110,0.5); }
.block-lead { margin-top: 12px; color: var(--muted); max-width: 700px; font-size: 0.85rem; line-height: 1.8; }

/* role cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.role-card, .info-card {
    padding: 26px;
    background: var(--panel);
    border: 1px solid var(--border);
    position: relative;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.role-card .icon { font-size: 2rem; }
.role-card h3, .info-card h3 { margin-top: 12px; font-family: Arial, sans-serif; color: #fff; font-size: 1.05rem; letter-spacing: 1px; }
.role-card p, .info-card p { margin-top: 10px; color: var(--muted); font-size: 0.8rem; line-height: 1.7; }

/* how to join steps */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step-item { display: grid; grid-template-columns: 50px 1fr; gap: 18px; align-items: start; }
.step-num {
    width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--rose); color: var(--rose); font-weight: bold; font-size: 1rem;
    box-shadow: 0 0 12px rgba(255,46,110,0.3);
}
.step-item h4 { color: #fff; font-size: 0.9rem; letter-spacing: 1px; }
.step-item p { color: var(--muted); font-size: 0.8rem; margin-top: 6px; line-height: 1.7; }

/* venue / gallery photo cards */
.photo-card {
    border: 1px solid var(--border);
    background: var(--panel);
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.photo-card img {
    width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block;
    filter: saturate(1.05) contrast(1.05);
    transition: transform 0.3s;
}
.photo-card:hover img { transform: scale(1.04); }
.photo-card p {
    padding: 12px 16px; margin: 0; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.5px; line-height: 1.6;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* town */
.town-panel {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
    padding: 32px; border: 1px solid var(--border); background: var(--panel);
}
.town-code-box {
    padding: 26px; text-align: center;
    border: 1px dashed rgba(255,46,110,0.4);
    background: rgba(255,46,110,0.02);
}
.town-code-box .label { color: #655861; font-size: 0.6rem; letter-spacing: 2px; }
.town-code-box .code { margin-top: 10px; font-size: 1.6rem; letter-spacing: 4px; color: var(--rose); font-weight: bold; }

/* point table */
table.point-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
table.point-table th, table.point-table td {
    padding: 14px 16px; text-align: left; font-size: 0.78rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
table.point-table th { color: var(--rose); text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.65rem; }
table.point-table td { color: var(--muted); }
table.point-table td.pts { color: var(--gold); font-weight: bold; text-align: right; white-space: nowrap; }
table.point-table tr:hover td { color: var(--text); }

.formula-box {
    margin-top: 24px; padding: 18px 22px;
    border-left: 2px solid var(--rose);
    background: rgba(255,46,110,0.02);
    font-size: 0.78rem; color: var(--muted); line-height: 1.9;
}
.formula-box strong { color: var(--pink); }

/* tiebreakers / fair play lists */
.numbered-list { list-style: none; counter-reset: tb; display: grid; gap: 12px; margin-top: 18px; }
.numbered-list li { counter-increment: tb; display: flex; gap: 14px; align-items: baseline; color: var(--muted); font-size: 0.82rem; }
.numbered-list li::before {
    content: counter(tb);
    flex-shrink: 0;
    width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--purple); color: var(--purple); font-size: 0.7rem;
}

.x-list { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.x-list li { display: flex; gap: 12px; color: var(--muted); font-size: 0.8rem; align-items: baseline; }
.x-list li::before { content: "✕"; color: var(--rose); flex-shrink: 0; }

/* prizes */
.prize-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prize-card { text-align: center; padding: 34px 20px; background: var(--panel); border: 1px solid var(--border); }
.prize-card .medal { font-size: 2.4rem; }
.prize-card .place { color: var(--muted); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; margin-top: 8px; }
.prize-card .amount { margin-top: 6px; font-family: Arial, sans-serif; font-size: 2rem; font-weight: 900; color: var(--rose); text-shadow: 0 0 20px rgba(255,46,110,0.5); }

/* schedule timeline */
.timeline { border-left: 2px solid rgba(255,46,110,0.25); margin-left: 8px; padding-left: 28px; display: grid; gap: 26px; }
.timeline-item { position: relative; }
.timeline-item::before {
    content: ""; position: absolute; left: -33px; top: 4px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--rose); box-shadow: 0 0 10px var(--rose);
}
.timeline-item .t-time { color: var(--rose); font-size: 0.65rem; letter-spacing: 2px; }
.timeline-item .t-label { color: #fff; font-size: 0.95rem; margin-top: 4px; font-family: Arial, sans-serif; }
.timeline-item .t-desc { color: var(--muted); font-size: 0.78rem; margin-top: 4px; }

/* registration form */
.register-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; color: var(--muted); font-size: 0.65rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.form-field input[type=text], .form-field input[type=email] {
    width: 100%; padding: 12px 14px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.15);
    color: var(--text); font-family: inherit; font-size: 0.85rem;
}
.form-field input[type=text]:focus, .form-field input[type=email]:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 10px rgba(255,46,110,0.3); }
.checkbox-field { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.75rem; color: var(--muted); }
.checkbox-field input { margin-top: 3px; accent-color: var(--rose); }

.roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.roster-slot {
    padding: 12px 10px; text-align: center; font-size: 0.68rem;
    border: 1px solid rgba(255,255,255,0.1); color: #55464e; letter-spacing: 1px;
}
.roster-slot.filled { border-color: var(--rose); color: var(--rose); background: rgba(255,46,110,0.04); }

.progress-mini { height: 6px; background: rgba(255,255,255,0.07); margin-top: 16px; overflow: hidden; }
.progress-mini-bar { height: 100%; background: linear-gradient(90deg, var(--rose-soft), var(--rose)); box-shadow: 0 0 12px rgba(255,46,110,0.5); }

/* FAQ */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
.faq-q {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 4px; cursor: pointer; color: #fff; font-size: 0.85rem;
}
.faq-q .plus { color: var(--rose); font-size: 1.1rem; transition: transform 0.2s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; color: var(--muted); font-size: 0.8rem; line-height: 1.8; }
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 18px; }

/* game section */
.game-panel {
    padding: 30px; border: 1px solid var(--border); background: var(--panel);
    text-align: center;
}
.game-hud { display: flex; justify-content: center; gap: 26px; margin-bottom: 20px; flex-wrap: wrap; }
.hud-chip { font-size: 0.7rem; letter-spacing: 1.5px; color: var(--muted); }
.hud-chip b { color: var(--rose); font-size: 1rem; }
.game-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 460px; margin: 0 auto;
}
.tile {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer; user-select: none; transition: transform 0.08s, border-color 0.15s;
}
.tile:hover { border-color: rgba(255,46,110,0.4); }
.tile.grimkin { border-color: var(--rose); box-shadow: 0 0 16px rgba(255,46,110,0.55); animation: wiggle 0.5s infinite; }
@keyframes wiggle { 0%,100% { transform: rotate(0deg); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.tile.caught { background: rgba(121,255,177,0.12); border-color: var(--green); }
.tile.missed { background: rgba(255,46,110,0.12); }
.game-msg { margin-top: 18px; min-height: 24px; color: var(--pink); font-size: 0.82rem; letter-spacing: 0.5px; }
.game-panel .btn-rose { margin-top: 20px; }

/* result page */
.result-card {
    padding: 50px 40px; text-align: center;
    background: var(--panel); border: 1px solid var(--border); max-width: 460px;
}
.result-icon { font-size: 2.6rem; }
.result-icon.ok { color: var(--green); text-shadow: 0 0 20px rgba(121,255,177,0.6); }
.result-icon.fail { color: var(--rose); text-shadow: 0 0 20px rgba(255,46,110,0.6); }
.result-title { margin-top: 14px; font-family: Arial, sans-serif; font-size: 1.5rem; color: #fff; text-transform: uppercase; }
.result-text { margin-top: 14px; color: var(--muted); font-size: 0.82rem; line-height: 1.8; }
.result-card .btn-rose { margin-top: 26px; }

/* footer */
footer.site-foot {
    min-height: 75px; display: flex; align-items: center; justify-content: space-between;
    gap: 25px; border-top: 1px solid rgba(255,255,255,0.055);
    color: #51454b; font-size: 0.6rem; letter-spacing: 1.2px; padding: 20px 0; flex-wrap: wrap;
}
footer.site-foot strong { color: var(--rose); text-shadow: 0 0 8px rgba(255,46,110,0.65); }
.footer-discord { color: #bfc5ff; font-weight: 700; text-decoration: none; }
.footer-discord:hover { color: #fff; text-decoration: underline; }
.disclaimer { max-width: 900px; margin: 0 auto 40px; color: #4a3e44; font-size: 0.65rem; line-height: 1.9; text-align: center; }

@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4, .register-panel, .town-panel { grid-template-columns: 1fr; }
    .prize-grid { grid-template-columns: 1fr; }
    .roster { grid-template-columns: repeat(3, 1fr); }
    nav.site-nav { display: none; }
}
@media (max-width: 520px) {
    .game-grid { grid-template-columns: repeat(3, 1fr); }
    .roster { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================================================== */
/* BLACK ROSE PROTOCOL + EPHEMERAL LIVE COMMS                                */
/* ========================================================================== */

/* upgraded training arena */
.game-shell {
    position: relative;
    padding: 30px;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(255,46,110,0.055), transparent 34%),
        linear-gradient(315deg, rgba(41,244,255,0.025), transparent 28%),
        rgba(7,4,9,0.88);
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(255,46,110,0.025);
}
.game-shell::before,
.comms-shell::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 90px; height: 1px;
    background: var(--rose);
    box-shadow: 0 0 14px rgba(255,46,110,0.6);
}
.game-shell::after {
    content: "BRS // SIM-04";
    position: absolute;
    right: 14px; top: 12px;
    color: rgba(255,255,255,0.09);
    font-size: .55rem;
    letter-spacing: 2px;
}
.game-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    text-align: left;
}
.game-kicker { color: #5f5058; font-size: .58rem; letter-spacing: 2px; }
.game-stage {
    margin-top: 5px;
    color: #fff;
    font: 800 1rem/1.2 Arial, sans-serif;
    letter-spacing: 1.6px;
}
.game-lives {
    color: var(--rose);
    font-size: 1rem;
    letter-spacing: 5px;
    text-shadow: 0 0 12px rgba(255,46,110,.55);
    min-height: 22px;
    text-align: right;
}
.game-hud.advanced {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 0;
    margin: 0 0 18px;
    border: 1px solid rgba(255,255,255,.075);
    background: rgba(255,255,255,.018);
}
.game-hud.advanced .hud-chip {
    padding: 13px 12px;
    border-right: 1px solid rgba(255,255,255,.07);
    text-align: center;
}
.game-hud.advanced .hud-chip:last-child { border-right: 0; }
.game-hud.advanced .hud-chip b { display: block; margin-top: 3px; }
.game-arena-wrap {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
}
.game-grid.advanced-grid {
    --tile-count: 4;
    max-width: none;
    grid-template-columns: repeat(var(--tile-count), 1fr);
    gap: 8px;
}
.advanced-tile {
    position: relative;
    min-width: 0;
    border: 1px solid rgba(255,255,255,.09);
    background:
        linear-gradient(135deg, rgba(255,255,255,.035), transparent 50%),
        rgba(255,255,255,.018);
    color: #fff;
    font-family: inherit;
    appearance: none;
    overflow: hidden;
}
.advanced-tile::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid transparent;
    pointer-events: none;
}
.advanced-tile.grimkin {
    animation: grimkinSignal .46s infinite;
    border-color: rgba(255,46,110,.88);
    box-shadow: 0 0 16px rgba(255,46,110,.28), inset 0 0 22px rgba(255,46,110,.06);
}
.advanced-tile.grimkin::after { border-color: rgba(255,46,110,.22); }
.advanced-tile.decoy {
    border-color: rgba(140,82,255,.24);
    box-shadow: inset 0 0 18px rgba(140,82,255,.05);
}
.advanced-tile.scan-reveal {
    border-color: var(--cyan) !important;
    box-shadow: 0 0 24px rgba(41,244,255,.75), inset 0 0 30px rgba(41,244,255,.12) !important;
    transform: scale(.96);
}
.advanced-tile.danger-hit {
    background: rgba(140,82,255,.17);
    border-color: var(--purple);
    animation: dangerShake .2s linear 1;
}
@keyframes grimkinSignal {
    0%,100% { transform: translate(0,0) rotate(0); }
    33% { transform: translate(-1px,0) rotate(-1.5deg); }
    66% { transform: translate(1px,-1px) rotate(1.5deg); }
}
@keyframes dangerShake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.game-interference {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s;
    z-index: 3;
    background:
        repeating-linear-gradient(0deg, transparent 0 7px, rgba(0,0,0,.20) 8px 12px),
        linear-gradient(90deg, rgba(255,46,110,.035), rgba(41,244,255,.035));
    mix-blend-mode: screen;
}
.game-interference.active {
    opacity: .8;
    animation: interferenceShift .18s steps(2) infinite;
}
@keyframes interferenceShift {
    0% { transform: translate(0,0); clip-path: inset(0 0 8% 0); }
    50% { transform: translate(2px,-2px); clip-path: inset(6% 0 0 0); }
    100% { transform: translate(-1px,1px); clip-path: inset(0); }
}
.game-progress {
    max-width: 650px;
    height: 3px;
    margin: 14px auto 0;
    background: rgba(255,255,255,.07);
    overflow: hidden;
}
.game-progress > div {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--rose-soft), var(--rose), var(--cyan));
    box-shadow: 0 0 10px rgba(255,46,110,.5);
    transition: width .8s linear;
}
.game-msg.success { color: var(--green); }
.game-msg.danger { color: var(--rose); }
.game-msg.rank-message strong {
    color: var(--gold);
    font-size: 1.2rem;
    text-shadow: 0 0 14px rgba(255,209,102,.35);
}
.game-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.game-controls .btn-rose,
.game-controls .btn-ghost { margin-top: 0; }
.game-scan:disabled {
    opacity: .42;
    cursor: not-allowed;
}
.game-scan span { color: var(--cyan); margin-left: 7px; }
.game-briefing {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 8px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.065);
}
.game-briefing span {
    color: #61545b;
    font-size: .56rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

/* live comms */
.comms-shell {
    position: relative;
    display: grid;
    grid-template-columns: 250px minmax(0,1fr);
    min-height: 520px;
    border: 1px solid var(--border);
    background: rgba(7,4,9,.9);
    overflow: hidden;
}
.comms-presence {
    padding: 22px;
    border-right: 1px solid rgba(255,255,255,.07);
    background:
        linear-gradient(180deg, rgba(255,46,110,.055), transparent 28%),
        rgba(255,255,255,.012);
}
.comms-status-line {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: .66rem;
    letter-spacing: 1.5px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.live-dot,
.online-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(121,255,177,.85);
    flex: 0 0 auto;
}
.live-dot { animation: livePulse 1.2s infinite; }
@keyframes livePulse {
    50% { opacity: .35; box-shadow: 0 0 2px rgba(121,255,177,.2); }
}
.online-list {
    display: grid;
    gap: 9px;
    margin-top: 16px;
    max-height: 340px;
    overflow-y: auto;
}
.online-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,.055);
    background: rgba(255,255,255,.018);
    color: #cfc4ca;
    font-size: .68rem;
    overflow-wrap: anywhere;
}
.online-dot { width: 5px; height: 5px; }
.online-empty {
    color: #5d5057;
    font-size: .66rem;
    line-height: 1.6;
}
.comms-note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255,255,255,.07);
    color: #554950;
    font-size: .59rem;
    line-height: 1.7;
}
.comms-main {
    position: relative;
    min-width: 0;
    display: flex;
}
.comms-gate {
    width: min(520px, calc(100% - 40px));
    margin: auto;
    text-align: center;
    padding: 38px 28px;
}
.comms-mark {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid rgba(255,46,110,.42);
    color: var(--rose);
    font-size: .58rem;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(255,46,110,.08);
}
.comms-gate h3 {
    margin-top: 18px;
    color: #fff;
    font: 800 1.3rem/1.2 Arial,sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.comms-gate p {
    margin: 12px auto 20px;
    max-width: 430px;
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.7;
}
.comms-gate form {
    display: flex;
    max-width: 470px;
    margin: 0 auto;
}
.comms-gate input,
.comms-send input {
    min-width: 0;
    flex: 1;
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.025);
    color: var(--text);
    font-family: inherit;
    outline: none;
}
.comms-gate input:focus,
.comms-send input:focus {
    border-color: var(--rose);
    box-shadow: inset 0 0 18px rgba(255,46,110,.04);
}
.comms-gate form .btn-rose { flex: 0 0 auto; }
.comms-room {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
}
.comms-room[hidden] { display: none; }
.comms-room-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    color: #9d8f96;
    font-size: .61rem;
    letter-spacing: 1.4px;
}
.comms-room-head > div { display: flex; align-items: center; gap: 8px; }
.comms-leave {
    border: 1px solid rgba(255,46,110,.25);
    background: transparent;
    color: var(--rose);
    padding: 7px 10px;
    font: inherit;
    font-size: .58rem;
    letter-spacing: 1px;
    cursor: pointer;
}
.comms-leave:hover { background: rgba(255,46,110,.07); }
.comms-feed {
    min-height: 350px;
    max-height: 420px;
    overflow-y: auto;
    padding: 18px;
    scroll-behavior: smooth;
}
.comms-message {
    max-width: 76%;
    margin: 0 0 14px;
    padding: 11px 13px;
    border-left: 2px solid rgba(140,82,255,.65);
    background: rgba(140,82,255,.055);
}
.comms-message.mine {
    margin-left: auto;
    border-left: 0;
    border-right: 2px solid var(--rose);
    background: rgba(255,46,110,.055);
}
.comms-meta {
    display: flex;
    gap: 10px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
}
.comms-meta strong {
    color: #fff;
    font-size: .68rem;
    letter-spacing: .7px;
}
.comms-meta span { color: #51444b; font-size: .55rem; }
.comms-text {
    color: #c6bbc1;
    font-size: .75rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.comms-system {
    margin: 10px 0 14px;
    color: #675961;
    font-size: .61rem;
    letter-spacing: .5px;
    text-align: center;
}
.comms-send {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    padding: 14px 18px 8px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.comms-send button {
    min-width: 78px;
    border: 1px solid var(--rose);
    background: rgba(255,46,110,.08);
    color: var(--rose);
    font-family: inherit;
    font-size: .64rem;
    letter-spacing: 1.4px;
    cursor: pointer;
}
.comms-send button:hover { background: var(--rose); color: #090307; }
.comms-error {
    min-height: 19px;
    padding: 5px 18px 10px;
    color: var(--rose);
    font-size: .62rem;
}
.comms-gate .comms-error { padding: 10px 0 0; }

@media (max-width: 760px) {
    .game-hud.advanced { grid-template-columns: repeat(2, 1fr); }
    .game-hud.advanced .hud-chip:nth-child(2) { border-right: 0; }
    .game-hud.advanced .hud-chip:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.07); }
    .game-briefing { grid-template-columns: repeat(2,1fr); }
    .comms-shell { grid-template-columns: 1fr; }
    .comms-presence { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.07); }
    .online-list { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 140px; }
    .comms-main { min-height: 440px; }
}
@media (max-width: 520px) {
    .game-shell { padding: 20px 14px; }
    .game-topline { align-items: center; }
    .game-stage { font-size: .78rem; }
    .game-lives { font-size: .8rem; letter-spacing: 3px; }
    .game-grid.advanced-grid { gap: 5px; }
    .advanced-tile { font-size: 1.35rem; }
    .game-briefing { grid-template-columns: 1fr 1fr; }
    .comms-gate form { display: grid; gap: 8px; }
    .comms-message { max-width: 90%; }
    .online-list { grid-template-columns: 1fr; }
}

.game-controls .btn-ghost { cursor: pointer; }
.comms-send input:disabled,
.comms-send button:disabled {
    opacity: .38;
    cursor: not-allowed;
}

/* ========================================================================== */
/* 2026 READABILITY, MOTION, MESSAGE BOARD, AND PRIVATE ADMIN                 */
/* ========================================================================== */

:root {
    --panel: rgba(14, 9, 17, .92);
    --muted: #c3b8be;
    --border: rgba(255, 91, 141, .38);
    --focus: #70f6ff;
}

[hidden] { display: none !important; }
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body {
    font-family: "Segoe UI", Inter, Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    background:
        radial-gradient(circle at 15% 18%, rgba(255,46,110,.16), transparent 31%),
        radial-gradient(circle at 86% 72%, rgba(140,82,255,.13), transparent 33%),
        radial-gradient(circle at 72% 8%, rgba(41,244,255,.06), transparent 25%),
        var(--bg);
}
body::before { opacity: .28; }
body::after {
    content: "";
    position: fixed;
    z-index: 0;
    width: 36vw;
    height: 36vw;
    right: -18vw;
    top: 18vh;
    border-radius: 50%;
    background: rgba(255, 46, 110, .08);
    filter: blur(85px);
    pointer-events: none;
    animation: ambientGlow 9s ease-in-out infinite alternate;
}
@keyframes ambientGlow { to { transform: translate(-10vw, 24vh) scale(1.25); opacity: .55; } }

.particle { border-radius: 50%; }
.particle.purple-particle { background: var(--purple); box-shadow: 0 0 9px var(--purple); }
@keyframes particleMove {
    from { transform: translate3d(0, 110vh, 0) scale(.7); }
    to { transform: translate3d(var(--drift, 0), -10vh, 0) scale(1.4); }
}

.brand-name, .eyebrow, .tag, nav.site-nav a, .header-status,
.meta-chip, .btn-rose, .btn-ghost, .town-code-box, .timeline-item .t-time,
.board-toolbar, .access-label, .admin-stats span {
    font-family: "Segoe UI", Arial, sans-serif;
}

nav.site-nav a { color: #c2b6bc; font-size: .76rem; font-weight: 700; }
nav.site-nav a:hover, nav.site-nav a:focus-visible { color: #fff; text-shadow: 0 0 14px var(--rose); }
.header-status { color: #baaeb4; font-size: .69rem; }
.tag, .eyebrow { font-size: .76rem; font-weight: 700; }
.hero-desc, .block-lead { color: #d0c6cb; font-size: 1rem; line-height: 1.8; }
.meta-chip span.label { color: #b8aab2; font-size: .65rem; }
.meta-chip span.value { font-size: .86rem; }
.btn-rose, .btn-ghost { font-size: .78rem; font-weight: 800; }
.role-card p, .info-card p, .step-item p, .photo-card p,
table.point-table th, table.point-table td, .formula-box, .numbered-list li,
.x-list li, .timeline-item .t-desc, .checkbox-field, .faq-a, .result-text {
    color: #c8bdc3;
    font-size: .9rem;
}
.role-card h3, .info-card h3, .step-item h4, .timeline-item .t-label, .faq-q { font-size: 1rem; }
.form-field label { color: #c9bdc4; font-size: .75rem; }
.form-field input[type=text], .form-field input[type=email] { min-height: 48px; font-size: 1rem; background: rgba(255,255,255,.055); }
.roster-slot { color: #a99aa2; font-size: .78rem; }
.disclaimer, footer.site-foot { color: #94868d; font-size: .72rem; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
.faq-q:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}
button:disabled { opacity: .5; cursor: wait; }

.role-card, .photo-card, .prize-card, .info-card, .meta-chip {
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.role-card:hover, .prize-card:hover, .info-card:hover, .meta-chip:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 77, 141, .7);
    box-shadow: 0 18px 45px rgba(0,0,0,.3), 0 0 26px rgba(255,46,110,.08);
}
.photo-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(0,0,0,.35); }
.timeline-item::before { animation: timelinePulse 2.4s ease-in-out infinite; }
@keyframes timelinePulse { 50% { transform: scale(1.45); box-shadow: 0 0 22px var(--rose); } }

.has-reveal .reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms);
}
.has-reveal .reveal-item.is-visible { opacity: 1; transform: translateY(0); }

/* Heartopia image-led information sections */
.visual-feature { position: relative; }
.feature-layout {
    display: grid;
    grid-template-columns: minmax(0,.88fr) minmax(420px,1.12fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}
.feature-layout.reverse { grid-template-columns: minmax(420px,1.12fr) minmax(0,.88fr); }
.feature-layout.reverse .feature-copy { order: 2; }
.feature-layout.reverse .feature-visual { order: 1; }
.feature-copy.block-head { margin-bottom: 0; }
.feature-copy .block-lead { max-width: 620px; }
.feature-note {
    margin-top: 26px;
    padding: 15px 17px;
    border-left: 2px solid var(--rose);
    background: rgba(255,46,110,.055);
}
.feature-note strong { display: block; color: #fff; font-size: .76rem; letter-spacing: 1.2px; text-transform: uppercase; }
.feature-note span { display: block; margin-top: 5px; color: #c7bbc1; font-size: .84rem; }
.feature-visual {
    position: relative;
    min-width: 0;
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid rgba(255,77,141,.36);
    background: #0a070c;
    box-shadow: 0 25px 65px rgba(0,0,0,.38);
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}
.feature-visual::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(4,2,6,.26), transparent 45%),
        linear-gradient(0deg, rgba(4,2,6,.82), transparent 43%);
}
.feature-visual::after {
    content: "";
    position: absolute;
    z-index: 3;
    left: 0;
    top: 0;
    width: 120px;
    height: 2px;
    background: var(--rose);
    box-shadow: 0 0 16px var(--rose);
}
.feature-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(.82) contrast(1.08) brightness(.82);
    transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}
.feature-visual:hover img { transform: scale(1.045); filter: saturate(1) contrast(1.05) brightness(.9); }
.feature-visual figcaption {
    position: absolute;
    z-index: 4;
    left: 22px;
    right: 22px;
    bottom: 18px;
    color: #fff;
    font-size: .86rem;
    line-height: 1.5;
}
.feature-visual figcaption span {
    display: block;
    margin-bottom: 3px;
    color: var(--rose);
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.schedule-layout { align-items: start; }
.schedule-layout .schedule-visual { position: sticky; top: 108px; margin-top: 52px; }
.schedule-layout .timeline { padding-right: 18px; }

@media (max-width: 900px) {
    .feature-layout,
    .feature-layout.reverse { grid-template-columns: 1fr; gap: 30px; }
    .feature-layout.reverse .feature-copy,
    .feature-layout.reverse .feature-visual { order: initial; }
    .feature-layout.reverse .feature-copy { order: 1; }
    .feature-layout.reverse .feature-visual { order: 2; }
    .schedule-layout .schedule-visual { position: relative; top: auto; margin-top: 0; }
    .schedule-layout .timeline { padding-right: 0; }
}

@media (max-width: 520px) {
    .feature-visual { aspect-ratio: 4 / 3; }
    .feature-visual figcaption { left: 16px; right: 16px; bottom: 14px; font-size: .79rem; }
}

.optional-label { margin-left: 6px; padding: 3px 6px; border: 1px solid rgba(121,255,177,.35); color: var(--green); font-size: .61rem; letter-spacing: .6px; }
.field-help { display: block; margin-top: 7px; color: #afa1a9; font-size: .76rem; line-height: 1.5; }

/* Persistent registered-attendee message board */
.board-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(255,46,110,.08), transparent 28%),
        rgba(8,5,11,.94);
    box-shadow: 0 24px 80px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.035);
}
.board-shell::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 auto auto 0;
    width: 130px;
    height: 2px;
    background: linear-gradient(90deg, var(--rose), transparent);
    box-shadow: 0 0 18px var(--rose);
}
.board-toolbar {
    min-height: 62px;
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #f8f4f6;
    font-size: .76rem;
    letter-spacing: 1.5px;
}
.board-toolbar > div { display: flex; align-items: center; gap: 10px; }
.board-toolbar > span { color: #b8aab1; letter-spacing: .4px; }
.board-feed {
    height: min(580px, 62vh);
    min-height: 390px;
    overflow-y: auto;
    padding: 24px clamp(16px, 4vw, 42px);
    scroll-behavior: smooth;
    scrollbar-color: var(--rose) rgba(255,255,255,.05);
}
.board-post {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr);
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    animation: postIn .45s ease both;
    animation-delay: var(--post-delay, 0ms);
}
@keyframes postIn { from { opacity: 0; transform: translateX(-12px); } }
.board-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,77,141,.6);
    background: linear-gradient(135deg, rgba(255,46,110,.24), rgba(140,82,255,.12));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 0 18px rgba(255,46,110,.12);
}
.board-post-meta { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.board-post-meta strong { color: #fff; font-size: 1rem; }
.board-post-meta time { color: #a899a1; font-size: .78rem; white-space: nowrap; }
.board-post p { margin-top: 7px; color: #d8cfd4; font-size: .96rem; line-height: 1.7; overflow-wrap: anywhere; }
.board-empty { min-height: 250px; display: grid; place-content: center; gap: 8px; text-align: center; color: #b9abb3; }
.board-empty strong { color: #fff; font-size: 1.1rem; }
.board-empty span { font-size: .9rem; }
.board-access { border-top: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.022); }
.board-unlock { padding: 24px; display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.8fr); gap: 28px; align-items: center; }
.access-label { color: var(--rose); font-size: .7rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.board-unlock h3 { margin-top: 5px; color: #fff; font-size: 1.1rem; }
.board-unlock p { margin-top: 6px; color: #bfb2b9; font-size: .9rem; }
.board-unlock a { color: var(--pink); font-weight: 700; }
.board-unlock form { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.board-unlock input, .board-compose textarea, .admin-login-form input {
    width: 100%;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.055);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    outline: none;
}
.board-unlock input { min-width: 0; padding: 13px 15px; }
.board-unlock input:focus, .board-compose textarea:focus, .admin-login-form input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(255,46,110,.14); }
.board-compose { padding: 20px 24px 24px; }
.board-compose-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; color: #c7bbc1; font-size: .88rem; }
.board-compose-head strong { color: var(--pink); }
.board-compose-head button { border: 0; background: none; color: #b8a9b1; font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; }
.board-compose textarea { display: block; min-height: 100px; resize: vertical; padding: 14px 16px; line-height: 1.6; }
.board-send-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 12px; }
.board-send-row span { color: #aa9ba3; font-size: .78rem; }
.board-error { min-height: 24px; padding: 0 24px 14px; color: #ff8bad; font-size: .88rem; }

/* Private admin */
.admin-body { background-color: #040205; }
.admin-page { width: min(1420px, calc(100% - 40px)); }
.admin-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px 0; }
.admin-login-card { width: min(480px, 100%); box-shadow: 0 28px 90px rgba(0,0,0,.55); }
.admin-lock { color: var(--rose); font-size: 2rem; margin-bottom: 12px; animation: lockGlow 2s ease-in-out infinite; }
@keyframes lockGlow { 50% { text-shadow: 0 0 28px var(--rose); transform: scale(1.08); } }
.admin-login-form { margin-top: 24px; text-align: left; }
.admin-login-form label { display: block; margin-bottom: 8px; color: #d5cbd0; font-size: .85rem; }
.admin-login-form input { padding: 13px 14px; }
.admin-login-form .btn-rose { width: 100%; margin-top: 16px; }
.form-error { margin-top: 10px; color: #ff8bad; font-size: .88rem; }
.admin-back { display: inline-block; margin-top: 22px; color: #c4b7be; font-size: .85rem; }
.admin-head { min-height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-head h1 { margin-top: 4px; font-size: clamp(1.7rem,4vw,2.6rem); text-transform: uppercase; }
.admin-head .btn-ghost { cursor: pointer; }
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; padding: 34px 0; }
.admin-stats div { padding: 22px; border: 1px solid var(--border); background: var(--panel); }
.admin-stats span { display: block; color: #b9abb2; font-size: .72rem; letter-spacing: 1.2px; text-transform: uppercase; }
.admin-stats strong { display: block; margin-top: 7px; color: #fff; font-size: 1.8rem; }
.admin-section { padding: 38px 0; border-top: 1px solid rgba(255,255,255,.1); }
.admin-section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 18px; }
.admin-section-head h2 { margin-top: 5px; color: #fff; font-size: 1.45rem; text-transform: uppercase; }
.admin-section-head > span { color: #b9abb2; font-size: .8rem; }
.admin-email-action { flex: 0 0 auto; color: var(--green); border-color: rgba(121,255,177,.38); }
.admin-email-action:hover { color: #07110b; border-color: var(--green); background: var(--green); }
.admin-table-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.11); }
.admin-table { width: 100%; min-width: 900px; border-collapse: collapse; background: rgba(8,5,10,.9); }
.admin-table th, .admin-table td { padding: 13px 14px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; vertical-align: top; font-size: .82rem; }
.admin-table th { color: var(--pink); background: rgba(255,46,110,.06); font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; }
.admin-table td { color: #d5cbd0; }
.admin-table tr:hover td { background: rgba(255,255,255,.025); }
.private-value { color: #fff !important; font-weight: 700; }
.agent-cell { max-width: 370px; overflow-wrap: anywhere; }
.agent-cell small { display: block; margin-top: 5px; color: #9d8f97; }
.empty-cell { padding: 28px !important; color: #a99ca3 !important; text-align: center !important; }
.admin-message-list { display: grid; gap: 12px; }
.admin-message { position: relative; padding: 18px 110px 18px 20px; border: 1px solid rgba(255,255,255,.11); background: var(--panel); }
.admin-message > div { display: flex; gap: 14px; align-items: baseline; }
.admin-message strong { color: #fff; }
.admin-message span { color: #9f9199; font-size: .78rem; }
.admin-message p { margin-top: 8px; color: #d4c9cf; overflow-wrap: anywhere; }
.admin-message form { position: absolute; right: 18px; top: 18px; }
.admin-message button { border: 1px solid rgba(255,46,110,.5); background: transparent; color: #ff87aa; padding: 7px 11px; cursor: pointer; }

/* Large desktop community feature */
.discord-community {
    position: relative;
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
    align-items: center;
    gap: clamp(32px, 6vw, 86px);
    padding: clamp(62px, 8vw, 104px) clamp(28px, 5vw, 72px);
    overflow: hidden;
    border: 1px solid rgba(88,101,242,.42);
    border-width: 1px 0;
    background:
        linear-gradient(105deg, rgba(88,101,242,.17), transparent 48%),
        radial-gradient(circle at 84% 48%, rgba(88,101,242,.23), transparent 27%),
        linear-gradient(180deg, rgba(255,255,255,.025), transparent),
        #07060c;
}
.discord-community::before {
    content: "DISCORD // BLACK ROSE SOCIETY";
    position: absolute;
    right: 22px;
    top: 18px;
    color: rgba(224,227,255,.15);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: 2px;
}
.discord-community::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.discord-community-copy { position: relative; z-index: 3; }
.discord-community-copy h2 {
    max-width: 760px;
    margin-top: 14px;
    color: #fff;
    font-size: clamp(2.65rem, 5.3vw, 5.4rem);
    font-weight: 950;
    letter-spacing: -.055em;
    line-height: .92;
    text-transform: uppercase;
}
.discord-community-copy h2 span {
    display: block;
    color: #8e98ff;
    text-shadow: 0 0 36px rgba(88,101,242,.35);
}
.discord-community-copy > p {
    max-width: 650px;
    margin-top: 25px;
    color: #d0c8cf;
    font-size: 1.02rem;
    line-height: 1.8;
}
.discord-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
    margin-top: 28px;
}
.discord-benefits div {
    min-height: 74px;
    padding: 13px;
    border: 1px solid rgba(224,227,255,.12);
    background: rgba(255,255,255,.025);
}
.discord-benefits strong { display: block; color: #8e98ff; font-size: .72rem; letter-spacing: 1px; }
.discord-benefits span { display: block; margin-top: 6px; color: #eeeaf0; font-size: .84rem; }
.discord-hero-button {
    width: min(420px, 100%);
    min-height: 72px;
    margin-top: 28px;
    padding: 13px 18px;
    display: grid;
    grid-template-columns: 36px minmax(0,1fr) auto;
    align-items: center;
    gap: 14px;
    color: #fff;
    background: #5865f2;
    border: 1px solid #8490ff;
    text-decoration: none;
    box-shadow: 0 16px 42px rgba(88,101,242,.28);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.discord-hero-button:hover { transform: translateY(-4px); background: #6571f5; box-shadow: 0 22px 58px rgba(88,101,242,.4); }
.discord-hero-button svg { width: 36px; height: 36px; }
.discord-hero-button span { font-size: 1rem; font-weight: 850; line-height: 1.25; }
.discord-hero-button small { display: block; margin-bottom: 3px; color: #e0e3ff; font-size: .67rem; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; }
.discord-hero-button b { font-size: 1.3rem; }
.discord-community-art { position: relative; z-index: 3; min-height: 400px; display: grid; place-items: center; }
.discord-core {
    position: relative;
    z-index: 4;
    width: clamp(145px, 15vw, 210px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 36%;
    color: #fff;
    background: #5865f2;
    box-shadow: 0 0 0 14px rgba(88,101,242,.08), 0 0 80px rgba(88,101,242,.48);
    animation: discordCoreFloat 4.4s ease-in-out infinite;
}
.discord-core svg { width: 58%; height: 58%; }
@keyframes discordCoreFloat { 50% { transform: translateY(-14px) rotate(2deg); } }
.discord-orbit { position: absolute; border: 1px solid rgba(142,152,255,.25); border-radius: 50%; }
.orbit-one { width: 295px; height: 295px; animation: orbitSpin 18s linear infinite; }
.orbit-two { width: 390px; height: 390px; border-style: dashed; animation: orbitSpin 27s linear infinite reverse; }
.discord-orbit::before { content: ""; position: absolute; width: 9px; height: 9px; left: 50%; top: -5px; border-radius: 50%; background: #8e98ff; box-shadow: 0 0 18px #8e98ff; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.discord-signal {
    position: absolute;
    z-index: 5;
    padding: 9px 12px;
    border: 1px solid rgba(224,227,255,.19);
    background: rgba(7,6,12,.8);
    backdrop-filter: blur(9px);
    color: #cfd3ff;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: 1.2px;
}
.signal-one { left: 0; top: 74px; }
.signal-two { right: -10px; bottom: 74px; }
.discord-signal i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #79ffb1; box-shadow: 0 0 10px #79ffb1; }

/* Fixed Discord access */
.discord-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid #8490ff;
    border-radius: 999px;
    color: #fff;
    background: #5865f2;
    box-shadow: 0 12px 38px rgba(0,0,0,.45), 0 0 0 5px rgba(88,101,242,.13);
    text-decoration: none;
    font-size: .84rem;
    font-weight: 850;
    transition: transform .25s ease, box-shadow .25s ease;
    animation: discordFloatIn .65s cubic-bezier(.2,.8,.2,1) both, discordFloatPulse 3s ease-in-out 1s infinite;
}
.discord-float svg { width: 27px; height: 27px; flex: 0 0 27px; }
.discord-float:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 18px 46px rgba(88,101,242,.42); }
@keyframes discordFloatIn { from { opacity: 0; transform: translateY(35px) scale(.8); } }
@keyframes discordFloatPulse { 50% { box-shadow: 0 12px 38px rgba(0,0,0,.45), 0 0 0 10px rgba(88,101,242,0); } }

@media (min-width: 901px) {
    #faq .faq-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 18px; align-items: start; }
    #faq .faq-item { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.018); }
    #faq .faq-q { min-height: 68px; padding: 17px 18px; }
    #faq .faq-a { padding-inline: 18px; }
    #faq .faq-item.open .faq-a { max-height: 260px; padding-bottom: 18px; }
}

@media (max-width: 1000px) {
    header.site-head { align-items: flex-start; }
    nav.site-nav { display: flex; order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding: 9px 0 3px; scrollbar-width: none; }
    nav.site-nav::-webkit-scrollbar { display: none; }
    nav.site-nav a { white-space: nowrap; }
    .admin-stats { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
    .page { width: min(100% - 28px, 1180px); }
    header.site-head { position: relative; min-height: 78px; }
    .header-status { display: none; }
    .discord-link { margin-left: auto; min-height: 36px; padding: 7px 10px; }
    .discord-link svg { width: 19px; height: 19px; flex-basis: 19px; }
    .hero { padding: 62px 0 52px; }
    section.block { padding: 54px 0; }
    .block-head { margin-bottom: 28px; }
    .board-unlock { grid-template-columns: 1fr; gap: 18px; }
    .board-feed { height: 54vh; min-height: 350px; padding: 15px; }
    .board-toolbar { padding: 14px 16px; }
    .admin-section-head { display: block; }
    .admin-section-head > span { display: block; margin-top: 8px; }
    .discord-community { min-height: 0; grid-template-columns: 1fr; padding: 64px 22px; }
    .discord-community-art { min-height: 330px; }
    .orbit-one { width: 245px; height: 245px; }
    .orbit-two { width: 315px; height: 315px; }
    .signal-one { left: 2px; }
    .signal-two { right: 2px; }
}

@media (max-width: 520px) {
    body { font-size: 15px; }
    .brand-logo { width: 66px; }
    .discord-link span { display: none; }
    .discord-link { width: 38px; padding: 7px; justify-content: center; }
    .glitch { letter-spacing: -1px; }
    .hero-meta { display: grid; grid-template-columns: 1fr 1fr; }
    .meta-chip { min-width: 0; }
    .hero-cta { display: grid; }
    .hero-cta .btn-rose, .hero-cta .btn-ghost { text-align: center; }
    .town-panel { padding: 22px 16px; }
    table.point-table { display: block; overflow-x: auto; }
    .board-unlock form { grid-template-columns: 1fr; gap: 9px; }
    .board-unlock form .btn-rose { text-align: center; }
    .board-post { grid-template-columns: 34px minmax(0,1fr); gap: 10px; }
    .board-avatar { width: 34px; height: 34px; }
    .board-post-meta { display: grid; gap: 1px; }
    .board-post-meta time { font-size: .72rem; }
    .board-compose { padding: 17px 15px 20px; }
    .board-compose-head { display: grid; }
    .board-send-row { align-items: stretch; flex-direction: column; }
    .board-send-row .btn-rose { width: 100%; }
    .board-error { padding-inline: 15px; }
    .admin-page { width: min(100% - 24px, 1420px); }
    .admin-stats { grid-template-columns: 1fr 1fr; gap: 9px; }
    .admin-stats div { padding: 16px; }
    .admin-stats strong { font-size: 1.35rem; }
    .admin-message { padding: 17px; }
    .admin-message > div { display: grid; gap: 2px; padding-right: 62px; }
    .admin-message form { right: 12px; top: 12px; }
    .discord-community { padding-inline: 16px; }
    .discord-community-copy h2 { font-size: clamp(2.45rem, 14vw, 4rem); }
    .discord-benefits { grid-template-columns: 1fr; }
    .discord-benefits div { min-height: 0; display: grid; grid-template-columns: 34px 1fr; align-items: center; }
    .discord-benefits span { margin-top: 0; }
    .discord-community-art { min-height: 290px; }
    .discord-core { width: 135px; }
    .orbit-one { width: 210px; height: 210px; }
    .orbit-two { width: 275px; height: 275px; }
    .discord-signal { font-size: .55rem; }
    .signal-one { top: 40px; }
    .signal-two { bottom: 35px; }
    .discord-float { right: 15px; bottom: 15px; width: 54px; min-height: 54px; padding: 0; justify-content: center; }
    .discord-float span { display: none; }
    .discord-float svg { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .cyber-grid, #particles { display: none; }
}

/* ========================================================================== */
/* FOUR-DAY CHAMPIONSHIP CONTENT                                              */
/* ========================================================================== */

.hero-day-strip {
    width: min(850px, 100%);
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    margin-top: 27px;
    border: 1px solid rgba(255,77,141,.26);
    background: rgba(6,3,8,.76);
}
.hero-day-strip > div { padding: 14px 15px; border-right: 1px solid rgba(255,255,255,.08); }
.hero-day-strip > div:last-child { border-right: 0; }
.hero-day-strip span, .hero-day-strip small { display: block; color: #a99aa2; font-size: .6rem; font-weight: 700; letter-spacing: 1.1px; }
.hero-day-strip strong { display: block; margin: 5px 0 4px; color: #fff; font-size: .83rem; }
.hero-day-strip small { color: var(--rose); font-size: .56rem; }

.format-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: -8px 0 28px; }
.format-summary > div { padding: 20px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.02); }
.format-summary span { color: var(--rose); font-size: .7rem; font-weight: 900; }
.format-summary strong { display: block; margin-top: 8px; color: #fff; font-size: .94rem; }
.format-summary p { margin-top: 6px; color: #bcaeb6; font-size: .84rem; line-height: 1.6; }

.leaderboard-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.11); }
.championship-table { width: 100%; min-width: 790px; border-collapse: collapse; background: rgba(8,5,10,.88); }
.championship-table th, .championship-table td { padding: 15px 17px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: center; font-size: .86rem; }
.championship-table th { color: var(--rose); background: rgba(255,46,110,.055); font-size: .69rem; letter-spacing: 1px; text-transform: uppercase; }
.championship-table th:first-child, .championship-table td:first-child { text-align: left; }
.championship-table td { color: #c8bdc3; }
.championship-table td:first-child { color: #fff; font-weight: 800; }
.rank-num { display: inline-block; min-width: 31px; margin-right: 10px; color: #8d7e86; font-size: .68rem; }
.leaderboard-total { color: var(--gold) !important; font-size: 1rem !important; font-weight: 900; }
.leaderboard-empty { padding: 34px !important; color: #a99ba3 !important; text-align: center !important; }
.leaderboard-note { margin-top: 12px; color: #aa9da4; font-size: .78rem; }

.event-calendar-list { display: grid; gap: 12px; }
.calendar-night { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 17px; padding: 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.02); }
.calendar-day { min-height: 72px; display: grid; place-items: center; border: 1px solid rgba(255,46,110,.38); color: var(--rose); font-size: .66rem; font-weight: 900; letter-spacing: 1px; }
.calendar-night strong, .calendar-night span, .calendar-night small { display: block; }
.calendar-night strong { color: #fff; font-size: .94rem; }
.calendar-night span { margin-top: 3px; color: var(--pink); font-size: .7rem; font-weight: 800; letter-spacing: .8px; }
.calendar-night p { margin-top: 7px; color: #bcaeb5; font-size: .79rem; line-height: 1.55; }
.calendar-night small { margin-top: 8px; color: #8e98ff; font-size: .66rem; font-weight: 700; }

.nightly-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.nightly-step { min-height: 210px; padding: 22px 18px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(145deg, rgba(255,46,110,.055), transparent 55%), var(--panel); }
.nightly-step > span { color: var(--rose); font-size: 1.25rem; font-weight: 950; }
.nightly-step h3 { margin-top: 28px; color: #fff; font-size: .92rem; }
.nightly-step p { margin-top: 8px; color: #b9abb2; font-size: .79rem; line-height: 1.6; }

.final-night-section { padding-block: 34px !important; }
.final-night-panel { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); gap: 40px; align-items: center; padding: clamp(28px,5vw,54px); border: 1px solid rgba(255,209,102,.28); background: radial-gradient(circle at 82% 30%, rgba(255,209,102,.1), transparent 27%), rgba(10,6,12,.9); }
.final-night-panel p { max-width: 690px; margin-top: 14px; color: #c5b9bf; font-size: .92rem; line-height: 1.75; }
.final-podium { display: grid; gap: 10px; }
.final-podium span { padding: 13px 15px; border: 1px solid rgba(255,255,255,.1); color: #eee8eb; background: rgba(255,255,255,.025); font-size: .82rem; }

.day-selector { margin: 25px 0; padding: 19px; border: 1px solid rgba(255,77,141,.3); background: rgba(255,46,110,.025); }
.day-selector legend { padding: 0 8px; color: var(--rose); font-size: .74rem; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.day-selector > p { margin-bottom: 14px; color: #b8aab2; font-size: .8rem; line-height: 1.55; }
.day-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.day-option, .select-all-days { display: flex; gap: 11px; align-items: center; padding: 13px; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.025); cursor: pointer; }
.day-option:has(input:checked), .select-all-days:has(input:checked) { border-color: var(--rose); background: rgba(255,46,110,.09); }
.day-option.full { opacity: .42; cursor: not-allowed; }
.day-option input, .select-all-days input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--rose); }
.day-option span, .select-all-days span { min-width: 0; }
.day-option strong, .day-option small, .select-all-days strong, .select-all-days small { display: block; }
.day-option strong, .select-all-days strong { color: #f5eff2; font-size: .79rem; }
.day-option small, .select-all-days small { margin-top: 4px; color: #a99aa2; font-size: .68rem; }
.select-all-days { margin-top: 10px; border-color: rgba(121,255,177,.25); }
.select-all-days:has(input:checked) { border-color: var(--green); background: rgba(121,255,177,.055); }

.registration-overview { height: 100%; }
.day-capacity-list { display: grid; gap: 17px; margin-top: 22px; }
.day-capacity-list > div > span { display: flex; justify-content: space-between; gap: 15px; }
.day-capacity-list strong { color: #fff; font-size: .77rem; }
.day-capacity-list small { color: var(--rose); font-size: .7rem; }
.daily-rosters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 38px; }
.daily-roster-card { border: 1px solid rgba(255,77,141,.24); background: rgba(9,5,11,.82); }
.daily-roster-card > header { position: static; min-height: 70px; padding: 15px 17px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,46,110,.04); }
.daily-roster-card header span, .daily-roster-card header strong { display: block; }
.daily-roster-card header span { color: var(--rose); font-size: .62rem; font-weight: 900; letter-spacing: 1px; }
.daily-roster-card header strong { margin-top: 3px; color: #fff; font-size: .9rem; }
.daily-roster-card header b { color: var(--gold); font-size: .82rem; }
.compact-roster { grid-template-columns: repeat(3,1fr); padding: 14px; margin-top: 0; }
.compact-roster .roster-slot { display: flex; gap: 7px; align-items: center; padding: 9px; text-align: left; letter-spacing: .3px; }
.compact-roster .roster-slot span { color: #7f7078; font-size: .61rem; }

.discord-contingency { margin-top: 18px; padding: 14px 16px; border-left: 2px solid #8e98ff; background: rgba(88,101,242,.065); }
.discord-contingency strong, .discord-contingency span { display: block; }
.discord-contingency strong { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .8px; }
.discord-contingency span { margin-top: 5px; color: #bdb3c0; font-size: .76rem; line-height: 1.55; }

.admin-day-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 0 0 34px; }
.admin-day-stats div { padding: 15px 17px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.02); }
.admin-day-stats span { display: block; color: #a99ca3; font-size: .68rem; }
.admin-day-stats strong { display: block; margin-top: 5px; color: var(--rose); font-size: 1rem; }
.score-admin-table { min-width: 920px; }
.score-admin-table th:not(:first-child),
.score-admin-table td:not(:first-child) { text-align: center; }
.score-input {
    width: 64px;
    padding: 9px 7px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 3px;
    background: rgba(255,255,255,.035);
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-align: center;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.score-input:focus { border-color: var(--rose); background: rgba(255,45,116,.07); box-shadow: 0 0 0 3px rgba(255,45,116,.1); }
.score-input:disabled { cursor: not-allowed; opacity: .3; }
.score-save {
    padding: 8px 13px;
    border: 1px solid rgba(255,45,116,.55);
    border-radius: 3px;
    background: rgba(255,45,116,.1);
    color: #fff;
    font: inherit;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .7px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.score-save:hover { border-color: var(--rose); background: var(--rose); transform: translateY(-1px); }

@media (max-width: 900px) {
    .hero-day-strip, .format-summary, .nightly-grid { grid-template-columns: repeat(2,1fr); }
    .hero-day-strip > div:nth-child(2) { border-right: 0; }
    .hero-day-strip > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
    .final-night-panel { grid-template-columns: 1fr; }
    .admin-day-stats { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 650px) {
    .day-options, .daily-rosters, .format-summary, .nightly-grid { grid-template-columns: 1fr; }
    .compact-roster { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 520px) {
    .hero-day-strip { grid-template-columns: 1fr 1fr; }
    .hero-day-strip > div { padding: 11px; }
    .calendar-night { grid-template-columns: 54px minmax(0,1fr); padding: 14px; gap: 12px; }
    .calendar-day { min-height: 58px; font-size: .58rem; }
    .nightly-step { min-height: 0; }
    .nightly-step h3 { margin-top: 14px; }
    .final-night-panel { padding: 23px 16px; }
}

/* ========================================================================== */
/* REFINED SITE HEADER                                                        */
/* ========================================================================== */

header.site-head {
    min-height: 76px;
    padding: 0 4px;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
    gap: clamp(18px, 2.1vw, 34px);
    flex-wrap: nowrap;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    background:
        linear-gradient(90deg, rgba(255,46,110,.055), transparent 24%, transparent 76%, rgba(88,101,242,.045)),
        rgba(5,3,7,.94);
    box-shadow: 0 14px 38px rgba(0,0,0,.25);
}
header.site-head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 180px;
    height: 2px;
    background: linear-gradient(90deg, var(--rose), transparent);
    box-shadow: 0 0 16px rgba(255,46,110,.7);
}
header.site-head::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #5865f2);
}
header.site-head .brand { min-width: 88px; align-self: stretch; justify-content: center; }
header.site-head .brand-logo { width: 88px; max-height: 72px; }
header.site-head nav.site-nav {
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 1.25vw, 19px);
    flex-wrap: nowrap;
}
header.site-head nav.site-nav a {
    position: relative;
    padding: 27px 0 25px;
    color: #b9adb4;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: 1.15px;
    white-space: nowrap;
}
header.site-head nav.site-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 18px;
    height: 1px;
    background: var(--rose);
    box-shadow: 0 0 8px var(--rose);
    transition: left .2s ease, right .2s ease;
}
header.site-head nav.site-nav a:hover::after,
header.site-head nav.site-nav a:focus-visible::after { left: 0; right: 0; }
header.site-head .discord-link {
    min-height: 38px;
    padding: 8px 12px;
    border-color: rgba(132,144,255,.48);
    background: rgba(88,101,242,.09);
    font-size: .68rem;
}
header.site-head .discord-link svg { width: 19px; height: 19px; flex-basis: 19px; }

@media (max-width: 1100px) {
    header.site-head {
        position: sticky;
        min-height: 112px;
        padding: 12px 2px 0;
        grid-template-columns: minmax(0,1fr) max-content;
        gap: 10px 18px;
        align-items: center;
    }
    header.site-head nav.site-nav {
        grid-column: 1 / -1;
        order: initial;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0;
        border-top: 1px solid rgba(255,255,255,.07);
        scrollbar-width: none;
    }
    header.site-head nav.site-nav::-webkit-scrollbar { display: none; }
    header.site-head nav.site-nav a { padding: 13px 0 15px; }
    header.site-head nav.site-nav a::after { bottom: 9px; }
    header.site-head .discord-link { margin-left: auto; }
}

@media (max-width: 600px) {
    header.site-head {
        position: sticky;
        min-height: 104px;
        top: 0;
        padding-top: 10px;
        gap: 8px 12px;
    }
    header.site-head .brand { min-width: 66px; justify-content: flex-start; }
    header.site-head .brand-logo { width: 66px; max-height: 55px; }
    header.site-head .discord-link { width: 36px; min-height: 34px; padding: 6px; justify-content: center; }
    header.site-head .discord-link span { display: none; }
    header.site-head nav.site-nav { gap: 17px; }
    header.site-head nav.site-nav a { font-size: .64rem; padding-block: 12px 14px; }
}

/* ========================================================================== */
/* PRIVATE ADMIN CONTROL PANEL                                                */
/* ========================================================================== */

.admin-login-logo { width: 116px; height: auto; margin: -15px auto 10px; filter: drop-shadow(0 0 18px rgba(255,46,110,.3)); }
.admin-login-form label + input + label { margin-top: 15px; }
.admin-head { min-height: 108px; }
.admin-brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.admin-brand img { width: 78px; height: auto; filter: drop-shadow(0 0 12px rgba(255,46,110,.24)); }
.admin-brand span { font-size: 1.25rem; font-weight: 950; letter-spacing: .5px; text-transform: uppercase; }
.admin-brand small { display: block; margin-bottom: 3px; color: var(--rose); font-size: .62rem; letter-spacing: 1.6px; }
.admin-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.admin-head-actions > span { margin-right: 6px; color: #9f9299; font-size: .72rem; }
.admin-head-actions form { margin: 0; }
.admin-head-actions .btn-ghost { padding: 10px 14px; font-size: .68rem; cursor: pointer; }
.admin-nav {
    position: sticky;
    top: 0;
    z-index: 45;
    display: flex;
    gap: 7px;
    padding: 10px 0;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: rgba(4,2,5,.92);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a { flex: 0 0 auto; padding: 9px 12px; border: 1px solid rgba(255,255,255,.09); color: #bcaeb5; text-decoration: none; font-size: .65rem; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.admin-nav a:hover { border-color: rgba(255,46,110,.55); color: #fff; background: rgba(255,46,110,.08); }
.admin-notice { margin: 24px 0 0; padding: 14px 17px; border: 1px solid rgba(121,255,177,.36); border-left: 3px solid var(--green); color: #dfffea; background: rgba(121,255,177,.055); font-size: .84rem; }
.admin-control-form, .admin-upload-form { padding: 24px; border: 1px solid rgba(255,255,255,.11); background: rgba(8,5,10,.88); }
.admin-control-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.admin-control-grid > label:not(.admin-toggle), .admin-upload-form label { display: grid; gap: 8px; }
.admin-control-grid label > span:first-child, .admin-upload-form label > span { color: #d9ced4; font-size: .72rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.admin-control-grid input[type="text"], .admin-control-grid textarea, .admin-upload-form input, .admin-upload-form select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 2px;
    background: rgba(255,255,255,.035);
    color: #fff;
    font: inherit;
    font-size: .88rem;
    outline: none;
}
.admin-control-grid textarea { resize: vertical; line-height: 1.6; }
.admin-control-grid input:focus, .admin-control-grid textarea:focus, .admin-upload-form input:focus, .admin-upload-form select:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(255,46,110,.1); }
.admin-control-grid .wide { grid-column: 1 / -1; }
.admin-toggle { min-height: 78px; display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.025); cursor: pointer; }
.admin-toggle:has(input:checked) { border-color: rgba(121,255,177,.4); background: rgba(121,255,177,.045); }
.admin-toggle input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--green); }
.admin-toggle strong, .admin-toggle small { display: block; }
.admin-toggle strong { color: #fff; font-size: .86rem; }
.admin-toggle small { margin-top: 4px; color: #a99ca3; font-size: .7rem; line-height: 1.45; }
.admin-upload-form { display: grid; grid-template-columns: .75fr 1.35fr 1.35fr auto; gap: 14px; align-items: end; }
.admin-upload-form select option { color: #111; }
.admin-upload-form .btn-rose { min-height: 44px; white-space: nowrap; }
.admin-file input { padding: 8px; color: #c9bdc3; }
.admin-file input::file-selector-button { margin-right: 10px; padding: 7px 10px; border: 0; background: rgba(255,46,110,.18); color: #fff; cursor: pointer; }
.admin-media-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.admin-media-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.11); background: var(--panel); }
.admin-media-card > img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; }
.admin-media-card > div { min-height: 79px; padding: 12px 13px; }
.admin-media-card span, .admin-media-card strong { display: block; }
.admin-media-card span { color: var(--rose); font-size: .57rem; font-weight: 900; letter-spacing: 1px; }
.admin-media-card strong { margin-top: 5px; color: #fff; font-size: .76rem; line-height: 1.4; }
.admin-media-card form { position: absolute; top: 9px; right: 9px; }
.admin-media-card button { padding: 7px 9px; border: 1px solid rgba(255,255,255,.28); background: rgba(5,3,7,.86); color: #ff9ab8; font: inherit; font-size: .62rem; cursor: pointer; }
.admin-empty-panel { grid-column: 1 / -1; padding: 28px; border: 1px dashed rgba(255,255,255,.14); color: #aa9ca4; text-align: center; }
.migration-tag { display: block; width: max-content; margin-top: 5px; padding: 2px 5px; border: 1px solid rgba(142,152,255,.32); color: #aeb5ff; font-size: .55rem; letter-spacing: .7px; text-transform: uppercase; }

.site-announcement { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 18px; align-items: center; margin: 16px 0 0; padding: 16px 20px; border: 1px solid rgba(255,209,102,.34); border-left: 3px solid var(--gold); background: linear-gradient(90deg, rgba(255,209,102,.08), rgba(255,46,110,.035)); }
.site-announcement > span { color: var(--gold); font-size: .62rem; font-weight: 950; letter-spacing: 1.4px; }
.site-announcement strong { display: block; color: #fff; font-size: .9rem; }
.site-announcement p { margin-top: 3px; color: #cbbfc5; font-size: .78rem; line-height: 1.55; }

@media (max-width: 1050px) {
    .admin-upload-form { grid-template-columns: 1fr 1fr; }
    .admin-media-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 720px) {
    .admin-head { align-items: flex-start; padding: 14px 0; }
    .admin-brand img { width: 62px; }
    .admin-brand span { font-size: .95rem; }
    .admin-head-actions > span, .admin-head-actions .btn-ghost:first-of-type { display: none; }
    .admin-control-grid, .admin-upload-form { grid-template-columns: 1fr; }
    .admin-control-grid .wide { grid-column: auto; }
    .admin-media-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .site-announcement { grid-template-columns: 1fr; gap: 7px; }
}

@media (max-width: 440px) {
    .admin-page { width: min(100% - 20px, 1420px); }
    .admin-media-grid { grid-template-columns: 1fr; }
    .admin-control-form, .admin-upload-form { padding: 17px; }
}
