/* Studio Latte Art (3D) — iOS 26 */
.page-art { overflow-x: hidden; }
.studio { max-width: 1680px; margin: 0 auto; padding: 14px 20px 22px; }
.stage3d { position: relative; height: calc(100vh - 104px); min-height: 520px; border-radius: 34px; overflow: hidden; background: #6b4430; border: 1px solid var(--hover); box-shadow: 0 0 0 6px rgba(255, 255, 255, .28), 0 28px 60px -16px rgba(60, 30, 10, .55); touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.latte-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hud { position: absolute; z-index: 4; display: flex; gap: 8px; }
.hud-tl { top: 18px; left: 24px; flex-direction: column; gap: 2px; pointer-events: none; color: #fff6e6; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.hud-title { font: 700 22px/1 var(--sans); letter-spacing: -.03em; }
.hud-sub { font: 500 13px/1.3 var(--sans); opacity: .85; }
.hud-tr { top: 14px; right: 16px; flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 220px); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .34); background: rgba(36, 24, 15, .5); color: #fff6e6; font-weight: 600; font-size: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 18px rgba(0, 0, 0, .22); -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7); transition: background .2s, transform .1s; }
.pill:hover { background: rgba(36, 24, 15, .7); }
.pill:active { transform: scale(.96); }
.pill svg { font-size: 18px; }
.pill .pn { font: 700 11.5px/1 var(--sans); padding: 4px 7px; border-radius: 999px; background: var(--tint); color: #fff; }

/* slider kemiringan: kenop berbentuk teko */
.tilt { position: absolute; z-index: 4; right: 22px; top: 50%; transform: translateY(-46%); width: 72px; height: min(62%, 440px); display: flex; flex-direction: column; align-items: center; gap: 8px; touch-action: none; cursor: ns-resize; outline-offset: 6px; }
.tilt-lbl { font: 600 12px/1 var(--sans); color: #fff6e6; padding: 6px 12px; border-radius: 999px; background: rgba(36, 24, 15, .5); border: 1px solid rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.tilt-track { position: relative; flex: 1; width: 62px; border-radius: 999px; background: rgba(255, 255, 255, .34); border: 1px solid rgba(255, 255, 255, .55); box-shadow: inset 0 2px 10px rgba(60, 30, 10, .25), 0 8px 24px rgba(0, 0, 0, .2); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
.tilt-fill { position: absolute; left: 5px; right: 5px; bottom: 5px; height: 0; max-height: calc(100% - 10px); border-radius: 999px; background: linear-gradient(180deg, var(--pill), rgba(255, 255, 255, .45)); }
.tilt-knob { position: absolute; left: 50%; width: 56px; height: 56px; margin-left: -28px; bottom: -28px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #3b5cc4, #263f99); box-shadow: 0 6px 16px rgba(20, 30, 90, .55), inset 0 1px 0 rgba(255, 255, 255, .45); pointer-events: none; }
.tilt-knob svg { transition: transform .08s; }

.hint-bar { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 11px 20px; border-radius: 999px; background: rgba(32, 22, 15, .6); color: #f3e6d0; font-size: 14px; white-space: nowrap; border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); pointer-events: none; }
.hint-bar b { color: #ffc98c; font-weight: 700; }

.gauges { position: absolute; z-index: 4; left: 18px; bottom: 18px; width: 260px; padding: 10px 14px 12px; border-radius: 22px; background: rgba(36, 24, 15, .55); border: 1px solid rgba(255, 255, 255, .22); color: #fbefdc; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 30px rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); pointer-events: none; }
.gauge-row { display: grid; grid-template-columns: 54px 1fr 48px; gap: 10px; align-items: center; margin-top: 8px; font-size: 12.5px; }
.gl { font-weight: 600; opacity: .85; }
.gauge-row b { font: 700 12.5px/1 var(--sans); text-align: right; }
.gbar { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.gbar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #c98a4e, #f4d9b0); transition: width .12s linear; }
.gbar i.milk { background: linear-gradient(90deg, #f1e6d2, #fffaf0); }
.gbar .zone { position: absolute; left: 74%; width: 22%; top: 0; bottom: 0; background: rgba(120, 220, 150, .35); box-shadow: inset 0 0 0 1px rgba(160, 240, 180, .6); border-radius: 3px; }
.gbar.hot i { background: linear-gradient(90deg, #e08a4a, #e5532a); }
.status { font: 600 12.5px/1.3 var(--sans); padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .12); text-align: center; }
.status[data-t=good] { background: rgba(80, 200, 130, .28); }
.status[data-t=warn] { background: rgba(240, 170, 60, .32); }
.status[data-t=bad] { background: rgba(230, 80, 50, .45); }

.found { position: absolute; z-index: 5; left: 50%; top: 76px; transform: translate(-50%, -12px) scale(.94); opacity: 0; display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 999px; background: var(--pill); color: var(--ink); box-shadow: 0 14px 40px -6px rgba(0, 0, 0, .45), inset 0 1px 0 #fff; -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); transition: opacity .3s, transform .45s cubic-bezier(.3, 1.3, .4, 1); pointer-events: none; }
.found.in { opacity: 1; transform: translate(-50%, 0) scale(1); }
.found b { font: 700 24px/1 var(--sans); letter-spacing: -.03em; }
.f-k { font: 600 12px/1 var(--sans); color: var(--mute); }
.f-new { font: 700 11.5px/1 var(--sans); padding: 5px 9px; border-radius: 999px; background: var(--tint); color: #fff; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff6e6; padding: 30px; }

/* galeri */
.sheet-back { position: fixed; inset: 0; z-index: 80; background: rgba(30, 20, 12, .42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 20px; }
.sheet { width: min(780px, 100%); max-height: min(88vh, 820px); display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--glass-edge); border-radius: 32px; box-shadow: 0 30px 80px -10px rgba(0, 0, 0, .5), inset 0 1px 0 #fff; -webkit-backdrop-filter: blur(30px) saturate(1.9); backdrop-filter: blur(30px) saturate(1.9); overflow: hidden; animation: sheetIn .4s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.sheet-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px 12px; flex-wrap: wrap; }
.sheet-head h2 { font: 700 26px/1 var(--sans); letter-spacing: -.035em; }
.sheet-head .ibtn { margin-left: auto; }
.tabs2 small { display: inline; margin-left: 5px; font: 700 11px/1 var(--sans); color: var(--tint-2); }
.sheet-body { overflow-y: auto; padding: 0 24px 8px; flex: 1 1 auto; min-height: 0; }
.g-sec h3 { font: 700 13px/1 var(--sans); color: var(--ink-2); margin: 16px 0 10px; }
.g-sec h3 span { color: var(--mute); font-weight: 600; margin-left: 4px; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px 8px; }
.g-item { display: flex; flex-direction: column; align-items: center; gap: 7px; border: 0; background: none; padding: 6px 2px; border-radius: 18px; }
.g-item:hover { background: var(--hover); }
.g-item.sel { background: #fff; box-shadow: 0 0 0 2.5px var(--tint); }
.g-disc { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--fill-2); box-shadow: inset 0 0 0 2px rgba(120, 90, 60, .12); }
.g-item.got .g-disc { box-shadow: 0 0 0 3px #fff, 0 6px 14px -3px rgba(60, 30, 10, .4); }
.g-disc img { width: 100%; height: 100%; display: block; }
.g-disc i { font: 700 26px/1 var(--sans); color: var(--mute); font-style: normal; }
.g-disc.big { width: 92px; height: 92px; flex: none; }
.g-name { font: 600 12.5px/1.15 var(--sans); color: var(--ink-2); text-align: center; }
.g-detail { padding: 16px 24px 22px; border-top: 1px solid var(--hair); background: var(--hover); min-height: 60px; }
.gd-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gd-top h3 { font: 700 26px/1.1 var(--sans); letter-spacing: -.035em; margin-top: 6px; }
.gd-act { margin-left: auto; display: flex; gap: 8px; }
.gd-p { margin-top: 12px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.gd-p b { display: block; font-size: 12.5px; color: var(--mute); margin-bottom: 4px; }
.g-empty { color: var(--mute); text-align: center; padding: 8px 0; }
.g-empty.big { padding: 50px 0; font-size: 15px; line-height: 1.6; }
body.sheet-open { overflow: hidden; }

@media (max-width: 1000px) { .hud-tr { max-width: calc(100% - 40px); top: 56px; } .hud-tl { top: 14px; } }
@media (max-width: 800px) {
  .studio { padding: 8px 8px 14px; }
  .stage3d { height: calc(100svh - 82px); min-height: 460px; border-radius: 28px; }
  .hud-title { font-size: 18px; } .hud-sub { display: none; }
  .hud-tr { top: 12px; right: 10px; max-width: none; gap: 6px; }
  .pill { height: 38px; padding: 0 12px; font-size: 12.5px; } .pill svg { font-size: 16px; }
  .tilt { right: 8px; width: 62px; height: min(52%, 340px); } .tilt-track { width: 52px; } .tilt-knob { width: 50px; height: 50px; margin-left: -25px; }
  .hint-bar { display: none; }
  .gauges { left: 10px; bottom: 10px; width: 190px; padding: 8px 10px; } .gauge-row { grid-template-columns: 44px 1fr 38px; gap: 6px; margin-top: 5px; } .status { font-size: 11px; padding: 5px 7px; }
  .found { top: 100px; }
  .g-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); } .g-disc { width: 64px; height: 64px; }
}

.result { position: absolute; z-index: 6; left: 50%; bottom: 26px; transform: translate(-50%, 24px) scale(.96); opacity: 0; width: min(420px, calc(100% - 32px)); padding: 20px 24px 22px; text-align: center; border-radius: 30px; background: var(--sheet); color: var(--ink); box-shadow: 0 24px 60px -10px rgba(0, 0, 0, .5), inset 0 1px 0 #fff; -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8); transition: opacity .35s, transform .5s cubic-bezier(.3, 1.2, .4, 1); }
.result.in { opacity: 1; transform: translate(-50%, 0) scale(1); }
.r-k { font: 600 12.5px/1 var(--sans); color: var(--tint-2); margin-bottom: 8px; }
.result h2 { font: 700 34px/1.05 var(--sans); letter-spacing: -.04em; }
.r-sub { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.r-act { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
