:root {
  --blood: #5c0508;
  --blood-deep: #2a0103;
  --blood-hot: #9a1218;
  --foam: #f3f0ea;
  --ink: #0a0505;
  --twitch: #9146ff;
  --twitch-glow: rgba(145, 70, 255, 0.4);
  --live: #eb0400;
  --panel: rgba(12, 4, 5, 0.72);
  --panel-hot: rgba(72, 8, 12, 0.55);
  --line: rgba(243, 240, 234, 0.16);
  --muted: rgba(243, 240, 234, 0.68);
  --rail-w: 15.5rem;
  --stamp-cut: polygon(
    0 10px,
    10px 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    12px 100%,
    0 calc(100% - 12px)
  );
  --btn-cut: polygon(
    0 0,
    calc(100% - 11px) 0,
    100% 11px,
    100% 100%,
    11px 100%,
    0 calc(100% - 11px)
  );
  /* Social stamp: cut top-left + bottom-right (matches preferred icon bar) */
  --soc-cut: polygon(
    12px 0,
    100% 0,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    0 100%,
    0 12px
  );
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.55'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  overflow-x: clip;
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--foam);
  background: var(--blood-deep);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.app {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(
      115deg,
      rgba(42, 1, 3, 0.94) 0%,
      rgba(92, 5, 8, 0.78) 45%,
      rgba(42, 1, 3, 0.92) 100%
    ),
    url("assets/banner.png") center / cover no-repeat;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, transparent 10%, rgba(10, 5, 5, 0.55) 100%),
    linear-gradient(to top, rgba(10, 5, 5, 0.75), transparent 40%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem max(clamp(1rem, 3vw, 1.75rem), env(safe-area-inset-right, 0px)) 0.85rem max(clamp(1rem, 3vw, 1.75rem), env(safe-area-inset-left, 0px));
  background: rgba(10, 5, 5, 0.72);
  border-bottom: 2px solid #0a0505;
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: cover;
  border: 2px solid #0a0505;
  box-shadow: 3px 3px 0 var(--blood-hot);
  transform: rotate(-4deg);
  background: #0a0505;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.build-pill,
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(28rem, 62vw);
  padding: 0.45rem 0.8rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(10, 5, 5, 0.85);
  border: 2px solid rgba(145, 70, 255, 0.45);
  clip-path: var(--btn-cut);
  filter: drop-shadow(2px 2px 0 #0a0505);
}

.live-pill {
  border-color: #eb0400;
  border-width: 2px;
  background:
    linear-gradient(
      105deg,
      transparent 68%,
      rgba(235, 4, 0, 0.35) 68%,
      rgba(235, 4, 0, 0.35) 71%,
      transparent 71%
    ),
    linear-gradient(90deg, #5a0000, #3a0008 55%, #1a0104);
  clip-path: var(--btn-cut);
  filter: drop-shadow(3px 3px 0 #0a0505);
  box-shadow: inset 0 0 0 1px rgba(235, 4, 0, 0.35);
  animation: live-stamp 1.9s ease-in-out infinite;
}

.live-pill-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  text-transform: none;
  letter-spacing: 0;
}

.live-pill-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff8a80;
}

.live-pill-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--foam);
}

@keyframes live-stamp {
  0%,
  100% {
    filter: drop-shadow(3px 3px 0 #0a0505);
    box-shadow: inset 0 0 0 1px rgba(235, 4, 0, 0.35);
  }
  50% {
    filter: drop-shadow(3px 3px 0 #3a0000);
    box-shadow: inset 0 0 0 1px rgba(235, 4, 0, 0.75);
  }
}

.live-pill[hidden],
.build-pill[hidden],
[data-live-only][hidden],
.rail-backdrop[hidden] {
  display: none !important;
}

.dot.live {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(235, 4, 0, 0.5);
  animation: live 1.7s ease-out infinite;
  flex-shrink: 0;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.warn {
  background: #f0c000;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
  padding: 0.12rem 0.4rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--foam);
  background: var(--live);
  border: 1px solid #0a0505;
  vertical-align: middle;
}

.nav-toggle {
  display: none;
  padding: 0.45rem 0.75rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--foam);
  background: rgba(10, 5, 5, 0.6);
}

.shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  min-height: calc(100vh - 4.1rem);
}

