
  .game-wrap { max-width: 940px; margin: 0 auto; }

  .status-bar {
    display: flex;
    justify-content: center;
    gap: 1.4em;
    margin: 1.2em auto 1.6em;
    padding: 0.75em 1.4em;
    border: 2px solid #00ffff;
    border-radius: 4px;
    background: rgba(10,10,10,0.7);
    box-shadow: 0 0 10px #00ffff55, inset 0 0 14px rgba(255,102,204,0.1);
    flex-wrap: wrap;
    max-width: 720px;
  }
  .status-item {
    color: #00ffff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 0 4px #00ffff;
  }
  .status-item .val {
    color: #ff66cc;
    margin-left: 0.45em;
    text-shadow: 0 0 6px #ff66cc, 0 0 10px #ff66cc;
    font-weight: bold;
  }

  .section-label {
    font-family: 'Share Tech Mono', monospace;
    color: #ff66cc;
    text-shadow: 0 0 6px #ff66cc;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 1.2em 0 0.5em;
    font-size: 0.78em;
  }

  .card-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45em;
    margin: 0.4em auto 0.8em;
    min-height: 116px;
    padding: 0.7em 0.5em;
    border: 1px solid #ff66cc55;
    border-radius: 4px;
    background: rgba(255,102,204,0.04);
    box-shadow: inset 0 0 12px rgba(0,255,255,0.05);
  }
  .card-row.empty::before {
    content: "[ empty ]";
    color: #ff66cc66;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75em;
    letter-spacing: 0.25em;
  }

  .card {
    width: 72px;
    height: 102px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
    border: 2px solid transparent;
    box-shadow: 0 0 6px rgba(0,0,0,0.6);
    background: #fff;
    user-select: none;
    -webkit-user-drag: none;
  }
  .card.selectable:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 10px #00ffff, 0 0 18px #ff66cc88;
  }
  .card.selected {
    border-color: #00ffff;
    box-shadow: 0 0 12px #00ffff, 0 0 24px #ff66cc;
    transform: translateY(-12px);
  }

  .meld-group {
    display: flex;
    gap: 0.18em;
    padding: 0.45em 0.7em 0.45em 0.45em;
    border: 1px solid #00ffff66;
    border-radius: 4px;
    background: rgba(0,255,255,0.05);
    box-shadow: 0 0 8px #00ffff33;
    align-items: center;
  }
  .meld-group .card {
    width: 48px;
    height: 68px;
    cursor: default;
    box-shadow: none;
  }
  .meld-group .meld-score {
    color: #aaff00;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78em;
    text-shadow: 0 0 6px #aaff00;
    margin-left: 0.45em;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55em;
    margin: 1.2em auto 1.5em;
    max-width: 820px;
  }
  .controls button.button {
    margin: 0;
    width: auto;
    max-width: 200px;
    padding: 0.5em 1em;
    font-size: 0.95em;
    cursor: pointer;
  }
  .controls button.button:disabled {
    opacity: 0.32;
    cursor: not-allowed;
    transform: none !important;
    filter: grayscale(0.6);
  }

  #status-msg {
    font-family: 'Share Tech Mono', monospace;
    color: #aaff00;
    text-shadow: 0 0 6px #aaff00, 0 0 12px #aaff0055;
    margin: 1em auto;
    min-height: 1.4em;
    letter-spacing: 0.05em;
    font-size: 0.95em;
    max-width: 720px;
    text-align: center;
  }
  #status-msg.error {
    color: #ff3366;
    text-shadow: 0 0 6px #ff3366, 0 0 12px #ff336655;
  }
  #status-msg.win {
    color: #ffee00;
    text-shadow: 0 0 6px #ffee00, 0 0 14px #ff66cc88;
  }

  .rules {
    font-family: 'Share Tech Mono', monospace;
    color: #66ffff;
    font-size: 0.78em;
    max-width: 660px;
    margin: 0.5em auto 1.2em;
    line-height: 1.55;
    text-align: left;
    border: 1px solid #66ffff44;
    padding: 0.6em 1.2em;
    border-radius: 4px;
    background: rgba(0,30,40,0.3);
  }
  .rules summary {
    cursor: pointer;
    color: #ff66cc;
    text-shadow: 0 0 4px #ff66cc;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.9em;
    list-style: none;
    padding: 0.2em 0;
  }
  .rules summary::-webkit-details-marker { display: none; }
  .rules summary::before { content: "▸ "; }
  .rules[open] summary::before { content: "▾ "; }
  .rules p, .rules li { margin: 0.45em 0; color: #66ffff; text-shadow: none; font-size: 0.95em; line-height: 1.5; }
  .rules ul { margin: 0.4em 0; padding-left: 1.4em; }
  .rules b { color: #ff66cc; }

  @media (max-width: 600px) {
    .card { width: 58px; height: 84px; }
    .meld-group .card { width: 38px; height: 55px; }
    .status-bar { gap: 0.7em; padding: 0.5em 0.8em; }
    .status-item { font-size: 0.75em; }
    .controls button.button { font-size: 0.85em; padding: 0.45em 0.8em; }
  }
