/* quiz41.yowords.com — mobile-first dark quiz layout */
:root {
  --bg: #1a202c;
  --card: #2d3748;
  --card-inner: #1e2533;
  --text: #f7fafc;
  --muted: #a0aec0;
  --accent: #63b3ed;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --maxw: 420px;
}

/* ----- QuizStorm-style (fingameon layout) — AdSense IDs stay yours only ----- */
body.quiz-storm {
  --bg: #0a1628;
  --card: #14294a;
  --card-inner: #0c2139;
  --text: #ffffff;
  --muted: #8da3bf;
  --accent: #60a5fa;
  --radius: 12px;
  --font: "Roboto", "Inter", system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --maxw: 360px;
  background: var(--bg);
  color: var(--text);
  padding: 0.5rem 0.75rem 120px;
}

body.quiz-storm .wrap,
body.quiz-storm .page-shell {
  max-width: 360px;
  margin: 0 auto;
}

body.quiz-storm .ad-block {
  margin: 0 auto 0.5rem;
  max-width: 360px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.quiz-storm .ad-block--tight {
  padding-top: 0.25rem;
}

body.quiz-storm .ad-block ins.adsbygoogle {
  display: block;
  margin: 0 auto;
}

body.quiz-storm .ad-multiplex ins.adsbygoogle,
.result-ad-wrap.ad-multiplex ins.adsbygoogle {
  width: 100%;
  min-width: 280px;
}

body.quiz-storm .ad-block.is-collapsed,
.result-ad-wrap.is-collapsed {
  display: none !important;
}

body.quiz-storm .ad-banner-tall {
  min-height: 0;
}

body.quiz-storm .hero-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 1rem;
}

body.quiz-storm header.hero {
  margin-bottom: 0;
}

body.quiz-storm .hero-title {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

body.quiz-storm .hero-sub {
  margin: 0 0 0.25rem;
  font-size: 15px;
  color: var(--muted);
}

body.quiz-storm .card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

body.quiz-storm .question-card {
  position: relative;
  margin-top: 3.125rem;
  padding: 1.75rem 1rem 1.25rem;
  text-align: center;
}

body.quiz-storm .question-card .badge-float {
  position: absolute;
  left: 50%;
  top: -1rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--card);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

body.quiz-storm .question-text {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

body.quiz-storm .answers {
  gap: 1rem;
  margin-top: 1rem;
}

body.quiz-storm .btn-answer {
  border-radius: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--card-inner);
  color: var(--text);
  min-height: 2.75rem;
}

body.quiz-storm .btn-answer:hover:not(:disabled) {
  background: #172554;
  color: #fff;
}

body.quiz-storm .fact-card {
  margin-top: 3.125rem;
  padding: 0.75rem 1rem 1rem;
}

body.quiz-storm .fact-card .hash {
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
}

body.quiz-storm .fact-card p:last-child {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0;
}

body.quiz-storm .learn-card {
  margin-top: 3.125rem;
  padding: 1rem;
  text-align: center;
}

body.quiz-storm .learn-card h2 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

body.quiz-storm .learn-card h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

body.quiz-storm .learn-card p {
  text-align: justify;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

body.quiz-storm .ad-before-footer {
  margin-top: 1.25rem;
}

body.quiz-storm footer.cta {
  padding: 0.75rem 0 0;
}

body.quiz-storm footer.cta .cta-title {
  display: inline-block;
  margin: 0 auto 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.15rem;
  text-decoration: none;
  color: var(--text);
}

body.quiz-storm footer.cta ul {
  font-size: 15px;
  line-height: 1.45;
  padding-left: 1.25rem;
}

body.quiz-storm .skip-hint a {
  color: var(--accent);
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding: 1rem 1rem 2rem;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

header.hero {
  text-align: center;
  margin-bottom: 1.25rem;
}

header.hero h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
}

header.hero p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.badge {
  display: inline-block;
  margin: 0 auto 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--card-inner);
  font-size: 0.75rem;
  color: var(--muted);
}

.question-head {
  text-align: center;
}

.question-text {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 1rem;
}

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.btn-answer {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  background: var(--card-inner);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  min-height: 3.25rem;
  text-align: center;
}

.btn-answer:hover:not(:disabled) {
  background: #252d3d;
}

.btn-answer:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-answer:disabled {
  cursor: default;
  opacity: 0.85;
}

.btn-answer.selected {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.fact-card,
.learn-card {
  text-align: center;
}

.fact-card .hash {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.learn-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: left;
}

footer.cta {
  margin-top: 0.5rem;
  padding: 1rem;
  text-align: center;
}

footer.cta h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-decoration: underline;
  font-weight: 700;
}

footer.cta ul {
  margin: 0;
  padding-left: 1.1rem;
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
}

footer.cta li {
  margin-bottom: 0.4rem;
}

/* Ad slots */
.ad-slot {
  margin: 1rem auto;
  max-width: var(--maxw);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-inner);
  border-radius: 10px;
  border: 1px dashed #4a5568;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.5rem;
}

.ad-slot ins {
  display: block;
  margin: 0 auto;
}

/* Interstitial overlay */
.interstitial-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.interstitial-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.interstitial-panel {
  width: 100%;
  max-width: var(--maxw);
  margin-top: 0.5rem;
}

.interstitial-panel h2 {
  font-size: 1rem;
  text-align: center;
  margin: 0 0 0.75rem;
}

.interstitial-ad {
  min-height: 280px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #4a5568;
}

.interstitial-placeholder-text {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.btn-continue {
  width: 100%;
  max-width: var(--maxw);
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #1a202c;
  cursor: pointer;
}

.btn-continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.note-small {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.75rem;
  max-width: var(--maxw);
}

.skip-hint {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 480px) {
  header.hero h1 {
    font-size: 1.65rem;
  }
}

/* ----- Reward / result (quiz41.yowords.com style like fingameon result) ----- */
body.result-body {
  background: linear-gradient(165deg, #1e0b3a 0%, #0f172a 45%, #1a1030 100%);
  min-height: 100dvh;
  padding: 1.25rem 1rem 2rem;
}

.result-wrap {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.brand-strip {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.brand-strip span {
  color: #e9d5ff;
}

.result-coin-wrap {
  margin: 0 auto 1rem;
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 12px 24px rgba(245, 158, 11, 0.35));
}

.result-coin-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #a7f3d0;
  letter-spacing: 0.02em;
}

.result-title {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(90deg, #fef08a, #fcd34d, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.result-sub {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.result-ad-wrap {
  margin: 0 auto 1.25rem;
  max-width: var(--maxw);
  min-height: 120px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-ad-wrap ins {
  display: block;
  margin: 0 auto;
}

.btn-claim {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: inherit;
  color: #1e0b3a;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(180deg, #fef9c3 0%, #facc15 40%, #eab308 100%);
  box-shadow: 0 8px 28px rgba(234, 179, 8, 0.45);
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn-claim:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(234, 179, 8, 0.55);
}

.btn-claim:active:not(:disabled) {
  transform: translateY(0);
}

.btn-claim:disabled {
  opacity: 0.65;
  cursor: wait;
}

.claim-done {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #86efac;
  min-height: 1.5rem;
}

.result-foot {
  margin-top: 2rem;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.45;
}

.result-foot a {
  color: #93c5fd;
}
