@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Mono:wght@500;600;700&family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #152033;
  --panel: #202d43;
  --line: #536782;
  --warm: #fff0cd;
  --ink: #30241f;
  --orange: #ff8a4c;
  --title: "Archivo Black", "Arial Black", Arial, sans-serif;
  --body: "Instrument Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* { box-sizing: border-box; }
body { margin:0; min-height:100vh; background: radial-gradient(ellipse at 44% -10%,#354866 0,transparent 66%),var(--bg); color:var(--warm); font:16px var(--body); }
.wrap { width:min(1140px,calc(100% - 64px)); margin-inline:auto; }
.mast { border-bottom:1px solid var(--line); background:#101a2aeb; }
.mast-inner { min-height:62px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.brand { display:flex; align-items:center; gap:9px; font:400 clamp(14px,2.5vw,20px)/.94 var(--title); color:var(--warm); }
.brand small { display:block; margin-top:5px; color:#d3b998; font:600 clamp(6px,1.3vw,8px) var(--mono); letter-spacing:.085em; }
.seal { width:34px; height:34px; display:grid; place-items:center; background:var(--orange); border-radius:50%; color:#39281f; font:21px/1 sans-serif; }
a:focus-visible,button:focus-visible { outline:3px solid #70d9c7; outline-offset:3px; }
.hero { display:flex; justify-content:space-between; gap:18px; align-items:flex-end; margin:26px 0 17px; }
h1 { margin:0; color:var(--warm); font:400 clamp(48px,7.3vw,112px)/.89 var(--title); letter-spacing:-.085em; }
h1 em { font-style:normal; color:var(--orange); }
.hero p { font-size:clamp(13px,1.5vw,17px); font-weight:600; color:#edcfad; max-width:205px; line-height:1.25; margin:0 2px 2px; }
.layout { display:grid; grid-template-columns:minmax(0,1.23fr) minmax(0,1fr); gap:16px; align-items:start; margin-bottom:26px; }
.cabinet { overflow:hidden; border:1px solid #546781; border-radius:8px; background:var(--panel); box-shadow:0 5px 0 #0d1420; }
.board { position:relative; background:#c7b9a2; }
canvas { width:100%; height:auto; display:block; image-rendering:pixelated; }
.board canvas { cursor:pointer; touch-action:manipulation; }
.bottle-rotor {
  position:absolute;
  left:50%;
  top:50%;
  width:16.875%;
  aspect-ratio:54 / 164;
  transform:translate(-50%, -50%) rotate(var(--bottle-angle, 0rad));
  pointer-events:none;
  filter:drop-shadow(1px 3px 2px #071719bc);
}
.bottle-rotor img {
  width:100%;
  height:100%;
  image-rendering:auto;
  clip-path:polygon(20% 4%,31% 3.3%,66% 3.3%,79% 4.6%,83% 6.4%,83% 9%,78% 11%,78% 14%,77% 28%,79% 37%,84% 44%,89% 49%,90% 65%,89% 84%,94% 90%,94% 92%,81% 93.5%,60% 94%,31% 94%,13% 92.7%,7% 91%,8% 83%,8% 58%,9% 48%,14% 44%,19% 37%,21% 30%,22% 14%,24% 11%,18% 9%,17% 6%);
}
.bottle-rotor img:not([hidden]) { display:block; }
.controls { padding:9px 12px 11px; }
.controls button { width:100%; display:flex; gap:10px; align-items:center; background:var(--orange); color:#281d19; border:1px solid #ffad72; border-radius:4px; min-height:49px; padding:7px 13px; font:400 clamp(16px,2.4vw,22px)/1 var(--title); text-align:left; cursor:pointer; touch-action:manipulation; }
.controls button:hover:not([aria-disabled="true"]) { background:#ffad72; }
.controls button:active:not([aria-disabled="true"]) { transform:translateY(1px); }
.controls button[aria-disabled="true"] { cursor:wait; opacity:.66; }
.controls button span:first-child { font:800 25px/1 var(--body); }
kbd { margin-left:auto; font:600 10px var(--mono); border:1px solid #955636; border-radius:3px; padding:4px; }
.control-links { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:8px; }
.control-links p { font-size:12px; color:#e1c5a6; margin:0; }
.shop { display:inline-flex; justify-content:center; align-items:center; gap:8px; min-height:36px; padding:7px 12px; border:1px solid #b77854; border-radius:4px; color:var(--warm); background:#27364c; text-decoration:none; font:700 12px var(--mono); }
.shop:hover { background:#354761; border-color:var(--orange); }
.shop span { color:var(--orange); }
.recipe { color:var(--ink); border-radius:7px; overflow:hidden; background:#f8e6bd; border:1px solid #a78962; box-shadow:0 5px 0 #0d1420; }
.ticket { min-height:48px; display:flex; justify-content:space-between; align-items:center; padding:10px 18px; background:#c95832; color:#fff4d8; border-bottom:1px solid #8c412b; font:700 11px var(--mono); letter-spacing:.09em; }
.ticket-flame { font:22px/1 sans-serif; }
.paper { padding:clamp(16px,2.6vw,30px); background:repeating-linear-gradient(0deg,#00000002 0 1px,transparent 1px 5px),linear-gradient(#fff1d2,#f8e6bd); }
.paper h2 { color:#5e2c25; font:400 clamp(23px,2.85vw,39px)/1.06 var(--title); letter-spacing:-.052em; margin:0 0 10px; }
.paper p { font-size:15px; line-height:1.3; margin:0; }
.waiting .paper { min-height:333px; display:flex; flex-direction:column; justify-content:center; }
.paper .serving { margin:14px 0 0; font:700 11px var(--mono); text-transform:uppercase; color:#734234; }
.paper h3 { margin:15px 0 6px; font:700 11px var(--mono); text-transform:uppercase; letter-spacing:.05em; color:#6b3123; padding-top:11px; border-top:1px solid #d5b68c; }
.paper ul,.paper ol { margin:0; padding-left:20px; font-size:14px; line-height:1.36; }
.paper li { padding-left:3px; margin:0 0 4px; }
.paper li::marker { font-weight:700; color:#943f2c; }
.paper .grill-note { margin-top:13px; font-size:12px; color:#684a3a; }
.safety { display:inline-block; color:#763423; font:600 10px var(--mono); margin-top:7px; text-underline-offset:3px; }
#waiting-icon { width:84px; height:56px; position:relative; margin-bottom:22px; border:2px solid #b77050; border-radius:50%; box-shadow:0 4px #dbba8a,inset 0 0 0 5px #ecd2a5,inset 0 0 0 7px #b37152; transform:rotate(-10deg); }
#waiting-icon span,#waiting-icon i,#waiting-icon b { position:absolute; background:#ad5938; width:5px; height:5px; top:23px; left:27px; }
#waiting-icon i { left:37px; }
#waiting-icon b { left:47px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (max-width:840px) {
  .wrap { width:calc(100% - 34px); }
}
@media (max-width:660px) {
  .wrap { width:calc(100% - 24px); }
  .mast-inner { min-height:50px; }
  .seal { width:28px; height:28px; font-size:18px; }
  .hero { display:block; margin:19px 0 12px; }
  h1 { font-size:clamp(32px,9.85vw,70px); }
  .hero p { margin:6px 0 0; max-width:none; }
  .layout { display:block; }
  .recipe { margin-top:12px; }
  .waiting .paper { min-height:0; }
  #waiting-icon { display:none; }
  .ticket { min-height:34px; padding:7px 13px; }
  .controls button { min-height:49px; }
  .control-links p { display:none; }
  .shop { width:100%; min-height:44px; }
}
@media (pointer:coarse) { kbd { display:none; } }

.back-to-shop { color: var(--warm); font: 600 11px var(--mono); text-underline-offset: 4px; white-space: nowrap; }
