/* Brainrot Horoscope — styles specific to this tool.
   Shared tokens/buttons/panels/hero/tiles/verdict/footer live in base.css. */

/* ---------- sign grid ---------- */

.signs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (min-width: 700px) { .signs { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .signs { grid-template-columns: repeat(6, 1fr); } }

.signs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  padding: 14px 6px 12px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  height: 100%;
}
.signs li:nth-child(6n+1) a { background: var(--yolk); transform: rotate(-1.4deg); }
.signs li:nth-child(6n+2) a { background: var(--pink); transform: rotate(1.2deg); }
.signs li:nth-child(6n+3) a { background: var(--mint); transform: rotate(-0.8deg); }
.signs li:nth-child(6n+4) a { background: var(--sky); transform: rotate(1.5deg); }
.signs li:nth-child(6n+5) a { background: var(--tang); transform: rotate(-1.2deg); }
.signs li:nth-child(6n+6) a { background: var(--paper); transform: rotate(0.9deg); }
.signs a:hover { transform: translate(-2px, -4px) rotate(0deg); box-shadow: 7px 8px 0 var(--ink); }
.signs a:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.signs .sym { font-size: 2.4rem; line-height: 1.1; }
.signs .nm { font-family: var(--font-display); font-size: 1.1rem; }
.signs .dt { font-size: 0.78rem; font-weight: 700; opacity: 0.85; text-align: center; text-wrap: balance; line-height: 1.25; }

/* ---------- leaderboard ---------- */

.lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lb a {
  display: grid;
  grid-template-columns: 1.8rem 1fr auto;
  grid-template-areas: "rank name score" ". bar bar";
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  text-decoration: none;
  padding: 8px 12px;
  border: 3px solid transparent;
  border-radius: 16px;
}
.lb a:hover { border-color: var(--ink); background: var(--yolk); }
.lb .rank { grid-area: rank; font-family: var(--font-display); font-size: 1.1rem; }
.lb .who { grid-area: name; font-weight: 800; }
.lb .score { grid-area: score; font-family: var(--font-display); font-size: 1.1rem; }
.lb .bar { grid-area: bar; height: 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; }
.lb .bar i { display: block; height: 100%; background: var(--mint); border-right: 2.5px solid var(--ink); }
.lb .bar i.mid { background: var(--yolk); }
.lb .bar i.low { background: var(--pink); }
@media (min-width: 640px) {
  .lb a { grid-template-columns: 2rem 11rem 1fr 3.4rem; grid-template-areas: "rank name bar score"; }
}

/* ---------- awards ---------- */

.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 4px 0 0; }
.note {
  background: var(--yolk);
  border: 3px solid var(--ink);
  border-radius: 6px 6px 22px 6px;
  padding: 16px 16px 14px;
  box-shadow: 4px 4px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}
.note:nth-child(2n) { background: var(--mint); transform: rotate(1.3deg); }
.note:nth-child(3n) { background: var(--pink); transform: rotate(-1.4deg); }
.note:nth-child(2n+1) { transform: rotate(-0.8deg); }
.note p { margin: 0; font-weight: 700; }
.note a { font-family: var(--font-display); font-size: 1.5rem; text-decoration: none; align-self: flex-start; }
.note a:hover { text-decoration: underline; text-decoration-thickness: 3px; }

/* ---------- sign page head ---------- */

.sign-head { display: flex; align-items: center; gap: 16px; padding: 24px 0 14px; max-width: 720px; margin: 0 auto; }
.sign-head > div:last-child { min-width: 0; }
.sign-badge {
  font-size: 2.8rem;
  line-height: 1;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  background: var(--yolk);
  border: 3px solid var(--ink);
  border-radius: 26px;
  box-shadow: var(--pop);
  transform: rotate(-4deg);
  flex: none;
}
.sign-head h1 { font-size: clamp(2.1rem, 7.5vw, 3.6rem); }
.sign-head p { margin: 4px 0 0; font-weight: 700; }

/* ---------- chat bubbles (forecast delivery) ---------- */

.chat {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  max-width: 720px;
  margin: 10px auto 0;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--pink); border-bottom: 3px solid var(--ink); }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yolk);
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex: none;
}
.chat-head strong { display: block; line-height: 1.1; font-weight: 800; }
.chat-head small { font-weight: 700; opacity: 0.85; }
.chat-head .skip-btn {
  margin-left: auto;
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 3px 12px;
  cursor: pointer;
}
.chat-head .skip-btn[hidden] { display: none; }
.chat-head .skip-btn:hover { background: var(--yolk); }

.msgs { list-style: none; margin: 0; padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 140px; }
.msg, .typing {
  align-self: flex-start;
  max-width: 88%;
  background: #efe7ff;
  border: 3px solid var(--ink);
  border-radius: 22px 22px 22px 6px;
  padding: 10px 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.msg { animation: pop-in 0.22s ease-out both; }
.msg.tip { background: var(--yolk); }
.msg.warn { background: #ffd0e3; }
.msg b { font-weight: 800; }
.typing { display: inline-flex; gap: 5px; padding: 14px 18px; }
.typing i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); animation: bounce 0.9s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
.read { align-self: flex-end; font-size: 0.8rem; font-weight: 700; opacity: 0.75; margin: 0; }

@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

.result { max-width: 720px; margin: 28px auto 0; }
.result[hidden] { display: none; }

/* ---------- sign profile ---------- */

.profile h2 { margin-bottom: 10px; }
.profile p { max-width: 66ch; margin: 0 0 14px; }
.profile h3 { font-size: 1.3rem; margin: 18px 0 8px; }
.profile ul { margin: 0 0 14px; padding-left: 1.2rem; max-width: 66ch; }
.profile li { margin-bottom: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; }
.facts .pill { font-size: 0.9rem; }

/* ---------- compatibility ---------- */

.compat-form { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: end; max-width: 720px; margin: 14px auto 0; }
@media (min-width: 720px) { .compat-form { grid-template-columns: 1fr auto 1fr auto; } }
.compat-form label { display: grid; gap: 4px; font-weight: 800; }
.compat-form select {
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 4px 4px 0 var(--ink);
  width: 100%;
}
.compat-x { font-family: var(--font-display); font-size: 2rem; text-align: center; line-height: 1; }
@media (min-width: 720px) { .compat-x { padding-bottom: 12px; } }
