/* ===================================================================
   KIRK KIRK KIRK SAHUR — BRAINROT HQ stylesheet
   =================================================================== */

:root {
  --wood-dark: #4a2c14;
  --wood: #8a4f24;
  --wood-light: #c98b4f;
  --oak: #d9a566;
  --hot: #ff2e88;
  --acid: #c6ff00;
  --cyan: #00f0ff;
  --purple: #9b30ff;
  --ink: #120a04;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Luckiest Guy", "Bangers", system-ui, sans-serif;
  background: var(--ink);
  color: #fff;
  overflow-x: hidden;
  cursor: crosshair;
  -webkit-tap-highlight-color: transparent;
}

/* shifting wood-grain-ish chaos background */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,46,136,0.25), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(0,240,255,0.22), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(198,255,0,0.18), transparent 45%),
    repeating-linear-gradient(115deg, #2a1709 0 12px, #371d0b 12px 24px);
  filter: saturate(1.2);
  animation: bgshift 14s linear infinite;
}
@keyframes bgshift {
  0%   { transform: rotate(0deg) scale(1.1); }
  50%  { transform: rotate(2deg) scale(1.25); }
  100% { transform: rotate(0deg) scale(1.1); }
}

/* spin keyframe (used by hero rings) */
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== MARQUEES ===================== */
.marquee {
  position: fixed; left: 0; right: 0; z-index: 50;
  background: var(--hot); color: #120a04;
  border-block: 4px solid #000;
  overflow: hidden; white-space: nowrap;
  font-size: clamp(.9rem, 2.4vw, 1.3rem); letter-spacing: .05em;
  box-shadow: 0 0 24px rgba(255,46,136,.6);
}
.marquee--top { top: 0; }
.marquee--bottom { bottom: 0; background: var(--acid); box-shadow: 0 0 24px rgba(198,255,0,.6); }
.marquee__track { display: inline-block; padding: .5rem 0; animation: marq 22s linear infinite; }
.marquee__track--rev { animation-direction: reverse; animation-duration: 18s; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===================== BEAT BUTTON ===================== */
.beat-btn {
  position: fixed; top: 56px; right: 14px; z-index: 60;
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1rem; border: 4px solid #000; border-radius: 14px;
  background: var(--cyan); color: #000; cursor: pointer;
  font-family: "Luckiest Guy", sans-serif; font-size: 1rem;
  box-shadow: 0 6px 0 #000, 0 0 22px var(--cyan);
  transition: transform .12s ease;
}
.beat-btn:hover { transform: translateY(-2px) rotate(-1deg); }
.beat-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #000; }
.beat-btn.playing { background: var(--hot); box-shadow: 0 6px 0 #000, 0 0 26px var(--hot); animation: thump .5s ease infinite; }
.beat-btn__icon { font-size: 1.3rem; }
@keyframes thump { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1rem;
  padding: 90px 1rem 60px; text-align: center;
}
.hero__rings {
  position: absolute; top: 50%; left: 50%;
  width: 120vmin; height: 120vmin; transform: translate(-50%,-50%);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 38px, rgba(255,255,255,.04) 38px 40px);
  animation: spin 60s linear infinite; z-index: -1;
}

/* glitch title */
.glitch {
  position: relative;
  font-family: "Rubik Mono One", "Luckiest Guy", sans-serif;
  font-size: clamp(2rem, 9vw, 6rem);
  line-height: .95; letter-spacing: .02em;
  color: #fff; text-transform: uppercase;
  text-shadow: 0 0 6px var(--oak);
  animation: hue 6s linear infinite, wobble 3.5s ease-in-out infinite;
}
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0;
  clip-path: inset(0 0 0 0);
}
.glitch::before { left: 3px; text-shadow: -2px 0 var(--hot); animation: gl1 2.5s infinite linear alternate-reverse; }
.glitch::after  { left: -3px; text-shadow: -2px 0 var(--cyan); animation: gl2 1.8s infinite linear alternate-reverse; }
@keyframes gl1 { 0%{clip-path:inset(10% 0 85% 0)} 50%{clip-path:inset(60% 0 10% 0)} 100%{clip-path:inset(30% 0 50% 0)} }
@keyframes gl2 { 0%{clip-path:inset(80% 0 5% 0)} 50%{clip-path:inset(20% 0 60% 0)} 100%{clip-path:inset(50% 0 30% 0)} }
@keyframes hue { to { filter: hue-rotate(360deg); } }
@keyframes wobble { 0%,100%{transform:rotate(-1.5deg)} 50%{transform:rotate(1.5deg)} }

