/* Kaptan Harfi · Uzamsal — rakam dersi kalıbı (Maarif 1. sınıf) */

.birles-uzam-overlay {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: none;
  background: linear-gradient(168deg, #042f2e 0%, #0f766e 45%, #115e59 100%);
}
.birles-uzam-overlay.is-open,
.birles-uzam-overlay:not([hidden]) {
  display: block;
  touch-action: none;
  overscroll-behavior: none;
}
.birles-uzam-overlay.is-finger-drag {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
body.birles-uzam-open {
  overflow: hidden !important;
}

.birles-uzam {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(8px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  color: #ecfdf5;
  font-family: "ComfortaaOkul", "Comfortaa", "Segoe UI", sans-serif;
  touch-action: none;
}
.birles-uzam--karsi,
.birles-uzam--karsi *,
.birles-uzam--karsi *::before,
.birles-uzam--karsi *::after {
  font-family: "TemelYazi", "ComfortaaOkul", sans-serif !important;
  letter-spacing: 0.028em;
}

.birles-uzam__close {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  right: 10px;
  z-index: 40;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.4);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}

/* Gate */
.birles-uzam--gate .birles-uzam__intro {
  display: flex;
}
.birles-uzam--gate .birles-uzam__stage,
.birles-uzam--gate .birles-uzam__progress,
.birles-uzam--gate .birles-uzam__foot,
.birles-uzam--gate .birles-uzam__loader,
.birles-uzam--gate .birles-uzam__skip {
  display: none !important;
}
.birles-uzam--playing .birles-uzam__intro {
  display: none !important;
}

.birles-uzam__intro {
  margin: auto;
  max-width: 420px;
  width: 100%;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.birles-uzam__intro-art {
  flex: 0 0 auto;
  width: min(34vw, 118px);
  height: min(48vw, 168px);
  max-height: 24vh;
  display: grid;
  place-items: end center;
  overflow: visible;
  margin: 2px 0 6px;
  position: relative;
  z-index: 0;
  background: transparent;
}
.birles-uzam__intro-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  /* video alpha + drop-shadow → dikdörtgen karartı; gölge yok */
  filter: none;
  pointer-events: none;
}
.birles-uzam__intro-art .birles-uzam__talk {
  width: 100%;
  height: 100%;
  background: transparent;
}

.birles-uzam__intro.is-in .birles-uzam__intro-kicker,
.birles-uzam__intro.is-in .birles-uzam__intro-title,
.birles-uzam__intro.is-in .birles-uzam__intro-lead,
.birles-uzam__intro.is-in .birles-uzam__start {
  animation: uzamIntroIn 0.68s cubic-bezier(0.16, 1.12, 0.32, 1) both;
}
.birles-uzam__intro.is-in .birles-uzam__intro-kicker {
  animation-delay: 0.04s;
}
.birles-uzam__intro.is-in .birles-uzam__intro-title {
  animation-delay: 0.12s;
}
.birles-uzam__intro.is-in .birles-uzam__intro-lead {
  animation-delay: 0.2s;
}
.birles-uzam__intro.is-in .birles-uzam__start {
  animation-delay: 0.42s;
}
@keyframes uzamIntroIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.birles-uzam__intro-kicker,
.birles-uzam__intro-title,
.birles-uzam__intro-lead {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}
.birles-uzam__intro-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.birles-uzam__intro-title {
  margin: 0;
  font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  font-weight: 900;
  line-height: 1.2;
  padding: 0 8px;
}
.birles-uzam__intro-lead {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
  max-width: 32ch;
  line-height: 1.35;
}

.birles-uzam__intro .birles-uzam__intro-img.is-bob {
  animation: uzamBobSoft 2.8s ease-in-out infinite;
}
@keyframes uzamBobSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.birles-uzam__start {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 900;
  color: #042f2e;
  background: linear-gradient(180deg, #ffe08a, #ffb703 50%, #fb8500);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.35);
  cursor: pointer;
}
.birles-uzam__start.is-listening {
  opacity: 0.92;
  pointer-events: none;
  cursor: wait;
}
.birles-uzam__start.is-ready {
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
  transform: scale(1.08);
  animation: uzamStartReady 1.05s ease-in-out infinite;
  box-shadow:
    0 0 0 5px rgba(255, 251, 235, 0.75),
    0 0 28px 8px rgba(251, 191, 36, 0.55),
    0 12px 28px rgba(251, 146, 60, 0.45);
}
@keyframes uzamStartReady {
  0%,
  100% {
    transform: scale(1.06);
  }
  50% {
    transform: scale(1.16);
  }
}

/* Stage — rakam gibi absolute scene */
.birles-uzam__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: min(100%, 980px);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.birles-uzam__stage.is-step-in {
  opacity: 0;
  transform: translateY(14px);
}
.birles-uzam__stage.is-step-active {
  opacity: 1;
  transform: none;
}
.birles-uzam__stage.is-step-out {
  opacity: 0;
  transform: translateY(-8px);
}

.birles-uzam-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 0;
}

.birles-uzam__head {
  flex: 0 0 auto;
  text-align: center;
  padding: 0 8px;
  width: 100%;
}
.birles-uzam__kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.birles-uzam__title {
  margin: 2px 0 0;
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  font-weight: 900;
}
.birles-uzam__prompt {
  margin: 4px 0 0;
  font-size: clamp(0.95rem, 3.6vw, 1.1rem);
  font-weight: 700;
  opacity: 0.95;
}

/* Büyük sahne çerçevesi */
.birles-uzam__frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.birles-uzam__frame.is-open {
  background: transparent;
  border: 0;
  overflow: visible;
}
.birles-uzam-scene--tap .birles-uzam__item.is-shown {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.birles-uzam__scene-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.birles-uzam__hero {
  width: min(62%, 240px);
  height: min(58%, 300px);
  display: grid;
  place-items: center;
}
.birles-uzam__hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  filter: none;
}

.birles-uzam__word {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(253, 230, 138, 0.95);
  color: #042f2e;
  font-size: clamp(1rem, 4.2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  animation: uzamWordIn 0.55s ease both;
  z-index: 3;
}
.birles-uzam__word--sm {
  font-size: clamp(0.85rem, 3.4vw, 1.05rem);
  padding: 6px 12px;
}

@keyframes uzamWordIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
/* Rozet / köşe sayaç: left%%50 yok — yoksa yarı genişlik sola kayar */
@keyframes uzamBadgeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Play boards */
.birles-uzam__frame--play {
  background: transparent;
}
.birles-uzam__play {
  width: 100%;
  height: 100%;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  box-sizing: border-box;
}
.birles-uzam__play--table {
  grid-template-rows: minmax(70px, 0.7fr) minmax(170px, 1.7fr) minmax(70px, 0.7fr);
  gap: 6px;
}
.birles-uzam__play--sides {
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
}
.birles-uzam__play-masa-wrap {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  align-self: stretch;
  justify-self: stretch;
}
.birles-uzam__play-masa {
  width: min(96%, 520px);
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
}
.birles-uzam__play-hero {
  width: clamp(160px, 44vw, 240px);
  height: clamp(210px, 50vh, 320px);
  object-fit: contain;
  background: transparent;
  filter: none;
}

.birles-uzam__play--table .birles-uzam__slot {
  width: clamp(108px, 36vw, 160px);
  height: clamp(68px, 15vh, 108px);
  align-self: center;
}
.birles-uzam__slot {
  width: clamp(92px, 26vw, 130px);
  height: clamp(92px, 26vw, 130px);
  border-radius: 16px;
  border: 2px dashed rgba(253, 230, 138, 0.55);
  background: rgba(253, 230, 138, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  box-sizing: border-box;
  position: relative;
}
.birles-uzam__slot::after {
  content: attr(data-label);
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 800;
  color: #fef3c7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.birles-uzam__slot.is-hot,
.birles-uzam__slot.is-lit {
  border-color: #fde68a;
  background: rgba(253, 230, 138, 0.22);
  box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.2);
}
.birles-uzam__slot.is-ok {
  border-style: solid;
  border-color: #86efac;
  background: rgba(134, 239, 172, 0.2);
}
.birles-uzam__slot.is-bad {
  border-color: #fca5a5;
  animation: uzamShake 0.4s ease;
}

.birles-uzam__placed {
  width: 76%;
  height: 68%;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
}
.birles-uzam__placed img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.birles-uzam__dock {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-top: 4px;
}
.birles-uzam__drag {
  width: 72px;
  height: 86px;
  border-radius: 16px;
  border: 2px solid rgba(253, 230, 138, 0.5);
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  padding: 6px 4px 4px;
  box-sizing: border-box;
  touch-action: none;
  cursor: grab;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
}
.birles-uzam__drag.is-dragging {
  opacity: 0.3;
}
.birles-uzam__drag[hidden] {
  visibility: hidden;
}
.birles-uzam__drag-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}
.birles-uzam__ghost {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20000;
  pointer-events: none;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  overflow: visible;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45));
  will-change: left, top;
  touch-action: none;
}
.birles-uzam__ghost-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  display: block;
}
.birles-uzam__hint {
  margin: 0;
  font-size: 12px;
  opacity: 0.75;
}

