/* Arena & time of day in the look of the new menus (Oct 2026): the painted menu wall behind it,
   the preview as a taped photo on the wall, the three venues as drawn comic signs and the time of
   day as a sun-to-star track that also dims the whole wall. Loaded last; `#app#app #arena-screen#arena-screen`
   out-ranks the older setup-screen rules in thennos.css and the mobile sheets. */

/* Wall instead of the blurred court backdrop. */
html.has-menu-wall #app#app:has(#arena-screen:not([hidden]))::after{display:none}
#app#app #arena-screen#arena-screen.setup-screen{background:transparent;backdrop-filter:none;box-shadow:none}
#app#app #arena-screen#arena-screen .setup-head h2{color:var(--brand-ink,#032633);text-shadow:0 2px 0 #fff1d9,0 0 12px #fff1d9cc}
#app#app #arena-screen#arena-screen .arena-section-title{margin:0 0 8px;color:#7a3c0c;font:900 13px/1.2 var(--font-ui);letter-spacing:.12em;text-transform:uppercase;text-shadow:0 1px 0 #fff1d9}
#app#app #arena-screen#arena-screen .match-summary{color:#4a2c10;font:700 12px/1.4 var(--font-ui);text-shadow:0 1px 0 #fff1d9aa}

/* Preview: a photo taped to the wall. */
#app#app #arena-screen#arena-screen .arena-stage{width:min(100%,calc((100dvh - 330px) * 1.45));aspect-ratio:auto;height:auto;justify-self:center;align-self:center}
#app#app #arena-screen#arena-screen .arena-stage{position:relative;margin:0;padding:12px 12px 66px;overflow:visible;border:3px solid #0B1A18;border-radius:6px;background:#fffaf0;box-shadow:0 9px 0 #0006;transform:rotate(-1.5deg)}
#app#app #arena-screen#arena-screen .arena-stage::before{content:"";position:absolute;z-index:3;top:-15px;left:50%;width:118px;height:30px;translate:-50% 0;rotate:3deg;background:#f1e2bfd9;border:1px solid #0000001a;box-shadow:0 2px 3px #0002}
#app#app #arena-screen#arena-screen .arena-stage::after{display:none}
#app#app #arena-screen#arena-screen .arena-image{display:block;width:100%;height:auto;aspect-ratio:1168/730;object-fit:cover;border:2px solid #0B1A18;border-radius:3px;filter:none}
#app#app #arena-screen#arena-screen .arena-image.arena-swap{animation:arena-swap .38s ease-out}
@keyframes arena-swap{from{opacity:.3;filter:blur(4px) saturate(.7)}to{opacity:1;filter:none}}
#app#app #arena-screen#arena-screen .arena-preview-badge{position:absolute;z-index:4;top:24px;left:24px;padding:4px 10px;border:2.5px solid #0B1A18;border-radius:10px 6px 9px 5px;background:#ffc744;color:#0B1A18;font:900 12px/1.2 var(--font-ui);letter-spacing:.06em;text-transform:uppercase;box-shadow:0 3px 0 #0B1A18;transform:rotate(-6deg)}
#app#app #arena-screen#arena-screen .arena-caption{position:absolute;z-index:2;left:18px;right:18px;bottom:10px;display:flex;flex-direction:column;gap:2px;margin:0;padding:0;background:none;color:#0B1A18;text-align:left;text-shadow:none}
#app#app #arena-screen#arena-screen .arena-caption strong{color:#0B1A18;font:900 22px/1.15 var(--font-ui);text-shadow:none}
#app#app #arena-screen#arena-screen .arena-caption span{color:#6b3d17;font:700 13px/1.35 var(--font-ui)}

/* Venues: one drawn sign each, picture on top, venue and surface below. */
#app#app #arena-screen#arena-screen .arena-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:100%}
#app#app #arena-screen#arena-screen .arena-option{--sign:url('./training/sign-first-v1.webp');position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-width:0;min-height:0;height:auto;margin:0;padding:12% 12% 18%;border:0;border-radius:0;background:none;color:#0B1A18;box-shadow:none;text-align:center;transform:none;filter:none;grid-column:auto}
#app#app #arena-screen#arena-screen .arena-option::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--sign) center/100% 100% no-repeat;filter:drop-shadow(0 5px 0 #0007)}
#app#app #arena-screen#arena-screen .arena-option[data-arena="hard"]{--sign:url('./training/sign-advanced-v1.webp');padding-bottom:22%}
#app#app #arena-screen#arena-screen .arena-option[data-arena="grass"]{--sign:url('./training/sign-machine-v1.webp')}
#app#app #arena-screen#arena-screen :is(.arena-option,.time-mode button):is(:hover,:active,[aria-pressed="true"]){background:none;border:0;box-shadow:none;transform:none;filter:none}
#app#app #arena-screen#arena-screen .arena-option:hover::before{filter:drop-shadow(0 5px 0 #0007) brightness(1.05)}
#app#app #arena-screen#arena-screen .arena-option[aria-pressed="true"]::before{filter:drop-shadow(3px 0 0 var(--brand-ball,#d8f04a)) drop-shadow(-3px 0 0 var(--brand-ball,#d8f04a)) drop-shadow(0 3px 0 var(--brand-ball,#d8f04a)) drop-shadow(0 -3px 0 var(--brand-ball,#d8f04a)) drop-shadow(0 5px 0 #0007)}
#app#app #arena-screen#arena-screen .arena-option::after{display:none}
#app#app #arena-screen#arena-screen .court-thumb{display:block;width:100%;height:auto;aspect-ratio:16/10;margin:0;overflow:hidden;border:2px solid #0B1A18;border-radius:6px;background:#0B1A18}
#app#app #arena-screen#arena-screen .court-thumb img{display:block;width:100%;height:100%;object-fit:cover}
#app#app #arena-screen#arena-screen .arena-name{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:0}
#app#app #arena-screen#arena-screen .arena-name strong{color:#0B1A18;font:900 17px/1.15 var(--font-ui)}
#app#app #arena-screen#arena-screen .arena-name .arena-venue{color:#a0461a;font:800 12px/1.2 var(--font-ui)}
#app#app #arena-screen#arena-screen .arena-name small{display:none}

