/* Only loaded in the iframe's explicit ?embed=1 local preview mode. */
html.cup-embedded, html.cup-embedded body { min-height:0!important; width:100%; overflow-x:hidden; }
html.cup-embedded .site-header, html.cup-embedded .site-footer { display:none!important; }
html.cup-embedded .app-shell { max-width:none!important; min-height:0!important; padding:20px 15px 40px!important; }
html.cup-embedded .demo-toolbar { position:relative; top:auto; margin:0; border-top:0; z-index:5; }
html.cup-embedded .hero { border-radius:10px; }
@media(max-width:700px){ html.cup-embedded .app-shell {padding:12px 6px 30px!important} }

/* Let the actual B-Gjengen website background show through the iframe.
   Previously the prototype painted a second full-size dark rectangle/fade. */
html.cup-embedded, html.cup-embedded body {
  background:transparent!important;
  background-image:none!important;
}
html.cup-embedded body::before, html.cup-embedded body::after {
  background:none!important;
}
html.cup-embedded .demo-toolbar { background:transparent!important; }
html.cup-embedded .app-shell { background:transparent!important; }

/* Phase 3C: remove the leftover shadow/grey halo around wrapper panels.
   Keep the actual dark-green panels, team graphics, match state backgrounds,
   winner glows and intentionally grey UPCOMING cards. */
html.cup-embedded #app,
html.cup-embedded .app-shell,
html.cup-embedded .demo-toolbar {
  background:transparent!important;
  background-image:none!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
html.cup-embedded .cup-list-card,
html.cup-embedded .panel,
html.cup-embedded .fixture-wrap {
  box-shadow:none;
}

/* Phase 3D: Chromium uses the dark color scheme to paint an opaque #121212
   CANVAS for a transparent iframe, even when html/body are transparent.
   Neutralize that canvas while keeping explicit dark form-control styling. */
html.cup-embedded {
  color-scheme: normal!important;
  background: transparent!important;
  background-color: transparent!important;
}
html.cup-embedded body {
  background: transparent!important;
  background-color: transparent!important;
}
html.cup-embedded input,
html.cup-embedded select,
html.cup-embedded textarea {
  color-scheme: dark;
}

/* Phase 3E — match the existing B-Gjengen page canvas exactly.
   Chromium may paint a #121212 dark iframe canvas despite transparent
   html/body. The normal site's V27 background is a flat #0e140a. */
html.cup-embedded,
html.cup-embedded body {
  background: #0e140a !important;
  background-color: #0e140a !important;
  background-image: none !important;
}
