/* ============================================================================
   $WAGE — WcWage Shift Simulator  ::  meme corporate stylesheet
   Fast-food parody palette: greasy red + yellow.
============================================================================ */
:root {
  --red:      #da291c;
  --red-dark: #a81d13;
  --yellow:   #ffc72c;
  --yellow-d: #e6a900;
  --ink:      #1c1613;
  --paper:    #fffdf7;
  --grease:   #2a2119;
  --grid:     #241c15;
  --good:     #2ecc71;
  --shadow:   0 4px 0 rgba(0,0,0,.35);
  --mono: "Courier New", ui-monospace, monospace;
  --sans: "Arial Black", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--paper);
  background:
    linear-gradient(rgba(20, 14, 10, 0.82), rgba(20, 14, 10, 0.88)),
    url("../assets/bg.png") center/cover fixed,
    radial-gradient(1200px 600px at 50% -10%, #3a2c1e 0%, transparent 60%),
    repeating-linear-gradient(45deg, #201811 0 22px, #241c14 22px 44px);
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: var(--sans); cursor: pointer; }
a { color: var(--yellow); }

/* ---------- Top ticker ---------- */
.ticker {
  background: var(--red);
  color: var(--yellow);
  font-weight: 900;
  letter-spacing: .5px;
  border-bottom: 3px solid var(--yellow);
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
}
.ticker span { display: inline-block; padding: 6px 0; animation: slide 26s linear infinite; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
header {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  border-bottom: 4px solid var(--yellow);
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 12px; }
.arch {
  font-family: var(--sans);
  font-size: 40px; font-weight: 900; line-height: 1;
  color: var(--yellow);
  text-shadow: 0 3px 0 var(--red-dark), 0 0 18px rgba(255,199,44,.5);
  transform: scaleY(1.15);
}
.brand b { color: #fff; font-size: 22px; letter-spacing: -.5px; display: block; }
.brand small { color: var(--yellow); font-weight: 700; font-size: 11px; letter-spacing: 1px; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.net-pill {
  background: rgba(0,0,0,.25); color: #fff; border: 2px solid var(--yellow);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 800;
}
.net-pill.bad { border-color: #fff; color: #ffd; opacity: .8; }

.btn {
  border: none; border-radius: 10px; padding: 12px 18px; font-weight: 900;
  font-size: 14px; letter-spacing: .3px; box-shadow: var(--shadow);
  transition: transform .05s ease, filter .15s ease;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { filter: brightness(1.05); }
.btn-red { background: #fff; color: var(--red); }
.btn-ghost { background: rgba(0,0,0,.25); color: #fff; border: 2px solid rgba(255,255,255,.4); box-shadow: none; }
.btn-big { font-size: 18px; padding: 16px 22px; width: 100%; }
.btn:disabled { filter: grayscale(.6) brightness(.8); cursor: not-allowed; }

/* ---------- Layout ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 22px 16px 60px; }
.grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--grid);
  border: 3px solid rgba(255,199,44,.25);
  border-radius: 16px; padding: 18px;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.4);
}
.card h2 { margin: 0 0 12px; color: var(--yellow); font-size: 16px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Hero / wojak ---------- */
.hero { text-align: center; }
.hero-title { font-size: clamp(30px, 6vw, 56px); line-height: .95; margin: 6px 0; color: #fff;
  text-shadow: 0 4px 0 var(--red-dark); }
.hero-title .hl { color: var(--yellow); }
.hero-sub { color: #e9dcc7; font-weight: 700; font-size: 15px; max-width: 620px; margin: 8px auto 18px; }
.tag { display:inline-block; background: var(--yellow); color: var(--ink); font-weight: 900;
  padding: 4px 12px; border-radius: 999px; font-size: 12px; letter-spacing: 1px; transform: rotate(-2deg); }

.wojak-wrap { position: relative; display: inline-block; margin: 6px auto; }
.wojak {
  width: 260px; height: 260px; object-fit: cover;
  border: 5px solid var(--yellow); border-radius: 14px; background: #ddd;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
  image-rendering: auto;
}
.speech {
  position: absolute; top: -14px; right: -22px;
  background: #fff; color: var(--ink); border-radius: 12px; padding: 8px 12px;
  font-size: 13px; font-weight: 800; max-width: 190px; box-shadow: var(--shadow);
  border: 2px solid var(--ink); transform: rotate(2deg);
}
.speech:after { content:""; position:absolute; bottom:-9px; left:24px; border:8px solid transparent; border-top-color:#fff; }

/* ---------- Stat chips ---------- */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 16px; }
.stat { background: rgba(0,0,0,.35); border: 2px solid rgba(255,199,44,.3); border-radius: 12px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 20px; color: var(--yellow); }
.stat span { font-size: 10px; color: #cdbfa8; letter-spacing: .5px; text-transform: uppercase; }

/* ---------- Register / ticket ---------- */
.register { position: relative; }
.ticket {
  background: var(--paper); color: var(--ink); border-radius: 8px;
  padding: 16px 16px 20px; font-family: var(--mono); position: relative;
  box-shadow: var(--shadow);
  -webkit-mask: radial-gradient(6px at 6px 50%, transparent 98%, #000) left/100% 14px repeat-y,
                radial-gradient(6px at calc(100% - 6px) 50%, transparent 98%, #000) right/100% 14px repeat-y;
  mask: radial-gradient(6px at 6px 50%, transparent 98%, #000) left/100% 14px repeat-y,
        radial-gradient(6px at calc(100% - 6px) 50%, transparent 98%, #000) right/100% 14px repeat-y;
}
.ticket .rc { text-align: center; border-bottom: 2px dashed #999; padding-bottom: 8px; margin-bottom: 10px; }
.ticket .rc b { font-size: 16px; letter-spacing: 2px; }
.ticket .rc small { display:block; font-size: 11px; color:#555; }
.order-line { display:flex; justify-content: space-between; font-size: 15px; padding: 3px 0; }
.order-line .q { color: var(--red); font-weight: 700; }
.ticket .foot { border-top: 2px dashed #999; margin-top: 10px; padding-top: 8px; font-size: 11px; color:#555; text-align:center; }
.customer { font-weight: 700; }

.tray-label { font-size: 11px; color:#cdbfa8; letter-spacing:1px; text-transform:uppercase; margin: 14px 0 6px; }
.tray {
  min-height: 58px; display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  background: rgba(0,0,0,.35); border: 2px dashed rgba(255,199,44,.4);
  border-radius: 12px; padding: 8px;
}
.tray:empty:before { content: "Bandeja vacia... el cliente espera 😐"; color:#7c7059; font-size:13px; font-family:var(--sans); }
.chip {
  display:inline-flex; align-items:center; gap:6px; background:#fff; color:var(--ink);
  border-radius: 999px; padding: 5px 10px; font-size: 14px; font-weight:800; box-shadow: var(--shadow);
}
.chip .x { color: var(--red); cursor:pointer; font-weight:900; }

/* menu de botones de items */
.menu { display:grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.item-btn {
  background: var(--yellow); color: var(--ink); border: none; border-radius: 12px;
  padding: 12px 8px; font-weight: 900; box-shadow: var(--shadow);
  display:flex; flex-direction: column; align-items:center; gap:4px; line-height:1.1;
}
.item-btn .e { font-size: 26px; }
.item-btn .n { font-size: 11px; }
.item-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.item-btn.broken { filter: grayscale(1) brightness(.85); }

.actions { display:flex; gap:10px; margin-top:14px; }
.actions .btn { flex:1; }

/* barra de burnout */
.burnout { margin-top: 16px; }
.burnout .bl { display:flex; justify-content:space-between; font-size:11px; color:#cdbfa8; letter-spacing:1px; text-transform:uppercase; }
.bar { height: 16px; background: rgba(0,0,0,.4); border-radius: 999px; overflow:hidden; border:2px solid rgba(255,255,255,.15); }
.bar > i { display:block; height:100%; width:0%; background: linear-gradient(90deg,#2ecc71,#ffc72c 55%,#da291c); transition: width .3s ease; }

/* pending pay */
.pending { margin-top:16px; text-align:center; background: rgba(0,0,0,.3); border-radius:12px; padding:12px; border:2px dashed rgba(255,199,44,.35); }
.pending .amt { font-size: 26px; color: var(--yellow); font-family: var(--mono); font-weight:900; word-break: break-all; }
.pending .lbl { font-size: 11px; color:#cdbfa8; letter-spacing:1px; text-transform:uppercase; }

/* ---------- flotantes / toasts ---------- */
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display:flex; flex-direction:column; gap:8px; align-items:center; width: min(92vw, 460px); }
.toast { background: var(--ink); color:#fff; border:2px solid var(--yellow); border-radius:12px; padding:10px 14px; font-size:13px; font-weight:700; box-shadow: 0 8px 24px rgba(0,0,0,.5); animation: pop .25s ease; }
.toast.err { border-color:#fff; background: var(--red); }
.toast.win { border-color:#fff; background: var(--red-dark); }
@keyframes pop { from { transform: translateY(12px) scale(.96); opacity:0; } to { transform:none; opacity:1; } }

/* jefe grito */
.jefe {
  position: fixed; inset: 0; z-index: 70; display:none; place-items:center; padding:20px;
  background: rgba(140,10,5,.72); backdrop-filter: blur(2px);
}
.jefe.show { display:grid; animation: pop .15s ease; }
.jefe .box { background: var(--red); border:5px solid var(--yellow); border-radius: 16px; padding: 22px; max-width: 420px; text-align:center; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.jefe .box .big { font-size: 40px; }
.jefe .box h3 { color:#fff; font-size: 22px; margin:8px 0; }
.jefe .box p { color: var(--yellow); font-weight:800; }

/* ---------- Modal generico (paycheck / wallet) ---------- */
.modal { position: fixed; inset:0; z-index:80; display:none; place-items:center; padding:18px; background: rgba(0,0,0,.7); }
.modal.show { display:grid; }
.sheet { background: var(--grid); border:3px solid var(--yellow); border-radius:18px; padding:22px; max-width:460px; width:100%; box-shadow:0 24px 70px rgba(0,0,0,.7); }
.sheet h3 { color: var(--yellow); margin:0 0 8px; }
.sheet p { color:#e9dcc7; font-size:14px; }
.sheet .close { float:right; background:none; border:none; color:#fff; font-size:22px; line-height:1; }

/* cheque de pago (recibo) */
.paycheck { background: var(--paper); color: var(--ink); border-radius:10px; padding:18px; font-family: var(--mono); margin:12px 0; box-shadow: var(--shadow); }
.paycheck .h { text-align:center; border-bottom:2px dashed #999; padding-bottom:8px; margin-bottom:8px; }
.paycheck .row { display:flex; justify-content:space-between; padding:3px 0; font-size:14px; }
.paycheck .row.total { border-top:2px dashed #999; margin-top:6px; padding-top:8px; font-weight:900; font-size:16px; }
.paycheck .neg { color: var(--red); }

/* ---------- Explicacion / footer ---------- */
.how { margin-top: 26px; }
.how ol { color:#e9dcc7; line-height:1.7; padding-left: 20px; }
.how code { background: rgba(0,0,0,.4); padding:2px 6px; border-radius:6px; color: var(--yellow); font-size: 13px; }
footer { text-align:center; color:#8f8877; font-size:12px; padding: 30px 16px 10px; }
footer b { color: var(--yellow); }
.disclaimer { max-width: 760px; margin: 8px auto 0; line-height:1.5; }

.hidden { display: none !important; }
.spin { display:inline-block; animation: sp 1s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.shake { animation: shk .3s; }
@keyframes shk { 0%,100%{transform:none} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

/* ============================================================================
   CARTOON REDESIGN  ::  SVG scene (menu board, counter, kitchen, customers)
============================================================================ */
/* generic svg icon holder */
.e { display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; }
.e svg { display:block; width:100%; height:100%; }

/* ---------- MENU BOARD (the illuminated "carteles") ---------- */
/* Full-bleed counter banner under nav — show full image, no crop */
.counter-banner {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 4px solid var(--yellow);
  background: #1a120e;
  overflow: hidden;
  line-height: 0;
}
.counter-banner img {
  width: 100%;
  height: auto;
  min-height: 320px;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #1a120e;
}

.menuboard {
  display:grid; grid-auto-flow:column; grid-auto-columns:minmax(118px,1fr); gap:6px;
  background:linear-gradient(180deg,#160f0a,#241109);
  border-bottom:4px solid var(--yellow); padding:10px 12px; overflow-x:auto;
}
.mb-item {
  background:radial-gradient(circle at 50% -10%, #4a3413, #1b1207 70%);
  border:2px solid rgba(255,199,44,.55); border-radius:12px; padding:8px 6px 7px;
  text-align:center; min-width:0; box-shadow:inset 0 0 20px rgba(255,199,44,.18), 0 0 12px rgba(255,199,44,.12);
}
.mb-art { width:54px; height:54px; margin:0 auto 4px; filter:drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
.mb-art svg, .mb-art img.e { width:100%; height:100%; display:block; object-fit:contain; }
.mb-name { color:#fff; font-size:12px; font-weight:900; line-height:1.05; }
.mb-price { color:var(--yellow); font-size:10px; font-weight:800; margin-top:2px; letter-spacing:.3px; }
.mb-broken { filter:grayscale(.65) brightness(.8); }

/* ---------- PRE-SHIFT employee stage ---------- */
.employee-stage { position:relative; text-align:center; padding-top:14px; }
.employee-stage .speech { position:static; display:inline-block; margin:0 auto 4px; right:auto; top:auto; transform:rotate(-1deg); }
.employee-stage .speech:after { left:50%; transform:translateX(-50%); }
.emp-art { width:210px; height:210px; margin:2px auto 0; }
.emp-art svg, .emp-art img.crew-face { width:100%; height:100%; display:block; object-fit:contain; filter:drop-shadow(0 8px 12px rgba(0,0,0,.5)); animation:bob 4s ease-in-out infinite; }
.employee-stage .floor { height:18px; width:64%; margin:-6px auto 0; border-radius:50%; background:radial-gradient(ellipse, rgba(0,0,0,.55), transparent 70%); }
@keyframes bob { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-6px) } }

/* ---------- COUNTER SCENE ---------- */
.counter-top { display:grid; grid-template-columns:.9fr 1.1fr; gap:14px; align-items:end; }
@media (max-width:560px){ .counter-top { grid-template-columns:1fr; } }
.customer-stage { position:relative; text-align:center; }
.cust-bubble {
  position:relative; display:inline-block; background:#fff; color:var(--ink);
  border:3px solid var(--ink); border-radius:14px; padding:8px 12px; font-size:13px; font-weight:800;
  max-width:210px; margin-bottom:8px; box-shadow:var(--shadow);
}
.cust-bubble:after { content:""; position:absolute; bottom:-11px; left:50%; transform:translateX(-50%); border:9px solid transparent; border-top-color:var(--ink); }
.cust-bubble:before { content:""; position:absolute; bottom:-6px; left:50%; transform:translateX(-50%); border:6px solid transparent; border-top-color:#fff; z-index:2; }
.cust-art { width:138px; height:138px; margin:0 auto; }
.cust-art svg, .cust-art img.crew-face { width:100%; height:100%; display:block; object-fit:contain; filter:drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.cust-name { font-size:12px; color:#e9dcc7; margin-top:2px; font-weight:800; }
.counter-surface {
  height:34px; margin-top:10px; border-radius:8px 8px 5px 5px;
  background:linear-gradient(180deg,#d8a53a,#8a5a1e); border:3px solid var(--ink); border-bottom-width:7px;
  display:flex; align-items:center; justify-content:center;
  color:#3a2408; font-weight:900; letter-spacing:5px; font-size:12px;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.25);
}
.counter-surface span { opacity:.8; }

/* ---------- CARTOON TICKET ---------- */
.ticket.cartoon-ticket {
  -webkit-mask:none; mask:none; background:#fffdf5;
  border:3px solid var(--ink); border-radius:12px;
  transform:rotate(-1.1deg); box-shadow:5px 6px 0 rgba(0,0,0,.35);
}
.cartoon-ticket .rc b { letter-spacing:1px; }
.order-line { align-items:center; }
.order-line > span:first-child { display:inline-flex; align-items:center; gap:7px; }
.order-line .e { width:28px; height:28px; object-fit:contain; display:inline-block; vertical-align:middle; }
.order-line img.e { width:28px; height:28px; }

/* ---------- KITCHEN / PREP TABLE ---------- */
/* ---------- COWORKER HELP PANEL ---------- */
.coworker-help {
  margin-top: 16px;
  background: linear-gradient(180deg, #2a2218, #1a1510);
  border: 3px solid #000;
  border-radius: 14px;
  padding: 12px;
  box-shadow: inset 0 2px 0 rgba(255,199,44,.12);
}
.coworker-help .cow-ask {
  background: #fffdf5;
  color: var(--ink);
  border: 3px solid #000;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
  margin: 8px 0 12px;
  box-shadow: 3px 4px 0 rgba(0,0,0,.35);
  transform: rotate(-0.4deg);
}
.cow-replies { display: flex; flex-direction: column; gap: 8px; }
.cow-btn {
  display: flex; align-items: flex-start; gap: 10px;
  text-align: left; width: 100%;
  border: 3px solid #000; border-radius: 12px;
  padding: 10px 12px; cursor: pointer;
  font-family: var(--sans); font-weight: 800; font-size: 13px; line-height: 1.3;
  box-shadow: 3px 4px 0 rgba(0,0,0,.35);
  transition: transform .05s ease;
}
.cow-btn:active { transform: translateY(2px); box-shadow: 1px 2px 0 rgba(0,0,0,.35); }
.cow-btn.help { background: #e8f8e8; color: var(--ink); }
.cow-btn.nope { background: #fde8e6; color: var(--ink); }
.cow-btn .cow-tag {
  flex: 0 0 auto; font-size: 10px; letter-spacing: .5px;
  padding: 3px 7px; border-radius: 6px; border: 2px solid #000;
  background: var(--yellow); color: var(--ink);
}
.cow-btn.nope .cow-tag { background: var(--red); color: #fff; }
.cow-btn .cow-txt { flex: 1; }

.kitchen {
  margin-top:16px; background:linear-gradient(180deg,#2c2c33,#1d1d22);
  border:3px solid #000; border-radius:14px; padding:12px;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.08), inset 0 0 0 2px rgba(255,255,255,.03);
}
.kitchen-head { display:flex; justify-content:space-between; align-items:center; color:#e9dcc7; font-weight:900; font-size:13px; margin-bottom:8px; }
.kitchen-head .hint { font-size:10px; color:#9a8f7d; font-weight:800; letter-spacing:.5px; }

.prep-table {
  position: relative;
  border: 3px solid #000;
  border-radius: 12px;
  overflow: hidden;
  background: #1a120e;
  min-height: 200px;
  margin-bottom: 4px;
}
.prep-table .prep-bg {
  width: 100%;
  height: auto;
  display: block;
  min-height: 180px;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}
.prep-surface {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 36%;
  bottom: 22%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 4px 6px;
  padding: 4px 6px;
  z-index: 2;
  overflow: hidden;
  max-height: 46%;
  box-sizing: border-box;
}
.prep-empty {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: #5a5044;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
  max-width: 50%;
}
.prep-table.has-items .prep-empty { display: none; }

.prep-item {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  animation: popIn .22s ease;
  cursor: default;
  transform: translateY(var(--dy, 0)) rotate(var(--rot, 0deg));
  filter: drop-shadow(1px 2px 0 rgba(0,0,0,.35));
  overflow: visible;
}
.prep-item .tray-food {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}
.prep-item .tray-food.svg,
.prep-item .tray-food.svg svg {
  width: 48px;
  height: 48px;
  display: block;
}
.prep-item .tray-food.emoji { font-size: 32px; line-height: 1; }
.prep-item .x {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  border: 2px solid #1c1613;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  box-shadow: 1px 1px 0 rgba(0,0,0,.35);
  z-index: 2;
}
@keyframes popIn {
  from { transform: translateY(calc(var(--dy, 0px) - 14px)) rotate(var(--rot, 0deg)) scale(.45); opacity: 0; }
  to { transform: translateY(var(--dy, 0px)) rotate(var(--rot, 0deg)) scale(1); opacity: 1; }
}

.prep-table.sizzle .prep-item:last-child {
  animation: popIn .22s ease, prepBounce .28s ease;
}
@keyframes prepBounce {
  50% { transform: translateY(calc(var(--dy, 0px) - 10px)) rotate(var(--rot, 0deg)) scale(1.08); }
}
.grill-wrap svg { width:100%; height:auto; max-height:120px; display:block; }
#grillArt .steam { animation:steam 2.4s ease-in-out infinite; }
#grillArt .steam.s2 { animation-delay:.5s; }
#grillArt .steam.s3 { animation-delay:1s; }
@keyframes steam { 0%{opacity:0;transform:translateY(6px)} 45%{opacity:.85} 100%{opacity:0;transform:translateY(-10px)} }
#grillArt.sizzle .patty { animation:pattyJump .4s ease; }
@keyframes pattyJump { 50%{ transform:translateY(-7px); } }

/* ---------- CARTOON PRODUCT BUTTONS ---------- */
.menu { grid-template-columns:repeat(3,1fr); gap:10px; margin-top:12px; }
.item-btn {
  background:#fffdf5; color:var(--ink); border:3px solid var(--ink); border-radius:14px;
  padding:10px 6px 8px; box-shadow:3px 4px 0 rgba(0,0,0,.35);
  display:flex; flex-direction:column; align-items:center; gap:4px;
}
.item-btn .e { width:54px; height:54px; object-fit:contain; display:block; }
.item-btn img.e { width:54px; height:54px; }
.item-btn .n { font-size:11px; font-weight:900; }
.item-btn:hover { transform:translateY(-2px); box-shadow:3px 6px 0 rgba(0,0,0,.35); }
.item-btn:active { transform:translateY(2px); box-shadow:1px 2px 0 rgba(0,0,0,.35); }
.item-btn.broken { filter:grayscale(.7) brightness(.9); }

/* ---------- TRAY / CHIPS ---------- */
.tray { background:rgba(0,0,0,.3); border:3px dashed rgba(255,199,44,.5); border-radius:12px; }
.tray:empty:before { content:"Empty tray… the customer is waiting 😐"; color:#9a8f7d; font-size:13px; font-family:var(--sans); }
.chip { border:2px solid var(--ink); gap:6px; padding:4px 8px 4px 6px; animation:pop .18s ease; }
.chip .e { width:26px; height:26px; }
.chip .x { margin-left:2px; }

/* ---------- BOSS CAM ---------- */
.boss-cam { position:relative; background:#0c1a0c; border:3px solid #000; border-radius:12px; padding:0; overflow:hidden; box-shadow:inset 0 0 40px rgba(0,255,0,.08); aspect-ratio: 4 / 3; }
.cam-art { width:100%; height:100%; margin:0; filter:saturate(.7) contrast(1.05) brightness(.95); }
.cam-art svg, .cam-art .boss-panel-img { width:100%; height:100%; display:block; object-fit:cover; object-position:center top; }
.cam-tag { position:absolute; top:8px; left:10px; color:#7CFC00; font-size:10px; font-weight:900; letter-spacing:1px; font-family:var(--mono); z-index:2; text-shadow:0 0 4px #000; }
.cam-tag:before { content:""; display:inline-block; width:7px; height:7px; background:#f00; border-radius:50%; margin-right:5px; vertical-align:middle; animation:blink 1s steps(2) infinite; }
@keyframes blink { 50%{ opacity:.2; } }
.cam-scan { position:absolute; inset:0; pointer-events:none; background:repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px); z-index:1; }

/* ---------- JEFE YELL ART ---------- */
.jefe .box .jefe-art { width:160px; height:120px; margin:0 auto 4px; border-radius:10px; overflow:hidden; border:3px solid #000; }
.jefe .box .jefe-art svg,
.jefe .box .jefe-art .boss-panel-img { width:100%; height:100%; display:block; object-fit:cover; filter:drop-shadow(0 4px 0 rgba(0,0,0,.3)); }
.jefe.show .jefe-art { animation:jefeShake .28s infinite; }
@keyframes jefeShake { 0%,100%{transform:none} 25%{transform:translateX(-3px) rotate(-2deg)} 75%{transform:translateX(3px) rotate(2deg)} }

/* ============================================================================
   NAV + LANDING + STUDIO  (multi-page)
============================================================================ */
.nav { display:flex; gap:4px; flex-wrap:wrap; }
.nav a { color:#fff; text-decoration:none; font-weight:800; font-size:13px; padding:8px 12px; border-radius:10px; background:rgba(0,0,0,.18); }
.nav a:hover { background:rgba(0,0,0,.34); }
.nav a.active { background:var(--yellow); color:var(--ink); }
.logo { text-decoration:none; }

/* ---------- LANDING ---------- */
.landing-hero { display:grid; grid-template-columns:1.3fr .7fr; gap:22px; align-items:center; padding:26px 0 10px; }
@media (max-width:760px){ .landing-hero { grid-template-columns:1fr; } }
.lh-text .hero-title { font-size:clamp(28px,5.4vw,52px); }
.cta-row { display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; }
.cta-row .btn-big { width:auto; }
.lh-art { position:relative; display:flex; align-items:center; justify-content:center; min-height:200px; }
.coin-hero { width:min(260px,72%); position:relative; z-index:2; animation:spinCoin 7s ease-in-out infinite; }
.coin-hero svg { width:100%; height:100%; filter:drop-shadow(0 14px 24px rgba(0,0,0,.55)); }
.logo-hero {
  width: min(280px, 78%);
  height: auto;
  position: relative;
  z-index: 2;
  border-radius: 50%;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.55));
  animation: bob 4s ease-in-out infinite;
}
@keyframes spinCoin { 0%,100%{ transform:rotate(-6deg) } 50%{ transform:rotate(6deg) } }
.coin-glow { position:absolute; width:250px; height:250px; border-radius:50%; z-index:1; background:radial-gradient(circle, rgba(255,199,44,.35), transparent 70%); }

.band { display:grid; grid-template-columns:.6fr 1.4fr; gap:22px; align-items:center; background:var(--grid); border:3px solid rgba(255,199,44,.25); border-radius:18px; padding:22px; margin:14px 0; }
@media (max-width:680px){ .band { grid-template-columns:1fr; text-align:center; } }
.band-art { display:flex; justify-content:center; }
.face-xl { width:min(200px,60%); }
.face-xl svg, .face-xl img.crew-face { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 10px 16px rgba(0,0,0,.5)); }
.band-text h2 { color:var(--yellow); margin:0 0 8px; }
.band-text p { color:#e9dcc7; line-height:1.6; font-size:14px; }
.ticks { list-style:none; padding:0; margin:12px 0 0; display:grid; gap:6px; text-align:left; }
.ticks li { color:#e9dcc7; font-size:13px; font-weight:700; }

.section { margin:30px 0; }
.sec-title { color:#fff; text-align:center; font-size:clamp(22px,4vw,34px); text-shadow:0 3px 0 var(--red-dark); margin:0 0 6px; }
.lead { color:#cdbfa8; text-align:center; max-width:640px; margin:0 auto 18px; font-weight:700; font-size:14px; }
.crew { display:grid; grid-template-columns:repeat(auto-fill,minmax(128px,1fr)); gap:12px; }
.crew-card { background:var(--grid); border:3px solid rgba(255,199,44,.25); border-radius:14px; padding:12px; text-align:center; }
.crew-card.boss { border-color:var(--red); background:#2a1410; }
.crew-card .face-art { width:94px; height:94px; margin:0 auto 6px; }
.crew-card .face-art svg, .crew-card .face-art img.crew-face { width:100%; height:100%; object-fit:contain; border-radius:10px; }
.crew-card b { color:#e9dcc7; font-size:12px; }
img.crew-face { background:transparent; }

.steps { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media (max-width:760px){ .steps { grid-template-columns:1fr 1fr; } }
@media (max-width:440px){ .steps { grid-template-columns:1fr; } }
.step {
  background:var(--grid); border:3px solid rgba(255,199,44,.25); border-radius:14px; padding:16px;
  text-align:center; position:relative; overflow:hidden;
}
.step-art {
  width:88px; height:88px; margin:0 auto 10px;
  border-radius:16px; border:3px solid #000; background:#1a120e;
  overflow:hidden; box-shadow:3px 4px 0 rgba(0,0,0,.35);
}
.step-art img { width:100%; height:100%; object-fit:cover; display:block; }
.step .n {
  display:inline-flex; width:30px; height:30px; align-items:center; justify-content:center;
  background:var(--yellow); color:var(--ink); border-radius:50%; font-weight:900; margin-bottom:8px;
  border:2px solid #000;
}
.step b { display:block; color:var(--yellow); margin-bottom:4px; }
.step p { color:#e9dcc7; font-size:13px; line-height:1.5; text-align:left; }
.step code { background:rgba(0,0,0,.4); color:var(--yellow); padding:1px 5px; border-radius:5px; font-size:12px; }

.feature-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:680px){ .feature-grid { grid-template-columns:1fr; } }

.tech-split {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.95fr);
  gap: 16px;
  align-items: stretch;
}
.tech-split .feature-grid { margin: 0; }
.tech-banner {
  margin: 0;
  border: 3px solid #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 0 rgba(0,0,0,.35);
  background: #1a120e;
  min-height: 100%;
}
.tech-banner img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.feature {
  background: var(--grid);
  border: 3px solid rgba(255,199,44,.25);
  border-radius: 14px;
  padding: 14px 16px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature > b {
  color: var(--yellow);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.feat-ico {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid #000;
  background: rgba(0,0,0,.35);
  flex-shrink: 0;
}
.feature > p {
  color: #e9dcc7;
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0 0;
  padding: 0;
}
.feature code {
  background: rgba(0,0,0,.4);
  color: var(--yellow);
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 12px;
}
@media (max-width:860px) {
  .tech-split { grid-template-columns: 1fr; }
  .tech-banner { order: -1; }
  .tech-banner img { min-height: 180px; max-height: 240px; }
}

.cta-band {
  display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center;
  text-align:center; background:linear-gradient(180deg,var(--red),var(--red-dark));
  border:4px solid var(--yellow); border-radius:20px; padding:22px 16px; margin:30px 0;
  overflow:hidden; position:relative;
}
.cta-core { position:relative; z-index:2; min-width:0; }
.cta-banner-wrap {
  max-width:520px; margin:0 auto 12px; border:3px solid #000; border-radius:14px;
  overflow:hidden; box-shadow:0 8px 0 rgba(0,0,0,.25);
}
.cta-banner { width:100%; height:auto; max-height:160px; object-fit:cover; object-position:center; display:block; }
.cta-band h2 { color:#fff; font-size:clamp(24px,4vw,36px); margin:0 0 4px; text-shadow:0 3px 0 rgba(0,0,0,.3); }
.cta-band p { color:var(--yellow); font-weight:800; margin:0 0 16px; }
.cta-deco {
  display:flex; flex-direction:column; gap:10px; align-items:center;
  width:92px; flex-shrink:0;
}
.cta-deco img {
  width:84px; height:84px; object-fit:contain; border-radius:14px;
  border:3px solid #000; background:rgba(0,0,0,.25);
  box-shadow:3px 4px 0 rgba(0,0,0,.35); filter:drop-shadow(0 4px 8px rgba(0,0,0,.35));
}
.cta-deco-l img:first-child { transform:rotate(-6deg); }
.cta-deco-l img:last-child { transform:rotate(4deg); }
.cta-deco-r img:first-child { transform:rotate(5deg); }
.cta-deco-r img:last-child { transform:rotate(-4deg); }
@media (max-width:720px) {
  .cta-band { grid-template-columns:1fr; }
  .cta-deco { flex-direction:row; width:auto; justify-content:center; }
  .cta-deco img { width:64px; height:64px; }
}

/* ---------- STUDIO ---------- */
.studio { max-width:1180px; margin:0 auto; padding:16px; }
.studio-toolbar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; background:var(--grid); border:3px solid rgba(255,199,44,.25); border-radius:14px; padding:10px; margin-bottom:14px; }
.studio-toolbar .btn { padding:9px 12px; font-size:12px; box-shadow:0 3px 0 rgba(0,0,0,.35); }
.tool-color { display:flex; align-items:center; gap:6px; color:#e9dcc7; font-weight:800; font-size:12px; }
.tool-color input { width:34px; height:28px; border:none; background:none; padding:0; cursor:pointer; }
.studio-toolbar .spacer { flex:1; }
.studio-body { display:grid; grid-template-columns:1fr 300px; gap:14px; align-items:start; }
@media (max-width:820px){ .studio-body { grid-template-columns:1fr; } }
.stage-wrap { background:#111; border:3px solid #000; border-radius:14px; overflow:hidden; box-shadow:0 12px 40px rgba(0,0,0,.5); }
.stage { position:relative; width:100%; aspect-ratio:1200/750; overflow:hidden; touch-action:none; user-select:none; }
.stage.drop { outline:5px dashed var(--yellow); outline-offset:-10px; }
.stage-hint { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; color:#cdbfa8; gap:6px; padding:20px; pointer-events:none; }
.stage-hint b { color:#fff; font-size:18px; }
.stage-hint p { font-size:13px; max-width:380px; line-height:1.5; }
.slayer { position:absolute; cursor:grab; }
.slayer.sel { outline:2px dashed var(--yellow); outline-offset:2px; }
.slayer.locked { cursor:not-allowed; }
.slayer > img, .slayer > svg { width:100%; height:100%; display:block; object-fit:contain; pointer-events:none; }
.handle { position:absolute; right:-9px; bottom:-9px; width:18px; height:18px; background:var(--yellow); border:2px solid var(--ink); border-radius:4px; cursor:nwse-resize; }
.studio-panel { background:var(--grid); border:3px solid rgba(255,199,44,.25); border-radius:14px; padding:12px; }
.props { background:rgba(0,0,0,.3); border:2px solid rgba(255,199,44,.3); border-radius:12px; padding:10px; margin-bottom:12px; }
.props h3 { margin:0 0 8px; color:var(--yellow); font-size:14px; }
.props .row { display:flex; align-items:center; justify-content:space-between; gap:8px; color:#e9dcc7; font-size:12px; font-weight:800; margin:6px 0; }
.props .row input[type=range] { flex:1; accent-color:var(--red); }
.prow { display:flex; gap:8px; margin-top:8px; }
.prow .btn { flex:1; padding:8px; font-size:11px; }
.lay-title { color:var(--yellow); font-size:14px; margin:4px 0 8px; }
.lay-title small { color:#8f8877; font-weight:700; }
.layer-list { display:flex; flex-direction:column; gap:6px; max-height:340px; overflow:auto; }
.lrow { display:flex; align-items:center; gap:8px; background:rgba(0,0,0,.3); border:2px solid transparent; border-radius:10px; padding:5px; cursor:pointer; }
.lrow.sel { border-color:var(--yellow); }
.lthumb { width:34px; height:34px; flex:none; background:#0006; border-radius:6px; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.lthumb img, .lthumb svg { width:100%; height:100%; object-fit:contain; }
.lname { flex:1; font-size:12px; color:#e9dcc7; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lacts { display:flex; gap:2px; }
.lacts button { background:rgba(255,255,255,.08); border:none; color:#fff; border-radius:6px; width:24px; height:24px; font-size:11px; cursor:pointer; }
.lacts button:hover { background:var(--red); }
.panel-note { color:#8f8877; font-size:11px; margin-top:10px; line-height:1.5; }
.empty { color:#8f8877; font-size:12px; text-align:center; padding:14px; }
.art-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(84px,1fr)); gap:8px; max-height:52vh; overflow:auto; margin-top:10px; }
.art-cell { background:#fffdf5; border:2px solid var(--ink); border-radius:10px; padding:6px; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:2px; }
.art-cell span { width:52px; height:52px; }
.art-cell span svg { width:100%; height:100%; }
.art-cell b { font-size:9px; color:var(--ink); }
.art-cell:hover { background:var(--yellow); }

/* ---------- dApp backdrop (from Studio "Send to dApp") ---------- */
.scene-backdrop { position:fixed; inset:0; z-index:0; background-size:cover; background-position:center; opacity:.16; pointer-events:none; }
body.has-backdrop .ticker, body.has-backdrop header, body.has-backdrop .menuboard, body.has-backdrop main { position:relative; z-index:1; }