/* Time of day: a track from sky blue to black with four round stops. */
#app#app #arena-screen#arena-screen .time-mode{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%;margin:0;padding:12px 10px 10px;border:3px solid #0B1A18;border-radius:22px;background:linear-gradient(90deg,#8fd0e8 0,#ffb36b 38%,#2b3f7a 68%,#0a0d1a 100%);box-shadow:0 5px 0 #0007}
#app#app #arena-screen#arena-screen .time-mode button{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#0B1A18;transform:none;filter:none}
#app#app #arena-screen#arena-screen .time-mode button::after{display:none}
#app#app #arena-screen#arena-screen .time-mode button svg{width:46px;height:46px;flex:none;box-sizing:border-box;padding:9px;border:3px solid #0B1A18;border-radius:50%;background:#fff8e6;color:#0B1A18;transition:transform .15s,background-color .15s}
#app#app #arena-screen#arena-screen .time-mode button[aria-pressed="true"] svg{background:#ffc744;transform:scale(1.14);box-shadow:0 0 0 4px #fff8e6b3}
#app#app #arena-screen#arena-screen .time-mode .time-copy strong{font:900 13px/1.2 var(--font-ui)}
#app#app #arena-screen#arena-screen .time-mode .time-copy small{display:none}
#app#app #arena-screen#arena-screen .time-mode [data-time-of-day="night"],#app#app #arena-screen#arena-screen .time-mode [data-time-of-day="superdark"]{color:#fff1d9}

#app#app:has(#arena-screen:not([hidden]) :is([data-time-of-day="night"],[data-time-of-day="superdark"])[aria-pressed="true"]) #arena-screen#arena-screen :is(.setup-head h2,.arena-section-title,.match-summary){color:#fff1d9;text-shadow:0 2px 0 #0B1A18,0 0 10px #0B1A18}
/* Superdark: the photo glows like the rackets. */
#app#app:has(#arena-screen:not([hidden]) [data-time-of-day="superdark"][aria-pressed="true"]) #arena-screen#arena-screen .arena-stage{box-shadow:0 0 0 3px #ff59d6,0 0 22px #ff59d6aa,0 0 46px #42a5ff88}
@media(prefers-reduced-motion:reduce){
  #app#app #arena-screen#arena-screen .arena-image.arena-swap{animation:none}
}

/* Desktop: photo left, venues and time right. */
@media(min-width:761px) and (not ((orientation:landscape) and (max-height:540px))){
  #app#app #arena-screen#arena-screen .setup-content.arena-options{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:14px 44px;width:min(1180px,100%);margin:0 auto;padding:10px 24px 0;overflow:visible}
  #app#app #arena-screen#arena-screen .arena-side{display:flex;flex-direction:column;gap:20px;min-width:0}
  #app#app #arena-screen#arena-screen .match-summary{grid-column:1 / -1;margin:6px 0 0;text-align:center}
}
/* Phones upright: photo on top, three small signs in a row, the track below; no scrolling. */
@media(max-width:760px) and (orientation:portrait){
  #app#app #arena-screen#arena-screen .setup-content.arena-options{display:flex;flex-direction:column;gap:12px;padding:12px 4px 4px;overflow:visible}
  #app#app #arena-screen#arena-screen .arena-stage{width:100%;padding:8px 8px 50px;transform:rotate(-1deg)}
  #app#app #arena-screen#arena-screen .arena-stage::before{width:90px;height:24px;top:-12px}
  #app#app #arena-screen#arena-screen .arena-preview-badge{top:16px;left:16px;font-size:10px;padding:3px 8px}
  #app#app #arena-screen#arena-screen .arena-caption{left:12px;right:12px;bottom:7px}
  #app#app #arena-screen#arena-screen .arena-caption strong{font-size:17px}
  #app#app #arena-screen#arena-screen .arena-caption span{font-size:11px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  #app#app #arena-screen#arena-screen .arena-side{display:flex;flex-direction:column;gap:10px}
  #app#app #arena-screen#arena-screen .arena-section-title{margin-bottom:5px;font-size:11px}
  #app#app #arena-screen#arena-screen .arena-choices{gap:8px}
  #app#app #arena-screen#arena-screen .arena-option{padding:16% 10% 20%;gap:0}
  #app#app #arena-screen#arena-screen .arena-option[data-arena="hard"]{padding-bottom:24%}
  #app#app #arena-screen#arena-screen .court-thumb{display:none}
  #app#app #arena-screen#arena-screen .arena-name strong{font-size:14px}
  #app#app #arena-screen#arena-screen .arena-name .arena-venue{font-size:10.5px}
  #app#app #arena-screen#arena-screen .time-mode{padding:9px 6px 7px;border-radius:18px}
  #app#app #arena-screen#arena-screen .time-mode button svg{width:38px;height:38px;padding:7px}
  #app#app #arena-screen#arena-screen .time-mode .time-copy strong{font-size:11px}
  #app#app #arena-screen#arena-screen .match-summary{display:none}
}