.birles-uzam__choices {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
  padding: 4px 0 2px;
  position: relative;
  z-index: 8;
}
.birles-uzam__choice {
  min-width: min(42vw, 160px);
  min-height: 48px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fef3c7;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  padding: 10px 14px;
}
.birles-uzam__choice.is-ok {
  border-color: #86efac;
  background: rgba(134, 239, 172, 0.25);
}
.birles-uzam__choice.is-bad {
  border-color: #fca5a5;
  animation: uzamShake 0.4s ease;
}

/* Progress / foot / skip — [hidden] override (rakam fix) */
.birles-uzam__progress {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 4px;
  flex: 0 0 auto;
}
.birles-uzam__pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.birles-uzam__pip.is-done {
  background: #fde68a;
}
.birles-uzam__pip.is-live {
  background: #fff;
  transform: scale(1.35);
  box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.35);
}

.birles-uzam__skip {
  position: absolute;
  bottom: max(14px, env(safe-area-inset-bottom));
  right: 12px;
  z-index: 20;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 13px;
  color: #042f2e;
  background: rgba(253, 230, 138, 0.92);
  cursor: pointer;
}

.birles-uzam__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 8px 0 4px;
  flex: 0 0 auto;
}
.birles-uzam__replay,
.birles-uzam__back {
  min-height: 46px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}
.birles-uzam__replay {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.birles-uzam__back {
  background: linear-gradient(180deg, #ffe08a, #ffb703);
  color: #042f2e;
}

.birles-uzam__foot[hidden],
.birles-uzam__progress[hidden],
.birles-uzam__stage[hidden],
.birles-uzam__intro[hidden],
.birles-uzam__skip[hidden] {
  display: none !important;
}

.birles-uzam__loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 47, 46, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 25;
}
.birles-uzam--loading .birles-uzam__loader {
  opacity: 1;
  pointer-events: auto;
}
.birles-uzam__loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
}
.birles-uzam__loader-spin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fde68a;
  animation: uzamSpin 0.8s linear infinite;
}

.is-bob {
  animation: uzamBob 2.6s ease-in-out infinite;
}
.birles-uzam-scene.is-shake {
  animation: uzamShake 0.4s ease;
}

@keyframes uzamBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes uzamSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes uzamShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

