:root {
  color-scheme: dark;
  font-family: "Sora", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050505;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background: #050505;
}

a {
  color: inherit;
}

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

.qr-choice {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #050505;
  transition:
    grid-template-columns 700ms cubic-bezier(0.2, 0.75, 0.25, 1),
    grid-template-rows 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.qr-choice::after {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.54) 22%, rgba(255, 255, 255, 0.54) 78%, transparent);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
  pointer-events: none;
  transition: opacity 300ms ease, transform 600ms ease;
}

.choice-panel {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  text-decoration: none;
  outline: 0;
  animation: panel-reveal 900ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  transition:
    opacity 360ms ease,
    transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.choice-panel--day {
  --reveal-direction: -26px;
}

.choice-panel--night {
  --reveal-direction: 26px;
  animation-delay: 100ms;
}

.choice-panel__image,
.choice-panel__shade {
  position: absolute;
  inset: 0;
}

.choice-panel__image {
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.045);
  transition: transform 1.1s cubic-bezier(0.2, 0.75, 0.25, 1), filter 700ms ease;
  animation: image-drift 15s ease-in-out infinite alternate;
}

.choice-panel--day .choice-panel__image {
  background-image: url("barracuda-bar-webseite.png");
  background-position: 49% center;
}

.choice-panel--night .choice-panel__image {
  background-image: url("barracuda-bar-instagram.png");
  background-position: 12% center;
  animation-delay: -7s;
}

.choice-panel__shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.06) 38%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(90deg, rgba(4, 4, 4, 0.12), transparent 60%);
  transition: background-color 600ms ease;
}

.choice-panel__content {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 4vw, 76px);
  bottom: clamp(70px, 9vh, 105px);
  left: clamp(18px, 4vw, 76px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.72);
  transition: transform 650ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.choice-panel__eyebrow {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.62rem, 0.75vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.choice-panel__title {
  font-size: clamp(1.8rem, 4.1vw, 4.7rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.choice-panel__action {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 7px;
  margin-top: clamp(18px, 3vh, 30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.68rem, 0.9vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.choice-panel__action span {
  display: inline-block;
  transition: transform 350ms ease;
}

.brand-lockup {
  position: absolute;
  z-index: 8;
  top: clamp(18px, 5vh, 54px);
  left: 50%;
  width: clamp(313px, 41vw, 625px);
  padding: 8px 18px 12px;
  border-radius: 50%;
  isolation: isolate;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 300ms ease, transform 600ms ease;
  animation: logo-arrive 1.3s 180ms cubic-bezier(0.16, 0.82, 0.24, 1) both;
}

.brand-lockup::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8% -6%;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at center,
    rgba(5, 5, 7, 0.68) 0%,
    rgba(5, 5, 7, 0.46) 48%,
    rgba(5, 5, 7, 0.18) 74%,
    rgba(5, 5, 7, 0) 100%
  );
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  animation: logo-backdrop-arrive 1.15s 320ms ease-out both;
}

.brand-lockup img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
  animation:
    logo-image-arrive 1s 450ms cubic-bezier(0.16, 0.82, 0.24, 1) both,
    logo-glow 4.5s 1.65s ease-in-out infinite alternate;
}

.sponsor-footer {
  position: absolute;
  z-index: 12;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 5, 6, 0.52);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: opacity 300ms ease, transform 600ms ease;
  animation: sponsor-arrive 800ms 900ms ease-out both;
}

.sponsor-footer__label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sponsor-footer__link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 250ms ease, transform 250ms ease;
}

.sponsor-footer__link img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(59, 205, 255, 0.2);
}

.sponsor-footer__link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.sponsor-footer__link:focus-visible {
  border-radius: 4px;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.qr-choice.is-leaving {
  pointer-events: none;
}

.qr-choice[data-leaving="left"] {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0fr);
}

.qr-choice[data-leaving="right"] {
  grid-template-columns: minmax(0, 0fr) minmax(0, 1fr);
}

.qr-choice.is-leaving::after {
  opacity: 0;
  transform: scaleY(0);
}

