/* ============================================================
   LEYOO — "KARTONOWY" THEME
   Cardboard box aesthetic: corrugated texture, packing tape,
   folded flaps, rubber-stamp buttons, warehouse ambient light.
   ============================================================ */

:root {
  --cb-base:    #c3a06e;
  --cb-light:   #ddc194;
  --cb-lighter: #ecd9b3;
  --cb-mid:     #a9855a;
  --cb-shadow:  #7c5c37;
  --cb-deep:    #4a3620;
  --ink:        #2b1c0f;
  --paper:      #f0e3c4;
  --stamp-green:#3f6b4a;
  --stamp-green-dim: #335b3d;
  --stamp-red:  #8c3b2d;
  --tape:       rgba(214, 186, 138, 0.62);
  --tape-line:  rgba(255, 255, 255, 0.35);
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: 'Special Elite', 'Courier New', monospace;
  background-color: var(--cb-base);
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, .stencil {
  font-family: 'Stardos Stencil', 'Arial Black', sans-serif;
  letter-spacing: 0.5px;
}

.marker {
  font-family: 'Kalam', cursive;
}

/* ---------- Layered cardboard background ---------- */

.cardboard-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--cb-base);
  background-image:
    /* corrugation ridges */
    repeating-linear-gradient(0deg,
      rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 2px,
      rgba(255,255,255,0.04) 2px, rgba(255,255,255,0.04) 4px,
      transparent 4px, transparent 8px),
    /* warm uneven lighting */
    radial-gradient(ellipse 70% 50% at 15% -10%, rgba(255,246,222,0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 110%, rgba(0,0,0,0.28), transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 40%, rgba(255,255,255,0.08), transparent 60%);
  background-size: 100% 8px, 100% 100%, 100% 100%, 100% 100%;
}

/* fiber noise */
.cardboard-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* slow warehouse spotlight sweep — the "dynamic tło" */
.cardboard-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 30%, rgba(255,250,225,0.22), transparent 40%);
  animation: sweep 22s ease-in-out infinite alternate;
}

@keyframes sweep {
  0%   { transform: translate(-8%, -6%) scale(1); }
  50%  { transform: translate(10%, 8%) scale(1.15); }
  100% { transform: translate(-4%, 10%) scale(1); }
}

/* drifting faint box outlines for ambient motion */
.drift-box {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  width: 90px;
  height: 90px;
  border: 3px solid var(--cb-deep);
  border-radius: 4px;
}
.drift-box::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-top: 3px solid var(--cb-deep);
  transform: rotate(-4deg);
}
.drift-box.d1 { top: 8%;  left: 4%;  animation: drift1 40s ease-in-out infinite; }
.drift-box.d2 { top: 60%; left: 88%; width: 60px; height: 60px; animation: drift2 55s ease-in-out infinite; }
.drift-box.d3 { top: 80%; left: 12%; width: 120px; height: 120px; animation: drift3 65s ease-in-out infinite; }
.drift-box.d4 { top: 20%; left: 92%; width: 50px; height: 50px; animation: drift1 48s ease-in-out infinite reverse; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(30px,40px) rotate(8deg); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-40px,-25px) rotate(-10deg); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-20px,30px) rotate(6deg); } }

/* ---------- Page container ---------- */

.page {
  position: relative;
  z-index: 1;
}

/* ---------- Header: shipping label plate ---------- */

.shipping-label {
  background: linear-gradient(180deg, var(--paper), #e6d5a9);
  border: 3px dashed var(--cb-deep);
  border-radius: 6px;
  box-shadow: 5px 7px 0 var(--cb-deep), 5px 7px 14px rgba(0,0,0,0.35);
  padding: 1.4rem 1.6rem;
  position: relative;
}

.shipping-label .eyebrow {
  font-family: 'Kalam', cursive;
  font-size: 0.8rem;
  color: var(--cb-shadow);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo-frame {
  width: 96px;
  height: 96px;
  border: 3px solid var(--cb-deep);
  border-radius: 6px;
  background: var(--cb-deep);
  padding: 6px;
  flex-shrink: 0;
  box-shadow: 3px 4px 0 rgba(0,0,0,0.3);
  transform: rotate(-2deg);
}
.logo-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }

/* ---------- Social tags ---------- */

.tag-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  scrollbar-width: thin;
}
.tag-row::-webkit-scrollbar { height: 6px; }
.tag-row::-webkit-scrollbar-thumb { background: var(--cb-shadow); border-radius: 3px; }