/* Fixes after the first in-game check: the glow and the bright sun already mark the choice (no
   extra tick); the photo keeps its own height on phones; the caption sits below the photo. */
#app#app #arena-screen#arena-screen .choice-pick .selection-mark{display:none}
#app#app #arena-screen#arena-screen button.choice-pick[aria-pressed="true"]{background:none;border:0;box-shadow:none;outline:0}
#app#app #arena-screen#arena-screen .arena-stage{display:flex;flex-direction:column;gap:8px;flex:none;height:auto;max-height:none;min-height:0;padding-bottom:12px}
#app#app #arena-screen#arena-screen .arena-image{flex:none;height:auto}
#app#app #arena-screen#arena-screen .arena-caption{position:static;padding:0 4px}
#app#app #arena-screen#arena-screen .arena-caption span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:760px) and (orientation:portrait){
  #app#app #arena-screen#arena-screen .arena-stage{gap:5px;padding:8px 8px 9px}
  #app#app #arena-screen#arena-screen .arena-caption{padding:0 2px}
  #app#app #arena-screen#arena-screen .setup-content.arena-options{justify-content:center;flex:1;min-height:0}
}
/* Signs and track never shrink (long captions made the track collapse on phones); on desktop the
   venue line keeps clear of the sign's thick bottom rim. */
#app#app #arena-screen#arena-screen :is(.arena-choice-section,.arena-choices,.time-mode,.arena-option){flex:none}
@media(max-width:760px) and (orientation:portrait){
  #app#app #arena-screen#arena-screen .arena-stage{flex:0 1 auto;min-height:0}
  #app#app #arena-screen#arena-screen .arena-image{min-height:0;max-height:calc(100dvh - 520px)}
}
@media(min-width:761px) and (not ((orientation:landscape) and (max-height:540px))){
  #app#app #arena-screen#arena-screen .arena-option{padding:11% 11% 26%}
  #app#app #arena-screen#arena-screen .arena-option[data-arena="hard"]{padding-bottom:31%}
  #app#app #arena-screen#arena-screen .arena-option[data-arena="grass"]{padding-bottom:28%}
}
/* Own compositing layer for the track: without it Chrome kept a stale wall tile over it after
   switching to superdark (seen in headless Chrome; cheap insurance on devices). */
#app#app #arena-screen#arena-screen .time-mode{transform:translateZ(0)}

@media(min-width:761px) and (not ((orientation:landscape) and (max-height:540px))){
  /* One centred column on the open wall, like the play menu: big venue cards first (the eye-catcher),
     the time track below, then one info line and the recap. The gap on the right stays the view out. */
  #app#app #arena-screen#arena-screen .setup-head{padding-right:12vw}
  #app#app #arena-screen#arena-screen .setup-content.arena-options{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;width:100%;max-width:none;margin:0;padding:0 12vw 0 0;flex:1;min-height:0;justify-content:flex-start;padding-top:6px}
  /* big venue cards, the small time arc centred below them */
  #app#app #arena-screen#arena-screen .arena-side{order:1;display:flex;flex-direction:column;align-items:center;gap:0;width:min(780px,100%)}
  #app#app #arena-screen#arena-screen .arena-side>.arena-choice-section:first-child{width:100%}
  #app#app #arena-screen#arena-screen .arena-choices{gap:18px}
  #app#app #arena-screen#arena-screen .arena-section-title{text-align:center}
  #app#app #arena-screen#arena-screen .arena-name strong{font-size:19px}
  #app#app #arena-screen#arena-screen .arena-name .arena-venue{font-size:13px}
  #app#app #arena-screen#arena-screen .time-mode{width:100%;padding-block:7px}
  /* the note card goes (kept for screen readers): the picked card and the track already say it all */
  #app#app #arena-screen#arena-screen .arena-stage{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap}
  /* the recap of the earlier steps sits right under the title, like a subtitle */
  #app#app #arena-screen#arena-screen .match-summary{order:0;margin-top:-8px!important;width:auto;margin:0;padding:4px 12px;border-radius:8px;background:#0B1A18d9;color:#fff1d9;text-shadow:none}
}
@media(max-width:760px) and (orientation:portrait){
  #app#app #arena-screen#arena-screen .setup-content.arena-options{justify-content:center;padding-right:19vw;translate:0 -40px}
  /* phones show the venue pictures too: the block reads like the desktop one and fills the wall */
  #app#app #arena-screen#arena-screen .court-thumb{display:block;flex:none;width:100%;height:auto;aspect-ratio:16/10;margin:0 0 5px}
  #app#app #arena-screen#arena-screen .arena-option{padding:12% 10% 22%}
  #app#app #arena-screen#arena-screen .arena-option[data-arena="hard"]{padding-bottom:30%}
  #app#app #arena-screen#arena-screen .arena-stage{order:3;width:100%;padding:7px 10px 8px;transform:rotate(-.6deg)}
  #app#app #arena-screen#arena-screen .arena-caption span{-webkit-line-clamp:1}
}
#app#app #arena-screen#arena-screen :is(.arena-image,.arena-preview-badge){display:none}
#app#app #arena-screen#arena-screen .arena-stage::before{top:-13px;width:84px;height:24px}


