/* Arcade Cookie Experience
 * Isolated with the ace- prefix so it can be removed without affecting the site.
 */
body.ace-is-locked {
  overflow: hidden !important;
}

.ace-root,
.ace-root * {
  box-sizing: border-box;
}

.ace-root {
  --ace-cyan: #64efff;
  --ace-pink: #ff4fca;
  --ace-ink: #06101f;
  --ace-text: #f4f8ff;
  --ace-muted: #b9c9df;
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  overflow: hidden;
  color: var(--ace-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  pointer-events: none;
}

.ace-root[hidden],
.ace-root [hidden] {
  display: none !important;
}

.ace-root::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 20, .44);
  opacity: 0;
  transition: opacity .35s ease;
}

.ace-root.ace-is-prompting,
.ace-root.ace-is-playing,
.ace-root.ace-is-settings {
  pointer-events: auto;
}

.ace-root.ace-is-prompting::before,
.ace-root.ace-is-playing::before,
.ace-root.ace-is-settings::before {
  opacity: 1;
}

.ace-root.ace-is-playing::before {
  background:
    radial-gradient(circle at 50% 78%, rgba(255, 79, 202, .1), transparent 38%),
    linear-gradient(180deg, rgba(2, 8, 20, .22), rgba(2, 8, 20, .55));
}

.ace-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(100, 239, 255, .025) 3px 4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.ace-is-prompting .ace-scanlines,
.ace-is-playing .ace-scanlines,
.ace-is-settings .ace-scanlines {
  opacity: 1;
}

.ace-consent {
  position: absolute;
  right: clamp(12px, 3vw, 36px);
  bottom: clamp(12px, 3vw, 32px);
  left: clamp(12px, 3vw, 36px);
  width: min(900px, calc(100% - clamp(24px, 6vw, 72px)));
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(100, 239, 255, .48);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(100, 239, 255, .08), transparent 28%, transparent 72%, rgba(255, 79, 202, .08)),
    rgba(5, 15, 33, .94);
  box-shadow:
    0 0 0 1px rgba(255, 79, 202, .16) inset,
    0 0 36px rgba(100, 239, 255, .13),
    0 24px 80px rgba(0, 0, 0, .58);
  transform: translateY(calc(100% + 48px));
  opacity: 0;
  pointer-events: auto;
}

.ace-is-prompting .ace-consent {
  animation: ace-panel-in .55s cubic-bezier(.18, .86, .3, 1.15) forwards;
}

.ace-consent::before,
.ace-settings-panel::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -1px;
  left: 8%;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ace-cyan), transparent);
  box-shadow: 0 0 13px var(--ace-cyan);
}

.ace-consent::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 8%;
  bottom: -1px;
  width: 32%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ace-pink), transparent);
  box-shadow: 0 0 13px var(--ace-pink);
}

.ace-consent-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding: clamp(22px, 3.2vw, 34px);
}

.ace-consent-copy {
  min-width: 0;
}

.ace-kicker,
.ace-status-label,
.ace-settings-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px;
  color: var(--ace-cyan);
  font: 700 11px/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ace-kicker::before,
.ace-status-label::before,
.ace-settings-kicker::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: ace-led 1.15s steps(2, end) infinite;
}

.ace-consent h2,
.ace-settings-panel h2 {
  margin: 0;
  color: #fff;
  font: 850 clamp(23px, 4vw, 38px)/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: -.045em;
  text-shadow: 2px 0 0 rgba(255, 79, 202, .35), -2px 0 0 rgba(100, 239, 255, .3);
  text-transform: uppercase;
}

.ace-consent-text {
  margin: 13px 0 0;
  color: var(--ace-muted);
  font-size: clamp(15px, 2vw, 17px);
}

.ace-actions {
  display: grid;
  gap: 10px;
}

