/* ====== Brand ====== */
:root {
  --green: #56b889;
  --dark: #142d4c;
  --ink: #0b1f17;
  --paper: #f2f5f8;
}

/* ====== Global Background (tiled texture + slight fade) ====== */
body {
  background: url("/img/background-texture.webp") center top / cover fixed no-repeat;
  color: var(--ink);
  font-family: "Inter","Segoe UI",sans-serif;
  scroll-behavior: smooth;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,0.14);
  pointer-events: none;
}

/* --- Sticky layout skeleton (authoritative) --- */
html, body { height: 100%; }

body {
  margin: 0;                 /* important: remove default body margin */
  display: flex;             /* body is the flex parent */
  flex-direction: column;    /* header -> main -> footer vertical stack */
  min-height: 100vh;         /* ensure full viewport height */
}

.site-frame-top    { flex: 0 0 auto; }
.site-frame-body   { flex: 1 0 auto; position: relative; } /* stretches to push footer down */
.site-frame-bottom { flex: 0 0 auto; }                     /* footer sits at the end */


/* ====== 90's outer frame ====== */
.container-90s {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 14px;
}

/* Top frame / header */
.site-frame-top {
  background:
    linear-gradient(180deg, #fbfffd, #e7fff4),
    repeating-linear-gradient(135deg, rgba(86,184,137,0.08) 0 8px, rgba(255,255,255,0.05) 8px 16px);
  border-bottom: 4px double #bfead3;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Bottom frame / footer */
.site-frame-bottom {
  background: linear-gradient(180deg, #ffffff, #eef6f1);
  border-top: 4px double #bfead3;
  padding: 18px 0 24px;
}

/* Middle frame body (adds subtle paper texture) */
.site-frame-body {
  background:
    radial-gradient(120% 150% at 50% -30%, rgba(86,184,137,0.25), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.15) 0 1px, transparent 1px 3px);
  padding: 22px 0 26px;
}

/* ====== 90's Branding Bar ====== */
.brand-90s { gap: 14px; padding-top: 14px; }
.logo-90s { height: 72px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0,0,0,0.25)); }
.title-90s { font-size: clamp(26px, 5vw, 42px); line-height: 1; }