.hangtag {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  gap: 0.5rem;
  padding: 0.55rem 1rem 0.55rem 1.6rem;
  background: linear-gradient(180deg, var(--cb-light), var(--cb-base));
  border: 2px solid var(--cb-deep);
  border-radius: 3px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 3px 4px 0 var(--cb-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hangtag:nth-child(odd)  { transform: rotate(-1.4deg); }
.hangtag:nth-child(even) { transform: rotate(1.2deg); }
.hangtag:hover {
  transform: translateY(-3px) rotate(0deg);
  box-shadow: 3px 6px 0 var(--cb-shadow), 0 8px 16px rgba(0,0,0,0.3);
}
.hangtag::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cb-base);
  border: 2px solid var(--cb-deep);
}
.icon-chip {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--cb-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-chip img { width: 13px; height: 13px; object-fit: contain; }
.hangtag i { color: var(--paper); font-size: 0.95rem; }

/* ---------- Tape divider ---------- */

.tape-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3rem 0 2.4rem;
}
.tape-divider .strip {
  flex: 1;
  height: 30px;
  background: var(--tape);
  background-image: repeating-linear-gradient(50deg, var(--tape-line) 0 3px, transparent 3px 9px);
  border-top: 1px solid rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.tape-divider .label {
  margin: 0 1rem;
  font-family: 'Stardos Stencil', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  padding: 0.4rem 0.9rem;
  transform: rotate(-1.5deg);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.tape-divider .label span { color: var(--stamp-green); }

/* ---------- Promo cards (cardboard boxes) ---------- */

.box-card {
  position: relative;
  background: linear-gradient(180deg, var(--cb-light), var(--cb-base));
  border: 2px solid var(--cb-deep);
  border-radius: 4px;
  padding: 1.3rem 1.3rem 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 5px 7px 0 var(--cb-deep), 5px 7px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.box-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 6px 10px 0 var(--cb-deep), 8px 16px 22px rgba(0,0,0,0.4);
}

/* folded corner flap */
.box-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 30px;
  background: linear-gradient(135deg, var(--cb-lighter), var(--cb-mid));
  clip-path: polygon(0 0, 100% 0, 0 100%);
  border-right: 1px solid rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(0,0,0,0.2);
}

/* tape seal holding brand icon */
.box-card .tape-seal {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  width: 84px;
  height: 24px;
  background: var(--tape);
  background-image: repeating-linear-gradient(45deg, var(--tape-line) 0 3px, transparent 3px 8px);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.box-card .brand-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.box-card .brand-row img {
  width: 30px; height: 30px;
  border-radius: 4px;
  border: 2px solid var(--cb-deep);
}
.box-card h3 { margin: 0; font-size: 1.15rem; color: var(--ink); }
.box-card p.desc {
  color: var(--cb-deep);
  font-size: 0.92rem;
  margin: 0.6rem 0 0.9rem;
  line-height: 1.4;
}
.box-card .code-note {
  font-family: 'Kalam', cursive;
  font-size: 0.78rem;
  color: var(--cb-shadow);
  margin-top: 0.6rem;
}

/* ---------- Stamp buttons ---------- */

.btn-stamp {
  display: inline-block;
  font-family: 'Stardos Stencil', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  color: var(--stamp-green);
  background: rgba(63, 107, 74, 0.07);
  border: 3px double var(--stamp-green);
  padding: 0.5rem 1.1rem;
  border-radius: 3px;
  text-decoration: none;
  transform: rotate(-2deg);
  filter: contrast(1.1);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-stamp:hover {
  transform: rotate(0deg) scale(1.05);
  background: var(--stamp-green);
  color: var(--paper);
}

.btn-stamp.small {
  font-size: 0.72rem;
  padding: 0.35rem 0.8rem;
  transform: rotate(-1.5deg);
}

/* ---------- Stream frames (torn cardboard peephole) ---------- */

.stream-frame {
  position: relative;
  background: linear-gradient(180deg, var(--cb-light), var(--cb-mid));
  padding: 20px;
  clip-path: polygon(1% 4%, 14% 0%, 29% 3%, 46% 0%, 62% 3%, 77% 0%, 94% 3%, 100% 15%,
                      98% 30%, 100% 47%, 97% 64%, 100% 79%, 98% 95%, 86% 100%, 71% 97%,
                      56% 100%, 41% 97%, 26% 100%, 11% 97%, 0% 85%, 3% 70%, 0% 55%,
                      2% 40%, 0% 25%, 3% 10%);
  box-shadow: 6px 8px 18px rgba(0,0,0,0.35);
}

.stream-frame .frame-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  font-family: 'Stardos Stencil', sans-serif;
  font-size: 1.05rem;
  color: var(--ink);
}

.stream-frame .screen {
  background: #14100a;
  border: 3px solid var(--cb-deep);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}

.stream-frame .screen .aspect {
  aspect-ratio: 16/9;
  width: 100%;
  position: relative;
}
.stream-frame .screen .aspect iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Warning stamp strip ---------- */

.warn-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.6rem 0 1.2rem;
}
.warn-strip a {
  font-family: 'Stardos Stencil', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--stamp-red);
  border: 2px solid var(--stamp-red);
  border-radius: 3px;
  padding: 0.45rem 1rem;
  transform: rotate(-1.5deg);
  text-decoration: none;
  filter: contrast(1.1);
  transition: transform 0.15s ease;
}
.warn-strip a:hover { transform: rotate(0deg) scale(1.04); }

