.ag-tournament-mobile-pager {
  display: none;
}

html.ag-tournament-mobile-scroll-lock {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.ag-mobile-app-page-tournament.ag-device-small.ag-layout-segmented.ag-tournament-mobile-carousel-active {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

body.ag-mobile-app-page-tournament.ag-device-small.ag-layout-segmented.ag-tournament-mobile-carousel-active .tournament-page {
  position: fixed;
  top: var(--ag-lobby-header-total);
  right: 2px;
  bottom: calc(var(--ag-lobby-mobile-dock-height) + var(--ag-lobby-safe-bottom) + 11px);
  left: 2px;
  z-index: 18;
  display: block;
  width: auto;
  min-height: 0;
  height: auto;
  padding: 2px 0 0;
  overflow: hidden;
}

body.ag-mobile-app-page-tournament.ag-device-small.ag-layout-segmented.ag-tournament-mobile-carousel-active .ag-tournament-hub,
body.ag-mobile-app-page-tournament.ag-device-small.ag-layout-segmented.ag-tournament-mobile-carousel-active .tournament-page > .ag-created-tournaments-panel,
body.ag-mobile-app-page-tournament.ag-device-small.ag-layout-segmented.ag-tournament-mobile-carousel-active .tournament-page > .ag-premium-management-entry,
body.ag-mobile-app-page-tournament.ag-device-small.ag-layout-segmented.ag-tournament-mobile-carousel-active .tournament-page > .ag-tournament-mode-grid {
  display: none !important;
}

body.ag-mobile-app-page-tournament.ag-device-small.ag-layout-segmented.ag-tournament-mobile-carousel-active .ag-tournament-mobile-pager {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: 33px minmax(0, 1fr);
  row-gap: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ag-tournament-mobile-pager__head {
  position: relative;
  isolation: isolate;
  display: grid;
  width: min(98%, 330px);
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  justify-self: center;
  padding: 0;
  gap: 4px;
  border: 0;
  background: transparent;
}

.ag-tournament-mobile-pager__head::before {
  content: "";
  position: absolute;
  inset: 2px 3px;
  z-index: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(4, 6, 8, 0.08) 0%,
    rgba(5, 7, 9, 0.34) 17%,
    rgba(4, 6, 8, 0.58) 36%,
    rgba(3, 5, 7, 0.64) 50%,
    rgba(4, 6, 8, 0.58) 64%,
    rgba(5, 7, 9, 0.34) 83%,
    rgba(4, 6, 8, 0.08) 100%
  );
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.ag-tournament-mobile-pager__title {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  height: 29px;
  margin: 0;
  place-items: center;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid rgba(246, 190, 95, 0.58);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(113, 119, 120, 0.42), rgba(42, 47, 49, 0.72)),
    radial-gradient(circle at 50% -40%, rgba(255, 235, 197, 0.22), transparent 62%);
  color: #fff0d0;
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 0.025em;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 5px 14px rgba(0, 0, 0, 0.26),
    0 0 10px rgba(218, 137, 40, 0.10);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(13px) saturate(135%);
  -webkit-backdrop-filter: blur(13px) saturate(135%);
}

.ag-tournament-mobile-pager__arrow {
  position: relative;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 29px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font: inherit;
  font-size: 0;
  line-height: 1;
  box-shadow: none;
}

.ag-tournament-mobile-pager__arrow::before {
  display: inline-block;
  color: transparent;
  font-family: Arial, sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 1.8px;
  line-height: 0.82;
  background:
    linear-gradient(
      90deg,
      #7d4a12 0%,
      #b97720 28%,
      #f7bd55 42%,
      #fff6c8 50%,
      #f7bd55 58%,
      #b97720 72%,
      #7d4a12 100%
    );
  background-size: 240% 100%;
  background-position: 115% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 3px rgba(255, 190, 76, 0.58));
  text-shadow:
    0 0 4px rgba(255, 191, 80, 0.78),
    0 0 9px rgba(224, 126, 31, 0.48);
  will-change: background-position, filter, opacity;
}

.ag-tournament-mobile-pager__arrow[data-tournament-pager-arrow="previous"]::before {
  content: "‹‹‹";
  transform: none;
  animation: ag-tournament-arrow-knight-left 1.35s linear infinite;
}

.ag-tournament-mobile-pager__arrow[data-tournament-pager-arrow="next"]::before {
  content: "›››";
  transform: none;
  animation: ag-tournament-arrow-knight-right 1.35s linear infinite;
}

.ag-tournament-mobile-pager__arrow:disabled {
  opacity: 0.24;
}

.ag-tournament-mobile-pager__arrow:disabled::before {
  animation: none;
  background-position: 50% 50%;
  filter: none;
  text-shadow: none;
}

@keyframes ag-tournament-arrow-knight-left {
  0% {
    background-position: -125% 50%;
    filter: drop-shadow(0 0 2px rgba(255, 177, 54, 0.34));
    opacity: 0.66;
  }
  42%, 58% {
    filter:
      drop-shadow(0 0 4px rgba(255, 211, 112, 0.94))
      drop-shadow(0 0 9px rgba(235, 139, 31, 0.82));
    opacity: 1;
  }
  100% {
    background-position: 125% 50%;
    filter: drop-shadow(0 0 2px rgba(255, 177, 54, 0.34));
    opacity: 0.66;
  }
}

@keyframes ag-tournament-arrow-knight-right {
  0% {
    background-position: 125% 50%;
    filter: drop-shadow(0 0 2px rgba(255, 177, 54, 0.34));
    opacity: 0.66;
  }
  42%, 58% {
    filter:
      drop-shadow(0 0 4px rgba(255, 211, 112, 0.94))
      drop-shadow(0 0 9px rgba(235, 139, 31, 0.82));
    opacity: 1;
  }
  100% {
    background-position: -125% 50%;
    filter: drop-shadow(0 0 2px rgba(255, 177, 54, 0.34));
    opacity: 0.66;
  }
}

.ag-tournament-mobile-pager__viewport {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
}

.ag-tournament-mobile-pager__track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform 260ms cubic-bezier(.22, .82, .28, 1);
}