.chrome-text {
  background: linear-gradient(180deg,#ffffff 0%,#d9ffef 30%,#56b889 55%,#0b1f17 56%,#b0ffde 80%,#ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}
.slogan-90s { font-size: 12px; letter-spacing: .3px; color: #2f4e40; }

/* ====== 90's Nav ====== */
.nav-geo { display: flex; flex-wrap: wrap; gap: 10px; }
.nav-geo a {
  display: inline-block; padding: 8px 14px; color: #06251a; text-decoration: none;
  font-weight: 700; letter-spacing: .5px;
  background: linear-gradient(180deg,#ffffff,#e7fff1);
  border: 2px solid #a0e0c2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 0 #72c89f, 0 3px 0 rgba(0,0,0,0.15);
  border-radius: 6px;
}
.nav-geo a:hover {
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 0 #72c89f, 0 2px 0 rgba(0,0,0,0.15);
}

/* ====== 90's Marquee ====== */
.marquee-90s {
  overflow: hidden;
  background: linear-gradient(180deg,#f8fffb,#e9fff3);
  border: 2px solid #b9efd4;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #a8e7c9;
}
.marquee-90s .marquee-track {
  display: inline-block; padding: 6px 0; white-space: nowrap;
  animation: marquee 14s linear infinite;
  color: #094231; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
@keyframes marquee { from { transform: translateX(100%);} to { transform: translateX(-100%);} }

/* ====== 90’s Hero ====== */
.hero-90s {
  background: radial-gradient(120% 80% at 50% -10%, #245f45 0%, #0d2e24 40%, #0a1f18 80%),
              linear-gradient(to bottom, rgba(34,97,72,0.7) 0%, rgba(20,45,36,0.9) 100%);
  color: #fff;
  border-top: 4px double #bfead3;
  border-bottom: 4px double #bfead3;
  box-shadow: inset 0 -8px 30px rgba(0,0,0,0.25), inset 0 8px 30px rgba(0,0,0,0.25);
}
.panel-90s {
  background: linear-gradient(180deg,#ffffff,#e9fff3);
  border: 3px solid #aee8cd; border-radius: 10px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.9), 0 6px 0 #7fd0a7, 0 8px 14px rgba(0,0,0,0.25);
}
.bevel-pan { border-image: linear-gradient(180deg,#c8f2df,#7bd0a4) 1; }
.lead-90s { color: #123b2d; font-weight: 600; }

/* Tubed TV frame around video */
.tube-frame {
  padding: 10px; background: linear-gradient(180deg,#113127,#081c16);
  border: 3px solid #6ec79f; border-radius: 14px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), 0 10px 16px rgba(0,0,0,0.35);
}

/* 90s CTAs */
.btn-geo {
  display: inline-block;
  background: linear-gradient(180deg,#ffffff,#eafff4);
  border: 2px solid #7fd0a7; color: #063a2a;
  font-weight: 800; letter-spacing: .6px; padding: .55rem 1rem;
  border-radius: 999px; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 3px 0 #5fbf91, 0 6px 14px rgba(0,0,0,0.25);
}
.btn-geo:hover {
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 0 #5fbf91, 0 5px 10px rgba(0,0,0,0.2);
}

.sticker-90s {
  display: inline-block; font-weight: 900; color: #fff;
  background: linear-gradient(135deg,#56b889,#2d7f5c);
  border: 2px solid #fff; transform: rotate(-2deg); padding: .3rem .6rem;
  box-shadow: 2px 3px 0 rgba(0,0,0,0.35);
}
.sticker-90s.alt { background: linear-gradient(135deg,#1d4939,#56b889); }

/* ====== 90’s Cards ====== */
.card.episode-card-90s {
  background: linear-gradient(180deg,#ffffff,#f0fff7);
  border: 3px solid #aee8cd; border-radius: 10px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.9), 0 6px 0 #7fd0a7, 0 8px 14px rgba(0,0,0,0.25);
}
.thumb-wrap-90s { position: relative; overflow: hidden; border-bottom: 2px solid #c9f0df; }
.thumb-90s { width: 100%; height: 180px; object-fit: cover; filter: saturate(1.2) contrast(1.05); }
.thumb-scan {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, rgba(0,0,0,0.10) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply; opacity: .5;
}

/* Tiny helper text */
.tiny { font-size: 12px; opacity: .85; }

/* ====== Footer ====== */
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px; align-items: flex-start;
}
.footer-title { font-weight: 900; color: #0c3e2e; letter-spacing: .5px; margin-bottom: 6px; }
.links-90s { margin: 0; padding-left: 18px; }
.badges-90s { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-90s { background: #eafff4; border: 1px solid #b9efd4; padding: 2px 6px; border-radius: 4px; font-size: 12px; color: #0c3e2e; }

/* ===== Animated Under-Construction Sign ===== */
.uc-sign {
  position: relative; text-align: center; font-weight: 900; color: #fff;
  background: repeating-linear-gradient(135deg, #2b7f5c 0 12px, #18533e 12px 24px);
  border: 2px solid #dff7ec; border-radius: 8px; padding: 12px 8px; letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6); overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.25), 0 3px 10px rgba(0,0,0,0.35);
}
.uc-sign::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.12) 0 20px, transparent 20px 40px);
  mix-blend-mode: overlay; animation: uc-scan 4s linear infinite;
}
@keyframes uc-scan { 0% {background-position:0 0;} 100% {background-position:80px 80px;} }
.uc-sign::after {
  content: ""; position: absolute; inset: 0; border-radius: 8px;
  box-shadow: 0 0 12px 4px rgba(86,184,137,0.3);
  animation: uc-glow 2s ease-in-out infinite alternate;
}
@keyframes uc-glow { from {opacity:.3;} to {opacity:1;} }

.hit-counter { margin-top: 8px; text-align: center; font-family: ui-monospace,Consolas,monospace; color: #0c3e2e; }

/* ===== Neon Title (reuse) ===== */
.neon-title { color: #fff; text-shadow: 0 0 3px #fff, 0 0 8px #56b889, 0 0 18px #56b889, 0 0 36px #56b889; letter-spacing: .5px; }

/* ===== 90s Easter Eggs ===== */
.eggs-toggle {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 2000;
}
.uc-banner-90s {
  position: fixed; left: 50%; transform: translateX(-50%); top: 8px;
  z-index: 1600; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg,#fff,#eafff4);
  border: 2px solid #b9efd4; box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  padding: 6px 10px; border-radius: 8px;
}
.uc-banner-90s img { height: 24px; width: auto; image-rendering: pixelated; }

/* Mouse-trail star */
:root { --trail-enabled: 0; }
.star-egg {
  position: fixed; z-index: 1590; font-size: 12px; color: #56b889;
  text-shadow: 0 0 4px rgba(86,184,137,0.8), 1px 1px 0 rgba(0,0,0,0.3);
  pointer-events: none; animation: star-fade .9s ease-out forwards;
}
@keyframes star-fade {
  0% { opacity: 1; transform: translate(-2px,-2px) scale(1); }
  100% { opacity: 0; transform: translate(6px,6px) scale(0.8); }
}

/* Retro cursors when eggs on */
.eggs-90s, .eggs-90s a, .eggs-90s input, .eggs-90s textarea, .eggs-90s button { cursor: url("/img/cursors/arrow.cur"), auto; }
.eggs-90s a:hover { cursor: url("/img/cursors/hand.cur"), pointer; }
.eggs-90s input, .eggs-90s textarea { cursor: url("/img/cursors/ibeam.cur"), text; }

/* Konami rainbow mode */
.rainbow-egg .chrome-text,
.rainbow-egg h1, .rainbow-egg h2, .rainbow-egg h3,
.rainbow-egg .title-90s, .rainbow-egg .neon-title {
  animation: rainbow-text 3.5s linear infinite;
  background: linear-gradient(90deg,#ff0048,#ffaa00,#e4ff00,#00ffa3,#00a4ff,#c200ff,#ff0048);
  background-size: 400% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
@keyframes rainbow-text { 0% {background-position:0% 0;} 100% {background-position:400% 0;} }

/* ===== Shop bits (90s) ===== */
.shop-card .shop-thumb { height: 200px; object-fit: cover; }
.shop-card:hover { transform: translateY(1px); }

/* Cart floating action button — top right */
.cart-fab-90s {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  top: max(14px, env(safe-area-inset-top));
  z-index: 2100;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 999px;
  background: linear-gradient(180deg,#ffffff,#eafff4);
  border: 2px solid #7fd0a7; color: #063a2a; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 3px 0 #5fbf91, 0 6px 14px rgba(0,0,0,0.25);
  cursor: pointer; transition: transform 0.15s ease;
}
.cart-fab-90s:hover {
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 0 #5fbf91, 0 5px 10px rgba(0,0,0,0.2);
}
.cart-fab-90s .badge { transform: translateY(-2px); }

/* Cart drawer */
.cart-90s {
  position: fixed; top: 0; right: 0; width: min(380px, 90vw); height: 100dvh;
  background: linear-gradient(180deg,#ffffff,#e9fff3);
  border-left: 3px solid #aee8cd;
  box-shadow: -6px 0 18px rgba(0,0,0,0.25);
  transform: translateX(100%); transition: transform .25s ease;
  z-index: 2200; display: flex; flex-direction: column; padding: 12px;
}
.cart-90s.open { transform: translateX(0); }
.cart-90s .cart-head { border-bottom: 2px solid #c9f0df; padding-bottom: 6px; }
.cart-90s .cart-list { overflow: auto; max-height: calc(100dvh - 190px); padding-right: 4px; }
.cart-90s .cart-row {
  display: grid; grid-template-columns: 56px 1fr auto auto;
  align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #cdeedd;
}
.cart-90s .cart-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.cart-90s .row-qty { display: inline-flex; align-items: center; gap: 6px; }
.cart-90s .qty { width: 52px; text-align: center; }
.cart-90s .qty-btn {
  width: 28px; height: 28px; border: 1px solid #a0e0c2; background: #fff; border-radius: 6px;
}
.cart-90s .row-remove {
  border: 1px solid #ffc0c0; background: #fff; color: #b40000;
  width: 28px; height: 28px; border-radius: 6px; line-height: 1;
}

/* ===== 90s Slider Styling (for price range) ===== */
.form-range {
  -webkit-appearance: none; width: 100%; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, #b9efd4, #56b889);
  outline: none; opacity: 0.9; transition: opacity 0.2s; cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.25), 0 1px 2px rgba(255,255,255,0.5);
}
.form-range:hover { opacity: 1; }
.form-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background-color: #56b889; border: 2px solid #0a1f18; box-shadow: 0 0 4px rgba(0,0,0,0.4); cursor: grab;
}
.form-range::-webkit-slider-thumb:active { cursor: grabbing; }
.form-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background-color: #56b889; border: 2px solid #0a1f18; box-shadow: 0 0 4px rgba(0,0,0,0.4); cursor: grab;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .logo-90s { height: 56px; }
  .footer-grid { grid-template-columns: 1fr; }
}
