/* Fridge Jam! - 3 AM fridge light: midnight navy, ice blue, mint, pink, butter yellow */
:root { --night: #0F1E33; --moon: #F2F8FF; --itch: #FFD447; --sheet: #FF6FA8; --coil: #5CE1B9; --bite: #FF4D5E; }

/* Screens: frosty glow instead of Bzzz Off's coil */
.screen { background:
  radial-gradient(ellipse at 50% 0%, rgba(191,230,255,.3) 0%, rgba(191,230,255,0) 55%),
  radial-gradient(circle at 50% 40%, #1f3a5f 0%, var(--night) 72%); }
.screen.dim { background: radial-gradient(circle at 50% 40%, rgba(31,58,95,.93) 0%, rgba(15,30,51,.97) 70%); }
.mascot svg { animation: shiver .9s ease-in-out infinite; }
@keyframes shiver { 0%, 100% { transform: rotate(-2deg); } 25% { transform: rotate(2deg) translateY(-3px); } 50% { transform: rotate(-1deg); } 75% { transform: rotate(1.5deg) translateY(-2px); } }
.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: grab; }

/* 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; }

/* ---------- 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: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
#swapBtn { pointer-events: auto; font-family: var(--body); font-weight: 900; font-size: 18px; color: var(--night); background: var(--coil);
  border: 3px solid var(--night); border-radius: 16px; padding: 4px 12px; box-shadow: 0 4px 0 var(--night); cursor: pointer; }
#swapBtn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--night); }
#swapBtn:disabled { opacity: .45; cursor: default; }
#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(15,30,51,.92);
  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%; }
  #hint { font-size: 15px; }
  .mode b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot svg { animation: none; }
}
