@font-face {
  font-family: Manrope;
  src: url("/gamuvo/assets/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/gamuvo/assets/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #10181e;
  --muted: #536169;
  --blue: #233ed5;
  --blue-dark: #192cab;
  --green: #087964;
  --field: #f2f4f4;
  --edge: #d9dfe0;
  --frame: clamp(10px, 1.15vw, 20px);
  font: 400 16px/1.45 Manrope, Arial, sans-serif;
  color: var(--ink);
  background: #eaeded;
}
* { box-sizing: border-box; }
body { margin: 0; padding: var(--frame); }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, a, summary, label[for] { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
a { color: var(--blue); text-underline-offset: 3px; }
button { color: inherit; }
:focus-visible { outline: 3px solid #465fe2; outline-offset: 3px; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.setup {
  --orbit-radius: min(24vw,42svh,435px);
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-columns: clamp(228px,28%,510px) minmax(0,1fr);
  min-height: calc(100svh - var(--frame) * 2);
  background: white;
  border: 1px solid #dee2e2;
  border-radius: 8px;
}
.rail { min-width: 0; background: var(--field); border-radius: 7px 0 0 7px; }
.rail-inner {
  position: sticky;
  top: var(--frame);
  height: calc(100svh - var(--frame) * 2 - 2px);
  min-height: 590px;
  display: flex;
  flex-direction: column;
}
.brand { position: absolute; top: clamp(16px,2.1vw,34px); left: clamp(16px,2vw,32px); z-index: 1; }
.brand .access-brand { gap: 4px; }
.brand .access-brand-mark { width: 38px; height: 38px; }
.brand .access-wordmark { width: clamp(85px,7.2vw,114px); }
.rail-art { position: relative; flex: 1; width: 200%; min-height: 0; container-type: size; pointer-events: none; }
.orbits {
  position: absolute; left: 50%; top: 50%; width: calc(2 * var(--orbit-radius));
  aspect-ratio: 1; transform: translate(-50%,-50%);
  --portrait-size: clamp(48px,min(10.5cqw,16cqh),88px);
}
.orbit {
  position: absolute; top: 50%; left: 50%; width: var(--diameter);
  aspect-ratio: 1; transform: translate(-50%,-50%);
}
.orbit::before { content: ""; position: absolute; inset: -.75px; border-radius: 50%; border: 1.5px solid #c4cbce; }
.orbit.core { --diameter: 11%; }
.orbit.inner { --diameter: 25%; }
.orbit.middle { --diameter: 49%; }
.orbit.wide { --diameter: 74%; }
.orbit.outer { --diameter: 100%; }
.orbit-arm { position: absolute; inset: 0; transform: rotate(var(--start)); }
.orbit-arm.calcio { --start: 74deg; --end: 111deg; --duration: 7s; --delay: -1s; }
.orbit-arm.rugby { --start: 304deg; --end: 334deg; --duration: 8.5s; --delay: -4s; }
.orbit-arm.volley { --start: 215deg; --end: 234deg; --duration: 10s; --delay: -7s; }
.orbit-arm.basket { --start: 14deg; --end: 39deg; --duration: 11s; --delay: -5s; }
.orbit-arm.football { --start: 148deg; --end: 161deg; --duration: 12s; --delay: -6s; }
@container (min-width: 450px) and (max-height: 530px) {
  .orbit-arm.volley { --start: 179deg; --end: 191deg; }
  .orbit-arm.football { --start: 154deg; --end: 165deg; }
  .orbit-arm.basket { --end: 29deg; }
}
.portrait {
  position: absolute; top: 50%; left: 100%; display: block;
  width: var(--portrait-size); height: var(--portrait-size);
  border-radius: 50%; border: 2px solid var(--field); background: var(--field);
  transform: translate(-50%,-50%) rotate(calc(0deg - var(--start)));
}
@media (prefers-reduced-motion: no-preference) {
  .orbit-arm, .portrait { animation: orbit-sweep var(--duration) ease-in-out var(--delay) infinite alternate; }
  .portrait { animation-name: orbit-upright; }
  @keyframes orbit-sweep {
    from { transform: rotate(var(--start)); }
    to { transform: rotate(var(--end)); }
  }
  @keyframes orbit-upright {
    from { transform: translate(-50%,-50%) rotate(calc(0deg - var(--start))); }
    to { transform: translate(-50%,-50%) rotate(calc(0deg - var(--end))); }
  }
}
.steps { position: relative; background: var(--field); padding: 4px clamp(10px,1.05vw,19px) clamp(14px,1.45vw,27px); }
.steps h2 {
  margin: 0 10px 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #536064;
}
#progress { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.step-link {
  width: 100%; border: 0; background: none; padding: 9px 11px;
  display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 11px;
  text-align: left; border-radius: 12px; min-height: 57px;
}
.step-link:disabled { cursor: default; opacity: 1; }
.step-link[aria-current="step"] { background: white; }
.step-link:not(:disabled):hover { background: #ffffffc0; }
.step-state {
  width: 32px; height: 32px; border: 3px dashed #a3adb3;
  border-radius: 100%; display: grid; place-items: center;
}
[aria-current="step"] .step-state { border: 2px solid #aab5c1; }
[aria-current="step"] .step-state::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(90deg, transparent 50%, #64748a 50%);
}
.step-done .step-state { background: var(--green); border: 0; }
.step-done .step-state::after, .success-check::after {
  content: ""; width: 12px; height: 6px; border: solid white;
  border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg);
}
.step-text { display: grid; gap: 1px; line-height: 1.4; }
.step-text strong { font-size: 14px; font-weight: 700; }
.step-text small { color: var(--muted); font-size: 12.5px; }
.step-done strong { color: var(--green); text-decoration: line-through; }
.chevron { display: inline-block; width: 8px; height: 8px; border: solid currentColor; border-width: 1.8px 1.8px 0 0; transform: rotate(45deg); color: #819096; margin: 0 4px; }
.step-link:disabled .chevron { color: #a5aeb2; }
.mobile-progress, .mobile-help { display: none; }
.help { position: absolute; z-index: 4; top: clamp(19px,2.15vw,36px); right: clamp(19px,2.4vw,42px); }
.help summary { display: flex; align-items: center; gap: 10px; width: max-content; min-height: 44px; margin-left: auto; border-radius: 6px; }
.help-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: #e9edff; }
.help-icon svg { width: 19px; height: 19px; }
.help-copy { display: grid; font-size: 12px; line-height: 1.45; color: var(--muted); }
.help-copy strong { font-size: 14px; color: var(--ink); }
.help-popover { position: absolute; right: 0; top: calc(100% + 8px); width: min(285px,calc(100vw - 32px)); padding: 19px; background: white; border: 1px solid var(--edge); border-radius: 13px; box-shadow: 0 8px 32px #17263220; font-size: 14px; }
.help-popover p { color: var(--muted); margin: 5px 0 10px; }
.help-popover a { font-weight: 700; }
.help-popover button { display: flex; justify-content: space-between; width: 100%; margin-top: 13px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--edge); color: var(--blue); background: none; font-weight: 700; }
.workspace { min-width: 0; display: flex; padding: max(92px,7vh) clamp(24px,3.2vw,62px); padding-left: calc(var(--orbit-radius) + clamp(18px,2vw,40px)); }
.content { width: min(100%,clamp(490px,38.5vw,660px)); min-width: 0; margin: auto; }
h1 { max-width: 23ch; font-size: clamp(27px,2.15vw,39px); line-height: 1.16; letter-spacing: -.043em; font-weight: 800; margin: 0; text-wrap: balance; }
h1:focus { outline: 0; }
.intro { margin: 11px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
#wizard-form { margin-top: clamp(23px,2vw,34px); }
.form-grid, .fields, .choices { display: grid; gap: 10px; min-width: 0; align-content: start; }
.identity-layout { display: grid; grid-template-columns: minmax(0,1fr) clamp(78px,6.8vw,115px); grid-template-areas: "first badge" "rest badge"; gap: 10px clamp(14px,1.4vw,24px); align-items: start; }
.identity-first { grid-area: first; min-width: 0; }
.identity-badge { grid-area: badge; }
.identity-rest { grid-area: rest; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
.address-fields { grid-template-columns: 1.65fr 1fr; }
.field { position: relative; min-width: 0; }
.field input, .picker summary, .picker-search input {
  border: 1.5px solid transparent; background: var(--field); border-radius: 8px; width: 100%;
  min-height: 49px; padding: 17px 12px 4px; outline: none; color: var(--ink); font-size: 15px;
}
.field label {
  position: absolute; z-index: 1; top: 50%; left: 13px; right: 8px; transform: translateY(-50%);
  width: max-content; max-width: calc(100% - 18px); color: #536169; pointer-events: none; font-size: 14px;
}
.field:focus-within label, .field:has(input:not(:placeholder-shown)) label { top: 6px; transform: none; color: #59636a; font-size: 10px; font-weight: 700; }
.field input:focus, .picker[open] > summary, .picker-search input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 1px var(--blue); }
.field input:focus:user-invalid { border-color: #ac3b38; }
.field-note { margin: -2px 0 0; color: var(--muted); font-size: 12px; }
.credential-error { display: grid; gap: 4px; margin: 0; color: #9a2d32; font-size: 14px; }
.credential-error a { width: fit-content; font-weight: 700; }
.field input[aria-invalid="true"] { border-color: #9a2d32; }
.club-badge { width: 100%; max-width: 115px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 27%; overflow: hidden; background: #d85532; color: white; font-size: clamp(24px,2.7vw,45px); line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.club-badge svg { width: 51%; height: 51%; }
.logo-section { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.club-badge [data-monogram] { display: grid; width: 100%; height: 100%; place-items: center; }
.club-badge img { display: block; width: 100%; height: 100%; object-fit: contain; background: white; }
.logo-link, .text-button { padding: 0; border: 0; font-size: 13px; font-weight: 700; background: transparent; color: var(--blue); cursor: pointer; }
.logo-link { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; text-wrap: balance; }
.logo-link:hover, .text-button:hover { text-decoration: underline; }
.logo-remove { color: var(--muted); font-size: 12px; }
.visually-hidden, .file-input { position: absolute; height: 1px; width: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.logo-section:has(.file-input:focus-visible) .logo-link { outline: 3px solid var(--blue); outline-offset: 2px; }
.primary {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 47px;
  padding: 10px 16px; border: 1px solid var(--blue); border-radius: 9px; font-weight: 700; font-size: 15px;
  background: var(--blue); color: #fff; text-decoration: none;
}
.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.primary:disabled { opacity: .72; cursor: wait; }
.actions { display: grid; gap: 4px; margin-top: clamp(20px,2vw,30px); text-align: center; }
.actions .back, .access-link { justify-self: center; margin: 0; padding: 9px 5px; font-size: 13px; }
.actions .back { min-height: 40px; color: var(--muted); }
.access-link { color: var(--muted); }
.access-link a { font-weight: 700; text-decoration: none; }
.access-link a:hover { text-decoration: underline; }
#status { margin: 12px 0 0; color: #9a2d32; font-size: 14px; line-height: 1.5; }
#status:empty { margin: 0; }
.picker > summary, .secondary-sports > summary, .group > summary { display: flex; align-items: center; gap: 12px; }
.picker > summary { padding: 9px 14px; min-height: 48px; font-size: 15px; font-weight: 600; }
.picker > summary .chevron, .secondary-sports > summary .chevron { margin-left: auto; transform: rotate(135deg) translate(-1px,1px); }
.picker[open] > summary .chevron, .secondary-sports[open] > summary .chevron { transform: rotate(-45deg) translate(-1px,1px); }
.picker-panel { margin-top: 6px; padding: 5px; border: 1px solid var(--edge); border-radius: 10px; box-shadow: 0 3px 10px #1726320f; }
.picker-search { display: block; padding: 0 0 4px; border-bottom: 1px solid var(--edge); }
.picker-search input { min-height: 42px; padding: 8px 10px; background: white; font-size: 14px; }
.sport-option { display: flex; gap: 11px; align-items: center; width: 100%; padding: 5px 10px; min-height: 42px; text-align: left; background: transparent; border: 0; border-radius: 6px; font-size: 14px; }
.sport-option:hover, .sport-option:focus-visible { background: var(--field); }
.sport-option[aria-pressed="true"] { background: #eef1ff; font-weight: 700; }
.sport-mark { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: #eef0f0; }
.sport-mark img { filter: brightness(.12); width: 16px; height: 17px; }
.sport-option[data-sport="altro"] .sport-mark { color: #5942a1; background: #eee9ff; font-size: 18px; }
.sport-option[aria-pressed="true"]::after { content: "✓"; margin-left: auto; color: var(--blue); }
.empty-search { margin: 9px; color: var(--muted); font-size: 14px; }
.secondary-sports { margin-top: 12px; }
.secondary-sports > summary { min-height: 44px; font-size: 14px; color: var(--blue); font-weight: 700; }
.secondary-sports .check-list { border: 1px solid var(--edge); border-radius: 9px; padding: 4px 12px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check-list label { display: flex; align-items: center; gap: 9px; min-height: 42px; font-size: 13px; cursor: pointer; }
.check-list input { flex: none; margin: 0; width: 16px; height: 16px; accent-color: var(--blue); }
.group { border: 1px solid #d5dadb; border-radius: 13px; box-shadow: 0 1px 2px #16291c0a; }
.group > summary { padding: 7px 13px 7px 7px; min-height: 68px; }
.group .tile { width: 50px; height: 50px; display: grid; place-items: center; flex-shrink: 0; border-radius: 9px; background: #2355ba; color: white; }
.group.training .tile { background: #6857b6; }
.group.records .tile { background: #be7b1d; }
.tile svg { width: 29px; height: 29px; }
.group-title { display: grid; gap: 2px; font-size: 14px; }
.group-title small { color: var(--muted); font-size: 12px; }
.group .chevron { margin-left: auto; }
.group[open] .chevron { transform: rotate(135deg); }
.group .check-list { padding: 4px 15px 8px; border-top: 1px solid var(--edge); }
.success-check { width: 65px; height: 65px; display: grid; place-items: center; background: var(--green); border-radius: 50%; margin-bottom: 24px; box-shadow: 0 0 0 8px #e0f4ef; }
.success-check::after { width: 24px; height: 12px; border-width: 0 0 3px 3px; }
@media (prefers-reduced-motion: no-preference) {
  .success-check { animation: success 1s ease-out both; }
  @keyframes success { from { transform: scale(.9); box-shadow: 0 0 0 0 #b5e6d9; } to { transform: scale(1); box-shadow: 0 0 0 8px #e0f4ef; } }
}
.club-choice { display: block; padding: 14px; border: 1px solid var(--edge); border-radius: 9px; margin-top: 8px; text-decoration: none; }
.club-choice small { display: block; color: var(--muted); }
@media (max-width:780px) {
  :root { --frame: 0px; background: white; }
  .setup { display: flex; flex-direction: column; min-height: 100svh; border: 0; border-radius: 0; }
  .rail { --rail-split: linear-gradient(to right, var(--field) 50%, white 50%); border-radius: 0; background: transparent; }
  .rail-inner { position: relative; top: auto; height: auto; min-height: 0; }
  .rail-art { flex: none; width: 100%; height: clamp(210px,27svh,244px); overflow: hidden; background: var(--rail-split); }
  .orbits { width: min(86vw,180cqh,440px); top: 54%; --portrait-size: clamp(35px,9.6vw,48px); }
  .orbit-arm.calcio { --start: 223deg; --end: 258deg; }
  .orbit-arm.rugby { --start: 308deg; --end: 339deg; }
  .orbit-arm.volley { --start: 150deg; --end: 162deg; }
  .orbit-arm.basket { --start: 1deg; --end: 27deg; }
  .orbit-arm.football { --start: 173deg; --end: 188deg; }
  .brand { top: max(15px,env(safe-area-inset-top)); left: max(18px,env(safe-area-inset-left)); }
  .brand .access-wordmark { width: 86px; }
  .brand .access-brand-mark { width: 34px; height: 34px; }
  .help { top: max(14px,env(safe-area-inset-top)); right: max(16px,env(safe-area-inset-right)); }
  .help summary { min-height: 40px; gap: 5px; border-radius: 24px; padding: 0 10px 0 5px; background: #fff; box-shadow: 0 0 0 1px #e1e5e5; }
  .help-icon { width: 29px; height: 29px; background: transparent; }
  .help-copy { display: none; }
  .mobile-help { display: inline; font-size: 12px; font-weight: 700; }
  .steps { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 16px 9px; background: transparent; isolation: isolate; }
  /* The split follows the illustration and closed selector. The list expands on the page below. */
  .steps::before { content: ""; grid-area: 1 / 1; z-index: -1; margin: 0 -16px -9px; background: var(--rail-split); pointer-events: none; }
  .steps h2 { display: none; }
  .mobile-progress { grid-area: 1 / 1; display: flex; padding: 9px 12px; min-height: 43px; align-items: center; justify-content: space-between; width: 100%; text-align: left; font-size: 13px; font-weight: 700; background: white; border: 1px solid var(--edge); border-radius: 8px; }
  .mobile-progress .chevron { transform: rotate(135deg); }
  .mobile-progress[aria-expanded="true"] .chevron { transform: rotate(-45deg); }
  .mobile-progress[aria-expanded="false"] + #progress { display: none; }
  #progress { grid-row: 2; margin-top: 6px; }
  .step-link { min-height: 46px; padding: 5px 9px; }
  .step-text small { font-size: 12px; }
  .workspace { flex: 1; padding: clamp(24px,4.5svh,42px) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left)); }
  .content { width: min(100%,490px); margin: 0 auto; }
  h1 { font-size: clamp(26px,6.6vw,32px); }
  .intro { font-size: 14px; margin-top: 8px; }
  #wizard-form { margin-top: 21px; }
  .identity-layout { grid-template-columns: minmax(0,1fr) 64px; grid-template-areas: "first badge" "rest rest"; align-items: center; gap: 10px 12px; }
  .fields { gap: 9px; }
  .club-badge { font-size: 23px; }
  .logo-link { font-size: 12px; min-height: 34px; white-space: nowrap; }
  .field input, .picker-search input { font-size: 16px; }
  .actions { margin-top: 21px; }
  .primary { min-height: 48px; }
}
@media (max-width:360px) {
  .workspace { padding-inline: 15px; }
  .two-fields { gap: 6px; }
  .field label { font-size: 13px; }
  .check-list { grid-template-columns: 1fr; }
}
