/* THE JUNCTION · LOG: the slide-over that holds the studio game hub, in the arcade's neon (see hub-panel.js). */

/* the LOG button: the same pill as ← STUDIO / PLAYER / GRID VIEW, with a pink light when there's news */
.top .jx-open { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; white-space: nowrap; cursor: pointer;
  border: 1px solid rgba(255, 63, 164, 0.55); background: rgba(10, 6, 16, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #ff8fcf; font-family: 'VT323', monospace; font-size: 1.2rem; letter-spacing: 0.12em; line-height: normal;
  text-shadow: 0 0 8px rgba(255, 63, 164, 0.7); box-shadow: 0 0 14px -6px rgba(255, 63, 164, 0.9); transition: border-color 0.2s, box-shadow 0.2s, color 0.2s; }
.top .jx-open:hover, .top .jx-open[aria-expanded="true"] { color: #ffd2ec; border-color: #ff3fa4; box-shadow: 0 0 18px -4px rgba(255, 63, 164, 1); }
.top .jx-open:focus-visible { outline: 2px solid #ffcf5a; outline-offset: 3px; }
.top .jx-open svg { width: 1em; height: 1em; }
.top .jx-open.is-new::after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%;
  background: #ff3fa4; box-shadow: 0 0 0 2px #050308, 0 0 10px #ff3fa4; animation: jx-blip 1.6s ease-in-out infinite; }
@media (max-width: 560px) {
  .top .jx-open { padding: 6px 10px; gap: 6px; letter-spacing: 0.08em; font-size: 0.72rem; }
}
.embed .jx-open, .embed .jx-hub { display: none !important; }

/* the panel */
.jx-hub { position: fixed; inset: 0; z-index: 40; pointer-events: none; visibility: hidden; transition: visibility 0s linear 0.45s; }
.jx-hub.is-open { pointer-events: auto; visibility: visible; transition-delay: 0s; }
.jx-scrim { position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 50%, rgba(40, 6, 30, 0.55), rgba(3, 2, 6, 0.72));
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.4s; }
.jx-hub.is-open .jx-scrim { opacity: 1; }
.jx-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); display: flex; flex-direction: column; outline: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px),
    radial-gradient(90% 40% at 100% 0%, rgba(255, 63, 164, 0.16), transparent 70%),
    radial-gradient(80% 40% at 0% 100%, rgba(255, 207, 90, 0.10), transparent 70%),
    linear-gradient(180deg, #120a18, #07040b 60%, #0b0610);
  box-shadow: -1px 0 0 rgba(255, 63, 164, 0.75), -2px 0 18px rgba(255, 63, 164, 0.45), -40px 0 80px rgba(0, 0, 0, 0.7);
  transform: translateX(104%); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.jx-hub.is-open .jx-sheet { transform: none; }
.jx-sheet::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; pointer-events: none;
  background: linear-gradient(180deg, #ffcf5a, #ff3fa4 35%, #7ff3ff 70%, #ff3fa4); box-shadow: 0 0 12px rgba(255, 63, 164, 0.9); animation: jx-hum 7s infinite; }

.jx-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) 18px 12px 22px; background: linear-gradient(180deg, rgba(14, 8, 20, 0.97), rgba(14, 8, 20, 0.88));
  border-bottom: 1px solid rgba(255, 207, 90, 0.18); }