.birles-uzam__beats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  max-height: 28vh;
  overflow: auto;
  padding: 4px 2px 8px;
}
.birles-uzam__beat {
  min-width: 2.1em;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #ecfdf5;
  font-weight: 900;
  font-size: clamp(13px, 3.4vw, 18px);
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.birles-uzam__beat.is-on {
  background: #fde68a;
  color: #042f2e;
  transform: scale(1.18);
}
.birles-uzam__beat.is-done {
  background: #6ee7b7;
  color: #042f2e;
}
.birles-uzam__hundred {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  width: min(100%, 560px);
  margin: 8px auto 0;
}
.birles-uzam__cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.28);
  color: #ecfdf5;
  font-size: clamp(8px, 2.4vw, 11px);
  font-weight: 800;
}
.birles-uzam__cell.is-on {
  background: #fde68a;
  color: #042f2e;
}
.birles-uzam__cell.is-done {
  background: #34d399;
  color: #042f2e;
}
.birles-uzam-scene.is-practice .birles-uzam__kicker {
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.birles-uzam__prompt {
  display: none !important;
}

/* Canlı sahne: 1. ders gibi sahneyi doldur */
.birles-uzam-scene--spot,
.birles-uzam-scene--fill,
.birles-uzam-scene--tap,
.birles-uzam-scene--chart,
.birles-uzam-scene--drag {
  justify-content: stretch;
}
.birles-uzam__live {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 2px;
}
.birles-uzam__live-kaptan {
  width: clamp(72px, 16vw, 132px);
  height: auto;
  max-height: min(38vh, 240px);
  object-fit: contain;
  object-position: center bottom;
  flex: 0 0 auto;
  align-self: center;
  background: transparent;
  filter: none;
  z-index: 2;
  pointer-events: none;
}
.birles-uzam__live-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.birles-uzam__items {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: flex-end;
  justify-content: center;
  gap: 8px 10px;
  width: 100%;
  height: auto;
  max-height: 100%;
}
.birles-uzam__items.is-row5 {
  flex-wrap: wrap;
  justify-content: center;
  max-width: min(100%, 520px);
  margin: 0 auto;
}
.birles-uzam__items.is-row5 .birles-uzam__item:not(.is-group):not(.is-pair) {
  flex: 0 0 calc((100% - 40px) / 5);
  width: calc((100% - 40px) / 5);
  max-width: 88px;
}
.birles-uzam__items.is-tiny {
  max-width: min(100%, 540px);
  gap: 4px 6px;
  margin: 0 auto;
}
.birles-uzam__items.is-tiny .birles-uzam__item:not(.is-group):not(.is-pair) {
  flex: 0 0 calc((100% - 40px) / 5);
  width: calc((100% - 40px) / 5);
  max-width: 56px;
}
.birles-uzam__items.is-tiny .birles-uzam__item-img {
  max-height: min(10vh, 56px);
}
.birles-uzam__items.is-tiny .birles-uzam__item-badge {
  font-size: clamp(11px, 2.6vw, 15px);
  padding: 2px 5px;
  min-width: 1.4em;
  margin-top: 2px;
}
.birles-uzam__items.is-grouped {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  align-content: center;
}
.birles-uzam__item {
  position: relative;
  width: clamp(58px, 15vw, 132px);
  opacity: 0;
  transform: scale(0.78) translateY(10px);
  filter: grayscale(0.25) brightness(0.85);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  gap: 2px;
}
.birles-uzam__item.is-shown {
  opacity: 0.5;
  transform: scale(0.94);
  filter: grayscale(0.1) brightness(0.92);
}
.birles-uzam__item.is-kept {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 8px rgba(110, 231, 183, 0.75));
}
.birles-uzam__item.is-lit {
  opacity: 1;
  z-index: 4;
  transform: scale(1.08) translateY(-4px);
  filter: drop-shadow(0 0 10px #fde68a) drop-shadow(0 0 22px rgba(251, 191, 36, 0.85));
}
.birles-uzam__item.is-lit:not(.is-group) {
  animation: uzamBobLit 0.7s ease-in-out infinite;
}
.birles-uzam__item-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(26vh, 150px);
  margin: 0 auto;
  align-self: center;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  pointer-events: none;
}
.birles-uzam__item.is-pair {
  width: clamp(88px, 22vw, 160px);
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}
.birles-uzam__item.is-pair .birles-uzam__item-img {
  width: 46%;
  max-height: min(22vh, 120px);
}
.birles-uzam__item.is-group {
  width: 100%;
  max-width: 220px;
}
.birles-uzam__items.is-many .birles-uzam__item.is-group {
  max-width: 160px;
}
.birles-uzam__cluster {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 6px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.34);
  border: 2px solid rgba(253, 230, 138, 0.42);
  box-sizing: border-box;
}
.birles-uzam__cluster--5 {
  grid-template-columns: repeat(5, 1fr);
}
.birles-uzam__cluster--10 {
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
.birles-uzam__dot {
  display: grid;
  place-items: center;
  opacity: 0.45;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}
.birles-uzam__dot .birles-uzam__item-img {
  max-height: min(7.5vh, 42px);
}
.birles-uzam__dot.is-on {
  opacity: 1;
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px #fde68a);
}
.birles-uzam__dot.is-kept {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(110, 231, 183, 0.7));
}
.birles-uzam__item.is-lit .birles-uzam__cluster {
  border-color: #fde68a;
  box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.28);
  animation: uzamPulse 0.85s ease-in-out infinite;
}
.birles-uzam__item--balon.is-shown:not(.is-lit):not(.is-group) {
  animation: uzamFloat 2.8s ease-in-out infinite;
}
.birles-uzam__item-badge {
  display: none;
  min-width: 1.85em;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fde68a;
  color: #042f2e;
  font-weight: 900;
  font-size: clamp(15px, 4vw, 22px);
  line-height: 1.15;
  text-align: center;
  letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
  box-sizing: border-box;
}
.birles-uzam__item-badge:not(:empty) {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-width: 1.85em;
  margin: 4px auto 0;
  align-self: center;
  animation: uzamBadgeIn 0.35s ease both;
}
.is-flip {
  transform: scaleX(-1);
}

.birles-uzam__count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 2.2em;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fde68a;
  color: #042f2e;
  font-weight: 900;
  font-size: clamp(1.15rem, 4.6vw, 1.7rem);
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  z-index: 5;
  animation: uzamBadgeIn 0.4s ease both;
}
.birles-uzam__count[hidden] {
  display: none !important;
}
.birles-uzam--sayma .birles-uzam__count {
  display: none !important;
}
.birles-uzam__num {
  width: 100%;
  text-align: center;
  font-size: clamp(2.2rem, 10vw, 3.8rem);
  font-weight: 900;
  color: #fde68a;
  letter-spacing: 0.04em;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  line-height: 1;
  padding: 2px 0;
}

