/* The Pass — stainless steel, ticket rail, masking-tape labels, HACCP board colours. */
:root {
  --steel: #f3eee4; --steel-2: #e7e0d3; --steel-3: #d3c9b8; --sheet: #fbf8f2; --sheet-2: #efe8dc;
  --ink: #1a1716; --ink-2: #3b3633; --mute: #7a716a; --line: #dcd3c4; --line-2: #b8ac9b;
  --tape: transparent; --tape-ink: #d7261e; --paper: #fffdf8;
  --red: #d7261e; --blue: #1a1716; --yellow: #d7261e; --green: #3d7a3a; --brown: #1a1716;
  --r: 10px; --r2: 16px;
  --head: 'Instrument Serif', Georgia, serif; --body: 'Bricolage Grotesque', system-ui, sans-serif; --hand: 'Bricolage Grotesque', system-ui, sans-serif; --print: 'Bricolage Grotesque', system-ui, sans-serif;
  --brushed: linear-gradient(transparent, transparent);
}
* { box-sizing: border-box; }
html { background: #d3d7da; }
body { margin: 0; color: var(--ink); font: 400 16px/1.55 var(--body); font-stretch: 100%; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--brushed), linear-gradient(180deg, #e1e4e6, var(--steel) 40%, #cfd3d6); background-attachment: fixed; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; } a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--head); font-stretch: 75%; font-weight: 800; line-height: 1.02; margin: 0 0 .45em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); } h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); } h3 { font-size: 1.45rem; } h4 { font-size: 1.15rem; }
h5 { font: 700 .82rem var(--body); color: var(--mute); margin: 1.1em 0 .45em; }
p { margin: 0 0 1em; color: var(--ink-2); max-width: 68ch; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
/* masking-tape label, the house motif */
.kicker, .tape { display: inline-block; font: 400 1rem/1 var(--hand); color: var(--tape-ink); background: var(--tape); padding: .42em .8em .36em; margin-bottom: .9rem; transform: rotate(-1.4deg);
  box-shadow: 0 1px 2px rgba(0,0,0,.18); clip-path: polygon(1% 4%, 99% 0, 100% 92%, 98% 100%, 2% 97%, 0 8%); }
.tape.red { background: #f3c9c4; } .tape.green { background: #cfe3c6; }
.mono { font-family: var(--print); } .mini { font-size: .88rem; color: var(--mute); } .lead { font-size: 1.15rem; } .lead.sm { font-size: 1rem; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; } .row.between { justify-content: space-between; } .row.center { justify-content: center; }
#view { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 1.6rem 1.4rem 4rem; outline: none; }
body.wide #view { max-width: 1520px; }

/* buttons: like a printed sticker on steel */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; border: 2px solid var(--ink); background: var(--ink); color: #fff; font: 700 .98rem var(--body); padding: .62em 1.15em; border-radius: 8px; cursor: pointer; text-decoration: none; box-shadow: 3px 3px 0 var(--steel-3); transition: transform .08s, box-shadow .08s; }
.btn:hover { color: #fff; background: #000; } .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--steel-3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-hot { background: var(--red); border-color: #8f1f1a; } .btn-hot:hover { background: #a92620; }
.btn-ghost, .btn.ghost { background: var(--sheet); color: var(--ink); } .btn-ghost:hover, .btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.sm { padding: .38em .75em; font-size: .86rem; box-shadow: 2px 2px 0 var(--steel-3); } .btn.lg { padding: .82em 1.5em; font-size: 1.06rem; } .btn.block { width: 100%; margin-top: .6rem; }
.btn.danger, button.danger { color: var(--red); }
.linkbtn { background: none; border: 0; color: var(--blue); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.chip { display: inline-block; padding: .35em .85em; border: 1.5px solid var(--line-2); border-radius: 99px; color: var(--ink-2); font-size: .88rem; text-decoration: none; background: var(--sheet); }
.chip.on, .chip:hover { border-color: var(--ink); color: #fff; background: var(--ink); }
.seg { display: inline-flex; background: var(--steel-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; box-shadow: inset 0 1px 3px rgba(0,0,0,.18); }
.seg > button, .seg > a, .seg > label > span { border: 0; background: none; color: var(--ink-2); font: 600 .88rem var(--body); padding: .48em .9em; border-radius: 8px; cursor: pointer; display: block; text-decoration: none; }
.seg > .on, .seg > label > input:checked + span { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.seg label input { position: absolute; opacity: 0; } .seg.big > label > span { padding: .7em 1.2em; font-size: .98rem; }
/* panels are white HDPE cutting boards */
.panel { background: var(--sheet); border-radius: var(--r2); padding: 1.3rem; box-shadow: 0 1px 0 #fff inset, 0 2px 0 var(--steel-3), 0 10px 24px -14px rgba(0,0,0,.4); border-top: 6px solid var(--board, var(--sheet-2)); }

/* top bar: the steel shelf */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 1.4rem; padding: .55rem 1.4rem; background: var(--brushed), linear-gradient(180deg, #eef0f1, #cdd2d5); border-bottom: 1px solid var(--line-2); box-shadow: 0 2px 0 rgba(255,255,255,.6) inset, 0 6px 14px -10px rgba(0,0,0,.5); }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; } .brand svg { color: var(--ink); }
.brand span { display: flex; flex-direction: column; line-height: 1; } .brand b { font: 800 1.45rem var(--head); font-stretch: 75%; } .brand small { font: .8rem var(--hand); color: var(--red); margin-top: 2px; }
.mainnav { display: flex; gap: .1rem; margin-right: auto; }
.mainnav a { color: var(--ink-2); padding: .45em .75em; border-radius: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; }
.mainnav a:hover { background: rgba(255,255,255,.6); color: var(--ink); }
.mainnav a.on { background: var(--ink); color: #fff; }
.userbox { display: flex; gap: .5rem; align-items: center; }
.langsel { font: 700 .82rem var(--body); background: var(--sheet); border: 1.5px solid var(--line-2); border-radius: 8px; padding: .35em .4em; color: var(--ink); width: auto; }
.me { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; padding: .2rem .55rem .2rem .2rem; border-radius: 99px; background: var(--sheet); border: 1px solid var(--line); }
.me-txt { display: flex; flex-direction: column; line-height: 1.15; } .me-txt b { font-size: .88rem; } .me-txt small { font-size: .72rem; color: var(--mute); }
.xpbar { display: block; height: 4px; width: 90px; background: var(--steel-2); border-radius: 3px; margin-top: 3px; overflow: hidden; } .xpbar em { display: block; height: 100%; background: var(--green); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--yellow); color: var(--ink); font: 800 1rem var(--head); flex: none; border: 2px solid var(--ink); }
.avatar.sm { width: 28px; height: 28px; font-size: .82rem; } .avatar.xl { width: 96px; height: 96px; font-size: 2.6rem; border-width: 3px; }
.burger { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; } .burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }
.banner { text-align: center; padding: .5rem 1rem; font-size: .9rem; background: var(--tape); color: var(--tape-ink); border-bottom: 1px solid #cfc292; }
.banner.demo { background: repeating-linear-gradient(-45deg, #f1e7bd 0 16px, #e9ddb0 16px 32px); }

/* hero: the pass */
.pass-hero { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.5rem; align-items: center; padding: 3.4rem 0 3rem; }
.rail { grid-column: 1 / -1; position: relative; display: flex; gap: 1.1rem; padding: 18px 1.2rem 0; margin-bottom: 1.2rem; overflow-x: auto; scrollbar-width: none; }
.rail::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 22px; border-radius: 6px; background: var(--brushed), linear-gradient(180deg, #f4f5f6, #aab1b5 70%, #8d959a); box-shadow: 0 3px 6px rgba(0,0,0,.25); z-index: 2; }
.ticket { position: relative; flex: 0 0 210px; margin-top: 6px; background: var(--paper); color: var(--ink); padding: 1.3rem 1rem 1.6rem; font: 400 .9rem/1.45 var(--print); text-decoration: none; transform-origin: top center; box-shadow: 0 8px 14px -8px rgba(0,0,0,.45);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 94% 100%, 88% 94%, 82% 100%, 76% 94%, 70% 100%, 64% 94%, 58% 100%, 52% 94%, 46% 100%, 40% 94%, 34% 100%, 28% 94%, 22% 100%, 16% 94%, 10% 100%, 4% 94%, 0 100%); transition: transform .15s; }
.ticket:nth-child(odd) { transform: rotate(-1.3deg); } .ticket:nth-child(even) { transform: rotate(1.1deg); }
.ticket:hover { transform: rotate(0) translateY(4px); color: var(--ink); }
.ticket .t-no { display: flex; justify-content: space-between; border-bottom: 1px dashed #999; padding-bottom: .4rem; margin-bottom: .5rem; }
.ticket b { display: block; font: 800 1.45rem/1 var(--head); font-stretch: 75%; margin: .2rem 0 .5rem; }
.ticket .t-fire { display: block; margin-top: .7rem; padding-top: .45rem; border-top: 1px dashed #999; color: var(--red); font-weight: 700; }
.ticket.k-green { border-top: 8px solid var(--green); } .ticket.k-red { border-top: 8px solid var(--red); } .ticket.k-blue { border-top: 8px solid var(--blue); } .ticket.k-yellow { border-top: 8px solid var(--yellow); } .ticket.k-brown { border-top: 8px solid var(--brown); }
.pass-copy h1 { margin-bottom: .35em; } .pass-copy .lead { max-width: 44ch; }
.pass-plate { position: relative; aspect-ratio: 1.15; margin-top: 2.5rem; display: grid; place-items: center; }
.pass-plate::before { content: ''; position: absolute; inset: 4% 8% 0; background: radial-gradient(closest-side, rgba(255,176,64,.55), rgba(255,140,40,.12) 70%, transparent); filter: blur(6px); }
.pass-plate svg { position: relative; width: 88%; filter: drop-shadow(0 30px 30px rgba(0,0,0,.35)); }
.lamp { position: absolute; top: -3.6rem; left: 50%; transform: translateX(-50%); width: 46%; height: 40px; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(180deg, #3a4247, #1d2327); box-shadow: 0 14px 30px 4px rgba(255,170,60,.55); }
.score-tag { position: absolute; right: 4%; bottom: 8%; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: .5rem .8rem; transform: rotate(3deg); box-shadow: 3px 3px 0 var(--steel-3); }
.score-tag b { display: block; font: 800 2.3rem/1 var(--head); font-stretch: 75%; } .score-tag span { font: .95rem var(--hand); color: var(--red); }

.special { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin: 1rem 0 2.6rem; }
.special-card { --board: var(--yellow); }
.special-card:nth-child(2) { --board: var(--green); } .special-card:nth-child(3) { --board: var(--blue); }
.special-card p { font-size: .95rem; }
.progress-strip { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; padding: 1rem 1.3rem; } .progress-strip .pbar { flex: 1; }
.pbar { height: 10px; background: var(--steel-2); border-radius: 10px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.25); } .pbar i { display: block; height: 100%; background: var(--green); border-radius: 10px; transition: width .6s; }
.sect { margin: 3rem 0; } .sect-head { display: flex; justify-content: space-between; align-items: baseline; }
.ladder { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: .45rem; }
.ladder li { background: var(--sheet); border-radius: 8px 8px 0 0; padding: .9rem .7rem; border-bottom: 5px solid var(--ink); box-shadow: 0 2px 0 var(--steel-3); }
.ladder b { display: block; font: 800 1.05rem/1.05 var(--head); font-stretch: 75%; margin: .3rem 0; } .ladder span { font: 1rem var(--hand); color: var(--red); } .ladder small { color: var(--mute); font-size: .78rem; }
.ladder li:nth-child(1) { min-height: 90px; } .ladder li:nth-child(2) { min-height: 110px; } .ladder li:nth-child(3) { min-height: 130px; } .ladder li:nth-child(4) { min-height: 150px; } .ladder li:nth-child(5) { min-height: 170px; } .ladder li:nth-child(6) { min-height: 190px; } .ladder li:nth-child(7) { min-height: 214px; background: var(--ink); color: #fff; } .ladder li:nth-child(7) small { color: #cbd1d4; }

/* gallery cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.pcard { display: block; background: var(--sheet); border-radius: var(--r2); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: 0 2px 0 var(--steel-3), 0 10px 20px -16px rgba(0,0,0,.6); }
.pcard:hover { color: var(--ink); outline: 2px solid var(--ink); }
.pcard-vis { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 45%, #4b5257, #22282c); display: grid; place-items: center; overflow: hidden; }
.pcard-vis > img, .pcard-vis > svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.bottle-thumb { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #4b5257, #22282c); } .bottle-thumb svg { height: 92%; width: auto; }
.ticket-thumb { width: 62%; aspect-ratio: .78; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem; transform: rotate(-2.5deg); font-family: var(--print);
  clip-path: polygon(0 0, 100% 0, 100% 95%, 90% 100%, 80% 95%, 70% 100%, 60% 95%, 50% 100%, 40% 95%, 30% 100%, 20% 95%, 10% 100%, 0 95%); }
.ticket-thumb span { font-size: 2.3rem; } .ticket-thumb b { font: 800 1.2rem/1.05 var(--head); font-stretch: 75%; margin: .5rem 0; } .ticket-thumb small { color: var(--red); }
.badge-score { position: absolute; top: .7rem; right: .7rem; background: var(--paper); border: 2px solid var(--ink); color: var(--ink); font: 800 1rem var(--head); border-radius: 50%; width: 2.6em; height: 2.6em; display: grid; place-items: center; }
.kind { position: absolute; left: .7rem; top: .7rem; font: .85rem var(--hand); padding: .3em .6em .2em; background: var(--tape); color: var(--tape-ink); transform: rotate(-2deg); }
.post-side .kind { position: static; display: inline-block; margin-bottom: .8rem; }
.k-sauce { background: #f3c9c4; } .k-invention { background: #cfe3c6; } .k-photo { background: #c9dbef; }
.pcard-body { padding: .85rem 1rem 1rem; } .pcard-body b { font: 700 1.05rem/1.25 var(--body); display: block; }
.pcard-meta { display: flex; justify-content: space-between; align-items: center; margin-top: .35rem; font-size: .84rem; color: var(--mute); }
.stars { display: inline-flex; align-items: center; color: #c3c8cb; } .stars i { font-style: normal; } .stars i.on { color: var(--yellow); } .stars i.half { background: linear-gradient(90deg, var(--yellow) 50%, #c3c8cb 50%); -webkit-background-clip: text; background-clip: text; color: transparent; } .stars small { margin-left: .35em; color: var(--mute); }
.skel { aspect-ratio: .82; border-radius: var(--r2); background: linear-gradient(90deg, var(--sheet-2), #fff, var(--sheet-2)); background-size: 200% 100%; animation: sk 1.4s infinite; } @keyframes sk { to { background-position: -200% 0; } }
.empty { color: var(--mute); grid-column: 1 / -1; text-align: center; padding: 3rem; border: 2px dashed var(--line-2); border-radius: var(--r2); }
.loading { text-align: center; padding: 6rem 0; color: var(--mute); font: 1.3rem var(--hand); }

.page-head { padding: 1.2rem 0 1.8rem; } .page-head.slim { padding: .3rem 0 1.1rem; } .page-head.slim h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.filters { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 1rem; color: var(--mute); font-size: .92rem; }

/* academy */
.track { margin-bottom: 2.6rem; } .track-head { display: flex; justify-content: space-between; align-items: end; border-bottom: 3px solid var(--ink); padding-bottom: .5rem; margin-bottom: 1rem; } .track-head p { margin: 0; }
.track-n { font: 1.2rem var(--hand); color: var(--red); }
.lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .75rem; }
.lesson { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: var(--r); background: var(--sheet); color: var(--ink); text-decoration: none; box-shadow: 0 2px 0 var(--steel-3); border-left: 6px solid var(--line); }
.lesson:hover { color: var(--ink); border-left-color: var(--ink); } .lesson.done { border-left-color: var(--green); }
.lesson b { display: block; font-weight: 700; } .lesson small { color: var(--mute); font-size: .82rem; }
.l-ico { font-size: 1.5rem; width: 44px; height: 44px; display: grid; place-items: center; background: var(--sheet-2); border-radius: 10px; flex: none; }
.lesson > div { flex: 1; } .l-go { color: var(--mute); font-weight: 700; } .l-score { font: 1.1rem var(--hand); color: var(--green); }
.lesson-view { max-width: 760px; margin: 1rem auto; } .lesson-view.result { text-align: center; padding: 3rem 0; }
.big-score { font: 900 7rem/1 var(--head); font-stretch: 75%; color: var(--ink); margin-bottom: .6rem; }
.steps { display: flex; gap: 6px; margin-bottom: 1rem; } .steps i { flex: 1; height: 6px; background: var(--steel-2); border-radius: 4px; } .steps i.on { background: var(--ink); } .steps i.q { flex: .4; background: var(--red); opacity: .5; }
.lcard { background: var(--paper); border-radius: 4px; padding: 2.2rem 2.4rem; margin-bottom: 1.2rem; min-height: 280px; box-shadow: 0 2px 0 var(--steel-3), 0 18px 30px -20px rgba(0,0,0,.5); border-top: 10px solid var(--yellow); }
.lcard p, .lcard li { font-size: 1.07rem; color: var(--ink-2); } .lcard ul { padding-left: 1.2rem; } .lcard li { margin: .35rem 0; }
.cutimg { display: block; max-width: 260px; max-height: 160px; margin: 1rem auto 0; }
.answers { display: grid; gap: .55rem; margin-top: 1.3rem; }
.answers button { text-align: left; padding: .9rem 1.05rem; border-radius: 8px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 500 1rem var(--body); cursor: pointer; }
.answers button:hover:not(:disabled) { border-color: var(--ink); }
.answers button.right { border-color: var(--green); background: #e1f0dc; } .answers button.wrong { border-color: var(--red); background: #f8dedb; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.why { margin-top: 1rem; color: var(--ink-2); min-height: 1.5em; }
.rush-top { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1rem; } .rush-top b, .rush-top small { display: block; font-family: var(--print); } .rush-top small { color: var(--red); }
.clock { position: relative; width: 74px; height: 74px; } .clock svg { width: 100%; height: 100%; transform: rotate(-90deg); } .clock span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 1.6rem var(--head); }
.ring-bg { fill: none; stroke: var(--steel-2); stroke-width: 9; } .ring-fg { fill: none; stroke: var(--red); stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .5s; }

/* studio */
.studio { display: grid; grid-template-columns: 270px minmax(0, 1fr) 320px; gap: 1rem; align-items: start; }
.st-pantry, .st-judge { position: sticky; top: 76px; max-height: calc(100vh - 90px); overflow: auto; padding: 1rem; }
.st-pantry { --board: var(--green); } .st-judge { --board: var(--yellow); }
.st-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--steel-2); padding: 3px; border-radius: 10px; margin-bottom: .8rem; }
.st-tabs button { border: 0; background: none; color: var(--ink-2); font: 600 .74rem var(--body); padding: .55em .2em; border-radius: 7px; cursor: pointer; } .st-tabs button.on { background: #fff; color: var(--ink); }
.st-items { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.food-chip { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .45rem .3rem; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: grab; touch-action: none; }
.food-chip:hover { border-color: var(--ink); } .food-chip svg { width: 62px; height: 62px; } .food-chip span { font-size: .7rem; color: var(--ink-2); text-align: center; line-height: 1.15; font-weight: 600; }
.sauce-chip { grid-column: span 2; display: flex; align-items: center; gap: .6rem; padding: .48rem .7rem; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-size: .88rem; text-align: left; }
.sauce-chip i { width: 22px; height: 22px; border-radius: 50%; flex: none; } .sauce-chip.on { border-color: var(--ink); background: var(--sheet-2); }
.st-items .mini, .st-items .slider { grid-column: span 2; } .slider { display: flex; flex-direction: column; gap: .3rem; margin-top: .4rem; }
.st-plates { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .2rem; } #st-plates { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; }
.plate-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 9px; padding: .35rem; cursor: pointer; display: flex; justify-content: center; } .plate-chip i { width: 30px; height: 30px; display: block; box-shadow: 0 1px 3px rgba(0,0,0,.4); } .plate-chip span { display: none; } .plate-chip.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.st-stage { min-width: 0; }
.st-toolbar { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.st-actions { display: flex; gap: .3rem; } .st-actions button, .st-selbar button { border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 8px; padding: .42em .8em; cursor: pointer; font: 600 .86rem var(--body); } .st-actions button:hover, .st-selbar button:hover { border-color: var(--ink); }
.st-canvas { position: relative; aspect-ratio: 1; width: min(100%, calc(100vh - 290px)); min-width: 300px; margin: 0 auto; border-radius: 14px; overflow: hidden; touch-action: none; user-select: none;
  background: radial-gradient(circle at 50% 40%, rgba(255,190,100,.28), transparent 65%), var(--brushed), linear-gradient(180deg, #c9ced1, #aeb5b9); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), inset 0 -20px 50px rgba(0,0,0,.18), 0 2px 0 var(--steel-3); }
.st-canvas > svg { width: 100%; height: 100%; display: block; }
.st-canvas .food { cursor: grab; } .st-canvas .food:active { cursor: grabbing; } .st-canvas.painting { cursor: crosshair; } .st-canvas.painting .food { pointer-events: none; }
.selring { stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.sauce.sel { filter: drop-shadow(0 0 3px #1e5aa8); } .st-canvas .sauce { cursor: pointer; }
.st-selbar { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; min-height: 46px; margin-top: .7rem; padding: .5rem .8rem; border-radius: 10px; background: var(--sheet); box-shadow: 0 2px 0 var(--steel-3); font-size: .88rem; }
.st-selbar:empty { display: none; } .st-selbar label { display: flex; align-items: center; gap: .4rem; color: var(--ink-2); } .st-selbar input[type=range] { width: 110px; }
.st-hint { text-align: center; font-size: .86rem; color: var(--mute); margin: .5rem auto 0; }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(0,0,0,.4)); }
.judge-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; } .judge-head b { display: block; font: 800 1.25rem var(--head); font-stretch: 75%; } .judge-head small { color: var(--mute); font-size: .82rem; display: block; line-height: 1.3; }
.judge-head .kicker { margin-bottom: .3rem; font-size: .85rem; }
.ring { position: relative; width: 84px; height: 84px; flex: none; } .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); } .ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 1.9rem var(--head); font-stretch: 75%; }
.ring .ring-fg { stroke: var(--ink); }
.parts { display: grid; gap: .55rem; }
.part-top { display: flex; justify-content: space-between; font-size: .86rem; font-weight: 700; } .part-top em { font: 700 .86rem var(--body); font-style: normal; }
.part .bar { height: 6px; background: var(--steel-2); border-radius: 4px; overflow: hidden; margin: .25rem 0; } .part .bar i { display: block; height: 100%; border-radius: 4px; transition: width .4s; }
.part.good .bar i { background: var(--green); } .part.mid .bar i { background: var(--yellow); } .part.bad .bar i { background: var(--red); }
.part.good em { color: var(--green); } .part.mid em { color: #a87900; } .part.bad em { color: var(--red); }
.part small { display: block; font-size: .8rem; color: var(--mute); line-height: 1.35; }
.drill { background: var(--paper); border-radius: 6px; padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--line); } .drill .kicker { font-size: .85rem; margin-bottom: .3rem; } .drill p { font-size: .88rem; margin-bottom: .5rem; }
.drill ul { list-style: none; padding: 0; margin: 0; font-size: .88rem; } .drill li { padding: .2rem 0; color: var(--mute); } .drill li.ok { color: var(--green); font-weight: 700; }

/* sauce lab */
.lab-head { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; } .lb-target { margin-left: auto; font-size: .9rem; color: var(--ink-2); }
select, input, textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 8px; padding: .6em .75em; width: 100%; }
select { width: auto; } input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(30,90,168,.25); }
input[type=range] { padding: 0; border: 0; background: none; accent-color: var(--ink); width: 100%; box-shadow: none; } input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--red); }
.lab-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }
.lb-left, .lb-right { position: sticky; top: 76px; max-height: calc(100vh - 90px); overflow: auto; }
.lb-left { --board: var(--green); } .lb-mid { --board: var(--red); } .lb-right { --board: var(--yellow); }
.ing-group h5 { margin-top: .9rem; } .ing { display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; padding: .4rem .55rem; margin: 2px 0; border-radius: 7px; border: 1.5px solid transparent; background: none; color: var(--ink-2); cursor: pointer; font-size: .88rem; }
.ing:hover { background: var(--sheet-2); color: var(--ink); } .ing.in { border-color: var(--ink); background: #fff; color: var(--ink); font-weight: 600; }
.ing i { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.3); } .ing small { margin-left: auto; font: 700 .72rem var(--body); color: var(--red); }
.pot-row { display: grid; grid-template-columns: 14px 1fr 1.2fr 56px 26px; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--sheet-2); font-size: .92rem; }
.pot-row i { width: 14px; height: 14px; border-radius: 50%; } .pot-row b { font: 700 .84rem var(--body); text-align: right; } .pot-row button { border: 0; background: none; color: var(--mute); cursor: pointer; } .pot-row button:hover { color: var(--red); }
.warn-tag { font-style: normal; font-size: .72rem; color: #fff; background: var(--red); padding: .1em .4em; border-radius: 4px; }
.pot-total { text-align: right; margin: .6rem 0 1.4rem; color: var(--mute); font-size: .9rem; } .pot-total b { color: var(--ink); }
.proc { display: grid; gap: .8rem; } .proc label { display: grid; grid-template-columns: 1fr 1.3fr 70px; gap: .6rem; align-items: center; font-size: .92rem; color: var(--ink-2); } .proc label b { font-weight: 700; text-align: right; color: var(--ink); }
.proc label.chk, label.chk { display: flex; gap: .5rem; align-items: center; } .proc-row { display: grid; gap: .6rem; padding-left: 1.2rem; border-left: 3px solid var(--line); } .proc-row.off { opacity: .35; pointer-events: none; }
.thermo { position: relative; height: 12px; border-radius: 12px; background: linear-gradient(90deg, #6fa6c8, #f0d38a 40%, #e2843b 65%, #3a2a1a); margin: -.2rem 0 1.3rem; }
.thermo i { position: absolute; top: -4px; width: 5px; height: 20px; background: var(--ink); border-radius: 2px; transform: translateX(-2px); transition: left .2s; } .thermo span { position: absolute; top: 15px; transform: translateX(-50%); font-size: .72rem; color: var(--mute); }
.learn { margin-top: 1.4rem; border: 1.5px solid var(--line); border-radius: 10px; padding: .8rem 1rem; background: #fff; } .learn summary { cursor: pointer; font-weight: 700; } .learn ol { color: var(--ink-2); font-size: .92rem; padding-left: 1.2rem; } .learn li { margin: .35rem 0; }
.bottle { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #4b5257, #22282c 75%); border-radius: 12px; margin-bottom: 1rem; padding: .6rem; } .bottle svg { height: 360px; width: auto; max-width: 100%; }
.lb-score { display: flex; align-items: baseline; gap: .3rem; margin-bottom: .6rem; } .lb-score .kicker { margin: 0 auto 0 0; font-size: .85rem; } .lb-score b { font: 800 2.4rem var(--head); font-stretch: 75%; } .lb-score span { color: var(--mute); }
.meter { margin: .6rem 0; } .meter-top { display: flex; justify-content: space-between; font-size: .86rem; font-weight: 700; } .meter-top em { font: 500 .82rem var(--body); color: var(--ink-2); font-style: normal; }
.heatbar { height: 10px; border-radius: 10px; background: var(--steel-2); overflow: hidden; margin-top: .3rem; } .heatbar i { display: block; height: 100%; background: linear-gradient(90deg, #2f7d3b, #f0b323, #e46a12, #b5161a); background-size: 300px 100%; border-radius: 10px; transition: width .4s; }
.phbar { position: relative; height: 10px; border-radius: 10px; margin-top: .3rem; background: linear-gradient(90deg, #c8302a, #e46a12, #f0b323, #2f7d3b, #1e5aa8); } .phbar i { position: absolute; top: -4px; width: 6px; height: 18px; background: var(--ink); border-radius: 3px; transform: translateX(-3px); transition: left .4s; } .phbar b { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #fff; }
.radar { width: 100%; max-width: 300px; display: block; margin: .6rem auto; } .rd-ring { fill: none; stroke: var(--line); } .rd-ax { stroke: var(--line); } .rd-lb { font: 600 9px var(--body); fill: var(--mute); } .rd-val { fill: rgba(200,48,42,.22); stroke: var(--red); stroke-width: 2; } .rd-dot { fill: var(--red); }
.notes, .safety { list-style: none; padding: 0; margin: .6rem 0; font-size: .88rem; } .notes li { padding: .3rem 0 .3rem 1rem; position: relative; color: var(--ink-2); } .notes li::before { content: ''; position: absolute; left: 0; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.safety li { padding: .55rem .7rem .55rem .8rem; border-radius: 8px; margin: .4rem 0; border-left: 5px solid; }
.safety .ok { background: #e1f0dc; border-color: var(--green); } .safety .warn { background: #fbefcf; border-color: var(--yellow); } .safety .bad { background: #f8dedb; border-color: var(--red); }
.fld { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; font-size: .9rem; font-weight: 700; color: var(--ink-2); } .fld small { font-weight: 400; color: var(--mute); } .fld .row { flex-wrap: nowrap; } .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.swatches, .fontpick, .motifs { display: flex; flex-wrap: wrap; gap: .4rem; }
.sw { width: 38px; height: 38px; border-radius: 8px; border: 2px solid var(--line); cursor: pointer; } .sw.on { border-color: var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.fontpick button { border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); padding: .5em .8em; border-radius: 8px; cursor: pointer; font-size: 1rem; } .fontpick button.on, .motifs button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.motifs button { width: 48px; height: 48px; border: 1.5px solid var(--line-2); background: #fff; border-radius: 8px; cursor: pointer; padding: 6px; }
.backlabel { background: var(--paper); padding: 1rem; border-radius: 6px; font-size: .86rem; border: 1px solid var(--line); } .backlabel p { margin: .5rem 0; }

/* post */
.post-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: start; }
.post-vis { border-radius: var(--r2); overflow: hidden; background: radial-gradient(circle at 50% 45%, #4b5257, #22282c); aspect-ratio: 1; display: grid; place-items: center; position: sticky; top: 76px; box-shadow: 0 2px 0 var(--steel-3); }
.post-vis > img, .post-vis > svg { width: 100%; height: 100%; object-fit: contain; } .post-vis .ticket-thumb { width: 60%; }
.byline { display: flex; gap: .7rem; align-items: center; color: var(--ink); margin-bottom: 1rem; text-decoration: none; } .byline b { display: block; } .byline small { color: var(--mute); font-size: .84rem; }
.post-body { font-size: 1.06rem; color: var(--ink); }
.rate { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; } .rate .stars { font-size: 1.2rem; } .rate .kicker { font-size: .85rem; }
.rate-me { display: flex; } .rate-me button { background: none; border: 0; font-size: 1.9rem; color: #c3c8cb; cursor: pointer; padding: 0 2px; } .rate-me button.on { color: var(--yellow); }
.rate-me:hover button { color: var(--yellow); } .rate-me button:hover ~ button { color: #c3c8cb; }
.post-side .panel { margin-bottom: 1rem; } .post-side ul, .post-side ol { color: var(--ink-2); padding-left: 1.2rem; }
.recipe { list-style: none; padding: 0 !important; } .recipe li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--sheet-2); padding: .35rem 0; }
.comments { margin-top: 2rem; } .cmt { display: flex; gap: .7rem; padding: .8rem 0; border-bottom: 1px solid var(--sheet-2); } .cmt p { margin: .2rem 0 0; color: var(--ink); } .cmt small { color: var(--mute); }
#cmt-f { margin-top: 1rem; flex-wrap: nowrap; } #cmt-f input { flex: 1; }

/* modal & toasts */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(29,35,39,.55); display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(760px, 100%); max-height: 92vh; overflow: auto; background: var(--sheet); border-radius: var(--r2); padding: 2rem; border-top: 8px solid var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.modal-x { position: absolute; right: 1rem; top: 1rem; background: none; border: 0; color: var(--mute); font-size: 1.2rem; cursor: pointer; }
.serve { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.4rem; align-items: start; }
.serve-vis { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; } .serve-vis svg { width: 100%; height: 100%; } .serve-vis.bottle-thumb svg { height: 100%; width: auto; }
.judge-mini { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .6rem; } .judge-mini span { font: 600 .74rem var(--body); padding: .25em .55em; border-radius: 6px; background: #fff; border: 1px solid var(--line); } .judge-mini .good { color: var(--green); } .judge-mini .mid { color: #a87900; } .judge-mini .bad { color: var(--red); }
.drop { display: grid; place-items: center; text-align: center; min-height: 180px; border: 2px dashed var(--line-2); border-radius: 12px; margin-bottom: 1rem; cursor: pointer; color: var(--ink-2); background: #fff; overflow: hidden; }
.drop.small { min-height: 90px; } .drop.over, .drop:hover { border-color: var(--ink); } .drop small { display: block; color: var(--mute); margin-top: .3rem; } .drop img { max-width: 100%; max-height: 320px; display: block; }
#toasts { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 120; display: grid; gap: .5rem; }
.toast { background: var(--paper); color: var(--ink); padding: .75rem 1rem; border-radius: 6px; border-left: 6px solid var(--ink); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); max-width: 360px; transition: opacity .4s, transform .4s; }
.toast.good { border-left-color: var(--green); } .toast.bad { border-left-color: var(--red); } .toast.out { opacity: 0; transform: translateY(10px); }

/* invent, board, profile, auth */
.invent { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.2rem; align-items: start; } .invent .panel { --board: var(--green); } .tips { --board: var(--yellow) !important; } .tips ul { padding-left: 1.1rem; color: var(--ink-2); font-size: .94rem; } .tips li { margin: .5rem 0; } .tips b { color: var(--ink); }
.spark { margin-top: .8rem; font: 1.15rem var(--hand); color: var(--red); min-height: 1.5em; }
.board { padding: .5rem; } .brow { display: flex; align-items: center; gap: .9rem; padding: .7rem .9rem; border-radius: 8px; color: var(--ink); text-decoration: none; } .brow:hover { background: var(--sheet-2); color: var(--ink); } .brow.me { background: #fbefcf; }
.pos { width: 2rem; font: 800 1.1rem var(--head); color: var(--mute); text-align: center; } .pos.p0 { color: #b8860b; } .pos.p1 { color: #7d868b; } .pos.p2 { color: #9a5b2a; }
.bname { flex: 1; } .bname b { display: block; } .bname small { color: var(--mute); font-size: .8rem; } .bxp { font-weight: 700; }
.prof-head { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; margin-bottom: 2rem; } .prof-txt { flex: 1; min-width: 240px; } .prof-txt h1 { font-size: 2.6rem; margin-bottom: .3rem; }
.xpline { display: flex; align-items: center; gap: 1rem; margin-top: .6rem; } .xpline .pbar { flex: 1; } .xpline small { color: var(--mute); white-space: nowrap; }
.prof-stats { display: flex; gap: 1.6rem; } .prof-stats b { display: block; font: 800 2rem var(--head); font-stretch: 75%; } .prof-stats span { font-size: .82rem; color: var(--mute); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; margin-bottom: 2rem; }
.bdg { text-align: center; padding: .9rem .4rem; border-radius: 10px; background: var(--sheet); opacity: .4; filter: grayscale(1); box-shadow: 0 2px 0 var(--steel-3); } .bdg.on { opacity: 1; filter: none; } .bdg span { font-size: 1.8rem; display: block; } .bdg small { font-size: .76rem; color: var(--ink-2); }
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; min-height: 70vh; } .auth-card { max-width: 440px; padding: 2.2rem; --board: var(--blue); } .auth-art svg { width: 100%; filter: drop-shadow(0 30px 30px rgba(0,0,0,.35)); }
.auth-foot { margin-top: 1.2rem; font-size: .9rem; color: var(--mute); text-align: center; } .err { color: var(--red); font-size: .9rem; min-height: 1.2em; margin-bottom: .3rem; }
.prose { max-width: 760px; margin: 1rem auto; padding: 2.4rem; } .prose li { color: var(--ink-2); margin: .5rem 0; }

/* kitchen alchemy */
.alchemy { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1rem; align-items: start; position: relative; }
.al-board { position: relative; height: calc(100vh - 230px); min-height: 460px; border-radius: 14px; overflow: hidden; touch-action: none; user-select: none;
  background: var(--brushed), linear-gradient(180deg, #d9dde0, #b7bec2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), inset 0 -30px 60px rgba(0,0,0,.12), 0 2px 0 var(--steel-3); }
.al-bench-top { position: absolute; left: 1rem; right: 1rem; top: .8rem; display: flex; justify-content: space-between; align-items: center; z-index: 3; pointer-events: none; } .al-bench-top > * { pointer-events: auto; } .al-actions { display: flex; gap: .4rem; }
.al-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: var(--mute); font: 1.1rem var(--hand); max-width: 30ch; }
.al-tile { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; width: 84px; min-height: 76px; padding: .4rem .3rem; background: #fff; border-radius: 10px; border: 1.5px solid var(--line); border-bottom: 5px solid var(--c); text-align: center; cursor: grab; touch-action: none; }
.al-tile i { font-style: normal; font-size: 1.9rem; line-height: 1.1; } .al-tile b { font: 600 .72rem/1.15 var(--body); color: var(--ink); }
.al-onboard { position: absolute; z-index: 2; transition: transform .1s; } .al-onboard.lift { z-index: 5; transform: scale(1.08) rotate(-2deg); } .al-onboard.lift .al-tile { box-shadow: 0 12px 18px -8px rgba(0,0,0,.45); }
.al-onboard.sel .al-tile { outline: 3px solid var(--blue); }
.al-onboard.nope { animation: shake .35s; } .al-onboard.pop { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); } @keyframes pop { from { transform: scale(.3); } }
.al-ghost { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: .9; }
.al-side { position: sticky; top: 76px; max-height: calc(100vh - 90px); overflow: auto; background: var(--sheet); border-radius: var(--r2); padding: 1rem; border-top: 6px solid var(--green); box-shadow: 0 2px 0 var(--steel-3); }
.al-count { margin-bottom: .8rem; font-size: .92rem; } .al-count b { font: 800 1.6rem var(--head); } .al-count .pbar { margin-top: .4rem; }
.al-items { display: flex; flex-wrap: wrap; gap: .35rem; } .al-group h5 { margin-top: 1rem; }
.al-side .al-tile { width: 72px; min-height: 66px; } .al-side .al-tile i { font-size: 1.55rem; } .al-side .al-tile b { font-size: .66rem; }
.al-card { position: absolute; left: 1rem; bottom: 1rem; z-index: 10; width: min(340px, calc(100% - 2rem)); background: var(--paper); border-radius: 6px; padding: 1.2rem 1.3rem; border-top: 8px solid var(--yellow); box-shadow: 0 20px 40px -14px rgba(0,0,0,.5); }
.al-card[hidden] { display: none; } .al-x { position: absolute; right: .7rem; top: .6rem; border: 0; background: none; cursor: pointer; color: var(--mute); }
.al-big { font-size: 3rem; line-height: 1; margin: .2rem 0 .4rem; } .al-how { font-weight: 700; color: var(--ink); } .al-card p { font-size: .95rem; margin-bottom: .5rem; }

/* footer */
.foot { margin-top: 2rem; background: var(--ink); color: #cbd1d4; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 2.5rem 1.4rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.foot h4 { font: 700 .95rem var(--body); color: #fff; } .foot a { display: block; color: #cbd1d4; font-size: .92rem; padding: .2rem 0; text-decoration: none; } .foot a:hover { color: #fff; }
.foot-brand { font: 800 1.6rem var(--head); font-stretch: 75%; color: #fff; } .foot p { font-size: .92rem; color: #aeb6ba; max-width: 34ch; }
.foot-base { text-align: center; padding: 1rem; border-top: 1px solid #3a4247; font: .95rem var(--hand); color: #aeb6ba; }

@media (max-width: 1200px) {
  .studio { grid-template-columns: 230px minmax(0, 1fr); } .st-judge { grid-column: 1 / -1; position: static; max-height: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .st-judge .drill { grid-column: 1 / -1; } .st-judge .parts { grid-row: span 3; }
  .lab-grid { grid-template-columns: 240px minmax(0, 1fr); } .lb-right { grid-column: 1 / -1; position: static; max-height: none; }
}
@media (max-width: 900px) {
  .mainnav { position: fixed; top: 58px; left: 0; right: 0; flex-direction: column; background: var(--sheet); border-bottom: 1px solid var(--line); padding: .8rem; transform: translateY(-130%); transition: transform .25s; z-index: 30; }
  .mainnav.open { transform: none; } .burger { display: block; order: 3; } .userbox { margin-left: auto; } .me-txt { display: none; }
  .pass-hero, .post-grid, .auth, .invent, .serve { grid-template-columns: 1fr; } .pass-plate { max-width: 460px; margin: 3rem auto 0; width: 100%; } .auth-art { display: none; }
  .special { grid-template-columns: 1fr; } .ladder { grid-template-columns: repeat(2, 1fr); } .ladder li { min-height: 0 !important; }
  .studio, .lab-grid, .alchemy { grid-template-columns: 1fr; } .st-pantry, .lb-left, .al-side { position: static; max-height: 320px; order: 2; } .st-stage { order: 1; } .st-judge { order: 3; grid-template-columns: 1fr; }
  .st-items { grid-template-columns: repeat(4, 1fr); } .st-items .sauce-chip, .st-items .mini, .st-items .slider { grid-column: span 4; }
  .al-board { height: 62vh; } .foot-in { grid-template-columns: 1fr 1fr; } .post-vis { position: static; } .lcard { padding: 1.6rem; }
}
@media (max-width: 560px) { .brand small { display: none; } .st-canvas { width: 100%; min-width: 0; } #view { padding: 1rem .9rem 3rem; } .pot-row { grid-template-columns: 12px 1fr 1fr 48px 20px; gap: .4rem; font-size: .84rem; } .proc label { grid-template-columns: 1fr; } .row2 { grid-template-columns: 1fr; } .al-tile { width: 72px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== editorial direction (overrides) ===== */
html, body { background: var(--steel); }
body { font-size: 17px; }
h1, h2, h3, h4 { font-weight: 400; font-stretch: 100%; letter-spacing: -.015em; line-height: .98; }
h1 { font-size: clamp(3rem, 7.4vw, 7.2rem); } h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); } h3 { font-size: 1.9rem; } h4 { font-size: 1.35rem; }
h5 { font-weight: 600; color: var(--mute); }
a { color: var(--ink); } a:hover { color: var(--red); }
.kicker, .tape { display: block; background: none; transform: none; clip-path: none; box-shadow: none; padding: 0; font: 600 .9rem/1.2 var(--body); color: var(--red); margin-bottom: .8rem; }
.tape.red, .tape.green { background: none; }
.topbar { background: var(--steel); border-bottom: 1px solid var(--ink); box-shadow: none; padding: .7rem 2rem; }
.topbar::after { display: none; }
.brand b { font: 400 1.75rem var(--head); } .brand small { display: none; } .brand svg { width: 30px; }
.mainnav a { font-weight: 500; color: var(--ink-2); border-radius: 0; padding: .4em .7em; }
.mainnav a:hover { background: none; color: var(--red); }
.mainnav a.on { background: none; color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); }
.langsel { background: transparent; border-color: var(--line-2); border-radius: 2px; }
.me { background: transparent; border-color: var(--line-2); }
.avatar { background: var(--ink); color: var(--steel); border: 0; font-family: var(--head); }
.btn { border-radius: 2px; box-shadow: none; border: 1.5px solid var(--ink); font-weight: 600; letter-spacing: .005em; }
.btn:active { transform: none; box-shadow: none; }
.btn-hot { background: var(--red); border-color: var(--red); } .btn-hot:hover { background: #b51d16; border-color: #b51d16; }
.btn-ghost, .btn.ghost { background: transparent; color: var(--ink); } .btn-ghost:hover, .btn.ghost:hover { background: var(--ink); color: var(--steel); }
.btn.sm { box-shadow: none; }
.chip { border-radius: 2px; background: transparent; border-color: var(--line-2); }
.chip.on, .chip:hover { background: var(--ink); border-color: var(--ink); color: var(--steel); }
.seg { background: transparent; box-shadow: none; border: 1px solid var(--line-2); border-radius: 2px; padding: 2px; }
.seg > button, .seg > a, .seg > label > span { border-radius: 1px; font-weight: 500; }
.seg > .on, .seg > label > input:checked + span { background: var(--ink); color: var(--steel); box-shadow: none; }
.panel { background: var(--sheet); border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 3px; box-shadow: none; }
.banner, .banner.demo { background: var(--ink); color: var(--steel); border: 0; } .banner .linkbtn { color: #fff; }
.pcard { border-radius: 3px; border: 1px solid var(--line); box-shadow: none; } .pcard:hover { outline: none; border-color: var(--ink); }
.pcard-vis, .bottle-thumb, .post-vis, .bottle { background: #211d1b; border-radius: 0; }
.pcard-body b { font: 400 1.35rem/1.1 var(--head); }
.kind { background: var(--steel); color: var(--ink); transform: none; font: 600 .74rem var(--body); border-radius: 2px; }
.k-sauce, .k-invention, .k-photo { background: var(--steel); }
.badge-score { background: var(--red); color: #fff; border: 0; font: 400 1.2rem var(--head); }
.stars i.on { color: var(--red); } .stars i.half { background: linear-gradient(90deg, var(--red) 50%, #d3c9b8 50%); -webkit-background-clip: text; background-clip: text; }
.rate-me button.on, .rate-me:hover button { color: var(--red); }
.ticket-thumb { font-family: var(--body); } .ticket-thumb b { font: 400 1.5rem/1 var(--head); }
.loading { font: italic 1.6rem var(--head); }
.track-head { border-bottom: 1px solid var(--ink); } .track-n { font: 400 1.6rem var(--head); color: var(--red); }
.lesson { border: 1px solid var(--line); border-left: 3px solid var(--line); box-shadow: none; border-radius: 2px; background: var(--sheet); }
.lesson b { font: 400 1.3rem/1.1 var(--head); } .l-ico { background: var(--steel-2); border-radius: 2px; } .l-score { font: 400 1.4rem var(--head); }
.lcard { border-radius: 2px; border: 1px solid var(--line); border-top: 4px solid var(--red); box-shadow: none; }
.big-score { font: 400 9rem/1 var(--head); }
.steps i { background: var(--line); height: 3px; } .steps i.on { background: var(--ink); } .steps i.q { background: var(--red); }
.answers button { border-radius: 2px; border: 1px solid var(--line-2); background: var(--paper); }
.st-canvas { background: radial-gradient(circle at 50% 42%, #3a3330, #1a1716 72%); box-shadow: none; border-radius: 3px; }
.st-pantry, .st-judge, .lb-left, .lb-mid, .lb-right { border-top: 1px solid var(--line); }
.food-chip, .sauce-chip, .plate-chip, .ing.in, .fontpick button, .motifs button, .st-actions button, .st-selbar button { border-radius: 2px; }
.food-chip { background: var(--paper); border-color: var(--line); }
.st-tabs { background: transparent; border: 1px solid var(--line-2); border-radius: 2px; } .st-tabs button { border-radius: 1px; } .st-tabs button.on { background: var(--ink); color: var(--steel); }
.ring .ring-fg, .ring-fg { stroke: var(--red); } .ring span, .clock span { font: 400 2.2rem var(--head); }
.judge-head b { font: 400 1.6rem var(--head); }
.drill { border-radius: 2px; background: var(--paper); }
.st-selbar { box-shadow: none; border: 1px solid var(--line); border-radius: 2px; }
.lb-score b, .prof-stats b, .al-count b { font: 400 2.6rem var(--head); }
.al-board { background: var(--sheet-2) radial-gradient(#cfc4b2 1px, transparent 1.4px) 0 0 / 26px 26px; box-shadow: none; border: 1px solid var(--line); border-radius: 3px; }
.al-side { border-top: 1px solid var(--line); border: 1px solid var(--line); border-radius: 3px; box-shadow: none; }
.al-tile { border-radius: 3px; border: 1px solid var(--line); border-bottom: 3px solid var(--c); background: var(--paper); }
.al-card { border-radius: 3px; border: 1px solid var(--line); border-top: 4px solid var(--red); }
.al-empty { font: italic 1.5rem var(--head); }
.ladder li { background: var(--sheet); border: 1px solid var(--line); border-bottom: 3px solid var(--ink); box-shadow: none; border-radius: 0; }
.ladder b { font: 400 1.35rem/1 var(--head); } .ladder span { font: 600 .85rem var(--body); }
.ladder li:nth-child(7) { background: var(--red); border-color: var(--red); }
.modal-card { border-radius: 3px; border-top: 4px solid var(--red); }
.toast { border-radius: 2px; }
.prof-txt h1 { font-size: 3.4rem; }
.foot { background: var(--ink); } .foot-brand { font: 400 2.2rem var(--head); } .foot-base { font: italic 1.05rem var(--head); }
.spark { font: italic 1.4rem var(--head); }

/* editorial hero */
.ed-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: calc(100vh - 66px); margin: -1.6rem -1.4rem 0; border-bottom: 1px solid var(--ink); }
body:not(.wide) #view:has(.ed-hero) { max-width: none; padding-top: 0; }
.ed-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: 4rem clamp(1.4rem, 5vw, 5rem) 4.5rem; }
.ed-copy h1 { margin: 0 0 .35em; max-width: 9.5ch; }
.ed-copy .lead { font-size: 1.2rem; max-width: 46ch; color: var(--ink-2); margin-bottom: 2rem; }
.ed-visual { position: relative; background: #1a1716; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ed-visual > svg { width: 128%; max-width: none; margin-right: -32%; transform: rotate(-8deg); filter: drop-shadow(0 40px 50px rgba(0,0,0,.6)); }
.ed-cap { position: absolute; left: 2rem; bottom: 1.8rem; right: 2rem; display: flex; justify-content: space-between; align-items: end; color: #e7e0d3; font: italic 1.15rem var(--head); }
.ed-cap b { font: 400 4.2rem/1 var(--head); font-style: normal; color: #fff; }
.ed-cap b small { font: 600 .85rem var(--body); color: var(--red); display: block; text-align: right; }
.ways { margin: 0 -1.4rem; border-bottom: 1px solid var(--ink); }
.ways-head { display: flex; justify-content: space-between; align-items: end; padding: 4.5rem clamp(1.4rem, 5vw, 5rem) 1.6rem; gap: 2rem; }
.ways-head p { margin: 0; max-width: 36ch; }
.way { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 300px; align-items: center; gap: 2rem; padding: 1.6rem clamp(1.4rem, 5vw, 5rem); border-top: 1px solid var(--ink); color: var(--ink); text-decoration: none; overflow: hidden; transition: background .25s, color .25s; }
.way-t { font: 400 clamp(2.6rem, 6vw, 5.6rem)/1 var(--head); letter-spacing: -.02em; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.way-d { font-size: 1.05rem; color: var(--ink-2); max-width: 38ch; transition: color .25s; }
.way-go { font-weight: 600; white-space: nowrap; justify-self: end; position: relative; z-index: 1; }
.way-pic { position: absolute; right: calc(clamp(1.4rem, 5vw, 5rem) + 140px); top: 50%; width: 150px; height: 150px; transform: translate(40px, -50%) rotate(12deg) scale(.8); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.way-pic svg { width: 100%; height: 100%; }
.way:hover { background: var(--ink); color: var(--steel); }
.way:hover .way-d { color: #cfc6b6; } .way:hover .way-go { color: var(--red); }
.way:hover .way-t { transform: translateX(1.2rem); }
.way:hover .way-pic { opacity: 1; transform: translate(0, -50%) rotate(-6deg) scale(1); }
.home-band { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -1.4rem; border-bottom: 1px solid var(--ink); }
.home-band > div { padding: 2.4rem clamp(1.4rem, 3vw, 2.6rem); border-right: 1px solid var(--line-2); }
.home-band > div:last-child { border-right: 0; }
.home-band h3 { font-size: 2.2rem; }
@media (max-width: 900px) {
  .ed-hero { grid-template-columns: 1fr; min-height: 0; } .ed-copy { padding: 3rem 1.4rem; } .ed-visual { min-height: 420px; }
  .way { grid-template-columns: 1fr; gap: .4rem; } .way-pic { display: none; } .home-band { grid-template-columns: 1fr; } .home-band > div { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .ways-head { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { .way-pic { display: none; } }
