/* CoffeForMe — tema iOS 26 (Liquid Glass) */
:root {
  --ink: #1d1611;
  --ink-2: rgba(52, 38, 28, .74);
  --mute: rgba(52, 38, 28, .5);
  --hair: rgba(70, 48, 30, .13);
  --glass: rgba(255, 255, 255, .54);
  --glass-2: rgba(255, 255, 255, .74);
  --glass-edge: rgba(255, 255, 255, .72);
  --fill: rgba(120, 90, 60, .09);
  --fill-2: rgba(120, 90, 60, .15);
  --tint: #c2571c;
  --tint-2: #a84712;
  --green: #2e7a50;
  --green-soft: rgba(46, 122, 80, .14);
  --roast: #241a14;
  --pill: var(--pill);
  --hover: var(--hover);
  --on: var(--on);
  --sheet: var(--sheet);
  --bg-base: #f2e9dc; --bg1: #f8c99a; --bg2: #e9b9a2; --bg3: #bcd5c0; --bg4: #e6d3a8;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: var(--sans);
  --serif: var(--sans);
  --r-xl: 30px; --r-lg: 24px; --r-md: 18px; --r-sm: 12px;
  --shadow: 0 1px 1px var(--hover) inset, 0 -1px 1px rgba(120, 90, 60, .05) inset, 0 10px 34px -8px rgba(70, 40, 15, .22), 0 2px 6px rgba(70, 40, 15, .07);
  --blur: blur(26px) saturate(1.9);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); min-height: 100vh;
  font: 400 15px/1.45 var(--sans); letter-spacing: -.011em; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(52vw 46vw at 8% -6%, var(--bg1) 0%, transparent 62%),
    radial-gradient(48vw 44vw at 96% 4%, var(--bg2) 0%, transparent 60%),
    radial-gradient(60vw 50vw at 78% 104%, var(--bg3) 0%, transparent 62%),
    radial-gradient(46vw 40vw at 0% 100%, var(--bg4) 0%, transparent 60%);
  background-attachment: fixed;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(194, 87, 28, .45); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--mono); }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .02em; color: var(--mute); text-transform: none; }

/* ---------- bilah atas ---------- */
.top { position: sticky; top: 0; z-index: 30; padding: 12px 20px 0; pointer-events: none; }
.top-in {
  pointer-events: auto; max-width: 1480px; margin: 0 auto; height: 58px; padding: 0 10px 0 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 999px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--sans); letter-spacing: -.03em; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; color: #fff; display: grid; place-items: center; font-size: 20px; background: linear-gradient(160deg, #e0833f, #a8481a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 3px 8px rgba(168, 72, 26, .35); }
