/* Shared terminal design. Component geometry lives in interface/styles.css. */
@font-face {
  font-family:"BlexMono Nerd Font Mono";
  src:url("/assets/dynamic/fonts/blexmono/blex-mono-regular.woff2") format("woff2");
  font-style:normal; font-weight:400; font-display:swap;
}
@font-face {
  font-family:"BlexMono Nerd Font Mono";
  src:url("/assets/dynamic/fonts/blexmono/blex-mono-italic.woff2") format("woff2");
  font-style:italic; font-weight:400; font-display:swap;
}
body:is(.page-template,[data-terminal-ui]) {
  --body-font:"BlexMono Nerd Font Mono",monospace;
  --heading-font:var(--body-font);
  --console-body-size:16px;
  --console-heading-size:var(--console-body-size);
  --console-line:calc(var(--console-body-size) * 1.5);
  --console-stroke:1px;
  --console-red:#ff3a33;
  --console-white:#fff;
  --console-glow:0 0 2px var(--console-red),0 0 14px rgba(255,58,51,.45);
  --font-weight-normal:400; --font-weight-bold:400;
  font-family:var(--body-font);
  font-variation-settings:normal;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
@media (max-width:389px) and (pointer:coarse) and (min-resolution:2.5dppx),
       (max-width:389px) and (pointer:coarse) and (-webkit-min-device-pixel-ratio:2.5) {
  body:is(.page-template,[data-terminal-ui]) { --console-body-size:12px; }
}

/* One type size; editable fields keep 16px to preserve the phone focus behaviour. */
body .hero.framed, body .hero.framed *,
body .hero.framed #app *, body #terminalBlock *,
body .navbar *, body .navbar .navbar__menu > li > :is(a,span), body .footer * {
  font-family:var(--body-font) !important;
  font-size:var(--console-body-size) !important;
  font-weight:400 !important;
  font-variation-settings:normal;
  line-height:1.5 !important;
  letter-spacing:0 !important;
  text-shadow:none !important;
  transition-property:background-color,border-color,color !important;
}
body .hero.framed, body .hero.framed *, body .hero.framed #app * {
  color:var(--console-white) !important;
}
body .hero.framed :is(.console-header-label,.console-tree-heading,.section-head,.unlock-title),
body .hero.framed #app :is(.console-tree-heading,.section-head,.unlock-title),
body #terminalBlock .terminal-section-title > span:not(.terminal-glyph) {
  color:var(--console-red) !important;
  text-transform:uppercase;
  text-shadow:var(--console-glow) !important;
}
body .hero.framed #app .text-red, body #terminalBlock .terminal-system-note {
  color:var(--console-red) !important;
  text-shadow:var(--console-glow) !important;
}
.console-header-page { text-transform:uppercase; }
body .hero.framed #app :is(input:not([type="checkbox"]),textarea,select) {
  font-size:16px !important;
}

/* A single blank text row separates blocks, never the lines inside a tree. */
body .hero.framed {
  display:flex; flex-direction:column; gap:var(--console-line);
  padding:var(--console-line) !important;
  border-width:var(--console-stroke) !important;
}
body .hero.framed > *, body #app .screen > * { margin:0 !important; }
body .hero.framed > * { animation:none !important; clip-path:none !important; }
body main.content { margin-top:var(--console-line) !important; }
body article.post > header:empty { display:none !important; }
body .post__entry { margin:0 !important; }
body #app { width:100%; max-width:none; padding:0; margin:0; min-width:0; }
body #app .screen.active { display:flex; flex-direction:column; gap:var(--console-line); }
body #app :is(.buy-box,.booking-panel,.kitchen-menu-panel) {
  display:flex; flex-direction:column; gap:var(--console-line);
}
body #app :is(.buy-box,.booking-panel,.kitchen-menu-panel) > * { margin:0 !important; }
body #app :is(.field,.booking-field) { gap:calc(var(--console-line)/2); margin:0; }
body #app :is(.btn-row,.recharge-grid,.terminal-button-pair,.menu-list,.meal-choice-list,.kitchen-mode-buttons,.kitchen-menu-adjust) {
  gap:var(--console-line); margin:0;
}
body #app :is(.terminal-panel,.msg,.booking-panel,.aux-access-notice,.kitchen-control-state) {
  border:0; background:transparent; box-shadow:none; padding:0; margin:0;
}
body #app .console-info-tree .console-tree-content :is(.aux-access-notice,.kitchen-control-state) {
  border:0; background:transparent; box-shadow:none; padding:0; margin:0;
}
body #app .console-screen-heading { display:block; margin:0; }
body #app #service-payment-alert { background:#090909; }
body #app #service-booking-count { cursor:pointer; padding:10px 0; }
body #app #embedded-checkout:empty { margin-block:calc(var(--console-line)/-2) !important; }
body #screen-payment-status > #payment-status-title,
body #screen-aux-warning > .section-head,
body #screen-main :is(#main-provenance,#main-reservations,#screen-main-season,#recharge-gate-msg) { display:none !important; }
body :is([hidden]), body #app .hidden { display:none !important; }

