/* Top Nerede? - sadece bu oyuna ait görünüş. Bardak ve top renkleri oyunun içerik renkleri. */

.zorluklar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
.zorluk {
  padding: 8px 16px;
  border: 1px solid var(--cizgi);
  border-radius: 999px;
  background: var(--yuzey);
  color: var(--yazi);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.zorluk.aktif { background: var(--ana); border-color: var(--ana); color: var(--ana-uzeri); }
.bilgi-satiri { justify-content: center; }
.bilgi.can { letter-spacing: 2px; }

.durum {
  width: fit-content; max-width: 100%;
  min-height: 1.5em;
  margin: 4px auto 12px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--yuzey);
  border: 1px solid var(--cizgi);
  color: var(--yazi);
  text-align: center;
  font-weight: 700;
}

/* Masa: yeşil çuha, ahşap kenar */
.masa {
  --n: 3;
  position: relative;
  width: min(100%, 640px);
  height: clamp(190px, 42vw, 260px);
  margin: 0 auto 16px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.12), transparent 60%),
    #2f7d4f;
  box-shadow: inset 0 0 0 10px #8a5a34, inset 0 0 0 13px #6b4423, 0 10px 24px rgba(30, 20, 10, 0.25);
  overflow: hidden;
  direction: ltr;
}
.bardak {
  --kavis: 0px;
  position: absolute;
  bottom: 22%;
  width: min(calc(80% / var(--n)), 120px);
  aspect-ratio: 100 / 110;
  transform: translateX(-50%);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 2;
  transition: left 0.5s ease-in-out;
  filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.3));
}
.bardak svg { display: block; width: 100%; height: 100%; transition: transform 0.35s cubic-bezier(.3, 1.4, .6, 1); }
.bardak.kalkik svg { transform: translateY(-48%) rotate(-6deg); }
.bardak.geciyor { animation: kavis ease-in-out; z-index: 3; }
@keyframes kavis { 50% { margin-bottom: calc(var(--kavis) * -1); transform: translateX(-50%) scale(1.04); } }
.bardak:disabled { cursor: default; }
.bardak:not(:disabled):hover svg, .bardak:not(:disabled):focus-visible svg { transform: translateY(-6px); }
.bardak:focus-visible { outline: 3px solid #ffd84a; outline-offset: 4px; border-radius: 10px; }
.bardak.dogru { filter: drop-shadow(0 0 10px #7dff9e) drop-shadow(0 6px 4px rgba(0, 0, 0, 0.3)); }
.bardak.yanlis { filter: drop-shadow(0 0 10px #ff6b6b) drop-shadow(0 6px 4px rgba(0, 0, 0, 0.3)); }

.top {
  position: absolute;
  bottom: 22%;
  width: min(calc(30% / var(--n)), 44px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6b0, #ffd23f 45%, #e09400);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.top[hidden] { display: none; }

.kontroller { display: flex; justify-content: center; margin-bottom: 14px; }
.kontroller .buton[hidden] { display: none; }
.kontroller .buton:disabled { opacity: 0.5; cursor: default; }
.aciklama { max-width: 560px; margin: 0 auto; color: var(--soluk); }
.aciklama p { margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) {
  .bardak, .bardak svg { transition: none; }
  .bardak.geciyor { animation: none; }
}