.ag-tournament-mobile-slide {
  display: grid;
  min-width: 100%;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  padding: 0 0 5px;
  overflow: hidden;
  overscroll-behavior: none;
}

.ag-tournament-mobile-slide > :is(.ag-premium-management-entry, .ag-lobby-memberships-panel, #ana-akis-panel, .ag-tournament-mobile-upcoming-panel, .ag-tournament-mode-grid) {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

.ag-tournament-mobile-slide > .ag-premium-management-entry {
  place-items: center;
}

.ag-tournament-mobile-slide > .ag-premium-management-entry .ag-premium-management-button {
  width: 100%;
  max-width: 100%;
}

.ag-tournament-mobile-slide > :is(.ag-lobby-memberships-panel, #ana-akis-panel, .ag-tournament-mobile-upcoming-panel) {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  padding: 0 !important;
}

.ag-tournament-mobile-slide > :is(.ag-lobby-memberships-panel, #ana-akis-panel, .ag-tournament-mobile-upcoming-panel) > .universal-panel-surface {
  inset: 4px !important;
}

.ag-tournament-mobile-slide:is(
  [data-tournament-mobile-slide="registered"],
  [data-tournament-mobile-slide="calendar"],
  [data-tournament-mobile-slide="upcoming"]
) .universal-panel-title-dice,
.ag-tournament-mobile-slide:is(
  [data-tournament-mobile-slide="registered"],
  [data-tournament-mobile-slide="calendar"],
  [data-tournament-mobile-slide="upcoming"]
) .universal-panel-header {
  display: none !important;
}

.ag-tournament-mobile-slide:is(
  [data-tournament-mobile-slide="registered"],
  [data-tournament-mobile-slide="calendar"],
  [data-tournament-mobile-slide="upcoming"]
) .universal-panel-surface {
  --universal-panel-header-height: 0px;
  --universal-panel-gap: 0px;
  -webkit-mask: none;
  mask: none;
}

.ag-tournament-mobile-slide:is(
  [data-tournament-mobile-slide="registered"],
  [data-tournament-mobile-slide="calendar"],
  [data-tournament-mobile-slide="upcoming"]
) .universal-panel-content {
  grid-template-rows: minmax(0, 1fr);
  row-gap: 0;
}

.ag-tournament-mobile-slide:is(
  [data-tournament-mobile-slide="calendar"],
  [data-tournament-mobile-slide="upcoming"]
) .ag-tournament-mobile-calendar-single {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.ag-tournament-mobile-slide:is(
  [data-tournament-mobile-slide="calendar"],
  [data-tournament-mobile-slide="upcoming"]
) .turnuva-takvimi-bolum {
  grid-template-rows: minmax(0, 1fr);
}

.ag-tournament-mobile-slide:is(
  [data-tournament-mobile-slide="calendar"],
  [data-tournament-mobile-slide="upcoming"]
) .turnuva-takvimi-bolum-baslik {
  display: none;
}

.ag-tournament-mobile-slide .universal-panel-content,
.ag-tournament-mobile-slide .universal-panel-body,
.ag-tournament-mobile-slide .ag-lobby-memberships-body,
.ag-tournament-mobile-slide .turnuva-takvimi-body {
  min-height: 0;
  height: 100%;
}

.ag-tournament-mobile-slide .ag-lobby-memberships-list.turnuva-takvimi-liste {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.ag-tournament-mobile-slide[data-tournament-mobile-slide="elimination"] > .ag-tournament-mode-grid {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 4px;
}

.ag-tournament-mobile-slide[data-tournament-mobile-slide="elimination"] .ag-mode-card {
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  grid-template-rows: auto auto !important;
  align-content: center;
  gap: 14px;
  border-radius: 14px;
}

.ag-tournament-mobile-slide[data-tournament-mobile-slide="elimination"] :is(.ag-mode-visual, .ag-mode-text, .ag-mode-specs) {
  display: none !important;
}

.ag-tournament-mobile-slide[data-tournament-mobile-slide="elimination"] .ag-mode-head {
  min-height: 40px;
  justify-content: center;
  transform: translateY(-12px);
}

.ag-tournament-mobile-slide[data-tournament-mobile-slide="elimination"] .ag-bracket-size-picker {
  justify-content: center;
  margin-top: 0;
}

.ag-tournament-mobile-slide[data-tournament-mobile-slide="elimination"] .ag-mode-copy {
  display: block;
  width: 100%;
}

body.ag-knockout-draft-active .ag-tournament-mobile-pager {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .ag-tournament-mobile-pager__track {
    transition: none;
  }

  .ag-tournament-mobile-pager__arrow::before {
    animation: none;
    background-position: 50% 50%;
  }
}
