/* monolito.dev while it is under construction: a full-screen crane game over the page. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&display=swap');

html, body { height: 100%; overflow: hidden; background: #fcebe2; }

.toy {
  --ink: #3a2a2a; --soft: #7d5d58; --coral: #e8796f; --coral-deep: #cf5e55; --cream: #fff7f1; --butter: #f4cd6e;
  position: fixed; inset: 0; z-index: 50;
  color: var(--ink); color-scheme: light; background: #fcebe2;
  font-family: 'Bricolage Grotesque', ui-rounded, system-ui, sans-serif;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; cursor: pointer;
}
.toy-stage { position: absolute; inset: 0; }
.toy-stage canvas { display: block; width: 100%; height: 100%; }

.toy-top {
  position: absolute; top: 16px; left: 16px; right: 72px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; pointer-events: none;
}
.toy-mark {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 23px; letter-spacing: -0.02em;
}
.toy-slab {
  width: 13px; height: 28px; background: linear-gradient(#f19b90, #e47c77);
  clip-path: polygon(50% 0, 100% 24%, 90% 100%, 10% 100%, 0 24%);
}
.toy-tape {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px; color: var(--ink);
  background: repeating-linear-gradient(-45deg, var(--butter) 0 10px, #f8dd9c 10px 20px);
  box-shadow: 0 1px 0 rgba(58, 42, 42, 0.12);
}

.toy-score {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  text-align: center; pointer-events: none; transition: opacity 0.3s;
}
.toy-score b {
  display: block; font-size: clamp(52px, 9vw, 84px); line-height: 1; font-weight: 800;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: #fff;
  text-shadow: 0 2px 0 rgba(207, 94, 85, 0.35), 0 6px 26px rgba(207, 94, 85, 0.28);
}
.toy-score span { font-size: 13px; font-weight: 600; color: var(--soft); letter-spacing: 0.04em; }
.toy.is-title .toy-score { opacity: 0; }

.toy-toast {
  position: absolute; top: 132px; left: 50%; transform: translate(-50%, 8px) scale(0.9); opacity: 0;
  font-weight: 800; font-size: 19px; color: var(--coral-deep); background: var(--cream);
  padding: 7px 15px; border-radius: 999px; box-shadow: 0 6px 20px rgba(150, 70, 60, 0.16);
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); pointer-events: none; white-space: nowrap;
}
.toy-toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

.toy-card {
  position: absolute; left: 24px; bottom: 24px; width: min(430px, calc(100% - 32px));
  padding: 22px 24px 20px; border-radius: 18px; cursor: default;
  background: rgba(255, 247, 241, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 50px rgba(150, 70, 60, 0.18);
  transition: opacity 0.35s, transform 0.35s;
}
.toy-card.away { opacity: 0; transform: translateY(16px); pointer-events: none; }
.toy-kicker {
  margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-deep);
}
.toy-card h1 { margin: 0 0 8px; font-size: clamp(28px, 4.4vw, 38px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; }
.toy-card p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.45; color: var(--soft); font-weight: 500; }
.toy-card .toy-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.toy-card .toy-best { margin: 0; font-size: 13px; }
.toy-card .toy-best:empty { display: none; }

.toy-button {
  font: inherit; font-weight: 700; font-size: 16px; color: #fff; background: var(--coral);
  border: 0; border-radius: 12px; padding: 12px 20px; cursor: pointer;
  box-shadow: 0 3px 0 var(--coral-deep), 0 8px 18px rgba(207, 94, 85, 0.3);
  transition: transform 0.12s, box-shadow 0.12s;
}
.toy-button:hover { transform: translateY(-1px); }
.toy-button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--coral-deep), 0 4px 10px rgba(207, 94, 85, 0.25); }
.toy-link { color: var(--ink); font-weight: 600; font-size: 15px; text-underline-offset: 3px; }
.toy-button:focus-visible, .toy-link:focus-visible, .toy-mute:focus-visible, .toy-mark:focus-visible {
  outline: 3px solid var(--butter); outline-offset: 3px;
}

.toy-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); margin: 0;
  font-size: 14px; font-weight: 600; color: var(--soft); white-space: nowrap; pointer-events: none;
  background: rgba(255, 247, 241, 0.75); padding: 8px 15px; border-radius: 999px;
  opacity: 0; transition: opacity 0.4s;
}
.toy.show-hint .toy-hint { opacity: 1; }

.toy-mute {
  position: absolute; right: 16px; top: 16px; width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; border-radius: 12px; background: rgba(255, 247, 241, 0.82); color: var(--ink); cursor: pointer;
  box-shadow: 0 4px 14px rgba(150, 70, 60, 0.14);
}
.toy-mute[aria-pressed="true"] { color: var(--soft); }

.toy-foot { position: absolute; right: 18px; bottom: 14px; margin: 0; font-size: 12px; color: var(--soft); pointer-events: none; }

@media (max-width: 600px) {
  .toy-top { gap: 8px; }
  .toy-tape { font-size: 10.5px; padding: 4px 8px; }
  .toy-score { top: 92px; }
  .toy-toast { top: 192px; }
  .toy-card { left: 16px; right: 16px; bottom: 16px; width: auto; padding: 18px 18px 16px; }
  .toy-card p { font-size: 15px; }
  .toy-foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toy-card, .toy-toast, .toy-hint, .toy-score { transition: none; }
}
