@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');

@font-face {
  font-family: MarGliker;
  src: url('/Medias/Gliker-RegularExtraExpanded.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --mar-bg: #000;
  --mar-ink: #fff;
  --mar-muted: #fff;
  --mar-soft: #fff;
  --mar-line: #ffffff50;
  --mar-plane: min(86vw, 1040px);
  background: #000;
  color: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: #000; color: #fff; }
body { overflow: hidden; }
.mar-body {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mar-app { position: relative; min-height: 100vh; min-height: 100svh; isolation: isolate; background: #000; }
.mar-app::before, .mar-download::before { content: none; }
.mar-app a { color: inherit; }
.mar-app button, .mar-app input { font: inherit; }
.mar-app button, .mar-app a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.mar-app button { cursor: pointer; }
.mar-app :focus-visible { outline: 2px solid #fff; outline-offset: 5px; }

/* Small, centered wordmark; no ornament or trailing dot. */
.mar-wordmark {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 44px;
  padding: 10px 16px;
  color: #fff;
  background: #0009;
  border-radius: 30px;
  text-decoration: none;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}
.mar-skip {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  color: #fff !important;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .02em;
}
.mar-skip:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Keep the supplied JavaScript camera geometry and click surface intact. */
.mar-story { position: fixed; inset: 0; overflow: hidden; touch-action: manipulation; z-index: 2; }
.mar-viewport { position: absolute; inset: 0; perspective: 1050px; perspective-origin: 50% 50%; }
.mar-look { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.mar-camera { position: absolute; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.mar-plane {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--mar-plane);
  height: 480px;
  margin-left: calc(var(--mar-plane) / -2);
  margin-top: -240px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  visibility: hidden;
  pointer-events: none;
}
.mar-type {
  position: relative;
  max-width: 100%;
  color: #fff;
  font-family: MarGliker, Montserrat, sans-serif;
  font-size: clamp(28px, 5.1vw, 72px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.045em;
  text-align: center;
  transform-style: preserve-3d;
  text-shadow: 0 3px 28px #000;
}
.mar-line { display: block; margin: 0; font-size: 1em; line-height: inherit; white-space: normal; text-wrap: balance; }
.mar-line-1 { transform: translateZ(28px); }
.mar-line-2 { transform: translateZ(56px); }
.mar-opening .mar-type { font-size: clamp(34px, 6.4vw, 90px); line-height: 1.04; }
.mar-ranking .mar-type { font-size: clamp(40px, 7vw, 94px); line-height: 1.04; }
.mar-ranking .mar-line-1 { transform: translateZ(42px); }
.mar-note {
  position: relative;
  max-width: min(92%, 470px);
  margin: 24px 0 0;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(12px, 1.15vw, 16px);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0;
  text-wrap: balance;
  transform: translateZ(12px);
  text-shadow: 0 2px 16px #000;
}
.mar-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Existing transparent PNGs travel with the existing tap-controlled planes. */
.mar-plane::before, .mar-plane::after {
  content: '';
  position: absolute;
  width: clamp(160px, 28vw, 380px);
  height: clamp(160px, 28vw, 380px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  backface-visibility: hidden;
}
.mar-plane::before { left: -18%; top: -40%; background-image: url('/Medias/Elements/AZ.png'); transform: translateZ(-180px) rotate(-20deg); }
.mar-plane::after { right: -18%; bottom: -36%; background-image: url('/Medias/Elements/AZ (2).png'); transform: translateZ(-100px) rotate(18deg); }
.mar-collect::before { background-image: url('/Medias/Elements/AZ (3).png'); transform: translateZ(-140px) rotate(12deg); }
.mar-collect::after { background-image: url('/Medias/Elements/AZ (4).png'); }
.mar-place::before { background-image: url('/Medias/Elements/AZ (5).png'); }
.mar-place::after { background-image: url('/Medias/Elements/AZ (6).png'); transform: translateZ(-220px) rotate(-12deg); }
.mar-listen::before { background-image: url('/Medias/Elements/AZ (7).png'); }
.mar-listen::after { background-image: url('/Medias/Elements/AZ.png'); }
.mar-ranking::before { background-image: url('/Medias/Elements/AZ (2).png'); }
.mar-ranking::after { background-image: url('/Medias/Elements/AZ (5).png'); }

.mar-continue { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; touch-action: manipulation; }
.mar-tap-cue {
  position: absolute;
  top: calc(50% + 148px);
  left: 20px;
  right: 20px;
  bottom: auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .02em;
  text-align: center;
  transition: opacity .2s ease;
}
.mar-tap-cue i { color: #fff; font-size: 15px; }
.mar-continue[aria-disabled=true] { cursor: default; }
.mar-continue[aria-disabled=true] .mar-tap-cue { opacity: 0; }
.mar-continue:focus-visible { outline: 1px solid #ffffffb0; outline-offset: -8px; }

/* Final screen can scroll on short displays and above an iOS keyboard. */
.mar-center {
  position: relative;
  z-index: 3;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(100px, calc(env(safe-area-inset-top) + 72px)) max(24px, env(safe-area-inset-right)) max(44px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
.mar-app[data-mode=story] .mar-center { display: none; }
.mar-download { position: relative; flex: 0 0 auto; width: min(780px, 100%); margin-block: auto; text-align: center; outline: none; }
.mar-download h2 { color: #fff; font-family: MarGliker, Montserrat, sans-serif; font-size: clamp(28px, 4.8vw, 64px); font-weight: 400; line-height: 1.15; letter-spacing: -.04em; margin: 0 0 32px; text-wrap: balance; text-shadow: 0 3px 28px #000; }
#marFinalCopy { color: #fff; font-size: 14px; line-height: 1.8; margin: 0 0 28px; }
#marFinalCopy:empty { display: none; }
.mar-app .mar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  min-width: 170px;
  max-width: 100%;
  margin: 0 auto;
  padding: 15px 28px;
  border: 1px solid #4f46ff;
  border-radius: 40px;
  background: #4f46ff;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: none;
  transition: background .2s, color .2s;
}
.mar-app .mar-button:hover { color: #fff; background: #5c53ff; border-color: #5c53ff; }
.mar-app .mar-button:disabled { opacity: .6; cursor: wait; }
.mar-small { color: #fff; font-size: 10px; line-height: 1.7; margin: 16px 0 0; }
.mar-app .mar-replay { display: block; min-height: 44px; margin: 22px auto 0; padding: 12px 16px; border: 0; background: transparent; color: #fff; font-family: Montserrat, Arial, sans-serif; font-size: 10px; font-weight: 500; }
.mar-replay:hover { text-decoration: underline; text-underline-offset: 5px; }
.mar-waitlist { max-width: 360px; margin: 28px auto 0; text-align: left; }
.mar-waitlist > label { color: #fff; font-size: 13px; line-height: 1.7; }
#marEmail { display: block; width: 100%; margin: 14px 0 20px; min-height: 52px; padding: 14px 12px; border: 1px solid #ffffff70; border-radius: 6px; background: #000; color: #fff; font-family: Montserrat, Arial, sans-serif; font-size: 16px; }
#marEmail::placeholder { color: #fff; opacity: 1; }
.mar-consent { display: flex; align-items: flex-start; gap: 10px; color: #fff; font-size: 11px !important; }
.mar-consent input { width: 18px; height: 18px; flex-shrink: 0; margin: 2px 0; accent-color: #fff; }
.mar-consent a { text-underline-offset: 3px; }
.mar-waitlist .mar-button { width: 100%; margin-top: 24px; }
.mar-status { min-height: 20px; margin: 14px 0 0; color: #fff; font-size: 12px; line-height: 1.7; }
.mar-status[data-error=true] { color: #ffb4aa; }

/* The existing decorative spans supply the final-screen artwork. */
.mar-art { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mar-app[data-mode=story] .mar-art { display: none; }
.mar-art > span { display: none; }
.mar-art .mar-shape-1, .mar-art .mar-shape-2 { display: block; position: absolute; width: clamp(160px, 28vw, 380px); aspect-ratio: 1; background: center / contain no-repeat; }
.mar-art .mar-shape-1 { left: -8%; top: 6%; background-image: url('/Medias/Elements/AZ (3).png'); transform: rotate(-18deg); }
.mar-art .mar-shape-2 { right: -8%; bottom: 4%; background-image: url('/Medias/Elements/AZ (7).png'); transform: rotate(18deg); }

@media (max-width: 480px) {
  :root { --mar-plane: 86vw; }
  .mar-viewport { perspective: 880px; }
  .mar-plane { height: 420px; margin-top: -210px; padding-bottom: 54px; }
  .mar-wordmark { top: max(10px, env(safe-area-inset-top)); font-size: 19px; }
  .mar-type { font-size: clamp(23px, 6.4vw, 31px); }
  .mar-opening .mar-type { font-size: clamp(29px, 8.1vw, 39px); }
  .mar-ranking .mar-type { font-size: clamp(36px, 10vw, 48px); }
  .mar-note { max-width: 280px; font-size: 12px; line-height: 1.75; margin-top: 20px; }
  .mar-tap-cue { top: calc(50% + 136px); font-size: 10px; }
  .mar-skip { bottom: max(12px, env(safe-area-inset-bottom)); }
  .mar-plane::before { left: -24%; top: -24%; }
  .mar-plane::after { right: -24%; bottom: -26%; }
  .mar-download h2 { font-size: clamp(24px, 6.6vw, 32px); margin-bottom: 28px; }
  .mar-app .mar-button { min-height: 52px; min-width: 158px; padding: 14px 24px; }
  .mar-art .mar-shape-1 { left: -17%; top: 9%; }
  .mar-art .mar-shape-2 { right: -17%; bottom: 4%; }
}
@media (max-height: 600px) {
  .mar-wordmark { top: max(4px, env(safe-area-inset-top)); }
  .mar-plane { padding-bottom: 40px; }
  .mar-type, .mar-opening .mar-type, .mar-ranking .mar-type { font-size: clamp(23px, 5vh, 32px); }
  .mar-note { font-size: 11px; line-height: 1.45; margin-top: 12px; max-width: min(90%, 420px); }
  .mar-tap-cue { top: calc(50% + 86px); font-size: 9px; }
  .mar-skip { bottom: max(0px, env(safe-area-inset-bottom)); font-size: 9px; }
  .mar-center { padding-top: max(70px, calc(env(safe-area-inset-top) + 60px)); padding-bottom: 24px; }
  .mar-download h2 { font-size: clamp(24px, 5.6vh, 34px); margin-bottom: 22px; }
  .mar-plane::before { top: -10%; }
  .mar-plane::after { bottom: -10%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .mar-camera { will-change: auto; }
}