/* BrainrotWee — shared design system
   Used by the landing page, Brainrot Horoscope and 60-Min Brainrot alike.
   Fonts are self-hosted (no Google Fonts request, which is friendlier for privacy laws). */

@font-face {
  font-family: "Bagel Fat One";
  src: url("../fonts/bagel-fat-one.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: optional;
}

:root {
  --ink: #1f1147;
  --lilac: #c9b8ff;
  --paper: #fffdf7;
  --yolk: #ffe45c;
  --pink: #ff5fa2;
  --mint: #7df0c2;
  --sky: #8fb8ff;
  --tang: #ffa45c;
  --blue: #2b3cff;
  --red: #ff5f5f;
  --font-display: "Bagel Fat One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Bricolage Grotesque", "Trebuchet MS", system-ui, -apple-system, sans-serif;
  --pop: 5px 5px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
  background-color: var(--lilac);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M22 10l2.2 9 9 2.2-9 2.2-2.2 9-2.2-9-9-2.2 9-2.2z' fill='%23dcd0ff'/%3E%3Cpath d='M100 84l1.6 6.4 6.4 1.6-6.4 1.6-1.6 6.4-1.6-6.4-6.4-1.6 6.4-1.6z' fill='%23dcd0ff'/%3E%3Ccircle cx='70' cy='30' r='2.5' fill='%23dcd0ff'/%3E%3Ccircle cx='30' cy='110' r='2.5' fill='%23dcd0ff'/%3E%3C/svg%3E");
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img, svg { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--yolk);
  border: 3px solid var(--ink);
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 800;
  z-index: 50;
}
.skip:focus { left: 12px; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap.narrow { max-width: 900px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.05; text-wrap: balance; }

/* ---------- header ---------- */

.site-header { padding: 18px 0 6px; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-decoration: none;
  background: var(--yolk);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 6px 14px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-2deg);
  display: inline-block;
}
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 5px 14px;
}
.nav a:hover { background: var(--mint); }
.nav a[aria-current="page"] { background: var(--pink); }

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

.btn {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--ink);
  background: var(--pink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: var(--pop);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: var(--pop); }
.btn.yolk { background: var(--yolk); }
.btn.paper { background: var(--paper); }
.btn.mint { background: var(--mint); }
.btn.sky { background: var(--sky); }
.btn.small { font-size: 0.95rem; padding: 8px 16px; }
.btn.big { font-size: 1.2rem; padding: 16px 30px; }

/* ---------- hero (big headline treatment, reused by landing + both tools) ---------- */

.hero { padding: 26px 0 6px; position: relative; }

.hero-title {
  font-size: clamp(2.7rem, 14vw, 7rem);
  line-height: 0.92;
  color: var(--yolk);
  -webkit-text-stroke: 0.11em var(--ink);
  paint-order: stroke fill;
  filter: drop-shadow(0.06em 0.06em 0 var(--ink));
  letter-spacing: 0.005em;
  margin-bottom: 22px;
}
.hero-title span { display: block; }
.hero-title span:nth-child(2) { padding-left: 0.3em; }
@media (min-width: 700px) { .hero-title span:nth-child(2) { padding-left: 0.6em; } }

.hero-sub {
  font-size: 1.2rem;
  font-weight: 700;
  max-width: 34ch;
  margin: 0 0 14px;
}

.tease {
  display: none;
  position: absolute;
  right: 0;
  top: 40px;
  max-width: 230px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 24px 24px 24px 6px;
  padding: 14px 18px;
  font-weight: 700;
  transform: rotate(4deg);
  box-shadow: var(--pop);
}
.tease + .tease {
  top: 232px;
  right: 6px;
  background: var(--mint);
  border-radius: 24px 24px 6px 24px;
  transform: rotate(-3deg);
}
@media (min-width: 1100px) { .tease { display: block; } }

.status-line { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; min-height: 0; }
.status-line:empty { display: none; }
.pill {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
}
a.pill:hover { background: var(--yolk); }

.pick-title { font-size: 1.7rem; margin: 22px 0 14px; }

/* ---------- ad slots ---------- */

.ad-slot { margin: 30px auto; max-width: 970px; min-height: 100px; text-align: center; }
.ad-slot::before {
  content: "Advertisement";
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.7;
  margin-bottom: 4px;
}
.ad-slot[hidden] { display: none; }
.ad-slot.is-placeholder {
  border: 3px dashed var(--ink);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.35);
  padding: 22px 12px;
  font-weight: 700;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ad-slot.is-placeholder::before { margin-bottom: 8px; }

/* ---------- panels ---------- */

.panel {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 8px 8px 0 var(--ink);
  margin: 34px 0;
}
@media (min-width: 700px) { .panel { padding: 30px; } }
.panel > h2 { font-size: clamp(1.7rem, 5vw, 2.3rem); margin-bottom: 6px; }
.panel .sub { margin: 0 0 18px; font-weight: 600; opacity: 0.85; }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta-row h2 { margin-bottom: 4px; }
.cta-row p { margin: 0; font-weight: 600; max-width: 42ch; }

