/* Factory Manager welcome splash and tutorial art integration. */

.welcome-screen {
  background-color: #06243a;
  background-image:
    linear-gradient(180deg, rgba(3, 25, 42, 0.08) 0%, rgba(3, 25, 42, 0.02) 52%, rgba(3, 25, 42, 0.18) 100%),
    url('assets/welcome-splash-portrait.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 0;
}

.welcome-screen .welcome-card {
  width: min(100%, 492px);
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: flex-start;
  padding: max(24px, env(safe-area-inset-top)) clamp(22px, 6vw, 36px)
    max(18px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.welcome-screen .welcome-wordmark {
  border: 0;
  padding: 6px 12px 2px;
  color: #fffaf0;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}

.welcome-screen .welcome-wordmark h1 {
  font-size: clamp(2.15rem, 10vw, 3.25rem);
}

.welcome-screen .welcome-tagline {
  margin-top: 10px;
  color: #fffaf0;
  font-weight: 650;
  font-size: clamp(0.98rem, 4vw, 1.15rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.welcome-screen .welcome-illustration {
  display: none;
}

.welcome-screen .welcome-actions {
  gap: 8px;
  margin-top: 16px;
}

.welcome-screen .experience-btn {
  min-height: 50px;
  border-width: 2px;
  border-radius: 17px;
  padding: 8px 16px;
  background: rgba(250, 248, 242, 0.94);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(3px);
}

.welcome-screen .experience-btn-primary {
  background: rgba(223, 157, 34, 0.96);
}

.welcome-screen .experience-btn-disabled {
  background: rgba(238, 234, 224, 0.78);
}

.welcome-screen .prototype-label {
  margin-top: 8px;
  color: rgba(255, 250, 240, 0.82);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.tutorial-illustration {
  overflow: hidden;
}

.tutorial-factory-line {
  width: 100%;
  min-height: 174px;
  padding: 16px 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 3vw, 16px);
}

.tutorial-machine {
  width: clamp(86px, 30vw, 118px);
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.tutorial-machine-art {
  width: 100%;
  height: 108px;
  border: 3px solid #292823;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #f0eadc;
  box-shadow: 0 7px 0 rgba(41, 40, 35, 0.12);
}

.tutorial-machine-art svg {
  width: 92%;
  height: 92%;
}

.tutorial-machine-label {
  color: #292823;
  font-size: clamp(0.68rem, 2.7vw, 0.8rem);
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.tutorial-machine.machine-condition-upgraded .tutorial-machine-art {
  border-color: #2f7d72;
  background: #dff1e9;
}

.tutorial-machine.machine-condition-new .tutorial-machine-art {
  border-color: #df9d22;
  background: #fff1cd;
}

.tutorial-action-arrow {
  flex: 0 0 auto;
  color: #df9d22;
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 900;
}

.tutorial-empty-tile {
  width: clamp(86px, 30vw, 118px);
  height: 108px;
  border: 4px dashed #df9d22;
  border-radius: 18px;
  background: rgba(223, 157, 34, 0.08);
}

.tutorial-transport-line {
  gap: clamp(4px, 1.5vw, 9px);
}

.tutorial-transport-line .tutorial-machine {
  width: clamp(78px, 26vw, 102px);
}

.tutorial-route {
  position: relative;
  flex: 1 1 74px;
  max-width: 94px;
  height: 54px;
}

.tutorial-route-conveyor {
  align-self: center;
  border: 4px solid #292823;
  border-radius: 18px;
  background: #df9d22;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.tutorial-route-conveyor span {
  width: 10px;
  height: 10px;
  border: 2px solid #292823;
  border-radius: 50%;
  background: #faf8f2;
}

.tutorial-route-robot {
  display: grid;
  justify-items: center;
  align-content: center;
}

.tutorial-robot-head {
  width: 34px;
  height: 24px;
  border: 3px solid #292823;
  border-radius: 8px;
  background: #df9d22;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.tutorial-robot-head i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #292823;
}

.tutorial-robot-body {
  width: 48px;
  height: 19px;
  margin-top: -2px;
  border: 3px solid #292823;
  border-radius: 7px;
  background: #df9d22;
}

.tutorial-robot-wheel {
  width: 38px;
  height: 8px;
  margin-top: -1px;
  border: 3px solid #292823;
  border-radius: 8px;
  background: #faf8f2;
}

@media (min-width: 720px) {
  .welcome-screen {
    background-size: auto 100%;
    background-color: #06243a;
  }

  .welcome-screen .welcome-card {
    margin-right: min(48vw, 720px);
  }
}

@media (max-height: 700px) {
  .welcome-screen .welcome-wordmark h1 {
    font-size: 2rem;
  }

  .welcome-screen .welcome-tagline {
    font-size: 0.9rem;
    margin-top: 5px;
  }

  .welcome-screen .welcome-actions {
    margin-top: 10px;
    gap: 6px;
  }

  .welcome-screen .experience-btn {
    min-height: 44px;
  }

  .welcome-screen .prototype-label {
    display: none;
  }
}