.hero__tag {
  font-family: "Bangers", sans-serif; letter-spacing: .12em;
  font-size: clamp(1rem, 3.5vw, 1.6rem); color: var(--acid);
  text-shadow: 0 0 12px var(--acid);
}

/* the man himself */
.char-stage {
  position: relative; margin-top: .5rem;
  width: clamp(180px, 42vw, 320px);
  cursor: pointer; user-select: none;
}
.char-aura {
  position: absolute; inset: -12% -25%;
  background: radial-gradient(circle, rgba(255,46,136,.45), transparent 65%);
  filter: blur(8px); z-index: -1; animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:.7} 50%{transform:scale(1.15);opacity:1} }
.char {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.6));
  animation: bob 1.6s ease-in-out infinite;
  transition: transform .12s ease, filter .35s ease;
}
.char-stage:hover .char { transform: scale(1.04) rotate(1deg); }
.char-stage:active .char { transform: scale(.95) rotate(-3deg); }
@keyframes bob { 0%,100%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-18px) rotate(1deg)} }
.char.beat { animation: bob 1.6s ease-in-out infinite, shake .18s ease; }
@keyframes shake { 0%{transform:translateX(0)} 25%{transform:translateX(-8px) rotate(-2deg)} 75%{transform:translateX(8px) rotate(2deg)} 100%{transform:translateX(0)} }

/* emoji fallback if no image present */
.char-fallback { position: relative; width: 100%; aspect-ratio: 2/3; }
.cf-head { font-size: clamp(4rem,14vw,8rem); }
.cf-plank { font-size: clamp(6rem,20vw,12rem); margin-top: -1rem; }
.cf-paddle { position: absolute; bottom: 8%; left: -10%; font-size: clamp(3rem,10vw,6rem); transform: rotate(40deg); }