.how p { margin: 0 0 12px; max-width: 68ch; }
.how p:last-child { margin-bottom: 0; }

.countdown-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-weight: 700; }
.countdown {
  font-family: var(--font-display);
  font-size: 1.5rem;
  background: var(--ink);
  color: var(--yolk);
  border-radius: 14px;
  padding: 4px 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ---------- verdict / stamp card + meter (reused by horoscope results and hourly reveal) ---------- */

@keyframes stamp {
  0% { transform: scale(1.25) rotate(-4deg); opacity: 0; }
  70% { transform: scale(0.98) rotate(1deg); opacity: 1; }
  100% { transform: none; }
}
.verdict {
  background: var(--yolk);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: 22px;
  text-align: center;
}
.verdict.stamp { animation: stamp 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.verdict h2 { font-size: clamp(2rem, 8vw, 3.4rem); }
.verdict p { margin: 8px 0 14px; font-weight: 700; }
.meter {
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.meter .bar { height: 20px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--pink); border-right: 3px solid var(--ink); }

/* ---------- stat tiles (reused by horoscope results and hourly challenge meta) ---------- */

.tiles { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 14px 14px 12px;
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tile:nth-child(1) { background: var(--sky); }
.tile:nth-child(2) { background: var(--mint); }
.tile:nth-child(3) { background: var(--paper); }
.tile:nth-child(4) { background: var(--tang); }
.tile:nth-child(5) { background: var(--pink); }
.tile:nth-child(6) { background: var(--yolk); }
.tile .label { font-weight: 800; font-size: 0.9rem; }
.tile .val { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.1; overflow-wrap: anywhere; }
.tile .val.emoji { font-size: 2.3rem; }
.tile .tag { font-size: 0.85rem; font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.next-line { justify-content: center; margin-top: 26px; }

/* ---------- generic pill-chip links (sign switcher, filters, etc.) ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.chips li:nth-child(4n+1) .chip { background: var(--yolk); }
.chips li:nth-child(4n+2) .chip { background: var(--mint); }
.chips li:nth-child(4n+3) .chip { background: var(--sky); }
.chip:hover { background: var(--pink) !important; }
.chip[aria-pressed="true"] { background: var(--pink) !important; }

noscript .panel { margin-top: 20px; }

/* ---------- landing "hub" cards ---------- */

.hub { list-style: none; margin: 30px 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .hub { grid-template-columns: 1fr 1fr; } }
.hub-card {
  display: block;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 32px;
  padding: 28px;
  box-shadow: 10px 10px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 100%;
}
.hub-card:hover { transform: translate(-3px, -5px); box-shadow: 14px 15px 0 var(--ink); }
.hub-card:active { transform: translate(4px, 4px); box-shadow: 3px 3px 0 var(--ink); }
.hub-card.a { background: var(--yolk); transform: rotate(-1.2deg); }
.hub-card.a:hover { transform: rotate(-1.2deg) translate(-3px, -5px); }
.hub-card.b { background: var(--mint); transform: rotate(1.2deg); }
.hub-card.b:hover { transform: rotate(1.2deg) translate(-3px, -5px); }
.hub-card .emoji { font-size: 3.2rem; display: block; margin-bottom: 8px; }
.hub-card h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); margin-bottom: 8px; }
.hub-card p { font-weight: 700; margin: 0 0 16px; max-width: 42ch; }
.hub-card .go {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
}

/* ---------- prose pages (about/contact/privacy/terms) ---------- */

.prose { max-width: 780px; margin: 30px auto; overflow-wrap: anywhere; }
.prose h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); margin-bottom: 14px; }
.prose h2 { font-size: 1.5rem; margin: 26px 0 8px; }
.prose p, .prose li { line-height: 1.65; }
.prose ul { padding-left: 1.2rem; }
.prose a { font-weight: 700; }
.prose .updated { font-weight: 700; opacity: 0.8; }

.lost { text-align: center; padding: 40px 0 20px; }
.lost h1 { font-size: clamp(3rem, 12vw, 6rem); margin-bottom: 12px; }
.lost p { font-weight: 700; font-size: 1.2rem; margin: 0 0 22px; }

/* ---------- footer ---------- */

.site-footer { margin-top: 50px; background: var(--ink); color: var(--paper); padding: 30px 0 34px; }
.site-footer .wrap { display: grid; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--yolk); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--yolk); }
.foot-note { margin: 0; opacity: 0.85; font-size: 0.92rem; max-width: 70ch; }
.foot-logo { font-family: var(--font-display); font-size: 1.4rem; color: var(--yolk); }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--yolk);
  font-weight: 800;
  border: 3px solid var(--yolk);
  border-radius: 999px;
  padding: 10px 20px;
  z-index: 60;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