.rail {
  position: sticky;
  top: 4.1rem;
  align-self: start;
  height: calc(100vh - 4.1rem);
  overflow: auto;
  padding: 1.1rem 0.85rem 1.5rem;
  background: rgba(10, 5, 5, 0.45);
  border-right: 2px solid #0a0505;
}

.rail-label {
  margin: 0 0.4rem 0.65rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 240, 234, 0.45);
}

.rail-btn {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.8rem 0.7rem 0.95rem;
  margin-bottom: 0.3rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
    letter-spacing 0.18s ease;
}

.rail-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 3px;
  background: transparent;
  transition: background 0.18s ease, transform 0.18s ease;
}

.rail-btn:hover {
  background: linear-gradient(90deg, rgba(154, 18, 24, 0.45), transparent 70%);
  border-color: rgba(243, 240, 234, 0.1);
  transform: translateX(3px);
  letter-spacing: 0.11em;
}

.rail-btn:hover::before {
  background: var(--blood-hot);
}

.rail-btn.is-active {
  background:
    linear-gradient(105deg, rgba(154, 18, 24, 0.35) 0%, rgba(92, 5, 8, 0.35) 55%, transparent 100%);
  border-color: rgba(154, 18, 24, 0.55);
  transform: translateX(2px);
}

.rail-btn.is-active::before {
  background: var(--blood-hot);
  transform: scaleY(1.05);
}

.rail-links {
  display: grid;
  gap: 0.4rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.soc-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.soc-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  flex: 0 0 auto;
  fill: currentColor;
}

.rail-socials,
.social-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.rail-soc,
a.soc-stamp {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  min-width: 2.85rem;
  min-height: 2.85rem;
  padding: 0;
  color: #f3f0ea;
  text-decoration: none;
  background: linear-gradient(180deg, #9a181f 0%, #5c0a10 42%, #1a0507 100%);
  border: 2px solid #0a0505;
  clip-path: var(--soc-cut);
  filter: drop-shadow(3px 3px 0 #0a0505);
  isolation: isolate;
  overflow: hidden;
  flex: 0 0 auto;
  transition:
    transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.rail-soc::before,
a.soc-stamp::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-image: var(--grain);
}

/* Diagonal slash like the reference stamps */
.rail-soc::after,
a.soc-stamp::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    transparent 0 46%,
    rgba(243, 240, 234, 0.22) 46%,
    rgba(243, 240, 234, 0.22) 48%,
    transparent 48%
  );
}

.rail-soc .soc-icon,
a.soc-stamp .soc-icon,
.rail-soc .dot,
a.soc-stamp .dot {
  position: relative;
  z-index: 1;
}