.legal-note {
  font-size: 0.75rem;
  color: var(--cb-deep);
  text-align: center;
  line-height: 1.5;
}

/* ---------- Footer: sealed flap ---------- */

.footer-flap {
  position: relative;
  margin-top: 3rem;
  padding-top: 1.6rem;
  text-align: center;
  border-top: 3px solid var(--cb-deep);
}
.footer-flap::before,
.footer-flap::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 90px;
  height: 26px;
  background: var(--tape);
  background-image: repeating-linear-gradient(45deg, var(--tape-line) 0 3px, transparent 3px 8px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.footer-flap::before { left: 50%; transform: translateX(-50%) rotate(-40deg); }
.footer-flap::after  { left: 50%; transform: translateX(-50%) rotate(40deg); }

.footer-flap p {
  font-family: 'Kalam', cursive;
  color: var(--cb-deep);
  font-size: 0.95rem;
}

.live-status {
  margin-top: 0.5rem;
  font-family: 'Kalam', cursive;
  font-size: 0.9rem;
  color: var(--cb-shadow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.live-status a { color: var(--ink); text-decoration: none; }
.live-status a:hover { text-decoration: underline; }
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.live-dot.off { background: var(--cb-mid); }
.live-dot.on {
  background: var(--stamp-red, #b23a3a);
  box-shadow: 0 0 0 0 rgba(178,58,58,0.6);
  animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(178,58,58,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(178,58,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(178,58,58,0); }
}

/* ---------- Dropdown menu ---------- */

.menu-toggle {
  position: absolute;
  top: -14px;
  right: -10px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Stardos Stencil', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--cb-deep);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  box-shadow: 3px 4px 0 var(--cb-shadow);
  transform: rotate(-2deg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  z-index: 20;
}
.menu-toggle:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 3px 6px 0 var(--cb-shadow); }
.menu-toggle[aria-expanded="true"] { background: var(--stamp-green); }

.dropdown-menu {
  position: absolute;
  top: 44px;
  right: -10px;
  width: 280px;
  max-width: calc(100vw - 2rem);
  background: linear-gradient(180deg, var(--paper), #e6d5a9);
  border: 3px dashed var(--cb-deep);
  border-radius: 6px;
  box-shadow: 5px 7px 0 var(--cb-deep), 5px 7px 18px rgba(0,0,0,0.4);
  padding: 1rem 1.1rem;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-close {
  display: none;
  position: sticky;
  top: 0;
  float: right;
  background: var(--cb-deep);
  color: var(--paper);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 0.6rem;
  z-index: 2;
}

.menu-section { margin-bottom: 1rem; }
.menu-section:last-child { margin-bottom: 0; }
.menu-section h4 {
  font-family: 'Stardos Stencil', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--stamp-green);
  margin: 0 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed var(--cb-mid);
}
.menu-section ul { list-style: none; margin: 0; padding: 0; }
.menu-section li { margin-bottom: 0.35rem; }
.menu-section a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.3rem 0.4rem;
  border-radius: 3px;
  transition: background 0.15s ease;
}
.menu-section a:hover { background: rgba(63,107,74,0.12); }
.menu-section a i { width: 16px; text-align: center; color: var(--cb-shadow); }
.menu-section .icon-chip { width: 18px; height: 18px; margin-right: 0.1rem; }
.menu-section .icon-chip img { width: 11px; height: 11px; }
.menu-code {
  margin-left: auto;
  font-family: 'Kalam', cursive;
  font-size: 0.72rem;
  color: var(--stamp-green);
  background: rgba(63,107,74,0.1);
  border: 1px solid var(--stamp-green);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
}
.menu-hint {
  font-family: 'Kalam', cursive;
  font-size: 0.8rem;
  color: var(--cb-shadow);
  margin: 0 0 0.5rem;
}
.menu-next-stream {
  font-family: 'Kalam', cursive;
  font-size: 0.82rem;
  color: var(--stamp-green);
  background: rgba(63,107,74,0.1);
  border: 1px dashed var(--stamp-green);
  border-radius: 3px;
  padding: 0.4rem 0.5rem;
  margin: 0 0 0.6rem;
  line-height: 1.35;
}

/* ---------- Calendar section ---------- */

.calendar-card {
  position: relative;
  background: linear-gradient(180deg, var(--cb-light), var(--cb-base));
  border: 2px solid var(--cb-deep);
  border-radius: 4px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 5px 7px 0 var(--cb-deep), 5px 7px 14px rgba(0,0,0,0.3);
}

.calendar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.calendar-head h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--ink);
}
.cal-nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.cal-nav-btn {
  background: var(--cb-deep);
  color: var(--paper);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.cal-nav-btn:hover { background: var(--stamp-green); }
.cal-month-label {
  font-size: 0.95rem;
  color: var(--cb-deep);
  min-width: 130px;
  text-align: center;
  display: inline-block;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 1.4rem;
}
.cal-weekday {
  text-align: center;
  font-family: 'Stardos Stencil', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--cb-shadow);
  padding-bottom: 0.3rem;
}
.cal-cell {
  position: relative;
  aspect-ratio: 1;
  background: var(--paper);
  border: 1.5px solid var(--cb-mid);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--ink);
}
.cal-cell.empty { background: transparent; border: none; }
.cal-cell.today { border-color: var(--stamp-green); border-width: 2px; font-weight: 700; }
.cal-cell.has-event { background: rgba(63,107,74,0.18); border-color: var(--stamp-green); cursor: help; }
.cal-daynum { position: relative; z-index: 1; }
.cal-dot {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stamp-green);
}
.cal-config-note {
  grid-column: 1 / -1;
  font-family: 'Kalam', cursive;
  font-size: 0.85rem;
  color: var(--stamp-red);
  text-align: center;
  padding: 1rem;
}

.notify-box {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--cb-mid);
  text-align: center;
}
.notify-text {
  font-family: 'Kalam', cursive;
  font-size: 0.88rem;
  color: var(--cb-deep);
  margin: 0 0 0.7rem;
}