/* Controls share a thin frame, plain uppercase captions and 44px touch targets. */
body .hero.framed :is(button,a.btn,.console-action), body .hero.framed #app button, body .navbar__toggle {
  min-height:44px; height:auto !important; max-width:100%;
  padding:10px 6px; margin:0;
  border:var(--console-stroke) solid var(--console-red) !important;
  border-radius:0; background:rgba(0,0,0,.82);
  box-shadow:none !important;
  color:var(--console-white) !important;
  text-transform:uppercase; text-shadow:none !important;
  white-space:normal !important; overflow-wrap:anywhere;
  cursor:pointer;
}
body .hero.framed #app button.is-active { background:#44100e; }
body .hero.framed #app :is(button,a.btn,input,select,textarea):focus-visible { outline:1px solid var(--console-white); outline-offset:2px; }
body .hero.framed button * { color:inherit !important; text-shadow:none !important; }
body .navbar .navbar__menu > li > :is(a,span) { color:var(--console-white) !important; text-shadow:none !important; }
body .navbar__toggle { background:rgba(0,0,0,.55); }
body .navbar__toggle-inner { text-transform:uppercase; }
body #app :is(input:not([type="checkbox"]),textarea,select) {
  box-sizing:border-box; width:100%; min-width:0; max-width:100%; min-height:44px;
  padding:10px 12px; border:var(--console-stroke) solid var(--console-red) !important;
  border-radius:0; background:rgba(0,0,0,.82); box-shadow:none !important;
}
body #app :is(input,textarea)::placeholder { color:rgba(255,255,255,.55); }
body .hero.framed #app button:disabled { opacity:.55; cursor:not-allowed; }
body .footer__copyright * { color:var(--console-red) !important; }
.console-action, #app a.btn { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.console-header {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0;
}
.console-header-language { position:relative; padding-right:max(44px,8ch); }
body .hero.framed .console-header > .console-language-button {
  position:absolute; top:calc((var(--console-line) - 44px)/2); right:0;
  display:flex; align-items:center; justify-content:center; width:auto; min-width:44px;
  height:44px !important; padding:0 6px; margin:0;
  border-color:transparent !important; background:transparent;
  white-space:nowrap !important; isolation:isolate;
}
/* A text-row frame with the same 44px tap area as the other controls. */
.console-language-button::before {
  content:""; position:absolute; left:0; right:0; top:50%;
  height:var(--console-line); box-sizing:border-box; transform:translateY(-50%);
  border:var(--console-stroke) solid var(--console-red);
  background:rgba(0,0,0,.82); pointer-events:none; z-index:-1;
}
.console-language-button:focus-visible::before { outline:1px solid var(--console-white); outline-offset:2px; }
.console-live-block { display:flex; flex-direction:column; gap:0; }
.console-live-block > * { margin:0; }
.terminal-viewport { width:100%; min-width:0; overflow:hidden; container-type:inline-size; }