.birles-uzam__slots-row {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  align-content: center;
  width: min(100%, 520px);
  height: auto;
  max-height: 100%;
  margin: 0 auto;
}
.birles-uzam__slots-row[data-slots="1"] {
  grid-template-columns: 1fr;
  width: min(100%, 440px);
}
.birles-uzam__slots-row[data-slots="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.birles-uzam__slots-row[data-slots="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.birles-uzam__slots-row[data-slots="5"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.birles-uzam__slot--fill {
  position: relative;
  width: 100% !important;
  height: auto !important;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  overflow: hidden;
  box-sizing: border-box;
  padding: 4px;
}
.birles-uzam__slot--fill::after {
  content: none;
}
.birles-uzam__slot--fill.is-pairmat {
  aspect-ratio: 1.35 / 1;
  width: 100%;
  height: auto;
}
.birles-uzam__slot--fill.is-wagon,
.birles-uzam__slot--fill.is-fiveframe,
.birles-uzam__slot--fill.is-tenframe {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 88px;
  grid-column: 1 / -1;
  overflow: hidden;
}
.birles-uzam__slot--fill.is-fiveframe {
  aspect-ratio: 3.2 / 1;
}
.birles-uzam__slot--fill.is-tenframe {
  aspect-ratio: 2.3 / 1;
}
.birles-uzam__slot.is-fiveframe .birles-uzam__slot-fill,
.birles-uzam__slot-fill {
  display: grid;
  grid-template-columns: repeat(var(--pad-n, 1), minmax(0, 1fr));
  gap: 4px;
  align-items: stretch;
  justify-items: stretch;
  width: 100%;
  height: 100%;
  padding: 6px;
  box-sizing: border-box;
  overflow: hidden;
}
.birles-uzam__slot.is-pairmat .birles-uzam__slot-fill {
  grid-template-columns: 1fr 1fr;
}
.birles-uzam__slot.is-fiveframe .birles-uzam__slot-fill {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.birles-uzam__slot.is-tenframe .birles-uzam__slot-fill {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.birles-uzam__pad {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.birles-uzam__slot--fill .birles-uzam__placed {
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.birles-uzam__slot--fill .birles-uzam__placed img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
}

.birles-uzam__dock--pool {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  max-height: none;
  overflow: visible;
  padding: 8px 6px 4px;
}
.birles-uzam__dock--pool .birles-uzam__drag {
  width: clamp(56px, 16vw, 74px);
  height: clamp(76px, 20vw, 98px);
  flex: 0 0 auto;
}

.birles-uzam__hundred {
  flex: 1 1 auto;
  width: min(100%, 560px);
  align-content: center;
}

.birles-uzam-scene--spot .birles-uzam__beats {
  flex: 0 0 auto;
  max-height: 16vh;
  margin-top: 2px;
}

@keyframes uzamBobLit {
  0%,
  100% {
    transform: scale(1.08) translateY(-4px);
  }
  50% {
    transform: scale(1.16) translateY(-10px);
  }
}
@keyframes uzamPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}
@keyframes uzamFloat {
  0%,
  100% {
    transform: scale(0.94) translateY(0);
  }
  50% {
    transform: scale(0.94) translateY(-7px);
  }
}

@media (min-width: 768px) {
  .birles-uzam__stage {
    width: min(100%, 920px);
  }
  .birles-uzam__slot {
    width: 140px;
    height: 140px;
  }
  .birles-uzam__play--table .birles-uzam__slot {
    width: 156px;
    height: 112px;
  }
  .birles-uzam__play-masa {
    width: min(82%, 560px);
  }
  .birles-uzam__play-hero {
    width: 240px;
    height: 320px;
  }
  .birles-uzam__live-kaptan {
    width: 230px;
    max-height: 62vh;
  }
  .birles-uzam__items.is-grouped {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .birles-uzam__item:not(.is-group) {
    width: clamp(72px, 12vw, 150px);
  }
  .birles-uzam-scene--spot .birles-uzam__beats {
    max-height: 18vh;
  }
}

/* Vurgu / yazı katmanı — sahne zaten absolute/inset; relative ezmesin */
.birles-uzam__cues {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 40;
  pointer-events: none;
  overflow: visible;
}
.birles-uzam__cue {
  position: absolute;
  display: none;
  place-items: center;
  pointer-events: none;
  transform-origin: center;
}
.birles-uzam__cue.is-on {
  display: grid;
}
.birles-uzam__cue[hidden] {
  display: none !important;
}
.birles-uzam__cue svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
}
.birles-uzam__cue.is-x {
  color: #ef4444;
}
.birles-uzam__cue.is-check {
  color: #22c55e;
}
.birles-uzam__cue.is-x svg {
  filter: drop-shadow(0 2px 8px rgba(239, 68, 68, 0.55));
}
.birles-uzam__cue.is-check svg {
  filter: drop-shadow(0 2px 8px rgba(34, 197, 94, 0.55));
}
.birles-uzam__cue-ring {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(250, 204, 21, 0.95);
  background: rgba(250, 204, 21, 0.28);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}
.birles-uzam__cue-label {
  display: inline-block;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  color: #fb923c;
  font-family: "ComfortaaOkul", "Comfortaa", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 0 #7c2d12, 0 2px 8px rgba(0, 0, 0, 0.45);
  word-break: break-word;
}
.birles-uzam-overlay.is-admin-edit .birles-uzam {
  width: calc(100% - min(300px, 34vw));
  height: calc(100% - 128px);
  min-height: 0 !important;
  max-height: calc(100% - 128px);
  padding: 0;
  overflow: hidden;
}
.birles-uzam__editdock {
  display: none;
}
.birles-uzam-overlay.is-admin-edit .birles-uzam__editdock {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 128px;
  width: min(300px, 34vw);
  height: auto;
  z-index: 60;
  background: #0f172a;
  border-left: 1px solid #334155;
  color: #e2e8f0;
  padding: 12px;
  box-sizing: border-box;
  overflow: auto;
  font-family: system-ui, Segoe UI, sans-serif;
}
.birles-uzam__edittl {
  display: none;
}
.birles-uzam-overlay.is-admin-edit .birles-uzam__edittl {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 128px;
  z-index: 61;
  background: #0b1220;
  border-top: 1px solid #334155;
  color: #e2e8f0;
  padding: 10px 16px 14px;
  box-sizing: border-box;
  font-family: system-ui, Segoe UI, sans-serif;
}
.birles-uzam__editdock-head {
  font-weight: 800;
  font-size: 14px;
  color: #fde68a;
}
.birles-uzam__editnav {
  display: flex;
  gap: 6px;
  margin: 8px 0 4px;
}
.birles-uzam__editnav .birles-uzam__editbtn {
  flex: 1;
  padding: 8px 4px;
  font-size: 12px;
}
.birles-uzam__editbtn.is-acc {
  background: #b45309;
  border-color: #f59e0b;
}
.birles-uzam__editdock-clock {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #67e8f9;
  font-size: 13px;
}
.birles-uzam__tl {
  margin: 0;
  flex: 1;
  min-height: 0;
}
.birles-uzam__tl-track {
  position: relative;
  height: 84px;
  background: #020617;
  border: 1px solid #334155;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.birles-uzam__tl-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #67e8f9;
  left: 0;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 0 8px #22d3ee;
}
.birles-uzam__tl-bar {
  position: absolute;
  height: 14px;
  border-radius: 5px;
  min-width: 10px;
  z-index: 2;
  color: #0f172a;
  font-size: 9px;
  font-weight: 800;
  line-height: 14px;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}
.birles-uzam__tl-bar.is-arrow {
  background: #dc2626;
  color: #fff;
}
.birles-uzam__tl-bar.is-circle {
  background: #eab308;
}
.birles-uzam__tl-bar.is-text {
  background: #fb923c;
}
.birles-uzam__tl-bar.is-x {
  background: #ef4444;
  color: #fff;
}
.birles-uzam__tl-bar.is-check {
  background: #22c55e;
  color: #052e16;
}
.birles-uzam__tl-bar.is-on {
  outline: 2px solid #fde68a;
  z-index: 3;
}
.birles-uzam__tl-bar span {
  display: block;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.birles-uzam__tl-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  cursor: ew-resize;
  background: rgba(15, 23, 42, 0.35);
}
.birles-uzam__tl-bar i[data-tl-edge="start"] {
  left: 0;
}
.birles-uzam__tl-bar i[data-tl-edge="end"] {
  right: 0;
}
.birles-uzam__editdock-tools {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.birles-uzam__editbtn {
  appearance: none;
  border: 1px solid #475569;
  background: #1e293b;
  color: #f8fafc;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}
.birles-uzam__editbtn:hover {
  filter: brightness(1.12);
}
.birles-uzam__editdock-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.birles-uzam__editcard {
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 8px;
  background: #111827;
}
.birles-uzam__editcard.is-on {
  border-color: #f59e0b;
}
.birles-uzam__editcard label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}
.birles-uzam__editcard input {
  width: 100%;
  margin-top: 2px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #0b1228;
  color: #f8fafc;
  box-sizing: border-box;
}
.birles-uzam__editdur {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #67e8f9;
  font-variant-numeric: tabular-nums;
}
.birles-uzam__editdock-hint {
  margin-top: auto;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}
.birles-uzam__cue-body {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.birles-uzam__cue-anim {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transform-origin: center;
}
.birles-uzam__cue.is-arrow .birles-uzam__cue-anim {
  animation: birles-cue-nudge 0.7s ease-in-out infinite;
}
.birles-uzam__cue.is-circle .birles-uzam__cue-anim {
  animation: birles-cue-pulse 0.85s ease-in-out infinite;
}
.birles-uzam__cue.is-x .birles-uzam__cue-anim,
.birles-uzam__cue.is-check .birles-uzam__cue-anim {
  animation: birles-cue-heartbeat 1.45s ease-in-out infinite;
}
.birles-uzam__cue-mark {
  overflow: visible;
}
@keyframes birles-cue-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(16%);
  }
}
@keyframes birles-cue-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.22);
    opacity: 0.72;
  }
}
@keyframes birles-cue-heartbeat {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.16);
    opacity: 0.94;
  }
}
.birles-uzam__cue-h,
.birles-uzam__cue-rot {
  display: none;
}
.birles-uzam-overlay.is-admin-edit .birles-uzam__cues {
  pointer-events: auto;
}
.birles-uzam-overlay.is-admin-edit .birles-uzam__cue {
  pointer-events: auto;
  cursor: grab;
  outline: 2px dashed rgba(248, 250, 252, 0.35);
  touch-action: none;
}
.birles-uzam-overlay.is-admin-edit .birles-uzam__cue.is-selected {
  outline-color: #fbbf24;
}
.birles-uzam-overlay.is-admin-edit .birles-uzam__cue.is-on {
  display: grid;
}
.birles-uzam__editbtn.is-save {
  background: #15803d;
  border-color: #22c55e;
  margin-top: 12px;
  font-size: 15px;
}
.birles-uzam-overlay.is-admin-edit .birles-uzam__cue-h {
  display: block;
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fbbf24;
  border: 2px solid #0f172a;
  border-radius: 2px;
  z-index: 3;
  pointer-events: auto;
}
.birles-uzam-overlay.is-admin-edit .birles-uzam__cue-h.is-nw {
  left: -6px;
  top: -6px;
  cursor: nwse-resize;
}
.birles-uzam-overlay.is-admin-edit .birles-uzam__cue-h.is-ne {
  right: -6px;
  top: -6px;
  cursor: nesw-resize;
}
.birles-uzam-overlay.is-admin-edit .birles-uzam__cue-h.is-se {
  right: -6px;
  bottom: -6px;
  cursor: nwse-resize;
}
.birles-uzam-overlay.is-admin-edit .birles-uzam__cue-h.is-sw {
  left: -6px;
  bottom: -6px;
  cursor: nesw-resize;
}
.birles-uzam-overlay.is-admin-edit .birles-uzam__cue-h.is-n {
  left: 50%;
  top: -7px;
  margin-left: -7px;
  cursor: ns-resize;
}
.birles-uzam-overlay.is-admin-edit .birles-uzam__cue-h.is-e {
  right: -7px;
  top: 50%;
  margin-top: -7px;
  cursor: ew-resize;
}
.birles-uzam-overlay.is-admin-edit .birles-uzam__cue-h.is-s {
  left: 50%;
  bottom: -7px;
  margin-left: -7px;
  cursor: ns-resize;
}
.birles-uzam-overlay.is-admin-edit .birles-uzam__cue-h.is-w {
  left: -7px;
  top: 50%;
  margin-top: -7px;
  cursor: ew-resize;
}
.birles-uzam-overlay.is-admin-edit .birles-uzam__cue-rot {
  display: block;
  position: absolute;
  left: 50%;
  top: -28px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #22d3ee;
  border: 2px solid #0f172a;
  cursor: grab;
  z-index: 4;
  pointer-events: auto;
}

