/* ===== COLOURS — inga maathina full site maarum ===== */
:root {
  --purple: #6C5CE7;   /* page background */
  --yellow: #f8e67c;   /* main buttons */
  --pink:   #fa5e5e;   /* selected option / fake friend */
  --green:  #2ED47A;   /* good score */
  --ink:    #14121F;   /* text + borders */
  --paper:  #FFFBF2;   /* card background */
}
* { box-sizing: border-box; }

body {
  margin: 0; min-height: 100dvh; display: grid; place-items: center; padding: 16px;
  font-family: "Poppins", system-ui, sans-serif; color: var(--ink);
  background: var(--purple);
  background-image: radial-gradient(rgba(255,255,255,.2) 2px, transparent 2px);
  background-size: 24px 24px;
}

/* Main card: thick border + hard shadow = trendy sticker look */
.card {
  width: 100%; max-width: 720px; padding: 22px 16px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink);
}
h1, h2 { font-family: "Fredoka", sans-serif; line-height: 1.1; margin: 0 0 12px; }
h1 { font-size: 36px; }
h2 { font-size: 28px; }
p  { line-height: 1.5; margin: 0 0 16px; }
.small { font-size: 13px; font-weight: 600; opacity: .6; margin: 0 0 4px; }

/* Inputs & buttons */
input {
  width: 100%; padding: 14px; font: inherit; font-size: 16px; margin-bottom: 14px;
  background: #fff; border: 3px solid var(--ink); border-radius: 16px;
}
.btn {
  width: 100%; padding: 14px; margin-bottom: 12px; font: 600 16px "Poppins", sans-serif; color: var(--ink);
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink); cursor: pointer; transition: transform .1s, box-shadow .1s;
}
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn.light { background: #fff; }
:focus-visible { outline: 3px dashed var(--pink); outline-offset: 3px; }

/* Progress bar (10 small blocks) */
.progress { display: flex; gap: 4px; margin-bottom: 18px; }
.progress span { flex: 1; height: 10px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; }
.progress span.done { background: var(--purple); }

/* ===== 2 OPTION CARDS (image/gif + text) ===== */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.option {
  padding: 0; overflow: hidden; cursor: pointer; text-align: center;
  background: #fff; border: 3px solid var(--ink); border-radius: 20px;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.option:hover { transform: translateY(-3px); }
.option img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: 3px solid var(--ink); background: #ddd; }
.option .label { display: block; padding: 12px 6px; font: 700 16px "Fredoka", sans-serif; }
.option:disabled { cursor: default; transform: none; }
.option.picked { background: var(--pink); transform: translate(4px, 4px) rotate(-2deg); box-shadow: 0 0 0 var(--ink); }

/* Scores */
.big-score { font: 700 72px "Fredoka", sans-serif; margin: 0; }
.verdict { display: inline-block; padding: 6px 14px; margin-bottom: 18px; font-weight: 600;
           border: 3px solid var(--ink); border-radius: 999px; }
.verdict.good { background: var(--green); } .verdict.bad { background: var(--pink); }
.row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 2px dashed #ccc; font-weight: 600; }
.row b { padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px; }
.row b.good { background: var(--green); } .row b.bad { background: var(--pink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== Right / wrong feedback (friend mode) ===== */
.option { position: relative; font: inherit; color: inherit; }
.option.right { background: var(--green); }
.option.wrong { background: var(--pink); transform: rotate(-2deg); }
.option .tag { display: block; margin: -4px 8px 10px; padding: 3px 6px; font: 600 12px "Poppins", sans-serif;
               background: var(--ink); color: #fff; border-radius: 999px; }
.feedback { margin-top: 18px; padding: 14px; border: 3px solid var(--ink); border-radius: 18px; }
.feedback p { margin: 0 0 12px; font-weight: 600; }
.feedback .btn { margin: 0; }
.feedback.good { background: #c8f7dc; } .feedback.bad { background: #ffd6e6; }

/* ===== Leaderboard + layout bits ===== */
.section { margin-top: 26px; font-size: 24px; }
.row i { display: inline-block; width: 28px; font-style: normal; opacity: .5; }
.btn-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }

/* ===== Responsive: mobile = 2x2 options, desktop = 4 in a row ===== */
@media (min-width: 700px) {
  .card { padding: 36px 40px; }
  h1 { font-size: 44px; }
  .options { grid-template-columns: repeat(4, 1fr); }
  .option .label { font-size: 17px; }
}
@media (max-width: 360px) { h1 { font-size: 30px; } .option .label { font-size: 14px; } }


.reward { display: block; width: 100%; max-width: 320px; margin: 0 auto 16px;
          border: 3px solid var(--ink); border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); }


.msg-box { margin: 0 0 16px; padding: 14px 16px; background: var(--yellow);
           border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink);
           font-weight: 600; line-height: 1.5; }


.btn.wa { background: #25D366; }
.btn.share { background: var(--pink); }

/* ===== Header / footer / info pages (style.css kadaisi la paste pannu) ===== */
.shell { width: 100%; max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 8px 0; }
.shell main { width: 100%; }
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo { height: 44px; width: auto; border-radius: 10px; }
.brand { font: 700 26px "Fredoka", sans-serif; text-shadow: 3px 3px 0 var(--ink); }
.site-footer { text-align: center; color: #fff; font-size: 14px; }
.site-footer a { color: #fff; font-weight: 600; margin: 0 10px; }
.site-footer p { margin: 8px 0 0; opacity: .8; }
.page h2 { font-size: 20px; margin: 22px 0 8px; }
.page p, .page li { line-height: 1.6; }
.page ul { padding-left: 20px; margin: 0 0 16px; }
.page a { color: var(--purple); font-weight: 600; }
.back { display: inline-block; margin-bottom: 14px; font-weight: 600; color: var(--purple); text-decoration: none; }
.updated { font-size: 13px; opacity: .6; }
/* ===== Landing page (index.html) ===== */
body.bg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.brandhome { font: 700 50px "Fredoka", sans-serif; color: #fff; text-shadow: 3px 3px 0 var(--ink); }
.homes { width: 100%; max-width: 420px; height: auto; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 8px 8px 0 var(--ink); }
a.btn { display: block; text-align: center; text-decoration: none; }
.btn.position { max-width: 420px; }