.ace-button,
.ace-text-button,
.ace-skip,
.ace-reopen {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.ace-button {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(100, 239, 255, .6);
  border-radius: 8px;
  background: rgba(100, 239, 255, .06);
  color: #eef9ff;
  font: 800 12px/1.25 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .055em;
  text-align: center;
  text-transform: uppercase;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.ace-button::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 4px;
  pointer-events: none;
}

.ace-button:hover {
  transform: translateY(-2px);
  border-color: #fff;
  background: rgba(100, 239, 255, .13);
  box-shadow: 0 8px 28px rgba(100, 239, 255, .16);
}

.ace-button:active {
  transform: translateY(1px) scale(.99);
}

.ace-button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--ace-cyan), #75b8ff 56%, #c497ff);
  color: var(--ace-ink);
  box-shadow: 0 9px 30px rgba(100, 239, 255, .2);
}

.ace-button-primary:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #9af6ff, #97caff 56%, #e0b6ff);
  box-shadow: 0 12px 34px rgba(100, 239, 255, .32);
}

.ace-button:disabled {
  cursor: wait;
  opacity: .55;
  transform: none;
}

.ace-text-button {
  justify-self: center;
  padding: 5px 8px;
  background: transparent;
  color: #a9b9cf;
  font: 700 11px/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .08em;
  text-decoration: underline;
  text-decoration-color: rgba(169, 185, 207, .45);
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.ace-text-button:hover {
  color: #fff;
  text-decoration-color: var(--ace-pink);
}

.ace-button:focus-visible,
.ace-text-button:focus-visible,
.ace-skip:focus-visible,
.ace-reopen:focus-visible,
.ace-option input:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 79, 202, .55);
}

.ace-consent.ace-is-leaving {
  animation: ace-panel-out .32s cubic-bezier(.6, 0, 1, .5) forwards;
}

.ace-particles {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ace-physics-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
}

.ace-cookie {
  position: absolute;
  z-index: var(--ace-z, 1);
  top: 0;
  left: var(--ace-left, 50%);
  display: block;
  width: var(--ace-size, 92px);
  height: auto;
  aspect-ratio: 1295 / 1215;
  object-fit: contain;
  filter: drop-shadow(0 10px 11px rgba(0, 0, 0, .34));
  opacity: 0;
  transform: translate3d(0, calc(-1 * var(--ace-start, 200px)), 0) rotate(var(--ace-rotate-start, 0deg));
  will-change: transform, opacity;
  animation: ace-cookie-drop var(--ace-duration, 1.2s) cubic-bezier(.2, .7, .25, 1) var(--ace-delay, 0s) forwards;
}

.ace-cookie-boss {
  z-index: 500 !important;
  filter:
    drop-shadow(0 0 16px rgba(255, 79, 202, .72))
    drop-shadow(0 0 26px rgba(100, 239, 255, .58))
    drop-shadow(0 20px 20px rgba(0, 0, 0, .5));
  animation-name: ace-boss-drop;
  animation-timing-function: cubic-bezier(.15, .78, .2, 1.08);
}

.ace-crumb {
  aspect-ratio: 1;
  opacity: .82;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .28));
}

.ace-status {
  position: absolute;
  z-index: 700;
  top: clamp(18px, 5vh, 54px);
  left: 50%;
  width: min(600px, calc(100% - 28px));
  padding: 14px 18px;
  border: 1px solid rgba(100, 239, 255, .44);
  border-radius: 10px;
  background: rgba(5, 15, 33, .88);
  box-shadow: 0 0 32px rgba(100, 239, 255, .12), 0 14px 42px rgba(0, 0, 0, .28);
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.ace-status-label {
  justify-content: center;
  margin: 0;
  color: var(--ace-cyan);
  font-size: clamp(11px, 2.8vw, 15px);
}

.ace-status.ace-is-warning {
  border-color: rgba(255, 79, 202, .72);
  box-shadow: 0 0 36px rgba(255, 79, 202, .2), 0 14px 42px rgba(0, 0, 0, .28);
  animation: ace-warning .38s steps(2, end) 2;
}

.ace-status.ace-is-warning .ace-status-label {
  color: #ff93df;
}

.ace-skip {
  position: absolute;
  z-index: 710;
  top: clamp(82px, 12vh, 120px);
  left: 50%;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(5, 15, 33, .78);
  color: #fff;
  font: 750 12px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .06em;
  transform: translateX(-50%);
  transition: border-color .16s ease, background .16s ease;
}

.ace-skip:hover {
  border-color: var(--ace-cyan);
  background: rgba(12, 31, 59, .95);
}

.ace-settings {
  position: absolute;
  z-index: 800;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2, 8, 20, .62);
  pointer-events: auto;
}

