/* Loaded only by the shared GAMUVO / Elephants sign-in and recovery page. */
.sport-frames:has(> .sport-slide) { filter: none; }
.sport-slide {
  --photo-origin: 67% 41%;
  --pan-x: -1.5%;
  --pan-y: .7%;
  --trail-angle: 43deg;
  --trail-side: 125deg;
  --trail-x: 6%;
  --trail-y: 4%;
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.sport-slide:has(.sport-frame.is-visible) { opacity: 1; }
.sport-slide picture { display: block; width: 100%; height: 100%; }
.sport-slide .sport-frame {
  opacity: 1;
  transition: none;
  filter: grayscale(1);
  transform-origin: var(--photo-origin);
}
.sport-slide[data-discipline="basket"] {
  --photo-origin: 35% 30%; --pan-x: 1.6%; --pan-y: -.6%;
  --trail-angle: 17deg; --trail-side: 260deg; --trail-x: -6%; --trail-y: -2%;
}
.sport-slide[data-discipline="volley"] {
  --photo-origin: 55% 39%; --pan-x: -.6%; --pan-y: 1.7%;
  --trail-angle: 25deg; --trail-side: 95deg; --trail-x: 5%; --trail-y: 2%;
}
.sport-slide[data-discipline="calcio"] {
  --photo-origin: 68% 34%; --pan-x: -1.8%; --pan-y: 1%;
  --trail-angle: 24deg; --trail-side: 95deg; --trail-x: 7%; --trail-y: 3%;
}
.sport-slide[data-discipline="rugby"] {
  --photo-origin: 31% 38%; --pan-x: 1.8%; --pan-y: .6%;
  --trail-angle: 14deg; --trail-side: 265deg; --trail-x: -7%; --trail-y: -2%;
}
.sport-trails {
  position: absolute;
  inset: -9%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: linear-gradient(var(--trail-angle),
    transparent 31%, rgb(48 100 249 / 20%) 34%, rgb(120 199 255 / 58%) 35%, transparent 37%,
    transparent 44%, rgb(45 102 244 / 20%) 46%, rgb(97 181 255 / 46%) 47.4%, transparent 49%,
    transparent 56%, rgb(99 159 255 / 30%) 57%, transparent 58%);
  mask-image: linear-gradient(var(--trail-side), black 12%, rgb(0 0 0 / 85%) 29%, transparent 62%);
}
@keyframes login-photo-track {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(var(--pan-x), var(--pan-y), 0) scale(1.085); }
}
@keyframes login-blue-trails {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  30% { opacity: .82; }
  65% { opacity: .46; }
  100% { transform: translate3d(var(--trail-x), var(--trail-y), 0); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .sport-slide[data-motion] .sport-frame { animation: login-photo-track 7.2s ease-in-out infinite alternate paused; }
  .sport-slide[data-motion] .sport-trails { animation: login-blue-trails 5.8s ease-in-out infinite paused; }
  .sport-slide[data-motion="playing"] :is(.sport-frame, .sport-trails) { animation-play-state: running; }
}
@media (prefers-reduced-motion: reduce) {
  .sport-slide { transition: none; }
  .sport-trails { display: none; }
}
@media (max-width: 700px), (max-width: 950px) and (max-height: 500px) and (pointer: coarse) {
  body.td-access.gamuvo-login {
    --backdrop: #111521;
    --control: #202634;
    --control-line: #3d4556;
    --on-photo: #faf9fa;
    --secondary: #c4c9d6;
    --access-danger: #ffa6ae;
    --field-gap: clamp(12px, 2svh, 18px);
    color-scheme: dark;
    color: var(--on-photo);
    background: var(--backdrop);
  }
  .gamuvo-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(clamp(180px, 26svh, 220px), 1fr) auto auto;
    min-height: 100vh;
    min-height: 100svh;
  }
  .access-column { display: contents; }
  .access-header {
    position: absolute;
    z-index: 2;
    top: calc(env(safe-area-inset-top, 0px) + clamp(24px, 6svh, 54px));
    left: 50%;
    transform: translateX(-50%);
  }
  .access-header .access-brand { gap: 4px; filter: drop-shadow(0 1px 5px rgb(0 0 0 / 30%)); }
  .access-header .access-brand-mark { width: 44px; height: 44px; filter: brightness(0) invert(1); }
  .access-header .access-wordmark { width: clamp(98px, 27vw, 120px); filter: brightness(0) invert(1); }
  .sport-panel {
    grid-area: 1 / 1;
    min-height: 0;
    background: var(--backdrop);
    animation: none;
  }
  .sport-frames {
    inset: 0;
    display: flex;
    overflow: auto hidden;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    filter: none;
    background: var(--backdrop);
    cursor: grab;
  }
  .sport-frames::-webkit-scrollbar { display: none; }
  .sport-frames.is-dragging { cursor: grabbing; scroll-snap-type: none; }
  .sport-frames > picture, .sport-frames > .sport-slide {
    position: relative;
    inset: auto;
    display: block;
    flex: 0 0 100%;
    min-width: 0;
    height: 100%;
    opacity: 1;
    transition: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .sport-frames .sport-frame {
    position: static;
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 1;
    filter: none;
    transition: none;
    pointer-events: none;
    user-select: none;
  }
  .sport-frame[data-sport="Football americano"] { object-position: 65% 46%; }
  .sport-frame[data-sport="Basket"] { object-position: 40% 23%; }
  .sport-frame[data-sport="Pallavolo"] { object-position: 55% 42%; }
  .sport-frame[data-sport="Calcio"] { object-position: 68% 31%; }
  .sport-frame[data-sport="Rugby"] { object-position: 30% 32%; }
  .sport-panel::after {
    inset: 0;
    background: linear-gradient(to bottom, rgb(10 18 41 / 25%), transparent 29%),
                linear-gradient(to bottom, transparent 48%, rgb(17 21 33 / 12%) 64%, rgb(17 21 33 / 80%) 89%, var(--backdrop) 100%);
  }
  body.td-access .sport-caption {
    justify-self: center;
    width: max-content;
    max-width: min(14ch, calc(100% - 40px));
    margin: 0;
    padding: 0 0 clamp(8px, 1.6svh, 16px);
    text-align: center;
    text-wrap: balance;
    font-size: clamp(32px, 8.5vw, 44px);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -.034em;
    color: var(--on-photo);
    pointer-events: none;
  }
  body.td-access .access-content {
    grid-area: 2 / 1;
    justify-self: center;
    width: 100%;
    max-width: 460px;
    padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
    text-align: center;
  }
  .sport-pages {
    display: flex;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    margin: 0 auto clamp(14px, 2.4svh, 24px);
  }
  .sport-pages button {
    display: grid;
    place-items: center;
    width: clamp(28px, 8vw, 34px);
    height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0;
    background: transparent;
    cursor: pointer;
  }
  .sport-pages button::before {
    content: "";
    width: calc(100% - 5px);
    height: 4px;
    border-radius: 4px;
    background: #596276;
  }
  .sport-pages button[aria-current="true"]::before { background: var(--on-photo); }

  body.td-access .access-content h1 {
    font-size: clamp(21px, 6vw, 26px);
    line-height: 1.15;
    color: var(--on-photo);
    text-wrap: balance;
  }
  #accedi:has(#gamuvo-login:not([hidden])) h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  #accedi:has(#gamuvo-login:not([hidden])) .access-lead { display: none; }
  body.td-access .access-lead {
    max-width: 42ch;
    margin: 12px auto clamp(22px, 3svh, 30px);
    color: var(--secondary);
    font-size: 14px;
  }
  .access-field { position: relative; margin: 0 0 var(--field-gap); text-align: left; }
  body.td-access .access-field input, body.td-access .access-recovery-slot .field input {
    min-height: 50px;
    padding: 12px 19px;
    border: 1px solid var(--control-line);
    border-radius: 28px;
    color: var(--on-photo);
    background: var(--control);
    box-shadow: none;
    font-size: 16px;
  }
  body.td-access .access-field input::placeholder { color: var(--secondary); }
  body.td-access .access-field input:focus {
    border-color: #b5c3ff;
    background: var(--control);
    box-shadow: 0 0 0 2px rgb(181 195 255 / 28%);
  }
  body.td-access .password-eye-wrap .password-eye { right: 3px; color: var(--secondary); border-radius: 50%; }
  body.td-access .password-eye-wrap .password-eye:hover { background: #30394b; color: white; }
  body.td-access .access-content .access-primary, body.td-access #gamuvo-companies :is(button,a), .access-recovery-slot #card .primary {
    min-height: 50px;
    margin: 0;
    border: 1px solid #495267;
    border-radius: 28px;
    background: #30394b;
    color: white;
    font-weight: 600;
    box-shadow: none;
  }
  body.td-access .access-content .access-primary:hover:not(:disabled), body.td-access #gamuvo-companies :is(button,a):hover, .access-recovery-slot #card .primary:hover {
    background: #404b61;
    border-color: #67748d;
    color: white;
  }
  body.td-access #gamuvo-companies :is(button,a)::after { color: var(--secondary); }
  body.td-access .access-content :is(.access-forgot, .access-register a, #request-new-recovery) {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--on-photo);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .access-forgot { margin: 10px auto 0; }
  body.td-access .access-register { margin: 8px 0 0; color: var(--secondary); font-size: 14px; }
  #recupero, .access-recovery-slot { padding-bottom: clamp(36px, 6svh, 64px); }
  body.td-access .access-content a.access-back {
    position: absolute;
    z-index: 2;
    top: calc(env(safe-area-inset-top, 0px) + clamp(24px, 6svh, 54px));
    left: max(16px, env(safe-area-inset-left));
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 50%;
    background: rgb(17 21 33 / 65%);
    color: white;
    font-size: 22px;
    text-decoration: none;
  }
  .access-back-label { display: none; }
  body.td-access #recovery-message { color: var(--secondary); }
  .access-recovery-slot .description { margin: 12px auto clamp(22px, 3svh, 30px); color: var(--secondary); font: inherit; font-size: 14px; }
  .access-recovery-slot form { width: 100%; }
  .access-recovery-slot .field { margin: 0 0 var(--field-gap); font: inherit; font-size: 13px; color: var(--secondary); }
  body.td-access .access-recovery-slot .field input { margin-top: 6px; padding: 10px 19px; }
  .access-recovery-slot #card .primary { padding: 10px 18px; width: 100%; font: 600 15px/24px var(--td-font); text-decoration: none; }
  .access-recovery-slot #card .back-link { min-height: 44px; margin: 0; align-items: center; color: white; text-decoration: underline; }
  .access-recovery-slot .hint { margin: 10px 0; color: var(--secondary); }
  .access-recovery-slot .message { min-height: 0; margin: 8px 0; color: var(--access-danger); }
  .mobile-native-recovery > .elephants-test-badge { display: none; }
  body.td-access .access-footer {
    grid-area: 3 / 1;
    justify-content: center;
    gap: 10px;
    padding: 14px 14px calc(20px + env(safe-area-inset-bottom, 0px));
    color: #abb2c2;
    font-size: 11px;
  }
  .access-footer .elephants-test-badge { color: inherit; }
  body.td-access :is(button,a):focus-visible { outline: 2px solid #c2ceff; outline-offset: 2px; }
}
