/* Server Bulletins / Updates */
body.layout--updates::before,
body.layout--updates::after {
  opacity: 0;
}

.updates-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  width: 100%;
  max-width: 100%;
}

.updates-bg__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.updates-bg__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 15, 0.52) 0%,
    rgba(6, 10, 15, 0.68) 45%,
    rgba(6, 10, 15, 0.82) 100%
  );
}

.layout--updates .site-header {
  background: rgba(6, 10, 15, 0.62);
}

.layout--updates .site-footer {
  background: rgba(6, 10, 15, 0.55);
  backdrop-filter: blur(10px);
}

.layout--updates .updates-panel {
  background: rgba(10, 16, 24, 0.78);
  backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .updates-bg__video {
    display: none;
  }

  .updates-bg {
    background:
      linear-gradient(180deg, rgba(6, 10, 15, 0.75) 0%, rgba(6, 10, 15, 0.92) 100%),
      center / cover no-repeat url("/img/vibeserver.png");
  }
}

.layout--updates .page {
  padding-top: 2rem;
  max-width: 680px;
}

.updates-page {
  margin: 0;
}

.updates-panel {
  padding: 1.5rem 1.4rem 1.25rem;
}

.updates-panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.updates-panel__live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.updates-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.updates-panel__meta {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  padding-bottom: 0.1rem;
}

.updates-feed {
  display: flex;
  flex-direction: column;
}

.updates-empty {
  padding: 2rem 0.5rem 1.5rem;
  text-align: center;
}

.updates-empty__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.updates-empty__hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.bulletin {
  --tone: var(--accent);
}

.bulletin--page {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  gap: 0 1.35rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}

.bulletin--page:last-child {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

.bulletin--page:first-child {
  padding-top: 1rem;
}

.bulletin--page .bulletin__stamp {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  padding-top: 0.2rem;
  text-align: right;
}

.bulletin--page .bulletin__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.bulletin--page .bulletin__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bulletin--page .bulletin__meta {
  margin-bottom: 0;
}

.bulletin--page .bulletin__title {
  margin: 0;
  font-size: 1.05rem;
}

.bulletin--page .bulletin__media-link {
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  line-height: 0;
}

.bulletin--page .bulletin__media-link img {
  display: block;
  width: 100%;
  max-height: 12.5rem;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.bulletin--page .bulletin__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.bulletin--compact {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.bulletin--compact:last-child {
  border-bottom: none;
}

.bulletin--compact:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 65%);
}

.bulletin__stamp {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.15rem;
}

.bulletin__date {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.1;
}

.bulletin__clock {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.bulletin__main {
  min-width: 0;
}

.bulletin__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.4rem;
}

.bulletin__tag {
  display: inline-flex;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent);
  background: color-mix(in srgb, var(--tone) 12%, transparent);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--tone) 78%, white);
}

.bulletin__tag--resolved {
  border-color: rgba(62, 207, 142, 0.35);
  background: rgba(62, 207, 142, 0.12);
  color: #9eebc8;
}

.bulletin--resolved.bulletin--page {
  opacity: 0.8;
}

.bulletin--resolved .bulletin__title,
.bulletin--resolved .bulletin__body {
  color: var(--muted);
}

.bulletin--resolved .bulletin__media-link {
  opacity: 0.82;
  filter: saturate(0.8);
}

.bulletin__rel {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.bulletin__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.bulletin__body {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.bulletin__body p {
  margin: 0 0 0.75rem;
}

.bulletin__body p:last-child {
  margin-bottom: 0;
}

.bulletin__body strong {
  color: var(--text-primary);
  font-weight: 650;
}

.bulletin__body em {
  font-style: italic;
  color: var(--text-primary);
}

.bulletin__body del {
  opacity: 0.72;
  text-decoration: line-through;
}

.bulletin__body a.bulletin-link {
  color: #7cb4ff;
  text-decoration: underline;
  text-decoration-color: rgba(124, 180, 255, 0.45);
  text-underline-offset: 0.15em;
}

.bulletin__body a.bulletin-link:hover {
  color: #a5cfff;
}

.bulletin-list {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  color: var(--text-secondary);
}

.bulletin-list li {
  margin: 0.15rem 0;
}

.bulletin-list li:last-child {
  margin-bottom: 0;
}

.bulletin-cmd {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: #a5f3fc;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.84em;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.bulletin-cmd-block {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  background: rgba(0, 0, 0, 0.38);
  overflow-x: auto;
}

.bulletin-cmd-block code {
  display: block;
  color: #cffafe;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.bulletin--commands .bulletin-cmd {
  border-color: rgba(103, 232, 249, 0.35);
  background: rgba(103, 232, 249, 0.08);
}

.bulletin--commands .bulletin-cmd-block {
  border-color: rgba(103, 232, 249, 0.28);
  background: rgba(103, 232, 249, 0.06);
}

.bulletin__media {
  margin: 0;
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
}

.bulletin--compact .bulletin__media {
  width: 3rem;
  height: 3rem;
}

.bulletin__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.bulletin--amber { --tone: #e6b84a; }
.bulletin--violet { --tone: #a78bfa; }
.bulletin--cyan { --tone: #67e8f9; }
.bulletin--green { --tone: #3ecf8e; }
.bulletin--blue { --tone: #7cb4ff; }
.bulletin--rose { --tone: #fb7185; }
.bulletin--red { --tone: #f87171; }
.bulletin--neutral { --tone: #8b9cb0; }

.bulletin--compact .bulletin__title {
  font-size: 0.9rem;
}