/* Shared frame/branch drawing for CONSOLE and information on every screen. */
:is(.console-tree,#terminalBlock) {
  --terminal-glyph-size:var(--console-body-size);
  --terminal-stroke:var(--console-stroke);
  width:100%; max-width:100%; min-width:0; max-height:none;
  white-space:normal; word-break:normal !important;
}
body #terminalBlock { padding:0 !important; margin:0; border:0; background:none; }
#terminalBlock .terminal-render-row { display:block; width:100%; white-space:nowrap; }
:is(.console-tree,#terminalBlock) .terminal-frame-line {
  display:flex; align-items:stretch; width:100%; height:var(--console-line);
  white-space:nowrap;
}
:is(.console-tree,#terminalBlock) .terminal-frame-rule {
  position:relative; flex:1 1 auto; min-width:0;
  --glyph-color:var(--console-red); --glyph-shadow:var(--console-glow);
}
:is(.console-tree,#terminalBlock) .terminal-glyph {
  --glyph-color:var(--console-white); --glyph-shadow:none;
  position:relative; display:block; align-self:stretch; flex:0 0 1ch; width:1ch;
}
:is(.console-tree,#terminalBlock) .terminal-glyph.redline {
  --glyph-color:var(--console-red); --glyph-shadow:var(--console-glow);
}
:is(.console-tree,#terminalBlock) .terminal-glyph-label { display:block; visibility:hidden; white-space:pre; }
:is(.console-tree,#terminalBlock) .terminal-glyph::before,
:is(.console-tree,#terminalBlock) .terminal-glyph::after,
:is(.console-tree,#terminalBlock) .terminal-frame-rule::after {
  content:""; position:absolute; pointer-events:none;
  background:var(--glyph-color); box-shadow:var(--glyph-shadow);
}
:is(.console-tree,#terminalBlock) .terminal-glyph::before {
  left:calc(.5ch - var(--terminal-stroke)/2); top:0; bottom:0; width:var(--terminal-stroke);
}
:is(.console-tree,#terminalBlock) :is(.terminal-glyph-tee,.terminal-glyph-last) { flex-basis:2ch; width:2ch; }
:is(.console-tree,#terminalBlock) :is(.terminal-glyph-tee,.terminal-glyph-last,.terminal-glyph-top-left,.terminal-glyph-bottom-left)::after {
  left:calc(.5ch - var(--terminal-stroke)/2); right:0;
}
:is(.console-tree,#terminalBlock) :is(.terminal-glyph-top-right,.terminal-glyph-bottom-right)::after {
  left:0; right:calc(.5ch - var(--terminal-stroke)/2);
}
:is(.console-tree,#terminalBlock) :is(.terminal-glyph,.terminal-frame-rule)::after {
  top:calc(50% - var(--terminal-stroke)/2); height:var(--terminal-stroke);
}
:is(.console-tree,#terminalBlock) .terminal-glyph-rail::after { content:none; }
:is(.console-tree,#terminalBlock) :is(.terminal-glyph-last,.terminal-glyph-bottom-left,.terminal-glyph-bottom-right)::before { bottom:50%; }
:is(.console-tree,#terminalBlock) :is(.terminal-glyph-top-left,.terminal-glyph-top-right)::before { top:50%; }
:is(.console-tree,#terminalBlock) .terminal-frame-rule::after { left:0; right:0; }
:is(.console-tree,#terminalBlock) .terminal-section-title {
  display:flex; align-items:stretch; min-height:var(--console-line); margin:0;
}
:is(.console-tree,#terminalBlock) .terminal-section-title > .terminal-glyph { margin-right:1ch; }
:is(.console-tree,#terminalBlock) .terminal-row { display:flex; align-items:stretch; width:100%; min-width:0; }
:is(.console-tree,#terminalBlock) .terminal-prefix { display:flex; align-items:stretch; flex:0 0 auto; padding-right:1ch; }
:is(.console-tree,#terminalBlock) .terminal-indent { flex:0 0 2ch; width:2ch; }
.console-tree-content {
  flex:1 1 auto; min-width:0; max-width:none; margin:0; padding:0;
  overflow-wrap:anywhere; text-align:left; text-transform:none;
}
body #app .console-tree-content { white-space:pre-line; }
body .console-info-tree .console-tree-content * { text-align:left !important; margin-block-start:0 !important; }
.console-info-tree .console-tree-content > * { margin-bottom:8px; }
.console-info-tree .console-tree-content > :last-child { margin-bottom:0; }
body .console-info-tree .console-tree-content > :is(p,.identity-copy,.aux-warning-copy,.checkout-explanation,.aux-access-notice) {
  width:100%; max-width:none; white-space:normal;
}
.console-info-tree > :is(.terminal-section-title,.terminal-row) { box-sizing:border-box; padding-inline-end:1.5ch; }
:is(.console-tree,#terminalBlock).console-info-tree .terminal-glyph::after { top:calc(.75em - var(--terminal-stroke)/2); }
:is(.console-tree,#terminalBlock).console-info-tree .terminal-glyph-last::before { bottom:auto; height:.75em; }
body .console-frame {
  position:relative; display:block; margin:0 !important; padding:0;
  border:0; background:transparent; box-shadow:none;
}
.console-frame::before {
  content:""; position:absolute; pointer-events:none;
  left:calc(.5ch - var(--terminal-stroke)/2);
  top:calc(var(--console-line)/2); bottom:calc(var(--console-line)/2);
  width:var(--terminal-stroke); background:var(--console-red); box-shadow:var(--console-glow);
}
body .console-frame > .console-info-tree { margin:0; }
.console-framed-sections > .console-info-tree + .console-info-tree { margin-top:var(--console-line); }
:is(.console-tree,#terminalBlock).console-frame .terminal-glyph.redline::before { background:transparent; box-shadow:none; }
:is(.console-tree,#terminalBlock).console-frame .terminal-frame-line .terminal-glyph.redline::before {
  background:var(--console-red); box-shadow:var(--console-glow);
}

/* Single-line dashboard tickers keep polling from moving the layout. */
#terminalBlock .terminal-ticker { flex:1 1 auto; min-width:0; overflow:hidden; padding-block:8px; margin-block:-8px; }
#terminalBlock .terminal-ticker-text { display:inline-block; width:max-content; max-width:none; white-space:nowrap !important; }
#terminalBlock .terminal-ticker.is-overflowing .terminal-ticker-text { animation:terminal-ticker var(--ticker-duration,12s) linear infinite alternate; }
#terminalBlock .terminal-ticker.is-paused .terminal-ticker-text { animation-play-state:paused; }
@media (hover:hover) and (pointer:fine) {
  #terminalBlock .terminal-ticker:hover .terminal-ticker-text { animation-play-state:paused; }
}
@keyframes terminal-ticker { 0%,15% { transform:translateX(0); } 85%,100% { transform:translateX(var(--ticker-offset,0px)); } }
body #terminalBlock .terminal-sold-out { animation:terminal-sold-out 1.6s step-end infinite; color:var(--terminal-status-color,var(--console-white)) !important; }
@keyframes terminal-sold-out { 0%,49% { --terminal-status-color:#fff; } 50%,100% { --terminal-status-color:#ff3a33; } }
@media (prefers-reduced-motion:reduce) {
  body #terminalBlock .terminal-sold-out { animation:none; --terminal-status-color:var(--console-red); }
}

/* Static 96-cell art, unchanged dimensions and no runtime processing. */
#app figure.console-pixel-art { position:relative; overflow:hidden; --pixel-count:96; }
#app .console-pixel-art img { image-rendering:pixelated; filter:saturate(.72) contrast(1.12) brightness(1.1); }
#app .console-pixel-art::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:linear-gradient(to right,rgba(0,0,0,.6) .65px,transparent .65px),linear-gradient(to bottom,rgba(0,0,0,.6) .65px,transparent .65px);
  background-size:calc(100% / var(--pixel-count)) calc(100% / var(--pixel-count));
}