.qr-choice.is-leaving .brand-lockup,
.qr-choice.is-leaving .sponsor-footer {
  animation: none;
  opacity: 0;
}

.qr-choice.is-leaving .brand-lockup {
  transform: translate(-50%, -12px);
}

.qr-choice.is-leaving .sponsor-footer {
  transform: translate(-50%, 8px);
}

.choice-panel.is-selected,
.choice-panel.is-dismissed {
  animation: none;
}

.choice-panel.is-selected {
  z-index: 6;
}

.choice-panel.is-selected .choice-panel__image {
  animation: none;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.12);
}

.choice-panel.is-selected .choice-panel__content {
  transform: translateY(-10px);
}

.choice-panel.is-selected .choice-panel__action span {
  transform: translateX(12px);
}

.choice-panel.is-dismissed {
  opacity: 0;
}

.choice-panel--day.is-dismissed {
  transform: translateX(40px);
}

.choice-panel--night.is-dismissed {
  transform: translateX(-40px);
}

@media (hover: hover) and (pointer: fine) {
  .qr-choice:has(.choice-panel:hover) .choice-panel:not(:hover) .choice-panel__image {
    filter: brightness(0.7) saturate(0.78);
  }

  .choice-panel:hover .choice-panel__image {
    transform: scale(1.09);
  }

  .choice-panel:hover .choice-panel__content {
    transform: translateY(-8px);
  }

  .choice-panel:hover .choice-panel__action span {
    transform: translateX(5px);
  }
}

.choice-panel:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.choice-panel:focus-visible .choice-panel__image {
  transform: scale(1.09);
}

@keyframes panel-reveal {
  from {
    opacity: 0;
    transform: translateX(var(--reveal-direction));
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes image-drift {
  from {
    transform: scale(1.045) translate3d(-0.6%, -0.3%, 0);
  }

  to {
    transform: scale(1.075) translate3d(0.8%, 0.4%, 0);
  }
}

@keyframes logo-arrive {
  from {
    opacity: 0;
    transform: translate(-50%, -22px) scale(0.92);
    filter: blur(14px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes logo-backdrop-arrive {
  from {
    opacity: 0;
    transform: scale(0.82);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logo-image-arrive {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logo-glow {
  from {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.08));
  }

  to {
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.15));
  }
}

@keyframes sponsor-arrive {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 720px) {
  .qr-choice {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .qr-choice::after {
    inset: 50% 0 auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  }

  .choice-panel {
    min-height: 0;
  }

  .qr-choice[data-leaving="left"] {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 0fr);
  }

  .qr-choice[data-leaving="right"] {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 0fr) minmax(0, 1fr);
  }

  .qr-choice.is-leaving::after {
    transform: scaleX(0);
  }

  .choice-panel--day.is-dismissed {
    transform: translateY(40px);
  }

  .choice-panel--night.is-dismissed {
    transform: translateY(-40px);
  }

  .brand-lockup {
    top: max(14px, env(safe-area-inset-top));
    width: clamp(250px, 82vw, 388px);
    padding: 6px 12px 9px;
  }

  .choice-panel__content {
    right: 14px;
    bottom: max(72px, calc(env(safe-area-inset-bottom) + 62px));
    left: 14px;
  }

  .sponsor-footer {
    bottom: max(8px, env(safe-area-inset-bottom));
    gap: 5px;
    padding: 5px 7px;
  }

  .sponsor-footer__label {
    font-size: 0.46rem;
  }

  .sponsor-footer__link {
    gap: 5px;
    font-size: 0.56rem;
  }

  .sponsor-footer__link img {
    width: 19px;
    height: 19px;
    border-radius: 6px;
  }

  .choice-panel__eyebrow {
    margin-bottom: 8px;
    font-size: 0.55rem;
    letter-spacing: 0.18em;
  }

  .choice-panel__title {
    font-size: clamp(1.35rem, 7.5vw, 2.15rem);
    letter-spacing: -0.055em;
  }

  .choice-panel__action {
    gap: 6px;
    margin-top: 16px;
    font-size: 0.6rem;
    letter-spacing: 0.01em;
  }
}

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