
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    background: #0a0010;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    font-family: 'Georgia', serif;
    touch-action: none;
  }
  #ui {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 18px;
    z-index: 10;
    pointer-events: none;
  }
  .stat {
    background: rgba(255,220,240,0.18);
    border: 1px solid rgba(255,180,210,0.35);
    border-radius: 8px;
    padding: 6px 14px;
    color: #ffe0f0;
    font-size: clamp(11px,2.5vw,15px);
    text-shadow: 0 0 8px #ff80b0;
    letter-spacing: 0.04em;
  }
  .stat span { font-weight: bold; color: #ffb8d8; }
  #gameCanvas {
    display: block;
    cursor: none;
    image-rendering: pixelated;
  }
  #overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10,0,20,0.82);
    z-index: 20;
    gap: 18px;
  }
  #overlay h1 {
    color: #ffb8d8;
    font-size: clamp(22px,5vw,42px);
    text-shadow: 0 0 20px #ff70a0, 0 0 40px #ff3070;
    letter-spacing: 0.08em;
    text-align: center;
  }
  #overlay .jp { color: #ffd0e8; font-size: clamp(13px,3vw,22px); opacity: 0.8; }
  #overlay p {
    color: #ffc0d8;
    font-size: clamp(12px,2.5vw,17px);
    text-align: center;
    max-width: 340px;
    line-height: 1.7;
    opacity: 0.9;
  }
  #startBtn {
    background: linear-gradient(135deg, #ff6090, #d040a0);
    border: none;
    border-radius: 30px;
    padding: 12px 36px;
    color: #fff;
    font-size: clamp(14px,3vw,19px);
    cursor: pointer;
    letter-spacing: 0.06em;
    box-shadow: 0 0 24px #ff508080;
    transition: transform 0.1s, box-shadow 0.1s;
  }
  #startBtn:active { transform: scale(0.96); }
  #mobileControls {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;
    display: none;
    z-index: 15;
    pointer-events: none;
  }
  .mBtn {
    position: absolute;
    bottom: 16px;
    width: 80px; height: 68px;
    background: rgba(255,140,190,0.18);
    border: 2px solid rgba(255,140,190,0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffb8d8;
    font-size: 28px;
    pointer-events: all;
    user-select: none;
    -webkit-user-select: none;
  }
  #btnLeft { left: 20px; }
  #btnRight { right: 20px; }
  @media (pointer: coarse) {
    #mobileControls { display: block; }
  }
