/* ---------- featured big game on the menu (a little warung front) */
.feature { position: relative; display: block; width: 100%; margin-top: 22px; padding: 0; text-align: left; border: var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 6px 0 var(--ink); overflow: hidden; transition: transform .06s, box-shadow .06s; }
.feature:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.feature-roof { display: block; height: 30px; border-bottom: var(--line); background: repeating-linear-gradient(90deg, var(--gc) 0 28px, #fff 28px 56px); position: relative; }
.feature-roof::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: radial-gradient(circle at 14px 0, var(--gc) 13px, transparent 14px) 0 0 / 56px 12px repeat-x, radial-gradient(circle at 42px 0, #fff 13px, transparent 14px) 0 0 / 56px 12px repeat-x; z-index: 1; }
.feature-body { display: flex; gap: 14px; align-items: center; padding: 22px 14px 14px; }
.feature-art { flex: none; width: 84px; height: 84px; border-radius: 22px; border: var(--line); background: #ffe7c7; display: grid; place-items: center; font-size: 52px; box-shadow: 0 4px 0 var(--ink); }
.feature-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feature-title { font-family: var(--display); font-size: 25px; line-height: 1.02; }
.feature-blurb { font-size: 15px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.feature-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.feature-meta b { font-size: 13px; background: var(--wash); border-radius: 99px; padding: 1px 9px; font-weight: 800; }
.feature-meta b.new { background: var(--pink); color: var(--white); }
.feature-go { position: absolute; right: 12px; top: 3px; z-index: 2; font-family: var(--display); font-size: 15px; background: var(--lime); border: 2.5px solid var(--ink); border-radius: 99px; padding: 1px 12px; transform: rotate(4deg); }

/* ---------- Kedai Makan Kecoh */
.kd { --aw: #ff8a1f; position: relative; height: 100%; display: flex; flex-direction: column; background: #fff1de; color: var(--ink); overflow: hidden; }
.kd-prep { flex: 1; overflow-y: auto; padding: calc(var(--safe-t) + 66px) 16px calc(var(--safe-b) + 18px); background: linear-gradient(#3b1f74, #1d1046); color: var(--white); }
.kd-sign { display: flex; flex-direction: column; align-items: center; background: var(--aw); border: var(--line); border-radius: 18px; padding: 8px 12px 10px; box-shadow: 0 5px 0 #0b0620; color: var(--ink); transform: rotate(-1.5deg); }
.aw-rainbow .kd-sign { background: linear-gradient(90deg, #ff4f9a, #ffcf33, #4fd18b, #2fd6e8, #8f6bff); }
.kd-sign-top { font-weight: 800; font-size: 14px; }
.kd-sign-name { font-family: var(--display); font-size: 34px; line-height: 1; text-align: center; color: var(--white); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
.kd-prep-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.kd-pill { background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.2); border-radius: 14px; text-align: center; padding: 5px 4px; }
.kd-pill span { display: block; font-size: 12px; font-weight: 700; opacity: .85; }
.kd-pill b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--gold); }
.kd-new { background: var(--white); color: var(--ink); border: var(--line); border-radius: 20px; padding: 12px; box-shadow: 0 5px 0 #0b0620; }
.kd-new h3 { font-size: 20px; margin-bottom: 6px; }
.kd-new-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.kd-new-row + .kd-new-row { border-top: 2px dashed rgba(26,16,51,.15); }
.kd-new-row b { font-size: 16px; }
.kd-new-row p { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--muted); line-height: 1.25; }
.kd-h { font-size: 21px; margin: 18px 0 8px; }
.kd-ups { display: flex; flex-direction: column; gap: 8px; }
.kd-up { display: flex; align-items: center; gap: 10px; background: var(--white); color: var(--ink); border: var(--line); border-radius: 16px; padding: 8px 10px; }
.kd-up-ic { font-size: 30px; flex: none; }
.kd-up-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.kd-up-txt b { font-family: var(--display); font-weight: 400; font-size: 16px; }
.kd-up-txt span { font-size: 13px; font-weight: 600; color: var(--muted); }
.kd-up-txt .kd-lv { color: var(--tang); letter-spacing: 2px; font-size: 12px; }
.kd-up .btn[disabled] { opacity: .5; }
.kd-max { font-weight: 800; font-size: 13px; color: var(--muted); }
.kd-tip { font-weight: 700; text-align: center; margin: 14px 4px 0; }
.kd-sum-stars { text-align: center; font-size: 54px; margin: 10px 0 4px; letter-spacing: 4px; }
.kd-sum-stars i { font-style: normal; color: rgba(255,255,255,.18); }
.kd-sum-stars i.on { color: var(--gold); -webkit-text-stroke: 2px var(--ink); }
.kd-sum-list { background: var(--white); color: var(--ink); border: var(--line); border-radius: 20px; padding: 6px 14px; box-shadow: 0 5px 0 #0b0620; }
.kd-sum-list div { display: flex; justify-content: space-between; padding: 7px 0; font-weight: 700; }
.kd-sum-list div + div { border-top: 2px dashed rgba(26,16,51,.15); }
.kd-sum-list b { font-family: var(--display); font-weight: 400; font-size: 19px; }
.kd-sum-list .tot b { color: var(--tang); font-size: 24px; }

.kd-hud { display: flex; gap: 10px; align-items: center; padding: calc(var(--safe-t) + 10px) 12px 8px 66px; background: #3b1f74; color: var(--white); flex: none; }
.kd-clock { text-align: center; line-height: 1; }
.kd-clock b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; }
.kd-clock span { font-size: 12px; font-weight: 700; opacity: .8; }
.kd-goal { flex: 1; }
.kd-goal-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 13px; }
.kd-goal-top span:first-child { font-family: var(--display); font-size: 22px; color: var(--gold); }
.kd-goal-bar { position: relative; height: 12px; border-radius: 99px; background: rgba(255,255,255,.15); border: 2px solid var(--ink); overflow: hidden; margin-top: 2px; }
.kd-goal-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.kd-goal-bar i.met { background: var(--lime); }
.kd-goal-bar s { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--white); }
.kd-awning { flex: none; height: 34px; position: relative; border-bottom: var(--line); background: repeating-linear-gradient(90deg, var(--aw) 0 30px, #fff 30px 60px); display: grid; place-items: center; z-index: 1; }
.aw-rainbow .kd-awning { background: repeating-linear-gradient(90deg, #ff4f9a 0 30px, #fff 30px 60px, #ffcf33 60px 90px, #fff 90px 120px, #4fd18b 120px 150px, #fff 150px 180px, #2fd6e8 180px 210px, #fff 210px 240px); }
.kd-awning::after { content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 11px; background: radial-gradient(circle at 15px 0, var(--aw) 14px, transparent 15px) 0 0 / 60px 11px repeat-x, radial-gradient(circle at 45px 0, #fff 14px, transparent 15px) 0 0 / 60px 11px repeat-x; }
.kd-awning span { font-family: var(--display); font-size: 16px; background: var(--ink); color: var(--white); padding: 0 12px; border-radius: 99px; position: relative; z-index: 2; }
.kd-room { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background-color: #d9f3ea; background-image: linear-gradient(#c6ebde 1px, transparent 1px), linear-gradient(90deg, #c6ebde 1px, transparent 1px); background-size: 26px 26px; }
.kd-wall { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 18px 10px 0; overflow: hidden; }
.kd-board { background: #2d3b33; color: #fff; border: var(--line); border-radius: 12px; padding: 4px 8px 6px; box-shadow: 0 3px 0 var(--ink), inset 0 0 0 3px #8a5a2b; transform: rotate(-1deg); max-width: 78%; }
.kd-board b { display: block; font-family: var(--display); font-weight: 400; font-size: 13px; color: var(--gold); text-align: center; }
.kd-board div { display: grid; grid-template-columns: repeat(4, auto); gap: 1px 8px; }
.kd-board span { display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.kd-board i { font-style: normal; font-size: 13px; letter-spacing: -4px; padding-right: 3px; }
.kd-deco { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 30px; }
.kd-fan.on { animation: spin 1.2s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.kd-seats { flex: 1 1 auto; min-height: 150px; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 6px; padding: 8px 8px 6px; align-items: end; }
.kd-cust { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; border: 0; background: none; padding: 0; min-width: 0; touch-action: manipulation; color: var(--ink); }
.kd-cust.empty { opacity: .45; }
.kd-cust.empty .kd-face { font-size: 34px; }
.kd-bubble { position: relative; display: flex; flex-direction: column; gap: 3px; background: var(--white); border: var(--line); border-radius: 14px; padding: 4px; box-shadow: 0 3px 0 var(--ink); margin-bottom: 6px; }
.kd-bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 12px; height: 12px; background: var(--white); border-right: var(--line); border-bottom: var(--line); transform: translateX(-50%) rotate(45deg); }
.kd-cust.vip .kd-bubble, .kd-cust.vip .kd-bubble::after { background: #fff6c9; }
.kd-chip { display: inline-flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1.2; background: #fff1de; border-radius: 9px; padding: 1px 4px; white-space: nowrap; letter-spacing: -3px; }
.kd-chip.big { font-size: 28px; padding: 4px 10px 4px 6px; letter-spacing: -4px; flex: none; }
.kd-chip.done { background: var(--lime); opacity: .55; }
.kd-face { position: relative; font-size: 42px; line-height: 1; }
.kd-mood { position: absolute; right: -8px; top: -6px; font-size: 20px; }
.kd-crown { position: absolute; left: 50%; top: -16px; transform: translateX(-50%); font-size: 20px; }
.kd-pat { width: 86%; height: 8px; border-radius: 99px; background: rgba(26,16,51,.15); border: 2px solid var(--ink); overflow: hidden; }
.kd-pat i { display: block; height: 100%; width: 100%; background: var(--lime); }
.kd-pat i.mid { background: var(--gold); }
.kd-pat i.low { background: var(--red); }
.kd-hint { flex: none; min-height: 32px; padding: 4px 12px; font-weight: 800; font-size: 14.5px; text-align: center; background: var(--ink); color: var(--gold); display: grid; place-items: center; line-height: 1.15; }
.kd-hint.warn { color: var(--white); background: var(--red); }
.kd-counter { flex: none; background: #c9853f; background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.07) 0 2px, transparent 2px 46px); border-bottom: var(--line); padding: 8px 10px; display: flex; flex-direction: column; gap: 8px; }
.kd-tray-wrap { display: flex; align-items: center; gap: 8px; }
.kd-lab { font-family: var(--display); font-size: 13px; color: #fff3e0; writing-mode: vertical-rl; transform: rotate(180deg); }
.kd-tray { flex: 1; display: flex; gap: 6px; background: #9aa0b8; border: var(--line); border-radius: 14px; padding: 5px; min-height: 48px; }
.kd-slot { flex: 1; min-width: 0; height: 36px; border-radius: 10px; border: 2px dashed rgba(26,16,51,.35); display: grid; place-items: center; }
.kd-slot.full { border: 2.5px solid var(--ink); background: var(--white); }
.kd-slot .kd-chip { background: none; font-size: 19px; }
.kd-plate-row { display: flex; gap: 8px; }
.kd-plate { flex: 1; display: flex; align-items: center; gap: 8px; border: var(--line); border-radius: 999px; background: var(--white); padding: 4px 14px 4px 4px; box-shadow: 0 3px 0 var(--ink); text-align: left; touch-action: manipulation; color: var(--ink); }
.kd-plate.ready { background: var(--lime); }
.kd-plate.shake { animation: bad .35s; }
.kd-plate-dish { width: 50px; height: 50px; flex: none; border-radius: 50%; border: 2.5px solid var(--ink); background: radial-gradient(circle, #fff 55%, #e8e3f7 57%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; }
.kd-plate-dish i { font-style: normal; font-size: 18px; line-height: 1; margin: -1px -2px; }
.kd-plate-lab { font-family: var(--display); font-size: 16px; line-height: 1.05; }
.kd-plate-lab small { display: block; font-family: var(--body); font-size: 12px; font-weight: 700; color: var(--muted); }
.kd-bin { flex: none; width: 64px; border: var(--line); border-radius: 18px; background: #e8e3f7; box-shadow: 0 3px 0 var(--ink); font-size: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px; touch-action: manipulation; color: var(--ink); }
.kd-bin span { font-size: 11px; font-weight: 800; }
.kd-plate:active, .kd-bin:active, .kd-st:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.kd-stations { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 9px 9px calc(var(--safe-b) + 10px); background: #4a3a2a; background-image: linear-gradient(rgba(255,255,255,.04) 50%, transparent 50%); background-size: 100% 16px; }
.kd-st { position: relative; height: clamp(66px, 10.5dvh, 84px); border: var(--line); border-radius: 16px; background: #fff7ec; box-shadow: 0 4px 0 #1a1033; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 2px; touch-action: manipulation; color: var(--ink); }
.kd-st-ic { font-size: 28px; line-height: 1.1; }
.kd-st-name { font-family: var(--display); font-size: 13px; }
.kd-st.locked { background: rgba(255,255,255,.1); border-style: dashed; border-color: rgba(255,255,255,.35); box-shadow: none; color: rgba(255,255,255,.7); }
.kd-st.locked .kd-st-ic { font-size: 20px; }
.kd-st.ready { background: var(--lime); animation: pulse .8s infinite; }
.kd-st.burnt { background: #6b5d55; color: var(--white); }
@keyframes pulse { 50% { transform: scale(1.05); } }
.kd-pots { display: flex; gap: 3px; margin-top: 2px; }
.kd-pots i { --p: 0; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: conic-gradient(var(--gold) calc(var(--p) * 360deg), rgba(26,16,51,.12) 0); }
.kd-pots i.empty { background: rgba(26,16,51,.08); }
.kd-pots i.ready { background: conic-gradient(var(--red) calc(var(--p) * 360deg), var(--lime) 0); }
.kd-pots i.burnt { background: #1a1033; }
.kd-float { top: 0; font-size: 20px; z-index: 5; }

/* ---------- hand-drawn SVG art */
.kd .art { display: block; }
.kd svg.art { overflow: visible; }
.kd img.art { object-fit: contain; image-rendering: auto; -webkit-user-drag: none; user-select: none; }
.kd-chip .art { width: 30px; height: 30px; }
.kd-chip.big .art { width: 54px; height: 54px; }
.kd-board i .art { width: 20px; height: 20px; }
.kd-slot .art { width: 34px; height: 34px; }
.kd-st-ic .art { width: 42px; height: 42px; margin: 0 auto; }
.kd-face svg.cust { width: clamp(54px, 17vw, 76px); height: auto; aspect-ratio: 64 / 78; }
.kd-face .art.chair { width: 46px; height: 46px; }
.art-a .kd-chip { letter-spacing: 0; padding: 0 1px; background: #fffaf2; }
.art-a .kd-chip.done { background: var(--lime); }
.art-a .kd-board i { padding-right: 2px; }
.art-a .kd-plate-dish { background: none; border: 0; width: 64px; height: 56px; }
.art-a .kd-plate-dish .art { width: 64px; height: 56px; }
.kd-fanwrap { pointer-events: none; margin-top: -18px; }
.kd-deco-row { display: flex; align-items: flex-end; gap: 4px; }
.kd-fanwrap svg { width: 80px; height: 40px; }
.kd-wall { position: relative; }
.kd-deco .art { width: 40px; height: 40px; }
.kd-deco svg.tv { width: 52px; height: 48px; }
.spin { animation: spin 1s linear infinite; display: inline-block; }
.kd-fanwrap svg .spin { animation: spinflat 0.5s linear infinite; }
@keyframes spinflat { 50% { transform: scaleX(-1); } }
.steam { animation: steam 1.6s ease-in-out infinite; }
@keyframes steam { 50% { transform: translateY(-3px); opacity: .5; } }
svg.cust.m-angry { animation: bad .5s infinite; }
svg.cust.m-happy { animation: hop .5s ease-out; }
@keyframes hop { 40% { transform: translateY(-8px); } }
.fume { animation: steam .8s ease-in-out infinite; }

/* A: kopitiam room — warm wall, green-and-white tiles behind the customers */
.art-a .kd-room { background: #fff1cf; }
.art-a .kd-wall { background: linear-gradient(#fff6de, #ffeec4); }
.art-a .kd-seats { background: repeating-conic-gradient(#f4fbf6 0 25%, #bfe6d3 0 50%) 0 0 / 22px 22px; border-top: 5px solid #3d8a2c; }



/* short phones: drop the wall (menu board, fan, plant) so customers and the kitchen fit */
@media (max-height: 740px) {
  .kd-wall { display: none; }
  .kd-seats { padding-top: 12px; }
}
.kd-seats { overflow: hidden; }

/* ---------- life in the warung: walking in and out, breathing, coins, pops */
.kd-cust.arrive { animation: walkin .9s cubic-bezier(.2,.8,.3,1) both; animation-delay: var(--age, 0s); }
@keyframes walkin {
  0% { transform: translateX(140%); opacity: 0; }
  15% { opacity: 1; }
  25%, 55% { transform: translateX(70%) translateY(-6px); }
  40%, 70% { transform: translateX(35%) translateY(0); }
  100% { transform: translateX(0); }
}
.kd-cust:not(.empty) .kd-face { animation: breathe 2.6s ease-in-out infinite; animation-delay: var(--bob, 0s); transform-origin: 50% 100%; }
@keyframes breathe { 50% { transform: scaleY(1.025) translateY(-1px); } }
.kd-cust.happy { animation: walkout .8s ease-in forwards; pointer-events: none; }
.kd-cust.happy .kd-face { animation: hopwalk .2s ease-in-out infinite alternate; }
@keyframes walkout { 30% { transform: translateY(-10px); } 100% { transform: translate(-160%, -4px); opacity: 0; } }
@keyframes hopwalk { to { transform: translateY(-5px) rotate(-4deg); } }
.kd-cust.angry { animation: stomp .9s ease-in forwards; pointer-events: none; }
@keyframes stomp { 0%, 30% { transform: translateX(0); } 10% { transform: translateX(-4px); } 20% { transform: translateX(4px); } 100% { transform: translateX(170%); opacity: 0; } }
.kd-bubble .kd-chip { transition: transform .2s; }
.kd-chip.done { transform: scale(.85); }
.kd-slot.pop .kd-chip { animation: popin .35s cubic-bezier(.2,1.6,.4,1); }
@keyframes popin { from { transform: scale(.2) translateY(-20px); } }
.kd-plate-dish.bump { animation: popin .3s cubic-bezier(.2,1.6,.4,1); }
.kd-coin { position: absolute; z-index: 6; width: 22px; height: 22px; pointer-events: none; }
.kd-coin svg { width: 22px; height: 22px; display: block; }
.kd-goal-top span:first-child.bump { animation: popin .3s; display: inline-block; }
/* stations: things cooking sizzle, the rice pot steams, burnt food smokes */
.kd-st.cooking .kd-st-ic { animation: sizzle .18s linear infinite alternate; }
@keyframes sizzle { to { transform: translate(.6px, -.6px) rotate(.6deg); } }
.kd-st .sizzle, .kd-st .embers { opacity: 0; }
.kd-st.cooking .sizzle, .kd-st.cooking .embers { opacity: 1; animation: ember .4s ease-in-out infinite alternate; }
@keyframes ember { to { opacity: .4; } }
.kd-st.burnt .kd-st-ic { filter: grayscale(.8) brightness(.55); }
.kd-st.burnt::after { content: ""; position: absolute; top: -6px; left: 50%; width: 18px; height: 18px; border-radius: 50%; background: #6b5d55; box-shadow: 10px -8px 0 -2px #857870, -8px -12px 0 -4px #9b9089; animation: smoke 1s ease-out infinite; }
@keyframes smoke { from { transform: translate(-50%, 6px) scale(.6); opacity: .9; } to { transform: translate(-50%, -14px) scale(1.2); opacity: 0; } }
.steam path { animation: steam 1.6s ease-in-out infinite; }
.kd-st-ic svg.st-teh .pour { opacity: 0; }
.kd-st.cooking svg.st-teh .pour { opacity: 1; stroke-dasharray: 6 4; animation: pour .4s linear infinite; }
@keyframes pour { to { stroke-dashoffset: -10; } }
@media (prefers-reduced-motion: reduce) { .kd-cust.arrive, .kd-cust:not(.empty) .kd-face { animation: none; } }
.kd-up-ic .art { width: 42px; height: 42px; }
