/* 67Client — "the newest update is in Discord" notice (partials/discord-update.html).
   Tinted glass like the rest of the site, with Discord's blurple as the accent.
   It lays itself out by its own width, so it fits a story card, the dashboard
   and the checkout sidebar alike. */
.discord-update {
  --du-blurple: #5865f2;
  --du-blurple-2: #7983ff;
  position: relative;
  margin: 0 0 20px;
  overflow: hidden;
  border: 1px solid rgba(121, 131, 255, 0.5);
  border-radius: var(--r-lg, 18px);
  background:
    radial-gradient(130% 160% at 0% 0%, rgba(88, 101, 242, 0.34), rgba(88, 101, 242, 0) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 40%),
    rgba(15, 12, 30, 0.7);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  color: var(--text, #fff7fb);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 20px 44px -26px rgba(88, 101, 242, 0.85);
  container-type: inline-size;
}

.discord-update[hidden] { display: none; }

.discord-update__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 18px;
  padding: 18px 20px;
}

.discord-update__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--du-blurple-2), var(--du-blurple));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 10px 24px -10px rgba(88, 101, 242, 0.9);
}

.discord-update__icon svg { width: 26px; height: 26px; }

.discord-update__body { min-width: 0; }

.discord-update__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  padding: 3px 9px;
  border: 1px solid rgba(121, 131, 255, 0.45);
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.2);
  color: #d5d9ff;
  font-family: var(--font-pixel, ui-monospace, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.discord-update__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aab2ff;
  box-shadow: 0 0 8px #aab2ff;
  animation: du-pulse 2s infinite;
}

@keyframes du-pulse { 50% { opacity: 0.35; } }

.discord-update__title {
  display: block;
  color: var(--text, #fff7fb);
  font-family: var(--font-display, inherit);
  font-size: 1.04rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.discord-update__copy,
.discord-update__linked {
  margin: 6px 0 0;
  color: var(--text-2, rgba(255, 239, 248, 0.8));
  font-size: 0.9rem;
  line-height: 1.55;
}

.discord-update__linked { color: #b7f5c8; }
/* Once Discord is connected, the instructions shrink to the one line that matters. */
.discord-update.is-linked .discord-update__copy { display: none; }
.discord-update__linked b { color: #fff; }
.discord-update__linked[hidden],
.discord-update__btn[hidden] { display: none; }

.discord-update__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.discord-update__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text, #fff7fb);
  font-family: var(--font-display, inherit);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.discord-update__btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.12); }
.discord-update__btn--primary { border-color: rgba(160, 168, 255, 0.6); background: linear-gradient(180deg, var(--du-blurple-2), var(--du-blurple)); color: #fff; }
.discord-update__btn--primary:hover { border-color: rgba(190, 196, 255, 0.85); background: linear-gradient(180deg, #8890ff, #6470ff); }
.discord-update__btn:focus-visible { outline: 2px solid #c9cdfb; outline-offset: 2px; }

/* Narrow homes (a story card, a sidebar): the buttons move under the text. */
@container (max-width: 600px) {
  .discord-update__inner { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .discord-update__actions { grid-column: 2; justify-content: flex-start; }
}

@container (max-width: 380px) {
  .discord-update__inner { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .discord-update__icon { width: 40px; height: 40px; border-radius: 12px; }
  .discord-update__actions { grid-column: 1; }
}

/* Older markup that wraps the partial for narrow columns. */
.discord-update-stack .discord-update { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .discord-update__btn { transition: none; }
  .discord-update__badge::before { animation: none; }
}
