/* hook.tursky.dk for people (ΛDMIN 2026-10-19): a spring garden pond with a fishbowl, the relay for agents underneath.
   Its own look ("not same style as lost but anime fairytale"): soft paper pills, rounded type, sakura pink. */
:root { --ink: #4a3550; --muted: #8a7590; --paper: rgba(255, 251, 247, .84); --line: rgba(255, 255, 255, .8);
  --pink: #ec7ba1; --gold: #c08414; --red: #d9483b; --shadow: 0 6px 22px rgba(90, 50, 90, .16); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #9fd38a; color: var(--ink);
  font: 15px/1.45 "Zen Maru Gothic", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; user-select: none; }
canvas { position: fixed; inset: 0; width: 100vw; height: 100dvh; display: block; touch-action: none; cursor: crosshair; }

/* top: a red seal and the name on the left, the catch on the right */
.hud { position: fixed; left: 0; right: 0; top: max(14px, env(safe-area-inset-top)); padding: 0 16px; display: flex;
  justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; z-index: 3; }
.pill { display: flex; align-items: center; height: 40px; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.logo { gap: 9px; padding: 0 14px 0 8px; }
.seal { width: 26px; height: 26px; border-radius: 7px; background: var(--red); color: #fff4ea; font: 700 15px/26px "Zen Maru Gothic", sans-serif;
  text-align: center; rotate: -5deg; box-shadow: inset 0 0 0 1.5px rgba(255, 236, 225, .55); }
.word { font-weight: 700; font-size: 17px; letter-spacing: .01em; }
.word small { font-size: 12px; font-weight: 500; color: var(--muted); }
.logo em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pink);
  border: 1px solid rgba(236, 123, 161, .45); background: rgba(255, 211, 224, .4); border-radius: 999px; padding: 1px 8px; }
.right { display: flex; align-items: center; gap: 8px; }
.score { gap: 6px; padding: 0 15px; font-variant-numeric: tabular-nums; }
.score svg { width: 15px; height: 15px; color: var(--pink); }
.score b { font-size: 18px; font-weight: 700; }
.score i { font-style: normal; font-size: 12px; color: var(--muted); }
.score span { margin-left: 4px; padding-left: 10px; border-left: 1px solid rgba(74, 53, 80, .15); color: var(--gold); font-size: 13px; font-weight: 700; }
.score span:empty { display: none; }
.motion { pointer-events: auto; padding: 0 15px; color: var(--muted); font: 700 12.5px "Zen Maru Gothic", sans-serif; cursor: pointer; }
.motion.on { color: #fff; background: linear-gradient(#ff9fbd, var(--pink)); border-color: rgba(255, 255, 255, .6); }
.motion[hidden] { display: none; }

/* the words, on a paper card; they step aside after the first cast */
.title { position: fixed; left: 0; right: 0; top: 13vh; padding: 0 16px; text-align: center; pointer-events: none; z-index: 2;
  transition: opacity .7s, translate .7s; }
.card { display: inline-block; max-width: 640px; padding: 22px 30px 24px; border-radius: 26px; background: var(--paper);
  border: 1px solid var(--line); box-shadow: 0 14px 44px rgba(90, 50, 90, .2); backdrop-filter: blur(10px); }
.title h1 { margin: 0; font-weight: 700; font-size: clamp(22px, 4.6vw, 38px); line-height: 1.2; }
.title h1 b { color: var(--pink); font-weight: 700; }
.title p { margin: 8px 0 0; color: var(--muted); font-size: 16px; font-weight: 500; }
.title .go { display: inline-block; margin-top: 16px; padding: 8px 20px; border-radius: 999px; color: #fff; font-weight: 700;
  background: linear-gradient(#ffa6c2, var(--pink)); box-shadow: 0 6px 16px rgba(236, 123, 161, .45); }
.title .go small { display: block; font-size: 11.5px; font-weight: 500; opacity: .9; }
.title.off { opacity: 0; translate: 0 -12px; }

/* one line of news at the bottom: "a nibble…", "too early", the catch */
.toast { position: fixed; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); translate: -50% 0; padding: 0 20px; gap: 6px;
  font-weight: 700; white-space: nowrap; pointer-events: none; z-index: 3; transition: opacity .35s, translate .35s; }
.toast.off { opacity: 0; translate: -50% 10px; }
.toast small { color: var(--muted); font-weight: 500; }
.toast.gold { color: var(--gold); }
.toast.red { color: var(--red); }
.foot { position: fixed; right: 18px; bottom: max(12px, env(safe-area-inset-bottom)); color: rgba(255, 255, 255, .92); font-size: 11.5px;
  font-weight: 500; text-shadow: 0 1px 3px rgba(30, 60, 40, .6); pointer-events: none; z-index: 1; }
@media (max-width: 560px) {
  .foot { display: none; }
  .logo em { display: none; }
  .card { padding: 18px 20px 20px; }
  .score i { display: none; }
}
