/* =====================================================================
   Bootleg — Spielseiten-Chrome (Noir-Deco)
   ---------------------------------------------------------------------
   Vollbild-Canvas auf Nacht-Tinte, dazu der Rueck-Link und der
   Steuerungs-Hinweis im selben Art-Deco-Ton wie die Landing. Fonts
   selbst-gehostet aus ../shared/fonts (kein CDN).
   ===================================================================== */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../shared/fonts/cormorant-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../shared/fonts/cormorant-italic-500.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  --ink: #07080a;
  --gold: #c8a24a;
  --gold-bright: #ecc977;
  --paper: #e8e0cd;
  --line: rgba(200, 162, 74, 0.32);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Cormorant Garamond', Georgia, serif;
}

canvas#game {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

/* Rueck-Link oben links — zur Sammlung zurueck. */
.backlink {
  position: fixed;
  top: 15px; left: 18px;
  z-index: 10;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--gold);
  opacity: 0.6;
  padding: 4px 4px;
  transition: opacity 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
  -webkit-user-select: none; user-select: none;
}
.backlink:hover, .backlink:focus-visible {
  opacity: 1;
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(224, 162, 58, 0.45);
  outline: none;
}

/* Steuerungs-Hinweis: zentrierte Deco-Pille unten, blendet nach ~7s aus. */
.hint {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  z-index: 10;
  max-width: calc(100vw - 28px);
  padding: 9px 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(10, 11, 14, 0.82);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(200, 162, 74, 0.06);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  -webkit-user-select: none; user-select: none;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: hintFade 7s ease-in forwards;
}
.hint b { color: var(--gold); font-weight: 400; font-style: normal; }

@keyframes hintFade {
  0%   { opacity: 0; transform: translateX(-50%) translateY(8px); }
  6%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  76%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(8px); visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .hint { animation: hintFadeReduced 7s ease-in forwards; }
  @keyframes hintFadeReduced { 0%,76% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
}
