:root {
  color-scheme: light;
  font-family: Arial, "Tahoma", sans-serif;
  background: #f7f7f2;
  --blue: #83a5d8;
  --deep-blue: #5f7fc5;
  --pink: #e5a5cf;
  --yellow: #e9c66f;
  --green: #a9d7a7;
  --ink: #40506c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 18rem;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #f7f7f2 url("kinkder-01.png") center / cover no-repeat;
}

.landing::after {
  position: absolute;
  z-index: 0;
  inset: -20%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.7), transparent 18%),
    radial-gradient(circle at 65% 45%, rgba(228, 165, 207, 0.08), transparent 25%);
  content: "";
  animation: soft-light 10s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  padding: clamp(11rem, 26svh, 25rem) 1.25rem 3rem;
}

.brand {
  width: clamp(15rem, 28vw, 26rem);
  margin: 0;
  animation: brand-arrival 900ms cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
  filter: drop-shadow(0 0.5rem 1rem rgba(96, 122, 171, 0.08));
}

.brand img {
  animation: brand-float 5s ease-in-out 1s infinite;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 0.8vw, 0.75rem);
  margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
  animation: content-arrival 700ms ease-out 250ms both;
}

.image-link {
  width: clamp(8.8rem, 14vw, 12.75rem);
  border-radius: 999px;
  transition: transform 180ms ease, filter 180ms ease;
}

.image-link:hover {
  filter: brightness(1.03) saturate(1.04) drop-shadow(0 0.4rem 0.55rem rgba(79, 105, 154, 0.18));
  transform: translateY(-4px) rotate(-1deg) scale(1.03);
}

.image-link:nth-child(2):hover {
  transform: translateY(-4px) rotate(1deg) scale(1.03);
}

.image-link:focus-visible,
.ticket-trigger:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
  filter: drop-shadow(0 0 0.3rem rgba(83, 116, 172, 0.85));
}

.ticket-trigger {
  position: relative;
  width: clamp(16rem, 27vw, 23rem);
  padding: 0;
  border: 0;
  margin-top: clamp(2rem, 3.8vw, 2.75rem);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  animation: content-arrival 700ms ease-out 420ms both, cta-bounce 4s ease-in-out 1.5s infinite;
  transition: filter 180ms ease, transform 180ms ease;
}

.ticket-trigger:hover {
  filter: brightness(1.04) saturate(1.07) drop-shadow(0 0.55rem 0.7rem rgba(84, 151, 98, 0.24));
  transform: translateY(-4px) scale(1.025);
}

.ticket-trigger:active {
  transform: translateY(0) scale(0.98);
}

.cta-glow {
  position: absolute;
  z-index: -1;
  inset: 12% 5%;
  border-radius: inherit;
  background: rgba(143, 207, 145, 0.45);
  animation: cta-glow 2.2s ease-out infinite;
}

.fun-effects {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.float-shape {
  position: absolute;
  display: block;
  opacity: 0.55;
  animation: drifting 8s ease-in-out infinite alternate;
}

.shape-dot {
  width: 0.8rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0.35rem rgba(229, 165, 207, 0.16);
}

.shape-ring {
  width: 1.55rem;
  aspect-ratio: 1;
  border: 0.35rem solid var(--yellow);
  border-radius: 50%;
}

.shape-pill {
  width: 0.65rem;
  height: 2.3rem;
  border-radius: 999px;
  background: var(--blue);
  transform: rotate(24deg);
}

.shape-star {
  width: 1.55rem;
  aspect-ratio: 1;
  background: var(--yellow);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%);
}

.shape-1 { top: 12%; left: 22%; animation-delay: -1s; }
.shape-2 { top: 18%; right: 24%; animation-delay: -4s; }
.shape-3 { top: 47%; left: 18%; animation-delay: -2s; }
.shape-4 { top: 54%; right: 18%; animation-delay: -5s; }
.shape-5 { bottom: 17%; left: 32%; animation-delay: -3s; background: var(--green); }
.shape-6 { bottom: 22%; right: 31%; animation-delay: -6s; background: var(--pink); }
.shape-7 { bottom: 8%; left: 15%; animation-delay: -2.5s; border-color: var(--blue); }
.shape-8 { top: 29%; right: 9%; animation-delay: -7s; background: var(--yellow); }

.booking-modal[hidden] {
  display: none;
}

