/* Smoked glass over the editorial layout. The photographic covers stay crisp. */
:root {
  --glass-fill: linear-gradient(135deg, #ffffff10, #ffffff03 48%, #ffffff09), #25282c91;
  --glass-edge: #ffffff21;
  --glass-depth: inset 0 1px 0 #ffffff24, inset 0 -1px 0 #ffffff07, 0 12px 32px #00000018;
}

/* Quiet light behind translucent sheets makes their depth visible. */
body:is([data-screen="profile"], [data-screen="coop"], [data-screen="detail"]) .app-shell {
  background-image:
    radial-gradient(ellipse 360px 520px at 0% 260px, #859ca91b, transparent 85%),
    radial-gradient(ellipse 340px 600px at 100% 600px, #b77b8d14, transparent 85%);
}

.detail-card,
.conditions-card,
.profile-card.glass,
.menu-list,
.pricing-card,
.metric-tile:not(:first-child),
.profile-placement-button,
.profile-admin-button,
.profile-bot-button {
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-depth);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  backdrop-filter: blur(24px) saturate(125%);
}

/* Edges catch light; the middle stays transparent enough to reveal the photo. */
.card-body > button,
.hero-facts > div,
.hero-status,
.chip:not(.chip-light),
.date-chip,
.icon-button,
.admin-pill,
.secondary-button,
.channel-list li {
  background: linear-gradient(145deg, #ffffff29, #ffffff09 58%, #ffffff16), #27272730;
  border: 1px solid #ffffff30;
  box-shadow: inset 0 1px 0 #ffffff35, inset 0 -1px 0 #ffffff0b, 0 4px 12px #00000014;
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

.card-body > .joined-button {
  color: #e9ff6d;
  background: linear-gradient(145deg, #e2ff0023, #e2ff0008), #31351d66;
  border-color: #e2ff0038;
}

.card-body > button:hover {
  color: #171717;
  background: #fafaf6;
}

.channel-button strong { min-width: 0; overflow-wrap: anywhere; }
.channel-button span { flex-shrink: 0; }
.channel-button i { flex-shrink: 0; }
.pricing-card:focus-visible { outline: 2px solid #e2ff00; outline-offset: 4px; }
.pricing-card p { min-width: 0; flex-wrap: wrap; font-size: 24px; font-weight: 700; }
.pricing-card > div { flex-wrap: wrap; }
.pricing-card strong { margin-left: auto; }

/* Each accordion row shares the glass surface instead of adding an inset strip. */
.coop-formats > details { background: transparent; }

.danger-row:disabled { cursor: not-allowed; }
.unavailable-note { margin-top: 8px; color: #aaa; font-size: 11px; }

.filter-row {
  gap: 4px;
  padding: 5px;
  border: 1px solid #ffffff20;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff10, #ffffff03), #282a2c75;
  box-shadow: inset 0 1px 0 #ffffff1f;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.filter-chip {
  flex: 1 0 auto;
  min-height: 39px;
  padding-inline: 12px;
  background: transparent;
  color: #d6d6d3;
}

.filter-chip.active {
  color: #181818;
  background: #e2ff00;
  box-shadow: inset 0 1px 0 #ffffff70, 0 2px 9px #0000001a;
}

.bottom-nav,
.sticky-cta {
  background: linear-gradient(125deg, #ffffff20, #ffffff08 48%, #ffffff13), #25272a80;
  border: 1px solid #ffffff40;
  box-shadow: inset 0 1px 0 #ffffff40, inset 0 -1px 0 #ffffff0b, 0 12px 40px #00000040;
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
}

.nav-item.active {
  box-shadow: inset 0 1px 0 #fff, 0 3px 12px #00000018;
}

.detail-topbar {
  background: linear-gradient(180deg, #171819e0, #1718199e);
  border-bottom: 1px solid #ffffff0e;
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  backdrop-filter: blur(24px) saturate(125%);
}

.profile-row:last-child {
  border: 1px solid #ffffff60;
  box-shadow: inset 0 1px 0 #ffffffb0, inset 0 -1px 0 #ffffff30, 0 8px 24px #00000018;
  overflow: hidden;
}

.profile-row:last-child::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(112deg, #ffffff40, #ffffff06 31%, transparent 32%, #ffffff14 80%, #ffffff35);
  pointer-events: none;
}

.profile-row:last-child > * {
  position: relative;
}

.profile-avatar,
.account-button {
  box-shadow: inset 0 1px 2px #ffffff90, inset 0 -3px 9px #ffffff18, 0 5px 14px #00000020;
}

.wins-button {
  background: linear-gradient(125deg, #ffffff1f, transparent 60%), #f52f5b;
  border: 1px solid #ffffff26;
  box-shadow: inset 0 1px 0 #ffffff40, 0 5px 16px #00000018;
}

.coop-hero,
.home-add-block {
  border: 1px solid #ffffff32;
  box-shadow: inset 0 1px 0 #ffffff50, inset 0 -1px 0 #ffffff12, 0 14px 30px #00000020;
}

.coop-hero::after,
.home-add-block::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, #ffffff15, transparent 36%, transparent 70%, #ffffff08);
  pointer-events: none;
  z-index: -1;
}

.pricing-card.selected {
  background: linear-gradient(140deg, #e2ff0019, #ffffff06 60%), #30332480;
  border-color: #e2ff0070;
  box-shadow: inset 0 1px 0 #eaff8a60, 0 12px 32px #00000018;
}

.modal-card,
.toast {
  background: linear-gradient(130deg, #ffffff14, #ffffff04), #303237cc;
  border: 1px solid #ffffff38;
  box-shadow: inset 0 1px 0 #ffffff40, 0 20px 70px #00000050;
  -webkit-backdrop-filter: blur(32px) saturate(130%);
  backdrop-filter: blur(32px) saturate(130%);
}

@media (min-width: 1000px) {
  .filter-row { width: max-content; min-width: 440px; }
  .filter-chip { padding-inline: 22px; }
  .detail-topbar { background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Keep an opaque, legible surface when blur or transparency is unavailable. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-fill: #2a2c30; }
  .bottom-nav, .sticky-cta, .modal-card, .toast, .filter-row { background: #343639; }
  .card-body > button, .hero-facts > div, .hero-status, .chip:not(.chip-light), .date-chip { background: #424447; }
  .pricing-card.selected, .card-body > .joined-button { background: #343a24; }
}

@media (prefers-reduced-transparency: reduce) {
  :root { --glass-fill: #2a2c30; }
  .bottom-nav, .sticky-cta, .modal-card, .toast, .filter-row { background: #343639; }
  .card-body > button, .hero-facts > div, .hero-status, .chip:not(.chip-light), .date-chip { background: #424447; }
  .pricing-card.selected, .card-body > .joined-button { background: #343a24; }
}
