* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --bg:#1a120b; --fg:#f0e0c0; --ok:#7fdc6a; --bad:#e8663f; --acc:#ffb24d; --panel:#241a10ee; }
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--fg);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
#c { position: fixed; inset: 0; display: block; width: 100vw; height: 100vh; image-rendering: pixelated; }

.hidden { display: none !important; }
.dim { opacity: .6; }
.warn { color: var(--acc); }

#cross { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%);
  color: #fff8; font-size: 22px; pointer-events: none; text-shadow: 0 0 3px #000; }

#hud { position: fixed; top: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 24px;
  pointer-events: none; font-size: 18px; text-shadow: 0 1px 3px #000; }
#shift { color: var(--acc); }
#meat { color: #cfd8e0; }
#meat.has { color: var(--ok); }
#timer { color: var(--bad); font-weight: bold; }

#prompt { position: fixed; left: 50%; bottom: 22%; transform: translateX(-50%); background: #000a;
  padding: 8px 16px; border: 1px solid var(--acc); border-radius: 6px; font-size: 15px; }

.overlay { position: fixed; inset: 0; background: #0c0804ee; display: flex; align-items: center;
  justify-content: center; z-index: 50; }
.card { max-width: 560px; padding: 28px 32px; border: 1px solid #6a4a22; border-radius: 12px;
  background: linear-gradient(180deg,#2a1d10,#1a120b); box-shadow: 0 20px 60px #000a; }
.card h1 { font-size: 34px; margin-bottom: 8px; }
.card .sub { font-size: 16px; color: var(--acc); margin-bottom: 14px; }
.card p { margin-bottom: 12px; line-height: 1.5; font-size: 14px; }
.card b { color: var(--fg); }
.big { margin-top: 8px; padding: 12px 22px; font: inherit; font-size: 16px; cursor: pointer;
  background: var(--acc); color: #201400; border: 0; border-radius: 8px; font-weight: bold; }
.big:hover { filter: brightness(1.1); }
.flag { background: #000; border: 1px dashed var(--ok); padding: 12px; border-radius: 8px; }
.flag code { color: var(--ok); font-size: 18px; }

.panel { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(680px, 94vw);
  background: var(--panel); border: 1px solid #6a4a22; border-radius: 12px; padding: 18px; z-index: 40;
  backdrop-filter: blur(3px); box-shadow: 0 20px 60px #000c; }
.p-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 18px; color: var(--acc); }
.p-head .x { margin-left: auto; background: none; border: 1px solid #6a4a22; color: var(--fg);
  border-radius: 6px; padding: 3px 8px; cursor: pointer; font: inherit; font-size: 12px; }
#orderBody { font-size: 14px; line-height: 1.7; background: #0006; padding: 12px; border-radius: 8px;
  border: 1px solid #ffffff14; margin-bottom: 12px; }
#orderBody .f { color: var(--acc); }
#orderBody .note { display: block; opacity: .7; font-size: 12px; margin-top: 6px; }
.p-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.p-inputs label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; opacity: .85; }
.p-inputs input { font: inherit; padding: 8px; background: #000; color: var(--fg); border: 1px solid #6a4a22;
  border-radius: 6px; }
.p-inputs input.filled { border-color: var(--ok); color: var(--ok); }
.p-foot { display: flex; align-items: center; gap: 14px; }

#console { position: fixed; left: 0; right: 0; bottom: 0; height: 42%; background: #05030099;
  border-top: 1px solid var(--acc); padding: 10px; z-index: 45; display: flex; flex-direction: column;
  font-size: 13px; backdrop-filter: blur(2px); }
#conLog { flex: 1; overflow-y: auto; white-space: pre-wrap; line-height: 1.5; }
#conLog .u { color: #9ecbff; }
#conLog .s { color: var(--acc); }
.con-line { display: flex; gap: 6px; color: var(--ok); }
.con-line input { flex: 1; background: none; border: 0; color: var(--fg); font: inherit; outline: none; }
