/* Kaptan Harfi · Sayıları karşılaştırma — tam ekran yatay 16:9 */

.birles-uzam-overlay.is-land,
.birles-uzam-overlay.is-koy.is-land {
  background: #070605;
}
body.birles-karsi-land,
html.birles-karsi-land {
  overflow: hidden !important;
}
body.birles-karsi-land #nova-portrait-lock,
html.birles-karsi-land #nova-portrait-lock {
  display: none !important;
}

.birles-uzam--land {
  padding: 0;
  color: #fff7ed;
}
.birles-uzam--land .birles-uzam__close {
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  z-index: 40;
  background: rgba(8, 8, 8, 0.55);
}
.birles-uzam--land.birles-uzam--gate {
  background: #1a1008 url("../assets/birles/karsilastirma/land/bg-gate.webp") center / cover no-repeat;
}
.birles-uzam--land.birles-uzam--gate .birles-uzam__intro {
  max-width: min(92vw, 720px);
}
.birles-uzam--land .birles-uzam__intro-kicker {
  color: #fdba74;
  letter-spacing: 0.14em;
}
.birles-uzam--land .birles-uzam__intro-title {
  font-family: "TemelYazi", "ComfortaaOkul", sans-serif;
  font-weight: 900;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  color: #fff7ed;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}
.birles-uzam--land .birles-uzam__start {
  background: linear-gradient(180deg, #fb923c, #c2410c);
  color: #fff7ed;
  border: 0;
}
.birles-uzam--land .birles-uzam__stage {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  opacity: 1;
  transform: none;
}
.birles-uzam--land .birles-uzam-scene--film {
  position: absolute;
  inset: 0;
  display: block;
}
.birles-uzam--land .birles-uzam__head {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  left: 12px;
  z-index: 12;
  text-align: left;
  width: auto;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.birles-uzam--land .birles-uzam__kicker {
  color: #fdba74;
  font-size: 10px;
}
.birles-uzam--land .birles-uzam__title {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  margin: 0;
}
.birles-uzam--land .birles-uzam__live--film {
  position: absolute;
  inset: 0;
  display: block;
}
.birles-uzam--land .birles-uzam__film,
.birles-uzam--land [data-karsi-film] {
  position: absolute;
  inset: 0;
}
.birles-uzam__landframe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100vw, calc(100dvh * 16 / 9));
  height: min(100dvh, calc(100vw * 9 / 16));
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: #111;
}
.birles-uzam__landbg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.birles-uzam__landtrays {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.birles-uzam__tray {
  position: absolute;
  pointer-events: auto;
  overflow: visible;
}
.birles-uzam__tray.is-oval {
  border-radius: 50%;
}
.birles-uzam__tray.is-rect {
  border-radius: 14px;
}
.birles-uzam__tray.is-focus {
  z-index: 6;
}
.birles-uzam__tray-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: none;
  z-index: 2;
}
.birles-uzam__tray.is-focus .birles-uzam__tray-ring {
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.95), 0 0 22px rgba(250, 204, 21, 0.4);
}
.birles-uzam__tray.is-ok .birles-uzam__tray-ring {
  box-shadow: 0 0 0 4px #22c55e, 0 0 18px rgba(34, 197, 94, 0.45);
}
.birles-uzam__tray-well {
  position: absolute;
  overflow: visible;
  z-index: 3;
  pointer-events: none;
}
.birles-uzam__tray.is-oval .birles-uzam__tray-ring {
  border-radius: 50%;
}
.birles-uzam__tray-well.is-oval {
  border-radius: 50%;
}
.birles-uzam__tray-well.is-rect {
  border-radius: 18%;
}
.is-guide .birles-uzam__tray-well {
  outline: 2px solid rgba(255, 0, 255, 0.9);
  background: rgba(255, 0, 255, 0.22);
}
.is-guide .birles-uzam__tray-ring {
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.95) !important;
}
.birles-uzam__tray-nums {
  position: absolute;
  overflow: visible;
  z-index: 7;
  pointer-events: none;
}
.birles-uzam__slot {
  position: absolute;
  width: var(--sz, 32%);
  transform: translate(-50%, -70%) scale(calc(0.92 + var(--depth, 0.55) * 0.14));
  z-index: calc(2 + var(--i, 0));
  pointer-events: auto;
}
.birles-uzam__slot.is-settled .birles-uzam__sprite-img {
  animation: none;
}
.birles-uzam__slot.is-born .birles-uzam__sprite-img {
  animation: karsi-pop 0.38s cubic-bezier(0.2, 1.35, 0.3, 1) both;
}
.birles-uzam__slot.is-lit {
  z-index: 24;
}
.birles-uzam__slot.is-lit .birles-uzam__sprite-img {
  animation: karsi-count-pulse 0.65s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.95)) drop-shadow(3px 8px 6px rgba(0, 0, 0, 0.42));
}
.birles-uzam__pad {
  position: absolute;
  left: 50%;
  top: 68%;
  width: 118%;
  height: 78%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}
