


 
  /* ── Selection screen ── */
  #selectScreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    max-width: 560px;
    width: 100%;
  }

  #selectScreen h1 {
    font-size: 1.5rem;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.4;
  }

  #selectScreen h1 small {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888;
    margin-bottom: 4px;
    font-family: Georgia, serif;
  }

  #selectScreen p {
    font-size: 0.88rem;
    color: #555;
    text-align: center;
    line-height: 1.6;
  }

  .choice-grid {
    display: flex;
    gap: 16px;
    width: 100%;
    justify-content: center;
  }

  .choice-card {
    flex: 1;
    max-width: 160px;
    background: #f0f0f0;
    border: 2px solid #bbb;
    border-radius: 6px;
    padding: 20px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: border-color 0.15s, background 0.15s;
  }

  .choice-card:hover {
    background: #ddeef8;
    border-color: #6aace0;
  }

  .choice-card svg {
    display: block;
  }

  .choice-card .label {
    font-size: 0.78rem;
    color: #333;
    text-align: center;
    line-height: 1.4;
  }

  .choice-card .label b {
    display: block;
    font-size: 0.92rem;
    color: #111;
    margin-bottom: 2px;
  }

  /* ── Game screen ── */
  #gameScreen {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  #backBtn {
    font-size: 0.78rem;
    color: #555;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    letter-spacing: 0.04em;
    align-self: flex-start;
  }
  #backBtn:hover { color: #111; text-decoration: underline; }

  #wrapper {
    display: flex;
    align-items: flex-start;
  }

  aside {
    background: #f0f0f0;
    border: 2px solid #2a2a2a;
    padding: 20px 16px;
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 393px; 
  }

  aside h2 {
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.4;
    font-family: Georgia, serif;
  }

  aside h2 small {
    display: block;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: black; \\#888;
    margin-bottom: 3px;
  }

  .btn {
    width: 100%;
    padding: 10px 0;
    margin-bottom: 8px;
    border: 1px solid #aaa;
    background: #c8dff0;
    color: #1a1a1a;
    cursor: pointer;
    border-radius: 3px;
/*    font-family: Georgia, serif;
   font-size: 0.88rem; */
  }
  .btn:hover  { background: #b0cfe8; border-color: #888; }
  .btn:active { background: #b8b8b8; }

  #btnClear {
    margin-top: auto;
    margin-bottom: 0;
    border-color: #c44;
    color: #c00;
    background: #f5e0e0;
  }
  #btnClear:hover { background: #eecaca; }

  .btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
  }

  .counter {
    margin-top: 10px;
    font-size: 0.72rem;
    color: black; \\ #555;
/*    font-family: Georgia, serif; */
  }
  .counter b { color: #111; }

  canvas {
    display: block;
    background: #ffffff;
    border: 2px solid #2a2a2a;
  }