/* v1.5 — LOVE blocks physics playground (matter-js). 33 SVG tiles as rigid bodies. */
:root {
  --ink: #041620;
  --paper: #fff6e8;
  --yellow: #ffc500;
  --blue: #00adee;
  --green: #00a651;
  --ember: #f26522;
}
@font-face {
  font-family: "Barabara";
  src: url("assets/BARABARA-FONT.otf") format("opentype");
  font-display: swap;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--paper);
  background:
    radial-gradient(40% 32% at 12% 8%, rgba(0, 173, 238, 0.28), transparent 70%),
    radial-gradient(36% 30% at 88% 18%, rgba(0, 166, 81, 0.24), transparent 70%),
    radial-gradient(40% 36% at 78% 88%, rgba(242, 101, 34, 0.22), transparent 70%),
    radial-gradient(36% 32% at 10% 90%, rgba(255, 197, 0, 0.16), transparent 70%),
    linear-gradient(165deg, #0a2f47, #041620 65%);
  background-attachment: fixed;
  min-height: 100svh;
}
.wrap { max-width: 1240px; margin: 0 auto; padding: 1.6rem 1.2rem 3rem; }
header { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
header h1 { font-family: "Barabara", sans-serif; font-weight: 400; font-size: clamp(1.9rem, 5vw, 3rem); margin: 0; color: #fff; }
header h1 b { font-weight: 400; color: var(--yellow); }
header p { margin: 0; color: rgba(255, 246, 232, 0.75); }
.controls { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
button {
  font: inherit; font-size: 0.92rem; cursor: pointer;
  color: var(--ink); background: var(--yellow);
  border: none; border-radius: 999px; padding: 0.55rem 1.2rem;
}
button.ghost { background: transparent; color: var(--paper); border: 1.5px solid rgba(255, 246, 232, 0.5); }
button:hover { filter: brightness(1.08); }
button:active { transform: translateY(1px); }
.hint { margin-left: auto; font-size: 0.85rem; color: rgba(255, 246, 232, 0.7); }
#hover-label { min-width: 9em; text-align: right; font-size: 0.85rem; color: var(--yellow); }
.stage {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.stage canvas { display: block; width: 100%; height: auto; touch-action: none; }
.key { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1rem; font-size: 0.85rem; color: rgba(255,246,232,0.8); }
.key span { display: flex; align-items: center; gap: 0.4rem; }
.key i { width: 14px; height: 14px; border-radius: 4px; display: block; }
footer { margin-top: 2rem; font-size: 0.85rem; color: rgba(255, 246, 232, 0.6); text-align: center; }
footer b { font-family: "Barabara", sans-serif; font-weight: 400; color: #fff; }
.noscript { padding: 4rem 1rem; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  button:active { transform: none; }
}
