  :root{
    --bg:#0b0b0b; --paper: #fefbda; --ink:#f2f2f2; --muted:black;
    --accent: #008400; --wrong:#c14141; --ring:rgba(255,255,255,0.08);
    --ok:#0e1716; --okborder:#204d49; --oktext:#bff1ee;
  }
/* ===== Header (match ELTGallery style) ===== */

    .header {
        background: transparent;
        display: flex;
        margin-top: 1px; ;
        justify-content: space-between;
        align-items: center;
        padding: 8px;
    }
    
    .header .title {
        font-size: clamp(1.5rem, 3vw, 2.5rem); 
        font-weight: bold;
        text-align: center;
        margin-top: 4px;
        color: black;
    }
    
    .subtitle {
        font-size: clamp(0.9rem, 2vw, 1.4rem); 
        text-align: center;
        margin-top: 2px;
        color: black;
    }

    .header.img { 
        width: clamp(2.5rem, 3vw, 2.5rem);
        height: auto;}

/* Highlight question when an answer is dragged over it */
#qGrid button.drag-over {
  outline: 4px solid #ff9800;      
  outline-offset: 3px;
  background-color: rgba(255, 152, 0, 0.15);
  box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.25);
}

/* Optional: clearer focus for tap / keyboard */
#qGrid button:focus-visible {
  outline: 4px solid #2196f3;       /* strong blue */
  outline-offset: 3px;
}


  .abtn.dragging{ opacity:0.6; }
  /* Better touch behavior for mobile */
  .abtn{ touch-action:none; }
  .drag-ghost{
    position:fixed; left:0; top:0; z-index:9999;
    pointer-events:none;
    transform:translate(-9999px,-9999px);
    opacity:0.95;
  }
  /* Two-column layout: questions left, answers right */
  .ddWrap{display:grid; grid-template-columns: 1.25fr 0.75fr; gap:10px; align-items:start; }
  .ddCol{ background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.10); border-radius:14px; padding:8px; }
  .ddCol h3{ margin:0 0 10px 0; font:700 16px/1.2 system-ui; letter-spacing:.35px; color: black;}
  .gridQ{ display:grid; gap:8px; }
  .gridA{ display:grid; gap:8px; }
  @media (max-width: 860px){
    .ddWrap{ grid-template-columns: 1fr; }
  }
  /* Final result box */
  .final-result{
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.12);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    overflow: hidden;
    display:none;
  }
  .result-head{
    display:flex;
    align-items:center;
    gap:12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(2px);
  }
  .result-logo{ height:34px; width:auto; display:block; }
  .result-title{ line-height: 1.1; 
      color: black; font-size: clamp(1rem, 2vw, 1.9rem);
  }
  .result-brand{ font-weight:700; font-size: 14px; }
  .result-sub{ font-size: 12px; opacity: .85; }
  .result-badge{
    margin-left:auto;
    font-size:22px;
    line-height:1;
    color: black;
    padding:6px 10px;
    border-radius:999px;
    background: rgba(255,255,255,.6);
    border: 1px solid rgba(0,0,0,.10);
  }
  .result-body{
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: black;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(0,0,0,.08);
  }
  .result-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    font-size: 14px;
  }
  .result-actions{
    margin-top: 10px;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    justify-content:flex-end;
  }
.attemptBadge {
  font-size: 0.7em;
  color: #a00;
  margin-left: 6px;
}
.qbtn {
  opacity: 1;
  font-size: clamp(0.95rem 2vw,  1.6rem);
  transition: opacity 0.5s ease; /* Durasi 0.5 detik agar halus */
}
.qbtn.selected, .abtn.selected{outline:3px solid var(--accent); background: #00e100; color: black; border-color:var(--accent)}
.qbtn.attempt-1 { background-color: #fff3cd; color: black; }
.qbtn.attempt-2 { background-color: #ffe8a1; color: black;}
.qbtn.attempt-3,
.qbtn.failed    { background-color: #dd0000; }
.isHidden {
  display: none !important;
}
.instruction{
    float:left; 
    margin-bottom:10px; 
    font-size: 14px; 
    margin-top:  10px;
}
