:root{
  --bg:#000000;
  --white:#ffffff;
  --muted:#b8b8b8;
  --orange:#F65314;
  --purple:#8F03B7;
  --yellow:#FFBB00;
  --green:#7CBB00;
  --red:#BF0000;
  --card:#0b0b0c;
  --card2:#101112;
  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.18);
  --shadow:0 18px 60px rgba(0,0,0,.55);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--white);
}

.container1{
  max-width:480px;
  margin:0 auto;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:15px;
}

.card{
  background: linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.muted{ color: var(--muted); }

.state-card{
  display:none;
  background: rgba(255,187,0,.12);
  border:1px solid rgba(255,187,0,.35);
  color:#ffdd88;
  font-size:13px;
}

.info-card{
  background:#FF9900 !important;
  border:1px solid rgba(0,0,0,.10) !important;
  color:#111;
  padding:18px;
}

.info-card .panelTop{ margin-bottom:10px; }
.info-card .panel__title{
  margin:0;
  font-size:14px;
  font-weight:600;
  color:#111;
  letter-spacing:.2px;
}

.info-card .infobox{
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.90);
  border-radius:14px;
  padding:10px 12px;
  font-size:12px;
  line-height:1.2;
  color:#111;
}

.info-card .bullets{
  margin:0;
  padding-left:18px;
}

.info-card .bullets li{ margin:6px 0; }

.mode-grid{
  display:flex;
  flex-direction:column;
  gap:0;
}

.mode-card h3{
  margin:0 0 8px;
  font-size:16px;
  color: var(--white);
}

.mode-card p{
  margin:0 0 12px;
  color: rgba(255,255,255,0.9);
  font-size:13px;
  line-height:1.4;
}

.mode-card{
  background: var(--orange);
  border: none;
  min-height: 220px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  width:100%;
  margin-bottom:15px;
}

.mode-card--compact{
  min-height: 110px;
}

.mode-card:last-child{
  margin-bottom:0;
}

.mode-sub{
  margin: 0 0 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}

.field-label{
  display:block;
  font-size:12px;
  margin-bottom:6px;
  color: rgba(255,255,255,0.9);
}

.mode-card select{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.18);
  color: #111;
  margin-bottom:10px;
}

.mode-card option{ color:#111; }

.mode-card .btn{
  width:100%;
}

.btn{
  border-radius:999px;
  padding:10px 14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--white);
  cursor:pointer;
  font-weight:650;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}

.btn:hover{
  background: rgba(255,255,255,.07);
  border-color: var(--stroke2);
}

.btn:active{ transform: translateY(1px); }
.btn[disabled]{ opacity:.45; cursor:not-allowed; }

.btn-primary{
  border-color: rgba(255,187,0,.55);
  background: #FFBB00;
  color:#111;
}

.btn-primary:hover{
  border-color: rgba(255,187,0,.8);
  background: #ffcc33;
}

.btn-ghost{
  background: rgba(255,255,255,.12);
  color: white;
}

.question-card{
  background: var(--orange) !important;
  color: white !important;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  display:none;
}

.card-head h2{
  margin:0 0 8px;
  font-size:20px;
}

.question-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

#soru-sayaci{
  margin:0;
  font-size:20px;
  font-weight:800;
  color: #ffffff;
  text-align:center;
  width:100%;
}

.question-meta.center{
  justify-content:center;
}

.timer{
  font-size:13px;
  font-weight:700;
  color: #fff4b0;
}

#soru-container{
  margin: 10px 0 14px;
}

#soru-gorsel{
  display:none;
  width:100%;
  max-height:260px;
  object-fit:contain;
  border-radius:12px;
  margin:0 0 12px;
  border:1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
}

#soru-almanca{
  font-weight:700;
  font-size:16px;
  margin:0 0 6px;
}

#soru-turkce{
  margin:0;
  font-size:13px;
  color: rgba(255,255,255,0.85);
}

.answers{
  display:flex;
  flex-direction:column;
  gap:10px;
}

#secenekler-container button{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,0.25);
  border-radius:12px;
  cursor:pointer;
  background: rgba(255,255,255,0.1);
  color:white;
  text-align:left;
  transition: transform .05s ease, border-color .15s ease, background .15s ease;
}

#secenekler-container button:hover{
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.18);
}

#secenekler-container button.correct{
  background: #00b300;
  border-color: #00b300;
}

#secenekler-container button.incorrect{
  background: #ff0000;
  border-color: #ff0000;
}

.card-foot{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

#sonraki-btn{
  width:100%;
}

#moda-don-btn-alt{
  width:100%;
}

.result-card{
  background: linear-gradient(135deg, #8F03B7, #6B02A3) !important;
  color: white !important;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  display:none;
}

.result-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
  justify-content:center;
}

.result-actions .btn{
  width:100%;
  max-width:320px;
}

@media (max-width: 500px){
  .container1{ padding:14px; gap:15px; }
.question-card{ padding:18px; }
}

/* Spacing overrides: ensure 15px gap between intro cards */
#intro-screen > * + *{ margin-top:15px; }
.mode-grid .mode-card{ margin-bottom:0; }
.mode-grid > .mode-card + .mode-card{ margin-top:15px; }
