@import url('./colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
img { display: block; max-width: 100%; }
img.logo, img[data-logo] { max-width: none; object-fit: contain; flex-shrink: 0; }
button { font-family: inherit; }

/* Dotted texture overlay for dark mode body */
body[data-theme="dark"]::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
body[data-theme="light"]::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.03) 0, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 4px);
}
body { position: relative; }
body > * { position: relative; z-index: 1; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  border-radius: 999px; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-pop),
              box-shadow var(--dur-fast) var(--ease-pop),
              background-color var(--dur-fast) var(--ease-out);
  white-space: nowrap; text-decoration: none;
}
.btn-primary {
  background: var(--orange-400); color: var(--ink-1000);
  border: 2px solid var(--ink-1000);
  padding: 12px 22px; font-size: 15px;
  box-shadow: 4px 4px 0 0 var(--ink-1000);
}
.btn-primary:hover { background: var(--orange-300); transform: translate(-1px,-1px); box-shadow: 5px 5px 0 0 var(--ink-1000); }
.btn-primary:active { transform: translate(2px,2px); box-shadow: 0 0 0 0 var(--ink-1000); }
.btn-primary.lg { padding: 16px 28px; font-size: 17px; }

.btn-secondary {
  background: transparent; color: var(--fg);
  border: 2px solid var(--ink-1000);
  padding: 12px 22px; font-size: 15px;
  box-shadow: 4px 4px 0 0 var(--ink-1000);
}
[data-theme="dark"] .btn-secondary { background: var(--bg-card); }
.btn-secondary:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 0 var(--ink-1000); }
.btn-secondary:active { transform: translate(2px,2px); box-shadow: 0 0 0 0 var(--ink-1000); }

.btn-ghost {
  background: transparent; color: var(--fg-muted);
  border: 2px solid transparent;
  padding: 10px 16px; font-size: 14px;
}
.btn-ghost:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
[data-theme="light"] .btn-ghost:hover { background: rgba(0,0,0,0.05); }

.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--bg-card); color: var(--fg);
  border: 2px solid var(--ink-1000);
  box-shadow: 3px 3px 0 0 var(--ink-1000);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-pop), box-shadow var(--dur-fast) var(--ease-pop), background var(--dur-fast);
}
.icon-btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 0 var(--ink-1000); background: var(--orange-400); color: var(--ink-1000); }
.icon-btn:active { transform: translate(2px,2px); box-shadow: 0 0 0 0 var(--ink-1000); }

/* ============ LAYOUT ============ */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---- Body & globals ---- */
html.preview-mobile body {
  max-width: 420px !important;
  margin: 0 auto !important;
  overflow-x: hidden !important;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
html.preview-mobile * { min-width: 0 !important; }

/* ---- Wrap ---- */
html.preview-mobile .wrap {
  max-width: 100% !important;
  padding: 0 16px !important;
}

/* ---- Collapse all inline grids to single column ---- */
html.preview-mobile [style*="grid-template-columns"] {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

/* Exception: BTC ticker 4-col stat grid → 2 columns on mobile */
html.preview-mobile #ticker [style*="repeat(4, 1fr)"] {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  flex-direction: unset !important;
}

/* Comedy grid → 2 columns, hide 3rd + 4th */
html.preview-mobile #comedy [style*="grid-template-columns"] {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  flex-direction: unset !important;
  gap: 10px !important;
}
html.preview-mobile #comedy [style*="grid-template-columns"] > *:nth-child(3),
html.preview-mobile #comedy [style*="grid-template-columns"] > *:nth-child(4) { display: none !important; }
@media (max-width: 880px) {
  #comedy [style*="grid-template-columns"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    flex-direction: unset !important;
    gap: 10px !important;
  }
  #comedy [style*="grid-template-columns"] > *:nth-child(3),
  #comedy [style*="grid-template-columns"] > *:nth-child(4) { display: none !important; }
}

