/* Bartan Tower! - kitchen at 3 AM: tubelight-green tiles, steel, lime and rose */
:root { --night: #16241F; --moon: #F2FFF7; --itch: #C6F432; --sheet: #FF5D8F; --coil: #52D1DC; --bite: #FF4B3E; }

/* Screens: kitchen tiles instead of Bzzz Off's coil */
.screen { background:
  linear-gradient(rgba(0,0,0,.18) 2px, transparent 2px) 0 0 / 46px 46px,
  linear-gradient(90deg, rgba(0,0,0,.18) 2px, transparent 2px) 0 0 / 46px 46px,
  radial-gradient(circle at 50% 30%, #2f5a4f 0%, var(--night) 72%); }
.screen.dim { background: radial-gradient(circle at 50% 40%, rgba(47,90,79,.93) 0%, rgba(22,36,31,.97) 70%); }
.mascot svg { animation: wobble 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes wobble { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.menu-grid a.ghost { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; font-size: 18px; text-decoration: none; }
canvas { cursor: pointer; }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 560px; }
.mode { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px; cursor: pointer; font-family: var(--body);
  background: var(--itch); color: var(--night); border: 4px solid var(--night); border-radius: 18px; box-shadow: 0 7px 0 var(--night); transform: rotate(-1.5deg); }
.mode.daily { background: var(--coil); transform: rotate(1.5deg); }
.mode:active { box-shadow: 0 2px 0 var(--night); translate: 0 5px; }
.mode .emoji { font-size: 44px; line-height: 1.1; }
.mode b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; }
.mode span { font-size: 14px; font-weight: 600; line-height: 1.3; }
.mode small { font-weight: 900; font-size: 15px; margin-top: 4px; }
.page { cursor: default; }
.page .day { color: var(--sheet); }
.ms-line { font-size: 13px; font-weight: 600; line-height: 1.3; }
.page.locked { background: #7d9a90; }

/* ---------- HUD ---------- */
.hud-top { align-items: center; }
.hud-left { flex-direction: row; gap: 6px; }
#score { font-size: 17px; text-shadow: none; padding: 0; color: var(--moon); }
.meters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.meter { display: flex; align-items: center; gap: 6px; background: var(--night); border: 3px solid var(--moon); border-radius: 30px; padding: 2px 12px; font-size: 18px; }
.meter .bar { width: min(170px, 28vw); height: 12px; border: 2px solid var(--moon); border-radius: 8px; overflow: hidden; background: rgba(242,255,247,.15); }
#wobbleFill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--coil), var(--itch), var(--bite)); transition: width .15s; }
#noiseFill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7c83fd, var(--sheet)); transition: width .2s; }
.chip.event { border-color: var(--sheet); background: var(--sheet); font-size: 14px; }
.roast { font-size: 16px; font-weight: 700; font-style: italic; color: var(--itch); margin-top: -6px; max-width: 30em; }
.item canvas { width: 96px; height: 80px; }
.item small { font-size: 13px; font-weight: 600; opacity: .8; text-align: center; line-height: 1.3; }
.item.locked canvas { filter: grayscale(1) brightness(.35); }
#combo { font-family: var(--comic); font-size: 24px; letter-spacing: .04em; color: var(--itch); text-shadow: var(--outline); min-width: 1px; }
#hint { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); width: max-content; max-width: 88vw; background: rgba(22,36,31,.9);
  border: 3px dashed var(--moon); border-radius: 16px; padding: 10px 18px; font-weight: 800; font-size: 17px; text-align: center; pointer-events: none; }

@media (max-width: 560px) {
  .hud-top { flex-wrap: wrap; }
  .meters { order: 3; width: 100%; }
  .meter .bar { width: 26vw; }
  #hint { font-size: 15px; }
  .mode b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot svg { animation: none; }
}
