/* Option 2 — High-Contrast Stadium. One owner for page-level title styling.
   The photograph is decorative; all content and controls are ordinary HTML. */
:root{
 --hero-base:#101617;--hero-title:#f8faf9;--hero-subtitle:#d8dfe2;
 --hero-accent:#ffd348;--hero-border:#2b3336;--hero-wash:rgba(16,22,23,.97);
 --hero-edge:rgba(16,22,23,.82);--hero-phone:rgba(16,22,23,.94);
 --hero-control:#1e292d;--hero-control-border:#69777b;
}
html[data-theme=day]{
 --hero-base:#f5f3ed;--hero-title:#182125;--hero-subtitle:#3c484e;
 --hero-accent:#765500;--hero-border:#c9ccc5;--hero-wash:rgba(245,243,237,.98);
 --hero-edge:rgba(245,243,237,.94);--hero-phone:rgba(245,243,237,.97);
 --hero-control:#fffdf8;--hero-control-border:#7b827e;
}
body:is(#stadium-app,.stadium-landing) .page-hero{
 box-sizing:border-box;position:relative;isolation:isolate;display:flex;align-items:center;
 width:100%;max-width:none;min-height:clamp(240px,27vw,334px);height:auto;
 margin:0 0 24px;padding:clamp(24px,4.5vw,56px);overflow:hidden;
 border:1px solid var(--hero-border);border-radius:clamp(18px,2vw,24px);
 background-color:var(--hero-base);
 background-image:linear-gradient(90deg,var(--hero-base) 0%,var(--hero-base) 38%,var(--hero-wash) 56%,var(--hero-edge) 66%,transparent 93%),url('images/stadium-hero-v2.webp');
 background-size:cover;background-position:center;background-repeat:no-repeat;
 color:var(--hero-title);text-align:left;box-shadow:none;text-shadow:none;
 font-family:Arial,Helvetica,sans-serif;order:0;
}
body:is(#stadium-app,.stadium-landing) .page-hero .page-hero-copy{
 box-sizing:border-box;position:relative;z-index:1;flex:none;width:66%;max-width:none;min-width:0;
 padding:0;margin:0;text-align:left;text-shadow:none;
}
body:is(#stadium-app,.stadium-landing) .page-hero .page-hero-eyebrow{
 /* Use the available measure, not shrink-to-fit flex sizing. Keep words at
    their intrinsic width; the decorative line yields space to the label. */
 display:flex;align-items:center;gap:18px;width:auto;max-width:100%;margin:0 0 14px;
 color:var(--hero-accent);font-size:clamp(.75rem,1.1vw,.9375rem);line-height:1.5;
 font-weight:750;letter-spacing:.14em;text-transform:uppercase;overflow-wrap:normal;word-break:normal;hyphens:none;text-shadow:none;
}
.page-hero-eyebrow::after{content:'';display:block;flex:0 1 36px;min-width:0;height:2px;background:currentColor}
body:is(#stadium-app,.stadium-landing) .page-hero .page-hero-title{
 display:block;margin:0;color:var(--hero-title);font-size:clamp(2rem,4.8vw,4rem);
 line-height:1.08;letter-spacing:-.035em;font-weight:800;text-transform:none;
 overflow-wrap:anywhere;word-break:normal;text-wrap:pretty;text-shadow:none;opacity:1;
}
body:is(#stadium-app,.stadium-landing) .page-hero .page-hero-subtitle{
 display:block;max-width:38ch;margin:16px 0 0;color:var(--hero-subtitle);
 font-size:clamp(1rem,2.1vw,1.625rem);font-weight:400;line-height:1.45;letter-spacing:normal;
 text-transform:none;overflow-wrap:anywhere;text-shadow:none;opacity:1;
}
body:is(#stadium-app,.stadium-landing) .page-hero .page-hero-subtitle a{color:var(--hero-accent)}
/* Info/account/report content has a narrower reading measure than event pages. */
body#stadium-app :is(.info-content,.account-main,.report-main) .page-hero{min-height:240px;padding:32px}
body#stadium-app :is(.info-content,.account-main,.report-main) .page-hero-title{font-size:clamp(2rem,3.4vw,2.75rem)}
body#stadium-app :is(.info-content,.account-main,.report-main) .page-hero-subtitle{font-size:1.125rem}
body#stadium-app .account-main .page-hero-copy,body#stadium-app .report-main .page-hero-copy{width:82%}
body#stadium-app :is(.account-main,.report-main) .page-hero{background-image:linear-gradient(90deg,var(--hero-base),var(--hero-wash) 82%,var(--hero-edge)),url('images/stadium-hero-v2.webp')}
/* Retain one native, accessible division selector and its existing handler. */
body#stadium-app .page-hero--tournament{min-height:240px}
body#stadium-app .page-hero--tournament .page-hero-title{font-size:clamp(2rem,3.7vw,3.25rem)}
body#stadium-app .page-hero .stadium-division-choice{
 display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;
 width:fit-content;max-width:100%;min-height:44px;margin:16px 0 0;padding:0;
 color:var(--hero-subtitle);font-size:1rem;font-weight:600;line-height:1.4;letter-spacing:normal;text-transform:none;text-shadow:none;
}
body#stadium-app .page-hero .stadium-division-choice select{
 appearance:auto;min-height:44px;max-width:100%;width:auto;margin:0;padding:8px 12px;
 border:1px solid var(--hero-control-border);border-radius:12px;
 background:var(--hero-control);color:var(--hero-title);font:inherit;letter-spacing:normal;box-shadow:none;
}
body:is(#stadium-app,.stadium-landing) .page-hero :is(a,button,select):focus-visible{outline:3px solid var(--hero-accent);outline-offset:4px}
/* The scoring surface keeps its compact controls; no photographic billboard. */
body#stadium-app .page-hero--compact{min-height:0;margin:0 0 12px;padding:14px 0;border:0;border-radius:0;background:var(--hero-base)}
body#stadium-app .page-hero--compact .page-hero-copy{width:100%}
body#stadium-app .page-hero--compact .page-hero-title{font-size:1.75rem;line-height:1.2}
body#stadium-app .page-hero--compact .page-hero-subtitle{font-size:.9375rem;margin-top:6px;max-width:none}
body#stadium-app .page-hero--compact .page-hero-eyebrow{font-size:.75rem;margin-bottom:8px}
body#stadium-app .scoring-app :is(#scoring-root,#manager-root) > h1{color:var(--hero-title);font-size:1.75rem;line-height:1.2;letter-spacing:-.025em}
body#stadium-app .scoring-app :is(#scoring-root,#manager-root) > :is(p,small){color:var(--hero-subtitle)}
/* Landing retains its sport and game-code actions directly beneath the title. */
body.stadium-landing .page-hero{margin-bottom:0;min-height:0;padding-block:44px}
body.stadium-landing .page-hero .sport-picker{margin-top:26px}
body.stadium-landing .page-hero .sport-picker-label{color:var(--hero-title)}
body.stadium-landing .page-hero .landing-scorekeeper-copy strong{color:var(--hero-title)}
body.stadium-landing .page-hero .landing-scorekeeper-copy span{color:var(--hero-subtitle)}
body.stadium-landing .page-hero .landing-scorekeeper>a{color:var(--hero-accent);border-color:var(--hero-accent);white-space:normal}
body.stadium-landing .page-hero .landing-scorekeeper{border-color:var(--hero-border)}
@media(max-width:1000px){
 body:is(#stadium-app,.stadium-landing) .page-hero .page-hero-copy{width:78%}
 body:is(#stadium-app,.stadium-landing) .page-hero{background-image:linear-gradient(90deg,var(--hero-base),var(--hero-wash) 68%,var(--hero-edge) 82%,transparent),url('images/stadium-hero-v2.webp')}
}
@media(max-width:760px),(orientation:landscape) and (max-height:500px) and (max-width:1000px){
 body:is(#stadium-app,.stadium-landing) .page-hero,
 body#stadium-app :is(.info-content,.account-main,.report-main) .page-hero{
  min-height:0;padding:18px 20px;margin:0 0 14px;border-radius:20px;
  background-image:linear-gradient(90deg,var(--hero-base),var(--hero-phone)),url('images/stadium-hero-v2.webp');
  background-position:70% center;
 }
 body:is(#stadium-app,.stadium-landing) .page-hero .page-hero-copy{width:100%}
 body:is(#stadium-app,.stadium-landing) .page-hero .page-hero-title{font-size:1.625rem;line-height:1.15}
 body:is(#stadium-app,.stadium-landing) .page-hero .page-hero-eyebrow{font-size:.75rem;line-height:1.4;letter-spacing:.08em;margin-bottom:6px;gap:9px}
 .page-hero-eyebrow::after{flex-basis:24px}
 body:is(#stadium-app,.stadium-landing) .page-hero .page-hero-subtitle{font-size:.9375rem;line-height:1.45;margin-top:8px;max-width:none}
 body#stadium-app .page-hero .stadium-division-choice{margin-top:12px}
 body#stadium-app .page-hero--compact{padding:12px 0;border:0;border-radius:0;background:var(--hero-base);margin-bottom:12px}
 body#stadium-app .page-hero--compact .page-hero-title{font-size:1.5rem}
 body#stadium-app .page-hero--compact .page-hero-subtitle{font-size:.9375rem;margin-top:6px}
 body.stadium-landing .page-hero{margin-bottom:0}
}
@media(max-width:360px){
 body:is(#stadium-app,.stadium-landing) .page-hero,
 body#stadium-app :is(.info-content,.account-main,.report-main) .page-hero{padding-inline:16px}
}
@media(orientation:landscape) and (max-height:500px){
 body#stadium-app .page-hero--compact{padding-block:10px}
}

/* Legacy tournament metadata remains available to its original update hooks. */
body#stadium-app .page-hero :is(.pill,.details,.diamond-art){display:none}
body#stadium-app .qr-poster .compact-page-title{color:var(--hero-title);font-size:1.75rem;line-height:1.2;overflow-wrap:anywhere}

/* Editorial/tournament composition: same approved asset, photo visible at right.
   Copy retains a dark wash; these variants do not reinstate fixed mobile heights. */
body:is(#stadium-app,.stadium-landing) .page-hero:is(.page-hero--editorial,.page-hero--tournament){
 background-image:linear-gradient(90deg,var(--hero-base),var(--hero-wash) 40%,var(--hero-edge) 70%,transparent 100%),url('images/stadium-hero-v2.webp');
}
@media(min-width:761px){
 body:is(#stadium-app,.stadium-landing).stadium-landing .page-hero--editorial{padding:32px 40px}
 body:is(#stadium-app,.stadium-landing).stadium-landing .page-hero--editorial .page-hero-title{font-size:clamp(2.25rem,4vw,3.25rem)}
 body:is(#stadium-app,.stadium-landing).stadium-landing .page-hero--editorial .page-hero-subtitle{font-size:1.25rem}
 body.stadium-landing .page-hero--editorial .sport-picker{margin-top:20px}
}
@media(max-width:760px){
 body.stadium-landing .page-hero--editorial{padding:22px 18px 18px}
 body:is(#stadium-app,.stadium-landing).stadium-landing .page-hero--editorial .page-hero-title{font-size:clamp(1.75rem,7.7vw,2.125rem)}
 body:is(#stadium-app,.stadium-landing).stadium-landing .page-hero--editorial .page-hero-subtitle{font-size:1.0625rem;max-width:26ch}
 body.stadium-landing .page-hero .sport-picker{margin-top:18px}
 body.stadium-landing .page-hero .landing-scorekeeper{margin-top:16px;padding-top:14px}
 body:is(#stadium-app,.stadium-landing) .page-hero:is(.page-hero--editorial,.page-hero--tournament){background-position:center}
}