/* Education grid → 2 columns, hide 3rd card */
html.preview-mobile #education [style*="grid-template-columns"] {
  grid-template-columns: 1fr 1fr !important;
}
html.preview-mobile #education [style*="grid-template-columns"] > *:nth-child(3) { display: none !important; }
@media (max-width: 880px) {
  #education [style*="grid-template-columns"] { grid-template-columns: 1fr 1fr !important; }
  #education [style*="grid-template-columns"] > *:nth-child(3) { display: none !important; }
}

/* Mobile-only elements */
.show-mobile-only { display: none !important; }
html.preview-mobile .show-mobile-only { display: flex !important; }
@media (max-width: 880px) { .show-mobile-only { display: flex !important; } }


/* Music grid → 2 columns, hide 3rd + 4th (homepage) */
html.preview-mobile #music [style*="grid-template-columns"] {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  flex-direction: unset !important;
  gap: 12px !important;
}
html.preview-mobile #music:not(.music-full) [style*="grid-template-columns"] > *:nth-child(3),
html.preview-mobile #music:not(.music-full) [style*="grid-template-columns"] > *:nth-child(4) { display: none !important; }
/* Music page full grid → show 10, hide 11+ */
html.preview-mobile #music.music-full [style*="grid-template-columns"] > *:nth-child(n+11) { display: none !important; }
html.preview-mobile .music-bottom-cta { display: flex !important; }
@media (max-width: 880px) {
  #music [style*="grid-template-columns"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    flex-direction: unset !important;
    gap: 12px !important;
  }
  #music:not(.music-full) [style*="grid-template-columns"] > *:nth-child(3),
  #music:not(.music-full) [style*="grid-template-columns"] > *:nth-child(4) { display: none !important; }
  #music.music-full [style*="grid-template-columns"] > *:nth-child(n+11) { display: none !important; }
  .music-bottom-cta { display: flex !important; }
}

/* Meme grid → 2-1-2-1 pattern: pairs of 2 columns, every 3rd item full width */
html.preview-mobile #memes [style*="grid-template-columns"],
html.preview-mobile .meme-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  flex-direction: unset !important;
  gap: 12px !important;
}
html.preview-mobile #memes [style*="grid-template-columns"] > *:nth-child(3n),
html.preview-mobile .meme-grid > *:nth-child(3n) {
  grid-column: 1 / -1 !important;
}
@media (max-width: 880px) {
  .meme-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .meme-grid > *:nth-child(3n) {
    grid-column: 1 / -1 !important;
  }
}

/* Side-effects strip → text full-width on top, memes side-by-side below */
html.preview-mobile #side-effects [style*="grid-template-columns"] {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  flex-direction: unset !important;
  gap: 14px !important;
}
html.preview-mobile #side-effects [style*="grid-template-columns"] > div:nth-child(2) {
  grid-column: 1 / -1 !important;
  order: -1 !important;
  padding: 0 !important;
}
html.preview-mobile #side-effects .sticker { transform: none !important; }
html.preview-mobile #side-effects h3 { overflow-wrap: break-word !important; }
html.preview-mobile #side-effects p { overflow-wrap: break-word !important; }
@media (max-width: 880px) {
  #side-effects [style*="grid-template-columns"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    flex-direction: unset !important;
    gap: 14px !important;
  }
  #side-effects [style*="grid-template-columns"] > div:nth-child(2) {
    grid-column: 1 / -1 !important;
    order: -1 !important;
    padding: 0 !important;
  }
  #side-effects .sticker { transform: none !important; }
  #side-effects h3 { overflow-wrap: break-word !important; }
  #side-effects p { overflow-wrap: break-word !important; }
}

/* ---- Marquee: stays horizontal ---- */
html.preview-mobile .marquee__item {
  font-size: 15px !important;
  gap: 14px !important;
}
html.preview-mobile .marquee__bullet {
  width: 7px !important;
  height: 7px !important;
}
html.preview-mobile .marquee__track { animation-duration: 52s; }
@media (max-width: 880px) {
  .marquee__track { animation-duration: 52s; }
}

/* ---- Marquee: sticky on mobile, header scrolls away ---- */
html.preview-mobile .marquee {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}
html.preview-mobile header {
  position: relative !important;
  z-index: 50 !important;
}

