body.share-view {
  background:
    radial-gradient(circle at 12% 18%, rgba(246, 182, 75, 0.2), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(98, 217, 248, 0.18), transparent 22%),
    linear-gradient(180deg, #0d1830 0%, #08111f 46%, #040913 100%);
}

body.share-view::before {
  top: 8%;
  right: 8%;
  width: 20rem;
  height: 20rem;
  background: rgba(98, 217, 248, 0.12);
}

body.share-view::after {
  bottom: 10%;
  left: 6%;
  width: 18rem;
  height: 18rem;
  background: rgba(246, 182, 75, 0.1);
}

.share-page-shell {
  width: min(1320px, calc(100% - 2rem));
}

body.share-view .share-page-shell {
  display: block;
}

body.share-view .share-page-shell > * {
  min-width: 0;
}

.share-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.72rem 0.85rem;
  margin-bottom: 0.9rem;
}

.share-topbar-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  align-items: center;
}

.share-status-shell {
  padding: 1.2rem;
  margin-bottom: 0.9rem;
}

.share-status-card {
  display: grid;
  gap: 0.4rem;
}

.share-status-card h1,
.share-status-card h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.08;
}

.share-status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.share-status-card.is-warning h2,
.share-status-card.is-danger h2 {
  color: #fff2e1;
}

.share-shell {
  display: grid;
  gap: 0.8rem;
}

.share-hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  padding: 0.82rem 0.95rem;
}

.share-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(98, 217, 248, 0.08), transparent 42%),
    linear-gradient(320deg, rgba(246, 182, 75, 0.1), transparent 50%);
  pointer-events: none;
}

.share-hero-panel > * {
  position: relative;
  z-index: 1;
}

.share-hero-copy {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.share-hero-copy h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Georgia", serif;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1;
  max-width: 22ch;
}

.share-hero-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  max-width: 60ch;
}

.share-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.share-stage-card,
.share-insight-panel {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(8, 16, 30, 0.76);
}

.share-stage-card {
  position: relative;
  overflow: hidden;
}

.share-stage-card-board {
  gap: 0.85rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 128, 182, 0.18), transparent 22%),
    radial-gradient(circle at 20% 78%, rgba(98, 217, 248, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(124, 53, 150, 0.22), rgba(10, 18, 34, 0.92) 42%, rgba(6, 14, 28, 0.98) 100%);
}

.share-stage-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 92%);
  pointer-events: none;
}

.share-stage-card > * {
  position: relative;
  z-index: 1;
}

.share-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.share-section-head h2,
.share-insight-panel h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.1;
}

.share-section-head p,
.share-insight-panel > p {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: var(--type-body-sm);
  line-height: 1.45;
  max-width: 58ch;
}

.share-board-stage {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 0.95rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 151, 198, 0.22), transparent 16%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(18, 27, 52, 0.86), rgba(8, 14, 28, 0.92));
  overflow: hidden;
}

.share-board-stage::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: 50%;
  height: 10px;
  background: linear-gradient(90deg, rgba(98, 217, 248, 0), rgba(255, 146, 200, 0.9), rgba(246, 182, 75, 0));
  transform: translateY(-50%);
  filter: blur(18px);
  opacity: 0.72;
  pointer-events: none;
}

.share-stage-side {
  display: grid;
  gap: 0.7rem;
}

.share-stage-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.share-stage-side-head .eyebrow {
  margin: 0;
}

.share-stage-hero-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.share-stage-hero-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-height: 220px;
  padding: 0.62rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015) 24%, rgba(4, 10, 22, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.share-stage-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, transparent 58%, rgba(7, 11, 24, 0.9));
  pointer-events: none;
}

.share-stage-hero-card.is-enemy {
  background:
    linear-gradient(180deg, rgba(245, 103, 160, 0.22), rgba(255, 255, 255, 0.02) 22%, rgba(4, 10, 22, 0.92) 100%);
}

.share-stage-hero-card.is-ally {
  background:
    linear-gradient(180deg, rgba(246, 182, 75, 0.22), rgba(255, 255, 255, 0.02) 22%, rgba(4, 10, 22, 0.92) 100%);
}