.notify-faq {
  margin-top: 1rem;
  text-align: left;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.notify-faq summary {
  cursor: pointer;
  font-family: 'Kalam', cursive;
  font-size: 0.82rem;
  color: var(--cb-shadow);
  text-align: center;
  padding: 0.4rem;
  list-style: none;
}
.notify-faq summary::-webkit-details-marker { display: none; }
.notify-faq summary:hover { color: var(--stamp-green); }
.notify-faq[open] summary { margin-bottom: 0.6rem; color: var(--stamp-green); }

.notify-faq-item,
.notify-faq-body {
  background: var(--paper);
  border: 1.5px dashed var(--cb-mid);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.5;
}
.notify-faq-item:last-child,
.notify-faq-body:last-child { margin-bottom: 0; }
.notify-faq-item p,
.notify-faq-body p { margin: 0.3rem 0 0; }
.notify-faq-heading {
  font-family: 'Stardos Stencil', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: var(--stamp-green) !important;
  margin: 0.9rem 0 0.2rem !important;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--cb-mid);
}
.notify-faq-body p.notify-faq-heading:first-child {
  margin-top: 0 !important;
  padding-top: 0;
  border-top: none;
}
.notify-faq-item ol,
.notify-faq-item ul,
.notify-faq-body ol,
.notify-faq-body ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.notify-faq-item li,
.notify-faq-body li { margin-bottom: 0.2rem; }
.notify-faq-item strong,
.notify-faq-body strong { color: var(--stamp-green); }