/* ---- Header: logo centered, toggle right ---- */
html.preview-mobile header > div {
  flex-direction: row !important;
  justify-content: flex-end !important;
  align-items: center !important;
  height: auto !important;
  padding: 14px 16px !important;
  flex-wrap: nowrap !important;
  position: relative !important;
}
html.preview-mobile header > div > a {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: block !important;
  flex-shrink: 0 !important;
}
html.preview-mobile header > div > a img[alt="DrOrangePill"] {
  height: 34px !important;
  width: auto !important;
  min-width: unset !important;
  max-width: none !important;
  display: block !important;
  flex-shrink: 0 !important;
  object-fit: contain !important;
}

/* ---- Hamburger button: pushed to far left ---- */
html.preview-mobile .hamburger-btn {
  margin-right: auto !important;
  flex-shrink: 0 !important;
  order: -1 !important;
}

/* ---- Mobile dropdown menu ---- */
.mobile-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--bg-card);
  border: 2px solid var(--ink-1000);
  border-radius: 0 0 12px 0;
  box-shadow: 4px 4px 0 0 var(--ink-1000);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
}

/* ---- Section padding ---- */
html.preview-mobile section { padding: 24px 0 !important; }
html.preview-mobile #home   { padding: 28px 0 4px !important; }
html.preview-mobile #ticker { padding: 16px 0 24px !important; }

/* ---- Hero: headline + description ---- */
html.preview-mobile [style*="6.5vw, 96px"] { font-size: 36px !important; }
html.preview-mobile [style*="calc(100% + 65px)"] {
  width: 100% !important;
  max-width: 100% !important;
  font-size: 16px !important;
}

/* ---- Hero meta line (patients pilled) ---- */
html.preview-mobile .hero-meta { display: none !important; }

/* ---- Header logo (specific rule in "Header: logo centered" block above overrides this) ---- */
html.preview-mobile header img { height: auto !important; }

/* ---- DrOrangePill character image (illustrations only, not the logo) ---- */
html.preview-mobile img[alt*="DrOrangePill character"] {
  max-width: 120px !important;
  margin: 0 auto !important;
}

/* ---- Hide decorative floating elements ---- */
html.preview-mobile .float-pill,
html.preview-mobile .float-pill-2 { display: none !important; }

/* ---- Hero: hide eyebrow pill + character on mobile ---- */
html.preview-mobile #home .eyebrow-pill { display: none !important; }
html.preview-mobile .hero-character-col { display: none !important; }

/* ---- Doctor's Orders: character + card side by side ---- */
.doctors-orders-char { display: none; }
html.preview-mobile .doctors-orders-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
}
html.preview-mobile .doctors-orders-char {
  display: block !important;
  width: 76px !important;
  max-height: 220px !important;
  object-fit: contain !important;
  object-position: bottom !important;
  flex-shrink: 0 !important;
  align-self: flex-end !important;
}
html.preview-mobile .doctors-orders-card {
  flex: 1 !important; width: auto !important; padding: 16px 14px !important; margin-top: 8px !important;
}
html.preview-mobile .doctors-orders-card h3 { font-size: 21px !important; }
html.preview-mobile .doctors-orders-card .btn-primary {
  background: var(--ink-1000) !important;
  color: var(--ink-0) !important;
  box-shadow: 4px 4px 0 0 var(--orange-800) !important;
}
html.preview-mobile .wiggle { display: none !important; }

/* ---- Hero sub-text ---- */
html.preview-mobile .hero-sub { font-size: 14px !important; line-height: 1.5 !important; margin-top: -8px !important; }
@media (max-width: 880px) {
  .hero-sub { font-size: 14px !important; line-height: 1.5 !important; }
}

/* ---- BTC price number ---- */
html.preview-mobile [style*="6vw, 84px"] { font-size: 40px !important; }

/* ---- Section titles ---- */
html.preview-mobile .section-title {
  font-size: clamp(22px, 7vw, 30px) !important;
}


