:root {
  color-scheme: dark;
  --ink: #191917;
  --paper: #f1ede2;
  --yellow: #f1cf4a;
  --muted: #bcb9ae;
  font-family: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: var(--ink); color: var(--paper); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: rgba(241, 207, 74, .28); touch-action: manipulation; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }
h1, h2, p { margin: 0; }
h1, h2 { font-family: "Barlow Condensed", Impact, sans-serif; }
[hidden] { display: none !important; }
.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; }
.skip-link { position: absolute; z-index: 30; top: -5rem; left: 1rem; padding: .8rem 1rem; background: var(--yellow); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.app-shell { max-width: 1600px; margin: auto; }

.site-header {
  height: 84px; display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
  padding: 0 clamp(1.5rem, 4vw, 4rem); border-bottom: 1px solid #ffffff2a;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: 128px; height: auto; margin: -8px 0; filter: invert(1); }
.header-context { display: flex; flex-direction: column; gap: .2rem; margin-right: auto; }
.header-kicker, .header-title, .header-count, .showcase-label, .showcase-index, .location-overline, .roster-kicker, .swipe-hint, .selection-status, .site-footer {
  font-size: .72rem; font-weight: 700; letter-spacing: .13em; line-height: 1.25;
}
.header-kicker { color: var(--yellow); }
.header-title { font-size: .89rem; letter-spacing: .08em; }
.header-count { display: flex; align-items: baseline; gap: .26rem; font-size: 1.2rem; letter-spacing: 0; }
.header-count #header-current { color: var(--yellow); }
.count-divider { color: #77766d; }

.selector { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr); min-height: min(820px, calc(100svh - 84px)); }
.showcase {
  --location-accent: var(--yellow);
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-width: 0; min-height: 650px; overflow: hidden; padding: clamp(1.5rem, 3.2vw, 3.5rem);
  background: radial-gradient(circle at 50% 45%, #383730 0, #252520 48%, var(--ink) 84%); isolation: isolate;
}
.selector[data-location="scandicci"] .showcase { --location-accent: #d9e0d7; background: radial-gradient(circle at 50% 45%, #363d3b 0, #242b29 48%, #171c1b 84%); }
.selector[data-location="campi"] .showcase { --location-accent: #f1cf4a; background: radial-gradient(circle at 50% 42%, #4a4030 0, #292720 46%, var(--ink) 84%); }
.showcase::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .35; background: repeating-linear-gradient(0deg, transparent 0 71px, #ffffff10 72px); pointer-events: none; }
.showcase-topline { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.showcase-label { display: inline-flex; align-items: center; gap: .65rem; color: var(--location-accent); }
.label-line { width: 1.5rem; height: 1px; background: currentColor; }
.showcase-index { color: var(--muted); white-space: nowrap; }
.showcase-stage { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.stage-word {
  position: absolute; z-index: 0; top: 18%; left: 50%; width: 100%; transform: translateX(-50%);
  color: #ffffff0d; font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(7rem, 15.5vw, 16.5rem); font-weight: 900; line-height: .75; letter-spacing: -.06em;
  text-align: center; white-space: nowrap;
}
.portrait-placeholder {
  position: absolute; top: 16%; bottom: 18%; left: 50%; width: min(48%, 350px); min-width: 230px;
  transform: translateX(-50%) rotate(-3deg); display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--location-accent) 60%, transparent);
  background: linear-gradient(145deg, #ffffff0d, #00000014); box-shadow: 22px 23px 0 #0000001f;
}
.portrait-placeholder::before { content: ""; position: absolute; inset: 11px; border: 1px solid #ffffff25; }
.placeholder-letter { color: var(--location-accent); font-family: "Barlow Condensed", Impact, sans-serif; font-size: clamp(13rem, 25vw, 23rem); font-weight: 900; letter-spacing: -.07em; line-height: .72; }
.placeholder-caption { position: absolute; right: 10%; bottom: 8%; color: var(--location-accent); font-size: .67rem; font-weight: 700; letter-spacing: .13em; line-height: 1.25; text-align: right; }
.placeholder-corner { position: absolute; width: 16px; height: 16px; border-color: var(--location-accent); border-style: solid; }
.placeholder-corner-tl { top: -3px; left: -3px; border-width: 3px 0 0 3px; }
.placeholder-corner-tr { top: -3px; right: -3px; border-width: 3px 3px 0 0; }
.placeholder-corner-bl { bottom: -3px; left: -3px; border-width: 0 0 3px 3px; }
.placeholder-corner-br { bottom: -3px; right: -3px; border-width: 0 3px 3px 0; }
.character-portrait {
  position: absolute; top: 80px; bottom: 142px; left: 0; width: 100%; height: calc(100% - 222px);
  max-width: 100%; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 20px 24px #0007);
}
.selector[data-location="calenzano"] .character-portrait { height: calc(100% - 170px); }
.selector[data-location="scandicci"] .character-portrait { height: calc(100% - 140px); }
.showcase-info {
  position: absolute; z-index: 2; right: 0; bottom: 0; left: 0;
  display: flex; align-items: end; justify-content: space-between; gap: 1.5rem;
  min-height: 142px; padding: 22px clamp(1.5rem, 3.2vw, 3.5rem) 27px;
  border-top: 1px solid #ffffff30; background: #191917;
}
.location-overline { margin-bottom: .35rem; color: var(--location-accent); }
.showcase-info h1 { font-size: clamp(5rem, 9vw, 10rem); font-weight: 900; letter-spacing: -.055em; line-height: .78; }
.showcase-info h1 span { color: var(--location-accent); }
.location-address { flex: 0 0 auto; padding-bottom: .25rem; color: #e4e1d7; font-size: .84rem; font-weight: 600; line-height: 1.5; text-align: right; }

.roster { min-width: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(1.5rem, 3vw, 3rem) 0; border-left: 1px solid #ffffff2a; background: var(--ink); }
.roster-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 0 clamp(1.5rem, 3vw, 3rem) 1.7rem; }
.roster-kicker { margin-bottom: .35rem; color: var(--yellow); }
.roster h2 { font-size: clamp(3rem, 5vw, 5.5rem); font-weight: 900; letter-spacing: -.04em; line-height: .82; }
.swipe-hint { color: var(--muted); white-space: nowrap; }
.swipe-hint span { color: var(--yellow); font-size: 1.25rem; vertical-align: -.08em; }
.roster-track {
  display: flex; align-items: center; gap: 16px; width: 100%; min-width: 0; overflow-x: auto;
  overscroll-behavior-x: contain; padding: 20px max(28px, calc(50% - 96px));
  scroll-padding-inline: max(28px, calc(50% - 96px)); scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x;
}
.roster-track::-webkit-scrollbar { display: none; }
.roster-card {
  flex: 0 0 192px; height: 255px; display: flex; flex-direction: column; overflow: hidden; padding: 0;
  border: 2px solid #77766b; border-radius: 0; background: #2c2c27; color: var(--paper);
  cursor: pointer; text-align: left; scroll-snap-align: center;
  transition: transform .12s ease-out, border-color .12s ease-out, box-shadow .12s ease-out;
}
.roster-card:hover { border-color: var(--paper); }
.roster-card.is-selected { position: relative; z-index: 1; transform: scale(1.065); border-color: var(--yellow); box-shadow: 0 0 0 3px #f1cf4a2c, 0 0 24px #f1cf4a4a; }
.roster-card:focus-visible { outline-offset: 5px; }
.card-art { position: relative; min-height: 0; flex: 1 1 auto; display: grid; place-items: center; overflow: hidden; background: #3c3b34; }
.card-art::before { content: ""; position: absolute; inset: 9px; border: 1px solid #ffffff3b; }
.card-art-placeholder span { color: #e0d8be; font-family: "Barlow Condensed", Impact, sans-serif; font-size: 7.7rem; font-weight: 900; line-height: 1; }
.roster-card[data-id="scandicci"] .card-art { background: radial-gradient(circle, #626d61, #303c38 68%); }
.roster-card[data-id="scandicci"] .card-art-placeholder span { color: #d9e0d7; }
.card-art-loris { background: radial-gradient(circle, #74634a, #38332b 68%); }
.card-art-loris img { position: absolute; top: 0; left: -4%; width: 108%; height: auto; }
.card-art-mirko { background: radial-gradient(circle, #6a5645, #37312a 68%); }
.card-art-mirko img { position: absolute; top: 0; left: -4%; width: 108%; height: auto; }
.card-art-stefano img { position: absolute; top: 0; left: 0; width: 100%; height: auto; }
.card-copy { flex: 0 0 65px; display: flex; flex-direction: column; justify-content: center; gap: .15rem; padding: .55rem .8rem; border-top: 1px solid #ffffff35; }
.card-copy strong { font-family: "Barlow Condensed", Impact, sans-serif; font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; line-height: .88; }
.card-copy small { color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .13em; }
.roster-card.is-selected .card-copy small { color: var(--yellow); }
.selection-action { margin: 1rem clamp(1.5rem, 3vw, 3rem) 0; }
.selection-status { margin-bottom: .65rem; color: var(--muted); }
.selection-status span { color: var(--yellow); }
.primary-action { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; background: var(--yellow); color: var(--ink); font-size: .96rem; font-weight: 700; text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
.primary-action:hover { background: #ffdf62; transform: translateY(-2px); }
.primary-action span { font-size: 1.55rem; line-height: 1; }
.site-footer { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem clamp(1.5rem, 4vw, 4rem); border-top: 1px solid #ffffff2a; color: var(--muted); }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }

@media (max-width: 1000px) {
  .selector { grid-template-columns: 1fr; grid-template-rows: minmax(420px, 1fr) auto; min-height: calc(100svh - 84px); }
  .showcase { min-height: 420px; }
  .showcase-info h1 { font-size: clamp(5rem, 13vw, 9rem); }
  .stage-word { font-size: clamp(8rem, 22vw, 16rem); }
  .portrait-placeholder { width: min(36%, 300px); }
  .roster { border-left: 0; border-top: 1px solid #ffffff2a; padding: 1.25rem 0 1.5rem; }
  .roster-heading { margin-bottom: .45rem; }
  .roster h2 { font-size: 3.5rem; }
  .roster-track { padding-top: 14px; padding-bottom: 14px; }
  .roster-card { height: 170px; }
  .card-copy { flex-basis: 50px; }
  .card-art-placeholder span { font-size: 5.4rem; }
  .selection-action { margin-top: .35rem; }
}
@media (max-width: 700px) {
  .site-header { height: 68px; gap: .75rem; padding: 0 max(1.1rem, env(safe-area-inset-left)); }
  .brand img { width: 98px; margin: -7px 0; }
  .header-kicker { display: none; }
  .header-title { font-size: .75rem; letter-spacing: .045em; }
  .header-count { font-size: 1rem; }
  .selector { grid-template-rows: minmax(350px, 1fr) auto; min-height: calc(100svh - 68px); }
  .showcase { min-height: 350px; padding: 1rem max(1.1rem, env(safe-area-inset-left)) 1.1rem; }
  .showcase-label, .showcase-index, .location-overline, .roster-kicker, .swipe-hint, .selection-status { font-size: .72rem; }
  .label-line { width: .9rem; }
  .stage-word { top: 18%; font-size: 28vw; }
  .portrait-placeholder { top: 15%; bottom: 122px; width: 46%; min-width: 165px; }
  .placeholder-letter { font-size: clamp(10rem, 51vw, 16rem); }
  .placeholder-caption { top: 9%; bottom: auto; font-size: .62rem; }
  .character-portrait,
  .selector[data-location="calenzano"] .character-portrait {
    top: 42px; bottom: 118px; left: 0; width: 100%; height: calc(100% - 160px);
    max-width: 100%; transform: none; object-fit: contain; object-position: center bottom;
  }
  .selector[data-location="calenzano"] .character-portrait { height: calc(100% - 130px); }
  .selector[data-location="scandicci"] .character-portrait { height: calc(100% - 100px); }
  .showcase-info {
    position: absolute; z-index: 3; right: 0; bottom: 0; left: 0;
    display: flex; align-items: end; justify-content: space-between; gap: .5rem;
    min-height: 118px; padding: 13px max(1.1rem, env(safe-area-inset-left)) 16px;
    border-top: 1px solid #ffffff30; background: #191917;
  }
  .showcase-info h1 { font-size: clamp(3.5rem, 15.2vw, 6.3rem); }
  .selector[data-location="calenzano"] .showcase-info h1,
  .selector[data-location="scandicci"] .showcase-info h1 { font-size: min(13vw, 54px); }
  .location-address { margin: 0 0 1px; font-size: .7rem; line-height: 1.3; text-align: right; }
  .roster { padding: .75rem 0 max(1rem, env(safe-area-inset-bottom)); }
  .roster-heading { margin: 0 1.1rem .15rem; }
  .roster-kicker { margin-bottom: .25rem; }
  .roster h2 { font-size: 2.75rem; }
  .roster-track { gap: 11px; padding: 11px calc(50% - 82px); scroll-padding-inline: calc(50% - 82px); }
  .roster-card { flex-basis: 164px; height: 140px; }
  .card-art-placeholder span { font-size: 4.1rem; }
  .card-copy { flex-basis: 39px; padding: .28rem .5rem; }
  .card-copy strong { font-size: 1.2rem; }
  .card-copy small { font-size: .7rem; letter-spacing: .06em; }
  .selection-action { margin: .3rem 1.1rem 0; }
  .selection-status { margin-bottom: .45rem; }
  .primary-action { min-height: 48px; font-size: .9rem; }
  .site-footer { padding: .85rem 1.1rem; font-size: .7rem; }
}
@media (max-width: 390px) {
  .header-title { max-width: 7rem; }
  .showcase-info { display: block; min-height: 118px; }
  .showcase-info h1 { font-size: 15.2vw; }
  .location-address { margin-top: .35rem; font-size: .72rem; text-align: left; }
  .roster h2 { font-size: 2.45rem; }
}
@media (max-width: 700px) and (max-height: 650px) {
  .selector { grid-template-rows: minmax(340px, 1fr) auto; }
  .showcase { min-height: 340px; }
  .portrait-placeholder { top: 15%; bottom: 106px; }
  .placeholder-letter { font-size: clamp(7.5rem, 38vw, 10rem); }
  .character-portrait,
  .selector[data-location="calenzano"] .character-portrait { top: 34px; bottom: 103px; height: calc(100% - 137px); }
  .selector[data-location="calenzano"] .character-portrait { height: calc(100% - 115px); }
  .selector[data-location="scandicci"] .character-portrait { height: calc(100% - 80px); }
  .showcase-info { min-height: 103px; padding-top: 10px; padding-bottom: 12px; }
  .showcase-info h1 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .roster { padding: .35rem 0 .5rem; }
  .roster-heading { margin-bottom: 0; }
  .roster h2 { font-size: 2rem; }
  .roster-track { padding-top: 6px; padding-bottom: 6px; }
  .roster-card { height: 108px; }
  .card-art-loris img, .card-art-mirko img, .card-art-stefano img { left: 6%; width: 88%; }
  .card-art-loris img { left: 2.5%; width: 95%; }
  .card-art-mirko img { left: 2.5%; width: 95%; }
  .card-copy { flex-basis: 32px; }
  .card-copy strong { font-size: 1rem; }
  .card-art-placeholder span { font-size: 3rem; }
  .selection-action { margin-top: 0; }
  .selection-status { display: none; }
  .primary-action { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
