* { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    /* flat lavender with a whisper of dot grain — texture without depth */
    background-color: #d6d2e8;
    background-image: radial-gradient(rgba(59, 55, 87, 0.055) 1px, transparent 1.4px);
    background-size: 22px 22px;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    overflow: hidden;
  }
  #board {
    display: block;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
  }
  #hud {
    position: fixed;
    top: 14px;
    right: 20px;
    font-size: 30px;
    color: #5b54c0;
    letter-spacing: 1px;
    user-select: none;
  }
  #timerHud {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    color: #5b54c0;
    letter-spacing: 1px;
    user-select: none;
  }
  #muteBtn {
    position: fixed;
    top: 14px;
    left: 18px;
    font-size: 22px;
    opacity: 0.75;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  #menuBtn {
    position: fixed;
    top: 7px;
    left: 52px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 19px;
    color: #3b3757;
    background: transparent;
    border: none;
    padding: 0;
    opacity: 0.75;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  #menuBtn:hover, #menuBtn:focus-visible { opacity: 1; }
  #hud.chromeHidden, #muteBtn.chromeHidden, #menuBtn.chromeHidden, #timerHud.chromeHidden { visibility: hidden; }

  button:focus-visible { outline: 3px solid #5b54c0; outline-offset: 2px; }

  /* ---- menus: intro / level select (DOM overlays, game keeps running behind) ---- */
  .overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(214, 210, 232, 0.88);
    text-align: center;
    padding: 28px 20px;
  }
  .overlay.open { display: flex; }

  .wordmark {
    font-family: inherit;
    font-size: clamp(42px, 12vw, 88px);
    font-weight: bold;
    letter-spacing: 0.07em;
    color: #3b3757;
    line-height: 1;
  }
  .wordbar {
    width: 96px;
    height: 6px;
    background: #e8a53c;
    margin: 16px 0 20px;
  }
  .tagline {
    font-size: clamp(13px, 2.6vw, 17px);
    color: #5b54c0;
    letter-spacing: 0.02em;
    margin-bottom: 34px;
  }
  .bigBtn {
    font-family: inherit;
    font-weight: bold;
    font-size: 22px;
    letter-spacing: 0.08em;
    color: #fdfdff;
    background: #3b3757;
    border: none;
    padding: 16px 46px;
    min-height: 44px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .bigBtn:hover, .bigBtn:focus-visible { background: #4a4570; }
  .bigBtn:active { background: #2c2942; }
  .introFoot {
    margin-top: 26px;
    font-size: 13px;
    color: #3b3757;
    opacity: 0.6;
    letter-spacing: 0.03em;
  }

  .lsHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(560px, 92vw);
    margin-bottom: 20px;
  }
  .lsTitle {
    font-size: clamp(22px, 6vw, 32px);
    font-weight: bold;
    color: #3b3757;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
  }
  .smallBtn {
    font-family: inherit;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: #3b3757;
    background: transparent;
    border: 2px solid #3b3757;
    padding: 10px 14px;
    min-height: 44px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .smallBtn:hover, .smallBtn:focus-visible { background: #3b3757; color: #fdfdff; }
  .smallBtn:active { background: #2c2942; color: #fdfdff; }
  .lsBest {
    font-size: 14px;
    color: #5b54c0;
    letter-spacing: 0.04em;
  }

  .levelGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
    width: min(560px, 92vw);
    max-height: 60vh;
    overflow-y: auto;
    padding: 4px 2px;
  }
  .chip {
    font-family: inherit;
    font-weight: bold;
    font-size: 17px;
    min-height: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b3757;
    color: #fdfdff;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .chip:hover, .chip:focus-visible { background: #5b54c0; }
  .chip:active { background: #2c2942; }
  .chip:disabled {
    background: transparent;
    color: #3b3757;
    opacity: 0.3;
    border: 2px solid #3b3757;
    cursor: default;
  }

/* --- anul.space site chrome (added by build-site.mjs) --- */
.hub-back {
  position: fixed;
  left: 14px;
  bottom: 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: 13px;
  letter-spacing: 0.04em;
  color: #3b3757;
  background: rgba(253, 253, 255, 0.85);
  border: 2px solid #3b3757;
  padding: 9px 13px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.hub-back:hover, .hub-back:focus-visible { background: #3b3757; color: #fdfdff; }