.birles-uzam__pad.is-pair {
  opacity: 1;
  background: #16a34a;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.45);
}
.birles-uzam__pad.is-extra {
  opacity: 1;
  background: #f97316;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
}
.birles-uzam__sprite-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(2px 7px 5px rgba(0, 0, 0, 0.45));
  transform: rotate(var(--rot, 0deg)) scaleX(var(--flip, 1));
  pointer-events: none;
  transform-origin: 50% 70%;
}
.birles-uzam__slot-n {
  position: absolute;
  transform: translate(-50%, 0);
  z-index: 2;
  min-width: 1.25em;
  height: 1.25em;
  padding: 0 4px;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-family: "TemelYazi", sans-serif;
  font-size: clamp(11px, 1.45vw, 15px);
  font-weight: 900;
  display: grid;
  place-items: center;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.birles-uzam__slot-n.is-lit {
  background: #facc15;
  transform: translate(-50%, 0) scale(1.22);
}
@keyframes karsi-pop {
  from {
    transform: rotate(var(--rot, 0deg)) scaleX(var(--flip, 1)) scale(0.2);
    opacity: 0.15;
  }
  to {
    transform: rotate(var(--rot, 0deg)) scaleX(var(--flip, 1)) scale(1);
    opacity: 1;
  }
}
@keyframes karsi-count-pulse {
  0%,
  100% {
    transform: rotate(var(--rot, 0deg)) scaleX(var(--flip, 1)) scale(1);
    filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.7)) drop-shadow(2px 7px 5px rgba(0, 0, 0, 0.45));
  }
  50% {
    transform: rotate(var(--rot, 0deg)) scaleX(var(--flip, 1)) scale(1.16);
    filter: drop-shadow(0 0 16px rgba(250, 204, 21, 1)) drop-shadow(2px 7px 5px rgba(0, 0, 0, 0.45));
  }
}
.birles-uzam__tray-label {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -130%);
  background: rgba(15, 23, 42, 0.72);
  color: #fff7ed;
  font-family: "TemelYazi", "ComfortaaOkul", sans-serif;
  font-weight: 800;
  font-size: clamp(12px, 1.6vw, 16px);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 6;
}
.birles-uzam__tray-n {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 118%);
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-family: "TemelYazi", sans-serif;
  font-weight: 900;
  font-size: 20px;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 6;
}
.birles-uzam__tray-n[hidden],
.birles-uzam__landtag[hidden],
.birles-uzam__landrank[hidden] {
  display: none !important;
}
.birles-uzam__landtag {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: auto;
  top: 0;
  transform: translate(-50%, calc(-130% - 28px));
  font-family: "TemelYazi", sans-serif;
  font-weight: 900;
  font-size: 14px;
  padding: 2px 10px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 6;
}
.birles-uzam__landtag.is-more {
  background: #4ade80;
  color: #052e16;
}
.birles-uzam__landtag.is-less {
  background: #fb923c;
  color: #431407;
}
.birles-uzam__landtag.is-equal {
  background: #38bdf8;
  color: #0c4a6e;
}
.birles-uzam__landrank {
  position: absolute;
  right: 4%;
  top: 4%;
  color: #fde68a;
  font-weight: 800;
  font-size: 13px;
  text-shadow: 0 1px 4px #000;
}
.birles-uzam__landpairs {
  display: none;
}
.birles-uzam__film-caption {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 6%;
  z-index: 8;
  margin: 0;
  padding: 8px 16px;
  background: rgba(8, 8, 8, 0.58);
  color: #fff7ed;
  border-radius: 14px;
  text-align: center;
  font-family: "TemelYazi", "ComfortaaOkul", sans-serif;
  font-weight: 800;
  font-size: clamp(0.95rem, 2.1vw, 1.2rem);
  line-height: 1.25;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.birles-uzam--land .birles-uzam__film-caption {
  left: 18%;
  right: 18%;
  bottom: 6%;
  z-index: 8;
  font-size: clamp(0.95rem, 2.1vw, 1.2rem);
}
.birles-uzam--land .birles-uzam__live--film > .birles-uzam__talk {
  position: absolute;
  left: 1%;
  bottom: 2%;
  width: min(22vw, 180px);
  height: min(28vh, 200px);
  z-index: 10;
  pointer-events: none;
}
.birles-uzam--land .birles-uzam__live--film > .birles-uzam__talk video,
.birles-uzam--land .birles-uzam__live--film > .birles-uzam__talk img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.birles-uzam--land .birles-uzam__choices {
  position: absolute;
  right: 2%;
  bottom: 8%;
  left: auto;
  width: min(42%, 420px);
  z-index: 12;
  flex-direction: column;
}
.birles-uzam--land .birles-uzam__choice {
  background: rgba(15, 23, 42, 0.72);
  color: #fff7ed;
  border: 0;
  border-radius: 14px;
  font-family: "TemelYazi", sans-serif;
  font-weight: 800;
}
.birles-uzam--land .birles-uzam__progress {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  background: transparent;
}
.birles-uzam--land .birles-uzam__skip {
  top: max(8px, env(safe-area-inset-top));
  right: 52px;
  bottom: auto;
  background: rgba(8, 8, 8, 0.5);
  color: #fed7aa;
}
.birles-uzam--land .birles-uzam__foot {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 14;
}
.birles-uzam__turn {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0b1224;
  color: #fff7ed;
  text-align: center;
  padding: 24px;
  font-family: "TemelYazi", sans-serif;
}
.birles-uzam__turn strong {
  font-size: 1.35rem;
}

@media (orientation: portrait) and (hover: none) {
  .birles-uzam--land.birles-uzam--playing .birles-uzam__turn {
    display: flex;
  }
}

.birles-uzam--land.is-shake,
.birles-uzam--land .is-shake {
  animation: koy-shake 0.38s ease;
}
