/* EduFabTech — game-target.css (Target number). Önek gm-target-. Vurgu renkleri: altın #ffd24a (büyük sayılar), cyan #19e3ff (üretilen taşlar), mor #845eff (hedef parıltısı). */
.gm-target-box {
  --gt-gold: #ffd24a;
  --gt-cyan: #19e3ff;
  --gt-purple: #845eff;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 14px;
  box-sizing: border-box;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(132, 94, 255, .18), transparent 60%),
    linear-gradient(180deg, #131822 0%, #0e1219 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
  font-family: var(--sans);
  color: var(--text);
  user-select: none;
  -webkit-user-select: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* HUD */
.gm-target-hud {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 8px rgba(0, 0, 0, .3);
  font-size: .9rem;
  color: var(--muted);
}
.gm-target-progress { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gm-target-clock {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  color: var(--brand);
  text-align: center;
  text-shadow: 0 0 10px rgba(67, 212, 155, .35);
}
.gm-target-skips { text-align: right; white-space: nowrap; }
.gm-target-skips-some { color: var(--warn); font-weight: 600; }

/* Hedef */
.gm-target-goal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 12px 0 10px;
  padding: 10px 12px 12px;
  border-radius: var(--radius);
  background:
    radial-gradient(60% 90% at 50% 100%, rgba(132, 94, 255, .28), transparent 70%),
    linear-gradient(180deg, #10141c, #0a0c11);
  border: 1px solid #2a2f4a;
  box-shadow: inset 0 0 30px rgba(132, 94, 255, .12), 0 6px 18px rgba(0, 0, 0, .35);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.gm-target-goal-label {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.gm-target-goal-num {
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  background: linear-gradient(180deg, #ffffff 0%, #c9b8ff 55%, var(--gt-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(132, 94, 255, .45));
}

/* Çalışma alanı */
.gm-target-work {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #0c0f15, #10141c);
  border: 1px solid var(--border);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .5);
  min-height: 80px;
}
.gm-target-expr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.gm-target-slot {
  min-width: 2.4em;
  padding: 6px 8px;
  text-align: center;
  border-radius: 8px;
  border: 1px dashed #2c3646;
  color: var(--muted);
  background: rgba(255, 255, 255, .02);
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease, background .15s ease;
}
.gm-target-slot-on {
  color: var(--text);
  border-style: solid;
  border-color: var(--brand);
  background: rgba(67, 212, 155, .1);
  box-shadow: 0 0 0 1px rgba(67, 212, 155, .25), 0 0 12px rgba(67, 212, 155, .2);
}
.gm-target-slot-op { min-width: 1.8em; }
.gm-target-slot-r { border-color: #2a3a4a; }
.gm-target-eq { color: var(--muted); font-weight: 400; }
.gm-target-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  min-height: 1.2em;
}
.gm-target-step {
  font-family: var(--mono);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
}
.gm-target-step-label { border-color: transparent; background: none; color: var(--warn); font-family: var(--sans); }
.gm-target-step-sol { color: var(--text); border-color: rgba(232, 178, 92, .5); background: rgba(232, 178, 92, .1); }
.gm-target-msg {
  margin: 6px 0 0;
  min-height: 1.3em;
  font-size: .85rem;
  text-align: center;
  color: var(--brand);
}
.gm-target-msg-err { color: var(--err); }
.gm-target-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Taşlar */
.gm-target-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 10px;
}
.gm-target-tile {
  min-height: 60px;
  padding: 0 4px;
  border-radius: 12px;
  border: 1px solid #2a3340;
  background: linear-gradient(180deg, #202838 0%, #141a25 100%);
  color: var(--text);
  font: inherit;
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 0 #0a0d13, 0 6px 14px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, opacity .15s ease, background .15s ease;
}
.gm-target-tile:hover:not(:disabled) { border-color: #3a4656; }
.gm-target-tile:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #0a0d13, 0 2px 6px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06); }
.gm-target-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.gm-target-tile-large { color: var(--gt-gold); text-shadow: 0 0 8px rgba(255, 210, 74, .35); }
.gm-target-tile-made {
  color: var(--gt-cyan);
  border-color: rgba(25, 227, 255, .4);
  background: linear-gradient(180deg, #16303a 0%, #10202a 100%);
  text-shadow: 0 0 8px rgba(25, 227, 255, .4);
}
.gm-target-tile-sel {
  transform: translateY(-4px);
  border-color: var(--brand);
  background: linear-gradient(180deg, #1d4a3a 0%, #15372c 100%);
  box-shadow: 0 7px 0 #0a0d13, 0 10px 18px rgba(0, 0, 0, .45), 0 0 0 1px rgba(67, 212, 155, .45), 0 0 18px rgba(67, 212, 155, .4), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.gm-target-tile-sel.gm-target-tile-large, .gm-target-tile-sel.gm-target-tile-made { color: var(--text); text-shadow: none; }
.gm-target-tile-used {
  opacity: .28;
  transform: scale(.92);
  box-shadow: none;
  border-color: var(--border);
  cursor: default;
  text-decoration: line-through;
  text-decoration-color: var(--muted);
}
.gm-target-tile:disabled:not(.gm-target-tile-used) { cursor: default; }
.gm-target-tile-hit {
  color: #ffffff;
  border-color: var(--brand);
  background: linear-gradient(180deg, #2bd98f 0%, #1a9f69 100%);
  text-shadow: 0 0 10px rgba(255, 255, 255, .6);
  box-shadow: 0 4px 0 #0a0d13, 0 0 0 2px rgba(67, 212, 155, .5), 0 0 26px rgba(67, 212, 155, .7);
}
.gm-target-tile-bad { border-color: var(--err); box-shadow: 0 4px 0 #0a0d13, 0 0 0 2px rgba(239, 106, 98, .5), 0 0 16px rgba(239, 106, 98, .45); }

/* İşlemler */
.gm-target-ops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.gm-target-op {
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid #3a3366;
  background: linear-gradient(180deg, #2b2550 0%, #1b1838 100%);
  color: #d9ccff;
  font: inherit;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 0 #0a0d13, 0 6px 14px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, opacity .15s ease;
}
.gm-target-op:hover:not(:disabled) { border-color: #5a4fa0; }
.gm-target-op:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #0a0d13, 0 2px 6px rgba(0, 0, 0, .4); }
.gm-target-op:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.gm-target-op:disabled { opacity: .45; cursor: default; }
.gm-target-op-sel {
  color: #ffffff;
  border-color: var(--gt-purple);
  background: linear-gradient(180deg, #7a5cf0 0%, #5a3fd0 100%);
  box-shadow: 0 4px 0 #0a0d13, 0 0 0 1px rgba(132, 94, 255, .5), 0 0 18px rgba(132, 94, 255, .55);
}

/* Eylemler */
.gm-target-acts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.gm-target-act {
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #1a202b, #11161e);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 3px 0 #0a0d13, 0 4px 10px rgba(0, 0, 0, .35);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, opacity .15s ease;
}
.gm-target-act:hover:not(:disabled) { border-color: var(--muted); }
.gm-target-act:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #0a0d13; }
.gm-target-act:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.gm-target-act:disabled { opacity: .4; cursor: default; }
.gm-target-act-skip { color: var(--warn); border-color: rgba(232, 178, 92, .35); }
.gm-target-act-skip:hover:not(:disabled) { border-color: var(--warn); }

.gm-target-hint {
  margin: 12px 0 0;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}

/* Durumlar */
.gm-target-solved { border-color: var(--brand); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(67, 212, 155, .35), 0 0 32px rgba(67, 212, 155, .35); }
.gm-target-solved .gm-target-goal { border-color: var(--brand); box-shadow: inset 0 0 30px rgba(67, 212, 155, .25), 0 0 24px rgba(67, 212, 155, .4); }
.gm-target-solved .gm-target-goal-num {
  background: linear-gradient(180deg, #ffffff 0%, #b9ffe0 55%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 14px rgba(67, 212, 155, .7));
  animation: gm-target-flash .3s ease;
}
.gm-target-gaveup .gm-target-goal { border-color: rgba(232, 178, 92, .5); box-shadow: inset 0 0 30px rgba(232, 178, 92, .12); }

/* Hareket */
.gm-target-pop { animation: gm-target-pop .26s cubic-bezier(.2, 1.4, .4, 1); }
.gm-target-shake { animation: gm-target-shake .28s ease; }
@keyframes gm-target-pop {
  0% { transform: scale(.4); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes gm-target-flash {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
@keyframes gm-target-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

.gm-target-reduced, .gm-target-reduced * { transition: none !important; animation: none !important; }
.gm-target-reduced .gm-target-tile:active, .gm-target-reduced .gm-target-op:active, .gm-target-reduced .gm-target-act:active { transform: none; }
.gm-target-reduced .gm-target-tile-sel { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .gm-target-box, .gm-target-box * { transition: none !important; animation: none !important; }
  .gm-target-tile-sel, .gm-target-tile:active, .gm-target-op:active, .gm-target-act:active { transform: none; }
}

@media (max-width: 420px) {
  .gm-target-box { padding: 10px; }
  .gm-target-hud { padding: 6px 10px; font-size: .82rem; gap: 6px; }
  .gm-target-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .gm-target-tile { min-height: 56px; font-size: 1.2rem; }
  .gm-target-op { min-height: 52px; font-size: 1.45rem; }
  .gm-target-expr { font-size: 1.1rem; gap: 6px; }
  .gm-target-slot { min-width: 2.2em; padding: 5px 6px; }
  .gm-target-hint { font-size: .78rem; }
}