.hero__hint { font-family: "Bangers", sans-serif; letter-spacing: .2em; color: var(--cyan); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero__hint, .scroll-cue { font-size: clamp(.85rem, 2.6vw, 1.1rem); }
.scroll-cue { color: var(--oak); text-decoration: none; letter-spacing: .15em; margin-top: .5rem; }
.scroll-cue:hover { color: var(--hot); }

/* ===================== HERO CTA / TICKER / CONTRACT ===================== */
.ticker {
  display: inline-block; background: var(--acid); color: #000;
  padding: 0 .5rem; border-radius: 8px; border: 3px solid #000;
  transform: rotate(-2deg); animation: thump 1.2s ease infinite;
}
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: .4rem; }
.cta {
  font-family: "Luckiest Guy", sans-serif; text-decoration: none;
  font-size: clamp(.9rem, 3vw, 1.25rem); padding: .8rem 1.4rem;
  border: 4px solid #000; border-radius: 16px; color: #000;
  box-shadow: 0 7px 0 #000; transition: transform .12s ease, box-shadow .12s ease;
}
.cta:hover { transform: translateY(-3px) rotate(-1.5deg); }
.cta:active { transform: translateY(5px); box-shadow: 0 2px 0 #000; }
.cta--buy { background: linear-gradient(120deg, var(--acid), #3ee86a); box-shadow: 0 7px 0 #000, 0 0 26px var(--acid); }
.cta--x { background: #fff; color: #000; }
.ca-copy {
  margin-top: .3rem; font-family: "Bangers", sans-serif; letter-spacing: .06em;
  background: #1a0f06; color: var(--cyan); border: 3px dashed var(--cyan);
  border-radius: 12px; padding: .5rem .9rem; cursor: pointer;
  font-size: clamp(.7rem, 2.4vw, 1rem); max-width: 92vw; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.ca-copy:hover { background: #241405; }
.ca-copy.copied { color: var(--acid); border-color: var(--acid); }

/* ===================== SECTION SHARED ===================== */
section { padding: 4rem 1.2rem; position: relative; }
.section-title {
  text-align: center; font-size: clamp(1.5rem, 6vw, 3rem);
  margin-bottom: 2rem; color: #fff;
  text-shadow: 3px 3px 0 var(--hot), 6px 6px 0 var(--cyan);
  animation: wobble 4s ease-in-out infinite;
}

/* ===================== STATS ===================== */
.stats__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 1rem; max-width: 900px; margin: 0 auto;
}
.stat {
  background: linear-gradient(160deg, var(--wood), var(--wood-dark));
  border: 4px solid #000; border-radius: 18px; padding: 1.4rem 1rem;
  text-align: center; box-shadow: 0 8px 0 #000;
  transition: transform .15s ease;
}
.stat:hover { transform: translateY(-6px) rotate(-1deg); }
.stat__num { font-size: clamp(1.6rem, 6vw, 2.6rem); color: var(--acid); text-shadow: 0 0 12px var(--acid); }
.stat__label { margin-top: .4rem; font-family: "Bangers", sans-serif; letter-spacing: .08em; color: var(--oak); }

.power-meter { max-width: 700px; margin: 2.5rem auto 0; text-align: center; }
.power-meter__label { color: var(--cyan); letter-spacing: .15em; margin-bottom: .6rem; }
.power-meter__bar { height: 30px; border: 4px solid #000; border-radius: 30px; overflow: hidden; background: #1a0f06; }
.power-meter__fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--cyan), var(--acid), var(--hot)); transition: width 2s ease; }
.power-meter__value { margin-top: .6rem; font-size: 1.4rem; color: var(--hot); }

/* ===================== LORE ===================== */
.lore__cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1.4rem; max-width: 1000px; margin: 0 auto;
}
.lore-card {
  background: rgba(20,10,4,.72); backdrop-filter: blur(4px);
  border: 3px dashed var(--oak); border-radius: 20px; padding: 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.lore-card:hover { transform: translateY(-8px) rotate(1deg); box-shadow: 0 0 30px var(--hot); }
.lore-card__emoji { font-size: 3rem; }
.lore-card h3 { font-size: 1.5rem; margin: .6rem 0; color: var(--acid); }
.lore-card p { font-family: system-ui, sans-serif; font-size: 1rem; line-height: 1.55; color: #f3e3d0; font-weight: 400; }
.lore-card b { color: var(--hot); }
.lore-card i { color: var(--cyan); }

/* ===================== CHANT ===================== */
.chant { text-align: center; }
.chant__sub { font-family: "Bangers", sans-serif; color: var(--oak); letter-spacing: .12em; margin-bottom: 1.4rem; }
.chant-btn {
  font-family: "Rubik Mono One", sans-serif;
  font-size: clamp(2rem, 9vw, 4.5rem); padding: 1rem 2.4rem;
  border: 6px solid #000; border-radius: 26px; cursor: pointer; color: #000;
  background: radial-gradient(circle at 30% 30%, var(--acid), #8db300);
  box-shadow: 0 10px 0 #000, 0 0 30px var(--acid);
  transition: transform .08s ease;
}
.chant-btn:active { transform: translateY(8px) scale(.96); box-shadow: 0 2px 0 #000; }
.chant__counter { margin-top: 1.4rem; font-family: "Bangers", sans-serif; letter-spacing: .1em; color: var(--cyan); font-size: 1.3rem; }
.chant__line { margin-top: 1rem; min-height: 2rem; font-size: clamp(1.2rem, 5vw, 2rem); color: var(--hot); letter-spacing: .1em; }

/* ===================== DEBATE TABLE (charlie kirk) ===================== */
.debate { text-align: center; }
.debate__sub {
  font-family: system-ui, sans-serif; font-weight: 400; line-height: 1.55;
  max-width: 680px; margin: -1rem auto 1.8rem; color: #f3e3d0; font-size: 1rem;
}
.debate__stage { max-width: 720px; margin: 0 auto; }
.debate__sign {
  display: flex; flex-direction: column; gap: .2rem;
  background: repeating-linear-gradient(90deg, var(--wood) 0 18px, var(--wood-dark) 18px 36px);
  border: 5px solid #000; border-radius: 14px; padding: 1rem;
  box-shadow: 0 8px 0 #000; transform: rotate(-1deg);
}
.debate__sign-top { font-family: "Bangers", sans-serif; letter-spacing: .12em; color: var(--cyan); }
.debate__sign-big { font-family: "Rubik Mono One", sans-serif; font-size: clamp(1.4rem, 6vw, 2.6rem); color: #fff; text-shadow: 2px 2px 0 var(--hot); }
.debate__sign-bot { font-family: "Bangers", sans-serif; color: var(--acid); letter-spacing: .08em; font-size: .9rem; }
.debate__chat {
  text-align: left; margin: 1.2rem 0; min-height: 90px;
  max-height: 300px; overflow-y: auto; padding: .4rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.bubble {
  font-family: system-ui, sans-serif; font-weight: 500; font-size: .95rem;
  line-height: 1.45; padding: .7rem 1rem; border-radius: 14px; max-width: 85%;
  border: 3px solid #000; animation: cloneIn .25s ease;
}
.bubble--you { align-self: flex-end; background: var(--cyan); color: #000; border-bottom-right-radius: 3px; }
.bubble--plank { align-self: flex-start; background: linear-gradient(160deg, var(--wood), var(--wood-dark)); color: #ffe; border-bottom-left-radius: 3px; }
.debate__form { display: flex; gap: .6rem; margin-top: .4rem; }
.debate__form input {
  flex: 1; padding: .8rem 1rem; border: 4px solid #000; border-radius: 14px;
  font-family: system-ui, sans-serif; font-size: 1rem; background: #fff; color: #000;
}
.debate__form input:focus { outline: 3px solid var(--hot); }
.debate__form button {
  font-family: "Luckiest Guy", sans-serif; font-size: 1rem; cursor: pointer;
  padding: .8rem 1.2rem; border: 4px solid #000; border-radius: 14px;
  background: var(--hot); color: #fff; box-shadow: 0 5px 0 #000;
}
.debate__form button:active { transform: translateY(4px); box-shadow: 0 1px 0 #000; }
.debate__scoreboard { margin-top: 1rem; font-family: "Bangers", sans-serif; letter-spacing: .1em; color: var(--oak); font-size: 1.2rem; }

/* ===================== SHOP / LUMBER YARD ===================== */
.shop { text-align: center; }
.cart-bar {
  position: sticky; top: 46px; z-index: 30;
  display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: center;
  background: var(--cyan); color: #000; border: 4px solid #000; border-radius: 16px;
  padding: .5rem 1rem; font-family: "Bangers", sans-serif; letter-spacing: .06em;
  box-shadow: 0 5px 0 #000; margin-bottom: 1.6rem; font-size: 1.1rem;
}
.cart-bar__checkout {
  font-family: "Luckiest Guy", sans-serif; cursor: pointer; border: 3px solid #000;
  border-radius: 10px; background: var(--hot); color: #fff; padding: .35rem .8rem;
}
.cart-bar__checkout:active { transform: translateY(2px); }
.shop__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 1.2rem; max-width: 1000px; margin: 0 auto;
}
.product {
  background: rgba(20,10,4,.78); border: 4px solid #000; border-radius: 18px;
  padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem;
  box-shadow: 0 7px 0 #000; transition: transform .15s ease;
}
.product:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 7px 0 #000, 0 0 24px var(--hot); }
.product__emoji { font-size: 3.4rem; }
.product__name { font-family: "Luckiest Guy", sans-serif; font-size: 1.15rem; color: var(--acid); }
.product__desc { font-family: system-ui, sans-serif; font-weight: 400; font-size: .85rem; color: #e8d6c0; line-height: 1.4; flex: 1; }
.product__price { font-family: "Bangers", sans-serif; color: var(--cyan); font-size: 1.3rem; letter-spacing: .05em; }
.product__btn {
  font-family: "Luckiest Guy", sans-serif; cursor: pointer; border: 4px solid #000;
  border-radius: 12px; background: var(--acid); color: #000; padding: .6rem; box-shadow: 0 4px 0 #000;
}
.product__btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }

.footer__socials { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0 1.2rem; }

/* ===================== GALLERY ===================== */
.gallery__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr));
  gap: .9rem; max-width: 1000px; margin: 0 auto;
}
.gallery__cell {
  aspect-ratio: 1; border: 4px solid #000; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: linear-gradient(160deg, var(--wood), var(--wood-dark));
  box-shadow: 0 6px 0 #000; cursor: pointer; position: relative;
  transition: transform .15s ease;
}
.gallery__cell:hover { transform: scale(1.08) rotate(-2deg); z-index: 2; }
.gallery__cell.selected { border-color: var(--acid); box-shadow: 0 6px 0 #000, 0 0 22px var(--acid); }
.gallery__cell.selected::after {
  content: "EQUIPPED"; position: absolute; top: 4px; right: 4px;
  font-family: "Bangers", sans-serif; font-size: .6rem; letter-spacing: .04em;
  background: var(--acid); color: #000; padding: 1px 5px; border-radius: 6px;
}
.gallery__cell img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.gallery__cell .ghost { font-size: 3rem; }
.gallery__cell .tag { position: absolute; bottom: 4px; font-family:"Bangers"; font-size:.7rem; color: var(--acid); letter-spacing:.06em; }

/* ===================== FOOTER ===================== */
.footer { text-align: center; padding: 4rem 1rem 5rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); }
.footer__plank { font-size: 3rem; animation: bob 2s ease-in-out infinite; }
.footer__big { font-family: "Rubik Mono One", sans-serif; font-size: clamp(1.4rem, 6vw, 3rem); color: var(--oak); text-shadow: 0 0 16px var(--hot); margin: .6rem 0; }
.footer__small { font-family: system-ui, sans-serif; font-weight: 400; font-size: .8rem; color: #b89770; max-width: 540px; margin: 0 auto 1.2rem; line-height: 1.5; }
.footer__top { color: var(--cyan); text-decoration: none; letter-spacing: .12em; }
.footer__top:hover { color: var(--hot); }

/* ===================== FX LAYER ===================== */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.falling {
  position: absolute; top: -8vh; font-size: 2rem; will-change: transform;
  animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(115vh) rotate(720deg); } }

.clone {
  position: fixed; width: 70px; height: auto; z-index: 41;
  pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6));
  animation: cloneIn .3s ease, bob 1.4s ease-in-out infinite;
}
.clone--emoji { font-size: 3rem; line-height: 1; }
@keyframes cloneIn { from { transform: scale(0) rotate(-180deg); } to { transform: scale(1) rotate(0); } }

/* ===================== SECRET JUKEBOX (easter egg) ===================== */
.jukebox {
  position: fixed; bottom: 64px; left: 14px; z-index: 70;
  background: linear-gradient(160deg, var(--wood), var(--wood-dark));
  border: 4px solid #000; border-radius: 16px; padding: .7rem .9rem;
  box-shadow: 0 6px 0 #000, 0 0 26px var(--hot);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease; min-width: 220px; max-width: 80vw;
}
.jukebox.show { opacity: 1; transform: none; pointer-events: auto; }
.jukebox__title { font-family: "Luckiest Guy", sans-serif; color: var(--acid); font-size: .95rem; text-align: center; }
.jukebox__now { font-family: "Bangers", sans-serif; letter-spacing: .04em; color: var(--cyan); text-align: center; margin: .3rem 0 .55rem; font-size: .95rem; min-height: 1.2em; }
.jukebox__controls { display: flex; gap: .4rem; justify-content: center; }
.jukebox__controls button {
  font-size: 1rem; cursor: pointer; border: 3px solid #000; border-radius: 10px;
  background: var(--acid); color: #000; padding: .3rem .55rem; box-shadow: 0 3px 0 #000;
}
.jukebox__controls button:active { transform: translateY(2px); box-shadow: 0 1px 0 #000; }

.egg-toast {
  position: fixed; top: 50%; left: 50%; z-index: 9000;
  transform: translate(-50%, -50%) scale(.6); opacity: 0;
  background: #120a04; border: 4px solid var(--acid); border-radius: 18px;
  padding: 1rem 1.6rem; font-family: "Luckiest Guy", sans-serif; color: var(--acid);
  font-size: clamp(1.1rem, 5vw, 2rem); text-shadow: 0 0 16px var(--acid);
  box-shadow: 0 0 40px var(--hot); text-align: center; pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.egg-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* screen shake utility */
.quake { animation: quake .35s linear; }
@keyframes quake {
  0%,100%{transform:translate(0,0)} 20%{transform:translate(-6px,4px)}
  40%{transform:translate(6px,-4px)} 60%{transform:translate(-4px,-6px)} 80%{transform:translate(4px,6px)}
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