.birles-uzam__talk {
  position: relative;
  display: inline-grid;
  place-items: center;
  transform-origin: 50% 100%;
  pointer-events: none;
}
.birles-uzam__talk .birles-uzam__talk-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  pointer-events: none;
  filter: none;
}
.birles-uzam__talk video.birles-uzam__talk-img {
  display: block;
  background: transparent;
  mix-blend-mode: normal;
}
.birles-uzam__talk video.birles-uzam__hero-img,
.birles-uzam__talk video.birles-uzam__intro-img {
  transform: scale(1.08);
  transform-origin: center 58%;
}
.birles-uzam__talk video.birles-uzam__presenter-img,
.birles-uzam__talk video.birles-uzam__live-kaptan,
.birles-uzam__talk video.birles-uzam__play-hero {
  transform: scale(1.12);
  transform-origin: center 58%;
}
.birles-uzam__talk.is-talking video.birles-uzam__talk-img {
  animation: none;
}
.birles-uzam__hero .birles-uzam__talk {
  width: 100%;
  height: 100%;
}
.birles-uzam__live .birles-uzam__talk:not(.is-presenter) {
  width: clamp(72px, 16vw, 132px);
  max-height: min(38vh, 240px);
  flex: 0 0 auto;
  align-self: center;
  z-index: 2;
}
.birles-uzam__play .birles-uzam__talk {
  width: min(42%, 220px);
  max-height: min(52vh, 340px);
}
.birles-uzam__talk.is-presenter {
  position: absolute;
  left: 4px;
  bottom: 6px;
  width: min(20%, 96px);
  max-height: 32vh;
  z-index: 6;
}
.birles-uzam__talk.is-enter {
  animation: kaptanEnter 0.85s ease-out both;
}
.birles-uzam__talk.is-exit {
  animation: kaptanExit 0.35s ease-in both;
}
.birles-uzam__talk.is-talking .birles-uzam__talk-img {
  animation: none;
}
@keyframes kaptanEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes kaptanExit {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes kaptanBreath {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.015);
  }
}