/* ---- Buttons: full-width except icon buttons ---- */
html.preview-mobile .btn:not(.icon-btn):not(.btn-ghost) {
  width: 100% !important;
  justify-content: center !important;
}

/* ---- Footer ---- */
html.preview-mobile footer { padding: 28px 0 20px !important; }
html.preview-mobile footer .wrap { align-items: center !important; }
html.preview-mobile footer .wrap > div:nth-child(2),
html.preview-mobile footer .wrap > div:nth-child(3),
html.preview-mobile footer .wrap > div:nth-child(4) { display: none !important; }
html.preview-mobile footer .wrap > div.footer-socials { display: block !important; }
html.preview-mobile footer img[alt="DrOrangePill"] {
  width: auto !important; height: 44px !important; min-width: auto !important;
}
@media (max-width: 880px) {
  footer { padding: 28px 0 20px !important; }
  footer .wrap { align-items: center !important; }
  footer .wrap > div:nth-child(2),
  footer .wrap > div:nth-child(3),
  footer .wrap > div:nth-child(4) { display: none !important; }
  footer .wrap > div.footer-socials { display: block !important; }
  footer img[alt="DrOrangePill"] {
    width: auto !important; height: 44px !important; min-width: auto !important;
  }
}
.mobile-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: center;
  padding: 12px 8px 18px;
  background: var(--bg-card);
  border-top: 3px solid var(--ink-1000);
  border-bottom: 3px solid var(--ink-1000);
}
.mobile-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.mobile-nav__link--active {
  background: var(--ink-1000);
  color: var(--orange-400);
}

.eyebrow {
  font-weight: 700; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange-400);
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: var(--bg-card); border: 2px solid var(--ink-1000);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-400);
  box-shadow: 3px 3px 0 0 var(--ink-1000);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 48px);
  text-transform: uppercase; letter-spacing: -0.01em;
  line-height: 1; margin: 0;
}

/* ============ STICKER TEXT ============ */
.sticker {
  font-family: var(--font-display); text-transform: uppercase;
  color: var(--ink-0);
  -webkit-text-stroke: 4px var(--ink-1000);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink-1000);
  letter-spacing: 0.01em;
  display: inline-block;
}
.sticker--orange { color: var(--orange-400); }
.sticker--cream  { color: var(--ink-50); }

/* ============ ANIMATIONS ============ */
@keyframes float-pill {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-18px) rotate(-2deg); }
}
@keyframes float-pill-2 {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50%      { transform: translateY(-14px) rotate(12deg); }
}
@keyframes pulse-soft {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: 0.85; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes stamp-in {
  0%   { transform: scale(2.4) rotate(-30deg); opacity: 0; }
  60%  { transform: scale(0.92) rotate(-12deg); opacity: 1; }
  100% { transform: scale(1)    rotate(-14deg); opacity: 0.95; }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
@keyframes price-flash-up   { 0% { background: rgba(77, 157, 107, 0.35); } 100% { background: transparent; } }
@keyframes price-flash-down { 0% { background: rgba(200, 81, 78, 0.35); } 100% { background: transparent; } }
@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50%      { transform: scale(1.3) rotate(180deg); opacity: 0.6; }
}

.float-pill   { animation: float-pill 4.2s ease-in-out infinite; }
.float-pill-2 { animation: float-pill-2 3.6s ease-in-out infinite; }
.spin-slow    { animation: spin-slow 22s linear infinite; transform-origin: center; }
.wiggle       { animation: wiggle 2.4s ease-in-out infinite; }
.blink        { animation: blink 1.4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .float-pill, .float-pill-2, .spin-slow, .wiggle, .blink { animation: none !important; }
}

/* ============ CARDS ============ */
.do-card {
  background: var(--bg-card);
  border: 2px solid var(--ink-1000);
  border-radius: 18px;
  box-shadow: 4px 4px 0 0 var(--ink-1000);
  transition: transform var(--dur-fast) var(--ease-pop), box-shadow var(--dur-fast) var(--ease-pop);
}
.do-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 0 var(--ink-1000); }

