.entrance-screen {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: var(--bg-container);
  padding: calc(38px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  transition: opacity 260ms ease, transform 260ms ease;
}

.entrance-screen.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
}

.logo-area {
  margin-top: 4px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.logo-illust {
  width: 90px;
  height: 90px;
  background: var(--color-primary-bg);
  border: 3px solid var(--color-primary);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-light);
}

.logo-title {
  color: var(--text-main);
  font-size: 28px;
  font-weight: 850;
  letter-spacing: 1px;
  line-height: 1.2;
}

.logo-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
}

.avatar-setup-panel {
  width: 100%;
  background: #fff;
  padding: 22px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  margin-bottom: 42px;
}

.panel-title {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 780;
  margin-bottom: 18px;
  text-align: center;
}

.upload-row {
  display: flex;
  justify-content: space-around;
  gap: 12px;
}

.upload-card {
  flex: 1;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 112px;
}

.square-slot {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  border: 2px dashed #c8c7dc;
  background: var(--color-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform 160ms ease, border-color 160ms ease;
}

.upload-card:hover .square-slot,
.upload-card:focus-visible .square-slot {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.slot-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-edit-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 2px 6px rgba(102, 105, 172, 0.2);
}

.card-label {
  font-size: 12px;
  font-weight: 800;
}

.card-label.mami { color: var(--color-mami); }

.card-label.mom { color: var(--color-mom); }

.card-label.child { color: #c08a1e; }

.start-button {
  width: 85%;
  min-height: 54px;
  border: none;
  border-radius: 30px;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 850;
  box-shadow: 0 8px 24px rgba(102, 105, 172, 0.3);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.entrance-actions {
  width: 85%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.entrance-actions .start-button {
  width: 100%;
}

.secondary-entrance-button {
  min-height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
  font-size: 14px;
  font-weight: 780;
}

.secondary-entrance-button[hidden] {
  display: none;
}

.start-button:hover,
.start-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(102, 105, 172, 0.4);
  outline: none;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
