/* DG logo intro v3.9. Scoped addition; the portal's v3.5 layout and motion stay unchanged. */
.brand-intro-trigger { appearance: none; border: 0; padding: 0; background: transparent; color: inherit; text-align: left; font: inherit; border-radius: 12px; }
.brand-intro-trigger .brand-name { letter-spacing: .6px; }
.brand-logo-frame { display: grid; place-items: center; flex: 0 0 clamp(88px, 9vw, 118px); width: clamp(88px, 9vw, 118px); }
.brand-logo-image { display: block; width: 100%; height: auto; aspect-ratio: 810 / 438; object-fit: contain; }
.brand-title-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 9px; }
.brand-code-inline { color: var(--teal-deep, #00636e); font-size: .78em; font-weight: 850; letter-spacing: -.04em; }
.brand-play-hint { display: block; margin-top: 4px; color: var(--teal-deep, #00636e); font-size: 10px; font-weight: 600; letter-spacing: .02em; line-height: 1.5; }
.brand-play-hint > span { font-size: 13px; }
.logo-intro-notice { position: relative; z-index: 1; font-size: 12px; color: #c3d7e6; margin-block: 0; padding-block: 9px; overflow-wrap: anywhere; }
.logo-intro-notice:empty { display: none; }
.logo-intro-notice a { text-decoration: underline; text-underline-offset: 3px; }
/* Viewport-filling dialog, not the browser Fullscreen API. The complete film fits between accessible controls. */
body.intro-open { overflow: hidden; }
.logo-intro-dialog { position: fixed; inset: 0; box-sizing: border-box; color-scheme: dark; color: #f1f8ff; border: 0; border-radius: 0; padding: clamp(12px, 2vw, 24px); padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); margin: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; background: radial-gradient(ellipse at 38% 54%, #0e2536 0, transparent 64%), radial-gradient(ellipse at 88% 26%, #111525 0, transparent 60%), #04070e; box-shadow: none; overflow: auto; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.logo-intro-dialog:not([open]) { display: none; }
.logo-intro-dialog[open] { display: grid; }
.logo-intro-dialog::backdrop { background: #04070e; }
.logo-intro-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.logo-intro-top > div { min-width: 0; }
.logo-intro-overline { color: #85cbd9; font-size: 9px; letter-spacing: .16em; line-height: 1.5; margin: 0 0 3px; }
.logo-intro-dialog h2 { font-size: clamp(17px, 2vw, 25px); margin: 0; line-height: 1.4; font-weight: 650; overflow-wrap: anywhere; }
.logo-intro-dialog button { appearance: none; font: inherit; border: 1px solid #52718c; border-radius: 10px; padding: 8px 14px; min-height: 44px; background: #102c3d; color: #eefaff; cursor: pointer; font-size: 12px; line-height: 1.5; }
.logo-intro-dialog button:hover { background: #20455b; }
.logo-intro-dialog button:focus-visible { outline: 3px solid #83e9ff; outline-offset: 3px; }
.logo-intro-dialog button:disabled { cursor: default; opacity: .55; }
.logo-intro-dialog .logo-intro-close { flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px; background: #164553; border-color: #61b2c0; }
.logo-intro-close > span { font-size: 21px; line-height: 1; }
.logo-intro-description { color: #b8cfdf; font-size: 11px; line-height: 1.6; margin: 5px 0 8px; overflow-wrap: anywhere; }
.logo-intro-screen { position: relative; min-width: 0; min-height: 40px; border: 0; border-radius: 0; background: transparent; overflow: hidden; cursor: pointer; }
.logo-intro-screen video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: contain; background: transparent; }
.logo-intro-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 8px; min-width: 0; }
.logo-intro-status { flex: 1 1 240px; min-width: 0; margin: 0; color: #c0d9e7; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.logo-intro-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-right > div { flex-wrap: wrap; row-gap: 8px; }
@media (max-width: 640px) {
  .brand-intro-trigger { flex-basis: 100%; }
  .brand-logo-frame { flex-basis: 94px; width: 94px; }
  .brand-intro-trigger .brand-name { font-size: 18px; }
  .brand-play-hint { font-size: 9px; }
  .logo-intro-dialog h2 { font-size: 17px; }
  .logo-intro-dialog button { padding-inline: 10px; font-size: 11px; }
  .logo-intro-overline { font-size: 7px; letter-spacing: .08em; }
  .logo-intro-description { font-size: 10px; }
  .logo-intro-status { flex-basis: 100%; }
  .logo-intro-actions { margin-left: auto; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .logo-intro-dialog { grid-template-rows: auto minmax(0, 1fr) auto; padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .logo-intro-overline, .logo-intro-description { display: none; }
  .logo-intro-top { align-items: center; margin-bottom: 4px; }
  .logo-intro-dialog h2 { font-size: 16px; }
  .logo-intro-bottom { margin-top: 4px; }
  .logo-intro-status { flex-basis: 200px; }
}
@media print {
  .logo-intro-dialog, .logo-intro-notice, .brand-play-hint, [data-intro-fallback] { display: none !important; }
  body.intro-open { overflow: visible; }
}
/* Do not animate the background beneath the introductory video. Existing user pause preferences remain intact. */
body.intro-open .portal-motion::before, body.intro-open .portal-motion::after { animation-play-state: paused; }