.do-card.tilt-l:hover { transform: translate(-2px,-2px) rotate(-1deg); }
.do-card.tilt-r:hover { transform: translate(-2px,-2px) rotate(1deg); }

/* ============ MEME PLACEHOLDER ============ */
.meme-slot {
  position: relative;
  aspect-ratio: 1/1;
  background:
    repeating-linear-gradient(45deg,
      var(--orange-500) 0 16px,
      var(--orange-400) 16px 32px);
  border: 3px solid var(--ink-1000);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.meme-slot::after {
  content: ""; position: absolute; inset: 8px; border-radius: 12px;
  border: 2px dashed rgba(0,0,0,0.55);
  pointer-events: none;
}
.meme-slot--image {
  border: none;
  background: repeating-linear-gradient(45deg, #16161C 0 8px, #2C2C36 8px 16px);
  border-radius: 18px;
}
.meme-slot--image::after { display: none; }
.meme-frame--dark   { background: repeating-linear-gradient(45deg, #16161C 0 8px, #2C2C36 8px 16px); }
.meme-frame--orange { background: repeating-linear-gradient(45deg, #F7931A 0 8px, #E07B00 8px 16px); }
.meme-frame--purple { background: repeating-linear-gradient(45deg, #6243C7 0 8px, #4329A1 8px 16px); }
.meme-frame--cream  { background: repeating-linear-gradient(45deg, #F7F4EE 0 8px, #EDEDF0 8px 16px); }
.do-card--meme-image { border: none; box-shadow: none; }
.do-card--meme-image:hover { box-shadow: none; }

/* Universal meme grid — any grid with class="meme-grid" auto-tilts its children.
   Uses 5 values so a 4-column grid never repeats the same angle in adjacent cells. */
.meme-grid > *:nth-child(5n+1) { transform: rotate(-1.5deg); }
.meme-grid > *:nth-child(5n+2) { transform: rotate(1deg); }
.meme-grid > *:nth-child(5n+3) { transform: rotate(-0.5deg); }
.meme-grid > *:nth-child(5n+4) { transform: rotate(1.8deg); }
.meme-grid > *:nth-child(5n+5) { transform: rotate(-1.2deg); }

.meme-slot__label {
  position: relative; z-index: 1;
  background: var(--ink-0); color: var(--ink-1000);
  border: 2px solid var(--ink-1000);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ============ VIDEO CARDS ============ */
.video-thumb {
  position: relative;
  border: 3px solid var(--ink-1000);
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-800);
}
.video-thumb__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.video-thumb__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.75) 100%);
}
.video-thumb__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 999px;
  background: var(--orange-400); color: var(--ink-1000);
  border: 3px solid var(--ink-1000);
  box-shadow: 4px 4px 0 0 var(--ink-1000);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-pop), box-shadow var(--dur-fast);
}
.video-thumb:hover .video-thumb__play {
  transform: translate(-50%,-50%) scale(1.08);
  box-shadow: 6px 6px 0 0 var(--ink-1000);
}
.video-thumb--play-bottom .video-thumb__play {
  top: auto; bottom: 15px;
  transform: translate(-50%, 0);
  width: 54px; height: 54px;
}
.video-thumb--play-bottom:hover .video-thumb__play {
  transform: translate(-50%, 0) scale(1.08);
}
.video-thumb__duration {
  position: absolute; right: 12px; top: 12px;
  background: var(--ink-1000); color: var(--ink-0);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 6px;
}
.video-thumb__caption {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  color: var(--ink-0);
}

/* ============ DIAGONAL STRIPES ============ */
.stripes-orange {
  background:
    repeating-linear-gradient(135deg,
      var(--orange-500) 0 24px,
      var(--orange-400) 24px 48px);
}
.stripes-purple {
  background:
    repeating-linear-gradient(135deg,
      var(--purple-laser) 0 24px,
      var(--purple-deep) 24px 48px);
}
.stripes-cream {
  background:
    repeating-linear-gradient(135deg,
      #efe6d3 0 24px,
      #f7f0dd 24px 48px);
}
.stripes-ink {
  background:
    repeating-linear-gradient(135deg,
      #1d1d24 0 24px,
      #23232c 24px 48px);
}

/* ============ MARQUEE ============ */
.marquee {
  display: flex; overflow: hidden;
  border-top: 3px solid var(--ink-1000);
  border-bottom: 3px solid var(--ink-1000);
  background: var(--orange-400);
  color: var(--ink-1000);
}
.marquee__track {
  display: flex; gap: 36px;
  white-space: nowrap;
  animation: marquee-scroll 56s linear infinite;
  padding: 14px 0;
  flex-shrink: 0;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 36px;
}
.marquee__bullet {
  display: inline-block; width: 14px; height: 14px;
  background: var(--ink-1000); border-radius: 999px;
}

/* ============ TICKER PRICE ============ */
.flash-up   { animation: price-flash-up 1s ease-out; }
.flash-down { animation: price-flash-down 1s ease-out; }

/* ============ STAMP ============ */
.stamp {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--red-rekt);
  border: 6px solid var(--red-rekt);
  border-radius: 14px;
  padding: 10px 22px;
  font-size: 36px;
  letter-spacing: 0.04em;
  background: transparent;
  display: inline-block;
  animation: stamp-in 1.6s var(--ease-pop) 0.4s both;
  opacity: 0.95;
  text-shadow: none;
}

/* ============ FORM ============ */
.input {
  background: var(--bg-card); color: var(--fg);
  border: 2px solid var(--ink-1000);
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 15px;
  font-family: inherit;
  box-shadow: 4px 4px 0 0 var(--ink-1000);
  width: 100%;
  outline: none;
}
.input:focus { box-shadow: 4px 4px 0 0 var(--ink-1000), 0 0 0 4px rgba(247,147,26,.25); }

/* ============ TAG ============ */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 8px;
  background: var(--bg-card); border: 2px solid var(--ink-1000);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--fg);
}

/* ============ RX PRESCRIPTION PAD ============ */
.rx-pad {
  background: #FBF5E4;
  color: var(--ink-1000);
  border: 4px solid var(--ink-1000);
  border-radius: 12px;
  box-shadow: 8px 8px 0 0 var(--ink-1000);
  position: relative;
  overflow: hidden;
}
.rx-pad::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg,
    transparent 0, transparent 31px,
    rgba(0,0,0,0.06) 31px, rgba(0,0,0,0.06) 32px);
  pointer-events: none;
}
.rx-pad__header {
  background: var(--ink-1000); color: var(--orange-400);
  padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.rx-pad__perforation {
  height: 12px;
  background:
    radial-gradient(circle at 6px 6px, var(--bg) 4px, transparent 4.5px) 0 0 / 12px 12px repeat-x;
}
.rx-pad__body { padding: 22px 28px 28px; position: relative; }
.rx-pad__lineitem {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.18);
}
.rx-pad__lineitem:last-child { border-bottom: none; }
.rx-pad__bullet {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 2.5px solid var(--ink-1000);
  border-radius: 6px;
  display: grid; place-items: center;
  background: var(--orange-400);
  font-family: var(--font-display);
  font-size: 16px;
  margin-top: 1px;
}

/* ============ PILL BOTTLE ============ */
.pill-bottle {
  position: relative;
  width: 100%; max-width: 320px;
  filter: drop-shadow(8px 12px 0 var(--ink-1000));
}

/* ============ SECTION DIVIDER ============ */
.divider-sticker {
  height: 56px;
  background: var(--ink-1000);
  border-top: 3px solid var(--ink-1000);
  border-bottom: 3px solid var(--ink-1000);
  display: flex; align-items: center;
  overflow: hidden;
}

/* ============ UTIL ============ */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; }

/* Loosen tracking on display-font headings at small/compact sizes for legibility */
html.preview-mobile .display-compact { letter-spacing: 0.05em !important; }
@media (max-width: 880px) { .display-compact { letter-spacing: 0.05em !important; } }
.spark { stroke-dasharray: 1000; stroke-dashoffset: 0; }

/* social pill row */
.socials { display: inline-flex; gap: 8px; }
