/* Original hub styling, magazine introduction and glossy electric-blue options. */
body[data-view="magazine"] {
  --mag-gap: 40px;
  --blue: #0044ff;
  --blue-2: #0044ff;
  --line: rgba(0,68,255,0.3);
  --line-strong: rgba(0,68,255,0.8);
}
body[data-view="magazine"] .splash-logo-stage { aspect-ratio: 3 / 1; }
body[data-view="magazine"] .page { padding-top: var(--mag-gap); }
body[data-view="magazine"] .brand { padding: 0; margin-bottom: var(--mag-gap); }
.mag-header-wordmark { width: min(400px, 100%); }
.mag-wordmark { position: relative; display: block; aspect-ratio: 640 / 68; }
body[data-view="magazine"] .mag-wordmark img {
  position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%);
  display: block; width: 100%; height: auto; filter: none; pointer-events: none;
}
.mag-hero {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--mag-gap); text-align: center; padding: 0 4px var(--mag-gap);
}
.mag-publication-masthead {
  display: block; width: min(100%, 180px); height: auto;
  margin: 0 auto; object-fit: contain;
}
.mag-title {
  margin: 0 auto; font-family: inherit; font-weight: 800;
  font-size: clamp(30px, 6vw, 44px); line-height: 1.15;
  letter-spacing: -0.025em; color: var(--text);
}
.mag-title em {
  font-style: normal; color: var(--blue);
  text-shadow:
    0 3px 2px #000,
    0 6px 10px rgba(0,0,0,0.95),
    0 0 2px rgba(255,255,255,0.6),
    0 0 8px rgba(0,68,255,0.95),
    0 0 18px rgba(0,68,255,0.75),
    0 0 32px rgba(0,68,255,0.45);
}
.mag-chat-cue {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: -16px auto 24px; padding: 12px 16px; width: fit-content;
  border: 1px solid rgba(0,68,255,.65); border-radius: 999px;
  background: rgba(0,68,255,.14); color: #fff;
  font-size: 13px; font-weight: 600; text-align: center; text-decoration: none;
}
.mag-chat-cue span { font-size: 23px; color: #fff; }
.mag-chat-cue:hover { background: rgba(0,68,255,.3); }
.mag-advert { width: min(100%, 520px); margin: 0 auto var(--mag-gap); }
.mag-phone {
  display: block; width: 100%; height: clamp(520px, 160vw, 640px);
  border: 0; margin: 0 auto; background: transparent;
}
.mag-player {
  position: relative; aspect-ratio: 9/16; background: #000;
  border-radius: 24px; border: 1px solid rgba(255,255,255,.25); overflow: hidden;
  box-shadow: 0 0 35px rgba(0,68,255,.2), 0 0 60px rgba(0,0,0,.8);
}
.mag-player video { display: block; width: 100%; height: 100%; object-fit: contain; }
.mag-player-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 40px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
  background: linear-gradient(#000c, transparent); pointer-events: none;
  font: bold 9px ui-monospace, monospace; letter-spacing: 1px;
}
.mag-player-dots { display: flex; gap: 6px; }
.mag-player-dots i { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; }
.mag-player-dots i:nth-child(2) { background: #eab308; }
.mag-player-dots i:nth-child(3) { background: #22c55e; }
.mag-play-overlay {
  position: absolute; inset: 0; width: 100%; border: 0; color: white;
  display: grid; place-items: center; background: #0004; cursor: pointer;
}
.mag-play-overlay[hidden] { display: none; }
.mag-play-overlay span {
  display: grid; place-items: center; width: 72px; height: 72px;
  border-radius: 50%; background: #0044ff; font-size: 26px;
  box-shadow: 0 0 30px rgba(0,68,255,.6);
}
.mag-player-controls {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  display: flex; align-items: center; gap: 8px; z-index: 3;
}
.mag-player-controls button {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  border: 1px solid #ffffff40; background: #000b; color: white; font-size: 20px;
  cursor: pointer;
}
.mag-player-controls button[aria-pressed="true"]#advertLoop { background: #0044ff; }
.mag-controls-space { flex: 1; }
.mag-player-controls input { width: 65px; accent-color: #0044ff; }
.mag-video-status { margin: 12px 0 0; text-align: center; font-size: 13px; }
.mag-video-status:empty { display: none; }
#magazine-assistant { scroll-margin-top: 24px; }
.mag-chat-cue:focus-visible, .mag-player button:focus-visible,
.mag-player input:focus-visible, #magazine-assistant:focus-visible { outline: 2px solid white; outline-offset: 4px; }
body[data-view="magazine"] .chat-shell {
  background: rgba(3, 12, 28, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 0 40px rgba(0,68,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.20);
}
body[data-view="magazine"] .profile { background: rgba(0,68,255,.08); }
body[data-view="magazine"] .composer,
body[data-view="magazine"] .powered { background: transparent; }
body[data-view="magazine"] .composer input { background: #111827; }
body[data-view="magazine"] .bubble {
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025)), #121b2b;
}
body[data-view="magazine"] .message-row.user .bubble {
  background: linear-gradient(135deg, #0e62f1, #0646bf);
}
body[data-view="magazine"] .chat-shell::before {
  background: linear-gradient(90deg, transparent, #0044ff, transparent);
}
body[data-view="magazine"] .choice {
  background:
    linear-gradient(165deg, rgba(255,255,255,0.13), transparent 38%),
    linear-gradient(180deg, rgba(0,68,255,0.22), rgba(5,19,43,0.78) 55%, rgba(0,68,255,0.10)),
    #071225;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20), inset 0 -1px 0 rgba(0,68,255,0.24);
}
body[data-view="magazine"] .profile-badge {
  color: var(--text); border-color: var(--line-strong);
  background: rgba(0,68,255,0.16);
}
body[data-view="magazine"] .send { background: #0044ff; }
body[data-view="magazine"] .messages { min-height: 0; padding-bottom: 8px; }
body[data-view="magazine"] .actions { padding-top: 8px; }
.mag-main-menu {
  display: block; margin: 4px 24px 20px; padding: 12px 18px;
  color: #fff; background: #071a47;
  border: 1px solid rgba(0,68,255,.65); border-radius: 12px;
  font-weight: 600; font-size: 14px; cursor: pointer;
}
.mag-main-menu:hover { background: #0a246b; }
.mag-main-menu:disabled { opacity: .5; cursor: wait; }
.mag-main-menu:focus-visible, .mag-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.mag-footer {
  position: relative; z-index: 1; padding: 56px 24px 32px;
  background: rgba(3,3,3,.75); border-top: 1px solid rgba(0,68,255,.25);
  color: #fff; transition: opacity 700ms ease;
}
body.splash-active .mag-footer { opacity: 0; pointer-events: none; }
.mag-footer-grid {
  max-width: 1200px; margin: 0 auto 48px; display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px;
}
.mag-footer h2 {
  margin: 0 0 24px; color: #0044ff; text-transform: uppercase;
  font-size: 14px; letter-spacing: .2em;
}
.mag-footer a { color: #fff; text-decoration: none; }
.mag-footer a:hover { color: #7398ff; }
.mag-footer-grid nav a, .mag-footer-grid > div > a:not(:first-child) { display: block; margin: 0 0 16px; font-size: 12px; font-weight: 600; }
.mag-footer p { font-size: 12px; line-height: 1.8; }
.mag-footer-wordmark { width: min(100%, 240px); margin-bottom: 24px; }
.mag-footer-bottom { max-width: 1200px; margin: auto; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.mag-footer-bottom p, .mag-footer-bottom a { font-size: 10px; text-transform: uppercase; letter-spacing: .15em; }
@media (max-width: 760px) {
  .mag-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .mag-footer-grid > div:first-child { grid-column: 1/-1; }
  .mag-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 520px) {
  .mag-advert { max-width: 520px; }
  .mag-player-controls input { display: none; }
  body[data-view="magazine"] .messages { max-height: none; }
}
