@font-face {
  font-family: 'BebasNeue';
  src: url('./fonts/BebasNeue-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Baloo2';
  src: url('./fonts/Baloo2-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'SlurpSans';
  src: url('./fonts/Baloo2-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

:root {
  --night: #1B1B3A;
  --night-2: #2A2A55;
  --lantern: #FF9E4A;
  --lantern-hot: #FFD166;
  --spirit: #57E6C4;
  --broth: #E8A838;
  --vermillion: #E63946;
  --cream: #FFF3E0;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--night);
  display: flex;
  align-items: stretch;
  justify-content: center;
  font-family: 'SlurpSans', sans-serif;
}

#game {
  flex: 0 0 auto;
  align-self: center;
  /* Display layer stretches to the viewport at 16:10 (logical sim stays
     1024×640; 1024×640 is only the screenshot-optimised size). */
  width: min(100vw, 160vh);
  height: auto;
  aspect-ratio: 1024 / 640;
  display: block;
  touch-action: none;
  background: var(--night);
  box-shadow: 0 0 60px rgba(255, 158, 74, 0.25);
}

.side-panel {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 209, 102, 0.20), transparent 55%),
    linear-gradient(180deg, var(--night-2), var(--night));
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}

.stall-sign {
  font-size: clamp(9px, 1.4vw, 30px);
  line-height: 1.15;
  letter-spacing: 0.08em;
  max-width: calc(100% - 10px);
  box-sizing: border-box;
  color: var(--lantern-hot);
  border: 3px solid var(--lantern);
  border-radius: 10px;
  padding: 10px 8px;
  background: rgba(27, 27, 58, 0.85);
  text-shadow: 0 0 12px rgba(255, 158, 74, 0.8);
}

.lantern-string {
  display: flex;
  gap: 10px;
}

.lantern-string span {
  width: 18px;
  height: 26px;
  border-radius: 50% / 42%;
  background: radial-gradient(circle at 50% 40%, var(--lantern-hot), var(--lantern) 70%);
  box-shadow: 0 0 16px rgba(255, 158, 74, 0.9);
}

.stall-menu {
  font-size: clamp(10px, 1.3vw, 16px);
  line-height: 1.5;
  color: var(--cream);
  opacity: 0.9;
}

#status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-aspect-ratio: 1024/640) {
  .side-panel { display: none; }
}

/* Narrow letterbox panels (viewport just wider than 16:10): shrink the
   decorative sign/menu so nothing clips. */
@media (max-aspect-ratio: 2/1) {
  .stall-sign { font-size: 10px; padding: 6px 4px; }
  .stall-menu { font-size: 8px; }
  .lantern-string span { width: 12px; height: 18px; }
}
