:root{
  --bg:#220f10;
  --bg2:#3a1515;
  --panel:rgba(255,255,255,.092);
  --panel2:rgba(255,255,255,.14);
  --text:#fff7ea;
  --muted:rgba(255,247,234,.72);
  --gold:#ffd166;
  --mint:#45e3a3;
  --hot:#ff5b55;
  --line:rgba(255,255,255,.16);
  --font:'Estedad',Tahoma,Arial,sans-serif;
  color-scheme:dark;
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#16090b;color:var(--text);font-family:var(--font);overscroll-behavior:none}
body{touch-action:none;user-select:none;-webkit-user-select:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;border:0;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}
button:focus-visible{outline:3px solid rgba(255,209,102,.92);outline-offset:2px}
button:disabled{cursor:not-allowed;opacity:.52;filter:saturate(.6)}

.lc-root{
  width:100%;height:100vh;height:100svh;min-height:0;
  display:flex;flex-direction:column;gap:8px;padding:10px;
  background:
    radial-gradient(circle at 15% -10%,rgba(255,209,102,.22),transparent 34%),
    radial-gradient(circle at 88% 8%,rgba(255,91,85,.20),transparent 34%),
    linear-gradient(155deg,#1a0b0d 0%,#351215 44%,#130709 100%);
  outline:none;overflow:hidden;
}

.lc-topbar,.lc-hud,.lc-status,.lc-kitchen,.lc-footer{width:min(1120px,100%);margin:0 auto}
.lc-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px}
.lc-brand{display:flex;align-items:center;gap:10px;min-width:0}
.lc-brand strong{font-size:23px;font-weight:900;letter-spacing:-.5px;text-shadow:0 4px 20px rgba(0,0,0,.35)}
.lc-brand span,.lc-seed,.lc-panel-badge{font-size:12px;font-weight:800;color:#2b130a;background:linear-gradient(135deg,#ffd166,#ffefb0);padding:6px 10px;border-radius:999px;box-shadow:0 8px 22px rgba(255,209,102,.16)}
.lc-actions{display:flex;gap:8px}
.lc-actions button{min-width:52px;min-height:44px;padding:8px 13px;border-radius:14px;background:var(--panel);border:1px solid var(--line);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.lc-actions button:active,.lc-buttons button:active,.lc-service button:active,.lc-mobile-customers button:active{transform:translateY(1px) scale(.985)}
.lc-actions .is-paused{background:rgba(255,209,102,.22);border-color:rgba(255,209,102,.45)}

.lc-hud{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.lc-card{min-width:0;border:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.07));border-radius:16px;padding:8px 10px;box-shadow:0 14px 34px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.10)}
.lc-card span{display:block;font-size:11px;color:var(--muted);font-weight:700;white-space:nowrap}
.lc-card b{display:block;margin-top:2px;font-size:18px;line-height:1.1;font-weight:900;white-space:nowrap;letter-spacing:-.2px;font-variant-numeric:tabular-nums}
.lc-time-card{border-color:rgba(255,209,102,.32)}

.lc-status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2px}
.lc-status h1{margin:0;font-size:16px;line-height:1.35;font-weight:900}
.lc-status p{margin:3px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.lc-seed{white-space:nowrap;max-width:34%;overflow:hidden;text-overflow:ellipsis}

.lc-arena{position:relative;isolation:isolate;flex:1;width:min(1120px,100%);min-height:250px;margin:0 auto;border:1px solid rgba(255,255,255,.13);border-radius:22px;overflow:hidden;background:#28100b;box-shadow:0 18px 50px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.09)}
#gameCanvas{position:absolute;inset:0;z-index:1;width:100%;height:100%;display:block;touch-action:none}

.lc-mobile-customers{display:none;position:absolute;z-index:3;top:8px;right:8px;left:8px;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;pointer-events:auto}
.lc-mobile-customers button{position:relative;min-width:0;min-height:58px;padding:6px 7px 8px;border-radius:14px;border:1px solid rgba(255,255,255,.19);background:rgba(20,7,8,.82);box-shadow:0 8px 20px rgba(0,0,0,.24);overflow:hidden;text-align:right;backdrop-filter:blur(8px)}
.lc-mobile-customers button.is-active{border-color:var(--gold);box-shadow:0 0 0 2px rgba(255,209,102,.18),0 8px 20px rgba(0,0,0,.24);background:rgba(83,38,20,.90)}
.lc-mobile-customers button.is-empty{display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.42);font-size:11px;border-style:dashed}
.lc-mobile-customer-title{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:11px;font-weight:900;white-space:nowrap}
.lc-mobile-customer-title em{font-style:normal;color:var(--gold);font-size:9px}
.lc-mobile-order{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:'Apple Color Emoji','Segoe UI Emoji',sans-serif;font-size:13px;direction:ltr;text-align:center}
.lc-mobile-patience{position:absolute;right:6px;bottom:4px;left:6px;height:4px;border-radius:99px;background:rgba(255,255,255,.14);overflow:hidden}
.lc-mobile-patience i{display:block;height:100%;border-radius:inherit;background:var(--mint);transition:width .12s linear,background .12s linear}

.lc-toast{position:absolute;top:78px;left:50%;transform:translateX(-50%) translateY(-12px);opacity:0;pointer-events:none;z-index:7;max-width:calc(100% - 24px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:rgba(24,9,10,.88);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.20);padding:10px 14px;border-radius:999px;font-weight:900;font-size:13px;box-shadow:0 15px 40px rgba(0,0,0,.28);transition:.2s ease}
.lc-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

.lc-overlay{position:absolute;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 35%,rgba(255,209,102,.12),rgba(20,7,8,.72) 56%,rgba(20,7,8,.87));backdrop-filter:blur(7px);transition:.18s ease}
.lc-overlay.is-hidden{opacity:0;pointer-events:none;visibility:hidden}
.lc-panel{width:min(440px,calc(100% - 28px));padding:24px 22px;text-align:center;border:1px solid rgba(255,255,255,.18);border-radius:26px;background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.075));box-shadow:0 25px 80px rgba(0,0,0,.36),inset 0 1px 0 rgba(255,255,255,.15)}
.lc-panel h2{margin:12px 0 8px;font-size:31px;line-height:1.2;font-weight:900}
.lc-panel p{margin:0 auto 16px;max-width:34em;color:var(--muted);font-size:14px;line-height:1.9}
.lc-panel button{min-height:48px;padding:11px 20px;border-radius:16px;background:linear-gradient(135deg,#45e3a3,#ffd166);color:#261208;font-weight:900;box-shadow:0 15px 30px rgba(69,227,163,.18)}

.lc-kitchen{display:grid;grid-template-columns:1.05fr 1.7fr auto;gap:8px;align-items:stretch}
.lc-tray-wrap{border:1px solid var(--line);border-radius:18px;padding:9px;background:rgba(255,255,255,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.lc-tray-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
.lc-tray-head strong{font-size:12px;font-weight:900}
.lc-tray-head span{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}
.lc-tray{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.lc-slot{height:42px;border-radius:13px;display:flex;align-items:center;justify-content:center;border:1px dashed rgba(255,255,255,.20);background:rgba(0,0,0,.16);font-size:20px;font-weight:900;position:relative;overflow:hidden}
.lc-slot.filled{border-style:solid;background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.07));box-shadow:0 8px 18px rgba(0,0,0,.14)}
.lc-slot small{font-size:10px;color:rgba(255,255,255,.70);position:absolute;bottom:1px;left:0;right:0;text-align:center;font-family:var(--font)}

.lc-buttons{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.lc-buttons button{min-width:0;min-height:58px;border-radius:18px;padding:7px 5px;background:linear-gradient(180deg,rgba(255,255,255,.17),rgba(255,255,255,.075));border:1px solid rgba(255,255,255,.16);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;box-shadow:0 13px 27px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.10);transition:transform .08s ease,box-shadow .14s ease,border-color .14s ease,background .14s ease}
.lc-buttons button.next{border-color:rgba(69,227,163,.96);background:linear-gradient(180deg,rgba(69,227,163,.28),rgba(69,227,163,.10));box-shadow:0 0 0 3px rgba(69,227,163,.13),0 13px 27px rgba(0,0,0,.18)}
.lc-buttons button.wrong{animation:lc-wrong .2s linear 2}
.lc-buttons i{font-style:normal;font-size:25px;line-height:1;font-family:'Apple Color Emoji','Segoe UI Emoji',sans-serif}
.lc-buttons span{font-weight:900;font-size:12px}
.lc-buttons kbd{font:800 10px var(--font);background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.12);border-radius:8px;padding:1px 6px;color:rgba(255,255,255,.66)}

.lc-service{display:grid;grid-template-columns:1fr;gap:8px;min-width:116px}
.lc-service button{min-height:48px;border-radius:18px;font-weight:900;border:1px solid rgba(255,255,255,.18);padding:7px 13px;box-shadow:0 13px 27px rgba(0,0,0,.18);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.15}
.lc-service small{margin-top:3px;font-size:9px;opacity:.62;direction:ltr}
.lc-serve{background:linear-gradient(135deg,#45e3a3,#78ffd0);color:#071914}
.lc-clear{background:rgba(255,255,255,.09);color:var(--text)}

.lc-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px;min-height:20px}
.lc-mini{display:flex;align-items:center;gap:7px;white-space:nowrap}
.lc-mini i{width:8px;height:8px;border-radius:50%;background:var(--mint);box-shadow:0 0 15px var(--mint)}
.lc-paused .lc-arena{filter:saturate(.72)}

@keyframes lc-wrong{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}

@media (max-width:700px){
  .lc-root{gap:5px;padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))}
  .lc-topbar{min-height:42px}
  .lc-brand strong{font-size:20px}
  .lc-brand span{display:none}
  .lc-actions{gap:5px}
  .lc-actions button{min-width:48px;min-height:42px;padding:6px 10px;font-size:12px;border-radius:12px}
  .lc-hud{gap:4px}
  .lc-card{padding:5px 2px;border-radius:11px;text-align:center;min-height:45px}
  .lc-card span{font-size:9px;line-height:1.1}
  .lc-card b{font-size:14px;margin-top:3px}
  .lc-status{display:none}
  .lc-arena{min-height:238px;border-radius:17px}
  .lc-mobile-customers{display:grid}
  .lc-toast{top:72px;font-size:12px;padding:8px 11px}
  .lc-kitchen{grid-template-columns:1fr;gap:5px}
  .lc-tray-wrap{padding:6px;border-radius:13px}
  .lc-tray-head{margin-bottom:4px}
  .lc-tray-head strong{font-size:10px}
  .lc-tray-head span{font-size:10px;max-width:65%}
  .lc-tray{gap:4px}
  .lc-slot{height:34px;border-radius:10px;font-size:18px}
  .lc-slot small{display:none}
  .lc-buttons{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
  .lc-buttons button{min-height:58px;border-radius:13px;padding:5px 1px}
  .lc-buttons i{font-size:25px}
  .lc-buttons span{font-size:10px;line-height:1.1}
  .lc-buttons kbd{display:none}
  .lc-service{grid-template-columns:1.55fr 1fr;gap:5px;min-width:0}
  .lc-service button{min-height:48px;border-radius:13px;padding:6px 8px;font-size:13px;flex-direction:row;gap:6px}
  .lc-service small{display:none}
  .lc-footer{display:none}
  .lc-panel{padding:20px 17px;border-radius:22px}
  .lc-panel h2{font-size:27px}
  .lc-panel p{font-size:13px;line-height:1.75}
}

@media (max-width:360px){
  .lc-root{padding-right:5px;padding-left:5px}
  .lc-hud{gap:3px}
  .lc-card span{font-size:8.5px}
  .lc-card b{font-size:13px}
  .lc-mobile-customers{right:5px;left:5px;gap:4px}
  .lc-mobile-customers button{padding-right:5px;padding-left:5px}
  .lc-mobile-customer-title{font-size:10px}
  .lc-mobile-order{font-size:12px}
  .lc-buttons{gap:3px}
  .lc-buttons button{min-height:54px}
  .lc-buttons i{font-size:23px}
  .lc-buttons span{font-size:9px}
}

@media (max-height:650px) and (max-width:700px){
  .lc-root{gap:4px;padding-top:4px;padding-bottom:4px}
  .lc-topbar{min-height:38px}
  .lc-actions button{min-height:38px}
  .lc-card{min-height:39px;padding-top:4px;padding-bottom:4px}
  .lc-card span{font-size:8px}
  .lc-card b{font-size:13px}
  .lc-arena{min-height:210px}
  .lc-mobile-customers button{min-height:52px}
  .lc-tray-head{display:none}
  .lc-slot{height:30px}
  .lc-buttons button{min-height:50px}
  .lc-buttons i{font-size:22px}
  .lc-service button{min-height:46px}
}

@media (max-height:500px) and (min-width:701px){
  .lc-root{gap:5px;padding:6px}
  .lc-status,.lc-footer{display:none}
  .lc-topbar{min-height:38px}
  .lc-card{padding:5px 8px}
  .lc-card span{display:none}
  .lc-card b{font-size:15px}
  .lc-arena{min-height:205px}
  .lc-kitchen{grid-template-columns:.9fr 1.8fr auto}
  .lc-tray-head{display:none}
  .lc-slot{height:34px}
  .lc-buttons button{min-height:46px;padding:4px}
  .lc-buttons i{font-size:20px}
  .lc-buttons kbd{display:none}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}

/* 1.1.2 reliable start */
#standaloneStart:not([hidden]){display:inline-flex!important;align-items:center;justify-content:center;visibility:visible!important;opacity:1!important;pointer-events:auto!important;min-width:180px;min-height:50px}