/* Sayma: nesneler tam orta, Kaptan köşede bindirme; 5’li tek sıra */
.birles-uzam--sayma .birles-uzam__live--spot,
.birles-uzam--sayma .birles-uzam__live--fill,
.birles-uzam--sayma .birles-uzam__live--chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  gap: 8px;
  padding: 4px 4px 8px;
}
.birles-uzam--sayma .birles-uzam__live--spot {
  justify-content: center;
}
.birles-uzam--sayma .birles-uzam__live--spot > .birles-uzam__talk,
.birles-uzam--sayma .birles-uzam__live--fill > .birles-uzam__talk,
.birles-uzam--sayma .birles-uzam__live--chart > .birles-uzam__talk {
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(72px, 18vw, 112px);
  max-height: min(30vh, 200px);
  z-index: 3;
  pointer-events: none;
}
.birles-uzam--sayma .birles-uzam__live-kaptan {
  width: 100%;
  max-height: min(30vh, 200px);
}
.birles-uzam--sayma .birles-uzam__talk video.birles-uzam__live-kaptan,
.birles-uzam--sayma .birles-uzam__talk video.birles-uzam__hero-img {
  transform: scale(1.06);
  transform-origin: center 62%;
}
.birles-uzam--sayma .birles-uzam__hero {
  width: min(64%, 250px);
  height: min(58%, 330px);
}
.birles-uzam--sayma .birles-uzam__live-main {
  width: 100%;
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
  justify-content: center;
  padding: 4px 4px 8px;
}
.birles-uzam--sayma .birles-uzam__live--fill {
  align-items: center;
  justify-content: center;
}
.birles-uzam--sayma .birles-uzam__live--fill .birles-uzam__live-main,
.birles-uzam--sayma .birles-uzam__live--fill .birles-uzam__slots-row {
  flex: 1 1 auto;
  height: 100%;
  width: min(92%, 560px);
  margin: 0 auto;
  justify-content: center;
  align-content: center;
  align-items: center;
}
.birles-uzam--sayma .birles-uzam__slot--fill {
  max-width: 152px;
  min-height: 112px;
  overflow: visible;
}
.birles-uzam--sayma .birles-uzam__slots-row[data-slots="3"] {
  width: min(94%, 540px);
  gap: 16px;
}
.birles-uzam--sayma .birles-uzam__slots-row[data-slots="3"] .birles-uzam__slot--fill {
  max-width: 172px;
  min-height: 132px;
}
.birles-uzam--sayma .birles-uzam__slots-row[data-slots="5"] .birles-uzam__slot--fill {
  max-width: 112px;
  min-height: 104px;
}
.birles-uzam--sayma .birles-uzam__slots-row[data-slots="1"] {
  width: min(90%, 440px);
}
.birles-uzam--sayma .birles-uzam__slots-row[data-slots="1"] .birles-uzam__slot--fill {
  max-width: none;
  min-height: 128px;
}
.birles-uzam--sayma .birles-uzam-scene--fill .birles-uzam__dock--pool {
  position: relative;
  z-index: 4;
}
.birles-uzam--sayma .birles-uzam__live--chart .birles-uzam__talk {
  width: clamp(64px, 15vw, 96px);
  max-height: 24vh;
}
.birles-uzam--sayma .birles-uzam__live--chart .birles-uzam__live-main {
  justify-content: center;
  padding-bottom: 28px;
}
/* Sayı rozeti: nesne (balon vb.) dikey ekseninin tam altında */
.birles-uzam--sayma .birles-uzam__item {
  align-items: center;
  text-align: center;
}
.birles-uzam--sayma .birles-uzam__item-img {
  margin-left: auto;
  margin-right: auto;
  object-position: center center;
}
.birles-uzam--sayma .birles-uzam__item-badge:not(:empty) {
  margin-left: auto;
  margin-right: auto;
  align-self: center;
  position: relative;
  left: 0;
}
@media (min-width: 768px) {
  .birles-uzam--sayma .birles-uzam__live--spot > .birles-uzam__talk,
  .birles-uzam--sayma .birles-uzam__live--fill > .birles-uzam__talk {
    width: 140px;
    max-height: 34vh;
  }
  .birles-uzam--sayma .birles-uzam__items.is-row5 .birles-uzam__item:not(.is-group):not(.is-pair) {
    max-width: 110px;
  }
}

