/* EduFabTech — game-sequence.css (Number sequences). Önek gm-sequence-. Vurgu renkleri: mor #845eff, camgöbeği #19e3ff. */
.gm-sequence-box {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 14px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #141a24 0%, #0e1218 100%);
  border: 1px solid var(--border, #1f2733);
  border-radius: var(--radius, 14px);
  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, #edf0f5);
  user-select: none;
  -webkit-user-select: none;
}

/* HUD */
.gm-sequence-hud {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #0a0c11;
  border: 1px solid #1a212c;
  border-radius: 999px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .03);
  font-size: .86rem;
}
.gm-sequence-status { color: var(--text); font-weight: 700; white-space: nowrap; }
.gm-sequence-prog { flex: 1 1 auto; display: flex; gap: 3px; min-width: 60px; }
.gm-sequence-seg {
  flex: 1 1 0;
  height: 6px;
  border-radius: 3px;
  background: #1f2733;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5);
  transition: background .2s ease, box-shadow .2s ease;
}
.gm-sequence-seg[data-state="now"] { background: #845eff; box-shadow: 0 0 8px rgba(132, 94, 255, .8); }
.gm-sequence-seg[data-state="ok"] { background: var(--brand, #43d49b); box-shadow: 0 0 6px rgba(67, 212, 155, .6); }
.gm-sequence-seg[data-state="bad"] { background: var(--err, #ef6a62); box-shadow: 0 0 6px rgba(239, 106, 98, .6); }
.gm-sequence-hud-right { display: flex; gap: 10px; align-items: baseline; white-space: nowrap; }
.gm-sequence-clock { font-family: var(--mono); font-variant-numeric: tabular-nums; color: #19e3ff; }
.gm-sequence-miss { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--muted, #6f7c8d); }

/* Sahne: terim rayı */
.gm-sequence-stage {
  margin: 14px 0 12px;
  padding: 16px 10px 10px;
  background: radial-gradient(120% 90% at 50% 0%, #161d2a 0%, #0c0f15 70%);
  border: 1px solid #1a212c;
  border-radius: 14px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .6), inset 0 -1px 0 rgba(255, 255, 255, .03);
}
.gm-sequence-rail {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.gm-sequence-tile {
  flex: 1 1 0;
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #1c2434 0%, #111620 100%);
  border: 1px solid #28334a;
  border-radius: 12px;
  box-shadow: 0 4px 0 #070a0e, 0 7px 14px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .07);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(.95rem, 4.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #d7f6ff;
  text-shadow: 0 0 12px rgba(25, 227, 255, .35);
  overflow: hidden;
  white-space: nowrap;
}
.gm-sequence-slot {
  border: 1px dashed rgba(132, 94, 255, .85);
  background: radial-gradient(80% 80% at 50% 30%, #241c45 0%, #140f26 100%);
  box-shadow: 0 4px 0 #0b0818, 0 0 0 1px rgba(132, 94, 255, .25), 0 0 18px rgba(132, 94, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
  color: #d9ccff;
  text-shadow: 0 0 12px rgba(132, 94, 255, .6);
}
.gm-sequence-slot.gm-sequence-empty .gm-sequence-val { color: #8f7cc9; opacity: .8; }
.gm-sequence-slot.gm-sequence-right {
  border: 1px solid var(--brand, #43d49b);
  background: linear-gradient(180deg, #1b4a3a 0%, #0f2a22 100%);
  box-shadow: 0 4px 0 #061b13, 0 0 0 1px rgba(67, 212, 155, .35), 0 0 26px rgba(67, 212, 155, .7), inset 0 1px 0 rgba(255, 255, 255, .1);
  color: #e3fff2;
  text-shadow: 0 0 14px rgba(67, 212, 155, .8);
  animation: gm-sequence-pop .28s cubic-bezier(.2, 1.4, .4, 1) both;
}
.gm-sequence-slot.gm-sequence-wrong {
  border: 1px solid var(--err, #ef6a62);
  background: linear-gradient(180deg, #4a1f1f 0%, #2a1010 100%);
  box-shadow: 0 4px 0 #1b0707, 0 0 0 1px rgba(239, 106, 98, .35), 0 0 20px rgba(239, 106, 98, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  color: #ffd9d6;
  text-shadow: 0 0 12px rgba(239, 106, 98, .7);
}
.gm-sequence-in { animation: gm-sequence-slidein .175s ease-out both; }
.gm-sequence-shake { animation: gm-sequence-shake .26s ease-in-out both; }

.gm-sequence-fb {
  min-height: 2.4em;
  margin: 10px 0 0;
  font-size: .86rem;
  line-height: 1.3;
  text-align: center;
  color: var(--muted, #6f7c8d);
}
.gm-sequence-fb-ok { color: var(--brand, #43d49b); }
.gm-sequence-fb-bad { color: var(--err, #ef6a62); }

/* Tuş takımı */
.gm-sequence-pad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.gm-sequence-key {
  min-height: 52px;
  padding: 0;
  background: linear-gradient(180deg, #1c2332 0%, #121823 100%);
  color: var(--text, #edf0f5);
  border: 1px solid #273243;
  border-radius: 12px;
  box-shadow: 0 4px 0 #0b0e14, 0 6px 12px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .08s ease, box-shadow .08s ease, filter .08s ease;
}
.gm-sequence-key:hover { filter: brightness(1.12); }
.gm-sequence-key:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0b0e14, 0 2px 4px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.gm-sequence-key:focus-visible { outline: 2px solid var(--brand, #43d49b); outline-offset: 2px; }
.gm-sequence-key-back { color: var(--muted, #6f7c8d); font-size: 1.2rem; }
.gm-sequence-key-neg {
  color: #d9ccff;
  background: linear-gradient(180deg, #2b2348 0%, #1a1530 100%);
  border-color: #3d3166;
  box-shadow: 0 4px 0 #0e0b1c, 0 6px 12px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.gm-sequence-key-ok {
  grid-row: span 2;
  background: linear-gradient(180deg, #4fe3aa 0%, #2aa97a 100%);
  color: #06110c;
  border-color: #2f8f69;
  box-shadow: 0 4px 0 #15573f, 0 6px 14px rgba(67, 212, 155, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  font-size: 1.15rem;
  letter-spacing: .04em;
}
.gm-sequence-key-ok:active {
  box-shadow: 0 1px 0 #15573f, 0 2px 4px rgba(67, 212, 155, .25), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.gm-sequence-key-zero { grid-column: span 3; }

.gm-sequence-hint {
  margin: 12px 0 0;
  font-size: .8rem;
  color: var(--muted, #6f7c8d);
  text-align: center;
}

@keyframes gm-sequence-slidein {
  from { opacity: 0; transform: translateX(-14px) scale(.92); }
  to { opacity: 1; transform: none; }
}
@keyframes gm-sequence-pop {
  0% { transform: scale(.9); }
  55% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes gm-sequence-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Hareketi azalt */
.gm-sequence-still .gm-sequence-in,
.gm-sequence-still .gm-sequence-shake,
.gm-sequence-still .gm-sequence-slot.gm-sequence-right { animation: none; }
.gm-sequence-still .gm-sequence-key,
.gm-sequence-still .gm-sequence-seg { transition: none; }
.gm-sequence-still .gm-sequence-key:active { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .gm-sequence-in, .gm-sequence-shake, .gm-sequence-slot.gm-sequence-right { animation: none; }
  .gm-sequence-key, .gm-sequence-seg { transition: none; }
  .gm-sequence-key:active { transform: none; }
}

@media (max-width: 400px) {
  .gm-sequence-box { padding: 10px; }
  .gm-sequence-hud { padding: 7px 9px; font-size: .78rem; gap: 8px; }
  .gm-sequence-stage { padding: 12px 8px 8px; }
  .gm-sequence-rail { gap: 4px; }
  .gm-sequence-tile { min-height: 56px; border-radius: 10px; }
  .gm-sequence-pad { gap: 6px; }
  .gm-sequence-key { min-height: 50px; font-size: 1.25rem; }
  .gm-sequence-hint { display: none; }
}