.jx-title { margin: 0; display: flex; align-items: baseline; gap: 10px; font-family: 'Bungee', 'Space Grotesk', sans-serif; font-size: 17px; letter-spacing: 0.06em; }
.jx-name { color: #ffcf5a; text-shadow: 0 0 10px rgba(255, 207, 90, 0.7), 0 0 26px rgba(255, 150, 40, 0.45); }
.jx-dot { color: #7ff3ff; text-shadow: 0 0 8px rgba(80, 230, 255, 0.9); }
.jx-log { color: #ff8fcf; text-shadow: 0 0 10px rgba(255, 63, 164, 0.9); }
.jx-x { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 999px; cursor: pointer; background: rgba(10, 6, 16, 0.6);
  border: 1px solid rgba(255, 207, 90, 0.35); color: #ffcf5a; font-family: 'VT323', monospace; font-size: 1.15rem; letter-spacing: 0.12em; }
.jx-x:hover { border-color: #ffcf5a; box-shadow: 0 0 14px -4px rgba(255, 207, 90, 0.9); }
.jx-x:focus-visible { outline: 2px solid #ff3fa4; outline-offset: 2px; }
.jx-esc { padding: 0 6px; border: 1px solid currentColor; border-radius: 4px; font-size: 0.85em; opacity: 0.8; }
.jx-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 30px 22px 40px 26px; scrollbar-width: thin; scrollbar-color: rgba(255, 63, 164, 0.5) transparent; }

/* the hub, dressed for the arcade */
.jx-sheet .game-hub {
  --hub-accent: #ffcf5a; --hub-accent-2: #ff3fa4; --hub-ink: #f6eefe; --hub-ink-soft: #d9cfe6; --hub-ink-dim: #a597ba;
  --hub-line: rgba(255, 207, 90, 0.24); --hub-line-soft: rgba(255, 255, 255, 0.08); --hub-page: #050308;
  --hub-surface: rgba(22, 12, 30, 0.72); --hub-surface-2: rgba(255, 255, 255, 0.04);
  --hub-font-display: 'Bungee', 'Space Grotesk', sans-serif; --hub-font-ui: 'Space Grotesk', system-ui, sans-serif; --hub-font-body: 'Space Grotesk', system-ui, sans-serif;
  --hub-radius: 10px; --hub-ok: #57d977; font-size: 15.5px; }
.jx-sheet .hub-head { margin-bottom: 26px; }
.jx-sheet .hub-eyebrow { font-family: 'VT323', monospace; font-size: 1.15rem; font-weight: 400; letter-spacing: 0.24em; color: #7ff3ff; text-shadow: 0 0 10px rgba(80, 230, 255, 0.8); }
.jx-sheet .hub-eyebrow .hub-star { color: #7ff3ff; fill: #7ff3ff; }
.jx-sheet .hub-title { font-size: clamp(26px, 6vw, 36px); font-weight: 400; letter-spacing: 0.02em; line-height: 1.05;
  background: linear-gradient(180deg, #fff3c4 10%, #ffcf5a 50%, #ff7a3c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 170, 60, 0.45)); }
.jx-sheet .hub-lede { font-size: 15px; }
.jx-sheet .hub-pill { font-family: 'VT323', monospace; font-size: 1.05rem; letter-spacing: 0.1em; }
.jx-sheet .hub-grid { grid-template-columns: minmax(0, 1fr); }
.jx-sheet .hub-side { position: static; }
.jx-sheet .hub-h { font-family: 'VT323', monospace; font-size: 1.35rem; font-weight: 400; letter-spacing: 0.16em; color: #ffcf5a; text-shadow: 0 0 8px rgba(255, 207, 90, 0.55); }
.jx-sheet .hub-ver { font-family: 'VT323', monospace; font-size: 1.2rem; font-weight: 400; letter-spacing: 0.1em; padding: 0 8px; color: #7ff3ff;
  background: rgba(80, 230, 255, 0.08); border-color: rgba(127, 243, 255, 0.45); text-shadow: 0 0 8px rgba(80, 230, 255, 0.8); }
.jx-sheet .hub-tag { color: #fff; background: #ff3fa4; box-shadow: 0 0 12px rgba(255, 63, 164, 0.8); }
.jx-sheet .hub-rel-title { font-size: 16px; letter-spacing: 0.03em; }
.jx-sheet .hub-rel.is-latest::before { background: #ff3fa4; border-color: #ff3fa4; box-shadow: 0 0 0 4px rgba(255, 63, 164, 0.18), 0 0 16px #ff3fa4; }
.jx-sheet .hub-rels::before { background: linear-gradient(to bottom, #ff3fa4, rgba(255, 207, 90, 0.3) 25%, rgba(255, 255, 255, 0.08)); }
.jx-sheet .hub-rel.is-latest details[open] { border-color: rgba(255, 63, 164, 0.4); box-shadow: 0 0 34px -16px rgba(255, 63, 164, 0.7), 0 24px 60px -34px rgba(0, 0, 0, 0.85); }
.jx-sheet .hub-items li { font-size: 14.5px; }
.jx-sheet .hub-items li::before { background: #ff3fa4; box-shadow: 0 0 8px #ff3fa4; }
.jx-sheet .hub-items strong { font-size: 14px; color: #fff; }
.jx-sheet .hub-now-list li, .jx-sheet .hub-q { font-size: 14.5px; }
.jx-sheet .hub-live { background: #57d977; box-shadow: 0 0 10px #57d977; }
.jx-sheet .hub-live::after { border-color: #57d977; }
.jx-sheet .hub-askn { font-family: 'VT323', monospace; font-size: 1.15rem; font-weight: 400; color: #ff8fcf; padding-top: 0; }
.jx-sheet .hub-form-wrap { padding: 22px 18px; margin-top: 26px; border-color: rgba(255, 63, 164, 0.4);
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 63, 164, 0.10), transparent 55%), radial-gradient(90% 80% at 100% 100%, rgba(255, 207, 90, 0.08), transparent 60%), rgba(18, 10, 26, 0.8); }
.jx-sheet .hub-form-h { font-family: 'Bungee', 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 400; letter-spacing: 0.02em; line-height: 1.3; text-transform: none;
  color: #f6eefe; text-shadow: 0 0 14px rgba(255, 63, 164, 0.45); }
.jx-sheet .hub-seg label { font-size: 13px; }
.jx-sheet .hub-send { font-family: 'Bungee', 'Space Grotesk', sans-serif; font-weight: 400; letter-spacing: 0.06em; color: #1a0610;
  background: linear-gradient(180deg, #ffe08a, #ffb347 55%, #ff3fa4); box-shadow: 0 0 18px -2px rgba(255, 63, 164, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.35) inset; }
.jx-sheet .hub-done-h { font-size: 24px; }
@media (max-width: 560px) {
  .jx-bar { padding-left: 16px; padding-right: 12px; }
  .jx-title { font-size: 15px; gap: 8px; }
  .jx-body { padding: 24px 14px 36px 16px; }
}
@keyframes jx-blip { 50% { transform: scale(0.7); opacity: 0.6; } }
@keyframes jx-hum { 0%, 91%, 93.5%, 96%, 100% { opacity: 1; } 92% { opacity: 0.6; } 95% { opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) {
  .jx-sheet, .jx-scrim, .jx-hub { transition: none; }
  .jx-sheet::before, .top .jx-open.is-new::after { animation: none; }
}
