/* FM27 R27.85 — capacity-scaled, 2.5D stadium bowl. Presentation only.
   Intentionally scoped to the stadium overview, no changes to OWS build hooks. */
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-size-pill{
  display:inline-flex;align-items:center;gap:7px;margin-left:auto;
  border:1px solid #395773;border-radius:999px;background:#15263e;
  color:#bfe8e1;padding:7px 10px;font-size:11px;font-weight:750;
}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-size-pill i{color:#46ddb1}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stadium-stage{
  --r2785-end:84px;--r2785-side:105px;
  min-height:490px;display:flex;align-items:center;justify-content:center;
  padding:20px 17px 24px!important;isolation:isolate;
  background:radial-gradient(ellipse at 49% 47%,#2b4b62 0%,#162d44 54%,#0a1425 100%)!important;
  border:1px solid #42617d!important;border-radius:18px!important;
  box-shadow:inset 0 1px #d1fbff17,inset 0 -36px 55px #070e1f99,0 12px 30px #0003;
}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-size-mittel{--r2785-end:97px;--r2785-side:122px}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-size-gross{--r2785-end:110px;--r2785-side:137px}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-size-arena{--r2785-end:122px;--r2785-side:151px}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-bowl-light{
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(ellipse at 50% 25%,#80eaff13,transparent 55%),
    linear-gradient(118deg,transparent 38%,#d6f5ff0b 48%,transparent 56%);
}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-bowl{
  position:relative;z-index:1;box-sizing:border-box;
  display:grid!important;
  grid-template-columns:var(--r2785-side) minmax(170px,1fr) var(--r2785-side)!important;
  grid-template-rows:var(--r2785-end) minmax(218px,1fr) var(--r2785-end)!important;
  grid-template-areas:'. west .' 'south pitch north' '. east .'!important;
  min-height:430px!important;width:min(100%,1080px)!important;
  padding:17px!important;gap:8px!important;
  border:1px solid #496983!important;border-radius:24px!important;
  background:radial-gradient(ellipse at center,#233f4a 0%,#0f2637 67%,#0b1728 100%)!important;
  box-shadow:0 19px 0 -9px #0b1b2b,0 24px 0 -11px #375675,0 31px 32px #0009,inset 0 0 0 5px #183146!important;
  transform:perspective(1400px) rotateX(5deg);
}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-bowl:before{
  content:"";inset:8px!important;position:absolute;z-index:0;pointer-events:none;
  border:1px solid #96d1ee20;border-radius:19px;
  background:linear-gradient(155deg,#ffffff0b,transparent 27%,transparent 71%,#64e0ab08);
}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stand{
  position:relative;z-index:1;isolation:isolate;
  padding:4px!important;margin:0!important;overflow:hidden!important;
  border:1px solid #5a8093!important;border-radius:12px!important;
  background:linear-gradient(140deg,#24394e,#142438)!important;
  box-shadow:inset 0 2px 0 #b0d5e84d,0 4px 0 #0b2335,0 7px 14px #0009!important;
  transition:border-color .18s,box-shadow .18s,filter .18s;
}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stand:hover,
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stand:focus-within{
  border-color:#67e9bb!important;filter:brightness(1.12);
  box-shadow:0 0 0 2px #51d9b05c,0 9px 16px #0009!important;
}
/* Seat decks form visible stepped terraces. More real places -> more visible ranks. */
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-seat-deck{
  position:absolute;inset:2px;display:flex;flex-direction:column;
  align-items:stretch;justify-content:space-evenly;gap:2px;z-index:0;
  transform:translateY(2px);pointer-events:none;
}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-seat-row{
  display:none;flex:1;border:1px solid #a5c8db3b;border-radius:3px;
  background:repeating-linear-gradient(90deg,#708ea5 0 2px,#274057 2px 5px,#172b40 5px 9px);
  box-shadow:inset 0 1px #e3f3ff40,0 2px 0 #07172875;
}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-tier-1 .fm27-r2785-seat-row:nth-child(1),
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-tier-2 .fm27-r2785-seat-row:nth-child(-n+2),
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-tier-3 .fm27-r2785-seat-row:nth-child(-n+3),
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-tier-4 .fm27-r2785-seat-row{display:block}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-tier-4 .fm27-r2785-seat-row{
  background:repeating-linear-gradient(90deg,#89a6b9 0 2px,#304a60 2px 5px,#192f43 5px 9px);
}
/* East/west running at the top/bottom of the horizontally oriented pitch. */
body.fm27-midnight .fm27-r2715-stadium .fm27-r83-stand-o .fm27-r2785-seat-deck,
body.fm27-midnight .fm27-r2715-stadium .fm27-r83-stand-w .fm27-r2785-seat-deck{flex-direction:column}
body.fm27-midnight .fm27-r2715-stadium .fm27-r83-stand-n .fm27-r2785-seat-deck,
body.fm27-midnight .fm27-r2715-stadium .fm27-r83-stand-s .fm27-r2785-seat-deck{flex-direction:row}
body.fm27-midnight .fm27-r2715-stadium .fm27-r83-stand-n .fm27-r2785-seat-row,
body.fm27-midnight .fm27-r2715-stadium .fm27-r83-stand-s .fm27-r2785-seat-row{
  background:repeating-linear-gradient(0deg,#708ea5 0 2px,#274057 2px 5px,#172b40 5px 9px)
}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stand .fm27-s2722-tribune-inner{
  position:relative;z-index:2;align-self:center;width:100%;height:auto;min-height:0;
  padding:8px 6px!important;gap:3px;
  border:1px solid #97c2d951!important;border-radius:9px!important;
  background:linear-gradient(155deg,#0e2138f5,#142c45ed)!important;
  box-shadow:0 6px 14px #0008!important;
}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-share{
  font-size:9px;line-height:1.2;color:#75dabc;white-space:nowrap;
}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stand .fm27-s2722-tribune strong{
  font-size:clamp(15px,1.5vw,20px)!important;
}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stand .fm27-s2722-tribune-action{
  min-height:27px;touch-action:manipulation;
}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-bowl .fm27-s2722-pitch{
  min-height:218px!important;transform:translateY(-2px);
  background:repeating-linear-gradient(90deg,#23764f 0 38px,#1a6946 38px 76px)!important;
  box-shadow:0 0 0 5px #0c3340,0 0 0 8px #5091a277,0 10px 0 #0b3540,0 16px 22px #0007,inset 0 0 44px #092c2399!important;
}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-pitch-glow{
  position:absolute;inset:0;pointer-events:none;z-index:0;
  background:radial-gradient(ellipse at 50% 25%,#d6ffe71e,transparent 64%);
}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-bowl .fm27-s2722-pitch>span{z-index:2}
body.fm27-midnight .fm27-r2715-stadium .fm27-s2722-plan-legend{flex-wrap:wrap;gap:5px 10px}
body.fm27-midnight .fm27-r2715-stadium .fm27-s2722-plan-legend small{color:#849bb7;font-size:10px}
@media(max-width:1080px){
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stadium-stage{--r2785-side:95px;--r2785-end:88px;min-height:430px;padding:13px 9px 20px!important}
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-bowl{min-height:380px!important;grid-template-rows:88px minmax(190px,1fr) 88px!important;padding:9px!important;gap:6px!important}
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-bowl .fm27-s2722-pitch{min-height:190px!important}
}
@media(max-width:620px){
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-size-pill{margin:0;font-size:10px}
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stadium-stage{min-height:0;--r2785-side:clamp(56px,18vw,80px);padding:7px 3px 14px!important}
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-bowl{
    grid-template-columns:var(--r2785-side) minmax(95px,1fr) var(--r2785-side)!important;
    grid-template-rows:78px minmax(155px,1fr) 78px!important;
    min-height:315px!important;padding:5px!important;gap:4px!important;border-radius:12px!important;
    transform:none!important;
  }
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stand{padding:2px!important;border-radius:6px!important}
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stand .fm27-s2722-tribune-inner{padding:4px 2px!important;gap:2px;border-radius:5px!important}
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stand .fm27-s2722-direction-name{font-size:9px!important}
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stand .fm27-s2722-tribune strong{font-size:12px!important}
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stand .fm27-s2722-tribune small,
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-share{display:none}
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stand .fm27-s2722-tribune-action{min-height:26px;margin:3px 0 0!important;padding:3px 6px!important;font-size:9px!important}
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-bowl .fm27-s2722-pitch{min-height:155px!important}
  body.fm27-midnight .fm27-r2715-stadium .fm27-s2722-plan-legend{font-size:10px}
}
@media(prefers-reduced-motion:reduce){body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stand{transition:none}}
@media(max-width:620px){
  /* At phone widths keep an explicit + even when the legacy button hides its label. */
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stand .fm27-s2722-tribune-action{
    width:31px!important;min-width:31px!important;align-self:center;margin-inline:auto!important;
    font-size:0!important;line-height:1!important;
  }
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stand .fm27-s2722-tribune-action i,
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stand .fm27-s2722-tribune-action span{display:none!important}
  body.fm27-midnight .fm27-r2715-stadium .fm27-r2785-stand .fm27-s2722-tribune-action::after{
    content:"+";display:block;font-size:19px;font-weight:700;color:#eafff6;
  }
}