.share-stage-hero-card.is-empty {
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(98, 217, 248, 0.08), rgba(255, 255, 255, 0.015) 20%, rgba(4, 10, 22, 0.82) 100%);
}

.share-stage-hero-top,
.share-stage-hero-copy {
  position: relative;
  z-index: 1;
}

.share-stage-hero-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.4rem;
}

.share-stage-slot-tag {
  padding: 0.28rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(245, 239, 228, 0.9);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.share-stage-hero-portrait {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.share-stage-hero-portrait .hero-avatar {
  display: block;
  width: 100%;
  aspect-ratio: 0.8;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.28);
}

.share-stage-hero-portrait .hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-stage-hero-portrait .hero-avatar.is-fallback {
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  font-weight: 800;
}

.share-stage-hero-copy {
  display: grid;
  gap: 0.14rem;
}

.share-stage-hero-copy strong {
  font-size: 1rem;
  line-height: 1.05;
}

.share-stage-hero-copy span {
  color: rgba(233, 239, 248, 0.78);
  font-size: 0.76rem;
  line-height: 1.32;
}

.share-versus-badge {
  position: relative;
  justify-self: center;
  z-index: 1;
  padding: 0.2rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(255, 160, 206, 0.18), rgba(246, 182, 75, 0.12));
  color: #fff5dc;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 32px rgba(255, 92, 173, 0.24);
}

.share-stage-utility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

.share-stage-side-summary {
  padding: 0.2rem 0 0;
}

.share-stage-hud {
  display: grid;
  grid-template-columns: minmax(148px, 190px) minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.7rem 0.78rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 14, 28, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.share-stage-side-summary.is-ally .share-stage-hud {
  background:
    linear-gradient(135deg, rgba(246, 182, 75, 0.16), rgba(255, 255, 255, 0.03) 42%, rgba(8, 14, 28, 0.72)),
    rgba(8, 14, 28, 0.62);
}

.share-stage-side-summary.is-enemy .share-stage-hud {
  background:
    linear-gradient(135deg, rgba(98, 217, 248, 0.14), rgba(255, 255, 255, 0.03) 42%, rgba(8, 14, 28, 0.72)),
    rgba(8, 14, 28, 0.62);
}

.share-stage-winrate {
  display: grid;
  gap: 0.22rem;
  align-content: start;
}

.share-stage-winrate-label {
  color: rgba(220, 236, 255, 0.66);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-stage-winrate strong {
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  line-height: 0.92;
  color: #fff6e7;
}

.share-stage-winrate-meter {
  position: relative;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.share-stage-winrate-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f6b64b 0%, #ffdb95 52%, #fff1c7 100%);
  box-shadow: 0 0 18px rgba(246, 182, 75, 0.42);
}

.share-stage-side-summary.is-enemy .share-stage-winrate-meter span {
  background: linear-gradient(90deg, #62d9f8 0%, #9ce8fb 52%, #d9fbff 100%);
  box-shadow: 0 0 18px rgba(98, 217, 248, 0.34);
}

.share-stage-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.share-stage-stat-tile {
  display: grid;
  gap: 0.18rem;
  align-content: center;
  min-height: 60px;
  padding: 0.52rem 0.56rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.share-stage-stat-tile span {
  color: rgba(220, 236, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.share-stage-stat-tile strong {
  font-size: 1rem;
  line-height: 1;
  color: var(--text);
}

.share-stage-hud.is-pick {
  grid-template-columns: minmax(0, 1fr);
}

.share-stage-pick-callout {
  display: grid;
  gap: 0.18rem;
}

.share-stage-pick-callout strong {
  font-size: 1.22rem;
  line-height: 1.02;
}

.share-stage-pick-callout em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

.share-stage-pick-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.share-stage-reason-pill {
  padding: 0.34rem 0.52rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 0.76rem;
}

.share-stage-bottom-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  padding-top: 0.2rem;
}

.share-stage-chip-group {
  display: grid;
  gap: 0.6rem;
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 12, 23, 0.42);
}

.share-stage-chip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.share-stage-chip-head strong {
  font-size: 0.92rem;
  line-height: 1.08;
}

.share-stage-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.share-stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.share-stage-chip .hero-avatar {
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 11px;
}

.share-stage-chip strong {
  font-size: 0.82rem;
  line-height: 1.05;
}

.share-board-panel,
.share-strip-panel,
.share-spotlight-card,
.share-mini-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 14, 26, 0.56);
}

.share-strip-panel.is-full {
  grid-column: 1 / -1;
}

.share-board-head,
.share-strip-head,
.share-card-head,
.share-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.7rem;
}

.share-board-head h3,
.share-strip-head h3,
.share-card-head h3,
.share-mini-head h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.08;
}