.stream-list-wrap h4 {
  font-size: 1rem;
  color: var(--cb-deep);
  margin: 0 0 0.7rem;
}
.stream-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.stream-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  background: var(--paper);
  border: 1.5px solid var(--cb-mid);
  border-radius: 4px;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
}
.stream-date {
  font-family: 'Stardos Stencil', sans-serif;
  color: var(--stamp-green);
  text-transform: capitalize;
}
.stream-time {
  font-family: 'Kalam', cursive;
  color: var(--cb-shadow);
}
.stream-title { color: var(--ink); }
.stream-list-empty {
  font-family: 'Kalam', cursive;
  color: var(--cb-shadow);
  text-align: center;
  justify-content: center;
}

/* ---------- Subpages (Twitch/Kick standalone) ---------- */

.back-link { display: inline-block; }

.stream-layout {
  display: flex;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem auto 0;
  align-items: flex-start;
  flex-wrap: wrap;
}
.stream-layout .stream-frame.full-page {
  flex: 2 1 480px;
  margin: 0;
  max-width: none;
}
.chat-panel {
  position: relative;
  flex: 1 1 300px;
  max-width: 360px;
  background: linear-gradient(180deg, var(--cb-light), var(--cb-mid));
  padding: 18px;
  border: 3px dashed var(--cb-deep);
  border-radius: 10px;
  box-shadow: 6px 8px 18px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
}
.chat-panel .frame-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  font-family: 'Stardos Stencil', sans-serif;
  font-size: 1.05rem;
  color: var(--ink);
}
.chat-frame {
  width: 100%;
  flex: 1;
  min-height: 460px;
  border: 3px solid var(--cb-deep);
  border-radius: 6px;
  background: #14100a;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}
.chat-fallback {
  font-family: 'Kalam', cursive;
  font-size: 0.85rem;
  color: var(--cb-shadow);
  text-align: center;
  padding: 1rem;
  border: 3px solid var(--cb-deep);
  border-radius: 6px;
  background: var(--paper);
}
.chat-note {
  font-family: 'Kalam', cursive;
  font-size: 0.78rem;
  color: var(--cb-shadow);
  margin: 0.6rem 0 0;
  line-height: 1.4;
}
.chat-note a { color: var(--stamp-green); }

@media (max-width: 780px) {
  .stream-layout { flex-direction: column; }
  .chat-panel { max-width: none; width: 100%; }
  .chat-frame { height: 420px; }
}

@media (max-width: 640px) {
  body.menu-lock { overflow: hidden; }
  .menu-toggle { position: static; margin-bottom: 0.8rem; align-self: flex-end; }
  .dropdown-menu {
    position: fixed;
    top: 70px;
    right: 1rem;
    left: 1rem;
    width: auto;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .menu-close { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .cardboard-bg::after, .drift-box { animation: none !important; }
}
