/* Mattsons' Kitchen cook-along. Palette from site.css. Designed at 1280x800 (Echo Show 8/10); rem scales with the screen. */
:root{--bg:#171717;--surface:#232323;--surface-2:#2c2c2c;--line:#3d3d3d;--text:#fff;--muted:#b3b3b3;
  --accent:#286fbd;--accent-hover:#1f5fa6;--accent-text:#7fb2ec;--teal:#a0e2e1;--gold:#ffd27a;--art:#2b2b2b;
  --font:'Inter Tight',system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
*{box-sizing:border-box}
html{font-size:calc(16px * min(100vw / 1280px, 100vh / 800px));-webkit-text-size-adjust:100%}
html,body{margin:0;height:100%;overflow:hidden}
body{background:var(--bg);color:var(--text);font-family:var(--font);display:flex;flex-direction:column;
  user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
button{font:inherit;cursor:pointer}
a{color:var(--teal)}
:focus-visible{outline:3px solid var(--accent-text);outline-offset:3px}

.top{flex:none;height:4rem;display:flex;align-items:center;gap:.75rem;padding:0 2rem;border-bottom:1px solid var(--line)}
.home{display:flex;align-items:center;gap:.75rem;min-width:0;color:var(--text);text-decoration:none;border-radius:.6rem}.home:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.logo{width:2.5rem;height:2.5rem;object-fit:contain;flex:none}
.brand{font-weight:800;font-size:1.375rem;white-space:nowrap}
.mode{margin-left:auto;color:var(--accent-text);font-weight:700;text-transform:uppercase;letter-spacing:.12em;font-size:.95rem}
.timer-pill{display:flex;align-items:stretch;background:rgba(160,226,225,.15);border:1px solid var(--teal);border-radius:999px;overflow:hidden}
.timer-pill[hidden]{display:none}
.timer-pill button{background:none;border:0;color:var(--teal);font:inherit;font-weight:800;font-size:1rem;font-variant-numeric:tabular-nums;min-height:2.75rem;padding:0 .9rem;cursor:pointer;white-space:nowrap}
.timer-pill .pill-x{border-left:1px solid var(--teal);font-size:.95rem}
.close{width:2.75rem;height:2.75rem;border-radius:.75rem;border:1px solid var(--line);display:grid;place-items:center;font-size:1.375rem;color:var(--muted);text-decoration:none;margin-left:.5rem}
.topbar{display:none}

main{flex:1;min-height:0;display:flex;gap:1.75rem;padding:1.5rem 2rem 0}
.loading{color:var(--muted);font-size:1.5rem}
.left{flex:none;width:23.75rem;display:flex;flex-direction:column;gap:1rem;min-height:0}
.art{background:var(--art);border-radius:1.25rem;border:1px solid var(--line);display:flex;align-items:center;justify-content:space-around;height:18.75rem;padding:1rem;flex:none}
.art img{max-width:15rem;max-height:15rem;width:auto;height:auto}
.art.multi{height:8rem}.art.multi img{max-width:6.5rem;max-height:6.5rem}
.title{font-size:1.875rem;font-weight:800;line-height:1.1;margin:0;letter-spacing:-.01em}
.start .title{font-size:2.2rem}
.sub{color:var(--muted);font-size:1.0625rem;margin-top:.25rem}
.desc{color:#ddd;font-size:1.1875rem;line-height:1.4;margin:0}
.chips{display:flex;gap:.6rem;flex-wrap:wrap}
.chip{background:var(--surface-2);border:1px solid var(--line);border-radius:999px;padding:.35rem .9rem;font-size:1rem;font-weight:700}
.chip.v{color:var(--teal);border-color:var(--teal)}
.prog .lbl{font-size:1.125rem;font-weight:700;color:var(--muted);margin-bottom:.5rem}.prog .lbl b{color:#fff}
.bar{display:flex;gap:.375rem}.bar span{flex:1;height:.625rem;border-radius:.3rem;background:var(--surface-2)}
.bar span.done{background:var(--accent)}.bar span.now{background:var(--teal)}
.recipe-link{color:var(--teal);font-weight:700;font-size:1rem}

.right{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0}
.eyebrow{color:var(--teal);font-weight:800;text-transform:uppercase;letter-spacing:.12em;font-size:1.125rem;margin-bottom:.6rem;flex:none}
.eyebrow-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex:none;margin-bottom:.6rem}
.eyebrow-row .eyebrow{margin:0}
.speak{flex:none;background:var(--surface-2);border:2px solid var(--line);color:#fff;border-radius:999px;font-weight:800;font-size:1.125rem;padding:.55rem 1.1rem;min-height:3rem}
.speak.on{border-color:var(--teal);color:var(--teal);background:rgba(160,226,225,.12)}
.stepwrap{flex:1;min-height:0;overflow:hidden}
.step{font-size:2.45rem;font-weight:700;line-height:1.22;margin:0}
.amt{background:rgba(255,210,122,.16);color:var(--gold);border-radius:.6rem;padding:0 .4em;font-weight:800;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.note{color:var(--muted);font-size:1.15rem;line-height:1.35;margin:.9rem 0 0;border-left:4px solid var(--accent);padding-left:.8rem}

.checks{flex:none;background:var(--surface);border:1px solid var(--line);border-radius:1rem;padding:.75rem 1.1rem;margin:1rem 0 0}
.checks .head{display:flex;justify-content:space-between;align-items:center;gap:1rem;font-size:1.125rem;font-weight:700;color:var(--muted)}
.checks .head button{background:none;border:0;color:var(--accent-text);font-weight:700;font-size:1.05rem;padding:.2rem .3rem}
.checks ul{list-style:none;margin:.5rem 0 .1rem;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:.3rem 1.25rem;font-size:1.125rem}
.checks li{min-width:0;max-height:5rem;overflow:hidden;transition:opacity .3s ease,max-height .3s ease}
.checks li.leaving{opacity:0;max-height:0}
.checks .chk{width:100%;min-height:2.9rem;display:flex;gap:.7rem;align-items:center;text-align:left;background:none;border:0;border-radius:.6rem;padding:.25rem .35rem;color:var(--gold);font:inherit;font-weight:700;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.checks .chk:active{background:rgba(255,255,255,.06)}
.checks .chk .box{width:1.6rem;height:1.6rem;border-color:var(--gold)}
.checks li.got .chk{color:#8a8a8a}.checks li.got .t{text-decoration:line-through}
.checks li.got .box{background:var(--accent);border-color:var(--accent)}
.checks.collapsed ul{display:none}
.box{width:1.4rem;height:1.4rem;border-radius:.375rem;border:2px solid #777;display:inline-grid;place-items:center;font-size:.95rem;flex:none;color:#fff}
.used{color:#8a8a8a;text-decoration:line-through}.used .box,.got .box{background:var(--accent);border-color:var(--accent)}
.use{color:var(--gold);font-weight:700}.use .box{border-color:var(--gold)}

.ing{list-style:none;padding:0;margin:0;display:grid;gap:.6rem;overflow:auto;min-height:0}
.ing.two{grid-template-columns:1fr 1fr;gap:.5rem}
.ing li button{width:100%;display:flex;align-items:center;gap:1.1rem;text-align:left;font-size:1.6rem;font-weight:600;color:#fff;background:var(--surface);border:1px solid var(--line);border-radius:.9rem;padding:.6rem 1.25rem}
.ing.two li button{font-size:1.2rem;padding:.5rem .9rem;gap:.7rem;line-height:1.2}
.ing .box{width:2rem;height:2rem;border-width:3px;border-radius:.5rem}
.ing.two .box{width:1.5rem;height:1.5rem}
.ing b{color:var(--gold);min-width:9.5rem;flex:none}
.ing.two b{min-width:4.2rem}
.ing b:empty{display:none}
.ing .got{color:#8a8a8a}.ing .got span.t{text-decoration:line-through}

.done-screen{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:1rem}
.done-art{display:block;width:min(62vw,34vh,340px);height:auto;aspect-ratio:1/1;border-radius:24px;background:#2a2a2a;box-shadow:0 0 0 3px rgba(255,255,255,.18),0 10px 30px rgba(0,0,0,.45)}.done-art[hidden]{display:none}
.done-screen h2{font-size:3rem;margin:0}.done-screen p{font-size:1.3rem;color:#ddd;margin:0;max-width:44rem}

.btns{flex:none;display:flex;gap:1rem;padding:1.125rem 2rem;height:7.75rem}
.btn{border-radius:1.25rem;font-size:1.75rem;font-weight:800;display:flex;align-items:center;justify-content:center;gap:.75rem;border:0;text-decoration:none}
.back{width:15rem;background:var(--surface-2);border:2px solid var(--line);color:#ddd}
.back:disabled{opacity:.35}
.timer{flex:1;background:transparent;border:3px solid var(--teal);color:var(--teal);font-variant-numeric:tabular-nums}
.timer.running{background:rgba(160,226,225,.12)}
.skip{flex:none;padding:0 1.5rem;background:var(--surface-2);border:2px solid var(--line);color:#ddd;font-size:1.6rem;white-space:nowrap}
.skip[hidden]{display:none}
.hint{flex:1;border:2px solid var(--line);color:var(--muted);font-size:1.5rem}
.spacer{flex:1}
.next{width:22.5rem;background:var(--accent);color:#fff}
.next:active{background:var(--accent-hover)}
.start-mode .next{width:32.5rem}

.foot{flex:none;height:2.5rem;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:.875rem;border-top:1px solid var(--line);padding:0 1rem;white-space:nowrap;overflow:hidden}
.foot i{color:#ddd}.foot a{color:var(--accent-text);font-weight:700;text-decoration:none}
.foot .short{display:none}

.alarm{position:fixed;inset:0;background:rgba(0,0,0,.75);display:grid;place-items:center;z-index:10;animation:flash 1s steps(2) infinite}
.alarm-card{background:var(--surface);border:4px solid var(--teal);border-radius:1.5rem;padding:2.5rem 3.5rem;text-align:center;display:flex;flex-direction:column;gap:1rem;align-items:center}
.alarm-title{font-size:3.5rem;font-weight:800}.alarm-sub{font-size:1.6rem;color:#ddd}
.alarm .btn{height:5.5rem;width:16rem}
@keyframes flash{50%{background:rgba(40,111,189,.55)}}

/* Echo Show 5 and other short landscape screens (960x480): step text + buttons only */
@media (orientation:landscape) and (max-height:560px){
  html{font-size:calc(16px * min(100vw / 960px, 100vh / 480px))}
  .top{height:3rem;padding:0 1.25rem}.logo{width:1.9rem;height:1.9rem}.brand{font-size:1.1rem}
  .topbar{display:block;flex:none;height:.4rem;background:var(--surface-2)}.topbar span{display:block;height:100%;background:var(--teal);transition:width .2s}
  main{padding:.9rem 1.25rem 0}
  .left,.checks{display:none}
  .start .left{display:none}
  .eyebrow{font-size:1rem;margin-bottom:.3rem}
  .step{font-size:2.2rem}.note{font-size:1.05rem}
  .btns{height:6rem;padding:.75rem 1.25rem;gap:.75rem}.btn{font-size:1.6rem}
  .back{width:10rem}.next{width:16rem}.start-mode .next{width:20rem}.hint{font-size:1.15rem}
  .ing li button{font-size:1.35rem;padding:.4rem 1rem}.ing b{min-width:6rem}
  .ing:not(.two){grid-template-columns:1fr 1fr}
  .foot{height:2rem;font-size:.85rem}.foot .long{display:none}.foot .short{display:inline}
}

/* Phones, portrait: stacked */
@media (orientation:portrait) and (max-width:599px){
  html{font-size:16px}
  .top{height:3.5rem;padding:0 1rem;gap:.5rem}.home{gap:.5rem}.logo{width:2rem;height:2rem}.brand{font-size:1.1rem}
  .mode{display:none}.timer-pill{margin-left:auto}
  .close{margin-left:auto}.timer-pill:not([hidden])+.close{margin-left:.5rem}
  main{flex-direction:column;gap:1rem;padding:1rem 1rem 0;overflow:auto}
  .left{width:auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:.75rem 1rem}
  .art{height:5.5rem;width:5.5rem;padding:.4rem;border-radius:.9rem}.art img{max-width:100%;max-height:100%}
  .art.multi{width:100%;height:6rem}.art.multi img{max-height:5rem}
  .left .meta{flex:1;min-width:0}
  .title{font-size:1.25rem}.start .title{font-size:1.6rem}.sub{font-size:.9rem}
  .prog{width:100%}.prog .lbl{font-size:1rem}
  .right{flex:1}
  .stepwrap{flex:none;overflow:visible}
  .step{font-size:1.6rem;line-height:1.28}
  .start-mode .hint{display:none}
  main{gap:.85rem}
  .eyebrow-row{margin-bottom:.4rem}
  .checks{padding:.5rem .75rem;margin-top:.75rem}.checks .head{font-size:1rem}
  .checks ul{grid-template-columns:1fr 1fr;font-size:1rem;gap:0 .5rem;margin:.2rem 0 0}
  .checks .chk{min-height:2.75rem;gap:.5rem;padding:.15rem .2rem}.checks .chk .box{width:1.45rem;height:1.45rem}
  .ing,.ing.two{grid-template-columns:1fr;overflow:visible}
  .ing li button,.ing.two li button{font-size:1.08rem;padding:.6rem .9rem}.ing b,.ing.two b{min-width:5.5rem}
  .btns{height:auto;flex-wrap:wrap;padding:.75rem 1rem;gap:.6rem}
  .btn{font-size:1.25rem;height:3.75rem}
  .timer,.hint{order:-1;flex:1 1 100%;height:3.25rem;font-size:1.15rem}
  .timer{flex:1 1 55%}
  .skip{order:-1;flex:1 1 30%;height:3.4rem;font-size:1.15rem;padding:0 .75rem}
  .timer{white-space:nowrap;font-size:1.12rem;padding:0 .5rem}
  body.pill-on .brand{display:none}
  .timer-pill button{padding:0 .7rem;font-size:.95rem}
  .back{width:auto;flex:1}.next,.start-mode .next{width:auto;flex:2}
  .foot{height:auto;white-space:normal;text-align:center;padding:.5rem 1rem;font-size:.8rem}.foot .long{display:none}.foot .short{display:inline}
  .alarm-card{padding:2rem 1.5rem;margin:1rem}.alarm-title{font-size:2.4rem}
  .done-screen h2{font-size:2.2rem}.done-screen p{font-size:1.05rem}
}

/* Near-square screens: foldables unfolded (Pixel Fold inner ~720x820 / ~840x700), small tablets */
@media (min-width:600px) and (max-width:1100px) and (min-height:561px) and (min-aspect-ratio:3/4) and (max-aspect-ratio:13/10){
  html{font-size:calc(16px * min(100vw / 760px, 100vh / 760px))}
  .top{height:3.75rem;padding:0 1.25rem}.logo{width:2.1rem;height:2.1rem}.brand{font-size:1.2rem}
  main{padding:1.1rem 1.25rem 0;gap:1.25rem}
  .left{width:14.5rem;gap:.8rem}
  .art{height:12.5rem;padding:.8rem}.art img{max-width:10.5rem;max-height:10.5rem}
  .art.multi{height:7rem}.art.multi img{max-width:4.5rem;max-height:5.5rem}
  .title{font-size:1.45rem}.start .title{font-size:2rem}.sub{font-size:1rem}.desc{font-size:1.1rem}
  .prog .lbl{font-size:1.05rem}
  .step{font-size:2.2rem}.note{font-size:1.1rem}
  .checks ul{grid-template-columns:1fr 1fr;font-size:1.15rem;gap:.45rem 1rem}
  .ing li button{font-size:1.3rem;padding:.55rem 1rem}.ing.two li button{font-size:1.2rem}
  .btns{height:auto;padding:.9rem 1.25rem;gap:.75rem;flex-wrap:wrap}
  .btn{height:4rem;font-size:1.35rem}
  .timer{flex:1 1 0;font-size:1.35rem;min-width:0}.skip{font-size:1.3rem;padding:0 1.1rem}
  .hint{font-size:1.2rem}
  .back{width:8.5rem}.next{width:12.5rem}.start-mode .next{width:18rem}
  .foot{height:2.25rem;font-size:.85rem}.foot .long{display:none}.foot .short{display:inline}
}
/* Narrow near-square portrait (~600-760 wide): timer + skip get their own row */
@media (orientation:portrait) and (min-width:600px) and (max-width:780px) and (min-height:561px) and (min-aspect-ratio:3/4){
  .timer{order:-1;flex:1 1 60%}.skip{order:-1;flex:1 1 30%}.hint{order:-1;flex:1 1 100%;height:3.4rem}
  .back{flex:1;width:auto}.next,.start-mode .next{flex:2;width:auto}
  .step{font-size:2.1rem}
}

/* Resume prompt ("Pick up where you left off?") reuses the alarm card, without the flashing */
.alarm.resume{animation:none}
.resume .alarm-title{font-size:2.6rem}
.resume-btns{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center}
.resume-btns .btn{width:14rem}
@media (max-width:600px){.resume .alarm-title{font-size:2rem}.resume-btns .btn{width:100%}}


/* ---- Avatar tips ("Toefu's Tips"): collapsed chip under the step text, expands into a speech bubble. Never overlays anything. ---- */
.tip{flex:none;margin-top:.9rem;max-width:46rem}
#tip.tip{background:none;border:0} /* themes.css gives light themes a yellow .tip box meant for recipe pages */
.tip-chip{display:inline-flex;align-items:center;gap:.5rem;min-height:2.75rem;margin-top:.85rem;padding:.25rem 1rem .25rem .4rem;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--accent-text);font-weight:700;font-size:1rem;touch-action:manipulation}
.tip-av{position:relative;flex:none;width:2.6rem;height:3.4rem;margin:-1.2rem -.1rem -.3rem 0;align-self:flex-end;pointer-events:none}
.tip-av::before{content:"";position:absolute;left:12%;right:12%;bottom:.2rem;height:.35rem;border-radius:50%;background:rgba(0,0,0,.28);filter:blur(2px)}
.tip-av img{position:relative;display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 1px 1px rgba(0,0,0,.35));transform-origin:50% 100%;transition:transform .25s cubic-bezier(.3,1.6,.5,1)}
html:not([data-theme=coconut]):not([data-theme=sakura]) .tip-av img{filter:drop-shadow(0 0 .8px rgba(255,255,255,.55)) drop-shadow(0 1px 2px rgba(0,0,0,.6))}
.tip-chip:hover .tip-av img{transform:rotate(-5deg) scale(1.06)}
.tip.open .tip-av img{animation:tipHop .5s cubic-bezier(.3,1.6,.5,1)}
@keyframes tipHop{40%{transform:translateY(-4px) scale(1.06)}}
.tip-chip .caret{color:var(--muted);font-size:.85rem}
.tip.open .tip-chip{border-color:var(--accent);background:var(--surface-2)}
.tip-bubble{position:relative;margin:.65rem 0 0 .4rem;background:var(--surface-2);border:1px solid var(--line);border-radius:1rem;padding:.75rem 3rem .8rem 1rem}
.tip-bubble::before{content:"";position:absolute;top:-.5rem;left:1.1rem;width:.9rem;height:.9rem;background:inherit;border-left:1px solid var(--line);border-top:1px solid var(--line);transform:rotate(45deg)}
.tip-bubble p{margin:0;font-size:1.15rem;line-height:1.4;color:#eee}
.tip-x{position:absolute;top:.3rem;right:.3rem;width:2.5rem;height:2.5rem;border-radius:50%;border:0;background:none;color:var(--muted);font-size:1.05rem}
.tip-x:active{background:rgba(255,255,255,.08)}
.tip.enter{animation:tipIn .45s ease-out .9s both}
@keyframes tipIn{from{opacity:0;transform:translateY(.4rem)}to{opacity:1;transform:none}}
@media (orientation:portrait) and (max-width:599px){.tip{margin-top:.7rem}.tip-chip{font-size:.95rem}.tip-bubble p{font-size:1.02rem}}
@media (orientation:landscape) and (max-height:560px){.tip{margin-top:.5rem}.tip-bubble p{font-size:1rem}}

/* ---- Start/Done extras ---- */
.links{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;align-items:center}
.ach-link{background:none;border:0;padding:.3rem 0;color:var(--accent-text);font-weight:700;font-size:1rem}
.done-actions{display:flex;gap:.75rem;flex-wrap:wrap;justify-content:center}
.done-actions .act{min-height:3.25rem;padding:0 1.3rem;border-radius:999px;border:2px solid var(--line);background:var(--surface-2);color:#fff;font-weight:800;font-size:1.15rem}
.done-actions .act.share{background:var(--accent);border-color:var(--accent)}
.done-actions .act:disabled{opacity:.6}

@media (prefers-reduced-motion:reduce){.tip.enter,.tip.open .tip-av img{animation:none}.checks li{transition:none}}

/* ---- Done screen rarity + "New dish unlocked!" splash (first finish). --rar is set by extras.js: Common white, Rare green, Legendary orange ---- */
.unlock-tag{display:flex;flex-direction:column;align-items:center;gap:.35rem;margin-bottom:-.3rem}
.unlock-tag .nu{color:var(--rar,#fff);font-weight:800;text-transform:uppercase;letter-spacing:.12em;font-size:.95rem}
.rar-chip{font-size:.75rem;font-weight:800;letter-spacing:.14em;color:#171717;background:var(--rar,#f2f2f2);border-radius:999px;padding:.2rem .8rem}
.done-screen .done-art{box-shadow:0 0 0 3px var(--rar,rgba(255,255,255,.18)),0 10px 30px rgba(0,0,0,.45)}
.done-art.unlocking{animation:dishIn .9s cubic-bezier(.2,.9,.3,1.3) both}
.rar-legendary .done-art.unlocking{animation:dishIn .9s cubic-bezier(.2,.9,.3,1.3) both,legend 2.4s ease-in-out .9s 2}
@keyframes dishIn{0%{opacity:0;transform:scale(.6) rotate(-8deg);filter:brightness(2)}60%{opacity:1;filter:brightness(1.3)}100%{transform:none;filter:none}}
@keyframes legend{50%{box-shadow:0 0 0 3px var(--rar),0 0 60px rgba(255,140,26,.6)}}
.done-art.unlocking{box-shadow:0 0 0 3px var(--rar),0 0 40px color-mix(in srgb,var(--rar) 40%,transparent)}
@media (prefers-reduced-motion:reduce){.done-art.unlocking,.rar-legendary .done-art.unlocking{animation:none}}
/* Theme rules live in themes.css (shared with the whole site). */
/* Style picker for recipes with "variants" (e.g. Rice: Sushi, Indian, ...). */
.styles{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:.75rem;overflow:auto;min-height:0}
.styles li button{width:100%;height:100%;min-height:5.5rem;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:.25rem;text-align:left;background:var(--surface);border:2px solid var(--line);border-radius:.9rem;padding:.8rem 1.25rem;color:var(--text);cursor:pointer;touch-action:manipulation}
.styles li button:hover,.styles li button:focus-visible{border-color:var(--teal)}
.styles li button:active{background:var(--surface-2)}
.styles .nm{font-size:1.6rem;font-weight:800}
.styles .vs{font-size:1.1rem;font-weight:600;color:var(--gold)}
.restyle{flex:none;white-space:nowrap}
.eyebrow-row:has(.restyle){flex-wrap:wrap;row-gap:.2rem}
.next:disabled{opacity:.45}
@media (orientation:landscape) and (max-height:560px){.styles li button{min-height:4rem;padding:.5rem 1rem}.styles .nm{font-size:1.3rem}.styles .vs{font-size:1rem}}
@media (orientation:portrait) and (max-width:599px){.styles{overflow:visible;gap:.6rem}.styles li button{min-height:4.75rem;padding:.65rem .9rem}.styles .nm{font-size:1.3rem}.styles .vs{font-size:.98rem}.restyle{font-size:.95rem}}

/* Vegetarian Converter switch (start screen card + step-screen mini switch) */
.veg{display:flex;align-items:center;gap:.85rem;width:100%;max-width:30rem;text-align:left;font:inherit;color:var(--text);background:var(--surface);border:1.5px solid var(--line);border-radius:1rem;padding:.7rem .9rem .7rem .8rem;cursor:pointer;transition:border-color .2s,background-color .2s}
.veg:hover{border-color:var(--teal)}
.veg.on{border-color:var(--teal);background:rgba(160,226,225,.10)}
.veg-ic{flex:none;width:2.4rem;height:2.4rem;border-radius:.75rem;display:grid;place-items:center;font-size:1.35rem;background:var(--surface-2)}
.veg.on .veg-ic{background:rgba(160,226,225,.18)}
.veg-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:.1rem}
.veg-tx b{font-size:1.05rem;font-weight:800}
.veg-tx small{font-size:.92rem;color:var(--muted)}
.veg.on .veg-tx small{color:var(--teal)}
.veg-sw{flex:none;position:relative;width:3rem;height:1.75rem;border-radius:999px;background:var(--surface-2);border:1.5px solid var(--line);transition:background-color .2s,border-color .2s}
.veg-sw i{position:absolute;top:.15rem;left:.15rem;width:1.2rem;height:1.2rem;border-radius:50%;background:var(--muted);transition:transform .2s,background-color .2s}
.on>.veg-sw{background:var(--teal);border-color:var(--teal)}
.on>.veg-sw i{transform:translateX(1.25rem);background:var(--bg)}
.veg-mini{display:inline-flex;align-items:center;gap:.45rem;margin-top:.5rem;font:inherit;font-size:.92rem;font-weight:700;color:var(--muted);background:none;border:1px solid var(--line);border-radius:999px;padding:.25rem .3rem .25rem .7rem;cursor:pointer}
.veg-mini.on{color:var(--teal);border-color:var(--teal)}
.veg-mini .veg-sw{width:2.4rem;height:1.4rem}.veg-mini .veg-sw i{width:.9rem;height:.9rem;top:.12rem;left:.15rem}
.veg-mini.on .veg-sw i{transform:translateX(1rem)}
.swp{margin-left:.4rem;font-size:.85em}
@media (prefers-reduced-motion:reduce){.veg,.veg-sw,.veg-sw i{transition:none}}
/* Done screen: component recipe -> dishes that use it */
.uses{display:flex;flex-direction:column;align-items:center;gap:.6rem}
.uses-h{color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.12em;font-size:.85rem}
.uses-row{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem}
.use{display:inline-flex;align-items:center;gap:.6rem;min-height:3.25rem;padding:.35rem 1rem .35rem .4rem;border-radius:999px;border:2px solid var(--line);background:var(--surface-2);color:var(--text);text-decoration:none;font-weight:800;font-size:1.05rem}
.use:hover{border-color:var(--teal)}
.use img{width:2.5rem;height:2.5rem;border-radius:50%;object-fit:cover;background:var(--art)}
.use i{font-style:normal;color:var(--teal);font-size:1.3rem;line-height:1}
.done-screen.has-uses .done-art{width:min(52vw,28vh,300px)}
@media (orientation:portrait) and (max-width:599px){
  .uses{gap:.45rem}.uses-row{gap:.45rem}.uses-h{font-size:.78rem}
  .use{min-height:2.6rem;font-size:.92rem;gap:.45rem;padding:.25rem .8rem .25rem .3rem}.use img{width:2rem;height:2rem}.use i{font-size:1.1rem}
  .done-screen.has-uses{gap:.75rem}.done-screen.has-uses .done-art{width:min(44vw,22vh,220px)}
  .veg{padding:.6rem .75rem .6rem .65rem;gap:.7rem}.veg-ic{width:2.1rem;height:2.1rem;font-size:1.15rem}.veg-tx b{font-size:1rem}.veg-tx small{font-size:.85rem}
}

/* Start screen (2026-11-02): dish picture, name, one line, Vegetarian switch, one big Start button. The bottom bar is hidden here
   (the header X goes back to the recipe page; arrows/swipe still work). */
body.intro-mode .btns{display:none}
main.intro{overflow:auto;padding-bottom:1.25rem}
.intro-screen{margin:auto;width:100%;max-width:34rem;display:flex;flex-direction:column;align-items:center;text-align:center;gap:1rem;padding:1rem 0}
.intro-art{display:block;width:min(72vw,40vh,380px);height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:28px;background:var(--art);
  box-shadow:0 0 0 3px rgba(255,255,255,.14),0 14px 36px rgba(0,0,0,.5)}
.intro .title{font-size:2.75rem;margin-top:.4rem}
.intro-sub{margin:-.35rem 0 .2rem;color:var(--muted);font-size:1.15rem;font-weight:600}
.intro .veg{max-width:30rem}
.intro .btn.intro-go{flex:none;width:100%;max-width:30rem;height:5.25rem;font-size:1.9rem;margin-top:.35rem;box-shadow:0 8px 24px rgba(40,111,189,.35);box-shadow:0 8px 24px color-mix(in srgb,var(--accent) 35%,transparent)}
.intro-go:hover{background:var(--accent-hover)}
.intro-links{display:flex;gap:1.25rem;justify-content:center;flex-wrap:wrap}
@media (orientation:landscape) and (max-height:560px){
  /* short landscape (Echo Show 5): picture on the left, the rest beside it */
  .intro-screen{display:grid;grid-template-columns:auto minmax(0,24rem);column-gap:2rem;row-gap:.6rem;align-items:center;justify-items:start;text-align:left;width:auto;max-width:none;padding:.25rem 0}
  .intro-art{grid-row:1 / span 5;width:min(58vh,260px);border-radius:20px}.intro .title{font-size:2rem;margin:0}.intro-sub{margin:-.3rem 0 0}
  .intro .veg{width:100%}.intro .btn.intro-go{height:4rem;font-size:1.5rem;margin:0}.intro-links{justify-content:flex-start}
}
@media (orientation:portrait) and (max-width:599px){
  main.intro{padding:1rem 1.25rem 1.25rem}
  .intro-screen{gap:.85rem;padding:.5rem 0}.intro-art{width:min(74vw,36vh,320px);border-radius:24px}
  .intro .title{font-size:2rem}.intro-sub{font-size:1rem}
  .intro .btn.intro-go{height:4.25rem;font-size:1.45rem}
  /* resume prompt: the two buttons were squeezed side by side; stack them full width */
  .resume .resume-btns{width:100%;flex-direction:column}.resume .resume-btns .btn{flex:none;width:100%;height:3.75rem}
}
/* wordmark + burger menu (logo3) */
.brand.wm{display:block;line-height:0;flex:none;font-size:0}
.wm img{display:block;width:auto;height:3.3rem;max-width:none}
@media (orientation:landscape) and (max-height:560px){.wm img{height:2.5rem}}
@media (orientation:portrait) and (max-width:599px){.wm img{height:2.6rem}}
@media (max-width:380px){.wm img{height:2.25rem}}
@media (min-width:600px) and (max-width:1100px) and (min-height:561px) and (min-aspect-ratio:3/4) and (max-aspect-ratio:13/10){.wm img{height:3rem}}
@media (max-width:860px){html.mk-lvl-on .top .wm img{height:2.6rem}}
@media (max-width:720px){html.mk-lvl-on .top .wm{display:none}}
/* book owners: hide buy prompts (data-mk-owner) */
html[data-mk-owner] .mk-buy{display:none!important}
/* >>> theme-logo (logo3 Kitchen follows the theme) */
picture.brand.wm{position:relative}
picture.brand.wm::after{content:none;position:absolute;inset:0;pointer-events:none;background:no-repeat left top/auto 100%}
html[data-theme=leather] picture.brand.wm::after{content:"";background-image:-webkit-image-set(url(art/brand/mk-wordmark-a-1x-leather.webp) 1x,url(art/brand/mk-wordmark-a-2x-leather.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-a-1x-leather.webp) 1x,url(art/brand/mk-wordmark-a-2x-leather.webp) 2x)}
html[data-theme=dragonfruit] picture.brand.wm::after{content:"";background-image:-webkit-image-set(url(art/brand/mk-wordmark-a-1x-dragonfruit.webp) 1x,url(art/brand/mk-wordmark-a-2x-dragonfruit.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-a-1x-dragonfruit.webp) 1x,url(art/brand/mk-wordmark-a-2x-dragonfruit.webp) 2x)}
html[data-theme=gochujang] picture.brand.wm::after{content:"";background-image:-webkit-image-set(url(art/brand/mk-wordmark-a-1x-gochujang.webp) 1x,url(art/brand/mk-wordmark-a-2x-gochujang.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-a-1x-gochujang.webp) 1x,url(art/brand/mk-wordmark-a-2x-gochujang.webp) 2x)}
html[data-theme=matcha] picture.brand.wm::after{content:"";background-image:-webkit-image-set(url(art/brand/mk-wordmark-a-1x-matcha.webp) 1x,url(art/brand/mk-wordmark-a-2x-matcha.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-a-1x-matcha.webp) 1x,url(art/brand/mk-wordmark-a-2x-matcha.webp) 2x)}
html[data-theme=synthwave] picture.brand.wm::after{content:"";background-image:-webkit-image-set(url(art/brand/mk-wordmark-a-1x-synthwave.webp) 1x,url(art/brand/mk-wordmark-a-2x-synthwave.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-a-1x-synthwave.webp) 1x,url(art/brand/mk-wordmark-a-2x-synthwave.webp) 2x)}
html[data-theme=gold] picture.brand.wm::after{content:"";background-image:-webkit-image-set(url(art/brand/mk-wordmark-a-1x-gold.webp) 1x,url(art/brand/mk-wordmark-a-2x-gold.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-a-1x-gold.webp) 1x,url(art/brand/mk-wordmark-a-2x-gold.webp) 2x)}
html[data-theme=mango] picture.brand.wm::after{content:"";background-image:-webkit-image-set(url(art/brand/mk-wordmark-a-1x-mango.webp) 1x,url(art/brand/mk-wordmark-a-2x-mango.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-a-1x-mango.webp) 1x,url(art/brand/mk-wordmark-a-2x-mango.webp) 2x)}
html[data-theme=squidink] picture.brand.wm::after{content:"";background-image:-webkit-image-set(url(art/brand/mk-wordmark-a-1x-squidink.webp) 1x,url(art/brand/mk-wordmark-a-2x-squidink.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-a-1x-squidink.webp) 1x,url(art/brand/mk-wordmark-a-2x-squidink.webp) 2x)}
html[data-theme=coconut] picture.brand.wm::after{content:"";background-image:-webkit-image-set(url(art/brand/mk-wordmark-a-1x-coconut.webp) 1x,url(art/brand/mk-wordmark-a-2x-coconut.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-a-1x-coconut.webp) 1x,url(art/brand/mk-wordmark-a-2x-coconut.webp) 2x)}
html[data-theme=bluecheese] picture.brand.wm::after{content:"";background-image:-webkit-image-set(url(art/brand/mk-wordmark-a-1x-bluecheese.webp) 1x,url(art/brand/mk-wordmark-a-2x-bluecheese.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-a-1x-bluecheese.webp) 1x,url(art/brand/mk-wordmark-a-2x-bluecheese.webp) 2x)}
html[data-theme=sakura] picture.brand.wm::after{content:"";background-image:-webkit-image-set(url(art/brand/mk-wordmark-a-1x-sakura.webp) 1x,url(art/brand/mk-wordmark-a-2x-sakura.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-a-1x-sakura.webp) 1x,url(art/brand/mk-wordmark-a-2x-sakura.webp) 2x)}
html:is([data-theme=leather],[data-theme=dragonfruit],[data-theme=gochujang],[data-theme=matcha],[data-theme=synthwave],[data-theme=gold],[data-theme=mango],[data-theme=squidink],[data-theme=coconut],[data-theme=bluecheese],[data-theme=sakura]) picture.brand.wm img{opacity:0}   /* full themed render replaces the Classic img: no colour fringe at any DPR */
@media (max-width:600px){
html[data-theme=leather] picture.brand.wm::after{background-image:-webkit-image-set(url(art/brand/mk-wordmark-d-1x-leather.webp) 1x,url(art/brand/mk-wordmark-d-2x-leather.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-d-1x-leather.webp) 1x,url(art/brand/mk-wordmark-d-2x-leather.webp) 2x)}
html[data-theme=dragonfruit] picture.brand.wm::after{background-image:-webkit-image-set(url(art/brand/mk-wordmark-d-1x-dragonfruit.webp) 1x,url(art/brand/mk-wordmark-d-2x-dragonfruit.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-d-1x-dragonfruit.webp) 1x,url(art/brand/mk-wordmark-d-2x-dragonfruit.webp) 2x)}
html[data-theme=gochujang] picture.brand.wm::after{background-image:-webkit-image-set(url(art/brand/mk-wordmark-d-1x-gochujang.webp) 1x,url(art/brand/mk-wordmark-d-2x-gochujang.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-d-1x-gochujang.webp) 1x,url(art/brand/mk-wordmark-d-2x-gochujang.webp) 2x)}
html[data-theme=matcha] picture.brand.wm::after{background-image:-webkit-image-set(url(art/brand/mk-wordmark-d-1x-matcha.webp) 1x,url(art/brand/mk-wordmark-d-2x-matcha.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-d-1x-matcha.webp) 1x,url(art/brand/mk-wordmark-d-2x-matcha.webp) 2x)}
html[data-theme=synthwave] picture.brand.wm::after{background-image:-webkit-image-set(url(art/brand/mk-wordmark-d-1x-synthwave.webp) 1x,url(art/brand/mk-wordmark-d-2x-synthwave.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-d-1x-synthwave.webp) 1x,url(art/brand/mk-wordmark-d-2x-synthwave.webp) 2x)}
html[data-theme=gold] picture.brand.wm::after{background-image:-webkit-image-set(url(art/brand/mk-wordmark-d-1x-gold.webp) 1x,url(art/brand/mk-wordmark-d-2x-gold.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-d-1x-gold.webp) 1x,url(art/brand/mk-wordmark-d-2x-gold.webp) 2x)}
html[data-theme=mango] picture.brand.wm::after{background-image:-webkit-image-set(url(art/brand/mk-wordmark-d-1x-mango.webp) 1x,url(art/brand/mk-wordmark-d-2x-mango.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-d-1x-mango.webp) 1x,url(art/brand/mk-wordmark-d-2x-mango.webp) 2x)}
html[data-theme=squidink] picture.brand.wm::after{background-image:-webkit-image-set(url(art/brand/mk-wordmark-d-1x-squidink.webp) 1x,url(art/brand/mk-wordmark-d-2x-squidink.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-d-1x-squidink.webp) 1x,url(art/brand/mk-wordmark-d-2x-squidink.webp) 2x)}
html[data-theme=coconut] picture.brand.wm::after{background-image:-webkit-image-set(url(art/brand/mk-wordmark-d-1x-coconut.webp) 1x,url(art/brand/mk-wordmark-d-2x-coconut.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-d-1x-coconut.webp) 1x,url(art/brand/mk-wordmark-d-2x-coconut.webp) 2x)}
html[data-theme=bluecheese] picture.brand.wm::after{background-image:-webkit-image-set(url(art/brand/mk-wordmark-d-1x-bluecheese.webp) 1x,url(art/brand/mk-wordmark-d-2x-bluecheese.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-d-1x-bluecheese.webp) 1x,url(art/brand/mk-wordmark-d-2x-bluecheese.webp) 2x)}
html[data-theme=sakura] picture.brand.wm::after{background-image:-webkit-image-set(url(art/brand/mk-wordmark-d-1x-sakura.webp) 1x,url(art/brand/mk-wordmark-d-2x-sakura.webp) 2x);background-image:image-set(url(art/brand/mk-wordmark-d-1x-sakura.webp) 1x,url(art/brand/mk-wordmark-d-2x-sakura.webp) 2x)}
}
/* <<< theme-logo (logo3 Kitchen follows the theme) */

/* >>> done-recipes-btn (finish screen: Back | Start over | Back to recipes in one row, Back to recipes = primary) */
.btn.recipes{background:var(--accent);color:#fff;border:2px solid var(--accent);box-shadow:0 6px 18px rgba(40,111,189,.35);box-shadow:0 6px 18px color-mix(in srgb,var(--accent) 40%,transparent)}
.btn.recipes:active{background:var(--accent-hover)}
body.done-mode .btns{flex-wrap:nowrap}
body.done-mode .btns .btn{flex:1 1 0;box-sizing:border-box;width:auto;min-width:0;padding:0 .75rem;text-align:center;line-height:1.1}
body.done-mode .btns .next{background:var(--surface-2);border:2px solid var(--line);color:#ddd}
@media (max-width:600px){body.done-mode .btns{gap:.5rem;padding:.7rem .75rem}body.done-mode .btns .btn{font-size:1.02rem;height:3.5rem;padding:0 .4rem;border-radius:1rem}}
@media (max-width:380px){body.done-mode .btns{gap:.4rem;padding:.65rem .6rem}body.done-mode .btns .btn{font-size:.94rem;padding:0 .3rem}}
/* <<< done-recipes-btn */