.rail-soc .soc-icon,
a.soc-stamp .soc-icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.rail-soc:hover,
a.soc-stamp:hover {
  transform: translateY(-2px);
  filter: drop-shadow(3px 5px 0 #0a0505);
  color: #fff;
  background: linear-gradient(180deg, #b71d26 0%, #6e0c14 45%, #220608 100%);
}

.rail-soc:active,
a.soc-stamp:active {
  transform: translateY(1px);
  filter: drop-shadow(1px 2px 0 #0a0505);
}

.rail-soc .live-tag {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  z-index: 2;
  margin: 0;
}

.social-actions .rail-soc,
.social-actions a.soc-stamp {
  width: 3.15rem;
  height: 3.15rem;
  min-width: 3.15rem;
  min-height: 3.15rem;
}

.social-actions .rail-soc .soc-icon,
.social-actions a.soc-stamp .soc-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.rail-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--foam);
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 6px,
      rgba(145, 70, 255, 0.07) 6px,
      rgba(145, 70, 255, 0.07) 7px
    ),
    linear-gradient(135deg, rgba(55, 10, 20, 0.85), rgba(10, 5, 5, 0.8));
  border: 2px solid #0a0505;
  clip-path: var(--btn-cut);
  filter: drop-shadow(2px 3px 0 #0a0505);
  transition: transform 0.18s ease, filter 0.18s ease, letter-spacing 0.18s ease;
}

.rail-chip:hover {
  transform: translateY(-2px) rotate(-0.6deg);
  filter: drop-shadow(3px 5px 0 #0a0505);
  letter-spacing: 0.12em;
}

.rail-chip.accent {
  background:
    linear-gradient(
      120deg,
      transparent 48%,
      rgba(243, 240, 234, 0.12) 48%,
      rgba(243, 240, 234, 0.12) 50%,
      transparent 50%
    ),
    linear-gradient(180deg, #8b1018 0%, #4e070b 55%, #2a0406 100%);
}

.subtab-soc {
  min-width: 3rem;
  justify-content: center;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.subtab-soc .soc-icon {
  width: 1.2rem;
  height: 1.2rem;
}


.chip-soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.35rem 0.45rem;
}

.chip-soc .soc-icon {
  width: 1rem;
  height: 1rem;
}

.content {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
}

/* Category shell: title block + upper info navbar + page body */
.category-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: calc(100vh - 5.5rem);
}

.category-shell .panel-head {
  margin-bottom: 0;
  padding-bottom: 1rem;
}

.subnav {
  position: sticky;
  top: 4.1rem;
  z-index: 5;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0 0 1.35rem;
  padding: 0 0.35rem;
  overflow-x: auto;
  background: rgba(10, 5, 5, 0.94);
  border: 2px solid #0a0505;
  border-bottom: 3px solid var(--blood-hot);
  box-shadow: 5px 5px 0 #0a0505;
  backdrop-filter: blur(10px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.subnav::before {
  content: "Pages";
  flex: 0 0 auto;
  align-self: center;
  margin: 0 0.65rem 0 0.5rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 240, 234, 0.4);
}

.watch-subnav::before {
  content: "Filter";
  color: #c4a0ff;
}

.subtab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding: 0.85rem 1rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 240, 234, 0.62);
  border: 0;
  border-right: 1px solid rgba(243, 240, 234, 0.08);
  transition: background 0.15s ease, color 0.15s ease;
}

.subtab:last-child {
  border-right: 0;
}

.subtab:hover {
  color: var(--foam);
  background: rgba(154, 18, 24, 0.4);
}

.subtab.is-active {
  color: var(--foam);
  background:
    linear-gradient(180deg, rgba(154, 18, 24, 0.28), rgba(92, 5, 8, 0.25));
}

.subtab.is-active::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blood-hot), #c41e26, var(--blood-hot));
  clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
  animation: slash-crawl 2.8s linear infinite;
}

@keyframes slash-crawl {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(25deg);
  }
}

.tab-stage {
  min-height: 12rem;
  flex: 1;
}

.tab-panel[hidden] {
  display: none !important;
}

.watch-stage {
  display: grid;
  gap: 1rem;
}

.watch-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.watch-filter-label {
  font-family: "Oswald", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 240, 234, 0.55);
}

.watch-empty {
  color: var(--muted);
  padding: 1rem 0;
}

.feed-grid {
  display: grid;
  gap: 0.9rem;
}

.feed-card-top,
.feed-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.feed-kind,
.feed-when {
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 240, 234, 0.5);
}

.feed-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.feed-card.is-live-card {
  border-color: rgba(235, 4, 0, 0.85);
  filter: drop-shadow(4px 5px 0 rgba(90, 0, 0, 0.95));
}

.feed-card.is-live-card::after {
  background: linear-gradient(
    115deg,
    transparent 0 62%,
    rgba(235, 4, 0, 0.55) 62%,
    rgba(235, 4, 0, 0.55) 64%,
    transparent 64%
  );
}

.feed-grid.tight {
  margin-top: 0.9rem;
}

.feed-card {
  position: relative;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1.1rem 1.15rem;
  background:
    linear-gradient(165deg, rgba(55, 8, 12, 0.35), transparent 45%),
    var(--panel);
  border: 2px solid #0a0505;
  border-width: 2px 3px 4px 2px;
  clip-path: var(--stamp-cut);
  filter: drop-shadow(3px 4px 0 #0a0505);
  min-width: 0;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.22s ease;
}

.feed-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: var(--grain);
}

.feed-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0 62%,
    rgba(145, 70, 255, 0.22) 62%,
    rgba(145, 70, 255, 0.22) 64%,
    transparent 64%
  );
}

.feed-card > * {
  position: relative;
  z-index: 1;
}

.feed-card:hover {
  transform: translateY(-3px) rotate(-0.4deg);
  filter: drop-shadow(4px 7px 0 #0a0505);
}

.feed-thumb {
  margin: -1.1rem -1.15rem 0.15rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(10, 5, 5, 0.65);
  border-bottom: 2px solid #0a0505;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%);
}

.feed-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.feed-card:hover .feed-thumb img {
  transform: scale(1.04);
  filter: contrast(1.05) saturate(1.08);
}

.feed-card h3 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.feed-card p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.feed-card.muted-card {
  opacity: 0.92;
}

.feed-card.muted-card::after {
  opacity: 0.35;
}

.rail-backdrop {
  display: none;
}

.twitch-chip {
  border-color: rgba(145, 70, 255, 0.55);
  color: #c4a0ff;
}

.panel[hidden] {
  display: none !important;
}

.panel-head {
  margin-bottom: 1.5rem;
  max-width: 46rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 240, 234, 0.6);
}

.eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  background: linear-gradient(90deg, var(--blood-hot), #c41e26);
}

.panel-head h1 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #0a0505;
  margin-bottom: 0.55rem;
}

.lede {
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.02rem;
}

.grid {
  display: grid;
  gap: 0.9rem;
}

.grid.cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feed-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.watch-feed {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
}

.card {
  position: relative;
  display: grid;
  gap: 0.5rem;
  text-align: left;
  padding: 1.2rem 1.2rem 1.15rem;
  background:
    linear-gradient(145deg, rgba(90, 12, 18, 0.4) 0%, transparent 42%),
    var(--panel);
  border: 2px solid #0a0505;
  border-width: 3px 2px 4px 2px;
  clip-path: var(--stamp-cut);
  filter: drop-shadow(4px 5px 0 #0a0505);
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.22s ease,
    background 0.22s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: var(--grain);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    transparent 0 58%,
    rgba(235, 4, 0, 0.28) 58%,
    rgba(235, 4, 0, 0.28) 60.5%,
    transparent 60.5%
  );
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.card > * {
  position: relative;
  z-index: 1;
}

.grid.cards .card:nth-child(2n) {
  transform: rotate(0.5deg);
}

.grid.cards .card:nth-child(3n) {
  transform: rotate(-0.65deg);
}

.grid.cards .card:nth-child(5n) {
  transform: rotate(0.85deg);
}

.card:hover {
  transform: translateY(-4px) rotate(-1deg) scale(1.01);
  filter: drop-shadow(5px 8px 0 #0a0505);
  background:
    linear-gradient(145deg, rgba(120, 16, 24, 0.55) 0%, transparent 48%),
    var(--panel-hot);
}

.card:hover::after {
  transform: translateX(8px);
  opacity: 0.9;
}

.card:active {
  transform: translateY(1px) rotate(0deg) scale(0.99);
  filter: drop-shadow(2px 2px 0 #0a0505);
  transition-duration: 0.08s;
}

.card-kicker {
  font-family: "Oswald", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 240, 234, 0.55);
}

.card-kicker.twitch {
  color: #d4b4ff;
}

.card strong {
  font-family: "Oswald", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 rgba(10, 5, 5, 0.85);
}

.card span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.info-block {
  position: relative;
  padding: 1.2rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(40, 6, 8, 0.35), transparent 40%),
    var(--panel);
  border: 2px solid #0a0505;
  border-width: 2px 2px 3px 3px;
  clip-path: polygon(
    0 0,
    calc(100% - 16px) 0,
    100% 16px,
    100% 100%,
    0 100%
  );
  filter: drop-shadow(3px 4px 0 rgba(10, 5, 5, 0.9));
  isolation: isolate;
  overflow: hidden;
}

.info-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  mix-blend-mode: overlay;
  background-image: var(--grain);
}