.ace-settings-panel {
  position: relative;
  width: min(590px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid rgba(100, 239, 255, .42);
  border-radius: 18px;
  background: rgba(5, 15, 33, .97);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6), 0 0 36px rgba(100, 239, 255, .1);
  animation: ace-settings-in .25s ease-out both;
}

.ace-settings-panel h2 {
  font-size: clamp(22px, 4vw, 31px);
}

.ace-settings-intro {
  margin: 12px 0 20px;
  color: var(--ace-muted);
  font-size: 14px;
}

.ace-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, .11);
}

.ace-option strong,
.ace-option small {
  display: block;
}

.ace-option strong {
  margin-bottom: 3px;
  color: #f6f9ff;
  font-size: 14px;
}

.ace-option small {
  color: #aabbd1;
  font-size: 13px;
  line-height: 1.45;
}

.ace-option input {
  width: 22px;
  height: 22px;
  margin: 2px;
  accent-color: var(--ace-cyan);
}

.ace-always-on {
  padding: 4px 7px;
  border: 1px solid rgba(100, 239, 255, .32);
  border-radius: 4px;
  color: var(--ace-cyan);
  font: 800 10px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .08em;
}

.ace-settings-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.ace-settings-actions .ace-button {
  min-width: 150px;
}

.ace-reopen {
  position: fixed;
  z-index: 2147482900;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(100, 239, 255, .26);
  border-radius: 999px;
  background: rgba(5, 15, 33, .88);
  color: #dce9f8;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
  font: 700 10px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .055em;
  text-transform: uppercase;
  backdrop-filter: blur(9px);
  pointer-events: auto;
  transition: color .16s ease, border-color .16s ease, transform .16s ease;
}

.ace-reopen:hover {
  border-color: var(--ace-cyan);
  color: #fff;
  transform: translateY(-2px);
}

.ace-root.ace-is-clearing .ace-particles {
  animation: ace-pile-fade var(--ace-cookie-fade-duration, 600ms) ease forwards;
}

.ace-root.ace-is-clearing .ace-status,
.ace-root.ace-is-clearing .ace-skip {
  animation: ace-fade-out .22s ease forwards;
}

.ace-enjoy {
  position: absolute;
  z-index: 720;
  top: 50%;
  left: 50%;
  padding: clamp(16px, 3vw, 26px) clamp(24px, 5vw, 54px);
  border: 2px solid rgba(100, 239, 255, .82);
  border-radius: 16px;
  background: rgba(5, 15, 33, .9);
  box-shadow:
    0 0 0 2px rgba(255, 79, 202, .22) inset,
    0 0 32px rgba(100, 239, 255, .3),
    0 0 58px rgba(255, 79, 202, .2);
  color: #fff;
  font: 900 clamp(28px, 7vw, 72px)/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
  text-align: center;
  text-shadow: 3px 3px 0 var(--ace-pink), -2px -2px 0 rgba(100, 239, 255, .72);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.92);
  pointer-events: none;
}

.ace-root.ace-is-clearing .ace-enjoy {
  animation: ace-enjoy var(--ace-enjoy-duration, 1800ms) ease both;
}

.ace-reject-cookie {
  animation-name: ace-reject-drop;
  animation-duration: .92s;
  animation-timing-function: cubic-bezier(.4, 0, .8, .3);
}

.ace-reduced-cookie {
  top: 50%;
  left: 50%;
  opacity: 0;
  animation: ace-reduced-pop 1.1s ease both;
}

@keyframes ace-panel-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ace-panel-out {
  to { opacity: 0; transform: translateY(calc(100% + 48px)); }
}

