

:root {
  --ink:#2a1f26; --paper:#f6f2f3; --card:#fff;
  --deep:#7a3246; --deep-dark:#2a1f26; --sun:#b4703a;
  --good:#1d6b45; --bad:#9c3522; --line:#e0d4d8; --muted:#6b5a62;
}

* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }


[hidden] { display:none !important; }

html, body {
  margin:0; padding:0; background:var(--paper); color:var(--ink);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-size:17px; line-height:1.45; min-height:100%;
}

.screen { display:none; }
.screen.on { display:block; }
.pad { padding:1rem 1rem calc(3rem + env(safe-area-inset-bottom)); max-width:40rem; margin:0 auto; }

h1 { font-size:1.6rem; margin:.2rem 0 .4rem; }
h2 { font-size:1.2rem; margin:0 0 .5rem; }
h3 { font-size:1.02rem; margin:1.2rem 0 .4rem; }
.lead { font-size:1.06rem; margin:0 0 1rem; }
.small { font-size:.9rem; }
.muted { color:var(--muted); }
.hint { color:var(--muted); font-size:.88rem; margin:.25rem 0 0; }

button { font:inherit; color:inherit; cursor:pointer; border-radius:10px;
         border:2px solid var(--line); background:#fff; min-height:44px; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline:4px solid var(--deep); outline-offset:2px;
}
button[disabled] { opacity:.55; cursor:default; }

.big { display:flex; align-items:center; gap:.7rem; width:100%; text-align:left;
       padding:.7rem .8rem; margin:0 0 .55rem; }
#btn-grown, #btn-next, #btn-order-check, #btn-p-add, #btn-p-done, #btn-p-next {
  background:var(--deep); color:#fff; border-color:var(--deep); font-weight:600;
  justify-content:center; display:block; width:100%; margin:.5rem 0;
}
#btn-p-add { background:#fff; color:var(--deep); }
.big .rn { flex:0 0 2rem; height:2rem; line-height:2rem; text-align:center; border-radius:50%;
           background:#e3e7f1; color:var(--deep); font-weight:700; }
.big .rt { display:block; }
.big .rt small { display:block; color:var(--muted); font-weight:400; }
.star { color:var(--sun); font-size:.85em; }
.plain, .link { background:none; border:none; color:var(--deep); font-weight:600; padding:.5rem 0; }

.bar { display:flex; justify-content:space-between; align-items:center;
       padding:.4rem 1rem; border-bottom:1px solid var(--line); }

ul.how { padding-left:1.1rem; }
ul.how li { margin:.5rem 0; }

.prompt { font-size:1.08rem; font-weight:600; margin:.4rem 0 .8rem; }
.tlabel { font-weight:600; margin:.8rem 0 .4rem; }
.note { background:#fff; border:2px solid var(--line); border-radius:10px; padding:.7rem;
        margin:.7rem 0; font-size:.96rem; }
.landing { background:#eaf0e8; border:2px solid #9fbf9f; border-radius:10px; padding:.8rem;
           margin:.8rem 0; font-weight:600; }

.choices { display:flex; flex-wrap:wrap; gap:.5rem; margin:.3rem 0 .8rem; }
.choice { flex:1 1 auto; min-width:6rem; padding:.6rem .7rem; font-weight:600; text-align:left; }
.choice.picked { background:var(--deep); color:#fff; border-color:var(--deep); }

.choice.picked::after { content:" \2713"; }
.choice.picked[disabled] { opacity:1; }


.said { background:#fff6e3; border:2px solid #e0c080; border-radius:10px; padding:.5rem .7rem;
        margin:.4rem 0 .8rem; font-weight:600; }

.verdict { min-height:1.5em; margin:.7rem 0 .3rem; font-size:1.06rem; font-weight:600; }
.verdict.good { color:var(--good); }
.verdict.bad { color:var(--bad); }
.verdict.soft { color:var(--muted); font-weight:500; }



.pool { display:flex; flex-wrap:wrap; gap:.4rem; margin:.4rem 0 .8rem; }
.pool .choice { flex:0 1 auto; }
ol.chosen { margin:.6rem 0; padding-left:1.6rem; }
ol.chosen li { margin:.3rem 0; }
.picked-step { background:var(--deep); color:#fff; border-color:var(--deep); font-weight:600;
               padding:.4rem .7rem; min-height:40px; }
.picked-step::after { content:" \00d7"; opacity:.7; }

ol.steps { margin:.6rem 0; padding-left:1.4rem; }
ol.steps li { margin:.5rem 0; }

.carry { font-size:.82rem; font-weight:700; padding:.08rem .4rem; border:2px solid var(--ink);
         border-radius:999px; white-space:nowrap; }
.carry-poor { background:#e4e7ef; border-style:dashed; }
.carry-rich { background:#f8dfe4; border-style:solid; }
.carry-swap { background:#fff; border-style:dotted; }

ol.steps li.exception { box-shadow:inset 4px 0 0 var(--sun); padding-left:.6rem; margin-left:-.6rem; }
.join { font-size:.88rem; color:var(--muted); font-style:italic; }


.stageask { font-weight:700; background:#fff; border:2px solid var(--line); border-radius:10px;
            padding:.7rem; margin:.5rem 0; }
.answer { font:inherit; width:100%; min-height:48px; padding:.5rem .7rem; font-size:1.3rem;
          border:2px solid var(--line); border-radius:10px; background:#fff;
          font-variant-numeric:tabular-nums; }

.working { font-variant-numeric:tabular-nums; font-weight:700; color:var(--deep);
           min-height:1.4em; margin:.4rem 0; }

.runcard { background:#fff; border:2px solid var(--line); border-radius:10px; padding:.7rem;
           margin:.6rem 0; }
.runcard h4 { font-size:.9rem; margin:0 0 .3rem; color:var(--muted); text-transform:uppercase;
              letter-spacing:.05em; }
.bignum { font-size:1.5rem; font-weight:700; margin:.2rem 0; line-height:1.2; }
.bignum .of { font-size:.9rem; font-weight:400; color:var(--muted); }


.chart { margin:.5rem 0; }
.cr { display:grid; grid-template-columns:4.6rem 1fr 2rem; align-items:center; gap:.5rem;
      padding:.15rem 0; }
.cl { font-size:.85rem; color:var(--muted); font-variant-numeric:tabular-nums; }
.ct { height:1.1rem; background:#efe7ea; border:1px solid var(--line); display:block; }
.cf { display:block; height:100%; background:var(--deep); }
.cn { font-weight:700; font-size:.9rem; text-align:right; font-variant-numeric:tabular-nums; }

.quote { background:#fff; border-left:4px solid var(--deep); padding:.6rem .8rem; margin:.7rem 0;
         font-style:italic; }
.srcs { padding-left:1.1rem; }
.srcs li { margin:.4rem 0; }
.srcs .u { color:var(--muted); word-break:break-all; font-size:.85rem; }


.choice.picked { background:var(--deep); color:#fff; border-color:var(--deep); }
.choice.picked::after { content:" \2713"; }
.choice.picked[disabled] { opacity:1; }
.choice.isright { border-color:var(--deep); border-width:3px; opacity:1; }
.choice.isright::before { content:"\2713 "; font-weight:700; }
