:root {
  --bs-dark-rgb: rgb(24, 17, 60);
}

body {
  background-color: #08001c;
  background-image: url('../assets/images/katina-bg-gradient-2.png');
  background-image: url('bg.png');
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100%;
}

*,
*::before,
*::after {
  font-family: inherit;
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5% !important;
}

.kf-embed {
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100%;
}

.kf-embed .kf-floating-nav,
.kf-embed .top-bar {
  display: none !important;
}

.kf-embed .kf-result-section {
  margin-top: 28px;
}


html.generate body.generate {
  font-size: 1rem;
  margin: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: poppins, sans-serif;
  color: #fff;
}


html,
body {
  font-size: 1.6rem;
  margin: 0;
  justify-content: center;
  font-family: poppins, sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
  margin: 0.2em 0;
}

.text-center {
  text-align: center;
}

.top-bar {
  position: absolute;
  width: 90%;
  top: 0;
  left: 0;
  text-align: center;
  padding: 30px;
  z-index: 2;
  left: 0;
  right: 0;
  margin: auto;
}

.main-text {
  position: absolute;
  width: 100%;
  height: 120px;
  top: 120px;
  left: 0;
  right: 0;
  color: #fff;
  text-align: center;
  z-index: 2;
  display: none;
}

.container {
  max-width: 600px;
  width: 85%;
  left: 0;
  right: 0;
  margin: auto;
  margin-top: 100px;
  padding: 20px;
  font-size: 1.6rem;
}

.container p {
  margin-bottom: 20px;
}

.container-content {
  position: relative;
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1;
  max-width: 1000px;
}

.container-content p {
  margin-bottom: 20px;
  line-height: 1.6;
}


.cardCounters {
  margin-top: 20px;
}

.cardCounter {
  bottom: 20px;
  left: 20px;
  color: #fff;
  font-size: 2rem;
  z-index: 2;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
  height: 40px;
  width: 40px;
  border-radius: 50%;
  padding: 10px;
  text-align: center;
  line-height: 2;
  transition: all 1s;
}

.cardCounter.selected {
  background-color: #754ffe;
  color: #fff;
}


h1 {
  font-size: 3.4rem;
}

h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-top: 0px;
}

.top-bar img {
  max-width: 200px;
}


ul {
  list-style: none;
}

ul li {
  opacity: 0;
}

a,
a:link,
a:visited {
  text-decoration: none;
}


@-webkit-keyframes hover {
  to {
    translate: 0px 30px;
  }
}

@keyframes hover {
  to {
    translate: 0px 30px;
  }
}

/* 2026-09-27: arka plan parçacık canvas'ı akış dışında, sabit tam ekran katman.
   Önceden normal akışta 300x150 başlayıp JS ile ekran boyutuna büyüyordu → CLS 0,41. */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

.hands {
  --cards: 32;
  --curvature: 80deg;
  counter-reset: cards;
  position: absolute;
  height: 100%;
  bottom: -100px;
  width: 100%;
  display: flex;
  justify-content: center;
  transformx: translateY(10vmin);
  transform-style: preserve-3d;
}

.hands>* {
  --hue: calc(360deg / var(--cards) * var(--index));
  --curve: calc(var(--curvature) * ((var(--index) - (var(--cards) - 1) / 2) / var(--cards)));
  position: absolute;
  counter-increment: cards;
  flex: 0 0 auto;
  width: 12vw;
  max-width: 15vh;
  aspect-ratio: 2/3;
  transform-origin: 50% 100%;
  transform: rotate(var(--curve)) translateY(-225%);
  transition: all 0.3s;
  position: absolute;
  cursor: pointer;
  font-size: 7vmin;
  transform-style: preserve-3d;
  bottom: -390px;
}