.booking-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  overflow-y: auto;
  padding: 1.25rem;
  place-items: center;
  background: rgba(62, 74, 105, 0.4);
  backdrop-filter: blur(9px);
  opacity: 0;
  transition: opacity 240ms ease;
}

.booking-modal.is-open {
  opacity: 1;
}

.modal-card {
  position: relative;
  width: min(45rem, 100%);
  max-height: calc(100svh - 2.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 0.35rem solid rgba(255, 255, 255, 0.86);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 10% 10%, rgba(234, 198, 111, 0.2), transparent 22%),
    radial-gradient(circle at 92% 30%, rgba(229, 165, 207, 0.22), transparent 25%),
    #fffefa;
  box-shadow: 0 1.5rem 4.5rem rgba(54, 66, 96, 0.3);
  color: var(--ink);
  transform: translateY(2rem) scale(0.93);
  transition: transform 320ms cubic-bezier(0.18, 0.89, 0.32, 1.2);
  scrollbar-width: none;
}

.modal-card::-webkit-scrollbar {
  display: none;
}

.booking-modal.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-card::before,
.modal-card::after {
  position: absolute;
  top: 39%;
  width: 1.8rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #a7acb9;
  content: "";
  opacity: 0.55;
}

.modal-card::before { right: -1.2rem; }
.modal-card::after { left: -1.2rem; }

.modal-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  display: grid;
  width: 2.6rem;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: #f6d8e9;
  color: #8c567a;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.modal-close:hover {
  background: #efc4dc;
  transform: rotate(8deg) scale(1.08);
}

.modal-close:focus-visible,
.demo-submit:focus-visible,
.quantity-control button:focus-visible {
  outline: 3px solid rgba(95, 127, 197, 0.55);
  outline-offset: 3px;
}

.modal-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 3rem 1.25rem 0;
  border-bottom: 2px dashed rgba(126, 151, 195, 0.27);
}

.modal-ticket-icon {
  display: grid;
  flex: 0 0 auto;
  width: 4.2rem;
  aspect-ratio: 1;
  border-radius: 1.35rem;
  place-items: center;
  background: linear-gradient(145deg, #f8e4a5, #efc36b);
  box-shadow: 0 0.65rem 1.2rem rgba(181, 140, 58, 0.18);
  font-size: 2.15rem;
  transform: rotate(4deg);
}

.demo-badge {
  position: absolute;
  top: -0.65rem;
  right: 0;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--pink);
  color: #713e63;
  font-size: 0.73rem;
  font-weight: 700;
}

.modal-kicker {
  margin: 0 0 0.2rem;
  color: #779865;
  font-size: 0.8rem;
  font-weight: 700;
}

.modal-header h2 {
  margin: 0;
  color: #5978b5;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.modal-header p:last-child {
  margin: 0.3rem 0 0;
  color: #7d8799;
  font-size: 0.9rem;
}

.booking-form {
  padding-top: 1.35rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field,
.quantity-field,
.time-field {
  display: grid;
  min-width: 0;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  margin: 0;
}

.field > span,
.quantity-field legend,
.time-field legend {
  color: #566985;
  font-size: 0.85rem;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  height: 3rem;
  padding: 0 0.9rem;
  border: 2px solid #e8edf5;
  border-radius: 0.95rem;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field input:focus,
.field select:focus {
  border-color: #9ab3dd;
  box-shadow: 0 0 0 0.25rem rgba(131, 165, 216, 0.15);
  transform: translateY(-1px);
}

.field input::placeholder {
  color: #b4bac7;
}

.field input:disabled,
.field select:disabled {
  border-color: #edf0f5;
  background: #f8f9fb;
  color: #9da5b3;
  cursor: not-allowed;
  opacity: 1;
  -webkit-text-fill-color: #9da5b3;
}

.booking-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
  margin-top: 1rem;
}

.quantity-control {
  display: grid;
  height: 3rem;
  grid-template-columns: 2.7rem 3rem 2.7rem;
  align-items: center;
  border: 2px solid #e8edf5;
  border-radius: 0.95rem;
  background: #fff;
  direction: ltr;
  overflow: hidden;
}

.quantity-control button {
  height: 100%;
  padding: 0;
  border: 0;
  background: #f0f5fc;
  color: #6585bc;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
}

.quantity-control button:hover {
  background: #e3edf9;
}

.quantity-control button:disabled {
  background: #f3f5f8;
  color: #b9c0cb;
  cursor: not-allowed;
}

.quantity-control output {
  text-align: center;
  font-weight: 700;
}

.time-field {
  margin-top: 1rem;
}

.time-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.time-options label {
  cursor: pointer;
}

.time-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.time-options span {
  display: block;
  padding: 0.75rem 0.35rem;
  border: 2px solid #e8edf5;
  border-radius: 0.9rem;
  background: #fff;
  color: #68748a;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.time-options input:checked + span {
  border-color: #9fcda0;
  background: #edf8ed;
  color: #537d55;
  transform: translateY(-2px);
}

.time-options input:disabled + span {
  cursor: not-allowed;
  opacity: 0.68;
}

.time-options input:focus-visible + span {
  outline: 3px solid rgba(95, 127, 197, 0.45);
  outline-offset: 2px;
}

.ticket-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  margin-top: 1.15rem;
  border: 2px dashed #e8c76d;
  border-radius: 1rem;
  background: #fff9e9;
}

