/* 50 Bollywood quiz questions: styles for this page only.
   Shared light-theme styles (fonts, colours, header, FAQ, footer) are in /assets/light-pages.css. */

button { font-family: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; align-items: center; padding: 18px 0 8px; }
h1 { margin: 0 0 12px; font-family: "Shrikhand", cursive; font-weight: 400; font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.08; }
.lede { margin: 0 0 16px; color: var(--muted); }
.print-link { background: none; border: 0; padding: 0; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }
.hero-art { width: 100%; max-width: 300px; justify-self: center; }
/* round tabs */
.tabs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  margin: 22px 0 6px; padding: 6px;
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px 8px; border: 0; border-radius: 14px;
  background: transparent; color: var(--muted); cursor: pointer;
  font-weight: 600; font-size: .9rem;
  transition: background .2s, color .2s, transform .15s;
}
.tab:hover { color: var(--ink); }
.tab:active { transform: scale(.96); }
.tab[aria-selected="true"] { background: var(--marigold-soft); color: var(--ink); }
.tab-icon svg { width: 24px; height: 24px; display: block; }
.tab[aria-selected="true"] .tab-icon { animation: wiggle .5s ease; }
.tab-count { font-size: .72rem; font-weight: 700; min-height: 1.1em; color: var(--green); }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } }
/* round panel */
.panel { padding: 18px 0 0; }
.panel:not([hidden]) { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel-head { margin-bottom: 14px; }
h2 { margin: 0; font-family: "Shrikhand", cursive; font-weight: 400; font-size: 1.55rem; }
.blurb { margin: 2px 0 0; color: var(--muted); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card {
  position: relative;
  padding: 18px 20px;
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color .25s, background .25s;
}
.card.right { border-color: var(--green); }
.card.wrong { border-color: var(--coral-soft); }
.qn { margin: 0 0 2px; font-size: .78rem; font-weight: 700; color: var(--terracotta); letter-spacing: .06em; }
/* The question leads; "Show answer" is a quiet text link underneath it */
.q { margin: 0 0 6px; font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.show {
  border: 0; padding: 6px 0; background: none; color: var(--ink);
  font-weight: 600; font-size: .92rem; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--marigold);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
  transition: text-decoration-color .15s;
}
.show:hover { text-decoration-color: var(--terracotta); }
.ans:not([hidden]) { animation: pop .35s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(-4px); } to { opacity: 1; transform: none; } }
.a { margin: 0 0 12px; font-family: "Shrikhand", cursive; font-size: 1.35rem; line-height: 1.2; color: var(--terracotta); }
.mark { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mark-q { font-size: .92rem; color: var(--muted); margin-right: 4px; }
.mark button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: .95rem;
  border: 2px solid var(--line); background: var(--card); color: var(--ink);
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.mark button svg { width: 16px; height: 16px; }
.mark button:active { transform: scale(.94); }
.yes:hover { border-color: var(--green); }
.no:hover { border-color: var(--coral); }
.yes[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.no[aria-pressed="true"] { background: var(--coral-soft); border-color: var(--coral-soft); color: var(--coral); }
.card.shake { animation: shake .35s ease; }
@keyframes shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.round-end { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 0 8px; text-align: center; }
.round-score { margin: 0; min-height: 1.4em; font-weight: 600; }
.round-score.done { font-family: "Shrikhand", cursive; font-weight: 400; font-size: 1.4rem; color: var(--green); animation: pop .4s cubic-bezier(.2,1.4,.4,1); }
.next {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 12px 22px; border: 0; border-radius: 999px;
  background: var(--marigold); color: var(--ink);
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 #c9852a;
  transition: transform .15s, box-shadow .15s;
}
.next:hover { transform: translateY(-1px); }
.next:active { transform: translateY(3px); box-shadow: 0 1px 0 #c9852a; }
/* floating score */
.score-pill {
  position: fixed; z-index: 20; right: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px;
  background: var(--ink); color: var(--card);
  border-radius: 999px; box-shadow: 0 8px 24px rgba(42,29,23,.25);
  font-size: .95rem; white-space: nowrap;
  transform: translateY(120%); opacity: 0;
  transition: transform .35s cubic-bezier(.2,1.3,.4,1), opacity .25s;
}
.score-pill.on { transform: none; opacity: 1; }
.star { width: 22px; height: 22px; color: var(--marigold); }
.score-pill b { font-size: 1.15rem; }
.score-pill .played { opacity: .7; }
.score-pill .reset { margin-left: 4px; padding: 3px 10px; border: 1px solid rgba(255,252,246,.3); border-radius: 999px; background: none; color: var(--card); font-size: .8rem; cursor: pointer; }
.bump { animation: bump .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes bump { 40% { transform: scale(1.35) rotate(-8deg); } }
.confetti { position: fixed; z-index: 30; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; }
/* CTA + FAQ */
.cta {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  margin: 40px 0 0; padding: 24px; border-radius: 24px;
  background: var(--marigold-soft);
}
.cta svg { width: 92px; height: auto; }
.cta h2 { font-size: 1.4rem; }
.cta p { margin: 4px 0 14px; color: var(--muted); }
.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--ink); color: var(--card); font-weight: 600; text-decoration: none; }
.faqs { margin: 40px 0 0; }
.faqs h2 { font-size: 1.35rem; margin-bottom: 6px; }
footer { margin: 48px 0 0; padding: 26px 0 100px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
/* hero illustration motion */
.kernel { animation: popcorn 2.6s cubic-bezier(.3,.7,.4,1) infinite; transform-box: fill-box; transform-origin: center; }
.kernel.k2 { animation-delay: .9s; }
.kernel.k3 { animation-delay: 1.7s; }
@keyframes popcorn {
  0%, 8% { transform: translate(0,0) scale(.4); opacity: 0; }
  15% { opacity: 1; transform: translate(0,-6px) scale(1); }
  45% { transform: translate(var(--dx), -58px) scale(1) rotate(160deg); opacity: 1; }
  75% { transform: translate(calc(var(--dx) * 1.6), -18px) scale(.9) rotate(300deg); opacity: 0; }
  100% { opacity: 0; }
}
.clapper-arm { transform-box: fill-box; transform-origin: 0% 100%; animation: clap 4s ease-in-out infinite; }
@keyframes clap { 0%, 70%, 100% { transform: rotate(-22deg); } 78% { transform: rotate(0); } 84% { transform: rotate(-14deg); } 88% { transform: rotate(0); } }
.twinkle.t2 { animation-delay: .7s; }
.twinkle.t3 { animation-delay: 1.4s; }
.answer-key { display: none; }
@media (max-width: 620px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 220px; }
  .hero-text { text-align: center; }
  .tabs { margin-left: -8px; margin-right: -8px; }
  .tab { font-size: .8rem; padding: 9px 2px 7px; }
  .score-pill { left: 50%; right: auto; bottom: 14px; gap: 8px; padding: 8px 10px 8px 10px; font-size: .88rem; transform: translate(-50%, 120%); }
  .score-pill.on { transform: translate(-50%, 0); }
  .cta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media print {
  body { background: #fff; font-size: 11pt; }
  .site-header, .hero-art, .print-link, .tabs, .show, .ans, .round-end, .score-pill, .cta, .faqs, footer, .lede { display: none !important; }
  .panel[hidden] { display: block !important; }
  .panel { padding-top: 10px; }
  .card { box-shadow: none; padding: 4px 0; border: 0; break-inside: avoid; }
  .cards { gap: 2px; }
  .q { margin: 0; font-size: 11pt; }
  .answer-key { display: block; break-before: page; }
  .keylist { list-style: none; padding: 0; }
}