@keyframes ace-settings-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ace-cookie-drop {
  0% { opacity: 0; transform: translate3d(0, calc(-1 * var(--ace-start, 200px)), 0) rotate(var(--ace-rotate-start, 0deg)); }
  8% { opacity: 1; }
  86% { transform: translate3d(var(--ace-drift, 0px), var(--ace-end, 70vh), 0) rotate(var(--ace-rotate-end, 360deg)); }
  92% { transform: translate3d(var(--ace-drift, 0px), calc(var(--ace-end, 70vh) - 11px), 0) rotate(calc(var(--ace-rotate-end, 360deg) - 8deg)); }
  100% { opacity: 1; transform: translate3d(var(--ace-drift, 0px), var(--ace-end, 70vh), 0) rotate(var(--ace-rest-angle, 0deg)); }
}

@keyframes ace-boss-drop {
  0% { opacity: 0; transform: translate3d(0, -55vh, 0) rotate(-16deg) scale(.72); }
  15% { opacity: 1; }
  82% { transform: translate3d(var(--ace-drift, 0px), var(--ace-end, 48vh), 0) rotate(8deg) scale(1.04); }
  91% { transform: translate3d(var(--ace-drift, 0px), calc(var(--ace-end, 48vh) - 16px), 0) rotate(-3deg) scale(.98); }
  100% { opacity: 1; transform: translate3d(var(--ace-drift, 0px), var(--ace-end, 48vh), 0) rotate(var(--ace-rest-angle, 0deg)) scale(1); }
}

@keyframes ace-reject-drop {
  0% { opacity: 0; transform: translate3d(0, -180px, 0) rotate(-20deg); }
  18%, 48% { opacity: 1; transform: translate3d(0, 20vh, 0) rotate(6deg); }
  100% { opacity: 0; transform: translate3d(35px, 115vh, 0) rotate(160deg); }
}

@keyframes ace-reduced-pop {
  0% { opacity: 0; transform: translate3d(var(--ace-x, 0), calc(var(--ace-y, 0) + 16px), 0) rotate(var(--ace-rest-angle, 0deg)) scale(.8); }
  24%, 72% { opacity: 1; transform: translate3d(var(--ace-x, 0), var(--ace-y, 0), 0) rotate(var(--ace-rest-angle, 0deg)) scale(1); }
  100% { opacity: 0; transform: translate3d(var(--ace-x, 0), calc(var(--ace-y, 0) - 12px), 0) rotate(var(--ace-rest-angle, 0deg)) scale(.92); }
}

@keyframes ace-pile-fade {
  to { opacity: 0; }
}

@keyframes ace-fade-out {
  to { opacity: 0; transform: translate(-50%, -8px); }
}

@keyframes ace-enjoy {
  0%, 30% { opacity: 0; transform: translate(-50%, -50%) scale(.92); }
  42%, 72% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.025); }
}

@keyframes ace-led {
  50% { opacity: .35; }
}

@keyframes ace-warning {
  50% { transform: translateX(-50%) scale(1.025); }
}

@media (max-width: 650px) {
  .ace-consent {
    bottom: 10px;
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    overflow: auto;
    border-radius: 17px;
  }

  .ace-consent-inner {
    grid-template-columns: 1fr;
    gap: 19px;
    padding: 21px 18px 18px;
  }

  .ace-actions {
    gap: 8px;
  }

  .ace-button {
    min-height: 47px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .ace-status {
    top: 13px;
    padding: 12px 10px;
  }

  .ace-skip {
    top: 70px;
  }

  .ace-settings-actions {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ace-root *,
  .ace-root *::before,
  .ace-root *::after,
  .ace-reopen {
    scroll-behavior: auto !important;
  }

  .ace-is-prompting .ace-consent {
    animation-duration: .01ms;
  }

  .ace-kicker::before,
  .ace-status-label::before,
  .ace-settings-kicker::before,
  .ace-status.ace-is-warning {
    animation: none;
  }

  .ace-button,
  .ace-reopen {
    transition: none;
  }

  .ace-root.ace-is-clearing .ace-enjoy {
    animation-name: ace-enjoy-reduced;
  }
}

@keyframes ace-enjoy-reduced {
  0%, 30%, 100% { opacity: 0; transform: translate(-50%, -50%); }
  42%, 72% { opacity: 1; transform: translate(-50%, -50%); }
}