.ticket-summary span {
  display: block;
  font-weight: 700;
}

.ticket-summary small {
  display: block;
  margin-top: 0.2rem;
  color: #8e918f;
}

.ticket-summary strong {
  color: #ca8c35;
  font-size: 1.25rem;
  white-space: nowrap;
}

.demo-submit {
  display: flex;
  width: 100%;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 1rem;
  margin-top: 1rem;
  background: linear-gradient(135deg, #83a5d8, #6e91ca);
  box-shadow: 0 0.7rem 1.2rem rgba(95, 127, 197, 0.22);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.demo-submit:hover {
  box-shadow: 0 0.9rem 1.5rem rgba(95, 127, 197, 0.28);
  transform: translateY(-2px);
}

.demo-submit:disabled,
.demo-submit:disabled:hover {
  background: linear-gradient(135deg, #aebbd0, #9baac2);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.82;
  transform: none;
}

.display-note {
  margin: 0.65rem 0 0;
  color: #9b9fac;
  text-align: center;
  font-size: 0.75rem;
}

@keyframes brand-arrival {
  from { opacity: 0; transform: translateY(-1.25rem) scale(0.82) rotate(-2deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes content-arrival {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes brand-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-0.4rem) rotate(0.35deg); }
}

@keyframes cta-bounce {
  0%, 78%, 100% { translate: 0 0; }
  84% { translate: 0 -0.35rem; }
  90% { translate: 0 0; }
  95% { translate: 0 -0.18rem; }
}

@keyframes cta-glow {
  0% { opacity: 0.5; transform: scale(0.94); }
  70%, 100% { opacity: 0; transform: scale(1.12, 1.35); }
}

@keyframes drifting {
  from { translate: 0 0; rotate: -8deg; }
  to { translate: 0.8rem -1.5rem; rotate: 18deg; }
}

@keyframes soft-light {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1%, 0) scale(1.06); }
}

@media (max-width: 40rem) {
  .modal-card {
    border-radius: 1.5rem;
  }

  .modal-header {
    align-items: flex-start;
    padding-right: 0;
  }

  .modal-ticket-icon {
    width: 3.6rem;
    font-size: 1.75rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .booking-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .quantity-control {
    width: 100%;
    grid-template-columns: 1fr 3rem 1fr;
  }
}

@media (max-width: 32rem) {
  .landing {
    background-position: center top;
    background-size: 100% 106%;
  }

  .hero {
    padding-top: clamp(10.5rem, 25svh, 14rem);
  }

  .brand {
    width: min(66vw, 17rem);
  }

  .social-links {
    width: 100%;
    gap: 0.3rem;
    margin-top: 1.6rem;
  }

  .image-link {
    width: min(44vw, 10.5rem);
  }

  .ticket-trigger {
    width: min(78vw, 19rem);
    margin-top: 1.8rem;
  }

  .float-shape {
    opacity: 0.4;
    scale: 0.8;
  }

  .booking-modal {
    align-items: start;
    padding: 0.65rem;
  }

  .modal-card {
    max-height: calc(100svh - 1.3rem);
    padding: 1rem;
  }

  .modal-close {
    top: 0.8rem;
    left: 0.8rem;
  }

  .modal-header {
    padding-top: 2rem;
  }

  .modal-ticket-icon {
    display: none;
  }

  .time-options {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 36rem) and (orientation: landscape) {
  .hero {
    justify-content: center;
    padding-top: 2rem;
  }

  .brand {
    width: 13rem;
  }

  .social-links,
  .ticket-trigger {
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