/* ===== Venues as wide picture strips stacked, time of day as a round dial (Marcel 24.10.). The note
   card is gone everywhere (kept only for screen readers); the recap sits under the title. ===== */
#app#app #arena-screen#arena-screen .arena-stage.arena-stage{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap;transform:none}
#app#app #arena-screen#arena-screen .match-summary.match-summary{order:0;align-self:center;width:auto;max-width:100%;margin:-6px 0 0;padding:4px 12px;border-radius:8px;background:#0B1A18d9;color:#fff1d9;text-shadow:none;font:700 12px/1.35 var(--font-ui)}
#app#app #arena-screen#arena-screen .setup-content.arena-options.arena-options{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:14px;flex:1;min-height:0;width:100%;max-width:none;margin:0;padding:4px 12vw 0 0;translate:none}
#app#app #arena-screen#arena-screen .arena-side.arena-side{order:1;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:34px;width:100%}
#app#app #arena-screen#arena-screen .arena-side>.arena-choice-section{width:auto}
#app#app #arena-screen#arena-screen .arena-section-title{text-align:left}

/* venue strips: the real render fills the strip, name on a label in the lower left */
#app#app #arena-screen#arena-screen .arena-choices.arena-choices{display:flex;flex-direction:column;gap:12px;width:min(460px,38vw)}
#app#app #arena-screen#arena-screen .arena-option.arena-option{position:relative;display:block;width:100%;height:auto;aspect-ratio:4.2/1;padding:0;overflow:hidden;border:3px solid #0B1A18;border-radius:14px 10px 15px 11px;background:#0B1A18;box-shadow:0 5px 0 #0B1A18,0 9px 0 #0005;transition:transform .15s}
#app#app #arena-screen#arena-screen .arena-option.arena-option::before{display:none}
#app#app #arena-screen#arena-screen .arena-option .court-thumb.court-thumb{display:block;position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;margin:0;border:0;border-radius:0}
#app#app #arena-screen#arena-screen .arena-option .court-thumb img{width:100%;height:100%;object-fit:cover;object-position:center 62%;image-rendering:auto;transition:transform .3s}
#app#app #arena-screen#arena-screen .arena-option .arena-name{position:absolute;left:10px;bottom:9px;align-items:flex-start;gap:0;padding:5px 12px 6px;border:2.5px solid #0B1A18;border-radius:10px 7px 11px 8px;background:#fff8e6;box-shadow:0 3px 0 #0B1A18}
#app#app #arena-screen#arena-screen .arena-option .arena-name strong{font:900 17px/1.1 var(--font-ui);color:#0B1A18}
#app#app #arena-screen#arena-screen .arena-option .arena-name .arena-venue{font:800 11.5px/1.2 var(--font-ui);color:#a0461a}
#app#app #arena-screen#arena-screen .arena-option:not([aria-pressed="true"]) .court-thumb img{filter:saturate(.75) brightness(.86)}
#app#app #arena-screen#arena-screen .arena-option:hover{transform:translateY(-2px)}
#app#app #arena-screen#arena-screen .arena-option:hover .court-thumb img{transform:scale(1.04)}
#app#app #arena-screen#arena-screen .arena-option[aria-pressed="true"]{box-shadow:0 0 0 4px var(--brand-ball,#d8f04a),0 5px 0 4px #0B1A18,0 10px 0 4px #0005}
#app#app #arena-screen#arena-screen .arena-option[aria-pressed="true"] .arena-name{background:#ffc744}
#app#app #arena-screen#arena-screen .arena-option:focus-visible{outline:3px solid #fff8e6;outline-offset:4px}


