:root {
  --paper: #f7f8f5;
  --ink: #101318;
  --muted: #68717d;
  --line: #dce2dc;
  --panel: #ffffff;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --mint: #5eead4;
  --orange: #f97316;
  --sky: #0284c7;
  --lime: #84cc16;
  --shadow: 0 18px 45px rgba(16, 19, 24, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

body.cart-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(16, 19, 24, 0.1);
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.brand-text {
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-weight: 750;
}

.nav-links a,
.bag-button,
.button,
.icon-button {
  min-height: 44px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
}

.bag-button,
.button,
.icon-button,
.mini-product,
.quantity-row button {
  cursor: pointer;
  border: 0;
}

.bag-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 92px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 850;
}

.bag-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: #ffffff;
  font-size: 0.78rem;
}

main {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
}

.stream-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: start;
  padding: 28px 0 36px;
}

.stream-column {
  min-width: 0;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 760;
}

.status-pill,
.mini-label,
.product-media span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.status-pill {
  background: var(--orange);
  color: #ffffff;
}

.mini-label {
  width: fit-content;
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal-dark);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 7vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.stream-shell {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #0b1220;
  box-shadow: var(--shadow);
}

.stream-shell img,
.stream-shell iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.stream-shell::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(16, 19, 24, 0), rgba(16, 19, 24, 0.24));
}

.play-chip {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 17px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(16, 19, 24, 0.22);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--orange);
}

.stream-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 0;
}

.stream-meta p {
  color: var(--muted);
  font-weight: 760;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.bag-button:hover,
.mini-product:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.button.primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(16, 19, 24, 0.18);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.side-stack {
  display: grid;
  gap: 14px;
}

.info-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.panel-heading,
.metric-row,
.section-header,
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading {
  margin-bottom: 16px;
}

.panel-heading strong {
  text-align: right;
}

.metric-row {
  padding: 15px;
  border-radius: 8px;
  background: #101318;
  color: #ffffff;
  font-weight: 850;
}

.metric-row span {
  color: var(--mint);
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr);
  background: #101318;
  color: #ffffff;
}

.chat-panel .mini-label {
  background: rgba(94, 234, 212, 0.16);
  color: var(--mint);
}

.chat-frame {
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.chat-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.chat-fallback,
.chat-frame > p {
  display: grid;
  gap: 10px;
  height: 100%;
  min-height: 360px;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  font-weight: 760;
  text-align: center;
}

.chat-fallback a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: underline;
}

.mini-product-list {
  display: grid;
  gap: 10px;
}

.mini-product {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.mini-product img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.mini-product span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 820;
}

.mini-product strong {
  color: var(--teal-dark);
}

.merch-section,
.signup-band {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.section-header {
  margin-bottom: 22px;
}

.section-header > div {
  display: grid;
  gap: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eef2f7;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media span {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #ffffff;
  color: var(--ink);
}

.product-copy {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.product-copy > div {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.product-copy p {
  color: var(--teal-dark);
  font-weight: 900;
}

select,
input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

select {
  padding: 0 12px;
}

input {
  padding: 0 14px;
}

textarea {
  width: 100%;
  min-height: 88px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  resize: vertical;
}

.signup-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 24px;
  align-items: center;
  padding-bottom: 58px;
}

.signup-band > div {
  display: grid;
  gap: 8px;
}

.signup-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(16, 19, 24, 0.42);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(520px, 100%);
  height: 100%;
  background: var(--panel);
  box-shadow: -18px 0 46px rgba(16, 19, 24, 0.2);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.cart-drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.cart-header > div {
  display: grid;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #eef2f7;
  color: var(--ink);
  font-weight: 900;
}

.cart-body {
  display: grid;
  align-content: start;
  overflow: auto;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px 22px 10px;
}

.empty-cart {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 760;
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-item img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 720;
}

.quantity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quantity-row button,
.quantity-row span {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #eef2f7;
  color: var(--ink);
  font-weight: 850;
}

.quantity-row button:last-child {
  padding: 0 12px;
  background: rgba(249, 115, 22, 0.12);
  color: #9a3412;
}

.cart-footer {
  display: grid;
  gap: 12px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
}

.checkout-form {
  display: grid;
  gap: 12px;
  padding: 8px 22px 20px;
}

.checkout-heading {
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 820;
}

.checkout-form input,
.checkout-form textarea {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}

.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout-note {
  padding: 11px 12px;
  border-radius: 8px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.checkout-note.is-error {
  background: rgba(249, 115, 22, 0.12);
  color: #9a3412;
}

.checkout-note.is-success {
  background: rgba(15, 118, 110, 0.12);
  color: var(--teal-dark);
}

.total-row {
  font-size: 1.08rem;
  font-weight: 900;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 760;
}

.footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .stream-grid,
  .signup-band {
    grid-template-columns: 1fr;
  }

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

  .side-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drop-panel {
    grid-column: span 2;
  }
}

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

  .nav-links {
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  main,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 3rem;
  }

  .stream-grid {
    padding-top: 20px;
  }

  .stream-shell {
    min-height: 214px;
  }

  .stream-meta,
  .section-header,
  .panel-heading,
  .metric-row {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-heading strong {
    text-align: left;
  }

  .side-stack,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .drop-panel {
    grid-column: auto;
  }

  .checkout-row {
    grid-template-columns: 1fr;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }
}
