/* Can you run a chai stall better than me? In Raju Mudireddy's brand:
   Ink #15171B · Paper #F6F4EF · Forest #1D5A46 · Signal orange #E2711D (small doses) · Mint #86C8AD · Lora + Inter */
@font-face { font-family: "Lora"; src: url("../fonts/lora-var.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic-var.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600 700; font-display: swap; }
:root {
  --ink: #15171B; --ink2: #3A3F47; --muted: #646A74; --paper: #F6F4EF; --card: #FFFFFF; --rule: #DCD7CB; --forest: #1D5A46;
  --signal: #E2711D; --mint: #86C8AD; --rival: #8C4A32;
  --lora: "Lora", Georgia, serif; --inter: "Inter", Arial, system-ui, sans-serif; --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--inter); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1:focus, h2:focus { outline: none; }

.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(246, 244, 239, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 17px/1 var(--lora); min-height: 44px; }
.brand svg { width: 28px; height: 28px; }
.score { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.score strong { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.score__vs { font: italic 500 13px var(--lora); }
.score.is-ahead span:first-child strong { color: var(--forest); }

.stage { max-width: 760px; margin: 0 auto; padding: 26px 16px 56px; }
.scr.is-in { animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.label { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--forest); margin: 0 0 10px; }
.display { font: 500 clamp(2.1rem, 7vw, 3.4rem)/1.08 var(--lora); letter-spacing: -.015em; margin: 0; }
.display em { font-style: italic; color: var(--forest); }
.title { font: 500 clamp(1.6rem, 5vw, 2.2rem)/1.15 var(--lora); margin: 0 0 14px; }
.lede { font-size: 1.1rem; color: var(--ink2); margin: 14px 0 20px; max-width: 34em; }
.fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.challenge { background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 10px; margin: 0 0 18px; }
/* start: the street, your empty stall, Bhai's stall and Bhai himself */
.hero { position: relative; aspect-ratio: 2 / 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--rule); margin: 0 0 22px; background: #F3E6CF; container-type: inline-size; }
@media (max-width: 520px) { .hero { aspect-ratio: 3 / 2; } .hero__stall { height: 52%; } .hero__stall--you { left: 2%; } .hero__stall--bhai { right: 29%; } .hero__say { right: 30%; max-width: 60%; } .hero__stall--you .hero__tag { top: 32%; right: -10%; } }
.hero img { display: block; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero__stall { position: absolute; bottom: 6%; height: 64%; }
.hero__stall img { height: 100%; width: auto; }
.hero__stall--you { left: 5%; }
.hero__stall--bhai { right: 21%; }
.hero__sign, .hero__tag { position: absolute; font: 700 clamp(9px, 2.1cqw, 15px)/1.15 var(--inter); white-space: nowrap; }
.hero__sign { left: 50%; transform: translateX(-50%); top: 2%; padding: .35em .7em; background: #F3E6CF; border: 1.5px solid var(--ink); border-radius: 4px; color: var(--ink); }
.hero__stall--bhai .hero__sign { background: #EAD3B0; }
.hero__tag { top: 14%; right: -6%; padding: .3em .6em; border-radius: 999px; background: var(--forest); color: #fff; }
.hero__stall--bhai .hero__tag { right: auto; left: -6%; background: var(--rival); }
.hero__bhai { position: absolute; right: 0; bottom: 0; height: 74%; width: auto; }
.hero__say { position: absolute; right: 21%; top: 6%; margin: 0; max-width: 46%; background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--rival); border-radius: 12px; padding: 6px 10px;
  font: italic 500 clamp(12px, 2.2cqw, 16px)/1.3 var(--lora); box-shadow: 0 6px 16px rgba(21, 23, 27, .12); }

/* Bhai's face next to what he says or does */
.face { width: 64px; height: 64px; border-radius: 14px; background: #F3E6CF; border: 1px solid #E2B9A6; flex: none; display: block; }
.news__art { display: block; width: 100%; height: auto; border-radius: 10px; margin: 0 0 12px; }
.news__row { display: flex; gap: 12px; align-items: flex-start; }
.news__row p { margin: 0; }
.opt__icon { width: 34px; height: 34px; object-fit: contain; float: right; margin: -2px 0 0 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background .2s; }
.btn:active { transform: scale(.98); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #2A2E35; }
.btn--line { background: transparent; border-color: #5A5F68; color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { background: #B9BDC4; color: var(--ink); cursor: not-allowed; }
.btn.is-off { opacity: .45; pointer-events: none; }
.linkbtn { background: none; border: 0; min-height: 44px; padding: 8px 0; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* choices */
.news { background: #FFF6EC; border: 1px solid #EBC9A6; border-radius: 12px; padding: 12px 14px; margin: 0 0 18px; }
.group { border: 0; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.group legend { font-size: 14px; color: var(--ink2); margin-bottom: 10px; padding: 0; font-weight: 600; }
.group--chips { grid-template-columns: repeat(3, 1fr); }
.opt { text-align: left; background: var(--card); border: 1.5px solid var(--rule); border-radius: 14px; padding: 14px 16px; cursor: pointer; display: grid; gap: 2px; min-height: 56px; transition: border-color .2s, box-shadow .2s; }
.opt:hover { border-color: #A9AFB8; }
.opt[aria-checked="true"] { border-color: var(--forest); box-shadow: 0 0 0 2px var(--forest) inset; background: #F2F8F5; }
.opt__title { font-weight: 600; font-size: 1.05rem; }
.opt__line { font-size: 14px; color: var(--muted); }
.opt--chip { text-align: center; padding: 10px 6px; }
.opt--chip .opt__title { font: 600 1.4rem/1.1 var(--inter); }
.opt.is-off { opacity: .6; cursor: not-allowed; background: #EFECE5; }
.opt.is-off .opt__line { color: var(--rival); }
.go { margin-top: 8px; }
/* phones: keep the next-step button ("Open the stall", "Day 2 →") on screen without scrolling */
@media (max-width: 720px) {
  html { scroll-padding-bottom: 100px; }
  .go { position: sticky; bottom: 0; z-index: 5; margin: 8px -16px 0; padding: 18px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(rgba(246, 244, 239, 0), var(--paper) 30%); }
}
.group--six { grid-template-columns: repeat(3, 1fr); }
.group--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .group--two { grid-template-columns: 1fr; } }
.verdict { display: inline-block; margin: 0 0 10px; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.verdict.is-win { background: var(--forest); color: #fff; }
.verdict.is-lose { background: var(--rival); color: #fff; }
.h2h table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; font-variant-numeric: tabular-nums; }
.h2h th, .h2h td { padding: 10px 14px; text-align: right; border-bottom: 1px solid #EEEAE1; }
.h2h td { white-space: nowrap; }
.h2h th[scope="row"] { text-align: left; font-weight: 400; color: var(--ink2); }
.h2h thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.h2h thead th:nth-child(2) { color: var(--forest); } .h2h thead th:nth-child(3) { color: var(--rival); }
.h2h tr:last-child th, .h2h tr:last-child td { border-bottom: 0; }
.notes { margin: 16px 0 0; padding-left: 20px; color: var(--ink2); }
.notes li { margin: 5px 0; }
.voice--bhai { color: var(--rival); }
.sub { color: var(--ink2); font-size: 1.05rem; margin: 10px 0 0; }
.display em.lose { color: var(--rival); }
.chartbox { margin: 24px 0 0; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 12px 12px 4px; }
.chart { width: 100%; height: auto; display: block; }
.b-you { fill: var(--forest); } .b-bhai { fill: var(--rival); } .b-axis { stroke: var(--rule); stroke-width: 1.5; }
.b-lab { font: 600 12px var(--inter); fill: var(--ink2); }
.legend { font-size: 13px; color: var(--muted); margin: 4px 0 6px; }
.legend .dot { margin-left: 8px; }
.share__score { margin: 0 0 12px; }

/* street */
.street { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--rule); background: #F3E6CF; }
#street { display: block; width: 100%; }
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble { position: absolute; bottom: 4%; max-width: 48%; margin: 0; background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--forest); border-radius: 12px; padding: 6px 10px; font-size: 13px; line-height: 1.3;
  box-shadow: 0 6px 16px rgba(21, 23, 27, .12); animation: pop .35s var(--ease); transition: opacity .4s; }
.bubble--rival { border-color: #E2B9A6; border-left-color: var(--rival); }
@media (max-width: 480px) { .bubble { font-size: 12px; padding: 5px 8px; } }
.bubble.is-out { opacity: 0; }
@keyframes pop { from { transform: translateY(6px) scale(.9); opacity: 0; } }
.tally { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 4px; }
.tally p { margin: 0; }
.tally strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot--you { background: var(--forest); } .dot--rival { background: var(--rival); }

/* day result */
.nums dl { margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 8px 16px; }
.nums dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #EEEAE1; }
.nums dl div:last-child { border-bottom: 0; }
.nums dt { color: var(--ink2); } .nums dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.vs { color: var(--muted); font-size: 14px; }
.note { font-size: 14px; color: var(--ink2); }
.voices { margin: 22px 0 0; }
.voice { font: italic 500 1.1rem/1.4 var(--lora); margin: 6px 0; }
.rival { margin: 22px 0 6px; padding: 14px 16px; border-left: 3px solid var(--rival); background: #FBF2EC; border-radius: 0 12px 12px 0; display: flex; gap: 14px; align-items: flex-start; }
.rival p { margin: 0 0 6px; }
.rival__say { font: italic 500 1.1rem/1.4 var(--lora); color: var(--rival); }
.rival .label { color: var(--rival); margin-bottom: 4px; }
.rival p:last-child { margin: 0; }

/* debrief */
.badge-title { display: inline-block; margin: 14px 0 0; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); font: italic 500 1.05rem/1.2 var(--lora); }
.vsline { font-weight: 600; margin: 12px 0 0; }
.days { width: 100%; border-collapse: collapse; margin: 22px 0 0; font-size: 14px; }
.days th, .days td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.days th { color: var(--muted); font-weight: 600; font-size: 13px; }
.days td:last-child, .days th:last-child { text-align: right; white-space: nowrap; }
.h3 { font: 500 1.45rem/1.2 var(--lora); margin: 36px 0 14px; }
.lessons { display: grid; gap: 12px; }
.lesson { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 16px 18px; }
.lesson__n { margin: 0; color: var(--forest); font-weight: 600; font-size: 13px; }
.lesson h4 { font: 500 1.2rem/1.25 var(--lora); margin: 4px 0 6px; }
.lesson p:last-child { margin: 0; color: var(--ink2); }
.mine { margin: 32px 0 0; background: var(--ink); color: var(--paper); border-radius: 18px; padding: 22px; }
.mine .label { color: var(--mint); }
.mine__quote { font: italic 500 1.25rem/1.45 var(--lora); margin: 0; }
.mine__by { margin: 12px 0 0; color: #B9BDC4; font-size: 14px; }
.share__name { display: grid; gap: 6px; font-size: 14px; margin: 0 0 12px; }
.share__name span { color: var(--muted); font-size: 13px; }
.share__name input { min-height: 48px; border: 1px solid #A9AFB8; border-radius: 10px; padding: 0 14px; font: inherit; background: #fff; }
.share__btns { display: grid; gap: 10px; }
.share__status { min-height: 1.4em; color: var(--forest); font-size: 14px; }
.cta { margin: 28px 0 0; padding: 22px; border: 1.5px solid var(--forest); border-radius: 18px; background: #F2F8F5; }
.cta .h3 { margin-top: 0; }
.cta__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 14px 0 0; }
.cta__more { color: var(--forest); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.how { margin: 28px 0 0; border: 1px solid var(--rule); border-radius: 14px; padding: 2px 16px; background: var(--card); }
.how summary { cursor: pointer; padding: 12px 0; min-height: 44px; font-weight: 600; }
.how li { margin: 6px 0; color: var(--ink2); font-size: 15px; }
.again { margin: 24px 0 0; }
.credit { margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
.credit b { color: var(--signal); font-weight: 600; }
.noscript { padding: 24px; }

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

/* score card + sharing */
.share__lead { color: var(--ink2); margin: -6px 0 14px; }
.share__grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .share__grid { grid-template-columns: 300px 1fr; align-items: start; } }
.share__card { width: 100%; max-width: 360px; height: auto; border-radius: 14px; border: 1px solid var(--rule); box-shadow: 0 14px 34px rgba(21, 23, 27, .12); }
.share__btns { display: grid; gap: 10px; grid-template-columns: 1fr; }