.hands>*::before {
  content: " ";
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  color: hsl(var(--hue), 50%, 30%);
  font-weight: bold;
  width: 100%;
  height: 100%;
  border: solid 1px hsla(var(--hue), 50%, 40%, 1);
  background-color: #ccc;
  background-image: url("../assets/images/card-back-katina-white.png"), linear-gradient(to bottom right, hsl(var(--hue), 20%, 20%), hsl(calc(var(--hue) - 45deg), 40%, 50%));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.3s, translate 0s;
  box-shadow: 0px 4px 10px hsla(var(--hue), 80%, 80%, 0);
  border-radius: 8px;
  text-shadow: 0px 2px 0px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.hands>*:hover {
  -webkit-animation: hover 1s ease-in-out infinite alternate forwards;
  animation: hover 1s ease-in-out infinite alternate forwards;
}

.hands>*:hover::before {
  transform: translateY(-42.5%) rotate(calc(var(--curve) * -1)) scale(1.2);
  transition-duration: 0.2s, 0s;
  box-shadow: 0px 4px 15px hsla(var(--hue), 80%, 70%, 0.6);
  border: solid 2px hsla(var(--hue), 80%, 70%, 1);
  color: hsl(var(--hue), 60%, 80%);
  translate: 0px 0px 1px;
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hands {
    bottom: 300px;
  }

  .top-bar {
    padding: 0;
    padding-top: 20px;
  }

  .hands {
    --cards: 16;
    --curvature: 180deg;
  }

  body.generate,
  html.generate {
    overflow: hidden !important;
    width: 100vw !important;
    height: 100vh !important;
    position: relative !important;
  }


  .hands>* {
    width: 20vw;
    max-width: 20vh;
    font-size: 5vmin;
  }
}

.continue-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 2, 16, 0.76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 997;
  display: none;
}

.continue-button {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  margin: auto;
  background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 52%, #a855f7 100%);
  color: #fff;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  width: 240px;
  height: 54px;
  line-height: 52px;
  text-align: center;
  z-index: 998;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.48);
  border: 1px solid rgba(216, 180, 254, 0.38);
  display: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.continue-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(139, 92, 246, 0.62);
}

.continue-cancel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  margin: auto;
  color: rgba(233, 213, 255, 0.85);
  display: none;
  width: 200px;
  height: 36px;
  line-height: 36px;
  z-index: 999;
  text-align: center;
  font-size: 14px;
  transform: translateY(72px);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.continue-cancel:hover {
  opacity: 1;
  text-decoration: underline;
}

.tarot-form {
  position: fixed;
  display: none;
  width: min(440px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  padding: 26px 24px 24px;
  background: linear-gradient(165deg, rgba(24, 15, 48, 0.96) 0%, rgba(11, 6, 26, 0.98) 100%);
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.kf-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.kf-modal-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.kf-modal-sub {
  font-size: 13px;
  color: #b4a9cf;
  margin: 0 0 16px;
  line-height: 1.5;
}

.kf-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e9d5ff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kf-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.form-control {
  margin: 0 0 13px;
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  font-size: 14.5px !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: none !important;
}

.form-control:focus {
  border-color: #a78bfa !important;
  background-color: rgba(139, 92, 246, 0.09) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22) !important;
}

.form-control option {
  background-color: #140b29;
  color: #f5f3ff;
}

.form-control::placeholder {
  color: rgba(196, 185, 224, 0.55);
}

.kf-form-err {
  display: none;
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.36);
  color: #fecaca;
  font-size: 13px;
}

.kf-form-err.visible {
  display: block;
}

.btn-submit {
  background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 52%, #a855f7 100%);
  color: #fff;
  padding: 10px 16px;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  width: 100% !important;
  height: 50px;
  border: 1px solid rgba(216, 180, 254, 0.35);
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.42);
}

.btn-submit:hover {
  color: #fff;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(139, 92, 246, 0.55);
}

/* Drawn Katina card pills under counters */
.kf-drawn-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  min-height: 28px;
}