.info-block.feature {
  border-color: rgba(154, 18, 24, 0.55);
  background:
    linear-gradient(115deg, rgba(154, 18, 24, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(40, 6, 8, 0.35), transparent 40%),
    var(--panel);
}

.info-block.muted {
  opacity: 0.95;
}

.info-block h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.info-block p,
.small {
  color: var(--muted);
  line-height: 1.5;
}

.small {
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.mono {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  color: var(--foam);
  margin: 0.35rem 0 1rem;
}

.selectable {
  user-select: all;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.15rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--foam);
  background:
    linear-gradient(
      120deg,
      transparent 42%,
      rgba(243, 240, 234, 0.12) 42%,
      rgba(243, 240, 234, 0.12) 44%,
      transparent 44%
    ),
    linear-gradient(180deg, #8b1018 0%, #4e070b 55%, #2a0406 100%);
  border: 2px solid #0a0505;
  clip-path: var(--btn-cut);
  filter: drop-shadow(3px 4px 0 #0a0505);
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.18s ease,
    letter-spacing 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: var(--grain);
}

.btn::after {
  content: "";
  position: absolute;
  left: -20%;
  top: 0;
  bottom: 0;
  width: 40%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(243, 240, 234, 0.18),
    transparent
  );
  transform: translateX(-120%) skewX(-18deg);
  transition: transform 0.45s ease;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.social-actions {
  margin-top: 0.75rem;
}

.btn:hover {
  transform: translateY(-2px) rotate(-0.8deg);
  filter: drop-shadow(4px 6px 0 #0a0505);
  letter-spacing: 0.16em;
  background:
    linear-gradient(
      120deg,
      transparent 38%,
      rgba(145, 70, 255, 0.35) 38%,
      rgba(145, 70, 255, 0.35) 41%,
      transparent 41%
    ),
    linear-gradient(180deg, #a8141c 0%, #5c080e 55%, #320508 100%);
}

.btn:hover::after {
  transform: translateX(280%) skewX(-18deg);
}

.btn:active {
  transform: translateY(1px) rotate(0deg) scale(0.98);
  filter: drop-shadow(1px 2px 0 #0a0505);
  transition-duration: 0.07s;
}

/* Ghost = same blood stamp as primary (kept for markup compatibility) */
.btn.ghost,
.btn.ghost:hover {
  border-color: #0a0505;
  color: var(--foam);
}

.btn.ghost {
  background:
    linear-gradient(
      120deg,
      transparent 42%,
      rgba(243, 240, 234, 0.12) 42%,
      rgba(243, 240, 234, 0.12) 44%,
      transparent 44%
    ),
    linear-gradient(180deg, #8b1018 0%, #4e070b 55%, #2a0406 100%);
}

.btn.ghost:hover {
  background:
    linear-gradient(
      120deg,
      transparent 38%,
      rgba(145, 70, 255, 0.35) 38%,
      rgba(145, 70, 255, 0.35) 41%,
      transparent 41%
    ),
    linear-gradient(180deg, #a8141c 0%, #5c080e 55%, #320508 100%);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.row-actions .btn {
  flex: 0 1 auto;
}

.text-link {
  color: #c4a0ff;
  text-underline-offset: 0.2em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
  gap: 1rem;
}

.embed-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0505;
  border: 2px solid #0a0505;
  box-shadow: 5px 5px 0 #0a0505;
  overflow: hidden;
}

.embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.stack {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.stub-list {
  margin: 0.65rem 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  color: var(--foam) !important;
}

.uc-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(90, 12, 18, 0.35), transparent 50%),
    var(--panel);
  border: 2px solid #0a0505;
  border-width: 3px 2px 4px 2px;
  clip-path: var(--stamp-cut);
  filter: drop-shadow(4px 5px 0 #0a0505);
}

.uc-banner img {
  width: 6.5rem;
  height: 6.5rem;
  object-fit: cover;
  border: 2px solid #0a0505;
  box-shadow: 4px 4px 0 var(--blood-hot);
  transform: rotate(-3deg);
}

.uc-banner h2 {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.uc-banner p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.chip {
  display: inline-block;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.32rem 0.55rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(243, 240, 234, 0.28);
  background: rgba(10, 5, 5, 0.55);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

/* —— Daily collage (overview) —— */
.collage-head {
  margin-bottom: 1.25rem;
  max-width: 40rem;
}

.collage-head h1 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #0a0505;
  margin-bottom: 0.45rem;
}

.collage {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(7.5rem, auto);
  gap: 0.75rem;
}

.collage-tile {
  position: relative;
  display: grid;
  align-content: end;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  text-align: left;
  color: var(--foam);
  background:
    linear-gradient(165deg, rgba(70, 10, 14, 0.45), transparent 50%),
    var(--panel);
  border: 2px solid #0a0505;
  border-width: 2px 3px 4px 2px;
  clip-path: var(--stamp-cut);
  filter: drop-shadow(3px 4px 0 #0a0505);
  isolation: isolate;
  overflow: hidden;
  cursor: pointer;
  min-width: 0;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.2s ease;
}

.collage-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: var(--grain);
}

.collage-tile > * {
  position: relative;
  z-index: 1;
}

.collage-tile:hover {
  transform: translateY(-3px) rotate(-0.5deg);
  filter: drop-shadow(4px 7px 0 #0a0505);
}

.collage-tile.is-wide {
  grid-column: span 3;
  grid-row: span 2;
}

.collage-tile.is-tall {
  grid-column: span 2;
  grid-row: span 2;
}

.collage-tile.is-mid {
  grid-column: span 2;
}

.collage-tile.is-live {
  border-color: rgba(235, 4, 0, 0.85);
}

.collage-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.collage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.05) contrast(1.05);
}

.collage-tile.has-media {
  align-content: end;
  background: linear-gradient(to top, rgba(10, 5, 5, 0.92) 0%, rgba(10, 5, 5, 0.35) 55%, transparent 100%),
    #1a0507;
}

.collage-tile.has-media::before {
  opacity: 0.08;
}

.collage-kicker {
  font-family: "Oswald", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 240, 234, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.collage-kicker .soc-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.collage-tile strong {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.collage-tile p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collage-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 1rem 0;
}

@media (max-width: 960px) {
  .collage {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .collage-tile.is-wide {
    grid-column: span 4;
  }

  .collage-tile.is-tall,
  .collage-tile.is-mid {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(6.5rem, auto);
    gap: 0.6rem;
  }

  .collage-tile.is-wide,
  .collage-tile.is-tall,
  .collage-tile.is-mid {
    grid-column: span 2;
  }

  .collage-tile.is-tall {
    grid-row: span 1;
  }
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.75fr);
  gap: 1.35rem;
  align-items: start;
}

.about-bio {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
}

.about-gallery {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.gallery-label {
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 240, 234, 0.45);
  margin: 0 0.15rem;
}

.gallery-slot {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.gallery-slot figcaption {
  font-family: "Oswald", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 240, 234, 0.5);
  padding-left: 0.15rem;
}

.gallery-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(10, 5, 5, 0.55);
  border: 2px solid #0a0505;
  border-width: 2px 3px 4px 2px;
  clip-path: var(--stamp-cut);
  filter: drop-shadow(3px 4px 0 #0a0505);
}

.gallery-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-frame.is-empty {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 8px,
      rgba(154, 18, 24, 0.12) 8px,
      rgba(154, 18, 24, 0.12) 9px
    ),
    linear-gradient(160deg, rgba(55, 10, 14, 0.75), rgba(10, 5, 5, 0.85));
}

.gallery-frame.is-empty span {
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 240, 234, 0.45);
}

.about-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
}

.about-art {
  width: min(42vw, 16rem);
  height: auto;
  border: 3px solid #0a0505;
  box-shadow: 6px 6px 0 #0a0505;
  transform: rotate(-2.5deg);
}

.bio-rule {
  height: 2px;
  margin: 0.15rem 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(243, 240, 234, 0.45) 0 0.65rem,
    transparent 0.65rem 1rem
  );
  opacity: 0.55;
}

.bio-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.bio-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  background: rgba(10, 5, 5, 0.35);
  border-left: 3px solid var(--blood-hot);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.bio-list strong {
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foam);
}

.bio-list span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.bio-cta {
  margin-top: 0.75rem;
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd0d0;
}

.bio-tagline {
  margin-top: 0.35rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 240, 234, 0.5);
}

.info-block strong {
  color: var(--foam);
}

.bio-actions {
  margin-top: 1rem;
}

.bio-links-head {
  margin-bottom: 1rem;
}

.media-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.media-chip {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  background: rgba(10, 5, 5, 0.45);
  border: 2px solid #0a0505;
  clip-path: var(--btn-cut);
  filter: drop-shadow(2px 2px 0 #0a0505);
}

.store-banner {
  display: block;
  width: 100%;
  max-width: 36rem;
  height: auto;
  margin: 0.85rem 0 1rem;
  border: 2px solid #0a0505;
  clip-path: var(--stamp-cut);
  filter: drop-shadow(3px 4px 0 #0a0505);
}

.emote-scatter {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.65rem 0 0.35rem;
}

.watch-meta .emote-scatter {
  margin: 0;
}

.emote-scatter img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(1px 2px 0 #0a0505);
  transform: rotate(-4deg);
}

.emote-scatter img:nth-child(2) {
  transform: rotate(5deg);
}

.emote-scatter img:nth-child(3) {
  transform: rotate(-2deg);
}

.collage-head .emote-scatter {
  margin-top: 0.75rem;
}

.inline-logo {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  vertical-align: -0.2rem;
  margin-right: 0.25rem;
}

.mc-head {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
}

.mc-logo {
  flex: 0 0 auto;
  width: clamp(4.25rem, 12vw, 6rem);
  height: clamp(4.25rem, 12vw, 6rem);
  object-fit: contain;
  image-rendering: pixelated;
  border: 2px solid #0a0505;
  background: rgba(10, 5, 5, 0.45);
  clip-path: var(--btn-cut);
  filter: drop-shadow(3px 4px 0 #0a0505);
  transform: rotate(-3deg);
}

.mc-head-copy {
  min-width: 0;
}

.mc-head-copy .lede {
  margin-bottom: 0;
}

.offer-list {
  list-style: none;
  margin: 0.35rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.offer-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.45;
}

.offer-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blood-hot);
  font-weight: 700;
}

.play-meta {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.play-meta div {
  display: grid;
  gap: 0.15rem;
}

.play-meta dt {
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.play-meta dd {
  color: var(--foam);
  margin: 0;
  line-height: 1.4;
}

.board {
  list-style: none;
  margin-top: 0.35rem;
}

.board li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes live {
  0% {
    box-shadow: 0 0 0 0 rgba(235, 4, 0, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(235, 4, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(235, 4, 0, 0);
  }
}

.btn,
.nav-toggle,
.subtab {
  min-height: 2.75rem;
  touch-action: manipulation;
}

.rail-soc,
a.soc-stamp {
  touch-action: manipulation;
}

@media (max-width: 1100px) {
  :root {
    --rail-w: 14rem;
  }

  .grid.cards {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  }
}

@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .rail-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    background: rgba(10, 5, 5, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .rail-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .rail-backdrop[hidden] {
    display: none !important;
  }

  .rail {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    width: min(18rem, 88vw);
    height: 100vh;
    height: 100dvh;
    padding-top: max(1.1rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    border-right: 2px solid #0a0505;
    background: rgba(10, 5, 5, 0.96);
  }

  .rail.is-open {
    transform: translateX(0);
  }

  body.rail-open {
    overflow: hidden;
  }

  .grid.two,
  .split,
  .about-row,
  .about-layout,
  .uc-banner {
    grid-template-columns: 1fr;
  }

  .about-gallery {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .gallery-label {
    grid-column: 1 / -1;
  }

  .about-art {
    justify-self: center;
    width: min(70vw, 14rem);
  }

  .uc-banner img {
    justify-self: start;
  }

  .live-pill {
    max-width: min(16rem, 52vw);
  }

  .subnav {
    top: 4.1rem;
    margin-left: 0;
    margin-right: 0;
  }

  .content {
    padding: clamp(1rem, 3vw, 1.5rem) clamp(0.85rem, 3vw, 1.25rem) 2.5rem;
  }

  .category-shell {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .brand span {
    font-size: 1.25rem;
  }

  .brand img {
    width: 2rem;
    height: 2rem;
  }

  .panel-head {
    margin-bottom: 1.1rem;
  }

  .panel-head h1 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .mc-head {
    gap: 0.85rem;
  }

  .mc-logo {
    width: 3.75rem;
    height: 3.75rem;
  }

  .lede {
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .live-pill-title {
    max-width: 9rem;
  }

  .build-pill,
  .live-pill {
    padding: 0.4rem 0.55rem;
    letter-spacing: 0.1em;
  }

  .watch-feed,
  .feed-grid,
  .grid.cards {
    grid-template-columns: 1fr;
  }

  .grid {
    gap: 0.75rem;
  }

  .subtab {
    padding: 0.7rem 0.8rem;
    font-size: 0.78rem;
    min-height: 2.85rem;
  }

  .subtab-soc {
    min-width: 2.85rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .feed-card,
  .card,
  .info-block {
    padding: 1rem;
  }

  .feed-thumb {
    margin: -1rem -1rem 0.15rem;
  }

  .feed-card-foot,
  .feed-card-top,
  .watch-meta {
    flex-wrap: wrap;
  }

  .watch-meta .btn {
    width: 100%;
  }

  .row-actions {
    gap: 0.55rem;
  }

  .row-actions .btn {
    flex: 1 1 100%;
  }

  .rail-socials,
  .social-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .rail-soc,
  a.soc-stamp,
  .social-actions .rail-soc,
  .social-actions a.soc-stamp {
    width: 2.95rem;
    height: 2.95rem;
    min-width: 2.95rem;
    min-height: 2.95rem;
  }

  .mono {
    font-size: clamp(1rem, 4.5vw, 1.35rem);
    overflow-wrap: anywhere;
  }

  .board li {
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
  }

  .grid.cards .card:nth-child(n),
  .rail-soc:nth-child(n) {
    transform: none;
  }

  .card:hover,
  .feed-card:hover,
  .btn:hover,
  .rail-soc:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 480px) {
  :root {
    --stamp-cut: polygon(
      0 6px,
      6px 0,
      calc(100% - 10px) 0,
      100% 10px,
      100% calc(100% - 6px),
      calc(100% - 6px) 100%,
      8px 100%,
      0 calc(100% - 8px)
    );
    --btn-cut: polygon(
      0 0,
      calc(100% - 8px) 0,
      100% 8px,
      100% 100%,
      8px 100%,
      0 calc(100% - 8px)
    );
  }

  .topbar {
    gap: 0.4rem;
    padding-top: max(0.55rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0.55rem;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 0.4rem;
  }

  .brand span {
    max-width: none;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-actions {
    gap: 0.35rem;
    flex: 0 0 auto;
    min-width: 0;
  }

  .live-pill-text {
    display: none;
  }

  .live-pill,
  .build-pill {
    max-width: none;
    padding: 0.4rem 0.55rem;
    filter: drop-shadow(2px 2px 0 #0a0505);
  }

  .nav-toggle {
    padding: 0.5rem 0.65rem;
    flex-shrink: 0;
    min-height: 2.5rem;
  }

  .content {
    padding: 0.85rem 0.85rem max(1.75rem, env(safe-area-inset-bottom, 0px));
  }

  /* Room for stamp drop-shadows so iOS overflow clip doesn't chop them */
  .grid.cards,
  .feed-grid,
  .watch-feed,
  .row-actions,
  .social-actions {
    padding-right: 0.35rem;
    padding-bottom: 0.45rem;
  }

  .card,
  .feed-card,
  .info-block,
  .uc-banner,
  .btn,
  .rail-chip {
    filter: drop-shadow(2px 3px 0 #0a0505);
  }

  .rail-soc,
  a.soc-stamp {
    filter: drop-shadow(2px 2px 0 #0a0505);
  }

  .card:hover,
  .feed-card:hover,
  .btn:hover {
    filter: drop-shadow(3px 4px 0 #0a0505);
  }

  .panel-head {
    margin-bottom: 0.85rem;
    max-width: none;
  }

  .panel-head h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.25rem);
    margin-bottom: 0.35rem;
  }

  .lede {
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .eyebrow {
    margin-bottom: 0.35rem;
  }

  .subnav {
    top: 3.55rem;
    margin-bottom: 0.9rem;
  }

  .subnav::before {
    display: none;
  }

  .watch-meta {
    gap: 0.5rem;
  }

  .watch-filter-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .feed-card,
  .card,
  .info-block {
    padding: 0.9rem;
  }

  .feed-thumb {
    margin: -0.9rem -0.9rem 0.1rem;
  }

  .feed-card h3,
  .card strong {
    font-size: 1.05rem;
  }

  .rail-socials {
    gap: 0.4rem;
  }

  .rail-soc {
    width: 2.55rem;
    height: 2.55rem;
    min-width: 2.55rem;
    min-height: 2.55rem;
  }

  .rail-soc .soc-icon {
    width: 1.05rem;
    height: 1.05rem;
  }

  .uc-banner {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1rem;
  }

  .uc-banner img {
    width: 5.25rem;
    height: 5.25rem;
  }
}

@media (max-width: 360px) {
  .brand span {
    display: none;
  }

  .btn {
    letter-spacing: 0.08em;
    padding: 0.7rem 0.85rem;
  }

  .rail-soc,
  a.soc-stamp {
    width: 2.45rem;
    height: 2.45rem;
    min-width: 2.45rem;
    min-height: 2.45rem;
  }
}

@media (min-width: 1400px) {
  .content {
    padding-left: clamp(1.5rem, 4vw, 3rem);
    padding-right: clamp(1.5rem, 4vw, 3rem);
  }

  .grid.cards {
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  }

  .watch-feed {
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .rail {
    width: min(16rem, 70vw);
  }

  .subnav {
    top: 3.25rem;
  }

  .panel-head h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot.live,
  .live-pill,
  .subtab.is-active::after {
    animation: none;
  }

  .card,
  .btn,
  .feed-card,
  .rail-chip,
  .rail-soc,
  .rail-btn,
  .rail,
  .rail-backdrop,
  .feed-thumb img {
    transition: none;
  }

  .grid.cards .card:nth-child(n),
  .rail-soc:nth-child(n) {
    transform: none;
  }
}

.se-boards-label { margin-bottom: 0.85rem; }
.se-hook { margin-top: 1rem; }