.brand em { font-style: normal; color: var(--tint); font-weight: 700; }
.nav { display: flex; gap: 2px; padding: 4px; background: var(--fill); border-radius: 999px; }
.nav a { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current=page] { color: var(--ink); background: var(--pill); box-shadow: 0 1px 2px rgba(60, 30, 10, .14), 0 3px 10px rgba(60, 30, 10, .08); }
.count { font: 600 11px/1 var(--sans); padding: 4px 7px; border-radius: 999px; background: var(--tint); color: #fff; }

/* ---------- tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--glass-2); font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 3px 10px rgba(70, 40, 15, .1); transition: transform .12s, background .2s, box-shadow .2s; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn:hover:not(:disabled) { background: var(--pill); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: default; box-shadow: none; }
.btn svg { font-size: 18px; }
.btn-primary, .btn-rust { color: #fff; border-color: rgba(255, 255, 255, .35); background: linear-gradient(180deg, #d9722f, #b44d17); box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 8px 20px -4px rgba(180, 77, 23, .55); }
.btn-primary:hover:not(:disabled), .btn-rust:hover:not(:disabled) { background: linear-gradient(180deg, #e17b37, #bd5219); }
.btn-ghost { background: transparent; box-shadow: none; border-color: var(--hair); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.ibtn { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--fill); font-size: 16px; padding: 0; color: var(--ink-2); transition: background .15s, transform .1s; }
.ibtn:hover:not(:disabled) { background: var(--fill-2); color: var(--ink); }
.ibtn:active:not(:disabled) { transform: scale(.92); }
.ibtn:disabled { opacity: .3; cursor: default; }

/* ---------- meja racik ---------- */
.bench { max-width: 1480px; margin: 0 auto; padding: 22px 20px 48px; display: grid; grid-template-columns: minmax(290px, 350px) minmax(0, 1fr) minmax(320px, 380px); gap: 20px; align-items: start; }
.sec-head { display: flex; align-items: baseline; gap: 10px; margin: 0 6px 12px; }
.sec-head .n { display: none; }
.sec-head h2 { font: 700 26px/1.1 var(--sans); letter-spacing: -.035em; }
.sec-head .aside { margin-left: auto; font: 500 13px/1 var(--sans); color: var(--mute); }

/* rak bahan */
.shelf { position: sticky; top: 84px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
.tabs { display: flex; gap: 2px; padding: 4px; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 999px; box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 1 auto; border: 0; background: none; padding: 8px 8px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected=true] { color: var(--ink); background: var(--pill); box-shadow: 0 1px 2px rgba(60, 30, 10, .15), 0 4px 12px rgba(60, 30, 10, .09); }
.tab .tn { font: 700 10.5px/1 var(--sans); margin-left: 4px; color: #fff; background: var(--tint); padding: 2px 5px; border-radius: 999px; }
.tab .tn:empty { display: none; }
.ing-list { overflow-y: auto; min-height: 0; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--r-lg); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); padding: 6px; }
.ing { display: grid; grid-template-columns: 1fr auto; align-items: stretch; border-radius: 16px; position: relative; }
.ing + .ing::before { content: ''; position: absolute; left: 52px; right: 12px; top: 0; border-top: 1px solid var(--hair); }
.ing-main { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; text-align: left; border: 0; background: none; padding: 11px 12px; min-width: 0; border-radius: 16px; user-select: none; touch-action: manipulation; transition: background .15s, transform .1s; }
.ing-main:hover { background: var(--hover); }
.ing-main:active { background: rgba(255, 255, 255, .8); transform: scale(.985); }
.sw { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), inset 0 2px 3px rgba(255, 255, 255, .45), inset 0 -4px 6px rgba(0, 0, 0, .18), 0 1px 3px rgba(0, 0, 0, .12); flex: none; display: block; }
.sw.sq { border-radius: 8px; }
.ing-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ing-t b { font-weight: 600; font-size: 15.5px; letter-spacing: -.02em; }
.ing-t small { font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.ing-amt { font: 500 12.5px/1 var(--sans); color: var(--mute); white-space: nowrap; }
.ing-used { display: none; align-items: center; gap: 6px; padding-right: 6px; }
.ing.on { background: var(--on); }
.ing.on .ing-used { display: flex; }
.ing.on .ing-main { background: none; }
.ing.on .ing-t b { color: var(--tint-2); }
.ing-used .pill { font: 700 12px/1 var(--sans); background: var(--tint); color: #fff; padding: 6px 9px; border-radius: 999px; }
.ing-used .ibtn { width: 30px; height: 30px; margin: auto 0; }
.ing[data-top].on .ing-amt::after { content: ' ✓'; color: var(--green); font-weight: 700; }
.hint { margin: 12px 8px 0; font-size: 12.5px; color: var(--mute); line-height: 1.45; }

/* panggung */
.stage-col { min-width: 0; }
.vessel-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; border: 1px solid var(--glass-edge); border-radius: 999px; background: var(--glass); padding: 4px; gap: 2px; box-shadow: var(--shadow); margin: 0; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; flex-direction: column; align-items: center; padding: 7px 16px; border-radius: 999px; line-height: 1.15; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; }
.seg small { font: 500 11px/1 var(--sans); color: var(--mute); margin-top: 3px; }
.seg input:checked + span { background: var(--pill); color: var(--ink); box-shadow: 0 1px 2px rgba(60, 30, 10, .16), 0 4px 12px rgba(60, 30, 10, .1); }
.seg input:disabled + span { opacity: .35; cursor: not-allowed; }
.seg input:focus-visible + span { outline: 3px solid rgba(194, 87, 28, .45); }
.gauge { display: flex; align-items: center; gap: 12px; font: 600 13px/1 var(--sans); color: var(--ink-2); min-width: 210px; padding: 0 6px; }
.gauge-track { flex: 1; height: 8px; background: var(--fill-2); border-radius: 999px; overflow: hidden; position: relative; }
.gauge-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #3c9a63, var(--green)); border-radius: 999px; transition: width .3s cubic-bezier(.3, .8, .3, 1), background .2s; }
.gauge.full .gauge-fill { background: linear-gradient(90deg, #e0833f, var(--tint)); }

.stage { position: relative; border-radius: var(--r-xl); overflow: hidden; height: clamp(400px, 60vh, 640px); background: radial-gradient(ellipse 62% 56% at 50% 52%, #5b4330 0%, #36281d 56%, #241a13 100%); border: 1px solid var(--hover); box-shadow: 0 0 0 6px rgba(255, 255, 255, .28), 0 24px 50px -14px rgba(60, 30, 10, .5), inset 0 1px 0 rgba(255, 255, 255, .18); }
.cup-canvas { display: block; touch-action: none; cursor: grab; position: absolute; inset: 0; width: 100%; height: 100%; }
.cup-canvas:active { cursor: grabbing; }
.stage-ui { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; pointer-events: none; }
.stage-ui > * { pointer-events: auto; }
.stage-tools { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.stool { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: #fbefdc; font-weight: 600; font-size: 13.5px; transition: background .2s, color .2s; }
.stool:hover { background: rgba(255, 255, 255, .18); }
.stool[aria-pressed=true] { background: var(--pill); color: #2b1d12; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.stool svg { font-size: 17px; }
.stage-hint { font: 500 12px/1.35 var(--sans); color: rgba(255, 240, 220, .62); text-align: right; }
.stage-empty { position: absolute; inset: 0; z-index: 1; display: grid; place-items: start center; padding-top: 7%; pointer-events: none; text-align: center; color: rgba(255, 240, 220, .75); }
.stage-empty p { font: 500 17px/1.35 var(--sans); max-width: 22ch; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #e8d8c0; padding: 30px; }
.stage-tag { position: absolute; z-index: 2; top: 18px; left: 20px; font: 600 12px/1 var(--sans); letter-spacing: .01em; color: rgba(255, 240, 220, .6); }
.stage-temp { position: absolute; z-index: 2; top: 12px; right: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: #fbefdc; font: 600 13px/1 var(--sans); background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
.stage-temp i { width: 9px; height: 9px; border-radius: 50%; background: #ff8a4c; box-shadow: 0 0 8px #ff8a4c; }
.stage-temp[data-t=ice] i { background: #7fd3ea; box-shadow: 0 0 8px #7fd3ea; }

/* urutan tuang */
.pours { margin-top: 24px; }
.layers { border: 1px solid var(--glass-edge); border-radius: var(--r-lg); background: var(--glass); box-shadow: var(--shadow); padding: 4px 6px; overflow: hidden; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.layer { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 8px; position: relative; }
.layer + .layer::before, .layer + .tops::before { content: ''; position: absolute; left: 46px; right: 8px; top: 0; border-top: 1px solid var(--hair); }
.layer-body { min-width: 0; }
.layer-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.layer-top b { font-weight: 600; font-size: 15px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layer-top output { font: 600 13px/1 var(--sans); color: var(--ink-2); flex: none; }
.layer-pos { font: 600 10.5px/1 var(--sans); color: var(--mute); margin-left: 8px; background: var(--fill); padding: 3px 7px; border-radius: 999px; vertical-align: 1px; }
.layer-ops { display: flex; gap: 5px; }
.layer input[type=range] { width: 100%; margin: 8px 0 0; height: 24px; background: none; -webkit-appearance: none; appearance: none; }
.layer input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--fill-2); }
.layer input[type=range]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--fill-2); }
.layer input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 6px rgba(60, 30, 10, .3), 0 0 0 .5px rgba(60, 30, 10, .12); cursor: grab; }
.layer input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 6px rgba(60, 30, 10, .3); }
.layers-empty { padding: 26px 16px; text-align: center; color: var(--mute); font-size: 14px; }
.layers-empty b { display: block; font: 600 17px/1.3 var(--sans); color: var(--ink-2); margin-bottom: 4px; }
.tops { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 8px; align-items: center; position: relative; }
.tops .eyebrow { margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 600; }
.chip button { border: 0; background: rgba(46, 122, 80, .18); padding: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: inherit; }
.chip button:hover { background: rgba(46, 122, 80, .3); }
.pour-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* tiket */
.ticket-col { position: sticky; top: 84px; }
.ticket { background: var(--glass-2); border: 1px solid var(--glass-edge); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 22px; position: relative; max-height: calc(100vh - 150px); overflow-y: auto; scrollbar-width: thin; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.t-head { display: flex; justify-content: space-between; font: 600 12px/1 var(--sans); color: var(--mute); }
.t-name { font: 700 clamp(30px, 3vw, 38px)/1.05 var(--sans); letter-spacing: -.04em; margin: 16px 0 12px; min-height: 2.1em; display: flex; align-items: flex-end; text-wrap: balance; }
.t-name.swap { animation: swap .35s cubic-bezier(.3, .8, .3, 1); }
@keyframes swap { from { opacity: 0; transform: translateY(8px) scale(.98); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.t-grade { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font: 700 12px/1 var(--sans); background: var(--fill); color: var(--ink-2); }
.badge[data-g=sempurna] { background: var(--green); color: #fff; box-shadow: 0 4px 10px -2px rgba(46, 122, 80, .5); }
.badge[data-g=bagus] { background: var(--green-soft); color: var(--green); }
.badge[data-g=hampir] { background: rgba(230, 160, 40, .2); color: #8a5a06; }
.badge[data-g=baru] { background: rgba(194, 87, 28, .16); color: var(--tint-2); }
.t-match { font: 500 13px/1 var(--sans); color: var(--mute); }
.t-desc { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; min-height: 3em; }
.rule { border: 0; border-top: 1px solid var(--hair); margin: 18px 0; }
.t-sec { font: 600 12.5px/1 var(--sans); color: var(--mute); margin-bottom: 10px; }
.lines li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; padding: 5px 0; }
.lines .sw { width: 12px; height: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.lines .dots { flex: 1; }
.lines .v { font: 600 13px/1 var(--sans); color: var(--ink-2); }
.compbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin-top: 12px; background: var(--fill); gap: 2px; }
.compbar i { display: block; height: 100%; background: var(--c); transition: flex-basis .35s; border-radius: 3px; }
.taste li { display: grid; grid-template-columns: 58px 1fr 22px; gap: 12px; align-items: center; font-size: 13.5px; padding: 4px 0; }
.taste .tk { color: var(--ink-2); font-weight: 600; }
.taste .tr { height: 8px; background: var(--fill-2); border-radius: 999px; position: relative; overflow: hidden; }
.taste .tr i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: linear-gradient(90deg, #e69a58, var(--tint)); border-radius: 999px; transition: width .4s cubic-bezier(.3, .8, .3, 1); }
.taste .tv { font: 600 12px/1 var(--sans); color: var(--mute); text-align: right; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.nums div { padding: 10px 6px 9px; background: var(--fill); border-radius: 14px; text-align: center; border: 0; }
.nums b { display: block; font: 700 17px/1 var(--sans); letter-spacing: -.03em; }
.nums small { display: block; font-size: 11px; color: var(--mute); margin-top: 5px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.tips li { position: relative; padding-left: 18px; font-size: 14px; color: var(--ink-2); margin: 5px 0; line-height: 1.4; }
.tips li::before { content: ''; position: absolute; left: 3px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--tint); }
.t-actions { display: grid; gap: 10px; margin-top: 18px; }
.t-actions .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-actions .btn-rust { height: 52px; font-size: 16px; }
.t-empty { padding: 44px 6px 26px; text-align: center; }
.t-empty b { display: block; font: 700 22px/1.2 var(--sans); letter-spacing: -.03em; margin-bottom: 8px; }
.t-empty p { color: var(--mute); font-size: 14.5px; }
.stamp { position: absolute; right: 16px; top: 84px; transform: rotate(-8deg); padding: 9px 15px; border-radius: 16px; color: #fff; background: linear-gradient(160deg, #e0833f, #b44d17); font: 600 11.5px/1.1 var(--sans); text-align: center; pointer-events: none; opacity: 0; box-shadow: 0 10px 26px -4px rgba(180, 77, 23, .6), inset 0 1px 0 rgba(255, 255, 255, .45); text-transform: none; letter-spacing: 0; mix-blend-mode: normal; border: 0; }
.stamp b { display: block; font: 700 16px/1 var(--sans); letter-spacing: -.02em; margin-top: 4px; }
.stamp.show { animation: stamp 2.8s cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-8deg) scale(.6); } 12% { opacity: 1; transform: rotate(-8deg) scale(1.08); } 20% { transform: rotate(-8deg) scale(1); } 82% { opacity: 1; } 100% { opacity: 0; transform: rotate(-8deg) scale(1); } }

/* toast */
#toasts { position: fixed; z-index: 99; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: rgba(32, 22, 15, .72); color: #fbefdc; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .25s, transform .3s cubic-bezier(.3, .9, .3, 1.2); max-width: 90vw; border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 12px 34px rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); }
.toast.in { opacity: 1; transform: none; }
.toast-warn { background: rgba(176, 72, 22, .85); }

/* ---------- responsif ---------- */
@media (max-width: 1180px) {
  .bench { grid-template-columns: minmax(0, 1fr) minmax(320px, 370px); }
  .shelf { grid-column: 1 / -1; grid-row: 2; position: static; max-height: none; }
  .ing-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); overflow: visible; }
  .hint { display: none; }
  .ticket-col { position: static; }
  .ticket { max-height: none; }
}
@media (max-width: 800px) {
  .top { padding: 8px 10px 0; }
  .top-in { height: 52px; padding: 0 6px 0 10px; }
  .brand { font-size: 16px; gap: 8px; } .brand-mark { width: 30px; height: 30px; font-size: 17px; }
  .nav a { height: 34px; padding: 0 11px; font-size: 13px; gap: 6px; }
  .bench { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px 12px 40px; }
  .stage-col { display: contents; }
  .stage-col > .sec-head { order: 1; margin-bottom: 0; }
  .vessel-row { order: 2; margin-bottom: 0; }
  .stage { order: 3; height: clamp(240px, 38vh, 350px); position: sticky; top: 66px; z-index: 6; border-radius: 26px; }
  .shelf { order: 4; grid-row: auto; grid-column: auto; }
  .pours { order: 5; margin-top: 0; }
  .ticket-col { order: 6; }
  .ing-list { grid-template-columns: 1fr; }
  .gauge { min-width: 0; flex: 1; }
  .stage-hint, .stage-tag { display: none; }
  .stool { padding: 0 11px; height: 34px; }
  .stool span.lbl { display: none; }
  .seg span { padding: 6px 11px; font-size: 13px; }
  .sec-head h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: var(--sheet); --glass-2: rgba(255, 252, 246, .96); }
}
@media (max-width: 460px) {
  .brand { font-size: 0; gap: 0; }
  .brand-mark { font-size: 17px; }
  .top-in { gap: 6px; }
  .nav a { padding: 0 10px; }
}

/* 3D kopi tanpa panel dan latar */
.stage { background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); border-radius: var(--r-xl); overflow: hidden; height: auto; aspect-ratio: 5 / 4; min-height: 320px; max-height: min(62vh, 560px); width: 100%; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
@media (min-width: 801px) and (max-width: 1180px) { .stage { aspect-ratio: 4 / 3; max-height: min(58vh, 520px); } }
.stage-tag { display: none; }
.stage-temp { color: var(--ink); background: var(--glass); border-color: var(--glass-edge); box-shadow: var(--shadow); }
.stage-empty { color: var(--ink-2); }
.stage-empty p { font-weight: 600; }
.stage-tools { background: var(--glass); border-color: var(--glass-edge); box-shadow: var(--shadow); }
.stool { color: var(--ink-2); }
.stool:hover { background: var(--hover); }
.stool[aria-pressed=true] { background: var(--tint); color: #fff; box-shadow: 0 4px 10px -2px rgba(180, 77, 23, .5); }
.stage-hint { color: var(--mute); }
.stage-fallback { color: var(--ink-2); }
@media (max-width: 800px) { .stage { order: 3; height: auto; aspect-ratio: 4 / 3; min-height: 210px; max-height: 36vh; position: sticky; top: 66px; z-index: 6; border-radius: 26px; } }
@media (max-width: 800px) and (max-height: 520px) { .stage { max-height: 52vh; aspect-ratio: 16 / 9; } }

/* ---------- tombol tema ---------- */
.theme-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-edge); background: var(--fill); color: var(--ink-2); display: grid; place-items: center; transition: background .2s, transform .1s, color .2s; padding: 0; margin-left: 4px; }
.theme-btn:hover { background: var(--fill-2); color: var(--ink); }
.theme-btn:active { transform: scale(.92); }
.theme-btn svg { font-size: 19px; }
.theme-btn .i-sun { display: none; } :root[data-theme=dark] .theme-btn .i-sun { display: block; } :root[data-theme=dark] .theme-btn .i-moon { display: none; }
@media (max-width: 800px) { .theme-btn { width: 34px; height: 34px; margin-left: 0; } .theme-btn svg { font-size: 17px; } }
body, .top-in, .tab, .btn { transition: background-color .3s, color .3s, border-color .3s; }

/* ---------- mode gelap ---------- */
:root[data-theme=dark] {
  color-scheme: dark;
  --ink: #f4e9d9; --ink-2: rgba(244, 233, 217, .76); --mute: rgba(244, 233, 217, .5); --hair: rgba(255, 238, 215, .12);
  --glass: rgba(42, 31, 25, .55); --glass-2: rgba(46, 35, 28, .74); --glass-edge: rgba(255, 236, 212, .15);
  --fill: rgba(255, 236, 212, .08); --fill-2: rgba(255, 236, 212, .14);
  --tint: #e5853f; --tint-2: #f2a76b; --green: #5fc68c; --green-soft: rgba(95, 198, 140, .18);
  --pill: rgba(255, 255, 255, .15); --hover: rgba(255, 255, 255, .07); --on: rgba(255, 255, 255, .11); --sheet: rgba(34, 26, 21, .93);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 12px 36px -8px rgba(0, 0, 0, .65), 0 2px 6px rgba(0, 0, 0, .3);
  --bg-base: #17110d; --bg1: #3d2412; --bg2: #351c18; --bg3: #1a2b22; --bg4: #33270f;
}
:root[data-theme=dark] .ing-main:hover { background: var(--hover); }
:root[data-theme=dark] .ing-main:active { background: var(--on); }
:root[data-theme=dark] .btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 3px 10px rgba(0, 0, 0, .3); }
:root[data-theme=dark] .btn:hover:not(:disabled) { background: var(--pill); }
:root[data-theme=dark] .badge[data-g=hampir] { color: #f0c36a; background: rgba(230, 170, 60, .2); }
:root[data-theme=dark] .badge[data-g=baru] { color: #f2a76b; }
:root[data-theme=dark] .tab[aria-selected=true], :root[data-theme=dark] .nav a[aria-current=page], :root[data-theme=dark] .seg input:checked + span { box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px rgba(0, 0, 0, .25); }
:root[data-theme=dark] .layer input[type=range]::-webkit-slider-thumb { background: #f4e9d9; }
:root[data-theme=dark] .layer input[type=range]::-moz-range-thumb { background: #f4e9d9; }
:root[data-theme=dark] .brand-mark { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 8px rgba(0, 0, 0, .4); }
