/* Shell chrome shared by every game page (F4): the preview ribbon, the
   "Made with CVArcade" badge, the /text nav, the status/message pages, and
   /text's print rules. All positioning is plain CSS, never inline `style=`
   (the shell's CSP is `style-src 'self'`).

   Paper Ocean's #topbar sits top-right and #hud bottom-left (see
   templates/paper-ocean/style.css): the badge (top-left) and ribbon
   (top-centre) below deliberately avoid both corners. --ink/--accent come
   from templates/kit/kit.css's palette tokens when it's loaded (game/text
   pages); message pages never load kit.css, hence the literal fallbacks. */

.ribbon {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  pointer-events: none;
  background: var(--accent, #e07a5f);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.badge {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 30;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge[hidden] {
  display: none;
}
.badge:hover,
.badge:focus-visible {
  background: rgba(0, 0, 0, 0.85);
}

.text-nav {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 24px 0;
}
.text-nav a {
  color: var(--ink, #1d3b57);
  font-weight: 600;
}

.msg {
  max-width: 480px;
  margin: 15vh auto 0;
  padding: 0 24px;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #1d3b57;
}
.msg h1 {
  margin: 0 0 8px;
  font-size: 22px;
}
.msg p {
  margin: 0 0 8px;
  color: #4a6a80;
  line-height: 1.5;
}
.msg a {
  color: #1d3b57;
}

@media (max-width: 700px) {
  .ribbon {
    top: 8px;
    font-size: 11px;
    padding: 3px 12px;
  }
  .badge {
    top: 8px;
    left: 8px;
  }
}

/* /text: keep this after the rules above so print always wins for that page. */
@media print {
  .text-nav,
  .badge {
    display: none;
  }
  html,
  body {
    height: auto;
    background: #fff;
    color: #000;
  }
  .cv {
    max-width: none;
    padding: 0;
  }
  .cv .entry {
    break-inside: avoid;
  }
  .cv h2 {
    break-after: avoid;
  }
}