.birles-uzam--karsi .birles-uzam__live--karsi,
.birles-uzam--karsi .birles-uzam__live--spot.birles-uzam__live--karsi {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.birles-uzam--karsi .birles-uzam__live--karsi .birles-uzam__live-main,
.birles-uzam--karsi .birles-uzam__live-main.birles-uzam__karsi {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  justify-content: center;
}
.birles-uzam--karsi.birles-uzam--sayma .birles-uzam__live--spot > .birles-uzam__talk,
.birles-uzam--karsi .birles-uzam__live--karsi > .birles-uzam__talk {
  width: clamp(132px, 42vw, 220px);
  max-height: min(42vh, 280px);
  z-index: 6;
}
.birles-uzam--karsi .birles-uzam__talk.is-presenter {
  width: clamp(132px, 42vw, 220px);
  max-height: min(42vh, 280px);
}
.birles-uzam__live--karsi .birles-uzam__live-main {
  justify-content: center;
}
.birles-uzam__karsi {
  --karsi-gap: 6px;
  --karsi-cols: 5;
  --karsi-rows: 2;
  --karsi-item: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.birles-uzam__karsi-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 2vw, 16px);
  width: 100%;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: 100%;
}
.birles-uzam__karsi[data-uzam-karsi="3"] .birles-uzam__karsi-row {
  gap: 8px;
}
.birles-uzam__karsi-col {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}
.birles-uzam__karsi-side {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: auto;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 3px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.birles-uzam__karsi-side.is-focus {
  border-color: #38bdf8;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.28);
}
.birles-uzam__karsi-side.is-more {
  border-color: #16a34a;
  background: rgba(220, 252, 231, 0.92);
}
.birles-uzam__karsi-side.is-less {
  border-color: #ea580c;
  background: rgba(255, 237, 213, 0.92);
}
.birles-uzam__karsi-side.is-equal {
  border-color: #2563eb;
  background: rgba(219, 234, 254, 0.92);
}
.birles-uzam__karsi-label {
  margin: 0;
  flex: 0 0 auto;
  font-weight: 800;
  font-size: clamp(18px, 5.2vw, 26px);
  color: #fefce8;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.birles-uzam__karsi-total {
  flex: 0 0 auto;
  font-weight: 900;
  font-size: clamp(32px, 8.5vw, 50px);
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.birles-uzam__karsi-total[hidden],
.birles-uzam__karsi-rank[hidden],
.birles-uzam__karsi-tag[hidden] {
  display: none !important;
}
.birles-uzam__karsi-tag {
  flex: 0 0 auto;
  font-weight: 900;
  font-size: clamp(15px, 4.4vw, 22px);
  line-height: 1.15;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  animation: karsiWordIn 0.35s ease;
}
.birles-uzam__karsi-tag.is-more {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(187, 247, 208, 0.7), 0 6px 14px rgba(22, 163, 74, 0.35);
}
.birles-uzam__karsi-tag.is-less {
  background: #ea580c;
  box-shadow: 0 0 0 3px rgba(254, 215, 170, 0.7), 0 6px 14px rgba(234, 88, 12, 0.35);
}
.birles-uzam__karsi-tag.is-equal {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.7), 0 6px 14px rgba(37, 99, 235, 0.35);
}
.birles-uzam__karsi-rank {
  flex: 0 0 auto;
  font-weight: 800;
  font-size: clamp(14px, 3.6vw, 18px);
  padding: 3px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
}
.birles-uzam__karsi-word {
  font-weight: 900;
  font-size: clamp(20px, 4vw, 36px);
  padding: 6px 22px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  color: #fff;
  background: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
  animation: karsiWordIn 0.4s ease;
}
.birles-uzam__karsi-word.is-more {
  background: #16a34a;
}
.birles-uzam__karsi-word.is-less {
  background: #ea580c;
}
.birles-uzam__karsi-word.is-equal {
  background: #2563eb;
}
.birles-uzam__karsi-side .birles-uzam__items {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: visible;
  box-sizing: border-box;
}
.birles-uzam__karsi-side .birles-uzam__items.is-row5,
.birles-uzam__karsi-side .birles-uzam__items.is-karsi-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  align-items: center;
  align-self: center;
  width: min(
    100%,
    calc(var(--karsi-cols) * var(--karsi-item) + (var(--karsi-cols) - 1) * var(--karsi-gap))
  );
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  gap: var(--karsi-gap);
  overflow: visible;
}
.birles-uzam--karsi .birles-uzam__karsi-side .birles-uzam__item,
.birles-uzam__karsi-side .birles-uzam__items.is-karsi-grid .birles-uzam__item,
.birles-uzam__karsi-side .birles-uzam__items.is-row5 .birles-uzam__item,
.birles-uzam__karsi-side .birles-uzam__items.is-tiny .birles-uzam__item {
  flex: none;
  width: var(--karsi-item) !important;
  height: var(--karsi-item) !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 3px;
  box-sizing: border-box;
  border: 3px solid rgba(148, 163, 184, 0.55);
  border-radius: 50%;
  transform: none !important;
  filter: none !important;
  gap: 0;
  overflow: visible;
  background: rgba(255, 255, 255, 0.35);
}
.birles-uzam--karsi .birles-uzam__karsi-side .birles-uzam__item:not(.is-shown):not(.is-lit) {
  display: flex !important;
  opacity: 0.32;
  filter: grayscale(0.2) saturate(0.65);
  transform: scale(0.92) !important;
  border-color: rgba(148, 163, 184, 0.4) !important;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
.birles-uzam--karsi .birles-uzam__karsi-side .birles-uzam__item.is-shown,
.birles-uzam--karsi .birles-uzam__karsi-side .birles-uzam__item.is-kept {
  opacity: 1;
  transform: none !important;
  filter: none !important;
  animation: none;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}
.birles-uzam--karsi .birles-uzam__karsi-side .birles-uzam__item.is-lit {
  opacity: 1;
  z-index: 5;
  display: flex !important;
  transform: scale(1.16) !important;
  border: 4px solid #fbbf24 !important;
  background: rgba(254, 243, 199, 0.95);
  box-shadow: 0 0 0 4px #fde68a, 0 0 16px rgba(251, 191, 36, 0.85);
  animation: karsiLitPulse 0.7s ease-in-out infinite;
  filter: none !important;
}
@keyframes karsiLitPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px #fde68a, 0 0 12px rgba(251, 191, 36, 0.7);
  }
  50% {
    box-shadow: 0 0 0 6px #fef3c7, 0 0 20px rgba(251, 191, 36, 1);
  }
}
.birles-uzam--karsi .birles-uzam__karsi-side .birles-uzam__item-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  margin: 0;
  min-width: 1.35em;
  height: 1.35em;
  padding: 0 5px;
  font-size: clamp(12px, 3.4vw, 16px);
  z-index: 6;
}
.birles-uzam--karsi .birles-uzam__choice {
  min-width: min(46vw, 170px);
  min-height: 54px;
  font-size: clamp(16px, 4.6vw, 21px);
  padding: 12px 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.birles-uzam--karsi .birles-uzam__choice.is-dim {
  opacity: 0.38;
  transform: scale(0.94);
}
.birles-uzam--karsi .birles-uzam__choice.is-ok {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  color: #fff;
  transform: scale(1.1);
  box-shadow:
    0 0 0 7px rgba(74, 222, 128, 0.45),
    0 0 28px rgba(34, 197, 94, 0.85),
    0 10px 22px rgba(21, 128, 61, 0.45);
  animation: karsiChoiceOk 0.85s ease both;
  z-index: 9;
}
.birles-uzam--karsi .birles-uzam__choice.is-ok::after {
  content: " ✓";
  font-weight: 900;
}
@keyframes karsiChoiceOk {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.15);
  }
  45% {
    transform: scale(1.16);
    box-shadow:
      0 0 0 10px rgba(74, 222, 128, 0.5),
      0 0 32px rgba(34, 197, 94, 1);
  }
  100% {
    transform: scale(1.1);
    box-shadow:
      0 0 0 7px rgba(74, 222, 128, 0.45),
      0 0 28px rgba(34, 197, 94, 0.85);
  }
}
.birles-uzam--karsi .birles-uzam__skip {
  font-size: clamp(15px, 4vw, 18px);
  padding: 10px 16px;
}
.birles-uzam--karsi .birles-uzam__karsi-side .birles-uzam__item-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.birles-uzam--karsi .birles-uzam__karsi-side .birles-uzam__item.is-matched,
.birles-uzam__karsi-side .birles-uzam__items .birles-uzam__item.is-matched {
  opacity: 1;
  border: 4px solid #16a34a !important;
  background: rgba(34, 197, 94, 0.22);
  box-shadow: 0 0 0 3px #bbf7d0, 0 0 12px rgba(22, 163, 74, 0.65);
  filter: none;
  animation: karsiPair 0.38s ease both;
}
.birles-uzam--karsi .birles-uzam__karsi-side .birles-uzam__item.is-extra,
.birles-uzam__karsi-side .birles-uzam__items .birles-uzam__item.is-extra {
  opacity: 1;
  border: 4px dashed #ea580c !important;
  background: rgba(234, 88, 12, 0.2);
  box-shadow: 0 0 0 3px #fed7aa, 0 0 12px rgba(234, 88, 12, 0.65);
  filter: none;
  animation: karsiExtra 0.42s ease both;
}
@keyframes karsiPair {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}
@keyframes karsiExtra {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}
@keyframes karsiWordIn {
  from {
    transform: scale(0.82);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.birles-uzam--karsi .birles-uzam__beats {
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .birles-uzam__karsi-row {
    gap: 8px;
  }
  .birles-uzam__karsi-side {
    padding: 8px 6px 10px;
    border-radius: 14px;
    border-width: 2px;
  }
  .birles-uzam__karsi-word {
    font-size: clamp(16px, 5vw, 26px);
    padding: 4px 14px;
  }
}


/* Toplama · denklem rozeti (5 + 3 = 8) */
.birles-uzam--toplama .birles-uzam__karsi-word {
  font-size: clamp(22px, 4.4vw, 40px);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  border-radius: 18px;
  padding: 8px 26px;
}
.birles-uzam--toplama .birles-uzam__karsi-word.is-equal {
  background: #1d4ed8;
}
