body:has(#view-welcome:not([hidden])) :is(.topbar, main > footer, #model-call-status) {
  display: none;
}
#view-welcome {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.welcome-art {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #e8d3b8;
  pointer-events: none;
}
.welcome-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  opacity: var(--art-opacity);
}
:root[data-background-images-off] .welcome-art {
  display: none;
}
.welcome-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (orientation: portrait) and (max-width: 900px) {
  .welcome-art img { object-position: center 63%; }
}

.welcome-shortcuts {
  position: absolute;
  inset-block-start: 50%;
  inset-inline: var(--nav-reveal-width) 0;
  width: calc(100% - var(--nav-reveal-width) - clamp(28px, 6vw, 96px));
  height: min(50vw, calc(100dvh - 44px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(5px, 1.1vw, 16px);
  transform: translateY(-50%);
  transition: inset-inline-start .16s ease-out, width .16s ease-out;
}

.welcome-shortcut {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 8px;
  padding: clamp(10px, 2.6vh, 24px) 4px;
  border: 1px solid rgb(118 108 81 / 32%);
  border-radius: clamp(6px, 1vw, 14px);
  background: #faf3e4;
  box-shadow: inset 0 1px rgb(255 255 255 / 85%), 0 5px 14px rgb(55 45 30 / 13%);
  color: #25382d;
  font: 700 clamp(20px, 2vw, 30px)/1 var(--heading-font);
  pointer-events: auto;
  transition: border-color .18s ease-out, box-shadow .18s ease-out;
}

.welcome-shortcut > span {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: .2em;
  white-space: nowrap;
}

.welcome-shortcut::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: .71;
}

.welcome-shortcut:is(:hover, :focus-visible) {
  border-color: #738977;
  box-shadow: inset 0 1px rgb(255 255 255 / 92%), 0 6px 18px rgb(40 62 47 / 19%);
  text-decoration: none;
}

@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .welcome-shortcut {
    background: linear-gradient(145deg, rgb(255 254 246 / 32%), rgb(249 246 230 / 10%));
    -webkit-backdrop-filter: blur(6px) saturate(.9);
    backdrop-filter: blur(6px) saturate(.9);
  }
}

body.nav-dragging .welcome-shortcuts { transition: none; }

@media (prefers-reduced-motion: no-preference) {
  .welcome-shortcut {
    --entry-delay: 0ms;
    --entry-drift: -14px;
    --entry-tilt: -5deg;
    animation: welcome-shortcut-fall .72s cubic-bezier(.24, .74, .36, 1) calc(2.2s + var(--entry-delay)) backwards;
  }
  .welcome-shortcut:nth-child(even) { --entry-drift: 14px; --entry-tilt: 5deg; }
  .welcome-shortcut:nth-child(2) { --entry-delay: 130ms; }
  .welcome-shortcut:nth-child(3) { --entry-delay: 260ms; }
  .welcome-shortcut:nth-child(4) { --entry-delay: 390ms; }
  .welcome-shortcut:nth-child(5) { --entry-delay: 520ms; }
  .welcome-shortcut:nth-child(6) { --entry-delay: 650ms; }
  .welcome-shortcut:nth-child(7) { --entry-delay: 780ms; }

  @keyframes welcome-shortcut-fall {
    0% {
      visibility: hidden;
      opacity: 0;
      transform: translate(var(--entry-drift), -24vh) rotate(var(--entry-tilt));
    }
    60% { opacity: 1; }
    100% { visibility: visible; opacity: 1; transform: none; }
  }
}

@media (max-width: 900px) {
  #view-welcome { position: static; }
  .welcome-art { position: fixed; }
  .welcome-shortcuts {
    position: relative;
    inset: auto;
    width: 100%;
    margin-block-start: clamp(20px, 9vh, 64px);
    transform: none;
  }

  .welcome-shortcut { font-size: clamp(14px, 3.6vw, 20px); }
}
