 :root {
      --bg: #0f172a;
      --card: #0b1220;
      --accent: #06b6d4;
      --muted: #94a3b8;
      --success: #10b981;
      --danger: #ef4444;
    }
    *{box-sizing:border-box}
   
    .container{
      font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
      width:100%;
      max-width:900px;
      border-radius: 2%;
      background: linear-gradient(180deg, #071026 0%, #082033 100%);
      color: #e6eef6;
      box-shadow: 0 8px 30px rgba(2,6,23,0.7);
      padding:22px;
    }

    header{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      margin-bottom:12px;
    }
    header h1{font-size:18px;margin:0}
    .controls{display:flex;gap:8px;align-items:center}
    button{
      background:transparent;
      border:1px solid rgba(255,255,255,0.06);
      color:var(--muted);
      padding:8px 12px;
      border-radius:8px;
      cursor:pointer;
      font-size:14px;
    }
    button.primary{
      background:var(--accent);
      border:none;
      color:#042028;
      font-weight:600;
    }

    .stats{
      display:flex;
      gap:12px;
      align-items:center;
      color:var(--muted);
      font-size:14px;
    }

    .card{
      background:rgba(255,255,255,0.02);
      padding:18px;
      border-radius:10px;
      margin-bottom:12px;
      min-height:120px;
    }

    #textDisplay{
      font-size:18px;
      line-height:1.6;
      word-wrap:break-word;
      color:#cfe8ef;
    }
    #textDisplay .char{
      padding:1px 2px;
      border-radius:3px;
    }
    #textDisplay .correct{ color: #c7f0e7; }
    #textDisplay .incorrect{ background: rgba(239,68,68,0.12); color: #ffb3b3; }
    #textDisplay .current{ outline: 1px dashed rgba(6,182,212,0.35); background: rgba(6,182,212,0.05); }

    .typing-area{
      display:flex;
      gap:12px;
      flex-direction:column;
    }
    textarea{
      resize:none;
      min-height:110px;
      width:100%;
      padding:12px;
      border-radius:8px;
      background:transparent;
      color: #e6eef6;
      border:1px dashed rgba(255,255,255,0.04);
      font-size:16px;
      outline:none;
    }

    .footer-row{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      margin-top:12px;
    }

    .meta{
      display:flex;
      gap:12px;
      align-items:center;
      color:var(--muted);
      font-size:14px;
    }

    .small{
      font-size:13px;
      color:var(--muted);
    }

    @media (max-width:640px){
      header{flex-direction:column;align-items:flex-start;gap:8px}
      .stats{flex-wrap:wrap}
    }
 .custom-link {
    margin-left: 10%;
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(38, 50, 56, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    font-family: Arial, sans-serif;
  }

  .custom-link:hover {
    background: linear-gradient(45deg, #2575fc, #6a11cb);
    box-shadow: 0 6px 20px rgba(38, 50, 56, 0.5);
    text-decoration: none;
  }