@media(max-width:760px){
  #app#app #arena-screen#arena-screen .setup-content.arena-options.arena-options{justify-content:center;padding:0 22vw 0 0;gap:10px}
  #app#app #arena-screen#arena-screen .arena-side.arena-side{flex-direction:column;align-items:stretch;gap:14px}
  #app#app #arena-screen#arena-screen .arena-choices.arena-choices{width:100%;gap:10px}
  #app#app #arena-screen#arena-screen .arena-option.arena-option{aspect-ratio:2.7/1}
  #app#app #arena-screen#arena-screen .arena-option .arena-name{left:8px;bottom:7px;padding:4px 10px 5px}
  #app#app #arena-screen#arena-screen .arena-option .arena-name strong{font-size:15px}
  #app#app #arena-screen#arena-screen .arena-option .arena-name .arena-venue{font-size:10.5px}
  #app#app #arena-screen#arena-screen .arena-side>.arena-choice-section:last-child{display:flex;flex-direction:column;align-items:center}
}
/* out-rank the older sign rules (border:0, box-shadow:none on picked/hover) and the full-width section */
#app#app #arena-screen#arena-screen .arena-side>.arena-choice-section.arena-choice-section{width:auto;flex:none}
#app#app #arena-screen#arena-screen .arena-option.arena-option.arena-option{border:3px solid #0B1A18;box-shadow:0 5px 0 #0B1A18,0 9px 0 #0005}
#app#app #arena-screen#arena-screen .arena-option.arena-option.arena-option[aria-pressed="true"]{box-shadow:0 0 0 4px var(--brand-ball,#d8f04a),0 5px 0 4px #0B1A18,0 10px 0 4px #0005}
#app#app #arena-screen#arena-screen .arena-option.arena-option.arena-option:hover{transform:translateY(-2px)}
#app#app #arena-screen#arena-screen .arena-side>.arena-choice-section:last-child{display:flex;flex-direction:column;align-items:center}
@media(max-width:760px){
  #app#app #arena-screen#arena-screen .arena-option.arena-option{aspect-ratio:3.1/1}
}
@media(min-width:761px){#app#app #arena-screen#arena-screen .arena-option.arena-option{aspect-ratio:4.8/1}}

/* proportions: strips and sky window as one balanced pair */
@media(min-width:761px){
  #app#app #arena-screen#arena-screen .arena-choices.arena-choices{width:min(430px,36vw)}
  #app#app #arena-screen#arena-screen .arena-side.arena-side{gap:44px}
}
@media(max-width:760px){
}
@media(max-width:760px){#app#app #arena-screen#arena-screen .setup-content.arena-options.arena-options{justify-content:flex-start;padding-top:28px}}

/* ===== Time of day as a sky window (time-sky.js, Marcel 24.10.): a small painted sky per time, two
   arrows to switch; the new sky slides in from the arrow's side. The four buttons stay as the
   keyboard / screen reader controls (visually hidden; focus shows on the window). ===== */
#app#app #arena-screen#arena-screen .time-mode.time-sky{position:relative;display:flex;align-items:center;gap:8px;width:380px;padding-bottom:30px;max-width:100%;height:auto;margin:0 auto;padding:0;border:0;border-radius:0;background:none;box-shadow:none;transform:none}
#app#app #arena-screen#arena-screen .time-sky [data-time-of-day]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0}
#app#app #arena-screen#arena-screen .time-sky-view{position:relative;flex:1;min-width:0;aspect-ratio:400/260;overflow:hidden;border:3px solid #0B1A18;border-radius:24px;isolation:isolate;background:#0B1A18;box-shadow:0 5px 0 #0B1A18,0 9px 0 #0005}
#app#app #arena-screen#arena-screen .time-sky:has([data-time-of-day]:focus-visible) .time-sky-view{outline:3px solid #fff8e6;outline-offset:3px}
#app#app #arena-screen#arena-screen .time-sky-name{position:absolute;z-index:2;left:50%;bottom:0;translate:-50% 0;padding:3px 12px;border-radius:9px;background:#0B1A18;color:#fff1d9;font:900 13px/1.2 var(--font-ui);white-space:nowrap}
#app#app #arena-screen#arena-screen .time-sky-arrow{flex:none;margin-top:0;display:grid;place-items:center;width:40px;height:40px;padding:0;border:3px solid #0B1A18;border-radius:50%;background:#ffb224;box-shadow:0 3px 0 #0B1A18;cursor:pointer}
#app#app #arena-screen#arena-screen .time-sky-arrow svg{width:22px;height:22px;fill:none;stroke:#0B1A18;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
#app#app #arena-screen#arena-screen .time-sky-arrow:hover{background:#ffc744}
#app#app #arena-screen#arena-screen .time-sky-arrow:active{translate:0 2px;box-shadow:0 1px 0 #0B1A18}
@media(max-width:760px){
  #app#app #arena-screen#arena-screen .time-mode.time-sky{width:100%}
  #app#app #arena-screen#arena-screen .time-sky-arrow{width:36px;height:36px}
}
#app#app #arena-screen#arena-screen .time-mode.time-sky.time-sky{padding:0 0 32px}
#app#app #arena-screen#arena-screen .time-sky-arrow{translate:0 -16px}
#app#app #arena-screen#arena-screen .time-sky-arrow:active{translate:0 -14px}

/* Turntable scene (time-sky.js): the disc turns a quarter with a soft overshoot; sky, stars, clouds,
   hills and lights cross-fade to the picked time ([data-time] on the group). */
#app#app #arena-screen#arena-screen .time-sky-scene{position:absolute;inset:0;width:100%;height:100%}
.time-sky .ts-disc{transition:transform 1.5s cubic-bezier(.4,-.12,.25,1.22)}
.time-sky .ts-sky{opacity:0;transition:opacity 1.1s ease .15s}
.time-sky[data-time="day"] [data-sky="day"],.time-sky[data-time="evening"] [data-sky="evening"],.time-sky[data-time="night"] [data-sky="night"],.time-sky[data-time="superdark"] [data-sky="superdark"]{opacity:1}
.time-sky :is(.ts-far,.ts-near,.ts-trees,.ts-floor,.ts-lamp){transition:fill 1.1s ease .15s}
.time-sky .ts-far{fill:#a9c97a}.time-sky .ts-near{fill:#6f9a4a}.time-sky .ts-trees{fill:#24492b}.time-sky .ts-floor{fill:#c8663a}.time-sky .ts-lamp{fill:#6b6b6b}
.time-sky[data-time="evening"] .ts-far{fill:#b9707a}.time-sky[data-time="evening"] .ts-near{fill:#6e3f55}.time-sky[data-time="evening"] .ts-trees{fill:#3a2033}.time-sky[data-time="evening"] .ts-floor{fill:#a85a3a}
.time-sky[data-time="night"] .ts-far{fill:#22336a}.time-sky[data-time="night"] .ts-near{fill:#142046}.time-sky[data-time="night"] .ts-trees{fill:#0a1430}.time-sky[data-time="night"] .ts-floor{fill:#9a5a40}.time-sky[data-time="night"] .ts-lamp{fill:#fff8c0}
.time-sky[data-time="superdark"] .ts-far{fill:#0d0d1e}.time-sky[data-time="superdark"] .ts-near{fill:#06060f}.time-sky[data-time="superdark"] .ts-trees{fill:#03030a}.time-sky[data-time="superdark"] .ts-floor{fill:#140c1c}.time-sky[data-time="superdark"] .ts-lamp{fill:#2a2a2a}
/* stars pop in one by one at night */
.time-sky .ts-stars circle{transform-box:fill-box;transform-origin:center;scale:0;transition:scale .35s cubic-bezier(.3,1.8,.5,1) calc(.5s + var(--i) * 70ms)}
.time-sky:is([data-time="night"],[data-time="superdark"]) .ts-stars circle{scale:1;animation:ts-twinkle 2.4s ease-in-out calc(var(--i) * -.37s) infinite alternate}
/* clouds float in by day, drift off at night */
.time-sky .ts-cloud{opacity:0;translate:-40px 0;transition:opacity .8s ease,translate 1.2s cubic-bezier(.3,.7,.2,1)}
.time-sky .ts-cloud2{translate:40px 0}
.time-sky[data-time="day"] .ts-cloud{opacity:1;translate:0 0;transition-delay:.4s}
.time-sky[data-time="evening"] .ts-cloud{opacity:.6;translate:0 0;fill:#ffd6c0;transition-delay:.4s}
/* floodlights switch on with a flicker at night */
.time-sky .ts-beams{opacity:0}
.time-sky[data-time="night"] .ts-beams{animation:ts-lights-on 1s steps(1,end) .9s both,ts-flicker 3s ease-in-out 2s infinite alternate}
.time-sky .ts-shooting{opacity:0}
.time-sky:is([data-time="night"],[data-time="superdark"]) .ts-shooting{animation:ts-shoot 6s ease-in 2s infinite}
/* living bodies: the sun's rays turn, the moon snores, the neon ball pulses; each lands with a squish */
.time-sky .sun-rays{transform-box:fill-box;transform-origin:center;animation:ts-spin 14s linear infinite}
.time-sky .moon-z text{animation:ts-snore 2.4s ease-in-out infinite}
.time-sky .moon-z text+text{animation-delay:.6s}
.time-sky .neon-glow{transform-box:fill-box;transform-origin:center;animation:ts-pulse 1.4s ease-in-out infinite alternate}
.time-sky.is-turning .ts-body{animation:ts-squish .5s ease-out 1.25s}
.time-sky .ts-body{transform-box:fill-box;transform-origin:center bottom}
@keyframes ts-twinkle{from{opacity:1}to{opacity:.25}}
@keyframes ts-spin{to{rotate:360deg}}
@keyframes ts-snore{0%{opacity:0;translate:0 4px}30%{opacity:1}100%{opacity:0;translate:6px -8px}}
@keyframes ts-pulse{from{scale:.85}to{scale:1.15}}
@keyframes ts-squish{0%{scale:1}35%{scale:1.15 .85}70%{scale:.94 1.08}100%{scale:1}}
@keyframes ts-lights-on{0%{opacity:0}20%{opacity:.8}30%{opacity:0}45%{opacity:1}100%{opacity:1}}
@keyframes ts-flicker{from{opacity:.8}to{opacity:1}}
@keyframes ts-shoot{0%,84%{opacity:0;translate:0 0}86%{opacity:1}95%{opacity:0;translate:-60px 24px}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){
  .time-sky .ts-disc{transition:none}
  .time-sky :is(.sun-rays,.moon-z text,.neon-glow,.ts-stars circle,.ts-shooting,.ts-body,.ts-beams){animation:none!important}
  .time-sky[data-time="night"] .ts-beams{opacity:1}
}
/* real court below the sky: cross-fades with the time like the sky */
.time-sky .ts-ground{opacity:0;transition:opacity 1.1s ease .15s}
.time-sky[data-time="day"] [data-ground="day"],.time-sky[data-time="evening"] [data-ground="evening"],.time-sky[data-time="night"] [data-ground="night"],.time-sky[data-time="superdark"] [data-ground="superdark"]{opacity:1}
/* arrows sit on the window's edges, so the picture gets the full width */
#app#app #arena-screen#arena-screen .time-mode.time-sky.time-sky{display:block;padding:0 0 32px}
#app#app #arena-screen#arena-screen .time-sky-arrow{position:absolute;z-index:3;top:calc(50% - 16px);translate:0 -50%}
#app#app #arena-screen#arena-screen .time-sky-arrow:active{translate:0 calc(-50% + 2px)}
#app#app #arena-screen#arena-screen .time-sky-arrow.previous{left:-14px}
#app#app #arena-screen#arena-screen .time-sky-arrow.next{right:-14px}
#app#app #arena-screen#arena-screen .time-sky-view{width:100%}
@media(max-width:760px){#app#app #arena-screen#arena-screen .time-mode.time-sky.time-sky{width:calc(100% - 20px);margin-inline:auto}}
/* Marcel 24.10.: no recap line (unreadable on the wall), time window level with the venue strips */
#app#app #arena-screen#arena-screen .match-summary.match-summary{display:none}
@media(min-width:761px){#app#app #arena-screen#arena-screen .arena-side.arena-side{align-items:flex-start}
  #app#app #arena-screen#arena-screen .time-mode.time-sky.time-sky{width:400px}}

/* ===== Light mood on the arena screen (Marcel 24.10.): time of day and venue colour the painted scene
   layer by layer. The far view takes the strongest change (sky), wall and things in front a milder
   one, and a light layer on top adds the low sun, the floodlight pools or the neon glow. --venue is a
   small colour cast: clay warm, the city cooler, the garden fresher. ===== */
#app:has(#arena-screen:not([hidden])) .menu-wall{--far:none;--near:none;--light:none;--venue:#0000}
#app:has(#arena-screen:not([hidden]) [data-arena="hard"][aria-pressed="true"]) .menu-wall{--venue:#5f86a81f}
#app:has(#arena-screen:not([hidden]) [data-arena="grass"][aria-pressed="true"]) .menu-wall{--venue:#6fa84a1a}
#app:has(#arena-screen:not([hidden]) [data-arena="clay"][aria-pressed="true"]) .menu-wall{--venue:#d9772e14}
#app:has(#arena-screen:not([hidden]) [data-time-of-day="evening"][aria-pressed="true"]) .menu-wall{
  --far:sepia(.45) saturate(1.4) hue-rotate(-18deg) brightness(.82);--near:sepia(.3) saturate(1.2) hue-rotate(-10deg) brightness(.88);
  --light:radial-gradient(ellipse 70% 60% at 100% 35%,#ffb15a66,#ff7a3a1f 55%,#0000 80%),linear-gradient(180deg,#5b3a8a26,#0000 50%,#7a2a1a26)}
#app:has(#arena-screen:not([hidden]) [data-time-of-day="night"][aria-pressed="true"]) .menu-wall{
  --far:saturate(.55) brightness(.38) hue-rotate(195deg) sepia(.15);--near:saturate(.6) brightness(.5);
  --light:radial-gradient(ellipse 45% 55% at 82% 8%,#fff2c440,#0000 70%),radial-gradient(ellipse 50% 40% at 30% 100%,#ffd9902e,#0000 70%),linear-gradient(#0d1a4a40,#0d1a4a40)}
#app:has(#arena-screen:not([hidden]) [data-time-of-day="superdark"][aria-pressed="true"]) .menu-wall{
  --far:saturate(.4) brightness(.14);--near:saturate(.45) brightness(.24);
  --light:radial-gradient(ellipse 40% 35% at 50% 100%,#ff59d626,#0000 70%),radial-gradient(ellipse 35% 30% at 70% 90%,#42a5ff22,#0000 70%)}
#app:has(#arena-screen:not([hidden])) .menu-wall [data-layer="back"]{filter:var(--far);transition:filter .9s ease}
#app:has(#arena-screen:not([hidden])) .menu-wall :is([data-layer="wall"],[data-layer="paving"],[data-layer="front"],.menu-wall-geckos,.menu-wall-occluder){filter:var(--near);transition:filter .9s ease}
#app:has(#arena-screen:not([hidden])) .menu-wall .menu-wall-stage{background:var(--light),linear-gradient(var(--venue),var(--venue)),radial-gradient(ellipse 80% 90% at 50% 48%,#0000 50%,#5a2e0a40 100%);transition:background .9s ease}
/* upright phones: the far view is the whole picture, the wall the copy with the view cut free */
@media(max-width:760px) and (orientation:portrait){
  #app:has(#arena-screen:not([hidden])) .menu-wall [data-layer="back"]{filter:var(--far)}
}
@media(prefers-reduced-motion:reduce){#app:has(#arena-screen:not([hidden])) .menu-wall :is([data-layer],.menu-wall-stage){transition:none}}

/* ===== Layout over the whole page (Marcel 25.10.): venues and sky window as one centred pair that
   grows with the screen (wide screens no longer leave them small in the upper left). Both columns
   share one height: three venue strips stacked = the sky window. ===== */
@media(min-width:761px){
  #app#app #arena-screen#arena-screen .setup-content.arena-options.arena-options{justify-content:center;padding:0 0 2vh;gap:18px}
  #app#app #arena-screen#arena-screen{--arena-h:clamp(200px,min(52dvh,calc(28vw - 36px)),500px)} /* both columns + gap fit in ~92vw */
  #app#app #arena-screen#arena-screen .arena-side.arena-side{gap:clamp(28px,4vw,72px);align-items:flex-start}
  #app#app #arena-screen#arena-screen .arena-choices.arena-choices{width:calc(var(--arena-h) * 1.45);gap:calc(var(--arena-h) * .045)}
  #app#app #arena-screen#arena-screen .arena-option.arena-option{aspect-ratio:auto;height:calc(var(--arena-h) * .3)}
  #app#app #arena-screen#arena-screen .time-mode.time-sky.time-sky{width:calc(var(--arena-h) * 1.54 + 96px)}
  #app#app #arena-screen#arena-screen .arena-option .arena-name strong{font-size:clamp(17px,calc(var(--arena-h) * .055),24px)}
  #app#app #arena-screen#arena-screen .arena-option .arena-name .arena-venue{font-size:clamp(11.5px,calc(var(--arena-h) * .036),15px)}
  #app#app #arena-screen#arena-screen .arena-section-title{font-size:clamp(13px,calc(var(--arena-h) * .036),16px)}
}

/* ===== Painted sky characters (time-sky.js BODIES, Marcel 25.10.): every body breathes and has its
   own idle life; arriving after a turn it lands with a soft squash and a glow flash. ===== */
.time-sky :is(.ts-halo,.ts-shine,.ts-idle,.ts-life){transform-box:fill-box;transform-origin:center}
.time-sky .ts-halo{opacity:.85;animation:ts-halo 3.2s ease-in-out infinite alternate}
.time-sky .ts-shine{animation:ts-spin 24s linear infinite}
.time-sky .ts-shine path{animation:ts-shine 2.6s ease-in-out infinite alternate}
.time-sky [data-body="day"] .ts-idle{animation:ts-bob 2.8s ease-in-out infinite}
.time-sky [data-body="day"] .ts-life{animation:ts-wiggle 5.6s ease-in-out infinite}
.time-sky [data-body="evening"] .ts-idle{animation:ts-bob 4.2s ease-in-out infinite}
.time-sky [data-body="evening"] .ts-life{transform-origin:center bottom;animation:ts-sway 6s ease-in-out infinite}
.time-sky [data-body="evening"] .ts-halo{animation:ts-shimmer 2.2s ease-in-out infinite alternate}
.time-sky [data-body="night"] .ts-idle{animation:ts-bob 5s ease-in-out infinite}
.time-sky [data-body="night"] .ts-life{transform-origin:60% 20%;animation:ts-rock 5s ease-in-out infinite}
.time-sky [data-body="superdark"] .ts-idle{animation:ts-bounce 1.3s cubic-bezier(.3,0,.4,1) infinite}
.time-sky [data-body="superdark"] .ts-life{animation:ts-neon 2.6s linear infinite}
.time-sky [data-body="superdark"] .ts-halo{animation:ts-pulse 1.3s ease-in-out infinite alternate}
.time-sky .moon-z text{paint-order:stroke}
.time-sky.is-turning .ts-body{animation:ts-land .7s cubic-bezier(.3,1.6,.5,1) 1.2s}
.time-sky.is-turning .ts-body .ts-halo{animation:ts-flash .9s ease-out 1.2s}
@keyframes ts-halo{from{scale:.9;opacity:.7}to{scale:1.08;opacity:1}}
@keyframes ts-shine{from{opacity:.35}to{opacity:.9}}
@keyframes ts-bob{0%,100%{translate:0 0}50%{translate:0 -3px}}
@keyframes ts-wiggle{0%,82%,100%{rotate:0deg}86%{rotate:-6deg}90%{rotate:5deg}94%{rotate:-3deg}97%{rotate:1deg}}
@keyframes ts-sway{0%,100%{rotate:-3deg}50%{rotate:3deg}}
@keyframes ts-shimmer{from{scale:.94;opacity:.6}to{scale:1.12;opacity:1}}
@keyframes ts-rock{0%,100%{rotate:-5deg}50%{rotate:4deg}}
@keyframes ts-bounce{0%,100%{translate:0 0;scale:1}45%{translate:0 -5px;scale:.98 1.03}55%{translate:0 -5px}92%{translate:0 0;scale:1.06 .94}}
@keyframes ts-neon{0%{filter:drop-shadow(0 0 2px #ff59d6) drop-shadow(0 0 5px #ff59d6aa)}50%{filter:drop-shadow(0 0 2px #42a5ff) drop-shadow(0 0 6px #42a5ffaa)}100%{filter:drop-shadow(0 0 2px #ff59d6) drop-shadow(0 0 5px #ff59d6aa)}}
@keyframes ts-land{0%{scale:1}30%{scale:1.14 .86}60%{scale:.95 1.07}100%{scale:1}}
@keyframes ts-flash{0%{scale:1;opacity:.8}35%{scale:1.5;opacity:1}100%{scale:1;opacity:.8}}
@media(prefers-reduced-motion:reduce){.time-sky :is(.ts-halo,.ts-shine,.ts-shine path,.ts-idle,.ts-life,.ts-body){animation:none!important}}

/* Phones (Marcel 27.10.): three stacked court strips pushed the time of day under the buttons.
   The courts as one row of three, name below the picture. */
@media(max-width:760px) and (orientation:portrait){
  #app#app #arena-screen#arena-screen .arena-choices.arena-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
  #app#app #arena-screen#arena-screen .arena-option.arena-option.arena-option{display:flex;flex-direction:column;aspect-ratio:auto;height:auto;min-height:0;padding:0;overflow:hidden}
  #app#app #arena-screen#arena-screen .arena-option.arena-option .court-thumb{position:relative;inset:auto;display:block;width:100%;height:auto;aspect-ratio:5/4}
  #app#app #arena-screen#arena-screen .arena-option.arena-option .court-thumb img{width:100%;height:100%;object-fit:cover}
  #app#app #arena-screen#arena-screen .arena-option.arena-option .arena-name{position:static;left:auto;bottom:auto;display:block;width:auto;margin:0;padding:5px 2px 6px;border:0;border-radius:0;box-shadow:none;transform:none;text-align:center}
  #app#app #arena-screen#arena-screen .arena-option.arena-option .arena-name strong{font-size:13px}
  #app#app #arena-screen#arena-screen .arena-option.arena-option .arena-name .arena-venue{display:none}
  #app#app #arena-screen#arena-screen .setup-content.arena-options.arena-options{padding-right:0}
  #app#app #arena-screen#arena-screen .time-mode.time-sky.time-sky{width:min(280px,76vw,calc(100dvh - 430px))}
  #app#app #arena-screen#arena-screen .arena-option.arena-option .arena-name.arena-name{align-self:stretch;width:100%;box-sizing:border-box}
}