.share-board-head p,
.share-strip-head p,
.share-card-head p,
.share-mini-head p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.share-lane-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.share-lane-card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-height: 138px;
  padding: 0.68rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(8, 16, 30, 0.68);
}

.share-lane-card.is-open {
  background:
    linear-gradient(180deg, rgba(98, 217, 248, 0.04), transparent 65%),
    rgba(8, 16, 30, 0.52);
  border-style: dashed;
}

.share-lane-card .lane-label {
  width: fit-content;
}

.share-lane-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: center;
}

.share-lane-hero .hero-avatar {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 16px;
}

.share-lane-copy {
  display: grid;
  gap: 0.16rem;
}

.share-lane-copy strong {
  font-size: 0.92rem;
  line-height: 1.08;
}

.share-lane-copy span {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.share-strip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.share-strip-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.52rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.share-strip-chip .hero-avatar {
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 11px;
}

.share-strip-chip strong {
  font-size: 0.82rem;
  line-height: 1.05;
}

.share-strip-empty {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body-sm);
}

.share-insight-stack {
  display: grid;
  gap: 0.7rem;
}

.share-verdict-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.share-insight-cards {
  display: grid;
  gap: 0.6rem;
}

.share-spotlight-card {
  background:
    linear-gradient(135deg, rgba(246, 182, 75, 0.08), rgba(98, 217, 248, 0.05) 65%, transparent 100%),
    rgba(7, 14, 26, 0.62);
}

.share-spotlight-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.share-lineup-grid {
  display: grid;
  gap: 0.5rem;
}

.share-lineup-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.58rem;
  align-items: center;
  padding: 0.52rem 0.58rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.share-lineup-chip .hero-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 13px;
}

.share-lineup-copy {
  display: grid;
  gap: 0.08rem;
}

.share-lineup-copy strong {
  font-size: 0.86rem;
  line-height: 1.08;
}

.share-lineup-copy span {
  color: var(--muted);
  font-size: 0.73rem;
}

.share-mini-card {
  align-content: start;
}

.share-mini-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: center;
}

.share-mini-hero .hero-avatar {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 15px;
}

.share-mini-copy {
  display: grid;
  gap: 0.14rem;
}

.share-mini-copy strong {
  font-size: 0.9rem;
  line-height: 1.08;
}

.share-mini-copy span {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.share-reason-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.share-reason-chip {
  padding: 0.34rem 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 0.76rem;
}

.share-footer {
  align-items: start;
  margin-top: 0.95rem;
}

@media (max-width: 1280px) {
  .share-stage-hero-row {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  }

  .share-stage-hud {
    grid-template-columns: 1fr;
  }

  .share-stage-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  }
}

@media (min-width: 1280px) {
  body.share-view .share-page-shell {
    display: block;
    grid-template-columns: none;
    gap: 0;
  }
}

@media (max-width: 900px) {
  .share-topbar {
    grid-template-columns: 1fr;
  }

  .share-topbar-tools {
    justify-content: flex-start;
  }

  .share-stage-hero-row {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 0.6rem;
  }

  .share-versus-badge {
    font-size: 1.3rem;
  }

  .share-stage-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .share-page-shell {
    width: min(100%, calc(100% - 1rem));
    padding-bottom: 1rem;
  }

  .share-topbar {
    padding: 0.72rem;
  }

  .share-topbar-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .share-topbar-tools .action-link,
  .share-topbar-tools .action-button {
    width: 100%;
    justify-content: center;
  }

  .share-hero-panel,
  .share-stage-card,
  .share-insight-panel,
  .share-status-shell {
    padding: 0.9rem;
  }

  .share-hero-copy h1 {
    max-width: none;
  }

  .share-stage-hero-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-stage-hero-card {
    min-height: 196px;
  }

  .share-stage-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
