* { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    background: #efe6d6;
    overflow: hidden;
    font-family: "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #cv { display: block; touch-action: none; -webkit-tap-highlight-color: transparent; }
  #themeBtn {
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 30;
    font: inherit;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    border: 2px solid currentColor;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  #themeBtn svg { width: 19px; height: 19px; fill: currentColor; display: block; }
  .overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
  }
  .overlay.open { display: flex; }
  .plaque {
    border-radius: 22px;
    padding: 34px 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    max-width: 340px;
  }
  /* the plaque lands with a little overshoot instead of just appearing */
  .overlay.open .plaque { animation: plaqueLand 0.42s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
  @keyframes plaqueLand {
    0%   { opacity: 0; transform: scale(0.82) translateY(14px); }
    60%  { opacity: 1; transform: scale(1.035) translateY(-3px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .overlay.open .plaque { animation: none; }
  }
  .plaque h1 { font-size: 44px; letter-spacing: -0.02em; margin: 0; }
  /* The UI carries no sentences — every label is a mark, so the game needs no
     translation and reads the same in any language. The one word that stays is
     the game's own name. Buttons keep aria-labels: those are read by assistive
     tech, never painted, so nothing on screen is language-bound. */
  .plaque .bigTitle { line-height: 0; margin: 0; }
  .plaque .score { font-size: 42px; font-weight: 800; line-height: 1; }
  .plaque .stat { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
  .ico { width: 24px; height: 24px; fill: currentColor; display: block; }
  .ico.sm { width: 17px; height: 17px; opacity: 0.8; }
  .btn {
    font: inherit;
    padding: 13px 36px;
    border: none;
    border-radius: 999px;
    margin-top: 6px;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }
  .btn:active { transform: translateY(2px); }
  .plaque { width: min(340px, 100%); padding: 30px 26px; gap: 18px;
    max-height: calc(100svh - 28px); overflow-y: auto; box-shadow: 0 12px 36px #0002; }
  .plaque h1 { font-size: 42px; letter-spacing: .06em; }
  .menuArt { width: 146px; height: 78px; margin: 2px 0; }
  .menuArt .a { fill: var(--tile-a, #e0453c); }
  .menuArt .b { fill: var(--tile-b, #2b7fd0); }
  .menuArt .c { fill: var(--tile-c, #3da84e); }
  .menuArt path { stroke: #ffffff80; stroke-width: 2; stroke-linejoin: round; }
  .btn { min-width: 112px; min-height: 64px; border-radius: 17px; margin: 0;
    padding: 14px 24px; position: relative; box-shadow: 0 5px 0 #0003; }
  .btn .ico { width: 32px; height: 32px; }
  .btn.secondary { min-width: 72px; padding: 14px; border: 2px solid currentColor; box-shadow: 0 4px 0 #0001; }
  .btn:disabled { opacity: .55; cursor: wait; }
  .btn[hidden] { display: none; }
  button:focus-visible { outline: 3px solid #d7a332; outline-offset: 5px; }
  .resultActions { display: flex; gap: 14px; align-items: center; padding-top: 8px; }
  .plaque .score { font-size: clamp(32px, 9vw, 48px); font-variant-numeric: tabular-nums; }
  .plaque .stat { opacity: .75; background: #88888812; padding: 8px 13px; border-radius: 12px; }
  .videoBadge { position: absolute; right: -8px; top: -9px; padding: 5px 7px;
    background: #ffda81; color: #3b321f; border: 2px solid #fff6df; border-radius: 9px;
    display: flex; align-items: center; }
  .videoBadge .ico { width: 22px; height: 17px; }
  .busyIcon { animation: spin 1.2s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .busyIcon { animation: none; } }
  @media (max-height: 500px) {
    .overlay { padding: 12px; }.plaque { gap: 9px; padding: 18px 24px; }
    .plaque h1 { font-size: 34px; }.menuArt { height: 54px; }
    .plaque .score { font-size: 34px; }.bigTitle svg { width: 38px; height: 38px; }
    .btn { min-height: 54px; padding: 10px 20px; }.btn.secondary { padding: 10px; }
  }

/* --- Bioprepsolutions Games site chrome (added by build-site.mjs) --- */
.hub-back {
  position: fixed;
  left: 14px;
  top: 12px;
  z-index: 60; /* above the menu overlays: the way home is always visible */
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #5c5140;
  background: rgba(253, 247, 234, 0.9);
  border: 2px solid #5c5140;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.hub-back:hover, .hub-back:focus-visible { background: #5c5140; color: #fdf7ea; }

/* Shared site utility; never position it over the playfield. */
[data-feedback-mount]{display:inline-flex;flex:none;pointer-events:auto}

  .site-feedback-footer{position:fixed;inset:auto 0 0;height:44px;display:flex;align-items:center;justify-content:center;background:#f3eee3;z-index:65;border-top:1px solid #8b88784d;padding-bottom:env(safe-area-inset-bottom,0px);box-sizing:content-box}
  body{height:calc(100% - 44px - env(safe-area-inset-bottom,0px));min-height:0}
