.ac-site-main:has(.hq-page) { padding: 0 !important; }
body:has(.hq-page),
.ac-site-main:has(.hq-page) { background: #050814; }
body:has(.hq-page) footer {
    margin-top: 0;
    background: #050814;
    border-top: 0;
    color: #64748b;
}
.hq-page {
    position: relative;
    overflow: hidden;
    min-height: calc(100dvh - 4.75rem);
    padding: 0.85rem clamp(0.7rem, 2.4vw, 2rem) 2.2rem;
    color: #e2e8f0;
}
.hq-canvas {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0 !important;
    opacity: 0.55;
}
.hq-page > *:not(.hq-canvas) { position: relative; z-index: 1; }
.hq-hero {
    text-align: center;
    margin: 0 auto 0.85rem;
    max-width: 78rem;
}
.hq-kicker {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.64rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
    color: #67e8f9;
}
.hq-kicker i {
    width: 0.5rem; height: 0.5rem; border-radius: 50%;
    background: #22d3ee; box-shadow: 0 0 14px #22d3ee;
    animation: hqPulse 1.6s ease-in-out infinite;
}
.hq-hero h1 {
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    font-weight: 950; margin: 0.3rem 0 0.35rem;
    background: linear-gradient(95deg, #fff 8%, #67e8f9 32%, #f472b6 62%, #fbbf24 92%);
    background-size: 180% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: hqShine 7s linear infinite;
}
.hq-hero-lead { max-width: 46rem; margin: 0 auto; color: #94a3b8; }
.hq-hero-lead a { color: #fbbf24; font-weight: 800; }
.hq-hero-actions {
    display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; margin-top: 0.75rem;
}
.hq-chip {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.38rem 0.8rem; border-radius: 999px;
    font-size: 0.8rem; font-weight: 800; text-decoration: none; color: #e2e8f0;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(103, 232, 249, 0.22);
}
a.hq-chip { color: #e2e8f0 !important; }
a.hq-chip:hover { color: #fff !important; }
a.hq-row { color: inherit !important; }
a.hq-tick { color: #e2e8f0 !important; }
a.hq-tick:hover { color: #fde68a !important; }
.hq-chip.is-live { background: linear-gradient(90deg, #22d3ee, #a78bfa); color: #081018; border: 0; }
.hq-live-dot {
    width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #4ade80;
    box-shadow: 0 0 10px #4ade80; animation: hqPulse 1.1s ease-in-out infinite;
}
.hq-clock { font-variant-numeric: tabular-nums; color: #67e8f9; font-weight: 800; }
.hq-story {
    max-width: 52rem; margin: 0.7rem auto 0;
    border-radius: 1rem; padding: 0.7rem 0.9rem;
    background: rgba(8, 14, 32, 0.7); border: 1px dashed rgba(244, 114, 182, 0.28);
    text-align: left; color: #cbd5e1; font-size: 0.9rem;
}
.hq-story[hidden] { display: none !important; }
.hq-ticker-wrap {
    overflow: hidden; margin: 0 auto 0.9rem; max-width: 90rem;
    border: 1px solid rgba(251, 191, 36, 0.22);
    background: rgba(15, 23, 42, 0.55);
    border-radius: 999px;
}
.hq-ticker {
    display: flex; gap: 1.4rem; width: max-content;
    padding: 0.38rem 1rem; animation: hqTicker 42s linear infinite;
    font-size: 0.78rem; font-weight: 750;
}
.hq-ticker-wrap:hover .hq-ticker { animation-play-state: paused; }
.hq-tick { color: #e2e8f0; text-decoration: none; white-space: nowrap; }
.hq-tick:hover { color: #fde68a; }
.hq-tick.is-verif { color: #67e8f9; }
.hq-tick.is-medal { color: #fbbf24; }
.hq-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.4rem, 1fr));
    gap: 0.5rem;
    max-width: 90rem; margin: 0 auto 0.95rem;
}
.hq-orb {
    border-radius: 0.95rem; padding: 0.55rem 0.65rem;
    background: rgba(8, 16, 36, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
}
.hq-orb b {
    display: block; font-size: 1.22rem; font-weight: 950;
    font-variant-numeric: tabular-nums;
    color: var(--orb, #67e8f9);
    background: linear-gradient(180deg, #fff, var(--orb, #67e8f9));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hq-orb span {
    font-size: 0.62rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #94a3b8;
}
.hq-orb.tone-cyan { --orb: #67e8f9; }
.hq-orb.tone-pink { --orb: #f472b6; }
.hq-orb.tone-gold { --orb: #fbbf24; }
.hq-orb.tone-lime { --orb: #4ade80; }
.hq-orb.tone-vio { --orb: #a78bfa; }
.hq-orb.tone-red { --orb: #f87171; }
.hq-bento {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 0.7rem;
    max-width: 90rem; margin: 0 auto;
}
.hq-panel {
    border-radius: 1.1rem;
    background: rgba(8, 14, 30, 0.82);
    border: 1px solid rgba(103, 232, 249, 0.14);
    padding: 0.75rem 0.8rem 0.7rem;
    display: flex; flex-direction: column;
}
.hq-panel.span-2 { grid-column: span 2; }
.hq-panel.span-3 { grid-column: 1 / -1; }
.hq-panel-h {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    margin-bottom: 0.55rem;
}
.hq-panel-h h2 {
    margin: 0; font-size: 0.82rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--tone, #67e8f9);
}
.hq-feed {
    display: grid; gap: 0.42rem;
    overflow: auto; max-height: 28rem; padding-right: 0.15rem;
}
.hq-row {
    display: grid; grid-template-columns: auto 1fr auto;
    gap: 0.5rem; align-items: center;
    text-decoration: none; color: inherit;
    border-radius: 0.75rem; padding: 0.35rem 0.4rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid transparent;
    animation: hqRise 0.45s ease both;
}
.hq-row:hover { border-color: color-mix(in srgb, var(--tone, #67e8f9) 55%, transparent); }
.hq-row.is-new { box-shadow: 0 0 0 1px #fbbf24, 0 0 18px rgba(251, 191, 36, 0.35); }
.hq-thumb, .hq-av {
    width: 42px; height: 42px; object-fit: cover; border-radius: 0.55rem; background: #0f172a;
}
.hq-av { border-radius: 50%; }
.hq-row strong { display: block; font-size: 0.86rem; color: #f8fafc; }
.hq-row em { font-style: normal; color: #94a3b8; font-size: 0.74rem; }
.hq-diff { width: 22px; height: auto; }
.hq-tag {
    font-size: 0.62rem; font-weight: 900; letter-spacing: 0.06em;
    padding: 0.12rem 0.4rem; border-radius: 999px;
}
.hq-tag.is-duos { background: rgba(244, 114, 182, 0.2); color: #f9a8d4; }
.hq-tag.is-solo { background: rgba(103, 232, 249, 0.15); color: #67e8f9; }
.hq-empty { color: #64748b; font-size: 0.85rem; padding: 0.4rem 0.2rem; }
.hq-featured {
    max-width: 90rem; margin: 0 auto 0.95rem;
    border-radius: 1.1rem;
    background: rgba(8, 14, 30, 0.82);
    border: 1px solid rgba(251, 191, 36, 0.22);
    padding: 0.75rem 0.8rem 0.85rem;
}
.hq-featured .hq-panel-h h2 { color: #fbbf24; }
.hq-mosaic {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
}
.hq-mosaic.is-tight { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hq-lvl {
    display: flex; flex-direction: column; gap: 0.28rem;
    text-decoration: none !important;
    color: #f8fafc !important;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.75rem;
    overflow: hidden;
    min-height: 0;
}
.hq-lvl:hover { border-color: #fbbf24; color: #fff !important; }
.hq-lvl img:not(.hq-diff) {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0f172a; display: block;
}
.hq-lvl-ph { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0f172a; }
.hq-lvl b {
    font-size: 0.78rem; font-weight: 850; padding: 0 0.45rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f8fafc;
}
.hq-lvl em {
    font-style: normal; font-size: 0.68rem; color: #94a3b8;
    padding: 0 0.45rem 0.45rem;
    display: flex; align-items: center; gap: 0.25rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hq-packs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hq-pack {
    display: inline-flex; align-items: center;
    padding: 0.42rem 0.7rem; border-radius: 999px;
    font-weight: 850; font-size: 0.8rem;
    color: #041016 !important;
    background: color-mix(in srgb, var(--c, #fbbf24) 78%, #fff);
    border: 1px solid color-mix(in srgb, var(--c, #fbbf24) 55%, #0f172a);
    text-decoration: none !important;
}
.hq-pack:hover { color: #041016 !important; filter: brightness(1.08); }
.hq-bars { display: grid; gap: 0.35rem; }
.hq-bar { display: grid; grid-template-columns: 7.2rem 1fr auto; gap: 0.4rem; align-items: center; font-size: 0.72rem; }
.hq-bar i {
    display: block; height: 8px; border-radius: 999px; background: rgba(15, 23, 42, 0.9); overflow: hidden;
}
.hq-bar i b {
    display: block; height: 100%; width: var(--w, 0%);
    background: linear-gradient(90deg, #22d3ee, #f472b6, #fbbf24);
    border-radius: 999px;
    transition: width 0.6s ease;
}
.hq-portals {
    display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.hq-portals-title { color: #f8fafc !important; }
a.hq-portal {
    flex: 1 1 8.5rem;
    text-align: center;
    padding: 0.7rem 0.5rem;
    border-radius: 0.9rem;
    text-decoration: none !important;
    font-weight: 900;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    color: #041016 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    background: linear-gradient(135deg, var(--a, #67e8f9), var(--b, #a78bfa));
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.28);
    transition: transform 0.18s ease;
}
a.hq-portal:hover,
a.hq-portal:focus {
    transform: translateY(-3px) rotate(-0.4deg);
    color: #041016 !important;
}
.hq-refresh {
    border: 0; background: transparent; color: #94a3b8; font-weight: 800; cursor: pointer; font-size: 0.72rem;
}
.hq-refresh:hover { color: #fff; }
.hq-spotlight-meta {
    display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.55rem;
}
.hq-spotlight-meta strong { display: block; font-size: 0.86rem; color: #f8fafc; }
.hq-spotlight-meta em { font-style: normal; color: #94a3b8; font-size: 0.74rem; }
.hq-spotlight-canvas-wrap {
    position: relative;
    height: 16.5rem;
}
.hq-spotlight-canvas-wrap canvas { width: 100% !important; height: 100% !important; }
@keyframes hqPulse { 50% { opacity: 0.35; transform: scale(0.7); } }
@keyframes hqShine { 0% { background-position: 0% 50%; } 100% { background-position: 180% 50%; } }
@keyframes hqTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hqRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) {
    .hq-bento { grid-template-columns: 1fr 1fr; }
    .hq-panel.span-2, .hq-panel.span-3 { grid-column: 1 / -1; }
    .hq-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hq-mosaic.is-tight { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .hq-bento { grid-template-columns: 1fr; }
    .hq-feed { max-height: 16rem; }
    .hq-mosaic, .hq-mosaic.is-tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
