/* =========================
   Base reset & typography
   ========================= */
   * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
      "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }
  
  body {
    background: #0b1020;
    color: #e5e7eb;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
  }
  
  /* =========================
     Layout
     ========================= */
  .container {
    width: 100%;
    max-width: 420px;
    padding: 28px 20px 40px;
  }
  
  .screen {
    width: 100%;
  }
  
  /* =========================
     Headings
     ========================= */
  h1 {
    font-size: 1.8rem;
    margin-bottom: 28px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.3px;
  }
  
  /* =========================
     Sections
     ========================= */
  .section {
    margin-bottom: 28px;
  }
  
  .section-label {
    display: block;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 6px;
  }
  
  /* =========================
     INPUTS — HARD OVERRIDE
     This kills white backgrounds
     ========================= */
  input {
    background: transparent !important;
    color: #e5e7eb;
    border-radius: 0;
  }
  
  /* Remove number spinners */
  input[type=number]::-webkit-inner-spin-button,
  input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
  }
  input[type=number] {
    -moz-appearance: textfield;
  }
  
  /* =========================
     Line-style inputs
     ========================= */
  .line-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(148,163,184,0.15);
    padding: 10px 4px;
    font-size: 1.1rem;
    transition:
      border-bottom-color 0.15s ease,
      border-bottom-width 0.15s ease;
  }
  
  .line-input:focus {
    outline: none;
    border-bottom-color: #60a5fa;
    border-bottom-width: 2px;
  }
  
  /* Variants */
  .line-input.big {
    font-size: 1.4rem;
    text-align: center;
  }
  
  .line-input.name {
    font-size: 1.2rem;
    margin-bottom: 14px;
  }
  
  /* =========================
     Vists — dynamic inputs
     ========================= */
  #whists-container label {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 2px;
  }
  
  #whists-container input {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(148,163,184,0.1);
    padding: 8px 4px;
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  #whists-container input:focus {
    outline: none;
    border-bottom-color: #60a5fa;
    border-bottom-width: 2px;
  }
  
  /* =========================
     Helper text
     ========================= */
  .helper {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #64748b;
  }
  
  /* =========================
     Buttons
     ========================= */
  button {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
  }
  
  button.primary {
    background: #2563eb;
    color: white;
  }
  
  button.secondary {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
  }
  
  button:active {
    transform: scale(0.98);
  }
  
  /* =========================
     Results
     ========================= */
  .result-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(148,163,184,0.12);
  }
  
  .result-line:last-child {
    border-bottom: none;
  }
  
  .plus { color: #4ade80; }
  .minus { color: #f87171; }
  
  /* =========================
     Utility
     ========================= */
  .hidden {
    display: none;
  }
  