.kf-drawn-pill {
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.22);
  border: 1px solid rgba(196, 181, 253, 0.38);
  color: #f3e8ff;
  backdrop-filter: blur(8px);
}

/* Result Mode Scroll Unlock & Container */
html.kf-result-mode,
body.kf-result-mode,
html.generate.kf-result-mode body.generate.kf-result-mode {
  height: auto !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  display: block !important;
}

.tarot-form,
.tarot-form *,
.kf-result-section,
.kf-result-section * {
  box-sizing: border-box;
}

.kf-result-section {
  display: none;
  max-width: 780px;
  width: calc(100% - 28px);
  margin: 104px auto 64px;
  padding: 28px 26px 30px;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(22, 13, 46, 0.9) 0%, rgba(10, 5, 24, 0.95) 100%);
  border: 1px solid rgba(167, 139, 250, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.62), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  position: relative;
  z-index: 10;
  text-align: left;
}

.kf-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #f3e8ff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.kf-result-title {
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 18px;
  line-height: 1.3;
}

.kf-chosen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.kf-chosen-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(167, 139, 250, 0.22);
}

.kf-emblem {
  width: 46px;
  height: 68px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  font-weight: 700;
  color: #fff;
}

.kf-emblem.kk-abonoz { background: linear-gradient(155deg, #2d2640 0%, #141022 100%); border-color: rgba(196, 181, 253, 0.35); }
.kf-emblem.kk-yakut { background: linear-gradient(155deg, #7f1d1d 0%, #2a0a18 100%); border-color: rgba(252, 165, 165, 0.4); }
.kf-emblem.kk-zumrut { background: linear-gradient(155deg, #065f46 0%, #062822 100%); border-color: rgba(110, 231, 183, 0.4); }
.kf-emblem.kk-elmas { background: linear-gradient(155deg, #1d4ed8 0%, #17153b 100%); border-color: rgba(147, 197, 253, 0.4); }
.kf-emblem.kk-desenli { background: linear-gradient(155deg, #5b21b6 0%, #1e1038 100%); border-color: rgba(216, 180, 254, 0.42); }
.kf-emblem.kk-buyucu { background: linear-gradient(155deg, #9d174d 0%, #24092c 100%); border-color: rgba(244, 114, 182, 0.45); }

.kf-emblem-sym {
  font-size: 20px;
  line-height: 1;
}

.kf-chosen-pos {
  display: block;
  font-size: 11px;
  color: #a78bfa;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.kf-chosen-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #f8f7ff;
  line-height: 1.25;
}

.kf-chosen-series {
  display: block;
  font-size: 11.5px;
  color: #b8aed6;
  margin-top: 2px;
}

.kf-teaser-box {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.085);
  border: 1px solid rgba(167, 139, 250, 0.24);
  margin-bottom: 18px;
}

.kf-teaser-box p {
  font-size: 15px;
  line-height: 1.72;
  color: #ece8fa;
  margin: 0 0 12px;
}

.kf-teaser-box p:last-child {
  margin-bottom: 0;
}

.kf-teaser-box strong {
  color: #d8b4fe;
  font-weight: 600;
}

.kf-locked-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(139, 92, 246, 0.06);
  min-height: 365px;
}

.kf-blurred-copy {
  padding: 22px 24px 36px;
  filter: blur(4.2px);
  -webkit-filter: blur(4.2px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  opacity: 0.85;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.72) 65%, rgba(0, 0, 0, 0.2) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.72) 65%, rgba(0, 0, 0, 0.2) 100%);
}

.kf-blurred-copy h4 {
  font-size: 16px;
  font-weight: 700;
  color: #e9d5ff;
  margin: 0 0 8px;
}

.kf-blurred-copy p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #ede9fe;
  margin: 0 0 14px;
}

.kf-wa-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 64px 20px 24px;
  background: linear-gradient(180deg, rgba(10, 7, 26, 0.08) 0%, rgba(10, 7, 26, 0.56) 42%, rgba(10, 7, 26, 0.88) 100%);
}

.kf-wa-card {
  max-width: 440px;
  width: 100%;
  padding: 24px 22px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(20, 16, 44, 0.94) 0%, rgba(10, 8, 26, 0.96) 100%);
  border: 1px solid rgba(34, 197, 94, 0.42);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.kf-wa-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 163, 74, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.42);
  color: #4ade80;
}

.kf-wa-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.kf-wa-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #cfc7e6;
  margin: 0 0 18px;
}

.kf-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #15803d 0%, #16a34a 52%, #22c55e 100%);
  border: 1px solid rgba(74, 222, 128, 0.48);
  color: #fff !important;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.4);
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.kf-wa-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 16px 34px rgba(34, 197, 94, 0.5);
}

.kf-wa-note {
  font-size: 12px;
  color: #9f94c0;
  margin-top: 10px;
}

.kf-result-actions {
  text-align: center;
  margin-top: 18px;
}

.kf-reset-link {
  color: #c4b5fd;
  font-size: 13.5px;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
}

.kf-reset-link:hover {
  color: #fff;
}

@media screen and (max-width: 720px) {
  .kf-chosen-grid {
    grid-template-columns: 1fr;
  }
  .kf-result-section {
    margin-top: 90px;
    padding: 20px 16px 22px;
  }
  .kf-locked-wrap {
    min-height: 380px;
  }
}


.loading-pulse {
  position: relative;
  width: 6px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  -webkit-animation: pulse 750ms infinite;
  animation: pulse 750ms infinite;
  -webkit-animation-delay: 250ms;
  animation-delay: 250ms;
  border-radius: 10px;
  left: 0;
  right: 0;
  margin: auto;
}

.loading-pulse:before,
.loading-pulse:after {
  content: "";
  position: absolute;
  display: block;
  height: 16px;
  width: 6px;
  background: rgba(255, 255, 255, 0.2);
  top: 50%;
  border-radius: 10px;
  transform: translateY(-50%);
  -webkit-animation: pulse 750ms infinite;
  animation: pulse 750ms infinite;
}

.loading-pulse:before {
  left: -12px;
}

.loading-pulse:after {
  left: 12px;
  -webkit-animation-delay: 500ms;
  animation-delay: 500ms;
}

.form-loading {
  display: none;
  width: 100%;
  height: 100%;
  padding: 100px 20px;
  text-align: center;
  left: 0;
  right: 0;
  margin: auto;
  max-width: 300px;
}

.form-loading p {
  margin-top: 20px;
  font-size: 2rem;
}

.form-loading p span {
  display: block;
  font-size: 1.4rem;
  opacity: 0.5;
}


@-webkit-keyframes pulse {
  50% {
    background: white;
  }
}

@keyframes pulse {
  50% {
    background: white;
  }
}

.hands:has(li:nth-child(1)) {
  --cards: 1;
}

.hands>*:nth-child(1) {
  --index: 0;
}

.hands:has(li:nth-child(2)) {
  --cards: 2;
}

.hands>*:nth-child(2) {
  --index: 1;
}

.hands:has(li:nth-child(3)) {
  --cards: 3;
}

.hands>*:nth-child(3) {
  --index: 2;
}

.hands:has(li:nth-child(4)) {
  --cards: 4;
}

.hands>*:nth-child(4) {
  --index: 3;
}

.hands:has(li:nth-child(5)) {
  --cards: 5;
}

.hands>*:nth-child(5) {
  --index: 4;
}

.hands:has(li:nth-child(6)) {
  --cards: 6;
}

.hands>*:nth-child(6) {
  --index: 5;
}

.hands:has(li:nth-child(7)) {
  --cards: 7;
}

.hands>*:nth-child(7) {
  --index: 6;
}

.hands:has(li:nth-child(8)) {
  --cards: 8;
}

.hands>*:nth-child(8) {
  --index: 7;
}

.hands:has(li:nth-child(9)) {
  --cards: 9;
}

.hands>*:nth-child(9) {
  --index: 8;
}

.hands:has(li:nth-child(10)) {
  --cards: 10;
}

.hands>*:nth-child(10) {
  --index: 9;
}

.hands:has(li:nth-child(11)) {
  --cards: 11;
}

.hands>*:nth-child(11) {
  --index: 10;
}

.hands:has(li:nth-child(12)) {
  --cards: 12;
}

.hands>*:nth-child(12) {
  --index: 11;
}

.hands:has(li:nth-child(13)) {
  --cards: 13;
}

.hands>*:nth-child(13) {
  --index: 12;
}

.hands:has(li:nth-child(14)) {
  --cards: 14;
}

.hands>*:nth-child(14) {
  --index: 13;
}

.hands:has(li:nth-child(15)) {
  --cards: 15;
}

.hands>*:nth-child(15) {
  --index: 14;
}

.hands:has(li:nth-child(16)) {
  --cards: 16;
}

.hands>*:nth-child(16) {
  --index: 15;
}

.hands:has(li:nth-child(17)) {
  --cards: 17;
}

.hands>*:nth-child(17) {
  --index: 16;
}

.hands:has(li:nth-child(18)) {
  --cards: 18;
}

.hands>*:nth-child(18) {
  --index: 17;
}

.hands:has(li:nth-child(19)) {
  --cards: 19;
}

.hands>*:nth-child(19) {
  --index: 18;
}

.hands:has(li:nth-child(20)) {
  --cards: 20;
}

.hands>*:nth-child(20) {
  --index: 19;
}

.hands:has(li:nth-child(21)) {
  --cards: 21;
}

.hands>*:nth-child(21) {
  --index: 20;
}

.hands:has(li:nth-child(22)) {
  --cards: 22;
}

.hands>*:nth-child(22) {
  --index: 21;
}

.hands:has(li:nth-child(23)) {
  --cards: 23;
}

.hands>*:nth-child(23) {
  --index: 22;
}

.hands:has(li:nth-child(24)) {
  --cards: 24;
}

.hands>*:nth-child(24) {
  --index: 23;
}

.hands:has(li:nth-child(25)) {
  --cards: 25;
}

.hands>*:nth-child(25) {
  --index: 24;
}

.hands:has(li:nth-child(26)) {
  --cards: 26;
}

.hands>*:nth-child(26) {
  --index: 25;
}

.hands:has(li:nth-child(27)) {
  --cards: 27;
}

.hands>*:nth-child(27) {
  --index: 26;
}

.hands:has(li:nth-child(28)) {
  --cards: 28;
}

.hands>*:nth-child(28) {
  --index: 27;
}

.hands:has(li:nth-child(29)) {
  --cards: 29;
}

.hands>*:nth-child(29) {
  --index: 28;
}

.hands:has(li:nth-child(30)) {
  --cards: 30;
}

.hands>*:nth-child(30) {
  --index: 29;
}

.hands:has(li:nth-child(31)) {
  --cards: 31;
}

.hands>*:nth-child(31) {
  --index: 30;
}

.hands:has(li:nth-child(32)) {
  --cards: 32;
}

.hands>*:nth-child(32) {
  --index: 31;
}

@media screen and (max-height: 500px) {
  .hands {
    --cards: 32;
    --curvature: 80deg;
    counter-reset: cards;
    position: absolute;
    height: 100%;
    bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    transform-style: preserve-3d;
  }
}


@media screen and (max-width: 1280px) {
  .top-bar {
    max-width: 100%;
    padding: 0;
    padding-top: 40px;
  }
}

@media screen and (max-width: 700px) {
  .sub-area {
    padding: 20px;
  }

  .subscribe-button {
    font-size: 18px !important;
  }
  .sub-title {
    font-size: 20px !important;
  }
}