/* One celestial instrument, quiet copy, and the app's existing dialog. */
#app-dialog[data-mode="beta-splash"] {
  width: min(700px, calc(100% - 28px));
  padding: 26px 30px 0;
  background: var(--panel, #131a2d);
  border-color: var(--line);
}

#app-dialog[data-mode="beta-splash"] > .dialog-top {
  margin-bottom: 18px;
}

#app-dialog[data-mode="beta-splash"] #dialog-title {
  font-size: 23px;
  line-height: 1.25;
}

.beta-splash-panel { min-width: 0; color: var(--ink); }
.beta-splash-content { min-width: 0; }
.beta-splash-footer { position: sticky; bottom: 0; z-index: 3; padding-bottom: max(14px, env(safe-area-inset-bottom)); background: var(--panel, #131a2d); }
.beta-splash-privacy-host:empty { display: none; }
/* The fixed application header stays outside this component. Prose has its
   own scroll area, so the lower action bar never covers welcome text. */
html #app-dialog.dialog[data-mode="beta-splash"][open] > #dialog-body { display: flex; flex-direction: column; overflow: hidden; }
html #app-dialog.dialog[data-mode="beta-splash"][open] .beta-splash-panel { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
html #app-dialog.dialog[data-mode="beta-splash"][open] .beta-splash-content { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; scroll-padding-block: 8px; padding-right: 2px; }
html #app-dialog.dialog[data-mode="beta-splash"][open] .beta-splash-content:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
html #app-dialog.dialog[data-mode="beta-splash"][open] .beta-splash-footer { flex: 0 0 auto; position: relative; bottom: auto; padding-bottom: 0; }
.beta-splash-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.beta-splash-mobile-art { display: none; }
.beta-splash-languages { display: inline-flex; gap: 3px; flex-shrink: 0; }
.beta-splash-languages > button { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; line-height: 1.2; font-weight: 600; color: var(--muted); background: transparent; }
.beta-splash-languages > button[aria-pressed="true"] { color: var(--ink); border-color: var(--line); background: var(--accent-soft); }
.beta-splash-languages > button:hover { color: var(--ink); background: var(--accent-soft); }
.beta-splash-welcome { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 12px; align-items: center; }
.beta-splash-introduction { min-width: 0; }
.beta-splash-status { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 13px; line-height: 1.5; }
.beta-splash-status > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.beta-splash-introduction h3 { font: 400 clamp(31px, 4.7vw, 38px)/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.025em; margin: 0 0 17px; overflow-wrap: normal; }
#app-dialog .beta-splash-intro { font-size: 15px; line-height: 1.75; margin: 0; color: var(--muted); }
.beta-splash-art { display: grid; place-items: center; width: 190px; height: 220px; isolation: isolate; }
.beta-splash-sky { display: block; width: 100%; height: auto; overflow: visible; color: var(--gold); }
.beta-splash-orbit { fill: none; stroke: currentColor; stroke-width: 1; opacity: .24; }
.beta-splash-orbit-outer { stroke-dasharray: 1 9; stroke-linecap: round; opacity: .58; }
.beta-splash-orbit-cross { opacity: .34; }
.beta-splash-axis { stroke: currentColor; stroke-width: 1; opacity: .5; }
.beta-splash-moon { fill: currentColor; fill-opacity: .1; stroke: currentColor; stroke-width: 1.2; }
.beta-splash-constellation { fill: none; stroke: var(--lavender); stroke-width: 1.2; opacity: .75; }
.beta-splash-stars { fill: var(--lavender); }
.beta-splash-north-star { fill: currentColor; }
.beta-splash-orbit-point { fill: var(--panel, #131a2d); stroke: currentColor; stroke-width: 1.2; }
#app-dialog .beta-splash-guidance { border-top: 1px solid var(--line); padding-top: 20px; margin: 23px 0 18px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.beta-splash-planned { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 23px; }
.beta-splash-planned > span { flex-shrink: 0; border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; color: var(--ink); font-size: 12px; line-height: 1.55; }
#app-dialog .beta-splash-planned > p { font-size: 13px; line-height: 1.75; color: var(--muted); margin: 0; }
.beta-splash-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 13px 0; background: var(--panel, #131a2d); border-top: 1px solid var(--line); }
.beta-splash-actions > .button { min-height: 50px; min-width: 0; padding: 13px 17px; font-size: 14px; }
.beta-splash-continue { flex: 1.2; }
.beta-splash-feedback { flex: 1; }
.beta-splash-actions > .button:focus-visible { outline-color: var(--gold); outline-offset: 3px; }

@media (max-width: 560px) {
  #app-dialog[data-mode="beta-splash"] { padding: 20px 20px 0; }
  #app-dialog[data-mode="beta-splash"] > .dialog-top { margin-bottom: 10px; }
  #app-dialog[data-mode="beta-splash"] #dialog-title { font-size: 21px; }
  .beta-splash-welcome { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .beta-splash-meta { margin-bottom: 21px; }
  .beta-splash-mobile-art { display: block; flex-shrink: 0; width: 44px; }
  .beta-splash-art { display: none; }
  .beta-splash-introduction h3 { font-size: 32px; max-width: 340px; margin-bottom: 15px; }
  #app-dialog .beta-splash-intro { line-height: 1.7; }
  #app-dialog .beta-splash-guidance { margin-top: 21px; padding-top: 18px; }
  .beta-splash-planned { gap: 10px; margin-bottom: 20px; }
  .beta-splash-actions { padding-block: 10px; }
  .beta-splash-actions > .button { padding: 12px 9px; font-size: 13px; }
}

@media (max-width: 350px) {
  .beta-splash-mobile-art { width: 34px; }
  .beta-splash-introduction h3 { font-size: 30px; }
  .beta-splash-actions { gap: 6px; }
  .beta-splash-actions > .button { flex: auto; min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .beta-splash-panel *, .beta-splash-panel *::before, .beta-splash-panel *::after { animation: none; transition: none; }
}
